• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
632jemalloc_version_gid
633jemalloc_version_nrev
634jemalloc_version_bugfix
635jemalloc_version_minor
636jemalloc_version_major
637jemalloc_version
638enable_log
639enable_cache_oblivious
640enable_xmalloc
641enable_utrace
642enable_fill
643enable_prof
644enable_stats
645enable_debug
646je_
647install_suffix
648private_namespace
649JEMALLOC_CPREFIX
650JEMALLOC_PREFIX
651AUTOCONF
652LD
653RANLIB
654INSTALL_DATA
655INSTALL_SCRIPT
656INSTALL_PROGRAM
657enable_autogen
658RPATH_EXTRA
659LM
660CC_MM
661DUMP_SYMS
662AROUT
663ARFLAGS
664MKLIB
665TEST_LD_MODE
666LDTARGET
667CTARGET
668PIC_CFLAGS
669SOREV
670EXTRA_LDFLAGS
671DSO_LDFLAGS
672link_whole_archive
673libprefix
674exe
675a
676o
677importlib
678so
679LD_PRELOAD_VAR
680RPATH
681abi
682AWK
683NM
684AR
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693EGREP
694GREP
695EXTRA_CXXFLAGS
696SPECIFIED_CXXFLAGS
697CONFIGURE_CXXFLAGS
698enable_cxx
699HAVE_CXX14
700ac_ct_CXX
701CXXFLAGS
702CXX
703CPP
704EXTRA_CFLAGS
705SPECIFIED_CFLAGS
706CONFIGURE_CFLAGS
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714XSLROOT
715XSLTPROC
716MANDIR
717DATADIR
718LIBDIR
719INCLUDEDIR
720BINDIR
721PREFIX
722abs_objroot
723objroot
724abs_srcroot
725srcroot
726rev
727CONFIG
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747runstatedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770with_xslroot
771enable_cxx
772with_lg_vaddr
773with_rpath
774enable_autogen
775with_mangling
776with_jemalloc_prefix
777with_export
778with_private_namespace
779with_install_suffix
780with_malloc_conf
781enable_debug
782enable_stats
783enable_prof
784enable_prof_libunwind
785with_static_libunwind
786enable_prof_libgcc
787enable_prof_gcc
788enable_fill
789enable_utrace
790enable_xmalloc
791enable_cache_oblivious
792enable_log
793with_lg_quantum
794with_lg_page
795with_lg_hugepage
796with_lg_page_sizes
797with_version
798enable_syscall
799enable_lazy_lock
800enable_zone_allocator
801enable_initial_exec_tls
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812CXX
813CXXFLAGS
814CCC'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853runstatedir='${localstatedir}/run'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -runstatedir | --runstatedir | --runstatedi | --runstated \
1107  | --runstate | --runstat | --runsta | --runst | --runs \
1108  | --run | --ru | --r)
1109    ac_prev=runstatedir ;;
1110  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1111  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1112  | --run=* | --ru=* | --r=*)
1113    runstatedir=$ac_optarg ;;
1114
1115  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116    ac_prev=sbindir ;;
1117  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118  | --sbi=* | --sb=*)
1119    sbindir=$ac_optarg ;;
1120
1121  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123  | --sharedst | --shareds | --shared | --share | --shar \
1124  | --sha | --sh)
1125    ac_prev=sharedstatedir ;;
1126  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129  | --sha=* | --sh=*)
1130    sharedstatedir=$ac_optarg ;;
1131
1132  -site | --site | --sit)
1133    ac_prev=site ;;
1134  -site=* | --site=* | --sit=*)
1135    site=$ac_optarg ;;
1136
1137  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138    ac_prev=srcdir ;;
1139  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140    srcdir=$ac_optarg ;;
1141
1142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143  | --syscon | --sysco | --sysc | --sys | --sy)
1144    ac_prev=sysconfdir ;;
1145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147    sysconfdir=$ac_optarg ;;
1148
1149  -target | --target | --targe | --targ | --tar | --ta | --t)
1150    ac_prev=target_alias ;;
1151  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152    target_alias=$ac_optarg ;;
1153
1154  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155    verbose=yes ;;
1156
1157  -version | --version | --versio | --versi | --vers | -V)
1158    ac_init_version=: ;;
1159
1160  -with-* | --with-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=\$ac_optarg ;;
1175
1176  -without-* | --without-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=no ;;
1191
1192  --x)
1193    # Obsolete; use --with-x.
1194    with_x=yes ;;
1195
1196  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197  | --x-incl | --x-inc | --x-in | --x-i)
1198    ac_prev=x_includes ;;
1199  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201    x_includes=$ac_optarg ;;
1202
1203  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205    ac_prev=x_libraries ;;
1206  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208    x_libraries=$ac_optarg ;;
1209
1210  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212    ;;
1213
1214  *=*)
1215    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216    # Reject names that are not valid shell variable names.
1217    case $ac_envvar in #(
1218      '' | [0-9]* | *[!_$as_cr_alnum]* )
1219      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220    esac
1221    eval $ac_envvar=\$ac_optarg
1222    export $ac_envvar ;;
1223
1224  *)
1225    # FIXME: should be removed in autoconf 3.0.
1226    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230    ;;
1231
1232  esac
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241  case $enable_option_checking in
1242    no) ;;
1243    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir runstatedir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278  if test "x$build_alias" = x; then
1279    cross_compiling=maybe
1280  elif test "x$build_alias" != "x$host_alias"; then
1281    cross_compiling=yes
1282  fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error $? "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296  as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301  ac_srcdir_defaulted=yes
1302  # Try the directory containing this script, then the parent directory.
1303  ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305	 X"$as_myself" : 'X\(//\)[^/]' \| \
1306	 X"$as_myself" : 'X\(//\)$' \| \
1307	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)[^/].*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\).*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  s/.*/./; q'`
1326  srcdir=$ac_confdir
1327  if test ! -r "$srcdir/$ac_unique_file"; then
1328    srcdir=..
1329  fi
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_env_${ac_var}_value=\$${ac_var}
1354  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362  # Omit some internal or obsolete options to make the list less imposing.
1363  # This message is too long to be a string in the A/UX 3.1 sh.
1364  cat <<_ACEOF
1365\`configure' configures this package to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375  -h, --help              display this help and exit
1376      --help=short        display options specific to this package
1377      --help=recursive    display the short help of all the included packages
1378  -V, --version           display version information and exit
1379  -q, --quiet, --silent   do not print \`checking ...' messages
1380      --cache-file=FILE   cache test results in FILE [disabled]
1381  -C, --config-cache      alias for \`--cache-file=config.cache'
1382  -n, --no-create         do not create output files
1383      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386  --prefix=PREFIX         install architecture-independent files in PREFIX
1387                          [$ac_default_prefix]
1388  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                          [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399  --bindir=DIR            user executables [EPREFIX/bin]
1400  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401  --libexecdir=DIR        program executables [EPREFIX/libexec]
1402  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1415  --htmldir=DIR           html documentation [DOCDIR]
1416  --dvidir=DIR            dvi documentation [DOCDIR]
1417  --pdfdir=DIR            pdf documentation [DOCDIR]
1418  --psdir=DIR             ps documentation [DOCDIR]
1419_ACEOF
1420
1421  cat <<\_ACEOF
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --disable-cxx           Disable C++ integration
1438  --enable-autogen        Automatically regenerate configure output
1439  --enable-debug          Build debugging code
1440  --disable-stats         Disable statistics calculation/reporting
1441  --enable-prof           Enable allocation profiling
1442  --enable-prof-libunwind Use libunwind for backtracing
1443  --disable-prof-libgcc   Do not use libgcc for backtracing
1444  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1445  --disable-fill          Disable support for junk/zero filling
1446  --enable-utrace         Enable utrace(2)-based tracing
1447  --enable-xmalloc        Support xmalloc option
1448  --disable-cache-oblivious
1449                          Disable support for cache-oblivious allocation
1450                          alignment
1451  --enable-log            Support debug logging
1452  --disable-syscall       Disable use of syscall(2)
1453  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1454  --disable-zone-allocator
1455                          Disable zone allocator for Darwin
1456  --disable-initial-exec-tls
1457                          Disable the initial-exec tls model
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-xslroot=<path>   XSL stylesheet root path
1463  --with-lg-vaddr=<lg-vaddr>
1464                          Number of significant virtual address bits
1465  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1466  --with-mangling=<map>   Mangle symbols in <map>
1467  --with-jemalloc-prefix=<prefix>
1468                          Prefix to prepend to all public APIs
1469  --without-export        disable exporting jemalloc public APIs
1470  --with-private-namespace=<prefix>
1471                          Prefix to prepend to all library-private APIs
1472  --with-install-suffix=<suffix>
1473                          Suffix to append to all installed files
1474  --with-malloc-conf=<malloc_conf>
1475                          config.malloc_conf options string
1476  --with-static-libunwind=<libunwind.a>
1477                          Path to static libunwind library; use rather than
1478                          dynamically linking
1479  --with-lg-quantum=<lg-quantum>
1480                          Base 2 log of minimum allocation alignment
1481  --with-lg-page=<lg-page>
1482                          Base 2 log of system page size
1483  --with-lg-hugepage=<lg-hugepage>
1484                          Base 2 log of system huge page size
1485  --with-lg-page-sizes=<lg-page-sizes>
1486                          Base 2 logs of system page sizes to support
1487  --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1488                          Version string
1489
1490Some influential environment variables:
1491  CC          C compiler command
1492  CFLAGS      C compiler flags
1493  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494              nonstandard directory <lib dir>
1495  LIBS        libraries to pass to the linker, e.g. -l<library>
1496  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497              you have headers in a nonstandard directory <include dir>
1498  CPP         C preprocessor
1499  CXX         C++ compiler command
1500  CXXFLAGS    C++ compiler flags
1501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
1505Report bugs to the package provider.
1506_ACEOF
1507ac_status=$?
1508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511  # If there are subdirs, report their specific --help.
1512  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513    test -d "$ac_dir" ||
1514      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515      continue
1516    ac_builddir=.
1517
1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
1521  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522  # A ".." for each directory in $ac_dir_suffix.
1523  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524  case $ac_top_builddir_sub in
1525  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527  esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
1533
1534case $srcdir in
1535  .)  # We are building in place.
1536    ac_srcdir=.
1537    ac_top_srcdir=$ac_top_builddir_sub
1538    ac_abs_top_srcdir=$ac_pwd ;;
1539  [\\/]* | ?:[\\/]* )  # Absolute name.
1540    ac_srcdir=$srcdir$ac_dir_suffix;
1541    ac_top_srcdir=$srcdir
1542    ac_abs_top_srcdir=$srcdir ;;
1543  *) # Relative name.
1544    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545    ac_top_srcdir=$ac_top_build_prefix$srcdir
1546    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547esac
1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550    cd "$ac_dir" || { ac_status=$?; continue; }
1551    # Check for guested configure.
1552    if test -f "$ac_srcdir/configure.gnu"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555    elif test -f "$ac_srcdir/configure"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure" --help=recursive
1558    else
1559      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560    fi || ac_status=$?
1561    cd "$ac_pwd" || { ac_status=$?; break; }
1562  done
1563fi
1564
1565test -n "$ac_init_help" && exit $ac_status
1566if $ac_init_version; then
1567  cat <<\_ACEOF
1568configure
1569generated by GNU Autoconf 2.69
1570
1571Copyright (C) 2012 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext
1589  if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_compile") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest.$ac_objext; then :
1608  ac_retval=0
1609else
1610  $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613	ac_retval=1
1614fi
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616  as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_compile
1619
1620# ac_fn_c_try_cpp LINENO
1621# ----------------------
1622# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_cpp ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  if { { ac_try="$ac_cpp conftest.$ac_ext"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634  ac_status=$?
1635  if test -s conftest.err; then
1636    grep -v '^ *+' conftest.err >conftest.er1
1637    cat conftest.er1 >&5
1638    mv -f conftest.er1 conftest.err
1639  fi
1640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641  test $ac_status = 0; } > conftest.i && {
1642	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643	 test ! -s conftest.err
1644       }; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650    ac_retval=1
1651fi
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_cpp
1656
1657# ac_fn_cxx_try_compile LINENO
1658# ----------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_cxx_try_compile ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  rm -f conftest.$ac_objext
1664  if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667  *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671  (eval "$ac_compile") 2>conftest.err
1672  ac_status=$?
1673  if test -s conftest.err; then
1674    grep -v '^ *+' conftest.err >conftest.er1
1675    cat conftest.er1 >&5
1676    mv -f conftest.er1 conftest.err
1677  fi
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } && {
1680	 test -z "$ac_cxx_werror_flag" ||
1681	 test ! -s conftest.err
1682       } && test -s conftest.$ac_objext; then :
1683  ac_retval=0
1684else
1685  $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688	ac_retval=1
1689fi
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691  as_fn_set_status $ac_retval
1692
1693} # ac_fn_cxx_try_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 test -x conftest$ac_exeext
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_try_run LINENO
1742# ----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744# that executables *can* be run.
1745ac_fn_c_try_run ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_link") 2>&5
1756  ac_status=$?
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759  { { case "(($ac_try" in
1760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761  *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765  (eval "$ac_try") 2>&5
1766  ac_status=$?
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; }; }; then :
1769  ac_retval=0
1770else
1771  $as_echo "$as_me: program exited with status $ac_status" >&5
1772       $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775       ac_retval=$ac_status
1776fi
1777  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779  as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_run
1782
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801  eval "$3=yes"
1802else
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1815# --------------------------------------------
1816# Tries to find the compile-time value of EXPR in a program that includes
1817# INCLUDES, setting VAR accordingly. Returns whether the value could be
1818# computed
1819ac_fn_c_compute_int ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  if test "$cross_compiling" = yes; then
1823    # Depending upon the size, compute the lo and hi bounds.
1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$4
1827int
1828main ()
1829{
1830static int test_array [1 - 2 * !(($2) >= 0)];
1831test_array [0] = 0;
1832return test_array [0];
1833
1834  ;
1835  return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"; then :
1839  ac_lo=0 ac_mid=0
1840  while :; do
1841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843$4
1844int
1845main ()
1846{
1847static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1848test_array [0] = 0;
1849return test_array [0];
1850
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856  ac_hi=$ac_mid; break
1857else
1858  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1859			if test $ac_lo -le $ac_mid; then
1860			  ac_lo= ac_hi=
1861			  break
1862			fi
1863			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866  done
1867else
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871int
1872main ()
1873{
1874static int test_array [1 - 2 * !(($2) < 0)];
1875test_array [0] = 0;
1876return test_array [0];
1877
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883  ac_hi=-1 ac_mid=-1
1884  while :; do
1885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$4
1888int
1889main ()
1890{
1891static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1892test_array [0] = 0;
1893return test_array [0];
1894
1895  ;
1896  return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900  ac_lo=$ac_mid; break
1901else
1902  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1903			if test $ac_mid -le $ac_hi; then
1904			  ac_lo= ac_hi=
1905			  break
1906			fi
1907			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910  done
1911else
1912  ac_lo= ac_hi=
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917# Binary search between lo and hi bounds.
1918while test "x$ac_lo" != "x$ac_hi"; do
1919  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927test_array [0] = 0;
1928return test_array [0];
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935  ac_hi=$ac_mid
1936else
1937  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940done
1941case $ac_lo in #((
1942?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1943'') ac_retval=1 ;;
1944esac
1945  else
1946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949static long int longval () { return $2; }
1950static unsigned long int ulongval () { return $2; }
1951#include <stdio.h>
1952#include <stdlib.h>
1953int
1954main ()
1955{
1956
1957  FILE *f = fopen ("conftest.val", "w");
1958  if (! f)
1959    return 1;
1960  if (($2) < 0)
1961    {
1962      long int i = longval ();
1963      if (i != ($2))
1964	return 1;
1965      fprintf (f, "%ld", i);
1966    }
1967  else
1968    {
1969      unsigned long int i = ulongval ();
1970      if (i != ($2))
1971	return 1;
1972      fprintf (f, "%lu", i);
1973    }
1974  /* Do not output a trailing newline, as this causes \r\n confusion
1975     on some platforms.  */
1976  return ferror (f) || fclose (f) != 0;
1977
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_run "$LINENO"; then :
1983  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1984else
1985  ac_retval=1
1986fi
1987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1988  conftest.$ac_objext conftest.beam conftest.$ac_ext
1989rm -f conftest.val
1990
1991  fi
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993  as_fn_set_status $ac_retval
1994
1995} # ac_fn_c_compute_int
1996
1997# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998# -------------------------------------------------------
1999# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000# the include files in INCLUDES and setting the cache variable VAR
2001# accordingly.
2002ac_fn_c_check_header_mongrel ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  if eval \${$3+:} false; then :
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if eval \${$3+:} false; then :
2009  $as_echo_n "(cached) " >&6
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014else
2015  # Is the header compilable?
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017$as_echo_n "checking $2 usability... " >&6; }
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021#include <$2>
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  ac_header_compiler=yes
2025else
2026  ac_header_compiler=no
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030$as_echo "$ac_header_compiler" >&6; }
2031
2032# Is the header present?
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034$as_echo_n "checking $2 presence... " >&6; }
2035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037#include <$2>
2038_ACEOF
2039if ac_fn_c_try_cpp "$LINENO"; then :
2040  ac_header_preproc=yes
2041else
2042  ac_header_preproc=no
2043fi
2044rm -f conftest.err conftest.i conftest.$ac_ext
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046$as_echo "$ac_header_preproc" >&6; }
2047
2048# So?  What about this header?
2049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050  yes:no: )
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055    ;;
2056  no:yes:* )
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2060$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2064$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067    ;;
2068esac
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval \${$3+:} false; then :
2072  $as_echo_n "(cached) " >&6
2073else
2074  eval "$3=\$ac_header_compiler"
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079fi
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_c_check_header_mongrel
2083
2084# ac_fn_c_check_func LINENO FUNC VAR
2085# ----------------------------------
2086# Tests whether FUNC exists, setting the cache variable VAR accordingly
2087ac_fn_c_check_func ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
2092if eval \${$3+:} false; then :
2093  $as_echo_n "(cached) " >&6
2094else
2095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2099#define $2 innocuous_$2
2100
2101/* System header to define __stub macros and hopefully few prototypes,
2102    which can conflict with char $2 (); below.
2103    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104    <limits.h> exists even on freestanding compilers.  */
2105
2106#ifdef __STDC__
2107# include <limits.h>
2108#else
2109# include <assert.h>
2110#endif
2111
2112#undef $2
2113
2114/* Override any GCC internal prototype to avoid an error.
2115   Use char because int might match the return type of a GCC
2116   builtin and then its argument prototype would still apply.  */
2117#ifdef __cplusplus
2118extern "C"
2119#endif
2120char $2 ();
2121/* The GNU C library defines this for functions which it implements
2122    to always fail with ENOSYS.  Some functions are actually named
2123    something starting with __ and the normal name is an alias.  */
2124#if defined __stub_$2 || defined __stub___$2
2125choke me
2126#endif
2127
2128int
2129main ()
2130{
2131return $2 ();
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_link "$LINENO"; then :
2137  eval "$3=yes"
2138else
2139  eval "$3=no"
2140fi
2141rm -f core conftest.err conftest.$ac_objext \
2142    conftest$ac_exeext conftest.$ac_ext
2143fi
2144eval ac_res=\$$3
2145	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
2149} # ac_fn_c_check_func
2150
2151# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2152# -------------------------------------------
2153# Tests whether TYPE exists after having included INCLUDES, setting cache
2154# variable VAR accordingly.
2155ac_fn_c_check_type ()
2156{
2157  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159$as_echo_n "checking for $2... " >&6; }
2160if eval \${$3+:} false; then :
2161  $as_echo_n "(cached) " >&6
2162else
2163  eval "$3=no"
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main ()
2169{
2170if (sizeof ($2))
2171	 return 0;
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$4
2180int
2181main ()
2182{
2183if (sizeof (($2)))
2184	    return 0;
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190
2191else
2192  eval "$3=yes"
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198eval ac_res=\$$3
2199	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200$as_echo "$ac_res" >&6; }
2201  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203} # ac_fn_c_check_type
2204cat >config.log <<_ACEOF
2205This file contains any messages produced by compilers while
2206running configure, to aid debugging if configure makes a mistake.
2207
2208It was created by $as_me, which was
2209generated by GNU Autoconf 2.69.  Invocation command line was
2210
2211  $ $0 $@
2212
2213_ACEOF
2214exec 5>>config.log
2215{
2216cat <<_ASUNAME
2217## --------- ##
2218## Platform. ##
2219## --------- ##
2220
2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2222uname -m = `(uname -m) 2>/dev/null || echo unknown`
2223uname -r = `(uname -r) 2>/dev/null || echo unknown`
2224uname -s = `(uname -s) 2>/dev/null || echo unknown`
2225uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226
2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2228/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2229
2230/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2231/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2233/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2234/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2235/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2236/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2237
2238_ASUNAME
2239
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    $as_echo "PATH: $as_dir"
2246  done
2247IFS=$as_save_IFS
2248
2249} >&5
2250
2251cat >&5 <<_ACEOF
2252
2253
2254## ----------- ##
2255## Core tests. ##
2256## ----------- ##
2257
2258_ACEOF
2259
2260
2261# Keep a trace of the command line.
2262# Strip out --no-create and --no-recursion so they do not pile up.
2263# Strip out --silent because we don't want to record it for future runs.
2264# Also quote any args containing shell meta-characters.
2265# Make two passes to allow for proper duplicate-argument suppression.
2266ac_configure_args=
2267ac_configure_args0=
2268ac_configure_args1=
2269ac_must_keep_next=false
2270for ac_pass in 1 2
2271do
2272  for ac_arg
2273  do
2274    case $ac_arg in
2275    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2276    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2277    | -silent | --silent | --silen | --sile | --sil)
2278      continue ;;
2279    *\'*)
2280      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2281    esac
2282    case $ac_pass in
2283    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284    2)
2285      as_fn_append ac_configure_args1 " '$ac_arg'"
2286      if test $ac_must_keep_next = true; then
2287	ac_must_keep_next=false # Got value, back to normal.
2288      else
2289	case $ac_arg in
2290	  *=* | --config-cache | -C | -disable-* | --disable-* \
2291	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2292	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2293	  | -with-* | --with-* | -without-* | --without-* | --x)
2294	    case "$ac_configure_args0 " in
2295	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2296	    esac
2297	    ;;
2298	  -* ) ac_must_keep_next=true ;;
2299	esac
2300      fi
2301      as_fn_append ac_configure_args " '$ac_arg'"
2302      ;;
2303    esac
2304  done
2305done
2306{ ac_configure_args0=; unset ac_configure_args0;}
2307{ ac_configure_args1=; unset ac_configure_args1;}
2308
2309# When interrupted or exit'd, cleanup temporary files, and complete
2310# config.log.  We remove comments because anyway the quotes in there
2311# would cause problems or look ugly.
2312# WARNING: Use '\'' to represent an apostrophe within the trap.
2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2314trap 'exit_status=$?
2315  # Save into config.log some information that might help in debugging.
2316  {
2317    echo
2318
2319    $as_echo "## ---------------- ##
2320## Cache variables. ##
2321## ---------------- ##"
2322    echo
2323    # The following way of writing the cache mishandles newlines in values,
2324(
2325  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2326    eval ac_val=\$$ac_var
2327    case $ac_val in #(
2328    *${as_nl}*)
2329      case $ac_var in #(
2330      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2332      esac
2333      case $ac_var in #(
2334      _ | IFS | as_nl) ;; #(
2335      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2336      *) { eval $ac_var=; unset $ac_var;} ;;
2337      esac ;;
2338    esac
2339  done
2340  (set) 2>&1 |
2341    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2342    *${as_nl}ac_space=\ *)
2343      sed -n \
2344	"s/'\''/'\''\\\\'\'''\''/g;
2345	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2346      ;; #(
2347    *)
2348      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2349      ;;
2350    esac |
2351    sort
2352)
2353    echo
2354
2355    $as_echo "## ----------------- ##
2356## Output variables. ##
2357## ----------------- ##"
2358    echo
2359    for ac_var in $ac_subst_vars
2360    do
2361      eval ac_val=\$$ac_var
2362      case $ac_val in
2363      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364      esac
2365      $as_echo "$ac_var='\''$ac_val'\''"
2366    done | sort
2367    echo
2368
2369    if test -n "$ac_subst_files"; then
2370      $as_echo "## ------------------- ##
2371## File substitutions. ##
2372## ------------------- ##"
2373      echo
2374      for ac_var in $ac_subst_files
2375      do
2376	eval ac_val=\$$ac_var
2377	case $ac_val in
2378	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379	esac
2380	$as_echo "$ac_var='\''$ac_val'\''"
2381      done | sort
2382      echo
2383    fi
2384
2385    if test -s confdefs.h; then
2386      $as_echo "## ----------- ##
2387## confdefs.h. ##
2388## ----------- ##"
2389      echo
2390      cat confdefs.h
2391      echo
2392    fi
2393    test "$ac_signal" != 0 &&
2394      $as_echo "$as_me: caught signal $ac_signal"
2395    $as_echo "$as_me: exit $exit_status"
2396  } >&5
2397  rm -f core *.core core.conftest.* &&
2398    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399    exit $exit_status
2400' 0
2401for ac_signal in 1 2 13 15; do
2402  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403done
2404ac_signal=0
2405
2406# confdefs.h avoids OS command line length limits that DEFS can exceed.
2407rm -f -r conftest* confdefs.h
2408
2409$as_echo "/* confdefs.h */" > confdefs.h
2410
2411# Predefined preprocessor variables.
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_NAME "$PACKAGE_NAME"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_VERSION "$PACKAGE_VERSION"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_STRING "$PACKAGE_STRING"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_URL "$PACKAGE_URL"
2435_ACEOF
2436
2437
2438# Let the site file select an alternate cache file if it wants to.
2439# Prefer an explicitly selected file to automatically selected ones.
2440ac_site_file1=NONE
2441ac_site_file2=NONE
2442if test -n "$CONFIG_SITE"; then
2443  # We do not want a PATH search for config.site.
2444  case $CONFIG_SITE in #((
2445    -*)  ac_site_file1=./$CONFIG_SITE;;
2446    */*) ac_site_file1=$CONFIG_SITE;;
2447    *)   ac_site_file1=./$CONFIG_SITE;;
2448  esac
2449elif test "x$prefix" != xNONE; then
2450  ac_site_file1=$prefix/share/config.site
2451  ac_site_file2=$prefix/etc/config.site
2452else
2453  ac_site_file1=$ac_default_prefix/share/config.site
2454  ac_site_file2=$ac_default_prefix/etc/config.site
2455fi
2456for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457do
2458  test "x$ac_site_file" = xNONE && continue
2459  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462    sed 's/^/| /' "$ac_site_file" >&5
2463    . "$ac_site_file" \
2464      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466as_fn_error $? "failed to load site script $ac_site_file
2467See \`config.log' for more details" "$LINENO" 5; }
2468  fi
2469done
2470
2471if test -r "$cache_file"; then
2472  # Some versions of bash will fail to source /dev/null (special files
2473  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2474  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2475    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2476$as_echo "$as_me: loading cache $cache_file" >&6;}
2477    case $cache_file in
2478      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2479      *)                      . "./$cache_file";;
2480    esac
2481  fi
2482else
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2484$as_echo "$as_me: creating cache $cache_file" >&6;}
2485  >$cache_file
2486fi
2487
2488# Check that the precious variables saved in the cache have kept the same
2489# value.
2490ac_cache_corrupted=false
2491for ac_var in $ac_precious_vars; do
2492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493  eval ac_new_set=\$ac_env_${ac_var}_set
2494  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495  eval ac_new_val=\$ac_env_${ac_var}_value
2496  case $ac_old_set,$ac_new_set in
2497    set,)
2498      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2500      ac_cache_corrupted=: ;;
2501    ,set)
2502      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2504      ac_cache_corrupted=: ;;
2505    ,);;
2506    *)
2507      if test "x$ac_old_val" != "x$ac_new_val"; then
2508	# differences in whitespace do not lead to failure.
2509	ac_old_val_w=`echo x $ac_old_val`
2510	ac_new_val_w=`echo x $ac_new_val`
2511	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514	  ac_cache_corrupted=:
2515	else
2516	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518	  eval $ac_var=\$ac_old_val
2519	fi
2520	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2521$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2522	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2523$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2524      fi;;
2525  esac
2526  # Pass precious variables to config.status.
2527  if test "$ac_new_set" = set; then
2528    case $ac_new_val in
2529    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2530    *) ac_arg=$ac_var=$ac_new_val ;;
2531    esac
2532    case " $ac_configure_args " in
2533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2534      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535    esac
2536  fi
2537done
2538if $ac_cache_corrupted; then
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2543  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2544fi
2545## -------------------- ##
2546## Main body of script. ##
2547## -------------------- ##
2548
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555
2556
2557ac_aux_dir=
2558for ac_dir in build-aux "$srcdir"/build-aux; do
2559  if test -f "$ac_dir/install-sh"; then
2560    ac_aux_dir=$ac_dir
2561    ac_install_sh="$ac_aux_dir/install-sh -c"
2562    break
2563  elif test -f "$ac_dir/install.sh"; then
2564    ac_aux_dir=$ac_dir
2565    ac_install_sh="$ac_aux_dir/install.sh -c"
2566    break
2567  elif test -f "$ac_dir/shtool"; then
2568    ac_aux_dir=$ac_dir
2569    ac_install_sh="$ac_aux_dir/shtool install -c"
2570    break
2571  fi
2572done
2573if test -z "$ac_aux_dir"; then
2574  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2575fi
2576
2577# These three variables are undocumented and unsupported,
2578# and are intended to be withdrawn in a future Autoconf release.
2579# They can cause serious problems if a builder's source tree is in a directory
2580# whose full name contains unusual characters.
2581ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2582ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2583ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2584
2585
2586
2587
2588
2589
2590
2591
2592CONFIGURE_CFLAGS=
2593SPECIFIED_CFLAGS="${CFLAGS}"
2594
2595
2596
2597
2598
2599CONFIGURE_CXXFLAGS=
2600SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2601
2602
2603
2604
2605
2606CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2607
2608
2609rev=2
2610
2611
2612srcroot=$srcdir
2613if test "x${srcroot}" = "x." ; then
2614  srcroot=""
2615else
2616  srcroot="${srcroot}/"
2617fi
2618
2619abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2620
2621
2622objroot=""
2623
2624abs_objroot="`pwd`/"
2625
2626
2627if test "x$prefix" = "xNONE" ; then
2628  prefix="/usr/local"
2629fi
2630if test "x$exec_prefix" = "xNONE" ; then
2631  exec_prefix=$prefix
2632fi
2633PREFIX=$prefix
2634
2635BINDIR=`eval echo $bindir`
2636BINDIR=`eval echo $BINDIR`
2637
2638INCLUDEDIR=`eval echo $includedir`
2639INCLUDEDIR=`eval echo $INCLUDEDIR`
2640
2641LIBDIR=`eval echo $libdir`
2642LIBDIR=`eval echo $LIBDIR`
2643
2644DATADIR=`eval echo $datadir`
2645DATADIR=`eval echo $DATADIR`
2646
2647MANDIR=`eval echo $mandir`
2648MANDIR=`eval echo $MANDIR`
2649
2650
2651# Extract the first word of "xsltproc", so it can be a program name with args.
2652set dummy xsltproc; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_path_XSLTPROC+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  case $XSLTPROC in
2659  [\\/]* | ?:[\\/]*)
2660  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2661  ;;
2662  *)
2663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675  done
2676IFS=$as_save_IFS
2677
2678  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2679  ;;
2680esac
2681fi
2682XSLTPROC=$ac_cv_path_XSLTPROC
2683if test -n "$XSLTPROC"; then
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2685$as_echo "$XSLTPROC" >&6; }
2686else
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691
2692if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2693  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2694elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2695  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2696else
2697    DEFAULT_XSLROOT=""
2698fi
2699
2700# Check whether --with-xslroot was given.
2701if test "${with_xslroot+set}" = set; then :
2702  withval=$with_xslroot;
2703if test "x$with_xslroot" = "xno" ; then
2704  XSLROOT="${DEFAULT_XSLROOT}"
2705else
2706  XSLROOT="${with_xslroot}"
2707fi
2708
2709else
2710  XSLROOT="${DEFAULT_XSLROOT}"
2711
2712fi
2713
2714
2715
2716CFLAGS=$CFLAGS
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722if test -n "$ac_tool_prefix"; then
2723  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_CC+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  if test -n "$CC"; then
2731  ac_cv_prog_CC="$CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753$as_echo "$CC" >&6; }
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759
2760fi
2761if test -z "$ac_cv_prog_CC"; then
2762  ac_ct_CC=$CC
2763  # Extract the first word of "gcc", so it can be a program name with args.
2764set dummy gcc; ac_word=$2
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766$as_echo_n "checking for $ac_word... " >&6; }
2767if ${ac_cv_prog_ac_ct_CC+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  if test -n "$ac_ct_CC"; then
2771  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    for ac_exec_ext in '' $ac_executable_extensions; do
2779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780    ac_cv_prog_ac_ct_CC="gcc"
2781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782    break 2
2783  fi
2784done
2785  done
2786IFS=$as_save_IFS
2787
2788fi
2789fi
2790ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791if test -n "$ac_ct_CC"; then
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2793$as_echo "$ac_ct_CC" >&6; }
2794else
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797fi
2798
2799  if test "x$ac_ct_CC" = x; then
2800    CC=""
2801  else
2802    case $cross_compiling:$ac_tool_warned in
2803yes:)
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2806ac_tool_warned=yes ;;
2807esac
2808    CC=$ac_ct_CC
2809  fi
2810else
2811  CC="$ac_cv_prog_CC"
2812fi
2813
2814if test -z "$CC"; then
2815          if test -n "$ac_tool_prefix"; then
2816    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2817set dummy ${ac_tool_prefix}cc; ac_word=$2
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
2820if ${ac_cv_prog_CC+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if test -n "$CC"; then
2824  ac_cv_prog_CC="$CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831    for ac_exec_ext in '' $ac_executable_extensions; do
2832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833    ac_cv_prog_CC="${ac_tool_prefix}cc"
2834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835    break 2
2836  fi
2837done
2838  done
2839IFS=$as_save_IFS
2840
2841fi
2842fi
2843CC=$ac_cv_prog_CC
2844if test -n "$CC"; then
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846$as_echo "$CC" >&6; }
2847else
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849$as_echo "no" >&6; }
2850fi
2851
2852
2853  fi
2854fi
2855if test -z "$CC"; then
2856  # Extract the first word of "cc", so it can be a program name with args.
2857set dummy cc; ac_word=$2
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if ${ac_cv_prog_CC+:} false; then :
2861  $as_echo_n "(cached) " >&6
2862else
2863  if test -n "$CC"; then
2864  ac_cv_prog_CC="$CC" # Let the user override the test.
2865else
2866  ac_prog_rejected=no
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870  IFS=$as_save_IFS
2871  test -z "$as_dir" && as_dir=.
2872    for ac_exec_ext in '' $ac_executable_extensions; do
2873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2875       ac_prog_rejected=yes
2876       continue
2877     fi
2878    ac_cv_prog_CC="cc"
2879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880    break 2
2881  fi
2882done
2883  done
2884IFS=$as_save_IFS
2885
2886if test $ac_prog_rejected = yes; then
2887  # We found a bogon in the path, so make sure we never use it.
2888  set dummy $ac_cv_prog_CC
2889  shift
2890  if test $# != 0; then
2891    # We chose a different compiler from the bogus one.
2892    # However, it has the same basename, so the bogon will be chosen
2893    # first if we set CC to just the basename; use the full file name.
2894    shift
2895    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896  fi
2897fi
2898fi
2899fi
2900CC=$ac_cv_prog_CC
2901if test -n "$CC"; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903$as_echo "$CC" >&6; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
2907fi
2908
2909
2910fi
2911if test -z "$CC"; then
2912  if test -n "$ac_tool_prefix"; then
2913  for ac_prog in cl.exe
2914  do
2915    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_CC+:} false; then :
2920  $as_echo_n "(cached) " >&6
2921else
2922  if test -n "$CC"; then
2923  ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942CC=$ac_cv_prog_CC
2943if test -n "$CC"; then
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945$as_echo "$CC" >&6; }
2946else
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951
2952    test -n "$CC" && break
2953  done
2954fi
2955if test -z "$CC"; then
2956  ac_ct_CC=$CC
2957  for ac_prog in cl.exe
2958do
2959  # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962$as_echo_n "checking for $ac_word... " >&6; }
2963if ${ac_cv_prog_ac_ct_CC+:} false; then :
2964  $as_echo_n "(cached) " >&6
2965else
2966  if test -n "$ac_ct_CC"; then
2967  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972  IFS=$as_save_IFS
2973  test -z "$as_dir" && as_dir=.
2974    for ac_exec_ext in '' $ac_executable_extensions; do
2975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976    ac_cv_prog_ac_ct_CC="$ac_prog"
2977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978    break 2
2979  fi
2980done
2981  done
2982IFS=$as_save_IFS
2983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989$as_echo "$ac_ct_CC" >&6; }
2990else
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992$as_echo "no" >&6; }
2993fi
2994
2995
2996  test -n "$ac_ct_CC" && break
2997done
2998
2999  if test "x$ac_ct_CC" = x; then
3000    CC=""
3001  else
3002    case $cross_compiling:$ac_tool_warned in
3003yes:)
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006ac_tool_warned=yes ;;
3007esac
3008    CC=$ac_ct_CC
3009  fi
3010fi
3011
3012fi
3013
3014
3015test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017as_fn_error $? "no acceptable C compiler found in \$PATH
3018See \`config.log' for more details" "$LINENO" 5; }
3019
3020# Provide some information about the compiler.
3021$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3022set X $ac_compile
3023ac_compiler=$2
3024for ac_option in --version -v -V -qversion; do
3025  { { ac_try="$ac_compiler $ac_option >&5"
3026case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031$as_echo "$ac_try_echo"; } >&5
3032  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3033  ac_status=$?
3034  if test -s conftest.err; then
3035    sed '10a\
3036... rest of stderr output deleted ...
3037         10q' conftest.err >conftest.er1
3038    cat conftest.er1 >&5
3039  fi
3040  rm -f conftest.er1 conftest.err
3041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042  test $ac_status = 0; }
3043done
3044
3045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056ac_clean_files_save=$ac_clean_files
3057ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3058# Try to create an executable without -o first, disregard a.out.
3059# It will help us diagnose broken compilers, and finding out an intuition
3060# of exeext.
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062$as_echo_n "checking whether the C compiler works... " >&6; }
3063ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3064
3065# The possible output files:
3066ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3067
3068ac_rmfiles=
3069for ac_file in $ac_files
3070do
3071  case $ac_file in
3072    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3074  esac
3075done
3076rm -f $ac_rmfiles
3077
3078if { { ac_try="$ac_link_default"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085  (eval "$ac_link_default") 2>&5
3086  ac_status=$?
3087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088  test $ac_status = 0; }; then :
3089  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3090# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3091# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3092# so that the user can short-circuit this test for compilers unknown to
3093# Autoconf.
3094for ac_file in $ac_files ''
3095do
3096  test -f "$ac_file" || continue
3097  case $ac_file in
3098    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3099	;;
3100    [ab].out )
3101	# We found the default executable, but exeext='' is most
3102	# certainly right.
3103	break;;
3104    *.* )
3105	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3106	then :; else
3107	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108	fi
3109	# We set ac_cv_exeext here because the later test for it is not
3110	# safe: cross compilers may not add the suffix if given an `-o'
3111	# argument, so we may need to know it at that point already.
3112	# Even if this section looks crufty: it has the advantage of
3113	# actually working.
3114	break;;
3115    * )
3116	break;;
3117  esac
3118done
3119test "$ac_cv_exeext" = no && ac_cv_exeext=
3120
3121else
3122  ac_file=''
3123fi
3124if test -z "$ac_file"; then :
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127$as_echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error 77 "C compiler cannot create executables
3133See \`config.log' for more details" "$LINENO" 5; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136$as_echo "yes" >&6; }
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3139$as_echo_n "checking for C compiler default output file name... " >&6; }
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141$as_echo "$ac_file" >&6; }
3142ac_exeext=$ac_cv_exeext
3143
3144rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3145ac_clean_files=$ac_clean_files_save
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3147$as_echo_n "checking for suffix of executables... " >&6; }
3148if { { ac_try="$ac_link"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154$as_echo "$ac_try_echo"; } >&5
3155  (eval "$ac_link") 2>&5
3156  ac_status=$?
3157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158  test $ac_status = 0; }; then :
3159  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3161# work properly (i.e., refer to `conftest.exe'), while it won't with
3162# `rm'.
3163for ac_file in conftest.exe conftest conftest.*; do
3164  test -f "$ac_file" || continue
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168	  break;;
3169    * ) break;;
3170  esac
3171done
3172else
3173  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3176See \`config.log' for more details" "$LINENO" 5; }
3177fi
3178rm -f conftest conftest$ac_cv_exeext
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3180$as_echo "$ac_cv_exeext" >&6; }
3181
3182rm -f conftest.$ac_ext
3183EXEEXT=$ac_cv_exeext
3184ac_exeext=$EXEEXT
3185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h.  */
3187#include <stdio.h>
3188int
3189main ()
3190{
3191FILE *f = fopen ("conftest.out", "w");
3192 return ferror (f) || fclose (f) != 0;
3193
3194  ;
3195  return 0;
3196}
3197_ACEOF
3198ac_clean_files="$ac_clean_files conftest.out"
3199# Check that the compiler produces executables we can run.  If not, either
3200# the compiler is broken, or we cross compile.
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3202$as_echo_n "checking whether we are cross compiling... " >&6; }
3203if test "$cross_compiling" != yes; then
3204  { { ac_try="$ac_link"
3205case "(($ac_try" in
3206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207  *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
3211  (eval "$ac_link") 2>&5
3212  ac_status=$?
3213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214  test $ac_status = 0; }
3215  if { ac_try='./conftest$ac_cv_exeext'
3216  { { case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221$as_echo "$ac_try_echo"; } >&5
3222  (eval "$ac_try") 2>&5
3223  ac_status=$?
3224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225  test $ac_status = 0; }; }; then
3226    cross_compiling=no
3227  else
3228    if test "$cross_compiling" = maybe; then
3229	cross_compiling=yes
3230    else
3231	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error $? "cannot run C compiled programs.
3234If you meant to cross compile, use \`--host'.
3235See \`config.log' for more details" "$LINENO" 5; }
3236    fi
3237  fi
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3240$as_echo "$cross_compiling" >&6; }
3241
3242rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3243ac_clean_files=$ac_clean_files_save
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3245$as_echo_n "checking for suffix of object files... " >&6; }
3246if ${ac_cv_objext+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.o conftest.obj
3261if { { ac_try="$ac_compile"
3262case "(($ac_try" in
3263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264  *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267$as_echo "$ac_try_echo"; } >&5
3268  (eval "$ac_compile") 2>&5
3269  ac_status=$?
3270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271  test $ac_status = 0; }; then :
3272  for ac_file in conftest.o conftest.obj conftest.*; do
3273  test -f "$ac_file" || continue;
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3276    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277       break;;
3278  esac
3279done
3280else
3281  $as_echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error $? "cannot compute suffix of object files: cannot compile
3287See \`config.log' for more details" "$LINENO" 5; }
3288fi
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3292$as_echo "$ac_cv_objext" >&6; }
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3296$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297if ${ac_cv_c_compiler_gnu+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306#ifndef __GNUC__
3307       choke me
3308#endif
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314if ac_fn_c_try_compile "$LINENO"; then :
3315  ac_compiler_gnu=yes
3316else
3317  ac_compiler_gnu=no
3318fi
3319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3324$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3325if test $ac_compiler_gnu = yes; then
3326  GCC=yes
3327else
3328  GCC=
3329fi
3330ac_test_CFLAGS=${CFLAGS+set}
3331ac_save_CFLAGS=$CFLAGS
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3333$as_echo_n "checking whether $CC accepts -g... " >&6; }
3334if ${ac_cv_prog_cc_g+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  ac_save_c_werror_flag=$ac_c_werror_flag
3338   ac_c_werror_flag=yes
3339   ac_cv_prog_cc_g=no
3340   CFLAGS="-g"
3341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352if ac_fn_c_try_compile "$LINENO"; then :
3353  ac_cv_prog_cc_g=yes
3354else
3355  CFLAGS=""
3356      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359int
3360main ()
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367if ac_fn_c_try_compile "$LINENO"; then :
3368
3369else
3370  ac_c_werror_flag=$ac_save_c_werror_flag
3371	 CFLAGS="-g"
3372	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384  ac_cv_prog_cc_g=yes
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391   ac_c_werror_flag=$ac_save_c_werror_flag
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3394$as_echo "$ac_cv_prog_cc_g" >&6; }
3395if test "$ac_test_CFLAGS" = set; then
3396  CFLAGS=$ac_save_CFLAGS
3397elif test $ac_cv_prog_cc_g = yes; then
3398  if test "$GCC" = yes; then
3399    CFLAGS="-g -O2"
3400  else
3401    CFLAGS="-g"
3402  fi
3403else
3404  if test "$GCC" = yes; then
3405    CFLAGS="-O2"
3406  else
3407    CFLAGS=
3408  fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3411$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3412if ${ac_cv_prog_cc_c89+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  ac_cv_prog_cc_c89=no
3416ac_save_CC=$CC
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419#include <stdarg.h>
3420#include <stdio.h>
3421struct stat;
3422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3423struct buf { int x; };
3424FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425static char *e (p, i)
3426     char **p;
3427     int i;
3428{
3429  return p[i];
3430}
3431static char *f (char * (*g) (char **, int), char **p, ...)
3432{
3433  char *s;
3434  va_list v;
3435  va_start (v,p);
3436  s = g (p, va_arg (v,int));
3437  va_end (v);
3438  return s;
3439}
3440
3441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3442   function prototypes and stuff, but not '\xHH' hex character constants.
3443   These don't provoke an error unfortunately, instead are silently treated
3444   as 'x'.  The following induces an error, until -std is added to get
3445   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3446   array size at least.  It's necessary to write '\x00'==0 to get something
3447   that's true only with -std.  */
3448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451   inside strings and character constants.  */
3452#define FOO(x) 'x'
3453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454
3455int test (int i, double x);
3456struct s1 {int (*f) (int a);};
3457struct s2 {int (*f) (double a);};
3458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459int argc;
3460char **argv;
3461int
3462main ()
3463{
3464return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471do
3472  CC="$ac_save_CC $ac_arg"
3473  if ac_fn_c_try_compile "$LINENO"; then :
3474  ac_cv_prog_cc_c89=$ac_arg
3475fi
3476rm -f core conftest.err conftest.$ac_objext
3477  test "x$ac_cv_prog_cc_c89" != "xno" && break
3478done
3479rm -f conftest.$ac_ext
3480CC=$ac_save_CC
3481
3482fi
3483# AC_CACHE_VAL
3484case "x$ac_cv_prog_cc_c89" in
3485  x)
3486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3487$as_echo "none needed" >&6; } ;;
3488  xno)
3489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490$as_echo "unsupported" >&6; } ;;
3491  *)
3492    CC="$CC $ac_cv_prog_cc_c89"
3493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3495esac
3496if test "x$ac_cv_prog_cc_c89" != xno; then :
3497
3498fi
3499
3500ac_ext=c
3501ac_cpp='$CPP $CPPFLAGS'
3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505
3506
3507if test "x$GCC" != "xyes" ; then
3508
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3510$as_echo_n "checking whether compiler is MSVC... " >&6; }
3511if ${je_cv_msvc+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521#ifndef _MSC_VER
3522  int fail-1;
3523#endif
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  je_cv_msvc=yes
3531else
3532  je_cv_msvc=no
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3537$as_echo "$je_cv_msvc" >&6; }
3538fi
3539
3540je_cv_cray_prgenv_wrapper=""
3541if test "x${PE_ENV}" != "x" ; then
3542  case "${CC}" in
3543    CC|cc)
3544	je_cv_cray_prgenv_wrapper="yes"
3545	;;
3546    *)
3547       ;;
3548  esac
3549fi
3550
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3552$as_echo_n "checking whether compiler is cray... " >&6; }
3553if ${je_cv_cray+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563#ifndef _CRAYC
3564  int fail-1;
3565#endif
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572  je_cv_cray=yes
3573else
3574  je_cv_cray=no
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3579$as_echo "$je_cv_cray" >&6; }
3580
3581if test "x${je_cv_cray}" = "xyes" ; then
3582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3583$as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3584if ${je_cv_cray_84+:} false; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3595  int fail-1;
3596#endif
3597
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602if ac_fn_c_try_compile "$LINENO"; then :
3603  je_cv_cray_84=yes
3604else
3605  je_cv_cray_84=no
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3610$as_echo "$je_cv_cray_84" >&6; }
3611fi
3612
3613if test "x$GCC" = "xyes" ; then
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3616$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3617T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3618T_APPEND_V=-std=gnu11
3619  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3620  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3621else
3622  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3623fi
3624
3625
3626if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3627  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3628else
3629  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3630fi
3631
3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635
3636int
3637main ()
3638{
3639
3640    return 0;
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647  je_cv_cflags_added=-std=gnu11
3648              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649$as_echo "yes" >&6; }
3650else
3651  je_cv_cflags_added=
3652              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3655
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3659  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3660else
3661  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3662fi
3663
3664
3665  if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3666    cat >>confdefs.h <<_ACEOF
3667#define JEMALLOC_HAS_RESTRICT 1
3668_ACEOF
3669
3670  else
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3673$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3674T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3675T_APPEND_V=-std=gnu99
3676  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3677  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3678else
3679  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3680fi
3681
3682
3683if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3684  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3685else
3686  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3687fi
3688
3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692
3693int
3694main ()
3695{
3696
3697    return 0;
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704  je_cv_cflags_added=-std=gnu99
3705              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706$as_echo "yes" >&6; }
3707else
3708  je_cv_cflags_added=
3709              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710$as_echo "no" >&6; }
3711              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3712
3713fi
3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3716  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3717else
3718  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3719fi
3720
3721
3722    if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3723      cat >>confdefs.h <<_ACEOF
3724#define JEMALLOC_HAS_RESTRICT 1
3725_ACEOF
3726
3727    fi
3728  fi
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3731$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3732T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3733T_APPEND_V=-Wall
3734  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3735  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3736else
3737  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3738fi
3739
3740
3741if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3742  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3743else
3744  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3745fi
3746
3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h.  */
3749
3750
3751int
3752main ()
3753{
3754
3755    return 0;
3756
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_compile "$LINENO"; then :
3762  je_cv_cflags_added=-Wall
3763              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3764$as_echo "yes" >&6; }
3765else
3766  je_cv_cflags_added=
3767              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3770
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3774  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3775else
3776  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3777fi
3778
3779
3780
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3782$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3783T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3784T_APPEND_V=-Wshorten-64-to-32
3785  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3786  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3787else
3788  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3789fi
3790
3791
3792if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3793  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3794else
3795  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3796fi
3797
3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801
3802int
3803main ()
3804{
3805
3806    return 0;
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_compile "$LINENO"; then :
3813  je_cv_cflags_added=-Wshorten-64-to-32
3814              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3815$as_echo "yes" >&6; }
3816else
3817  je_cv_cflags_added=
3818              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3821
3822fi
3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3825  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3826else
3827  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3828fi
3829
3830
3831
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3833$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3834T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3835T_APPEND_V=-Wsign-compare
3836  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3837  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3838else
3839  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3840fi
3841
3842
3843if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3844  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3845else
3846  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3847fi
3848
3849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852
3853int
3854main ()
3855{
3856
3857    return 0;
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864  je_cv_cflags_added=-Wsign-compare
3865              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866$as_echo "yes" >&6; }
3867else
3868  je_cv_cflags_added=
3869              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
3871              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3872
3873fi
3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3876  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3877else
3878  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3879fi
3880
3881
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3884$as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3885T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3886T_APPEND_V=-Wundef
3887  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3888  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3889else
3890  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3891fi
3892
3893
3894if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3895  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3896else
3897  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3898fi
3899
3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902
3903
3904int
3905main ()
3906{
3907
3908    return 0;
3909
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914if ac_fn_c_try_compile "$LINENO"; then :
3915  je_cv_cflags_added=-Wundef
3916              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3917$as_echo "yes" >&6; }
3918else
3919  je_cv_cflags_added=
3920              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
3922              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3923
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3927  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3928else
3929  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3930fi
3931
3932
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3935$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3936T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3937T_APPEND_V=-Wno-format-zero-length
3938  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3939  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3940else
3941  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3942fi
3943
3944
3945if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3946  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3947else
3948  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3949fi
3950
3951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h.  */
3953
3954
3955int
3956main ()
3957{
3958
3959    return 0;
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965if ac_fn_c_try_compile "$LINENO"; then :
3966  je_cv_cflags_added=-Wno-format-zero-length
3967              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968$as_echo "yes" >&6; }
3969else
3970  je_cv_cflags_added=
3971              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3974
3975fi
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3978  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3979else
3980  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3981fi
3982
3983
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3986$as_echo_n "checking whether compiler supports -pipe... " >&6; }
3987T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3988T_APPEND_V=-pipe
3989  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3990  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3991else
3992  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3993fi
3994
3995
3996if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3997  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3998else
3999  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4000fi
4001
4002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004
4005
4006int
4007main ()
4008{
4009
4010    return 0;
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"; then :
4017  je_cv_cflags_added=-pipe
4018              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019$as_echo "yes" >&6; }
4020else
4021  je_cv_cflags_added=
4022              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4025
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4029  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4030else
4031  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4032fi
4033
4034
4035
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4037$as_echo_n "checking whether compiler supports -g3... " >&6; }
4038T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4039T_APPEND_V=-g3
4040  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4041  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4042else
4043  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4044fi
4045
4046
4047if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4048  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4049else
4050  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4051fi
4052
4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055
4056
4057int
4058main ()
4059{
4060
4061    return 0;
4062
4063  ;
4064  return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_compile "$LINENO"; then :
4068  je_cv_cflags_added=-g3
4069              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070$as_echo "yes" >&6; }
4071else
4072  je_cv_cflags_added=
4073              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
4075              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4076
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4080  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4081else
4082  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4083fi
4084
4085
4086elif test "x$je_cv_msvc" = "xyes" ; then
4087  CC="$CC -nologo"
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4090$as_echo_n "checking whether compiler supports -Zi... " >&6; }
4091T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4092T_APPEND_V=-Zi
4093  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4094  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4095else
4096  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4097fi
4098
4099
4100if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4101  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4102else
4103  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4104fi
4105
4106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109
4110int
4111main ()
4112{
4113
4114    return 0;
4115
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120if ac_fn_c_try_compile "$LINENO"; then :
4121  je_cv_cflags_added=-Zi
4122              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123$as_echo "yes" >&6; }
4124else
4125  je_cv_cflags_added=
4126              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
4128              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4129
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4133  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4134else
4135  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4136fi
4137
4138
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4141$as_echo_n "checking whether compiler supports -MT... " >&6; }
4142T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4143T_APPEND_V=-MT
4144  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4145  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4146else
4147  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4148fi
4149
4150
4151if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4152  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4153else
4154  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4155fi
4156
4157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160
4161int
4162main ()
4163{
4164
4165    return 0;
4166
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_compile "$LINENO"; then :
4172  je_cv_cflags_added=-MT
4173              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174$as_echo "yes" >&6; }
4175else
4176  je_cv_cflags_added=
4177              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178$as_echo "no" >&6; }
4179              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4180
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4184  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4185else
4186  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4187fi
4188
4189
4190
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4192$as_echo_n "checking whether compiler supports -W3... " >&6; }
4193T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4194T_APPEND_V=-W3
4195  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4196  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4197else
4198  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4199fi
4200
4201
4202if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4203  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4204else
4205  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4206fi
4207
4208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211
4212int
4213main ()
4214{
4215
4216    return 0;
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223  je_cv_cflags_added=-W3
4224              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225$as_echo "yes" >&6; }
4226else
4227  je_cv_cflags_added=
4228              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4231
4232fi
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4235  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4236else
4237  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4238fi
4239
4240
4241
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4243$as_echo_n "checking whether compiler supports -FS... " >&6; }
4244T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4245T_APPEND_V=-FS
4246  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4247  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4248else
4249  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4250fi
4251
4252
4253if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4254  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4255else
4256  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4257fi
4258
4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262
4263int
4264main ()
4265{
4266
4267    return 0;
4268
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273if ac_fn_c_try_compile "$LINENO"; then :
4274  je_cv_cflags_added=-FS
4275              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276$as_echo "yes" >&6; }
4277else
4278  je_cv_cflags_added=
4279              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280$as_echo "no" >&6; }
4281              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4282
4283fi
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4286  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4287else
4288  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4289fi
4290
4291
4292  T_APPEND_V=-I${srcdir}/include/msvc_compat
4293  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4294  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4295else
4296  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4297fi
4298
4299
4300fi
4301if test "x$je_cv_cray" = "xyes" ; then
4302    if test "x$je_cv_cray_84" = "xyes" ; then
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4305$as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4306T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4307T_APPEND_V=-hipa2
4308  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4309  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4310else
4311  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4312fi
4313
4314
4315if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4316  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4317else
4318  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4319fi
4320
4321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323
4324
4325int
4326main ()
4327{
4328
4329    return 0;
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"; then :
4336  je_cv_cflags_added=-hipa2
4337              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4338$as_echo "yes" >&6; }
4339else
4340  je_cv_cflags_added=
4341              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4344
4345fi
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4348  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4349else
4350  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4351fi
4352
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4356$as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4357T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4358T_APPEND_V=-hnognu
4359  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4360  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4361else
4362  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4363fi
4364
4365
4366if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4367  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4368else
4369  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4370fi
4371
4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374
4375
4376int
4377main ()
4378{
4379
4380    return 0;
4381
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386if ac_fn_c_try_compile "$LINENO"; then :
4387  je_cv_cflags_added=-hnognu
4388              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389$as_echo "yes" >&6; }
4390else
4391  je_cv_cflags_added=
4392              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393$as_echo "no" >&6; }
4394              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4395
4396fi
4397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4399  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4400else
4401  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4402fi
4403
4404
4405  fi
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4408$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4409T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4410T_APPEND_V=-hnomessage=128
4411  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4412  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4413else
4414  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4415fi
4416
4417
4418if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4419  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4420else
4421  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4422fi
4423
4424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426
4427
4428int
4429main ()
4430{
4431
4432    return 0;
4433
4434  ;
4435  return 0;
4436}
4437_ACEOF
4438if ac_fn_c_try_compile "$LINENO"; then :
4439  je_cv_cflags_added=-hnomessage=128
4440              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441$as_echo "yes" >&6; }
4442else
4443  je_cv_cflags_added=
4444              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4447
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4451  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4452else
4453  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4454fi
4455
4456
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4459$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4460T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4461T_APPEND_V=-hnomessage=1357
4462  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4463  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4464else
4465  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4466fi
4467
4468
4469if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4470  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4471else
4472  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4473fi
4474
4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477
4478
4479int
4480main ()
4481{
4482
4483    return 0;
4484
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489if ac_fn_c_try_compile "$LINENO"; then :
4490  je_cv_cflags_added=-hnomessage=1357
4491              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4492$as_echo "yes" >&6; }
4493else
4494  je_cv_cflags_added=
4495              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4498
4499fi
4500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4502  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4503else
4504  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4505fi
4506
4507
4508fi
4509
4510
4511
4512ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4518$as_echo_n "checking how to run the C preprocessor... " >&6; }
4519# On Suns, sometimes $CPP names a directory.
4520if test -n "$CPP" && test -d "$CPP"; then
4521  CPP=
4522fi
4523if test -z "$CPP"; then
4524  if ${ac_cv_prog_CPP+:} false; then :
4525  $as_echo_n "(cached) " >&6
4526else
4527      # Double quotes because CPP needs to be expanded
4528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4529    do
4530      ac_preproc_ok=false
4531for ac_c_preproc_warn_flag in '' yes
4532do
4533  # Use a header file that comes with gcc, so configuring glibc
4534  # with a fresh cross-compiler works.
4535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536  # <limits.h> exists even on freestanding compilers.
4537  # On the NeXT, cc -E runs the code through the compiler's parser,
4538  # not just through cpp. "Syntax error" is here to catch this case.
4539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h.  */
4541#ifdef __STDC__
4542# include <limits.h>
4543#else
4544# include <assert.h>
4545#endif
4546		     Syntax error
4547_ACEOF
4548if ac_fn_c_try_cpp "$LINENO"; then :
4549
4550else
4551  # Broken: fails on valid input.
4552continue
4553fi
4554rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556  # OK, works on sane cases.  Now check whether nonexistent headers
4557  # can be detected and how.
4558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h.  */
4560#include <ac_nonexistent.h>
4561_ACEOF
4562if ac_fn_c_try_cpp "$LINENO"; then :
4563  # Broken: success on invalid input.
4564continue
4565else
4566  # Passes both tests.
4567ac_preproc_ok=:
4568break
4569fi
4570rm -f conftest.err conftest.i conftest.$ac_ext
4571
4572done
4573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574rm -f conftest.i conftest.err conftest.$ac_ext
4575if $ac_preproc_ok; then :
4576  break
4577fi
4578
4579    done
4580    ac_cv_prog_CPP=$CPP
4581
4582fi
4583  CPP=$ac_cv_prog_CPP
4584else
4585  ac_cv_prog_CPP=$CPP
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4588$as_echo "$CPP" >&6; }
4589ac_preproc_ok=false
4590for ac_c_preproc_warn_flag in '' yes
4591do
4592  # Use a header file that comes with gcc, so configuring glibc
4593  # with a fresh cross-compiler works.
4594  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595  # <limits.h> exists even on freestanding compilers.
4596  # On the NeXT, cc -E runs the code through the compiler's parser,
4597  # not just through cpp. "Syntax error" is here to catch this case.
4598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h.  */
4600#ifdef __STDC__
4601# include <limits.h>
4602#else
4603# include <assert.h>
4604#endif
4605		     Syntax error
4606_ACEOF
4607if ac_fn_c_try_cpp "$LINENO"; then :
4608
4609else
4610  # Broken: fails on valid input.
4611continue
4612fi
4613rm -f conftest.err conftest.i conftest.$ac_ext
4614
4615  # OK, works on sane cases.  Now check whether nonexistent headers
4616  # can be detected and how.
4617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h.  */
4619#include <ac_nonexistent.h>
4620_ACEOF
4621if ac_fn_c_try_cpp "$LINENO"; then :
4622  # Broken: success on invalid input.
4623continue
4624else
4625  # Passes both tests.
4626ac_preproc_ok=:
4627break
4628fi
4629rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631done
4632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633rm -f conftest.i conftest.err conftest.$ac_ext
4634if $ac_preproc_ok; then :
4635
4636else
4637  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4640See \`config.log' for more details" "$LINENO" 5; }
4641fi
4642
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650# Check whether --enable-cxx was given.
4651if test "${enable_cxx+set}" = set; then :
4652  enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4653  enable_cxx="0"
4654else
4655  enable_cxx="1"
4656fi
4657
4658else
4659  enable_cxx="1"
4660
4661fi
4662
4663if test "x$enable_cxx" = "x1" ; then
4664      # ===========================================================================
4665#   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4666# ===========================================================================
4667#
4668# SYNOPSIS
4669#
4670#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4671#
4672# DESCRIPTION
4673#
4674#   Check for baseline language coverage in the compiler for the specified
4675#   version of the C++ standard.  If necessary, add switches to CXX and
4676#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
4677#   or '14' (for the C++14 standard).
4678#
4679#   The second argument, if specified, indicates whether you insist on an
4680#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4681#   -std=c++11).  If neither is specified, you get whatever works, with
4682#   preference for an extended mode.
4683#
4684#   The third argument, if specified 'mandatory' or if left unspecified,
4685#   indicates that baseline support for the specified C++ standard is
4686#   required and that the macro should error out if no mode with that
4687#   support is found.  If specified 'optional', then configuration proceeds
4688#   regardless, after defining HAVE_CXX${VERSION} if and only if a
4689#   supporting mode is found.
4690#
4691# LICENSE
4692#
4693#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
4694#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
4695#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
4696#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
4697#   Copyright (c) 2015 Paul Norman <penorman@mac.com>
4698#   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
4699#
4700#   Copying and distribution of this file, with or without modification, are
4701#   permitted in any medium without royalty provided the copyright notice
4702#   and this notice are preserved.  This file is offered as-is, without any
4703#   warranty.
4704
4705#serial 4
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726  ac_ext=cpp
4727ac_cpp='$CXXCPP $CPPFLAGS'
4728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4731if test -z "$CXX"; then
4732  if test -n "$CCC"; then
4733    CXX=$CCC
4734  else
4735    if test -n "$ac_tool_prefix"; then
4736  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4737  do
4738    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if ${ac_cv_prog_CXX+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  if test -n "$CXX"; then
4746  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751  IFS=$as_save_IFS
4752  test -z "$as_dir" && as_dir=.
4753    for ac_exec_ext in '' $ac_executable_extensions; do
4754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757    break 2
4758  fi
4759done
4760  done
4761IFS=$as_save_IFS
4762
4763fi
4764fi
4765CXX=$ac_cv_prog_CXX
4766if test -n "$CXX"; then
4767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4768$as_echo "$CXX" >&6; }
4769else
4770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773
4774
4775    test -n "$CXX" && break
4776  done
4777fi
4778if test -z "$CXX"; then
4779  ac_ct_CXX=$CXX
4780  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781do
4782  # Extract the first word of "$ac_prog", so it can be a program name with args.
4783set dummy $ac_prog; ac_word=$2
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
4786if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  if test -n "$ac_ct_CXX"; then
4790  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_ac_ct_CXX="$ac_prog"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4810if test -n "$ac_ct_CXX"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4812$as_echo "$ac_ct_CXX" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819  test -n "$ac_ct_CXX" && break
4820done
4821
4822  if test "x$ac_ct_CXX" = x; then
4823    CXX="g++"
4824  else
4825    case $cross_compiling:$ac_tool_warned in
4826yes:)
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829ac_tool_warned=yes ;;
4830esac
4831    CXX=$ac_ct_CXX
4832  fi
4833fi
4834
4835  fi
4836fi
4837# Provide some information about the compiler.
4838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4839set X $ac_compile
4840ac_compiler=$2
4841for ac_option in --version -v -V -qversion; do
4842  { { ac_try="$ac_compiler $ac_option >&5"
4843case "(($ac_try" in
4844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845  *) ac_try_echo=$ac_try;;
4846esac
4847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848$as_echo "$ac_try_echo"; } >&5
4849  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4850  ac_status=$?
4851  if test -s conftest.err; then
4852    sed '10a\
4853... rest of stderr output deleted ...
4854         10q' conftest.err >conftest.er1
4855    cat conftest.er1 >&5
4856  fi
4857  rm -f conftest.er1 conftest.err
4858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4859  test $ac_status = 0; }
4860done
4861
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4863$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4864if ${ac_cv_cxx_compiler_gnu+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869
4870int
4871main ()
4872{
4873#ifndef __GNUC__
4874       choke me
4875#endif
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881if ac_fn_cxx_try_compile "$LINENO"; then :
4882  ac_compiler_gnu=yes
4883else
4884  ac_compiler_gnu=no
4885fi
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4888
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4891$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4892if test $ac_compiler_gnu = yes; then
4893  GXX=yes
4894else
4895  GXX=
4896fi
4897ac_test_CXXFLAGS=${CXXFLAGS+set}
4898ac_save_CXXFLAGS=$CXXFLAGS
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4900$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4901if ${ac_cv_prog_cxx_g+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4905   ac_cxx_werror_flag=yes
4906   ac_cv_prog_cxx_g=no
4907   CXXFLAGS="-g"
4908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h.  */
4910
4911int
4912main ()
4913{
4914
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919if ac_fn_cxx_try_compile "$LINENO"; then :
4920  ac_cv_prog_cxx_g=yes
4921else
4922  CXXFLAGS=""
4923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934if ac_fn_cxx_try_compile "$LINENO"; then :
4935
4936else
4937  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4938	 CXXFLAGS="-g"
4939	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950if ac_fn_cxx_try_compile "$LINENO"; then :
4951  ac_cv_prog_cxx_g=yes
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4961$as_echo "$ac_cv_prog_cxx_g" >&6; }
4962if test "$ac_test_CXXFLAGS" = set; then
4963  CXXFLAGS=$ac_save_CXXFLAGS
4964elif test $ac_cv_prog_cxx_g = yes; then
4965  if test "$GXX" = yes; then
4966    CXXFLAGS="-g -O2"
4967  else
4968    CXXFLAGS="-g"
4969  fi
4970else
4971  if test "$GXX" = yes; then
4972    CXXFLAGS="-O2"
4973  else
4974    CXXFLAGS=
4975  fi
4976fi
4977ac_ext=cpp
4978ac_cpp='$CXXCPP $CPPFLAGS'
4979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4982
4983
4984      ax_cxx_compile_cxx14_required=false
4985  ac_ext=cpp
4986ac_cpp='$CXXCPP $CPPFLAGS'
4987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4990  ac_success=no
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
4992$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
4993if ${ax_cv_cxx_compile_cxx14+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998
4999
5000// If the compiler admits that it is not ready for C++11, why torture it?
5001// Hopefully, this will speed up the test.
5002
5003#ifndef __cplusplus
5004
5005#error "This is not a C++ compiler"
5006
5007#elif __cplusplus < 201103L
5008
5009#error "This is not a C++11 compiler"
5010
5011#else
5012
5013namespace cxx11
5014{
5015
5016  namespace test_static_assert
5017  {
5018
5019    template <typename T>
5020    struct check
5021    {
5022      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5023    };
5024
5025  }
5026
5027  namespace test_final_override
5028  {
5029
5030    struct Base
5031    {
5032      virtual void f() {}
5033    };
5034
5035    struct Derived : public Base
5036    {
5037      virtual void f() override {}
5038    };
5039
5040  }
5041
5042  namespace test_double_right_angle_brackets
5043  {
5044
5045    template < typename T >
5046    struct check {};
5047
5048    typedef check<void> single_type;
5049    typedef check<check<void>> double_type;
5050    typedef check<check<check<void>>> triple_type;
5051    typedef check<check<check<check<void>>>> quadruple_type;
5052
5053  }
5054
5055  namespace test_decltype
5056  {
5057
5058    int
5059    f()
5060    {
5061      int a = 1;
5062      decltype(a) b = 2;
5063      return a + b;
5064    }
5065
5066  }
5067
5068  namespace test_type_deduction
5069  {
5070
5071    template < typename T1, typename T2 >
5072    struct is_same
5073    {
5074      static const bool value = false;
5075    };
5076
5077    template < typename T >
5078    struct is_same<T, T>
5079    {
5080      static const bool value = true;
5081    };
5082
5083    template < typename T1, typename T2 >
5084    auto
5085    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5086    {
5087      return a1 + a2;
5088    }
5089
5090    int
5091    test(const int c, volatile int v)
5092    {
5093      static_assert(is_same<int, decltype(0)>::value == true, "");
5094      static_assert(is_same<int, decltype(c)>::value == false, "");
5095      static_assert(is_same<int, decltype(v)>::value == false, "");
5096      auto ac = c;
5097      auto av = v;
5098      auto sumi = ac + av + 'x';
5099      auto sumf = ac + av + 1.0;
5100      static_assert(is_same<int, decltype(ac)>::value == true, "");
5101      static_assert(is_same<int, decltype(av)>::value == true, "");
5102      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5103      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5104      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5105      return (sumf > 0.0) ? sumi : add(c, v);
5106    }
5107
5108  }
5109
5110  namespace test_noexcept
5111  {
5112
5113    int f() { return 0; }
5114    int g() noexcept { return 0; }
5115
5116    static_assert(noexcept(f()) == false, "");
5117    static_assert(noexcept(g()) == true, "");
5118
5119  }
5120
5121  namespace test_constexpr
5122  {
5123
5124    template < typename CharT >
5125    unsigned long constexpr
5126    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5127    {
5128      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5129    }
5130
5131    template < typename CharT >
5132    unsigned long constexpr
5133    strlen_c(const CharT *const s) noexcept
5134    {
5135      return strlen_c_r(s, 0UL);
5136    }
5137
5138    static_assert(strlen_c("") == 0UL, "");
5139    static_assert(strlen_c("1") == 1UL, "");
5140    static_assert(strlen_c("example") == 7UL, "");
5141    static_assert(strlen_c("another\0example") == 7UL, "");
5142
5143  }
5144
5145  namespace test_rvalue_references
5146  {
5147
5148    template < int N >
5149    struct answer
5150    {
5151      static constexpr int value = N;
5152    };
5153
5154    answer<1> f(int&)       { return answer<1>(); }
5155    answer<2> f(const int&) { return answer<2>(); }
5156    answer<3> f(int&&)      { return answer<3>(); }
5157
5158    void
5159    test()
5160    {
5161      int i = 0;
5162      const int c = 0;
5163      static_assert(decltype(f(i))::value == 1, "");
5164      static_assert(decltype(f(c))::value == 2, "");
5165      static_assert(decltype(f(0))::value == 3, "");
5166    }
5167
5168  }
5169
5170  namespace test_uniform_initialization
5171  {
5172
5173    struct test
5174    {
5175      static const int zero {};
5176      static const int one {1};
5177    };
5178
5179    static_assert(test::zero == 0, "");
5180    static_assert(test::one == 1, "");
5181
5182  }
5183
5184  namespace test_lambdas
5185  {
5186
5187    void
5188    test1()
5189    {
5190      auto lambda1 = [](){};
5191      auto lambda2 = lambda1;
5192      lambda1();
5193      lambda2();
5194    }
5195
5196    int
5197    test2()
5198    {
5199      auto a = [](int i, int j){ return i + j; }(1, 2);
5200      auto b = []() -> int { return '0'; }();
5201      auto c = [=](){ return a + b; }();
5202      auto d = [&](){ return c; }();
5203      auto e = [a, &b](int x) mutable {
5204        const auto identity = [](int y){ return y; };
5205        for (auto i = 0; i < a; ++i)
5206          a += b--;
5207        return x + identity(a + b);
5208      }(0);
5209      return a + b + c + d + e;
5210    }
5211
5212    int
5213    test3()
5214    {
5215      const auto nullary = [](){ return 0; };
5216      const auto unary = [](int x){ return x; };
5217      using nullary_t = decltype(nullary);
5218      using unary_t = decltype(unary);
5219      const auto higher1st = [](nullary_t f){ return f(); };
5220      const auto higher2nd = [unary](nullary_t f1){
5221        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5222      };
5223      return higher1st(nullary) + higher2nd(nullary)(unary);
5224    }
5225
5226  }
5227
5228  namespace test_variadic_templates
5229  {
5230
5231    template <int...>
5232    struct sum;
5233
5234    template <int N0, int... N1toN>
5235    struct sum<N0, N1toN...>
5236    {
5237      static constexpr auto value = N0 + sum<N1toN...>::value;
5238    };
5239
5240    template <>
5241    struct sum<>
5242    {
5243      static constexpr auto value = 0;
5244    };
5245
5246    static_assert(sum<>::value == 0, "");
5247    static_assert(sum<1>::value == 1, "");
5248    static_assert(sum<23>::value == 23, "");
5249    static_assert(sum<1, 2>::value == 3, "");
5250    static_assert(sum<5, 5, 11>::value == 21, "");
5251    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5252
5253  }
5254
5255  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5256  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5257  // because of this.
5258  namespace test_template_alias_sfinae
5259  {
5260
5261    struct foo {};
5262
5263    template<typename T>
5264    using member = typename T::member_type;
5265
5266    template<typename T>
5267    void func(...) {}
5268
5269    template<typename T>
5270    void func(member<T>*) {}
5271
5272    void test();
5273
5274    void test() { func<foo>(0); }
5275
5276  }
5277
5278}  // namespace cxx11
5279
5280#endif  // __cplusplus >= 201103L
5281
5282
5283
5284
5285// If the compiler admits that it is not ready for C++14, why torture it?
5286// Hopefully, this will speed up the test.
5287
5288#ifndef __cplusplus
5289
5290#error "This is not a C++ compiler"
5291
5292#elif __cplusplus < 201402L
5293
5294#error "This is not a C++14 compiler"
5295
5296#else
5297
5298namespace cxx14
5299{
5300
5301  namespace test_polymorphic_lambdas
5302  {
5303
5304    int
5305    test()
5306    {
5307      const auto lambda = [](auto&&... args){
5308        const auto istiny = [](auto x){
5309          return (sizeof(x) == 1UL) ? 1 : 0;
5310        };
5311        const int aretiny[] = { istiny(args)... };
5312        return aretiny[0];
5313      };
5314      return lambda(1, 1L, 1.0f, '1');
5315    }
5316
5317  }
5318
5319  namespace test_binary_literals
5320  {
5321
5322    constexpr auto ivii = 0b0000000000101010;
5323    static_assert(ivii == 42, "wrong value");
5324
5325  }
5326
5327  namespace test_generalized_constexpr
5328  {
5329
5330    template < typename CharT >
5331    constexpr unsigned long
5332    strlen_c(const CharT *const s) noexcept
5333    {
5334      auto length = 0UL;
5335      for (auto p = s; *p; ++p)
5336        ++length;
5337      return length;
5338    }
5339
5340    static_assert(strlen_c("") == 0UL, "");
5341    static_assert(strlen_c("x") == 1UL, "");
5342    static_assert(strlen_c("test") == 4UL, "");
5343    static_assert(strlen_c("another\0test") == 7UL, "");
5344
5345  }
5346
5347  namespace test_lambda_init_capture
5348  {
5349
5350    int
5351    test()
5352    {
5353      auto x = 0;
5354      const auto lambda1 = [a = x](int b){ return a + b; };
5355      const auto lambda2 = [a = lambda1(x)](){ return a; };
5356      return lambda2();
5357    }
5358
5359  }
5360
5361  namespace test_digit_seperators
5362  {
5363
5364    constexpr auto ten_million = 100'000'000;
5365    static_assert(ten_million == 100000000, "");
5366
5367  }
5368
5369  namespace test_return_type_deduction
5370  {
5371
5372    auto f(int& x) { return x; }
5373    decltype(auto) g(int& x) { return x; }
5374
5375    template < typename T1, typename T2 >
5376    struct is_same
5377    {
5378      static constexpr auto value = false;
5379    };
5380
5381    template < typename T >
5382    struct is_same<T, T>
5383    {
5384      static constexpr auto value = true;
5385    };
5386
5387    int
5388    test()
5389    {
5390      auto x = 0;
5391      static_assert(is_same<int, decltype(f(x))>::value, "");
5392      static_assert(is_same<int&, decltype(g(x))>::value, "");
5393      return x;
5394    }
5395
5396  }
5397
5398}  // namespace cxx14
5399
5400#endif  // __cplusplus >= 201402L
5401
5402
5403
5404_ACEOF
5405if ac_fn_cxx_try_compile "$LINENO"; then :
5406  ax_cv_cxx_compile_cxx14=yes
5407else
5408  ax_cv_cxx_compile_cxx14=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5413$as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5414  if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5415    ac_success=yes
5416  fi
5417
5418
5419
5420    if test x$ac_success = xno; then
5421                for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5422      cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5423      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5424$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5425if eval \${$cachevar+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  ac_save_CXX="$CXX"
5429         CXX="$CXX $switch"
5430         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432
5433
5434// If the compiler admits that it is not ready for C++11, why torture it?
5435// Hopefully, this will speed up the test.
5436
5437#ifndef __cplusplus
5438
5439#error "This is not a C++ compiler"
5440
5441#elif __cplusplus < 201103L
5442
5443#error "This is not a C++11 compiler"
5444
5445#else
5446
5447namespace cxx11
5448{
5449
5450  namespace test_static_assert
5451  {
5452
5453    template <typename T>
5454    struct check
5455    {
5456      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5457    };
5458
5459  }
5460
5461  namespace test_final_override
5462  {
5463
5464    struct Base
5465    {
5466      virtual void f() {}
5467    };
5468
5469    struct Derived : public Base
5470    {
5471      virtual void f() override {}
5472    };
5473
5474  }
5475
5476  namespace test_double_right_angle_brackets
5477  {
5478
5479    template < typename T >
5480    struct check {};
5481
5482    typedef check<void> single_type;
5483    typedef check<check<void>> double_type;
5484    typedef check<check<check<void>>> triple_type;
5485    typedef check<check<check<check<void>>>> quadruple_type;
5486
5487  }
5488
5489  namespace test_decltype
5490  {
5491
5492    int
5493    f()
5494    {
5495      int a = 1;
5496      decltype(a) b = 2;
5497      return a + b;
5498    }
5499
5500  }
5501
5502  namespace test_type_deduction
5503  {
5504
5505    template < typename T1, typename T2 >
5506    struct is_same
5507    {
5508      static const bool value = false;
5509    };
5510
5511    template < typename T >
5512    struct is_same<T, T>
5513    {
5514      static const bool value = true;
5515    };
5516
5517    template < typename T1, typename T2 >
5518    auto
5519    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5520    {
5521      return a1 + a2;
5522    }
5523
5524    int
5525    test(const int c, volatile int v)
5526    {
5527      static_assert(is_same<int, decltype(0)>::value == true, "");
5528      static_assert(is_same<int, decltype(c)>::value == false, "");
5529      static_assert(is_same<int, decltype(v)>::value == false, "");
5530      auto ac = c;
5531      auto av = v;
5532      auto sumi = ac + av + 'x';
5533      auto sumf = ac + av + 1.0;
5534      static_assert(is_same<int, decltype(ac)>::value == true, "");
5535      static_assert(is_same<int, decltype(av)>::value == true, "");
5536      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5537      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5538      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5539      return (sumf > 0.0) ? sumi : add(c, v);
5540    }
5541
5542  }
5543
5544  namespace test_noexcept
5545  {
5546
5547    int f() { return 0; }
5548    int g() noexcept { return 0; }
5549
5550    static_assert(noexcept(f()) == false, "");
5551    static_assert(noexcept(g()) == true, "");
5552
5553  }
5554
5555  namespace test_constexpr
5556  {
5557
5558    template < typename CharT >
5559    unsigned long constexpr
5560    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5561    {
5562      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5563    }
5564
5565    template < typename CharT >
5566    unsigned long constexpr
5567    strlen_c(const CharT *const s) noexcept
5568    {
5569      return strlen_c_r(s, 0UL);
5570    }
5571
5572    static_assert(strlen_c("") == 0UL, "");
5573    static_assert(strlen_c("1") == 1UL, "");
5574    static_assert(strlen_c("example") == 7UL, "");
5575    static_assert(strlen_c("another\0example") == 7UL, "");
5576
5577  }
5578
5579  namespace test_rvalue_references
5580  {
5581
5582    template < int N >
5583    struct answer
5584    {
5585      static constexpr int value = N;
5586    };
5587
5588    answer<1> f(int&)       { return answer<1>(); }
5589    answer<2> f(const int&) { return answer<2>(); }
5590    answer<3> f(int&&)      { return answer<3>(); }
5591
5592    void
5593    test()
5594    {
5595      int i = 0;
5596      const int c = 0;
5597      static_assert(decltype(f(i))::value == 1, "");
5598      static_assert(decltype(f(c))::value == 2, "");
5599      static_assert(decltype(f(0))::value == 3, "");
5600    }
5601
5602  }
5603
5604  namespace test_uniform_initialization
5605  {
5606
5607    struct test
5608    {
5609      static const int zero {};
5610      static const int one {1};
5611    };
5612
5613    static_assert(test::zero == 0, "");
5614    static_assert(test::one == 1, "");
5615
5616  }
5617
5618  namespace test_lambdas
5619  {
5620
5621    void
5622    test1()
5623    {
5624      auto lambda1 = [](){};
5625      auto lambda2 = lambda1;
5626      lambda1();
5627      lambda2();
5628    }
5629
5630    int
5631    test2()
5632    {
5633      auto a = [](int i, int j){ return i + j; }(1, 2);
5634      auto b = []() -> int { return '0'; }();
5635      auto c = [=](){ return a + b; }();
5636      auto d = [&](){ return c; }();
5637      auto e = [a, &b](int x) mutable {
5638        const auto identity = [](int y){ return y; };
5639        for (auto i = 0; i < a; ++i)
5640          a += b--;
5641        return x + identity(a + b);
5642      }(0);
5643      return a + b + c + d + e;
5644    }
5645
5646    int
5647    test3()
5648    {
5649      const auto nullary = [](){ return 0; };
5650      const auto unary = [](int x){ return x; };
5651      using nullary_t = decltype(nullary);
5652      using unary_t = decltype(unary);
5653      const auto higher1st = [](nullary_t f){ return f(); };
5654      const auto higher2nd = [unary](nullary_t f1){
5655        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5656      };
5657      return higher1st(nullary) + higher2nd(nullary)(unary);
5658    }
5659
5660  }
5661
5662  namespace test_variadic_templates
5663  {
5664
5665    template <int...>
5666    struct sum;
5667
5668    template <int N0, int... N1toN>
5669    struct sum<N0, N1toN...>
5670    {
5671      static constexpr auto value = N0 + sum<N1toN...>::value;
5672    };
5673
5674    template <>
5675    struct sum<>
5676    {
5677      static constexpr auto value = 0;
5678    };
5679
5680    static_assert(sum<>::value == 0, "");
5681    static_assert(sum<1>::value == 1, "");
5682    static_assert(sum<23>::value == 23, "");
5683    static_assert(sum<1, 2>::value == 3, "");
5684    static_assert(sum<5, 5, 11>::value == 21, "");
5685    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5686
5687  }
5688
5689  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5690  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5691  // because of this.
5692  namespace test_template_alias_sfinae
5693  {
5694
5695    struct foo {};
5696
5697    template<typename T>
5698    using member = typename T::member_type;
5699
5700    template<typename T>
5701    void func(...) {}
5702
5703    template<typename T>
5704    void func(member<T>*) {}
5705
5706    void test();
5707
5708    void test() { func<foo>(0); }
5709
5710  }
5711
5712}  // namespace cxx11
5713
5714#endif  // __cplusplus >= 201103L
5715
5716
5717
5718
5719// If the compiler admits that it is not ready for C++14, why torture it?
5720// Hopefully, this will speed up the test.
5721
5722#ifndef __cplusplus
5723
5724#error "This is not a C++ compiler"
5725
5726#elif __cplusplus < 201402L
5727
5728#error "This is not a C++14 compiler"
5729
5730#else
5731
5732namespace cxx14
5733{
5734
5735  namespace test_polymorphic_lambdas
5736  {
5737
5738    int
5739    test()
5740    {
5741      const auto lambda = [](auto&&... args){
5742        const auto istiny = [](auto x){
5743          return (sizeof(x) == 1UL) ? 1 : 0;
5744        };
5745        const int aretiny[] = { istiny(args)... };
5746        return aretiny[0];
5747      };
5748      return lambda(1, 1L, 1.0f, '1');
5749    }
5750
5751  }
5752
5753  namespace test_binary_literals
5754  {
5755
5756    constexpr auto ivii = 0b0000000000101010;
5757    static_assert(ivii == 42, "wrong value");
5758
5759  }
5760
5761  namespace test_generalized_constexpr
5762  {
5763
5764    template < typename CharT >
5765    constexpr unsigned long
5766    strlen_c(const CharT *const s) noexcept
5767    {
5768      auto length = 0UL;
5769      for (auto p = s; *p; ++p)
5770        ++length;
5771      return length;
5772    }
5773
5774    static_assert(strlen_c("") == 0UL, "");
5775    static_assert(strlen_c("x") == 1UL, "");
5776    static_assert(strlen_c("test") == 4UL, "");
5777    static_assert(strlen_c("another\0test") == 7UL, "");
5778
5779  }
5780
5781  namespace test_lambda_init_capture
5782  {
5783
5784    int
5785    test()
5786    {
5787      auto x = 0;
5788      const auto lambda1 = [a = x](int b){ return a + b; };
5789      const auto lambda2 = [a = lambda1(x)](){ return a; };
5790      return lambda2();
5791    }
5792
5793  }
5794
5795  namespace test_digit_seperators
5796  {
5797
5798    constexpr auto ten_million = 100'000'000;
5799    static_assert(ten_million == 100000000, "");
5800
5801  }
5802
5803  namespace test_return_type_deduction
5804  {
5805
5806    auto f(int& x) { return x; }
5807    decltype(auto) g(int& x) { return x; }
5808
5809    template < typename T1, typename T2 >
5810    struct is_same
5811    {
5812      static constexpr auto value = false;
5813    };
5814
5815    template < typename T >
5816    struct is_same<T, T>
5817    {
5818      static constexpr auto value = true;
5819    };
5820
5821    int
5822    test()
5823    {
5824      auto x = 0;
5825      static_assert(is_same<int, decltype(f(x))>::value, "");
5826      static_assert(is_same<int&, decltype(g(x))>::value, "");
5827      return x;
5828    }
5829
5830  }
5831
5832}  // namespace cxx14
5833
5834#endif  // __cplusplus >= 201402L
5835
5836
5837
5838_ACEOF
5839if ac_fn_cxx_try_compile "$LINENO"; then :
5840  eval $cachevar=yes
5841else
5842  eval $cachevar=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845         CXX="$ac_save_CXX"
5846fi
5847eval ac_res=\$$cachevar
5848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5849$as_echo "$ac_res" >&6; }
5850      if eval test x\$$cachevar = xyes; then
5851        CXX="$CXX $switch"
5852        if test -n "$CXXCPP" ; then
5853          CXXCPP="$CXXCPP $switch"
5854        fi
5855        ac_success=yes
5856        break
5857      fi
5858    done
5859  fi
5860  ac_ext=c
5861ac_cpp='$CPP $CPPFLAGS'
5862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866  if test x$ax_cxx_compile_cxx14_required = xtrue; then
5867    if test x$ac_success = xno; then
5868      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5869    fi
5870  fi
5871  if test x$ac_success = xno; then
5872    HAVE_CXX14=0
5873    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5874$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5875  else
5876    HAVE_CXX14=1
5877
5878$as_echo "#define HAVE_CXX14 1" >>confdefs.h
5879
5880  fi
5881
5882
5883  if test "x${HAVE_CXX14}" = "x1" ; then
5884
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5886$as_echo_n "checking whether compiler supports -Wall... " >&6; }
5887T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5888T_APPEND_V=-Wall
5889  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5890  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5891else
5892  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5893fi
5894
5895
5896if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5897  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5898else
5899  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5900fi
5901
5902ac_ext=cpp
5903ac_cpp='$CXXCPP $CPPFLAGS'
5904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5907
5908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910
5911
5912int
5913main ()
5914{
5915
5916    return 0;
5917
5918  ;
5919  return 0;
5920}
5921_ACEOF
5922if ac_fn_cxx_try_compile "$LINENO"; then :
5923  je_cv_cxxflags_added=-Wall
5924              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5925$as_echo "yes" >&6; }
5926else
5927  je_cv_cxxflags_added=
5928              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5931
5932fi
5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934ac_ext=c
5935ac_cpp='$CPP $CPPFLAGS'
5936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939
5940if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5941  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5942else
5943  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5944fi
5945
5946
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
5949$as_echo_n "checking whether compiler supports -g3... " >&6; }
5950T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5951T_APPEND_V=-g3
5952  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5953  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5954else
5955  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5956fi
5957
5958
5959if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5960  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5961else
5962  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5963fi
5964
5965ac_ext=cpp
5966ac_cpp='$CXXCPP $CPPFLAGS'
5967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5970
5971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973
5974
5975int
5976main ()
5977{
5978
5979    return 0;
5980
5981  ;
5982  return 0;
5983}
5984_ACEOF
5985if ac_fn_cxx_try_compile "$LINENO"; then :
5986  je_cv_cxxflags_added=-g3
5987              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5988$as_echo "yes" >&6; }
5989else
5990  je_cv_cxxflags_added=
5991              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5994
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997ac_ext=c
5998ac_cpp='$CPP $CPPFLAGS'
5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001ac_compiler_gnu=$ac_cv_c_compiler_gnu
6002
6003if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6004  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6005else
6006  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6007fi
6008
6009
6010
6011    SAVED_LIBS="${LIBS}"
6012    T_APPEND_V=-lstdc++
6013  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6014  LIBS="${LIBS}${T_APPEND_V}"
6015else
6016  LIBS="${LIBS} ${T_APPEND_V}"
6017fi
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6022$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6023if ${je_cv_libstdcxx+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028
6029#include <stdlib.h>
6030
6031int
6032main ()
6033{
6034
6035	int *arr = (int *)malloc(sizeof(int) * 42);
6036	if (arr == NULL)
6037		return 1;
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_link "$LINENO"; then :
6044  je_cv_libstdcxx=yes
6045else
6046  je_cv_libstdcxx=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext \
6049    conftest$ac_exeext conftest.$ac_ext
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6052$as_echo "$je_cv_libstdcxx" >&6; }
6053
6054    if test "x${je_cv_libstdcxx}" = "xno" ; then
6055      LIBS="${SAVED_LIBS}"
6056    fi
6057  else
6058    enable_cxx="0"
6059  fi
6060fi
6061
6062
6063
6064
6065
6066
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6068$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6069if ${ac_cv_path_GREP+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  if test -z "$GREP"; then
6073  ac_path_GREP_found=false
6074  # Loop through the user's path and test for each of PROGNAME-LIST
6075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6077do
6078  IFS=$as_save_IFS
6079  test -z "$as_dir" && as_dir=.
6080    for ac_prog in grep ggrep; do
6081    for ac_exec_ext in '' $ac_executable_extensions; do
6082      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6083      as_fn_executable_p "$ac_path_GREP" || continue
6084# Check for GNU ac_path_GREP and select it if it is found.
6085  # Check for GNU $ac_path_GREP
6086case `"$ac_path_GREP" --version 2>&1` in
6087*GNU*)
6088  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6089*)
6090  ac_count=0
6091  $as_echo_n 0123456789 >"conftest.in"
6092  while :
6093  do
6094    cat "conftest.in" "conftest.in" >"conftest.tmp"
6095    mv "conftest.tmp" "conftest.in"
6096    cp "conftest.in" "conftest.nl"
6097    $as_echo 'GREP' >> "conftest.nl"
6098    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6099    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6100    as_fn_arith $ac_count + 1 && ac_count=$as_val
6101    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6102      # Best one so far, save it but keep looking for a better one
6103      ac_cv_path_GREP="$ac_path_GREP"
6104      ac_path_GREP_max=$ac_count
6105    fi
6106    # 10*(2^10) chars as input seems more than enough
6107    test $ac_count -gt 10 && break
6108  done
6109  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6110esac
6111
6112      $ac_path_GREP_found && break 3
6113    done
6114  done
6115  done
6116IFS=$as_save_IFS
6117  if test -z "$ac_cv_path_GREP"; then
6118    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6119  fi
6120else
6121  ac_cv_path_GREP=$GREP
6122fi
6123
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6126$as_echo "$ac_cv_path_GREP" >&6; }
6127 GREP="$ac_cv_path_GREP"
6128
6129
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6131$as_echo_n "checking for egrep... " >&6; }
6132if ${ac_cv_path_EGREP+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6136   then ac_cv_path_EGREP="$GREP -E"
6137   else
6138     if test -z "$EGREP"; then
6139  ac_path_EGREP_found=false
6140  # Loop through the user's path and test for each of PROGNAME-LIST
6141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146    for ac_prog in egrep; do
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6149      as_fn_executable_p "$ac_path_EGREP" || continue
6150# Check for GNU ac_path_EGREP and select it if it is found.
6151  # Check for GNU $ac_path_EGREP
6152case `"$ac_path_EGREP" --version 2>&1` in
6153*GNU*)
6154  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6155*)
6156  ac_count=0
6157  $as_echo_n 0123456789 >"conftest.in"
6158  while :
6159  do
6160    cat "conftest.in" "conftest.in" >"conftest.tmp"
6161    mv "conftest.tmp" "conftest.in"
6162    cp "conftest.in" "conftest.nl"
6163    $as_echo 'EGREP' >> "conftest.nl"
6164    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6165    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6166    as_fn_arith $ac_count + 1 && ac_count=$as_val
6167    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6168      # Best one so far, save it but keep looking for a better one
6169      ac_cv_path_EGREP="$ac_path_EGREP"
6170      ac_path_EGREP_max=$ac_count
6171    fi
6172    # 10*(2^10) chars as input seems more than enough
6173    test $ac_count -gt 10 && break
6174  done
6175  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6176esac
6177
6178      $ac_path_EGREP_found && break 3
6179    done
6180  done
6181  done
6182IFS=$as_save_IFS
6183  if test -z "$ac_cv_path_EGREP"; then
6184    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6185  fi
6186else
6187  ac_cv_path_EGREP=$EGREP
6188fi
6189
6190   fi
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6193$as_echo "$ac_cv_path_EGREP" >&6; }
6194 EGREP="$ac_cv_path_EGREP"
6195
6196
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6198$as_echo_n "checking for ANSI C header files... " >&6; }
6199if ${ac_cv_header_stdc+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204#include <stdlib.h>
6205#include <stdarg.h>
6206#include <string.h>
6207#include <float.h>
6208
6209int
6210main ()
6211{
6212
6213  ;
6214  return 0;
6215}
6216_ACEOF
6217if ac_fn_c_try_compile "$LINENO"; then :
6218  ac_cv_header_stdc=yes
6219else
6220  ac_cv_header_stdc=no
6221fi
6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223
6224if test $ac_cv_header_stdc = yes; then
6225  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228#include <string.h>
6229
6230_ACEOF
6231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6232  $EGREP "memchr" >/dev/null 2>&1; then :
6233
6234else
6235  ac_cv_header_stdc=no
6236fi
6237rm -f conftest*
6238
6239fi
6240
6241if test $ac_cv_header_stdc = yes; then
6242  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245#include <stdlib.h>
6246
6247_ACEOF
6248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6249  $EGREP "free" >/dev/null 2>&1; then :
6250
6251else
6252  ac_cv_header_stdc=no
6253fi
6254rm -f conftest*
6255
6256fi
6257
6258if test $ac_cv_header_stdc = yes; then
6259  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6260  if test "$cross_compiling" = yes; then :
6261  :
6262else
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265#include <ctype.h>
6266#include <stdlib.h>
6267#if ((' ' & 0x0FF) == 0x020)
6268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6270#else
6271# define ISLOWER(c) \
6272		   (('a' <= (c) && (c) <= 'i') \
6273		     || ('j' <= (c) && (c) <= 'r') \
6274		     || ('s' <= (c) && (c) <= 'z'))
6275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6276#endif
6277
6278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6279int
6280main ()
6281{
6282  int i;
6283  for (i = 0; i < 256; i++)
6284    if (XOR (islower (i), ISLOWER (i))
6285	|| toupper (i) != TOUPPER (i))
6286      return 2;
6287  return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_run "$LINENO"; then :
6291
6292else
6293  ac_cv_header_stdc=no
6294fi
6295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6296  conftest.$ac_objext conftest.beam conftest.$ac_ext
6297fi
6298
6299fi
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6302$as_echo "$ac_cv_header_stdc" >&6; }
6303if test $ac_cv_header_stdc = yes; then
6304
6305$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6306
6307fi
6308
6309# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6311		  inttypes.h stdint.h unistd.h
6312do :
6313  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6315"
6316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6317  cat >>confdefs.h <<_ACEOF
6318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6319_ACEOF
6320
6321fi
6322
6323done
6324
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6327$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6328if ${ac_cv_c_bigendian+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  ac_cv_c_bigendian=unknown
6332    # See if we're dealing with a universal compiler.
6333    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335#ifndef __APPLE_CC__
6336	       not a universal capable compiler
6337	     #endif
6338	     typedef int dummy;
6339
6340_ACEOF
6341if ac_fn_c_try_compile "$LINENO"; then :
6342
6343	# Check for potential -arch flags.  It is not universal unless
6344	# there are at least two -arch flags with different values.
6345	ac_arch=
6346	ac_prev=
6347	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6348	 if test -n "$ac_prev"; then
6349	   case $ac_word in
6350	     i?86 | x86_64 | ppc | ppc64)
6351	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6352		 ac_arch=$ac_word
6353	       else
6354		 ac_cv_c_bigendian=universal
6355		 break
6356	       fi
6357	       ;;
6358	   esac
6359	   ac_prev=
6360	 elif test "x$ac_word" = "x-arch"; then
6361	   ac_prev=arch
6362	 fi
6363       done
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366    if test $ac_cv_c_bigendian = unknown; then
6367      # See if sys/param.h defines the BYTE_ORDER macro.
6368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h.  */
6370#include <sys/types.h>
6371	     #include <sys/param.h>
6372
6373int
6374main ()
6375{
6376#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6377		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6378		     && LITTLE_ENDIAN)
6379	      bogus endian macros
6380	     #endif
6381
6382  ;
6383  return 0;
6384}
6385_ACEOF
6386if ac_fn_c_try_compile "$LINENO"; then :
6387  # It does; now see whether it defined to BIG_ENDIAN or not.
6388	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390#include <sys/types.h>
6391		#include <sys/param.h>
6392
6393int
6394main ()
6395{
6396#if BYTE_ORDER != BIG_ENDIAN
6397		 not big endian
6398		#endif
6399
6400  ;
6401  return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"; then :
6405  ac_cv_c_bigendian=yes
6406else
6407  ac_cv_c_bigendian=no
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412    fi
6413    if test $ac_cv_c_bigendian = unknown; then
6414      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6415      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417#include <limits.h>
6418
6419int
6420main ()
6421{
6422#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6423	      bogus endian macros
6424	     #endif
6425
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then :
6431  # It does; now see whether it defined to _BIG_ENDIAN or not.
6432	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h.  */
6434#include <limits.h>
6435
6436int
6437main ()
6438{
6439#ifndef _BIG_ENDIAN
6440		 not big endian
6441		#endif
6442
6443  ;
6444  return 0;
6445}
6446_ACEOF
6447if ac_fn_c_try_compile "$LINENO"; then :
6448  ac_cv_c_bigendian=yes
6449else
6450  ac_cv_c_bigendian=no
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455    fi
6456    if test $ac_cv_c_bigendian = unknown; then
6457      # Compile a test program.
6458      if test "$cross_compiling" = yes; then :
6459  # Try to guess by grepping values from an object file.
6460	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462short int ascii_mm[] =
6463		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6464		short int ascii_ii[] =
6465		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6466		int use_ascii (int i) {
6467		  return ascii_mm[i] + ascii_ii[i];
6468		}
6469		short int ebcdic_ii[] =
6470		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6471		short int ebcdic_mm[] =
6472		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6473		int use_ebcdic (int i) {
6474		  return ebcdic_mm[i] + ebcdic_ii[i];
6475		}
6476		extern int foo;
6477
6478int
6479main ()
6480{
6481return use_ascii (foo) == use_ebcdic (foo);
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_compile "$LINENO"; then :
6487  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6488	      ac_cv_c_bigendian=yes
6489	    fi
6490	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6491	      if test "$ac_cv_c_bigendian" = unknown; then
6492		ac_cv_c_bigendian=no
6493	      else
6494		# finding both strings is unlikely to happen, but who knows?
6495		ac_cv_c_bigendian=unknown
6496	      fi
6497	    fi
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500else
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503$ac_includes_default
6504int
6505main ()
6506{
6507
6508	     /* Are we little or big endian?  From Harbison&Steele.  */
6509	     union
6510	     {
6511	       long int l;
6512	       char c[sizeof (long int)];
6513	     } u;
6514	     u.l = 1;
6515	     return u.c[sizeof (long int) - 1] == 1;
6516
6517  ;
6518  return 0;
6519}
6520_ACEOF
6521if ac_fn_c_try_run "$LINENO"; then :
6522  ac_cv_c_bigendian=no
6523else
6524  ac_cv_c_bigendian=yes
6525fi
6526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6527  conftest.$ac_objext conftest.beam conftest.$ac_ext
6528fi
6529
6530    fi
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6533$as_echo "$ac_cv_c_bigendian" >&6; }
6534 case $ac_cv_c_bigendian in #(
6535   yes)
6536     ac_cv_big_endian=1;; #(
6537   no)
6538     ac_cv_big_endian=0 ;; #(
6539   universal)
6540
6541$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6542
6543     ;; #(
6544   *)
6545     as_fn_error $? "unknown endianness
6546 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6547 esac
6548
6549if test "x${ac_cv_big_endian}" = "x1" ; then
6550  cat >>confdefs.h <<_ACEOF
6551#define JEMALLOC_BIG_ENDIAN
6552_ACEOF
6553
6554fi
6555
6556if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6557  T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6558  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6559  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6560else
6561  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6562fi
6563
6564
6565fi
6566
6567if test "x${je_cv_msvc}" = "xyes" ; then
6568  LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6570$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6571else
6572  # The cast to long int works around a bug in the HP C Compiler
6573# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6574# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6575# This bug is HP SR number 8606223364.
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6577$as_echo_n "checking size of void *... " >&6; }
6578if ${ac_cv_sizeof_void_p+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6582
6583else
6584  if test "$ac_cv_type_void_p" = yes; then
6585     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6587as_fn_error 77 "cannot compute sizeof (void *)
6588See \`config.log' for more details" "$LINENO" 5; }
6589   else
6590     ac_cv_sizeof_void_p=0
6591   fi
6592fi
6593
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6596$as_echo "$ac_cv_sizeof_void_p" >&6; }
6597
6598
6599
6600cat >>confdefs.h <<_ACEOF
6601#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6602_ACEOF
6603
6604
6605  if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6606    LG_SIZEOF_PTR=3
6607  elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6608    LG_SIZEOF_PTR=2
6609  else
6610    as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6611  fi
6612fi
6613cat >>confdefs.h <<_ACEOF
6614#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6615_ACEOF
6616
6617
6618# The cast to long int works around a bug in the HP C Compiler
6619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6621# This bug is HP SR number 8606223364.
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6623$as_echo_n "checking size of int... " >&6; }
6624if ${ac_cv_sizeof_int+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6628
6629else
6630  if test "$ac_cv_type_int" = yes; then
6631     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6633as_fn_error 77 "cannot compute sizeof (int)
6634See \`config.log' for more details" "$LINENO" 5; }
6635   else
6636     ac_cv_sizeof_int=0
6637   fi
6638fi
6639
6640fi
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6642$as_echo "$ac_cv_sizeof_int" >&6; }
6643
6644
6645
6646cat >>confdefs.h <<_ACEOF
6647#define SIZEOF_INT $ac_cv_sizeof_int
6648_ACEOF
6649
6650
6651if test "x${ac_cv_sizeof_int}" = "x8" ; then
6652  LG_SIZEOF_INT=3
6653elif test "x${ac_cv_sizeof_int}" = "x4" ; then
6654  LG_SIZEOF_INT=2
6655else
6656  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6657fi
6658cat >>confdefs.h <<_ACEOF
6659#define LG_SIZEOF_INT $LG_SIZEOF_INT
6660_ACEOF
6661
6662
6663# The cast to long int works around a bug in the HP C Compiler
6664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6666# This bug is HP SR number 8606223364.
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6668$as_echo_n "checking size of long... " >&6; }
6669if ${ac_cv_sizeof_long+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6673
6674else
6675  if test "$ac_cv_type_long" = yes; then
6676     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6678as_fn_error 77 "cannot compute sizeof (long)
6679See \`config.log' for more details" "$LINENO" 5; }
6680   else
6681     ac_cv_sizeof_long=0
6682   fi
6683fi
6684
6685fi
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6687$as_echo "$ac_cv_sizeof_long" >&6; }
6688
6689
6690
6691cat >>confdefs.h <<_ACEOF
6692#define SIZEOF_LONG $ac_cv_sizeof_long
6693_ACEOF
6694
6695
6696if test "x${ac_cv_sizeof_long}" = "x8" ; then
6697  LG_SIZEOF_LONG=3
6698elif test "x${ac_cv_sizeof_long}" = "x4" ; then
6699  LG_SIZEOF_LONG=2
6700else
6701  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6702fi
6703cat >>confdefs.h <<_ACEOF
6704#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6705_ACEOF
6706
6707
6708# The cast to long int works around a bug in the HP C Compiler
6709# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6710# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6711# This bug is HP SR number 8606223364.
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6713$as_echo_n "checking size of long long... " >&6; }
6714if ${ac_cv_sizeof_long_long+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6718
6719else
6720  if test "$ac_cv_type_long_long" = yes; then
6721     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6723as_fn_error 77 "cannot compute sizeof (long long)
6724See \`config.log' for more details" "$LINENO" 5; }
6725   else
6726     ac_cv_sizeof_long_long=0
6727   fi
6728fi
6729
6730fi
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6732$as_echo "$ac_cv_sizeof_long_long" >&6; }
6733
6734
6735
6736cat >>confdefs.h <<_ACEOF
6737#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6738_ACEOF
6739
6740
6741if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6742  LG_SIZEOF_LONG_LONG=3
6743elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6744  LG_SIZEOF_LONG_LONG=2
6745else
6746  as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6747fi
6748cat >>confdefs.h <<_ACEOF
6749#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6750_ACEOF
6751
6752
6753# The cast to long int works around a bug in the HP C Compiler
6754# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6755# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6756# This bug is HP SR number 8606223364.
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6758$as_echo_n "checking size of intmax_t... " >&6; }
6759if ${ac_cv_sizeof_intmax_t+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
6763
6764else
6765  if test "$ac_cv_type_intmax_t" = yes; then
6766     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768as_fn_error 77 "cannot compute sizeof (intmax_t)
6769See \`config.log' for more details" "$LINENO" 5; }
6770   else
6771     ac_cv_sizeof_intmax_t=0
6772   fi
6773fi
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6777$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6778
6779
6780
6781cat >>confdefs.h <<_ACEOF
6782#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6783_ACEOF
6784
6785
6786if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6787  LG_SIZEOF_INTMAX_T=4
6788elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6789  LG_SIZEOF_INTMAX_T=3
6790elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6791  LG_SIZEOF_INTMAX_T=2
6792else
6793  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6794fi
6795cat >>confdefs.h <<_ACEOF
6796#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6797_ACEOF
6798
6799
6800# Make sure we can run config.sub.
6801$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6802  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6803
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6805$as_echo_n "checking build system type... " >&6; }
6806if ${ac_cv_build+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  ac_build_alias=$build_alias
6810test "x$ac_build_alias" = x &&
6811  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6812test "x$ac_build_alias" = x &&
6813  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6815  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6816
6817fi
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6819$as_echo "$ac_cv_build" >&6; }
6820case $ac_cv_build in
6821*-*-*) ;;
6822*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6823esac
6824build=$ac_cv_build
6825ac_save_IFS=$IFS; IFS='-'
6826set x $ac_cv_build
6827shift
6828build_cpu=$1
6829build_vendor=$2
6830shift; shift
6831# Remember, the first character of IFS is used to create $*,
6832# except with old shells:
6833build_os=$*
6834IFS=$ac_save_IFS
6835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6836
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6839$as_echo_n "checking host system type... " >&6; }
6840if ${ac_cv_host+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test "x$host_alias" = x; then
6844  ac_cv_host=$ac_cv_build
6845else
6846  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6847    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6848fi
6849
6850fi
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6852$as_echo "$ac_cv_host" >&6; }
6853case $ac_cv_host in
6854*-*-*) ;;
6855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6856esac
6857host=$ac_cv_host
6858ac_save_IFS=$IFS; IFS='-'
6859set x $ac_cv_host
6860shift
6861host_cpu=$1
6862host_vendor=$2
6863shift; shift
6864# Remember, the first character of IFS is used to create $*,
6865# except with old shells:
6866host_os=$*
6867IFS=$ac_save_IFS
6868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6869
6870
6871CPU_SPINWAIT=""
6872case "${host_cpu}" in
6873  i686|x86_64)
6874	HAVE_CPU_SPINWAIT=1
6875	if test "x${je_cv_msvc}" = "xyes" ; then
6876	    if ${je_cv_pause_msvc+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
6881$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
6882if ${je_cv_pause_msvc+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887
6888int
6889main ()
6890{
6891_mm_pause(); return 0;
6892  ;
6893  return 0;
6894}
6895_ACEOF
6896if ac_fn_c_try_link "$LINENO"; then :
6897  je_cv_pause_msvc=yes
6898else
6899  je_cv_pause_msvc=no
6900fi
6901rm -f core conftest.err conftest.$ac_objext \
6902    conftest$ac_exeext conftest.$ac_ext
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
6905$as_echo "$je_cv_pause_msvc" >&6; }
6906
6907fi
6908
6909	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
6910		CPU_SPINWAIT='_mm_pause()'
6911	    fi
6912	else
6913	    if ${je_cv_pause+:} false; then :
6914  $as_echo_n "(cached) " >&6
6915else
6916
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
6918$as_echo_n "checking whether pause instruction is compilable... " >&6; }
6919if ${je_cv_pause+:} false; then :
6920  $as_echo_n "(cached) " >&6
6921else
6922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h.  */
6924
6925int
6926main ()
6927{
6928__asm__ volatile("pause"); return 0;
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933if ac_fn_c_try_link "$LINENO"; then :
6934  je_cv_pause=yes
6935else
6936  je_cv_pause=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext \
6939    conftest$ac_exeext conftest.$ac_ext
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
6942$as_echo "$je_cv_pause" >&6; }
6943
6944fi
6945
6946	    if test "x${je_cv_pause}" = "xyes" ; then
6947		CPU_SPINWAIT='__asm__ volatile("pause")'
6948	    fi
6949	fi
6950	;;
6951  *)
6952	HAVE_CPU_SPINWAIT=0
6953	;;
6954esac
6955cat >>confdefs.h <<_ACEOF
6956#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
6957_ACEOF
6958
6959cat >>confdefs.h <<_ACEOF
6960#define CPU_SPINWAIT $CPU_SPINWAIT
6961_ACEOF
6962
6963
6964
6965# Check whether --with-lg_vaddr was given.
6966if test "${with_lg_vaddr+set}" = set; then :
6967  withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
6968else
6969  LG_VADDR="detect"
6970fi
6971
6972
6973case "${host_cpu}" in
6974  aarch64)
6975    if test "x$LG_VADDR" = "xdetect"; then
6976      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6977$as_echo_n "checking number of significant virtual address bits... " >&6; }
6978      if test "x${LG_SIZEOF_PTR}" = "x2" ; then
6979        #aarch64 ILP32
6980        LG_VADDR=32
6981      else
6982        #aarch64 LP64
6983        LG_VADDR=48
6984      fi
6985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
6986$as_echo "$LG_VADDR" >&6; }
6987    fi
6988    ;;
6989  x86_64)
6990    if test "x$LG_VADDR" = "xdetect"; then
6991      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6992$as_echo_n "checking number of significant virtual address bits... " >&6; }
6993if ${je_cv_lg_vaddr+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  if test "$cross_compiling" = yes; then :
6997  je_cv_lg_vaddr=57
6998else
6999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h.  */
7001
7002#include <stdio.h>
7003#ifdef _WIN32
7004#include <limits.h>
7005#include <intrin.h>
7006typedef unsigned __int32 uint32_t;
7007#else
7008#include <stdint.h>
7009#endif
7010
7011int
7012main ()
7013{
7014
7015	uint32_t r[4];
7016	uint32_t eax_in = 0x80000008U;
7017#ifdef _WIN32
7018	__cpuid((int *)r, (int)eax_in);
7019#else
7020	asm volatile ("cpuid"
7021	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7022	    : "a" (eax_in), "c" (0)
7023	);
7024#endif
7025	uint32_t eax_out = r[0];
7026	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7027	FILE *f = fopen("conftest.out", "w");
7028	if (f == NULL) {
7029		return 1;
7030	}
7031	if (vaddr > (sizeof(void *) << 3)) {
7032		vaddr = sizeof(void *) << 3;
7033	}
7034	fprintf(f, "%u", vaddr);
7035	fclose(f);
7036	return 0;
7037
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042if ac_fn_c_try_run "$LINENO"; then :
7043  je_cv_lg_vaddr=`cat conftest.out`
7044else
7045  je_cv_lg_vaddr=error
7046fi
7047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7048  conftest.$ac_objext conftest.beam conftest.$ac_ext
7049fi
7050
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7053$as_echo "$je_cv_lg_vaddr" >&6; }
7054      if test "x${je_cv_lg_vaddr}" != "x" ; then
7055        LG_VADDR="${je_cv_lg_vaddr}"
7056      fi
7057      if test "x${LG_VADDR}" != "xerror" ; then
7058        cat >>confdefs.h <<_ACEOF
7059#define LG_VADDR $LG_VADDR
7060_ACEOF
7061
7062      else
7063        as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7064      fi
7065    fi
7066    ;;
7067  *)
7068    if test "x$LG_VADDR" = "xdetect"; then
7069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7070$as_echo_n "checking number of significant virtual address bits... " >&6; }
7071      if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7072        LG_VADDR=64
7073      elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7074        LG_VADDR=32
7075      elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7076        LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7077      else
7078        as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7079      fi
7080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7081$as_echo "$LG_VADDR" >&6; }
7082    fi
7083    ;;
7084esac
7085cat >>confdefs.h <<_ACEOF
7086#define LG_VADDR $LG_VADDR
7087_ACEOF
7088
7089
7090LD_PRELOAD_VAR="LD_PRELOAD"
7091so="so"
7092importlib="${so}"
7093o="$ac_objext"
7094a="a"
7095exe="$ac_exeext"
7096libprefix="lib"
7097link_whole_archive="0"
7098DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7099RPATH='-Wl,-rpath,$(1)'
7100SOREV="${so}.${rev}"
7101PIC_CFLAGS='-fPIC -DPIC'
7102CTARGET='-o $@'
7103LDTARGET='-o $@'
7104TEST_LD_MODE=
7105EXTRA_LDFLAGS=
7106ARFLAGS='crus'
7107AROUT=' $@'
7108CC_MM=1
7109
7110if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7111  TEST_LD_MODE='-dynamic'
7112fi
7113
7114if test "x${je_cv_cray}" = "xyes" ; then
7115  CC_MM=
7116fi
7117
7118
7119
7120
7121if test -n "$ac_tool_prefix"; then
7122  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7123set dummy ${ac_tool_prefix}ar; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_AR+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$AR"; then
7130  ac_cv_prog_AR="$AR" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_AR="${ac_tool_prefix}ar"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149AR=$ac_cv_prog_AR
7150if test -n "$AR"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7152$as_echo "$AR" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158
7159fi
7160if test -z "$ac_cv_prog_AR"; then
7161  ac_ct_AR=$AR
7162  # Extract the first word of "ar", so it can be a program name with args.
7163set dummy ar; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_ac_ct_AR+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$ac_ct_AR"; then
7170  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_ac_ct_AR="ar"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189ac_ct_AR=$ac_cv_prog_ac_ct_AR
7190if test -n "$ac_ct_AR"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7192$as_echo "$ac_ct_AR" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198  if test "x$ac_ct_AR" = x; then
7199    AR=":"
7200  else
7201    case $cross_compiling:$ac_tool_warned in
7202yes:)
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205ac_tool_warned=yes ;;
7206esac
7207    AR=$ac_ct_AR
7208  fi
7209else
7210  AR="$ac_cv_prog_AR"
7211fi
7212
7213
7214
7215
7216
7217if test -n "$ac_tool_prefix"; then
7218  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7219set dummy ${ac_tool_prefix}nm; ac_word=$2
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221$as_echo_n "checking for $ac_word... " >&6; }
7222if ${ac_cv_prog_NM+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  if test -n "$NM"; then
7226  ac_cv_prog_NM="$NM" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231  IFS=$as_save_IFS
7232  test -z "$as_dir" && as_dir=.
7233    for ac_exec_ext in '' $ac_executable_extensions; do
7234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235    ac_cv_prog_NM="${ac_tool_prefix}nm"
7236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237    break 2
7238  fi
7239done
7240  done
7241IFS=$as_save_IFS
7242
7243fi
7244fi
7245NM=$ac_cv_prog_NM
7246if test -n "$NM"; then
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7248$as_echo "$NM" >&6; }
7249else
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252fi
7253
7254
7255fi
7256if test -z "$ac_cv_prog_NM"; then
7257  ac_ct_NM=$NM
7258  # Extract the first word of "nm", so it can be a program name with args.
7259set dummy nm; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_prog_ac_ct_NM+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$ac_ct_NM"; then
7266  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273    for ac_exec_ext in '' $ac_executable_extensions; do
7274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275    ac_cv_prog_ac_ct_NM="nm"
7276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280  done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285ac_ct_NM=$ac_cv_prog_ac_ct_NM
7286if test -n "$ac_ct_NM"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7288$as_echo "$ac_ct_NM" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294  if test "x$ac_ct_NM" = x; then
7295    NM=":"
7296  else
7297    case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303    NM=$ac_ct_NM
7304  fi
7305else
7306  NM="$ac_cv_prog_NM"
7307fi
7308
7309
7310for ac_prog in gawk mawk nawk awk
7311do
7312  # Extract the first word of "$ac_prog", so it can be a program name with args.
7313set dummy $ac_prog; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if ${ac_cv_prog_AWK+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$AWK"; then
7320  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_exec_ext in '' $ac_executable_extensions; do
7328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329    ac_cv_prog_AWK="$ac_prog"
7330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334  done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339AWK=$ac_cv_prog_AWK
7340if test -n "$AWK"; then
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7342$as_echo "$AWK" >&6; }
7343else
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349  test -n "$AWK" && break
7350done
7351
7352
7353default_retain="0"
7354maps_coalesce="1"
7355DUMP_SYMS="${NM} -a"
7356SYM_PREFIX=""
7357case "${host}" in
7358  *-*-darwin* | *-*-ios*)
7359	abi="macho"
7360	RPATH=""
7361	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7362	so="dylib"
7363	importlib="${so}"
7364	force_tls="0"
7365	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7366	SOREV="${rev}.${so}"
7367	sbrk_deprecated="1"
7368	SYM_PREFIX="_"
7369	;;
7370  *-*-freebsd*)
7371	abi="elf"
7372	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7373
7374	force_lazy_lock="1"
7375	;;
7376  *-*-dragonfly*)
7377	abi="elf"
7378	;;
7379  *-*-openbsd*)
7380	abi="elf"
7381	force_tls="0"
7382	;;
7383  *-*-bitrig*)
7384	abi="elf"
7385	;;
7386  *-*-linux-android)
7387		T_APPEND_V=-D_GNU_SOURCE
7388  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7389  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7390else
7391  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7392fi
7393
7394
7395	abi="elf"
7396	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7397
7398	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7399
7400	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7401
7402	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7403
7404	$as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7405
7406	force_tls="0"
7407	if test "${LG_SIZEOF_PTR}" = "3"; then
7408	  default_retain="1"
7409	fi
7410	;;
7411  *-*-linux*)
7412		T_APPEND_V=-D_GNU_SOURCE
7413  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7414  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7415else
7416  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7417fi
7418
7419
7420	abi="elf"
7421	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7422
7423	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7424
7425	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7426
7427	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7428
7429	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7430
7431	if test "${LG_SIZEOF_PTR}" = "3"; then
7432	  default_retain="1"
7433	fi
7434	;;
7435  *-*-kfreebsd*)
7436		T_APPEND_V=-D_GNU_SOURCE
7437  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7438  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7439else
7440  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7441fi
7442
7443
7444	abi="elf"
7445	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7446
7447	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7448
7449	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7450
7451	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7452
7453	;;
7454  *-*-netbsd*)
7455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7456$as_echo_n "checking ABI... " >&6; }
7457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459#ifdef __ELF__
7460/* ELF */
7461#else
7462#error aout
7463#endif
7464
7465int
7466main ()
7467{
7468
7469  ;
7470  return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"; then :
7474  abi="elf"
7475else
7476  abi="aout"
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7480$as_echo "$abi" >&6; }
7481	;;
7482  *-*-solaris2*)
7483	abi="elf"
7484	RPATH='-Wl,-R,$(1)'
7485		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7486  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7487  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7488else
7489  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7490fi
7491
7492
7493	T_APPEND_V=-lposix4 -lsocket -lnsl
7494  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7495  LIBS="${LIBS}${T_APPEND_V}"
7496else
7497  LIBS="${LIBS} ${T_APPEND_V}"
7498fi
7499
7500
7501	;;
7502  *-ibm-aix*)
7503	if test "${LG_SIZEOF_PTR}" = "3"; then
7504	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
7505	else
7506	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
7507	fi
7508	abi="xcoff"
7509	;;
7510  *-*-mingw* | *-*-cygwin*)
7511	abi="pecoff"
7512	force_tls="0"
7513	maps_coalesce="0"
7514	RPATH=""
7515	so="dll"
7516	if test "x$je_cv_msvc" = "xyes" ; then
7517	  importlib="lib"
7518	  DSO_LDFLAGS="-LD"
7519	  EXTRA_LDFLAGS="-link -DEBUG"
7520	  CTARGET='-Fo$@'
7521	  LDTARGET='-Fe$@'
7522	  AR='lib'
7523	  ARFLAGS='-nologo -out:'
7524	  AROUT='$@'
7525	  CC_MM=
7526        else
7527	  importlib="${so}"
7528	  DSO_LDFLAGS="-shared"
7529	  link_whole_archive="1"
7530	fi
7531	case "${host}" in
7532	  *-*-cygwin*)
7533	    DUMP_SYMS="dumpbin /SYMBOLS"
7534	    ;;
7535	  *)
7536	    ;;
7537	esac
7538	a="lib"
7539	libprefix=""
7540	SOREV="${so}"
7541	PIC_CFLAGS=""
7542	;;
7543  *)
7544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7545$as_echo "Unsupported operating system: ${host}" >&6; }
7546	abi="elf"
7547	;;
7548esac
7549
7550JEMALLOC_USABLE_SIZE_CONST=const
7551for ac_header in malloc.h
7552do :
7553  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7554if test "x$ac_cv_header_malloc_h" = xyes; then :
7555  cat >>confdefs.h <<_ACEOF
7556#define HAVE_MALLOC_H 1
7557_ACEOF
7558
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7560$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h.  */
7563#include <malloc.h>
7564     #include <stddef.h>
7565    size_t malloc_usable_size(const void *ptr);
7566
7567int
7568main ()
7569{
7570
7571  ;
7572  return 0;
7573}
7574_ACEOF
7575if ac_fn_c_try_compile "$LINENO"; then :
7576
7577                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7578$as_echo "yes" >&6; }
7579
7580else
7581
7582                JEMALLOC_USABLE_SIZE_CONST=
7583                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585
7586fi
7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588
7589fi
7590
7591done
7592
7593cat >>confdefs.h <<_ACEOF
7594#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7595_ACEOF
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7621$as_echo_n "checking for library containing log... " >&6; }
7622if ${ac_cv_search_log+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  ac_func_search_save_LIBS=$LIBS
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628
7629/* Override any GCC internal prototype to avoid an error.
7630   Use char because int might match the return type of a GCC
7631   builtin and then its argument prototype would still apply.  */
7632#ifdef __cplusplus
7633extern "C"
7634#endif
7635char log ();
7636int
7637main ()
7638{
7639return log ();
7640  ;
7641  return 0;
7642}
7643_ACEOF
7644for ac_lib in '' m; do
7645  if test -z "$ac_lib"; then
7646    ac_res="none required"
7647  else
7648    ac_res=-l$ac_lib
7649    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7650  fi
7651  if ac_fn_c_try_link "$LINENO"; then :
7652  ac_cv_search_log=$ac_res
7653fi
7654rm -f core conftest.err conftest.$ac_objext \
7655    conftest$ac_exeext
7656  if ${ac_cv_search_log+:} false; then :
7657  break
7658fi
7659done
7660if ${ac_cv_search_log+:} false; then :
7661
7662else
7663  ac_cv_search_log=no
7664fi
7665rm conftest.$ac_ext
7666LIBS=$ac_func_search_save_LIBS
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7669$as_echo "$ac_cv_search_log" >&6; }
7670ac_res=$ac_cv_search_log
7671if test "$ac_res" != no; then :
7672  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7673
7674else
7675  as_fn_error $? "Missing math functions" "$LINENO" 5
7676fi
7677
7678if test "x$ac_cv_search_log" != "xnone required" ; then
7679  LM="$ac_cv_search_log"
7680else
7681  LM=
7682fi
7683
7684
7685
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7687$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7688if ${je_cv_attribute+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693static __attribute__((unused)) void foo(void){}
7694int
7695main ()
7696{
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_link "$LINENO"; then :
7703  je_cv_attribute=yes
7704else
7705  je_cv_attribute=no
7706fi
7707rm -f core conftest.err conftest.$ac_objext \
7708    conftest$ac_exeext conftest.$ac_ext
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7711$as_echo "$je_cv_attribute" >&6; }
7712
7713if test "x${je_cv_attribute}" = "xyes" ; then
7714  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
7715
7716  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7717
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7719$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7720T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7721T_APPEND_V=-fvisibility=hidden
7722  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7723  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7724else
7725  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7726fi
7727
7728
7729if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7730  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7731else
7732  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7733fi
7734
7735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737
7738
7739int
7740main ()
7741{
7742
7743    return 0;
7744
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749if ac_fn_c_try_compile "$LINENO"; then :
7750  je_cv_cflags_added=-fvisibility=hidden
7751              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752$as_echo "yes" >&6; }
7753else
7754  je_cv_cflags_added=
7755              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7758
7759fi
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7762  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7763else
7764  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7765fi
7766
7767
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7770$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7771T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7772T_APPEND_V=-fvisibility=hidden
7773  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7774  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7775else
7776  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7777fi
7778
7779
7780if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7781  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7782else
7783  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7784fi
7785
7786ac_ext=cpp
7787ac_cpp='$CXXCPP $CPPFLAGS'
7788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7791
7792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794
7795
7796int
7797main ()
7798{
7799
7800    return 0;
7801
7802  ;
7803  return 0;
7804}
7805_ACEOF
7806if ac_fn_cxx_try_compile "$LINENO"; then :
7807  je_cv_cxxflags_added=-fvisibility=hidden
7808              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7809$as_echo "yes" >&6; }
7810else
7811  je_cv_cxxflags_added=
7812              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
7814              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
7815
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7825  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7826else
7827  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7828fi
7829
7830
7831  fi
7832fi
7833SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7834
7835
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7837$as_echo_n "checking whether compiler supports -Werror... " >&6; }
7838T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7839T_APPEND_V=-Werror
7840  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7841  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7842else
7843  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7844fi
7845
7846
7847if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7848  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7849else
7850  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7851fi
7852
7853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855
7856
7857int
7858main ()
7859{
7860
7861    return 0;
7862
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867if ac_fn_c_try_compile "$LINENO"; then :
7868  je_cv_cflags_added=-Werror
7869              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870$as_echo "yes" >&6; }
7871else
7872  je_cv_cflags_added=
7873              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7876
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7880  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7881else
7882  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7883fi
7884
7885
7886
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
7888$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
7889T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7890T_APPEND_V=-herror_on_warning
7891  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7892  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7893else
7894  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7895fi
7896
7897
7898if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7899  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7900else
7901  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7902fi
7903
7904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906
7907
7908int
7909main ()
7910{
7911
7912    return 0;
7913
7914  ;
7915  return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_compile "$LINENO"; then :
7919  je_cv_cflags_added=-herror_on_warning
7920              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921$as_echo "yes" >&6; }
7922else
7923  je_cv_cflags_added=
7924              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7927
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7931  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7932else
7933  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7934fi
7935
7936
7937
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
7939$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
7940if ${je_cv_tls_model+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945
7946int
7947main ()
7948{
7949static __thread int
7950               __attribute__((tls_model("initial-exec"), unused)) foo;
7951               foo = 0;
7952  ;
7953  return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_link "$LINENO"; then :
7957  je_cv_tls_model=yes
7958else
7959  je_cv_tls_model=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext \
7962    conftest$ac_exeext conftest.$ac_ext
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
7965$as_echo "$je_cv_tls_model" >&6; }
7966
7967CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
7968if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7969  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7970else
7971  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7972fi
7973
7974
7975
7976SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7977
7978
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7980$as_echo_n "checking whether compiler supports -Werror... " >&6; }
7981T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7982T_APPEND_V=-Werror
7983  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7984  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7985else
7986  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7987fi
7988
7989
7990if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7991  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7992else
7993  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7994fi
7995
7996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998
7999
8000int
8001main ()
8002{
8003
8004    return 0;
8005
8006  ;
8007  return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011  je_cv_cflags_added=-Werror
8012              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8013$as_echo "yes" >&6; }
8014else
8015  je_cv_cflags_added=
8016              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
8018              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8019
8020fi
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8023  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8024else
8025  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8026fi
8027
8028
8029
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8031$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8032T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8033T_APPEND_V=-herror_on_warning
8034  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8035  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8036else
8037  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8038fi
8039
8040
8041if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8042  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8043else
8044  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8045fi
8046
8047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049
8050
8051int
8052main ()
8053{
8054
8055    return 0;
8056
8057  ;
8058  return 0;
8059}
8060_ACEOF
8061if ac_fn_c_try_compile "$LINENO"; then :
8062  je_cv_cflags_added=-herror_on_warning
8063              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064$as_echo "yes" >&6; }
8065else
8066  je_cv_cflags_added=
8067              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8070
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8074  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8075else
8076  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8077fi
8078
8079
8080
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8082$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8083if ${je_cv_alloc_size+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088#include <stdlib.h>
8089int
8090main ()
8091{
8092void *foo(size_t size) __attribute__((alloc_size(1)));
8093  ;
8094  return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_link "$LINENO"; then :
8098  je_cv_alloc_size=yes
8099else
8100  je_cv_alloc_size=no
8101fi
8102rm -f core conftest.err conftest.$ac_objext \
8103    conftest$ac_exeext conftest.$ac_ext
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8106$as_echo "$je_cv_alloc_size" >&6; }
8107
8108CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8109if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8110  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8111else
8112  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8113fi
8114
8115
8116if test "x${je_cv_alloc_size}" = "xyes" ; then
8117  $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
8118
8119fi
8120SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8121
8122
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8124$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8125T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8126T_APPEND_V=-Werror
8127  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8128  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8129else
8130  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8131fi
8132
8133
8134if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8135  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8136else
8137  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8138fi
8139
8140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142
8143
8144int
8145main ()
8146{
8147
8148    return 0;
8149
8150  ;
8151  return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_compile "$LINENO"; then :
8155  je_cv_cflags_added=-Werror
8156              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8157$as_echo "yes" >&6; }
8158else
8159  je_cv_cflags_added=
8160              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8163
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8167  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8168else
8169  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8170fi
8171
8172
8173
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8175$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8176T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8177T_APPEND_V=-herror_on_warning
8178  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8179  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8180else
8181  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8182fi
8183
8184
8185if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8186  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8187else
8188  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8189fi
8190
8191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193
8194
8195int
8196main ()
8197{
8198
8199    return 0;
8200
8201  ;
8202  return 0;
8203}
8204_ACEOF
8205if ac_fn_c_try_compile "$LINENO"; then :
8206  je_cv_cflags_added=-herror_on_warning
8207              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8208$as_echo "yes" >&6; }
8209else
8210  je_cv_cflags_added=
8211              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8214
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8218  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8219else
8220  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8221fi
8222
8223
8224
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8226$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8227if ${je_cv_format_gnu_printf+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232#include <stdlib.h>
8233int
8234main ()
8235{
8236void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8237  ;
8238  return 0;
8239}
8240_ACEOF
8241if ac_fn_c_try_link "$LINENO"; then :
8242  je_cv_format_gnu_printf=yes
8243else
8244  je_cv_format_gnu_printf=no
8245fi
8246rm -f core conftest.err conftest.$ac_objext \
8247    conftest$ac_exeext conftest.$ac_ext
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8250$as_echo "$je_cv_format_gnu_printf" >&6; }
8251
8252CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8253if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8254  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8255else
8256  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8257fi
8258
8259
8260if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8261  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
8262
8263fi
8264SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8265
8266
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8268$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8269T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8270T_APPEND_V=-Werror
8271  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8272  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8273else
8274  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8275fi
8276
8277
8278if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8279  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8280else
8281  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8282fi
8283
8284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286
8287
8288int
8289main ()
8290{
8291
8292    return 0;
8293
8294  ;
8295  return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299  je_cv_cflags_added=-Werror
8300              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8301$as_echo "yes" >&6; }
8302else
8303  je_cv_cflags_added=
8304              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8307
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8311  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8312else
8313  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8314fi
8315
8316
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8319$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8320T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8321T_APPEND_V=-herror_on_warning
8322  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8323  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8324else
8325  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8326fi
8327
8328
8329if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8330  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8331else
8332  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8333fi
8334
8335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337
8338
8339int
8340main ()
8341{
8342
8343    return 0;
8344
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"; then :
8350  je_cv_cflags_added=-herror_on_warning
8351              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8352$as_echo "yes" >&6; }
8353else
8354  je_cv_cflags_added=
8355              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
8357              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8358
8359fi
8360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8362  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8363else
8364  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8365fi
8366
8367
8368
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8370$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8371if ${je_cv_format_printf+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376#include <stdlib.h>
8377int
8378main ()
8379{
8380void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_link "$LINENO"; then :
8386  je_cv_format_printf=yes
8387else
8388  je_cv_format_printf=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext \
8391    conftest$ac_exeext conftest.$ac_ext
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8394$as_echo "$je_cv_format_printf" >&6; }
8395
8396CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8397if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8398  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8399else
8400  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8401fi
8402
8403
8404if test "x${je_cv_format_printf}" = "xyes" ; then
8405  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
8406
8407fi
8408
8409
8410# Check whether --with-rpath was given.
8411if test "${with_rpath+set}" = set; then :
8412  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8413  RPATH_EXTRA=
8414else
8415  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8416fi
8417else
8418  RPATH_EXTRA=
8419
8420fi
8421
8422
8423
8424# Check whether --enable-autogen was given.
8425if test "${enable_autogen+set}" = set; then :
8426  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8427  enable_autogen="0"
8428else
8429  enable_autogen="1"
8430fi
8431
8432else
8433  enable_autogen="0"
8434
8435fi
8436
8437
8438
8439# Find a good install program.  We prefer a C program (faster),
8440# so one script is as good as another.  But avoid the broken or
8441# incompatible versions:
8442# SysV /etc/install, /usr/sbin/install
8443# SunOS /usr/etc/install
8444# IRIX /sbin/install
8445# AIX /bin/install
8446# AmigaOS /C/install, which installs bootblocks on floppy discs
8447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8448# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8450# OS/2's system install, which has a completely different semantic
8451# ./install, which can be erroneously created by make from ./install.sh.
8452# Reject install programs that cannot install multiple files.
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8454$as_echo_n "checking for a BSD-compatible install... " >&6; }
8455if test -z "$INSTALL"; then
8456if ${ac_cv_path_install+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462  IFS=$as_save_IFS
8463  test -z "$as_dir" && as_dir=.
8464    # Account for people who put trailing slashes in PATH elements.
8465case $as_dir/ in #((
8466  ./ | .// | /[cC]/* | \
8467  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8468  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8469  /usr/ucb/* ) ;;
8470  *)
8471    # OSF1 and SCO ODT 3.0 have their own names for install.
8472    # Don't use installbsd from OSF since it installs stuff as root
8473    # by default.
8474    for ac_prog in ginstall scoinst install; do
8475      for ac_exec_ext in '' $ac_executable_extensions; do
8476	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8477	  if test $ac_prog = install &&
8478	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8479	    # AIX install.  It has an incompatible calling convention.
8480	    :
8481	  elif test $ac_prog = install &&
8482	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8483	    # program-specific install script used by HP pwplus--don't use.
8484	    :
8485	  else
8486	    rm -rf conftest.one conftest.two conftest.dir
8487	    echo one > conftest.one
8488	    echo two > conftest.two
8489	    mkdir conftest.dir
8490	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8491	      test -s conftest.one && test -s conftest.two &&
8492	      test -s conftest.dir/conftest.one &&
8493	      test -s conftest.dir/conftest.two
8494	    then
8495	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8496	      break 3
8497	    fi
8498	  fi
8499	fi
8500      done
8501    done
8502    ;;
8503esac
8504
8505  done
8506IFS=$as_save_IFS
8507
8508rm -rf conftest.one conftest.two conftest.dir
8509
8510fi
8511  if test "${ac_cv_path_install+set}" = set; then
8512    INSTALL=$ac_cv_path_install
8513  else
8514    # As a last resort, use the slow shell script.  Don't cache a
8515    # value for INSTALL within a source directory, because that will
8516    # break other packages using the cache if that directory is
8517    # removed, or if the value is a relative name.
8518    INSTALL=$ac_install_sh
8519  fi
8520fi
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8522$as_echo "$INSTALL" >&6; }
8523
8524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8525# It thinks the first close brace ends the variable substitution.
8526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8527
8528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8529
8530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8531
8532if test -n "$ac_tool_prefix"; then
8533  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_prog_RANLIB+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  if test -n "$RANLIB"; then
8541  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8542else
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546  IFS=$as_save_IFS
8547  test -z "$as_dir" && as_dir=.
8548    for ac_exec_ext in '' $ac_executable_extensions; do
8549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552    break 2
8553  fi
8554done
8555  done
8556IFS=$as_save_IFS
8557
8558fi
8559fi
8560RANLIB=$ac_cv_prog_RANLIB
8561if test -n "$RANLIB"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8563$as_echo "$RANLIB" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570fi
8571if test -z "$ac_cv_prog_RANLIB"; then
8572  ac_ct_RANLIB=$RANLIB
8573  # Extract the first word of "ranlib", so it can be a program name with args.
8574set dummy ranlib; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  if test -n "$ac_ct_RANLIB"; then
8581  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586  IFS=$as_save_IFS
8587  test -z "$as_dir" && as_dir=.
8588    for ac_exec_ext in '' $ac_executable_extensions; do
8589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590    ac_cv_prog_ac_ct_RANLIB="ranlib"
8591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592    break 2
8593  fi
8594done
8595  done
8596IFS=$as_save_IFS
8597
8598fi
8599fi
8600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8601if test -n "$ac_ct_RANLIB"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8603$as_echo "$ac_ct_RANLIB" >&6; }
8604else
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609  if test "x$ac_ct_RANLIB" = x; then
8610    RANLIB=":"
8611  else
8612    case $cross_compiling:$ac_tool_warned in
8613yes:)
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616ac_tool_warned=yes ;;
8617esac
8618    RANLIB=$ac_ct_RANLIB
8619  fi
8620else
8621  RANLIB="$ac_cv_prog_RANLIB"
8622fi
8623
8624# Extract the first word of "ld", so it can be a program name with args.
8625set dummy ld; ac_word=$2
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627$as_echo_n "checking for $ac_word... " >&6; }
8628if ${ac_cv_path_LD+:} false; then :
8629  $as_echo_n "(cached) " >&6
8630else
8631  case $LD in
8632  [\\/]* | ?:[\\/]*)
8633  ac_cv_path_LD="$LD" # Let the user override the test with a path.
8634  ;;
8635  *)
8636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641    for ac_exec_ext in '' $ac_executable_extensions; do
8642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648  done
8649IFS=$as_save_IFS
8650
8651  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8652  ;;
8653esac
8654fi
8655LD=$ac_cv_path_LD
8656if test -n "$LD"; then
8657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8658$as_echo "$LD" >&6; }
8659else
8660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661$as_echo "no" >&6; }
8662fi
8663
8664
8665# Extract the first word of "autoconf", so it can be a program name with args.
8666set dummy autoconf; ac_word=$2
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
8669if ${ac_cv_path_AUTOCONF+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  case $AUTOCONF in
8673  [\\/]* | ?:[\\/]*)
8674  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8675  ;;
8676  *)
8677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680  IFS=$as_save_IFS
8681  test -z "$as_dir" && as_dir=.
8682    for ac_exec_ext in '' $ac_executable_extensions; do
8683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
8685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686    break 2
8687  fi
8688done
8689  done
8690IFS=$as_save_IFS
8691
8692  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
8693  ;;
8694esac
8695fi
8696AUTOCONF=$ac_cv_path_AUTOCONF
8697if test -n "$AUTOCONF"; then
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8699$as_echo "$AUTOCONF" >&6; }
8700else
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705
8706
8707
8708# Check whether --with-mangling was given.
8709if test "${with_mangling+set}" = set; then :
8710  withval=$with_mangling; mangling_map="$with_mangling"
8711else
8712  mangling_map=""
8713fi
8714
8715
8716
8717# Check whether --with-jemalloc_prefix was given.
8718if test "${with_jemalloc_prefix+set}" = set; then :
8719  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
8720else
8721  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
8722  JEMALLOC_PREFIX=""
8723else
8724  JEMALLOC_PREFIX="je_"
8725fi
8726
8727fi
8728
8729if test "x$JEMALLOC_PREFIX" = "x" ; then
8730  $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
8731
8732else
8733  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
8734  cat >>confdefs.h <<_ACEOF
8735#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
8736_ACEOF
8737
8738  cat >>confdefs.h <<_ACEOF
8739#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
8740_ACEOF
8741
8742fi
8743
8744
8745
8746
8747# Check whether --with-export was given.
8748if test "${with_export+set}" = set; then :
8749  withval=$with_export; if test "x$with_export" = "xno"; then
8750  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
8751
8752fi
8753
8754fi
8755
8756
8757public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
8758ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
8759if test "x$ac_cv_func_memalign" = xyes; then :
8760  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
8761
8762	       public_syms="${public_syms} memalign"
8763fi
8764
8765ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
8766if test "x$ac_cv_func_valloc" = xyes; then :
8767  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
8768
8769	       public_syms="${public_syms} valloc"
8770fi
8771
8772
8773wrap_syms=
8774if test "x${JEMALLOC_PREFIX}" = "x" ; then
8775  ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
8776if test "x$ac_cv_func___libc_calloc" = xyes; then :
8777  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
8778
8779		 wrap_syms="${wrap_syms} __libc_calloc"
8780fi
8781
8782  ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
8783if test "x$ac_cv_func___libc_free" = xyes; then :
8784  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
8785
8786		 wrap_syms="${wrap_syms} __libc_free"
8787fi
8788
8789  ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
8790if test "x$ac_cv_func___libc_malloc" = xyes; then :
8791  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
8792
8793		 wrap_syms="${wrap_syms} __libc_malloc"
8794fi
8795
8796  ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
8797if test "x$ac_cv_func___libc_memalign" = xyes; then :
8798  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
8799
8800		 wrap_syms="${wrap_syms} __libc_memalign"
8801fi
8802
8803  ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
8804if test "x$ac_cv_func___libc_realloc" = xyes; then :
8805  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
8806
8807		 wrap_syms="${wrap_syms} __libc_realloc"
8808fi
8809
8810  ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
8811if test "x$ac_cv_func___libc_valloc" = xyes; then :
8812  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
8813
8814		 wrap_syms="${wrap_syms} __libc_valloc"
8815fi
8816
8817  ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
8818if test "x$ac_cv_func___posix_memalign" = xyes; then :
8819  $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
8820
8821		 wrap_syms="${wrap_syms} __posix_memalign"
8822fi
8823
8824fi
8825
8826case "${host}" in
8827  *-*-mingw* | *-*-cygwin*)
8828    wrap_syms="${wrap_syms} tls_callback"
8829    ;;
8830  *)
8831    ;;
8832esac
8833
8834
8835# Check whether --with-private_namespace was given.
8836if test "${with_private_namespace+set}" = set; then :
8837  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
8838else
8839  JEMALLOC_PRIVATE_NAMESPACE="je_"
8840
8841fi
8842
8843cat >>confdefs.h <<_ACEOF
8844#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
8845_ACEOF
8846
8847private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
8848
8849
8850
8851# Check whether --with-install_suffix was given.
8852if test "${with_install_suffix+set}" = set; then :
8853  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
8854else
8855  INSTALL_SUFFIX=
8856
8857fi
8858
8859install_suffix="$INSTALL_SUFFIX"
8860
8861
8862
8863# Check whether --with-malloc_conf was given.
8864if test "${with_malloc_conf+set}" = set; then :
8865  withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
8866else
8867  JEMALLOC_CONFIG_MALLOC_CONF=""
8868
8869fi
8870
8871config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
8872cat >>confdefs.h <<_ACEOF
8873#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
8874_ACEOF
8875
8876
8877je_="je_"
8878
8879
8880cfgoutputs_in="Makefile.in"
8881cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
8882cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
8883cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
8884cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
8885cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
8886cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
8887cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
8888cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
8889cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
8890cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
8891
8892cfgoutputs_out="Makefile"
8893cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
8894cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
8895cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
8896cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
8897cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
8898cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
8899cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
8900cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
8901cfgoutputs_out="${cfgoutputs_out} test/test.sh"
8902cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
8903
8904cfgoutputs_tup="Makefile"
8905cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
8906cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
8907cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
8908cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
8909cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
8910cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
8911cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
8912cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
8913cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
8914cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
8915
8916cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
8917cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
8918cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
8919cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
8920cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
8921cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
8922cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
8923cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
8924cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
8925cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
8926cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
8927
8928cfghdrs_out="include/jemalloc/jemalloc_defs.h"
8929cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
8930cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
8931cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
8932cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
8933cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
8934cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
8935cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
8936cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
8937cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
8938cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
8939cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
8940cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
8941cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
8942
8943cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
8944cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
8945cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
8946
8947# Check whether --enable-debug was given.
8948if test "${enable_debug+set}" = set; then :
8949  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
8950  enable_debug="0"
8951else
8952  enable_debug="1"
8953fi
8954
8955else
8956  enable_debug="0"
8957
8958fi
8959
8960if test "x$enable_debug" = "x1" ; then
8961  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
8962
8963fi
8964if test "x$enable_debug" = "x1" ; then
8965  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
8966
8967fi
8968
8969
8970if test "x$enable_debug" = "x0" ; then
8971  if test "x$GCC" = "xyes" ; then
8972
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
8974$as_echo_n "checking whether compiler supports -O3... " >&6; }
8975T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8976T_APPEND_V=-O3
8977  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8978  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8979else
8980  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8981fi
8982
8983
8984if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8985  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8986else
8987  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8988fi
8989
8990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991/* end confdefs.h.  */
8992
8993
8994int
8995main ()
8996{
8997
8998    return 0;
8999
9000  ;
9001  return 0;
9002}
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"; then :
9005  je_cv_cflags_added=-O3
9006              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9007$as_echo "yes" >&6; }
9008else
9009  je_cv_cflags_added=
9010              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011$as_echo "no" >&6; }
9012              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9013
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9017  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9018else
9019  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9020fi
9021
9022
9023
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9025$as_echo_n "checking whether compiler supports -O3... " >&6; }
9026T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9027T_APPEND_V=-O3
9028  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9029  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9030else
9031  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9032fi
9033
9034
9035if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9036  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9037else
9038  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9039fi
9040
9041ac_ext=cpp
9042ac_cpp='$CXXCPP $CPPFLAGS'
9043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9046
9047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049
9050
9051int
9052main ()
9053{
9054
9055    return 0;
9056
9057  ;
9058  return 0;
9059}
9060_ACEOF
9061if ac_fn_cxx_try_compile "$LINENO"; then :
9062  je_cv_cxxflags_added=-O3
9063              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9064$as_echo "yes" >&6; }
9065else
9066  je_cv_cxxflags_added=
9067              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068$as_echo "no" >&6; }
9069              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9070
9071fi
9072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073ac_ext=c
9074ac_cpp='$CPP $CPPFLAGS'
9075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078
9079if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9080  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9081else
9082  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9083fi
9084
9085
9086
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9088$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9089T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9090T_APPEND_V=-funroll-loops
9091  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9092  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9093else
9094  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9095fi
9096
9097
9098if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9099  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9100else
9101  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9102fi
9103
9104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106
9107
9108int
9109main ()
9110{
9111
9112    return 0;
9113
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"; then :
9119  je_cv_cflags_added=-funroll-loops
9120              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9121$as_echo "yes" >&6; }
9122else
9123  je_cv_cflags_added=
9124              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125$as_echo "no" >&6; }
9126              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9127
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9131  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9132else
9133  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9134fi
9135
9136
9137  elif test "x$je_cv_msvc" = "xyes" ; then
9138
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9140$as_echo_n "checking whether compiler supports -O2... " >&6; }
9141T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9142T_APPEND_V=-O2
9143  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9144  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9145else
9146  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9147fi
9148
9149
9150if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9151  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9152else
9153  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9154fi
9155
9156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158
9159
9160int
9161main ()
9162{
9163
9164    return 0;
9165
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_compile "$LINENO"; then :
9171  je_cv_cflags_added=-O2
9172              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9173$as_echo "yes" >&6; }
9174else
9175  je_cv_cflags_added=
9176              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177$as_echo "no" >&6; }
9178              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9179
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9183  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9184else
9185  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9186fi
9187
9188
9189
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9191$as_echo_n "checking whether compiler supports -O2... " >&6; }
9192T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9193T_APPEND_V=-O2
9194  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9195  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9196else
9197  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9198fi
9199
9200
9201if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9202  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9203else
9204  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9205fi
9206
9207ac_ext=cpp
9208ac_cpp='$CXXCPP $CPPFLAGS'
9209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9212
9213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214/* end confdefs.h.  */
9215
9216
9217int
9218main ()
9219{
9220
9221    return 0;
9222
9223  ;
9224  return 0;
9225}
9226_ACEOF
9227if ac_fn_cxx_try_compile "$LINENO"; then :
9228  je_cv_cxxflags_added=-O2
9229              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9230$as_echo "yes" >&6; }
9231else
9232  je_cv_cxxflags_added=
9233              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234$as_echo "no" >&6; }
9235              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9236
9237fi
9238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239ac_ext=c
9240ac_cpp='$CPP $CPPFLAGS'
9241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9243ac_compiler_gnu=$ac_cv_c_compiler_gnu
9244
9245if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9246  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9247else
9248  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9249fi
9250
9251
9252  else
9253
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9255$as_echo_n "checking whether compiler supports -O... " >&6; }
9256T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9257T_APPEND_V=-O
9258  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9259  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9260else
9261  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9262fi
9263
9264
9265if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9266  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9267else
9268  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9269fi
9270
9271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h.  */
9273
9274
9275int
9276main ()
9277{
9278
9279    return 0;
9280
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285if ac_fn_c_try_compile "$LINENO"; then :
9286  je_cv_cflags_added=-O
9287              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9288$as_echo "yes" >&6; }
9289else
9290  je_cv_cflags_added=
9291              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292$as_echo "no" >&6; }
9293              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9294
9295fi
9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9298  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9299else
9300  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9301fi
9302
9303
9304
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9306$as_echo_n "checking whether compiler supports -O... " >&6; }
9307T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9308T_APPEND_V=-O
9309  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9310  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9311else
9312  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9313fi
9314
9315
9316if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9317  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9318else
9319  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9320fi
9321
9322ac_ext=cpp
9323ac_cpp='$CXXCPP $CPPFLAGS'
9324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9327
9328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h.  */
9330
9331
9332int
9333main ()
9334{
9335
9336    return 0;
9337
9338  ;
9339  return 0;
9340}
9341_ACEOF
9342if ac_fn_cxx_try_compile "$LINENO"; then :
9343  je_cv_cxxflags_added=-O
9344              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9345$as_echo "yes" >&6; }
9346else
9347  je_cv_cxxflags_added=
9348              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9350              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9351
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354ac_ext=c
9355ac_cpp='$CPP $CPPFLAGS'
9356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9361  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9362else
9363  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9364fi
9365
9366
9367  fi
9368fi
9369
9370# Check whether --enable-stats was given.
9371if test "${enable_stats+set}" = set; then :
9372  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9373  enable_stats="0"
9374else
9375  enable_stats="1"
9376fi
9377
9378else
9379  enable_stats="1"
9380
9381fi
9382
9383if test "x$enable_stats" = "x1" ; then
9384  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
9385
9386fi
9387
9388
9389# Check whether --enable-prof was given.
9390if test "${enable_prof+set}" = set; then :
9391  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9392  enable_prof="0"
9393else
9394  enable_prof="1"
9395fi
9396
9397else
9398  enable_prof="0"
9399
9400fi
9401
9402if test "x$enable_prof" = "x1" ; then
9403  backtrace_method=""
9404else
9405  backtrace_method="N/A"
9406fi
9407
9408# Check whether --enable-prof-libunwind was given.
9409if test "${enable_prof_libunwind+set}" = set; then :
9410  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9411  enable_prof_libunwind="0"
9412else
9413  enable_prof_libunwind="1"
9414fi
9415
9416else
9417  enable_prof_libunwind="0"
9418
9419fi
9420
9421
9422# Check whether --with-static_libunwind was given.
9423if test "${with_static_libunwind+set}" = set; then :
9424  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9425  LUNWIND="-lunwind"
9426else
9427  if test ! -f "$with_static_libunwind" ; then
9428    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9429  fi
9430  LUNWIND="$with_static_libunwind"
9431fi
9432else
9433  LUNWIND="-lunwind"
9434
9435fi
9436
9437if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9438  for ac_header in libunwind.h
9439do :
9440  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9441if test "x$ac_cv_header_libunwind_h" = xyes; then :
9442  cat >>confdefs.h <<_ACEOF
9443#define HAVE_LIBUNWIND_H 1
9444_ACEOF
9445
9446else
9447  enable_prof_libunwind="0"
9448fi
9449
9450done
9451
9452  if test "x$LUNWIND" = "x-lunwind" ; then
9453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9454$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9455if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9456  $as_echo_n "(cached) " >&6
9457else
9458  ac_check_lib_save_LIBS=$LIBS
9459LIBS="-lunwind  $LIBS"
9460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h.  */
9462
9463/* Override any GCC internal prototype to avoid an error.
9464   Use char because int might match the return type of a GCC
9465   builtin and then its argument prototype would still apply.  */
9466#ifdef __cplusplus
9467extern "C"
9468#endif
9469char unw_backtrace ();
9470int
9471main ()
9472{
9473return unw_backtrace ();
9474  ;
9475  return 0;
9476}
9477_ACEOF
9478if ac_fn_c_try_link "$LINENO"; then :
9479  ac_cv_lib_unwind_unw_backtrace=yes
9480else
9481  ac_cv_lib_unwind_unw_backtrace=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext \
9484    conftest$ac_exeext conftest.$ac_ext
9485LIBS=$ac_check_lib_save_LIBS
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9488$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9489if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9490  T_APPEND_V=$LUNWIND
9491  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9492  LIBS="${LIBS}${T_APPEND_V}"
9493else
9494  LIBS="${LIBS} ${T_APPEND_V}"
9495fi
9496
9497
9498else
9499  enable_prof_libunwind="0"
9500fi
9501
9502  else
9503    T_APPEND_V=$LUNWIND
9504  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9505  LIBS="${LIBS}${T_APPEND_V}"
9506else
9507  LIBS="${LIBS} ${T_APPEND_V}"
9508fi
9509
9510
9511  fi
9512  if test "x${enable_prof_libunwind}" = "x1" ; then
9513    backtrace_method="libunwind"
9514    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
9515
9516  fi
9517fi
9518
9519# Check whether --enable-prof-libgcc was given.
9520if test "${enable_prof_libgcc+set}" = set; then :
9521  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9522  enable_prof_libgcc="0"
9523else
9524  enable_prof_libgcc="1"
9525fi
9526
9527else
9528  enable_prof_libgcc="1"
9529
9530fi
9531
9532if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9533     -a "x$GCC" = "xyes" ; then
9534  for ac_header in unwind.h
9535do :
9536  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9537if test "x$ac_cv_header_unwind_h" = xyes; then :
9538  cat >>confdefs.h <<_ACEOF
9539#define HAVE_UNWIND_H 1
9540_ACEOF
9541
9542else
9543  enable_prof_libgcc="0"
9544fi
9545
9546done
9547
9548  if test "x${enable_prof_libgcc}" = "x1" ; then
9549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9550$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9551if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  ac_check_lib_save_LIBS=$LIBS
9555LIBS="-lgcc  $LIBS"
9556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557/* end confdefs.h.  */
9558
9559/* Override any GCC internal prototype to avoid an error.
9560   Use char because int might match the return type of a GCC
9561   builtin and then its argument prototype would still apply.  */
9562#ifdef __cplusplus
9563extern "C"
9564#endif
9565char _Unwind_Backtrace ();
9566int
9567main ()
9568{
9569return _Unwind_Backtrace ();
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"; then :
9575  ac_cv_lib_gcc__Unwind_Backtrace=yes
9576else
9577  ac_cv_lib_gcc__Unwind_Backtrace=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext \
9580    conftest$ac_exeext conftest.$ac_ext
9581LIBS=$ac_check_lib_save_LIBS
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9584$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9585if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9586  T_APPEND_V=-lgcc
9587  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9588  LIBS="${LIBS}${T_APPEND_V}"
9589else
9590  LIBS="${LIBS} ${T_APPEND_V}"
9591fi
9592
9593
9594else
9595  enable_prof_libgcc="0"
9596fi
9597
9598  fi
9599  if test "x${enable_prof_libgcc}" = "x1" ; then
9600    backtrace_method="libgcc"
9601    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
9602
9603  fi
9604else
9605  enable_prof_libgcc="0"
9606fi
9607
9608# Check whether --enable-prof-gcc was given.
9609if test "${enable_prof_gcc+set}" = set; then :
9610  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
9611  enable_prof_gcc="0"
9612else
9613  enable_prof_gcc="1"
9614fi
9615
9616else
9617  enable_prof_gcc="1"
9618
9619fi
9620
9621if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
9622     -a "x$GCC" = "xyes" ; then
9623
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
9625$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
9626T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9627T_APPEND_V=-fno-omit-frame-pointer
9628  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9629  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9630else
9631  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9632fi
9633
9634
9635if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9636  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9637else
9638  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9639fi
9640
9641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643
9644
9645int
9646main ()
9647{
9648
9649    return 0;
9650
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_compile "$LINENO"; then :
9656  je_cv_cflags_added=-fno-omit-frame-pointer
9657              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9658$as_echo "yes" >&6; }
9659else
9660  je_cv_cflags_added=
9661              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9664
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9668  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9669else
9670  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9671fi
9672
9673
9674  backtrace_method="gcc intrinsics"
9675  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
9676
9677else
9678  enable_prof_gcc="0"
9679fi
9680
9681if test "x$backtrace_method" = "x" ; then
9682  backtrace_method="none (disabling profiling)"
9683  enable_prof="0"
9684fi
9685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
9686$as_echo_n "checking configured backtracing method... " >&6; }
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
9688$as_echo "$backtrace_method" >&6; }
9689if test "x$enable_prof" = "x1" ; then
9690    T_APPEND_V=$LM
9691  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9692  LIBS="${LIBS}${T_APPEND_V}"
9693else
9694  LIBS="${LIBS} ${T_APPEND_V}"
9695fi
9696
9697
9698
9699  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
9700
9701fi
9702
9703
9704if test "x${maps_coalesce}" = "x1" ; then
9705  $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
9706
9707fi
9708
9709if test "x$default_retain" = "x1" ; then
9710  $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
9711
9712fi
9713
9714have_dss="1"
9715ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9716if test "x$ac_cv_func_sbrk" = xyes; then :
9717  have_sbrk="1"
9718else
9719  have_sbrk="0"
9720fi
9721
9722if test "x$have_sbrk" = "x1" ; then
9723  if test "x$sbrk_deprecated" = "x1" ; then
9724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
9725$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
9726    have_dss="0"
9727  fi
9728else
9729  have_dss="0"
9730fi
9731
9732if test "x$have_dss" = "x1" ; then
9733  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
9734
9735fi
9736
9737# Check whether --enable-fill was given.
9738if test "${enable_fill+set}" = set; then :
9739  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
9740  enable_fill="0"
9741else
9742  enable_fill="1"
9743fi
9744
9745else
9746  enable_fill="1"
9747
9748fi
9749
9750if test "x$enable_fill" = "x1" ; then
9751  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
9752
9753fi
9754
9755
9756# Check whether --enable-utrace was given.
9757if test "${enable_utrace+set}" = set; then :
9758  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
9759  enable_utrace="0"
9760else
9761  enable_utrace="1"
9762fi
9763
9764else
9765  enable_utrace="0"
9766
9767fi
9768
9769
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
9771$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
9772if ${je_cv_utrace+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777
9778#include <sys/types.h>
9779#include <sys/param.h>
9780#include <sys/time.h>
9781#include <sys/uio.h>
9782#include <sys/ktrace.h>
9783
9784int
9785main ()
9786{
9787
9788	utrace((void *)0, 0);
9789
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"; then :
9795  je_cv_utrace=yes
9796else
9797  je_cv_utrace=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext \
9800    conftest$ac_exeext conftest.$ac_ext
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
9803$as_echo "$je_cv_utrace" >&6; }
9804
9805if test "x${je_cv_utrace}" = "xno" ; then
9806  enable_utrace="0"
9807fi
9808if test "x$enable_utrace" = "x1" ; then
9809  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
9810
9811fi
9812
9813
9814# Check whether --enable-xmalloc was given.
9815if test "${enable_xmalloc+set}" = set; then :
9816  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
9817  enable_xmalloc="0"
9818else
9819  enable_xmalloc="1"
9820fi
9821
9822else
9823  enable_xmalloc="0"
9824
9825fi
9826
9827if test "x$enable_xmalloc" = "x1" ; then
9828  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
9829
9830fi
9831
9832
9833# Check whether --enable-cache-oblivious was given.
9834if test "${enable_cache_oblivious+set}" = set; then :
9835  enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
9836  enable_cache_oblivious="0"
9837else
9838  enable_cache_oblivious="1"
9839fi
9840
9841else
9842  enable_cache_oblivious="1"
9843
9844fi
9845
9846if test "x$enable_cache_oblivious" = "x1" ; then
9847  $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
9848
9849fi
9850
9851
9852# Check whether --enable-log was given.
9853if test "${enable_log+set}" = set; then :
9854  enableval=$enable_log; if test "x$enable_log" = "xno" ; then
9855  enable_log="0"
9856else
9857  enable_log="1"
9858fi
9859
9860else
9861  enable_log="0"
9862
9863fi
9864
9865if test "x$enable_log" = "x1" ; then
9866  $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
9867
9868fi
9869
9870
9871
9872
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
9874$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
9875if ${je_cv_gcc_builtin_unreachable+:} false; then :
9876  $as_echo_n "(cached) " >&6
9877else
9878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879/* end confdefs.h.  */
9880
9881void foo (void) {
9882  __builtin_unreachable();
9883}
9884
9885int
9886main ()
9887{
9888
9889	{
9890		foo();
9891	}
9892
9893  ;
9894  return 0;
9895}
9896_ACEOF
9897if ac_fn_c_try_link "$LINENO"; then :
9898  je_cv_gcc_builtin_unreachable=yes
9899else
9900  je_cv_gcc_builtin_unreachable=no
9901fi
9902rm -f core conftest.err conftest.$ac_objext \
9903    conftest$ac_exeext conftest.$ac_ext
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
9906$as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
9907
9908if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
9909  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
9910
9911else
9912  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
9913
9914fi
9915
9916
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
9918$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
9919if ${je_cv_gcc_builtin_ffsl+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924
9925#include <stdio.h>
9926#include <strings.h>
9927#include <string.h>
9928
9929int
9930main ()
9931{
9932
9933	{
9934		int rv = __builtin_ffsl(0x08);
9935		printf("%d\n", rv);
9936	}
9937
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943  je_cv_gcc_builtin_ffsl=yes
9944else
9945  je_cv_gcc_builtin_ffsl=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948    conftest$ac_exeext conftest.$ac_ext
9949fi
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
9951$as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
9952
9953if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
9954  $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
9955
9956  $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
9957
9958  $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
9959
9960else
9961
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
9963$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
9964if ${je_cv_function_ffsl+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969
9970  #include <stdio.h>
9971  #include <strings.h>
9972  #include <string.h>
9973
9974int
9975main ()
9976{
9977
9978	{
9979		int rv = ffsl(0x08);
9980		printf("%d\n", rv);
9981	}
9982
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987if ac_fn_c_try_link "$LINENO"; then :
9988  je_cv_function_ffsl=yes
9989else
9990  je_cv_function_ffsl=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext \
9993    conftest$ac_exeext conftest.$ac_ext
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
9996$as_echo "$je_cv_function_ffsl" >&6; }
9997
9998  if test "x${je_cv_function_ffsl}" = "xyes" ; then
9999    $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
10000
10001    $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
10002
10003    $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
10004
10005  else
10006    as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
10007  fi
10008fi
10009
10010
10011# Check whether --with-lg_quantum was given.
10012if test "${with_lg_quantum+set}" = set; then :
10013  withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10014else
10015  LG_QUANTA="3 4"
10016fi
10017
10018if test "x$with_lg_quantum" != "x" ; then
10019  cat >>confdefs.h <<_ACEOF
10020#define LG_QUANTUM $with_lg_quantum
10021_ACEOF
10022
10023fi
10024
10025
10026# Check whether --with-lg_page was given.
10027if test "${with_lg_page+set}" = set; then :
10028  withval=$with_lg_page; LG_PAGE="$with_lg_page"
10029else
10030  LG_PAGE="detect"
10031fi
10032
10033if test "x$LG_PAGE" = "xdetect"; then
10034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10035$as_echo_n "checking LG_PAGE... " >&6; }
10036if ${je_cv_lg_page+:} false; then :
10037  $as_echo_n "(cached) " >&6
10038else
10039  if test "$cross_compiling" = yes; then :
10040  je_cv_lg_page=12
10041else
10042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043/* end confdefs.h.  */
10044
10045#include <strings.h>
10046#ifdef _WIN32
10047#include <windows.h>
10048#else
10049#include <unistd.h>
10050#endif
10051#include <stdio.h>
10052
10053int
10054main ()
10055{
10056
10057    int result;
10058    FILE *f;
10059
10060#ifdef _WIN32
10061    SYSTEM_INFO si;
10062    GetSystemInfo(&si);
10063    result = si.dwPageSize;
10064#else
10065    result = sysconf(_SC_PAGESIZE);
10066#endif
10067    if (result == -1) {
10068	return 1;
10069    }
10070    result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10071
10072    f = fopen("conftest.out", "w");
10073    if (f == NULL) {
10074	return 1;
10075    }
10076    fprintf(f, "%d", result);
10077    fclose(f);
10078
10079    return 0;
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_run "$LINENO"; then :
10086  je_cv_lg_page=`cat conftest.out`
10087else
10088  je_cv_lg_page=undefined
10089fi
10090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10091  conftest.$ac_objext conftest.beam conftest.$ac_ext
10092fi
10093
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10096$as_echo "$je_cv_lg_page" >&6; }
10097fi
10098if test "x${je_cv_lg_page}" != "x" ; then
10099  LG_PAGE="${je_cv_lg_page}"
10100fi
10101if test "x${LG_PAGE}" != "xundefined" ; then
10102   cat >>confdefs.h <<_ACEOF
10103#define LG_PAGE $LG_PAGE
10104_ACEOF
10105
10106else
10107   as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10108fi
10109
10110
10111# Check whether --with-lg_hugepage was given.
10112if test "${with_lg_hugepage+set}" = set; then :
10113  withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10114else
10115  je_cv_lg_hugepage=""
10116fi
10117
10118if test "x${je_cv_lg_hugepage}" = "x" ; then
10119          if test -e "/proc/meminfo" ; then
10120    hpsk=`cat /proc/meminfo 2>/dev/null | \
10121          grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10122          awk '{print $2}'`
10123    if test "x${hpsk}" != "x" ; then
10124      je_cv_lg_hugepage=10
10125      while test "${hpsk}" -gt 1 ; do
10126        hpsk="$((hpsk / 2))"
10127        je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10128      done
10129    fi
10130  fi
10131
10132    if test "x${je_cv_lg_hugepage}" = "x" ; then
10133    je_cv_lg_hugepage=21
10134  fi
10135fi
10136if test "x${LG_PAGE}" != "xundefined" -a \
10137        "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10138  as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10139fi
10140cat >>confdefs.h <<_ACEOF
10141#define LG_HUGEPAGE ${je_cv_lg_hugepage}
10142_ACEOF
10143
10144
10145
10146# Check whether --with-lg_page_sizes was given.
10147if test "${with_lg_page_sizes+set}" = set; then :
10148  withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
10149else
10150  LG_PAGE_SIZES="$LG_PAGE"
10151fi
10152
10153
10154
10155
10156# Check whether --with-version was given.
10157if test "${with_version+set}" = set; then :
10158  withval=$with_version;
10159    echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
10160    if test $? -eq 0 ; then
10161      echo "$with_version" > "${objroot}VERSION"
10162    else
10163      echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
10164      if test $? -ne 0 ; then
10165        as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
10166      fi
10167    fi
10168
10169else
10170
10171        if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
10172                        for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
10173                     '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
10174                     '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
10175                     '[0-9][0-9].[0-9][0-9].[0-9]' \
10176                     '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
10177        (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
10178        if test $? -eq 0 ; then
10179          mv "${objroot}VERSION.tmp" "${objroot}VERSION"
10180          break
10181        fi
10182      done
10183    fi
10184    rm -f "${objroot}VERSION.tmp"
10185
10186fi
10187
10188
10189if test ! -e "${objroot}VERSION" ; then
10190  if test ! -e "${srcroot}VERSION" ; then
10191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
10192$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
10193    echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
10194  else
10195    cp ${srcroot}VERSION ${objroot}VERSION
10196  fi
10197fi
10198jemalloc_version=`cat "${objroot}VERSION"`
10199jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
10200jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
10201jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
10202jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
10203jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
10204
10205
10206
10207
10208
10209
10210
10211
10212if test "x$abi" != "xpecoff" ; then
10213  $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
10214
10215  for ac_header in pthread.h
10216do :
10217  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10218if test "x$ac_cv_header_pthread_h" = xyes; then :
10219  cat >>confdefs.h <<_ACEOF
10220#define HAVE_PTHREAD_H 1
10221_ACEOF
10222
10223else
10224  as_fn_error $? "pthread.h is missing" "$LINENO" 5
10225fi
10226
10227done
10228
10229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10230$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10231if ${ac_cv_lib_pthread_pthread_create+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  ac_check_lib_save_LIBS=$LIBS
10235LIBS="-lpthread  $LIBS"
10236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h.  */
10238
10239/* Override any GCC internal prototype to avoid an error.
10240   Use char because int might match the return type of a GCC
10241   builtin and then its argument prototype would still apply.  */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char pthread_create ();
10246int
10247main ()
10248{
10249return pthread_create ();
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254if ac_fn_c_try_link "$LINENO"; then :
10255  ac_cv_lib_pthread_pthread_create=yes
10256else
10257  ac_cv_lib_pthread_pthread_create=no
10258fi
10259rm -f core conftest.err conftest.$ac_objext \
10260    conftest$ac_exeext conftest.$ac_ext
10261LIBS=$ac_check_lib_save_LIBS
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10264$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10265if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10266  T_APPEND_V=-lpthread
10267  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10268  LIBS="${LIBS}${T_APPEND_V}"
10269else
10270  LIBS="${LIBS} ${T_APPEND_V}"
10271fi
10272
10273
10274else
10275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10276$as_echo_n "checking for library containing pthread_create... " >&6; }
10277if ${ac_cv_search_pthread_create+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  ac_func_search_save_LIBS=$LIBS
10281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283
10284/* Override any GCC internal prototype to avoid an error.
10285   Use char because int might match the return type of a GCC
10286   builtin and then its argument prototype would still apply.  */
10287#ifdef __cplusplus
10288extern "C"
10289#endif
10290char pthread_create ();
10291int
10292main ()
10293{
10294return pthread_create ();
10295  ;
10296  return 0;
10297}
10298_ACEOF
10299for ac_lib in '' ; do
10300  if test -z "$ac_lib"; then
10301    ac_res="none required"
10302  else
10303    ac_res=-l$ac_lib
10304    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10305  fi
10306  if ac_fn_c_try_link "$LINENO"; then :
10307  ac_cv_search_pthread_create=$ac_res
10308fi
10309rm -f core conftest.err conftest.$ac_objext \
10310    conftest$ac_exeext
10311  if ${ac_cv_search_pthread_create+:} false; then :
10312  break
10313fi
10314done
10315if ${ac_cv_search_pthread_create+:} false; then :
10316
10317else
10318  ac_cv_search_pthread_create=no
10319fi
10320rm conftest.$ac_ext
10321LIBS=$ac_func_search_save_LIBS
10322fi
10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10324$as_echo "$ac_cv_search_pthread_create" >&6; }
10325ac_res=$ac_cv_search_pthread_create
10326if test "$ac_res" != no; then :
10327  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10328
10329else
10330  as_fn_error $? "libpthread is missing" "$LINENO" 5
10331fi
10332
10333fi
10334
10335  wrap_syms="${wrap_syms} pthread_create"
10336  have_pthread="1"
10337    have_dlsym="1"
10338  for ac_header in dlfcn.h
10339do :
10340  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10341if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10342  cat >>confdefs.h <<_ACEOF
10343#define HAVE_DLFCN_H 1
10344_ACEOF
10345 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10346if test "x$ac_cv_func_dlsym" = xyes; then :
10347
10348else
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10350$as_echo_n "checking for dlsym in -ldl... " >&6; }
10351if ${ac_cv_lib_dl_dlsym+:} false; then :
10352  $as_echo_n "(cached) " >&6
10353else
10354  ac_check_lib_save_LIBS=$LIBS
10355LIBS="-ldl  $LIBS"
10356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358
10359/* Override any GCC internal prototype to avoid an error.
10360   Use char because int might match the return type of a GCC
10361   builtin and then its argument prototype would still apply.  */
10362#ifdef __cplusplus
10363extern "C"
10364#endif
10365char dlsym ();
10366int
10367main ()
10368{
10369return dlsym ();
10370  ;
10371  return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375  ac_cv_lib_dl_dlsym=yes
10376else
10377  ac_cv_lib_dl_dlsym=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext \
10380    conftest$ac_exeext conftest.$ac_ext
10381LIBS=$ac_check_lib_save_LIBS
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10384$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10385if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10386  LIBS="$LIBS -ldl"
10387else
10388  have_dlsym="0"
10389fi
10390
10391fi
10392
10393else
10394  have_dlsym="0"
10395fi
10396
10397done
10398
10399  if test "x$have_dlsym" = "x1" ; then
10400    $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
10401
10402  fi
10403
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10405$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10406if ${je_cv_pthread_atfork+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h.  */
10411
10412#include <pthread.h>
10413
10414int
10415main ()
10416{
10417
10418  pthread_atfork((void *)0, (void *)0, (void *)0);
10419
10420  ;
10421  return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"; then :
10425  je_cv_pthread_atfork=yes
10426else
10427  je_cv_pthread_atfork=no
10428fi
10429rm -f core conftest.err conftest.$ac_objext \
10430    conftest$ac_exeext conftest.$ac_ext
10431fi
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10433$as_echo "$je_cv_pthread_atfork" >&6; }
10434
10435  if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10436    $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
10437
10438  fi
10439
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10441$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10442if ${je_cv_pthread_setname_np+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447
10448#include <pthread.h>
10449
10450int
10451main ()
10452{
10453
10454  pthread_setname_np(pthread_self(), "setname_test");
10455
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then :
10461  je_cv_pthread_setname_np=yes
10462else
10463  je_cv_pthread_setname_np=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466    conftest$ac_exeext conftest.$ac_ext
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10469$as_echo "$je_cv_pthread_setname_np" >&6; }
10470
10471  if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10472    $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
10473
10474  fi
10475fi
10476
10477T_APPEND_V=-D_REENTRANT
10478  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10479  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10480else
10481  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10482fi
10483
10484
10485
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10487$as_echo_n "checking for library containing clock_gettime... " >&6; }
10488if ${ac_cv_search_clock_gettime+:} false; then :
10489  $as_echo_n "(cached) " >&6
10490else
10491  ac_func_search_save_LIBS=$LIBS
10492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h.  */
10494
10495/* Override any GCC internal prototype to avoid an error.
10496   Use char because int might match the return type of a GCC
10497   builtin and then its argument prototype would still apply.  */
10498#ifdef __cplusplus
10499extern "C"
10500#endif
10501char clock_gettime ();
10502int
10503main ()
10504{
10505return clock_gettime ();
10506  ;
10507  return 0;
10508}
10509_ACEOF
10510for ac_lib in '' rt; do
10511  if test -z "$ac_lib"; then
10512    ac_res="none required"
10513  else
10514    ac_res=-l$ac_lib
10515    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10516  fi
10517  if ac_fn_c_try_link "$LINENO"; then :
10518  ac_cv_search_clock_gettime=$ac_res
10519fi
10520rm -f core conftest.err conftest.$ac_objext \
10521    conftest$ac_exeext
10522  if ${ac_cv_search_clock_gettime+:} false; then :
10523  break
10524fi
10525done
10526if ${ac_cv_search_clock_gettime+:} false; then :
10527
10528else
10529  ac_cv_search_clock_gettime=no
10530fi
10531rm conftest.$ac_ext
10532LIBS=$ac_func_search_save_LIBS
10533fi
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10535$as_echo "$ac_cv_search_clock_gettime" >&6; }
10536ac_res=$ac_cv_search_clock_gettime
10537if test "$ac_res" != no; then :
10538  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10539
10540fi
10541
10542
10543if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10544  if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10545    SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10546
10547
10548    unset ac_cv_search_clock_gettime
10549
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10551$as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10552T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10553T_APPEND_V=-dynamic
10554  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10555  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10556else
10557  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10558fi
10559
10560
10561if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10562  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10563else
10564  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10565fi
10566
10567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h.  */
10569
10570
10571int
10572main ()
10573{
10574
10575    return 0;
10576
10577  ;
10578  return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_compile "$LINENO"; then :
10582  je_cv_cflags_added=-dynamic
10583              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10584$as_echo "yes" >&6; }
10585else
10586  je_cv_cflags_added=
10587              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588$as_echo "no" >&6; }
10589              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10590
10591fi
10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10594  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10595else
10596  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10597fi
10598
10599
10600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10601$as_echo_n "checking for library containing clock_gettime... " >&6; }
10602if ${ac_cv_search_clock_gettime+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  ac_func_search_save_LIBS=$LIBS
10606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608
10609/* Override any GCC internal prototype to avoid an error.
10610   Use char because int might match the return type of a GCC
10611   builtin and then its argument prototype would still apply.  */
10612#ifdef __cplusplus
10613extern "C"
10614#endif
10615char clock_gettime ();
10616int
10617main ()
10618{
10619return clock_gettime ();
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624for ac_lib in '' rt; do
10625  if test -z "$ac_lib"; then
10626    ac_res="none required"
10627  else
10628    ac_res=-l$ac_lib
10629    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10630  fi
10631  if ac_fn_c_try_link "$LINENO"; then :
10632  ac_cv_search_clock_gettime=$ac_res
10633fi
10634rm -f core conftest.err conftest.$ac_objext \
10635    conftest$ac_exeext
10636  if ${ac_cv_search_clock_gettime+:} false; then :
10637  break
10638fi
10639done
10640if ${ac_cv_search_clock_gettime+:} false; then :
10641
10642else
10643  ac_cv_search_clock_gettime=no
10644fi
10645rm conftest.$ac_ext
10646LIBS=$ac_func_search_save_LIBS
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10649$as_echo "$ac_cv_search_clock_gettime" >&6; }
10650ac_res=$ac_cv_search_clock_gettime
10651if test "$ac_res" != no; then :
10652  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10653
10654fi
10655
10656
10657    CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10658if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10659  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10660else
10661  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10662fi
10663
10664
10665  fi
10666fi
10667
10668
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
10670$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
10671if ${je_cv_clock_monotonic_coarse+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h.  */
10676
10677#include <time.h>
10678
10679int
10680main ()
10681{
10682
10683	struct timespec ts;
10684
10685	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
10686
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691if ac_fn_c_try_link "$LINENO"; then :
10692  je_cv_clock_monotonic_coarse=yes
10693else
10694  je_cv_clock_monotonic_coarse=no
10695fi
10696rm -f core conftest.err conftest.$ac_objext \
10697    conftest$ac_exeext conftest.$ac_ext
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
10700$as_echo "$je_cv_clock_monotonic_coarse" >&6; }
10701
10702if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
10703  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
10704
10705fi
10706
10707
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
10709$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
10710if ${je_cv_clock_monotonic+:} false; then :
10711  $as_echo_n "(cached) " >&6
10712else
10713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715
10716#include <unistd.h>
10717#include <time.h>
10718
10719int
10720main ()
10721{
10722
10723	struct timespec ts;
10724
10725	clock_gettime(CLOCK_MONOTONIC, &ts);
10726#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
10727#  error _POSIX_MONOTONIC_CLOCK missing/invalid
10728#endif
10729
10730  ;
10731  return 0;
10732}
10733_ACEOF
10734if ac_fn_c_try_link "$LINENO"; then :
10735  je_cv_clock_monotonic=yes
10736else
10737  je_cv_clock_monotonic=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740    conftest$ac_exeext conftest.$ac_ext
10741fi
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
10743$as_echo "$je_cv_clock_monotonic" >&6; }
10744
10745if test "x${je_cv_clock_monotonic}" = "xyes" ; then
10746  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
10747
10748fi
10749
10750
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
10752$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
10753if ${je_cv_mach_absolute_time+:} false; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757/* end confdefs.h.  */
10758
10759#include <mach/mach_time.h>
10760
10761int
10762main ()
10763{
10764
10765	mach_absolute_time();
10766
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772  je_cv_mach_absolute_time=yes
10773else
10774  je_cv_mach_absolute_time=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext \
10777    conftest$ac_exeext conftest.$ac_ext
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
10780$as_echo "$je_cv_mach_absolute_time" >&6; }
10781
10782if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
10783  $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
10784
10785fi
10786
10787# Check whether --enable-syscall was given.
10788if test "${enable_syscall+set}" = set; then :
10789  enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
10790  enable_syscall="0"
10791else
10792  enable_syscall="1"
10793fi
10794
10795else
10796  enable_syscall="1"
10797
10798fi
10799
10800if test "x$enable_syscall" = "x1" ; then
10801      SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10802
10803
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
10805$as_echo_n "checking whether compiler supports -Werror... " >&6; }
10806T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10807T_APPEND_V=-Werror
10808  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10809  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10810else
10811  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10812fi
10813
10814
10815if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10816  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10817else
10818  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10819fi
10820
10821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823
10824
10825int
10826main ()
10827{
10828
10829    return 0;
10830
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_compile "$LINENO"; then :
10836  je_cv_cflags_added=-Werror
10837              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10838$as_echo "yes" >&6; }
10839else
10840  je_cv_cflags_added=
10841              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10844
10845fi
10846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10848  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10849else
10850  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10851fi
10852
10853
10854
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
10856$as_echo_n "checking whether syscall(2) is compilable... " >&6; }
10857if ${je_cv_syscall+:} false; then :
10858  $as_echo_n "(cached) " >&6
10859else
10860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h.  */
10862
10863#include <sys/syscall.h>
10864#include <unistd.h>
10865
10866int
10867main ()
10868{
10869
10870	syscall(SYS_write, 2, "hello", 5);
10871
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876if ac_fn_c_try_link "$LINENO"; then :
10877  je_cv_syscall=yes
10878else
10879  je_cv_syscall=no
10880fi
10881rm -f core conftest.err conftest.$ac_objext \
10882    conftest$ac_exeext conftest.$ac_ext
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
10885$as_echo "$je_cv_syscall" >&6; }
10886
10887  CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10888if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10889  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10890else
10891  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10892fi
10893
10894
10895  if test "x$je_cv_syscall" = "xyes" ; then
10896    $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
10897
10898  fi
10899fi
10900
10901ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
10902if test "x$ac_cv_func_secure_getenv" = xyes; then :
10903  have_secure_getenv="1"
10904else
10905  have_secure_getenv="0"
10906
10907fi
10908
10909if test "x$have_secure_getenv" = "x1" ; then
10910  $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
10911
10912fi
10913
10914ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
10915if test "x$ac_cv_func_sched_getcpu" = xyes; then :
10916  have_sched_getcpu="1"
10917else
10918  have_sched_getcpu="0"
10919
10920fi
10921
10922if test "x$have_sched_getcpu" = "x1" ; then
10923  $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
10924
10925fi
10926
10927ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
10928if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
10929  have_sched_setaffinity="1"
10930else
10931  have_sched_setaffinity="0"
10932
10933fi
10934
10935if test "x$have_sched_setaffinity" = "x1" ; then
10936  $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
10937
10938fi
10939
10940ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
10941if test "x$ac_cv_func_issetugid" = xyes; then :
10942  have_issetugid="1"
10943else
10944  have_issetugid="0"
10945
10946fi
10947
10948if test "x$have_issetugid" = "x1" ; then
10949  $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
10950
10951fi
10952
10953ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
10954if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
10955  have__malloc_thread_cleanup="1"
10956else
10957  have__malloc_thread_cleanup="0"
10958
10959fi
10960
10961if test "x$have__malloc_thread_cleanup" = "x1" ; then
10962  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
10963
10964  wrap_syms="${wrap_syms} _malloc_thread_cleanup"
10965  force_tls="1"
10966fi
10967
10968ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
10969if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
10970  have__pthread_mutex_init_calloc_cb="1"
10971else
10972  have__pthread_mutex_init_calloc_cb="0"
10973
10974fi
10975
10976if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
10977  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
10978
10979  wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
10980fi
10981
10982# Check whether --enable-lazy_lock was given.
10983if test "${enable_lazy_lock+set}" = set; then :
10984  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
10985  enable_lazy_lock="0"
10986else
10987  enable_lazy_lock="1"
10988fi
10989
10990else
10991  enable_lazy_lock=""
10992
10993fi
10994
10995if test "x${enable_lazy_lock}" = "x" ; then
10996  if test "x${force_lazy_lock}" = "x1" ; then
10997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
10998$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
10999    enable_lazy_lock="1"
11000  else
11001    enable_lazy_lock="0"
11002  fi
11003fi
11004if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
11006$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
11007  enable_lazy_lock="0"
11008fi
11009if test "x$enable_lazy_lock" = "x1" ; then
11010  if test "x$have_dlsym" = "x1" ; then
11011    $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
11012
11013  else
11014    as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11015  fi
11016fi
11017
11018
11019if test "x${force_tls}" = "x1" ; then
11020  enable_tls="1"
11021elif test "x${force_tls}" = "x0" ; then
11022  enable_tls="0"
11023else
11024  enable_tls="1"
11025fi
11026if test "x${enable_tls}" = "x1" ; then
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11028$as_echo_n "checking for TLS... " >&6; }
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031
11032    __thread int x;
11033
11034int
11035main ()
11036{
11037
11038    x = 42;
11039
11040    return 0;
11041
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_compile "$LINENO"; then :
11047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11048$as_echo "yes" >&6; }
11049else
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
11052              enable_tls="0"
11053fi
11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055else
11056  enable_tls="0"
11057fi
11058
11059if test "x${enable_tls}" = "x1" ; then
11060  cat >>confdefs.h <<_ACEOF
11061#define JEMALLOC_TLS
11062_ACEOF
11063
11064fi
11065
11066
11067
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11069$as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11070if ${je_cv_c11_atomics+:} false; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075
11076#include <stdint.h>
11077#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11078#include <stdatomic.h>
11079#else
11080#error Atomics not available
11081#endif
11082
11083int
11084main ()
11085{
11086
11087    uint64_t *p = (uint64_t *)0;
11088    uint64_t x = 1;
11089    volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11090    uint64_t r = atomic_fetch_add(a, x) + x;
11091    return r == 0;
11092
11093  ;
11094  return 0;
11095}
11096_ACEOF
11097if ac_fn_c_try_link "$LINENO"; then :
11098  je_cv_c11_atomics=yes
11099else
11100  je_cv_c11_atomics=no
11101fi
11102rm -f core conftest.err conftest.$ac_objext \
11103    conftest$ac_exeext conftest.$ac_ext
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11106$as_echo "$je_cv_c11_atomics" >&6; }
11107
11108if test "x${je_cv_c11_atomics}" = "xyes" ; then
11109  $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11110
11111fi
11112
11113
11114
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11116$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11117if ${je_cv_gcc_atomic_atomics+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121/* end confdefs.h.  */
11122
11123
11124int
11125main ()
11126{
11127
11128    int x = 0;
11129    int val = 1;
11130    int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11131    int after_add = x;
11132    return after_add == 1;
11133
11134  ;
11135  return 0;
11136}
11137_ACEOF
11138if ac_fn_c_try_link "$LINENO"; then :
11139  je_cv_gcc_atomic_atomics=yes
11140else
11141  je_cv_gcc_atomic_atomics=no
11142fi
11143rm -f core conftest.err conftest.$ac_objext \
11144    conftest$ac_exeext conftest.$ac_ext
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11147$as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11148
11149if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11150  $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11151
11152fi
11153
11154
11155
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11157$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11158if ${je_cv_gcc_sync_atomics+:} false; then :
11159  $as_echo_n "(cached) " >&6
11160else
11161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162/* end confdefs.h.  */
11163
11164
11165int
11166main ()
11167{
11168
11169    int x = 0;
11170    int before_add = __sync_fetch_and_add(&x, 1);
11171    int after_add = x;
11172    return (before_add == 0) && (after_add == 1);
11173
11174  ;
11175  return 0;
11176}
11177_ACEOF
11178if ac_fn_c_try_link "$LINENO"; then :
11179  je_cv_gcc_sync_atomics=yes
11180else
11181  je_cv_gcc_sync_atomics=no
11182fi
11183rm -f core conftest.err conftest.$ac_objext \
11184    conftest$ac_exeext conftest.$ac_ext
11185fi
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11187$as_echo "$je_cv_gcc_sync_atomics" >&6; }
11188
11189if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11190  $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11191
11192fi
11193
11194
11195
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11197$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11198if ${je_cv_osatomic+:} false; then :
11199  $as_echo_n "(cached) " >&6
11200else
11201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202/* end confdefs.h.  */
11203
11204#include <libkern/OSAtomic.h>
11205#include <inttypes.h>
11206
11207int
11208main ()
11209{
11210
11211	{
11212		int32_t x32 = 0;
11213		volatile int32_t *x32p = &x32;
11214		OSAtomicAdd32(1, x32p);
11215	}
11216	{
11217		int64_t x64 = 0;
11218		volatile int64_t *x64p = &x64;
11219		OSAtomicAdd64(1, x64p);
11220	}
11221
11222  ;
11223  return 0;
11224}
11225_ACEOF
11226if ac_fn_c_try_link "$LINENO"; then :
11227  je_cv_osatomic=yes
11228else
11229  je_cv_osatomic=no
11230fi
11231rm -f core conftest.err conftest.$ac_objext \
11232    conftest$ac_exeext conftest.$ac_ext
11233fi
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11235$as_echo "$je_cv_osatomic" >&6; }
11236
11237if test "x${je_cv_osatomic}" = "xyes" ; then
11238  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
11239
11240fi
11241
11242
11243
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11245$as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11246if ${je_cv_madvise+:} false; then :
11247  $as_echo_n "(cached) " >&6
11248else
11249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h.  */
11251
11252#include <sys/mman.h>
11253
11254int
11255main ()
11256{
11257
11258	madvise((void *)0, 0, 0);
11259
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264if ac_fn_c_try_link "$LINENO"; then :
11265  je_cv_madvise=yes
11266else
11267  je_cv_madvise=no
11268fi
11269rm -f core conftest.err conftest.$ac_objext \
11270    conftest$ac_exeext conftest.$ac_ext
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11273$as_echo "$je_cv_madvise" >&6; }
11274
11275if test "x${je_cv_madvise}" = "xyes" ; then
11276  $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
11277
11278
11279
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11281$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11282if ${je_cv_madv_free+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h.  */
11287
11288#include <sys/mman.h>
11289
11290int
11291main ()
11292{
11293
11294	madvise((void *)0, 0, MADV_FREE);
11295
11296  ;
11297  return 0;
11298}
11299_ACEOF
11300if ac_fn_c_try_link "$LINENO"; then :
11301  je_cv_madv_free=yes
11302else
11303  je_cv_madv_free=no
11304fi
11305rm -f core conftest.err conftest.$ac_objext \
11306    conftest$ac_exeext conftest.$ac_ext
11307fi
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11309$as_echo "$je_cv_madv_free" >&6; }
11310
11311  if test "x${je_cv_madv_free}" = "xyes" ; then
11312    $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11313
11314  elif test "x${je_cv_madvise}" = "xyes" ; then
11315    case "${host_cpu}" in i686|x86_64)
11316        case "${host}" in *-*-linux*)
11317            $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11318
11319            $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
11320
11321	    ;;
11322        esac
11323        ;;
11324    esac
11325  fi
11326
11327
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11329$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11330if ${je_cv_madv_dontneed+:} false; then :
11331  $as_echo_n "(cached) " >&6
11332else
11333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h.  */
11335
11336#include <sys/mman.h>
11337
11338int
11339main ()
11340{
11341
11342	madvise((void *)0, 0, MADV_DONTNEED);
11343
11344  ;
11345  return 0;
11346}
11347_ACEOF
11348if ac_fn_c_try_link "$LINENO"; then :
11349  je_cv_madv_dontneed=yes
11350else
11351  je_cv_madv_dontneed=no
11352fi
11353rm -f core conftest.err conftest.$ac_objext \
11354    conftest$ac_exeext conftest.$ac_ext
11355fi
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11357$as_echo "$je_cv_madv_dontneed" >&6; }
11358
11359  if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11360    $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
11361
11362  fi
11363
11364
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11366$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11367if ${je_cv_madv_dontdump+:} false; then :
11368  $as_echo_n "(cached) " >&6
11369else
11370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371/* end confdefs.h.  */
11372
11373#include <sys/mman.h>
11374
11375int
11376main ()
11377{
11378
11379	madvise((void *)0, 0, MADV_DONTDUMP);
11380	madvise((void *)0, 0, MADV_DODUMP);
11381
11382  ;
11383  return 0;
11384}
11385_ACEOF
11386if ac_fn_c_try_link "$LINENO"; then :
11387  je_cv_madv_dontdump=yes
11388else
11389  je_cv_madv_dontdump=no
11390fi
11391rm -f core conftest.err conftest.$ac_objext \
11392    conftest$ac_exeext conftest.$ac_ext
11393fi
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11395$as_echo "$je_cv_madv_dontdump" >&6; }
11396
11397  if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11398    $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
11399
11400  fi
11401
11402
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11404$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11405if ${je_cv_thp+:} false; then :
11406  $as_echo_n "(cached) " >&6
11407else
11408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410
11411#include <sys/mman.h>
11412
11413int
11414main ()
11415{
11416
11417	madvise((void *)0, 0, MADV_HUGEPAGE);
11418	madvise((void *)0, 0, MADV_NOHUGEPAGE);
11419
11420  ;
11421  return 0;
11422}
11423_ACEOF
11424if ac_fn_c_try_link "$LINENO"; then :
11425  je_cv_thp=yes
11426else
11427  je_cv_thp=no
11428fi
11429rm -f core conftest.err conftest.$ac_objext \
11430    conftest$ac_exeext conftest.$ac_ext
11431fi
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11433$as_echo "$je_cv_thp" >&6; }
11434
11435case "${host_cpu}" in
11436  arm*)
11437    ;;
11438  *)
11439  if test "x${je_cv_thp}" = "xyes" ; then
11440    $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
11441
11442  fi
11443  ;;
11444esac
11445fi
11446
11447
11448
11449
11450if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
11451
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
11453$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
11454if ${je_cv_sync_compare_and_swap_4+:} false; then :
11455  $as_echo_n "(cached) " >&6
11456else
11457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458/* end confdefs.h.  */
11459
11460                                                 #include <stdint.h>
11461
11462int
11463main ()
11464{
11465
11466                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
11467                                                 {
11468                                                    uint32_t x32 = 0;
11469                                                    __sync_add_and_fetch(&x32, 42);
11470                                                    __sync_sub_and_fetch(&x32, 1);
11471                                                 }
11472                                                 #else
11473                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
11474                                                 #endif
11475
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_link "$LINENO"; then :
11481  je_cv_sync_compare_and_swap_4=yes
11482else
11483  je_cv_sync_compare_and_swap_4=no
11484fi
11485rm -f core conftest.err conftest.$ac_objext \
11486    conftest$ac_exeext conftest.$ac_ext
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
11489$as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
11490
11491  if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
11492    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
11493
11494  fi
11495
11496
11497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
11498$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
11499if ${je_cv_sync_compare_and_swap_8+:} false; then :
11500  $as_echo_n "(cached) " >&6
11501else
11502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503/* end confdefs.h.  */
11504
11505                                                 #include <stdint.h>
11506
11507int
11508main ()
11509{
11510
11511                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
11512                                                 {
11513                                                    uint64_t x64 = 0;
11514                                                    __sync_add_and_fetch(&x64, 42);
11515                                                    __sync_sub_and_fetch(&x64, 1);
11516                                                 }
11517                                                 #else
11518                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
11519                                                 #endif
11520
11521  ;
11522  return 0;
11523}
11524_ACEOF
11525if ac_fn_c_try_link "$LINENO"; then :
11526  je_cv_sync_compare_and_swap_8=yes
11527else
11528  je_cv_sync_compare_and_swap_8=no
11529fi
11530rm -f core conftest.err conftest.$ac_objext \
11531    conftest$ac_exeext conftest.$ac_ext
11532fi
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
11534$as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
11535
11536  if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
11537    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
11538
11539  fi
11540
11541fi
11542
11543
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11545$as_echo_n "checking for __builtin_clz... " >&6; }
11546if ${je_cv_builtin_clz+:} false; then :
11547  $as_echo_n "(cached) " >&6
11548else
11549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550/* end confdefs.h.  */
11551
11552int
11553main ()
11554{
11555
11556                                                {
11557                                                        unsigned x = 0;
11558                                                        int y = __builtin_clz(x);
11559                                                }
11560                                                {
11561                                                        unsigned long x = 0;
11562                                                        int y = __builtin_clzl(x);
11563                                                }
11564
11565  ;
11566  return 0;
11567}
11568_ACEOF
11569if ac_fn_c_try_link "$LINENO"; then :
11570  je_cv_builtin_clz=yes
11571else
11572  je_cv_builtin_clz=no
11573fi
11574rm -f core conftest.err conftest.$ac_objext \
11575    conftest$ac_exeext conftest.$ac_ext
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11578$as_echo "$je_cv_builtin_clz" >&6; }
11579
11580if test "x${je_cv_builtin_clz}" = "xyes" ; then
11581  $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
11582
11583fi
11584
11585
11586
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
11588$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
11589if ${je_cv_os_unfair_lock+:} false; then :
11590  $as_echo_n "(cached) " >&6
11591else
11592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h.  */
11594
11595#include <os/lock.h>
11596#include <AvailabilityMacros.h>
11597
11598int
11599main ()
11600{
11601
11602	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
11603	#error "os_unfair_lock is not supported"
11604	#else
11605	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
11606	os_unfair_lock_lock(&lock);
11607	os_unfair_lock_unlock(&lock);
11608	#endif
11609
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615  je_cv_os_unfair_lock=yes
11616else
11617  je_cv_os_unfair_lock=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620    conftest$ac_exeext conftest.$ac_ext
11621fi
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
11623$as_echo "$je_cv_os_unfair_lock" >&6; }
11624
11625if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
11626  $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
11627
11628fi
11629
11630
11631
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
11633$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
11634if ${je_cv_osspin+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638/* end confdefs.h.  */
11639
11640#include <libkern/OSAtomic.h>
11641#include <inttypes.h>
11642
11643int
11644main ()
11645{
11646
11647	OSSpinLock lock = 0;
11648	OSSpinLockLock(&lock);
11649	OSSpinLockUnlock(&lock);
11650
11651  ;
11652  return 0;
11653}
11654_ACEOF
11655if ac_fn_c_try_link "$LINENO"; then :
11656  je_cv_osspin=yes
11657else
11658  je_cv_osspin=no
11659fi
11660rm -f core conftest.err conftest.$ac_objext \
11661    conftest$ac_exeext conftest.$ac_ext
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
11664$as_echo "$je_cv_osspin" >&6; }
11665
11666if test "x${je_cv_osspin}" = "xyes" ; then
11667  $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
11668
11669fi
11670
11671
11672# Check whether --enable-zone-allocator was given.
11673if test "${enable_zone_allocator+set}" = set; then :
11674  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
11675  enable_zone_allocator="0"
11676else
11677  enable_zone_allocator="1"
11678fi
11679
11680else
11681  if test "x${abi}" = "xmacho"; then
11682  enable_zone_allocator="1"
11683fi
11684
11685
11686fi
11687
11688
11689
11690if test "x${enable_zone_allocator}" = "x1" ; then
11691  if test "x${abi}" != "xmacho"; then
11692    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
11693  fi
11694  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
11695
11696fi
11697
11698# Check whether --enable-initial-exec-tls was given.
11699if test "${enable_initial_exec_tls+set}" = set; then :
11700  enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
11701  enable_initial_exec_tls="0"
11702else
11703  enable_initial_exec_tls="1"
11704fi
11705
11706else
11707  enable_initial_exec_tls="1"
11708
11709fi
11710
11711
11712
11713if test "x${je_cv_tls_model}" = "xyes" -a \
11714       "x${enable_initial_exec_tls}" = "x1" ; then
11715  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
11716
11717else
11718  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
11719
11720fi
11721
11722
11723if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
11724    -a "x${je_cv_os_unfair_lock}" != "xyes" \
11725    -a "x${je_cv_osspin}" != "xyes" ; then
11726  $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
11727
11728fi
11729
11730
11731
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
11733$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
11734if ${je_cv_glibc_malloc_hook+:} false; then :
11735  $as_echo_n "(cached) " >&6
11736else
11737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h.  */
11739
11740#include <stddef.h>
11741
11742extern void (* __free_hook)(void *ptr);
11743extern void *(* __malloc_hook)(size_t size);
11744extern void *(* __realloc_hook)(void *ptr, size_t size);
11745
11746int
11747main ()
11748{
11749
11750  void *ptr = 0L;
11751  if (__malloc_hook) ptr = __malloc_hook(1);
11752  if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
11753  if (__free_hook && ptr) __free_hook(ptr);
11754
11755  ;
11756  return 0;
11757}
11758_ACEOF
11759if ac_fn_c_try_link "$LINENO"; then :
11760  je_cv_glibc_malloc_hook=yes
11761else
11762  je_cv_glibc_malloc_hook=no
11763fi
11764rm -f core conftest.err conftest.$ac_objext \
11765    conftest$ac_exeext conftest.$ac_ext
11766fi
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
11768$as_echo "$je_cv_glibc_malloc_hook" >&6; }
11769
11770if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
11771  if test "x${JEMALLOC_PREFIX}" = "x" ; then
11772    $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
11773
11774    wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
11775  fi
11776fi
11777
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
11780$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
11781if ${je_cv_glibc_memalign_hook+:} false; then :
11782  $as_echo_n "(cached) " >&6
11783else
11784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785/* end confdefs.h.  */
11786
11787#include <stddef.h>
11788
11789extern void *(* __memalign_hook)(size_t alignment, size_t size);
11790
11791int
11792main ()
11793{
11794
11795  void *ptr = 0L;
11796  if (__memalign_hook) ptr = __memalign_hook(16, 7);
11797
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802if ac_fn_c_try_link "$LINENO"; then :
11803  je_cv_glibc_memalign_hook=yes
11804else
11805  je_cv_glibc_memalign_hook=no
11806fi
11807rm -f core conftest.err conftest.$ac_objext \
11808    conftest$ac_exeext conftest.$ac_ext
11809fi
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
11811$as_echo "$je_cv_glibc_memalign_hook" >&6; }
11812
11813if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
11814  if test "x${JEMALLOC_PREFIX}" = "x" ; then
11815    $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
11816
11817    wrap_syms="${wrap_syms} __memalign_hook"
11818  fi
11819fi
11820
11821
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
11823$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
11824if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
11825  $as_echo_n "(cached) " >&6
11826else
11827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h.  */
11829
11830#include <pthread.h>
11831
11832int
11833main ()
11834{
11835
11836  pthread_mutexattr_t attr;
11837  pthread_mutexattr_init(&attr);
11838  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
11839  pthread_mutexattr_destroy(&attr);
11840
11841  ;
11842  return 0;
11843}
11844_ACEOF
11845if ac_fn_c_try_link "$LINENO"; then :
11846  je_cv_pthread_mutex_adaptive_np=yes
11847else
11848  je_cv_pthread_mutex_adaptive_np=no
11849fi
11850rm -f core conftest.err conftest.$ac_objext \
11851    conftest$ac_exeext conftest.$ac_ext
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
11854$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
11855
11856if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
11857  $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
11858
11859fi
11860
11861SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11862
11863
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
11865$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
11866T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11867T_APPEND_V=-D_GNU_SOURCE
11868  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11869  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11870else
11871  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11872fi
11873
11874
11875if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11876  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11877else
11878  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11879fi
11880
11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h.  */
11883
11884
11885int
11886main ()
11887{
11888
11889    return 0;
11890
11891  ;
11892  return 0;
11893}
11894_ACEOF
11895if ac_fn_c_try_compile "$LINENO"; then :
11896  je_cv_cflags_added=-D_GNU_SOURCE
11897              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898$as_echo "yes" >&6; }
11899else
11900  je_cv_cflags_added=
11901              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11904
11905fi
11906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11908  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11909else
11910  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11911fi
11912
11913
11914
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11916$as_echo_n "checking whether compiler supports -Werror... " >&6; }
11917T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11918T_APPEND_V=-Werror
11919  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11920  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11921else
11922  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11923fi
11924
11925
11926if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11927  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11928else
11929  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11930fi
11931
11932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h.  */
11934
11935
11936int
11937main ()
11938{
11939
11940    return 0;
11941
11942  ;
11943  return 0;
11944}
11945_ACEOF
11946if ac_fn_c_try_compile "$LINENO"; then :
11947  je_cv_cflags_added=-Werror
11948              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11949$as_echo "yes" >&6; }
11950else
11951  je_cv_cflags_added=
11952              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953$as_echo "no" >&6; }
11954              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11955
11956fi
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11959  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11960else
11961  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11962fi
11963
11964
11965
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
11967$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
11968T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11969T_APPEND_V=-herror_on_warning
11970  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11971  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11972else
11973  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11974fi
11975
11976
11977if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11978  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11979else
11980  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11981fi
11982
11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h.  */
11985
11986
11987int
11988main ()
11989{
11990
11991    return 0;
11992
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_compile "$LINENO"; then :
11998  je_cv_cflags_added=-herror_on_warning
11999              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000$as_echo "yes" >&6; }
12001else
12002  je_cv_cflags_added=
12003              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
12005              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12006
12007fi
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12010  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12011else
12012  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12013fi
12014
12015
12016
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12018$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12019if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12020  $as_echo_n "(cached) " >&6
12021else
12022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023/* end confdefs.h.  */
12024
12025#include <errno.h>
12026#include <stdio.h>
12027#include <stdlib.h>
12028#include <string.h>
12029
12030int
12031main ()
12032{
12033
12034  char *buffer = (char *) malloc(100);
12035  char *error = strerror_r(EINVAL, buffer, 100);
12036  printf("%s\n", error);
12037
12038  ;
12039  return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_link "$LINENO"; then :
12043  je_cv_strerror_r_returns_char_with_gnu_source=yes
12044else
12045  je_cv_strerror_r_returns_char_with_gnu_source=no
12046fi
12047rm -f core conftest.err conftest.$ac_objext \
12048    conftest$ac_exeext conftest.$ac_ext
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12051$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12052
12053CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12054if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12055  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12056else
12057  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12058fi
12059
12060
12061if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12062  $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
12063
12064fi
12065
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12067$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12068if ${ac_cv_header_stdbool_h+:} false; then :
12069  $as_echo_n "(cached) " >&6
12070else
12071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h.  */
12073
12074             #include <stdbool.h>
12075             #ifndef bool
12076              "error: bool is not defined"
12077             #endif
12078             #ifndef false
12079              "error: false is not defined"
12080             #endif
12081             #if false
12082              "error: false is not 0"
12083             #endif
12084             #ifndef true
12085              "error: true is not defined"
12086             #endif
12087             #if true != 1
12088              "error: true is not 1"
12089             #endif
12090             #ifndef __bool_true_false_are_defined
12091              "error: __bool_true_false_are_defined is not defined"
12092             #endif
12093
12094             struct s { _Bool s: 1; _Bool t; } s;
12095
12096             char a[true == 1 ? 1 : -1];
12097             char b[false == 0 ? 1 : -1];
12098             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12099             char d[(bool) 0.5 == true ? 1 : -1];
12100             /* See body of main program for 'e'.  */
12101             char f[(_Bool) 0.0 == false ? 1 : -1];
12102             char g[true];
12103             char h[sizeof (_Bool)];
12104             char i[sizeof s.t];
12105             enum { j = false, k = true, l = false * true, m = true * 256 };
12106             /* The following fails for
12107                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12108             _Bool n[m];
12109             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12110             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12111             /* Catch a bug in an HP-UX C compiler.  See
12112                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12113                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12114              */
12115             _Bool q = true;
12116             _Bool *pq = &q;
12117
12118int
12119main ()
12120{
12121
12122             bool e = &s;
12123             *pq |= q;
12124             *pq |= ! q;
12125             /* Refer to every declared value, to avoid compiler optimizations.  */
12126             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12127                     + !m + !n + !o + !p + !q + !pq);
12128
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_compile "$LINENO"; then :
12134  ac_cv_header_stdbool_h=yes
12135else
12136  ac_cv_header_stdbool_h=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12141$as_echo "$ac_cv_header_stdbool_h" >&6; }
12142   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12143if test "x$ac_cv_type__Bool" = xyes; then :
12144
12145cat >>confdefs.h <<_ACEOF
12146#define HAVE__BOOL 1
12147_ACEOF
12148
12149
12150fi
12151
12152
12153if test $ac_cv_header_stdbool_h = yes; then
12154
12155$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12156
12157fi
12158
12159
12160
12161ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12162
12163ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12164
12165ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12166
12167ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12168
12169ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12170
12171ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
12172
12173ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12174
12175ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12176
12177ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12178
12179ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12180
12181ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12182
12183
12184
12185
12186ac_config_headers="$ac_config_headers $cfghdrs_tup"
12187
12188
12189
12190ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12191
12192
12193
12194cat >confcache <<\_ACEOF
12195# This file is a shell script that caches the results of configure
12196# tests run on this system so they can be shared between configure
12197# scripts and configure runs, see configure's option --config-cache.
12198# It is not useful on other systems.  If it contains results you don't
12199# want to keep, you may remove or edit it.
12200#
12201# config.status only pays attention to the cache file if you give it
12202# the --recheck option to rerun configure.
12203#
12204# `ac_cv_env_foo' variables (set or unset) will be overridden when
12205# loading this file, other *unset* `ac_cv_foo' will be assigned the
12206# following values.
12207
12208_ACEOF
12209
12210# The following way of writing the cache mishandles newlines in values,
12211# but we know of no workaround that is simple, portable, and efficient.
12212# So, we kill variables containing newlines.
12213# Ultrix sh set writes to stderr and can't be redirected directly,
12214# and sets the high bit in the cache file unless we assign to the vars.
12215(
12216  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12217    eval ac_val=\$$ac_var
12218    case $ac_val in #(
12219    *${as_nl}*)
12220      case $ac_var in #(
12221      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12223      esac
12224      case $ac_var in #(
12225      _ | IFS | as_nl) ;; #(
12226      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12227      *) { eval $ac_var=; unset $ac_var;} ;;
12228      esac ;;
12229    esac
12230  done
12231
12232  (set) 2>&1 |
12233    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12234    *${as_nl}ac_space=\ *)
12235      # `set' does not quote correctly, so add quotes: double-quote
12236      # substitution turns \\\\ into \\, and sed turns \\ into \.
12237      sed -n \
12238	"s/'/'\\\\''/g;
12239	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12240      ;; #(
12241    *)
12242      # `set' quotes correctly as required by POSIX, so do not add quotes.
12243      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12244      ;;
12245    esac |
12246    sort
12247) |
12248  sed '
12249     /^ac_cv_env_/b end
12250     t clear
12251     :clear
12252     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12253     t end
12254     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12255     :end' >>confcache
12256if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12257  if test -w "$cache_file"; then
12258    if test "x$cache_file" != "x/dev/null"; then
12259      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12260$as_echo "$as_me: updating cache $cache_file" >&6;}
12261      if test ! -f "$cache_file" || test -h "$cache_file"; then
12262	cat confcache >"$cache_file"
12263      else
12264        case $cache_file in #(
12265        */* | ?:*)
12266	  mv -f confcache "$cache_file"$$ &&
12267	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12268        *)
12269	  mv -f confcache "$cache_file" ;;
12270	esac
12271      fi
12272    fi
12273  else
12274    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12275$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12276  fi
12277fi
12278rm -f confcache
12279
12280test "x$prefix" = xNONE && prefix=$ac_default_prefix
12281# Let make expand exec_prefix.
12282test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12283
12284DEFS=-DHAVE_CONFIG_H
12285
12286ac_libobjs=
12287ac_ltlibobjs=
12288U=
12289for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12290  # 1. Remove the extension, and $U if already installed.
12291  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12292  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12293  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12294  #    will be set to the directory where LIBOBJS objects are built.
12295  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12296  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12297done
12298LIBOBJS=$ac_libobjs
12299
12300LTLIBOBJS=$ac_ltlibobjs
12301
12302
12303
12304
12305: "${CONFIG_STATUS=./config.status}"
12306ac_write_fail=0
12307ac_clean_files_save=$ac_clean_files
12308ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12310$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12311as_write_fail=0
12312cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12313#! $SHELL
12314# Generated by $as_me.
12315# Run this file to recreate the current configuration.
12316# Compiler output produced by configure, useful for debugging
12317# configure, is in config.log if it exists.
12318
12319debug=false
12320ac_cs_recheck=false
12321ac_cs_silent=false
12322
12323SHELL=\${CONFIG_SHELL-$SHELL}
12324export SHELL
12325_ASEOF
12326cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12327## -------------------- ##
12328## M4sh Initialization. ##
12329## -------------------- ##
12330
12331# Be more Bourne compatible
12332DUALCASE=1; export DUALCASE # for MKS sh
12333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12334  emulate sh
12335  NULLCMD=:
12336  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12337  # is contrary to our usage.  Disable this feature.
12338  alias -g '${1+"$@"}'='"$@"'
12339  setopt NO_GLOB_SUBST
12340else
12341  case `(set -o) 2>/dev/null` in #(
12342  *posix*) :
12343    set -o posix ;; #(
12344  *) :
12345     ;;
12346esac
12347fi
12348
12349
12350as_nl='
12351'
12352export as_nl
12353# Printing a long string crashes Solaris 7 /usr/bin/printf.
12354as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12357# Prefer a ksh shell builtin over an external printf program on Solaris,
12358# but without wasting forks for bash or zsh.
12359if test -z "$BASH_VERSION$ZSH_VERSION" \
12360    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12361  as_echo='print -r --'
12362  as_echo_n='print -rn --'
12363elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12364  as_echo='printf %s\n'
12365  as_echo_n='printf %s'
12366else
12367  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12368    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12369    as_echo_n='/usr/ucb/echo -n'
12370  else
12371    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12372    as_echo_n_body='eval
12373      arg=$1;
12374      case $arg in #(
12375      *"$as_nl"*)
12376	expr "X$arg" : "X\\(.*\\)$as_nl";
12377	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12378      esac;
12379      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12380    '
12381    export as_echo_n_body
12382    as_echo_n='sh -c $as_echo_n_body as_echo'
12383  fi
12384  export as_echo_body
12385  as_echo='sh -c $as_echo_body as_echo'
12386fi
12387
12388# The user is always right.
12389if test "${PATH_SEPARATOR+set}" != set; then
12390  PATH_SEPARATOR=:
12391  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12392    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12393      PATH_SEPARATOR=';'
12394  }
12395fi
12396
12397
12398# IFS
12399# We need space, tab and new line, in precisely that order.  Quoting is
12400# there to prevent editors from complaining about space-tab.
12401# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12402# splitting by setting IFS to empty value.)
12403IFS=" ""	$as_nl"
12404
12405# Find who we are.  Look in the path if we contain no directory separator.
12406as_myself=
12407case $0 in #((
12408  *[\\/]* ) as_myself=$0 ;;
12409  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412  IFS=$as_save_IFS
12413  test -z "$as_dir" && as_dir=.
12414    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12415  done
12416IFS=$as_save_IFS
12417
12418     ;;
12419esac
12420# We did not find ourselves, most probably we were run as `sh COMMAND'
12421# in which case we are not to be found in the path.
12422if test "x$as_myself" = x; then
12423  as_myself=$0
12424fi
12425if test ! -f "$as_myself"; then
12426  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12427  exit 1
12428fi
12429
12430# Unset variables that we do not need and which cause bugs (e.g. in
12431# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12432# suppresses any "Segmentation fault" message there.  '((' could
12433# trigger a bug in pdksh 5.2.14.
12434for as_var in BASH_ENV ENV MAIL MAILPATH
12435do eval test x\${$as_var+set} = xset \
12436  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12437done
12438PS1='$ '
12439PS2='> '
12440PS4='+ '
12441
12442# NLS nuisances.
12443LC_ALL=C
12444export LC_ALL
12445LANGUAGE=C
12446export LANGUAGE
12447
12448# CDPATH.
12449(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12450
12451
12452# as_fn_error STATUS ERROR [LINENO LOG_FD]
12453# ----------------------------------------
12454# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12455# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12456# script with STATUS, using 1 if that was 0.
12457as_fn_error ()
12458{
12459  as_status=$1; test $as_status -eq 0 && as_status=1
12460  if test "$4"; then
12461    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12462    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12463  fi
12464  $as_echo "$as_me: error: $2" >&2
12465  as_fn_exit $as_status
12466} # as_fn_error
12467
12468
12469# as_fn_set_status STATUS
12470# -----------------------
12471# Set $? to STATUS, without forking.
12472as_fn_set_status ()
12473{
12474  return $1
12475} # as_fn_set_status
12476
12477# as_fn_exit STATUS
12478# -----------------
12479# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12480as_fn_exit ()
12481{
12482  set +e
12483  as_fn_set_status $1
12484  exit $1
12485} # as_fn_exit
12486
12487# as_fn_unset VAR
12488# ---------------
12489# Portably unset VAR.
12490as_fn_unset ()
12491{
12492  { eval $1=; unset $1;}
12493}
12494as_unset=as_fn_unset
12495# as_fn_append VAR VALUE
12496# ----------------------
12497# Append the text in VALUE to the end of the definition contained in VAR. Take
12498# advantage of any shell optimizations that allow amortized linear growth over
12499# repeated appends, instead of the typical quadratic growth present in naive
12500# implementations.
12501if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12502  eval 'as_fn_append ()
12503  {
12504    eval $1+=\$2
12505  }'
12506else
12507  as_fn_append ()
12508  {
12509    eval $1=\$$1\$2
12510  }
12511fi # as_fn_append
12512
12513# as_fn_arith ARG...
12514# ------------------
12515# Perform arithmetic evaluation on the ARGs, and store the result in the
12516# global $as_val. Take advantage of shells that can avoid forks. The arguments
12517# must be portable across $(()) and expr.
12518if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12519  eval 'as_fn_arith ()
12520  {
12521    as_val=$(( $* ))
12522  }'
12523else
12524  as_fn_arith ()
12525  {
12526    as_val=`expr "$@" || test $? -eq 1`
12527  }
12528fi # as_fn_arith
12529
12530
12531if expr a : '\(a\)' >/dev/null 2>&1 &&
12532   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12533  as_expr=expr
12534else
12535  as_expr=false
12536fi
12537
12538if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12539  as_basename=basename
12540else
12541  as_basename=false
12542fi
12543
12544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12545  as_dirname=dirname
12546else
12547  as_dirname=false
12548fi
12549
12550as_me=`$as_basename -- "$0" ||
12551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12552	 X"$0" : 'X\(//\)$' \| \
12553	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12554$as_echo X/"$0" |
12555    sed '/^.*\/\([^/][^/]*\)\/*$/{
12556	    s//\1/
12557	    q
12558	  }
12559	  /^X\/\(\/\/\)$/{
12560	    s//\1/
12561	    q
12562	  }
12563	  /^X\/\(\/\).*/{
12564	    s//\1/
12565	    q
12566	  }
12567	  s/.*/./; q'`
12568
12569# Avoid depending upon Character Ranges.
12570as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12571as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12572as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12573as_cr_digits='0123456789'
12574as_cr_alnum=$as_cr_Letters$as_cr_digits
12575
12576ECHO_C= ECHO_N= ECHO_T=
12577case `echo -n x` in #(((((
12578-n*)
12579  case `echo 'xy\c'` in
12580  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12581  xy)  ECHO_C='\c';;
12582  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12583       ECHO_T='	';;
12584  esac;;
12585*)
12586  ECHO_N='-n';;
12587esac
12588
12589rm -f conf$$ conf$$.exe conf$$.file
12590if test -d conf$$.dir; then
12591  rm -f conf$$.dir/conf$$.file
12592else
12593  rm -f conf$$.dir
12594  mkdir conf$$.dir 2>/dev/null
12595fi
12596if (echo >conf$$.file) 2>/dev/null; then
12597  if ln -s conf$$.file conf$$ 2>/dev/null; then
12598    as_ln_s='ln -s'
12599    # ... but there are two gotchas:
12600    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12601    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12602    # In both cases, we have to default to `cp -pR'.
12603    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12604      as_ln_s='cp -pR'
12605  elif ln conf$$.file conf$$ 2>/dev/null; then
12606    as_ln_s=ln
12607  else
12608    as_ln_s='cp -pR'
12609  fi
12610else
12611  as_ln_s='cp -pR'
12612fi
12613rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12614rmdir conf$$.dir 2>/dev/null
12615
12616
12617# as_fn_mkdir_p
12618# -------------
12619# Create "$as_dir" as a directory, including parents if necessary.
12620as_fn_mkdir_p ()
12621{
12622
12623  case $as_dir in #(
12624  -*) as_dir=./$as_dir;;
12625  esac
12626  test -d "$as_dir" || eval $as_mkdir_p || {
12627    as_dirs=
12628    while :; do
12629      case $as_dir in #(
12630      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12631      *) as_qdir=$as_dir;;
12632      esac
12633      as_dirs="'$as_qdir' $as_dirs"
12634      as_dir=`$as_dirname -- "$as_dir" ||
12635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636	 X"$as_dir" : 'X\(//\)[^/]' \| \
12637	 X"$as_dir" : 'X\(//\)$' \| \
12638	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12639$as_echo X"$as_dir" |
12640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12641	    s//\1/
12642	    q
12643	  }
12644	  /^X\(\/\/\)[^/].*/{
12645	    s//\1/
12646	    q
12647	  }
12648	  /^X\(\/\/\)$/{
12649	    s//\1/
12650	    q
12651	  }
12652	  /^X\(\/\).*/{
12653	    s//\1/
12654	    q
12655	  }
12656	  s/.*/./; q'`
12657      test -d "$as_dir" && break
12658    done
12659    test -z "$as_dirs" || eval "mkdir $as_dirs"
12660  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12661
12662
12663} # as_fn_mkdir_p
12664if mkdir -p . 2>/dev/null; then
12665  as_mkdir_p='mkdir -p "$as_dir"'
12666else
12667  test -d ./-p && rmdir ./-p
12668  as_mkdir_p=false
12669fi
12670
12671
12672# as_fn_executable_p FILE
12673# -----------------------
12674# Test if FILE is an executable regular file.
12675as_fn_executable_p ()
12676{
12677  test -f "$1" && test -x "$1"
12678} # as_fn_executable_p
12679as_test_x='test -x'
12680as_executable_p=as_fn_executable_p
12681
12682# Sed expression to map a string onto a valid CPP name.
12683as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12684
12685# Sed expression to map a string onto a valid variable name.
12686as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12687
12688
12689exec 6>&1
12690## ----------------------------------- ##
12691## Main body of $CONFIG_STATUS script. ##
12692## ----------------------------------- ##
12693_ASEOF
12694test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12695
12696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12697# Save the log message, to keep $0 and so on meaningful, and to
12698# report actual input values of CONFIG_FILES etc. instead of their
12699# values after options handling.
12700ac_log="
12701This file was extended by $as_me, which was
12702generated by GNU Autoconf 2.69.  Invocation command line was
12703
12704  CONFIG_FILES    = $CONFIG_FILES
12705  CONFIG_HEADERS  = $CONFIG_HEADERS
12706  CONFIG_LINKS    = $CONFIG_LINKS
12707  CONFIG_COMMANDS = $CONFIG_COMMANDS
12708  $ $0 $@
12709
12710on `(hostname || uname -n) 2>/dev/null | sed 1q`
12711"
12712
12713_ACEOF
12714
12715case $ac_config_files in *"
12716"*) set x $ac_config_files; shift; ac_config_files=$*;;
12717esac
12718
12719case $ac_config_headers in *"
12720"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12721esac
12722
12723
12724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12725# Files that config.status was made for.
12726config_files="$ac_config_files"
12727config_headers="$ac_config_headers"
12728config_commands="$ac_config_commands"
12729
12730_ACEOF
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733ac_cs_usage="\
12734\`$as_me' instantiates files and other configuration actions
12735from templates according to the current configuration.  Unless the files
12736and actions are specified as TAGs, all are instantiated by default.
12737
12738Usage: $0 [OPTION]... [TAG]...
12739
12740  -h, --help       print this help, then exit
12741  -V, --version    print version number and configuration settings, then exit
12742      --config     print configuration, then exit
12743  -q, --quiet, --silent
12744                   do not print progress messages
12745  -d, --debug      don't remove temporary files
12746      --recheck    update $as_me by reconfiguring in the same conditions
12747      --file=FILE[:TEMPLATE]
12748                   instantiate the configuration file FILE
12749      --header=FILE[:TEMPLATE]
12750                   instantiate the configuration header FILE
12751
12752Configuration files:
12753$config_files
12754
12755Configuration headers:
12756$config_headers
12757
12758Configuration commands:
12759$config_commands
12760
12761Report bugs to the package provider."
12762
12763_ACEOF
12764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12765ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12766ac_cs_version="\\
12767config.status
12768configured by $0, generated by GNU Autoconf 2.69,
12769  with options \\"\$ac_cs_config\\"
12770
12771Copyright (C) 2012 Free Software Foundation, Inc.
12772This config.status script is free software; the Free Software Foundation
12773gives unlimited permission to copy, distribute and modify it."
12774
12775ac_pwd='$ac_pwd'
12776srcdir='$srcdir'
12777INSTALL='$INSTALL'
12778AWK='$AWK'
12779test -n "\$AWK" || AWK=awk
12780_ACEOF
12781
12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12783# The default lists apply if the user does not specify any file.
12784ac_need_defaults=:
12785while test $# != 0
12786do
12787  case $1 in
12788  --*=?*)
12789    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12790    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12791    ac_shift=:
12792    ;;
12793  --*=)
12794    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12795    ac_optarg=
12796    ac_shift=:
12797    ;;
12798  *)
12799    ac_option=$1
12800    ac_optarg=$2
12801    ac_shift=shift
12802    ;;
12803  esac
12804
12805  case $ac_option in
12806  # Handling of the options.
12807  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12808    ac_cs_recheck=: ;;
12809  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12810    $as_echo "$ac_cs_version"; exit ;;
12811  --config | --confi | --conf | --con | --co | --c )
12812    $as_echo "$ac_cs_config"; exit ;;
12813  --debug | --debu | --deb | --de | --d | -d )
12814    debug=: ;;
12815  --file | --fil | --fi | --f )
12816    $ac_shift
12817    case $ac_optarg in
12818    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12819    '') as_fn_error $? "missing file argument" ;;
12820    esac
12821    as_fn_append CONFIG_FILES " '$ac_optarg'"
12822    ac_need_defaults=false;;
12823  --header | --heade | --head | --hea )
12824    $ac_shift
12825    case $ac_optarg in
12826    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12827    esac
12828    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12829    ac_need_defaults=false;;
12830  --he | --h)
12831    # Conflict between --help and --header
12832    as_fn_error $? "ambiguous option: \`$1'
12833Try \`$0 --help' for more information.";;
12834  --help | --hel | -h )
12835    $as_echo "$ac_cs_usage"; exit ;;
12836  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12837  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12838    ac_cs_silent=: ;;
12839
12840  # This is an error.
12841  -*) as_fn_error $? "unrecognized option: \`$1'
12842Try \`$0 --help' for more information." ;;
12843
12844  *) as_fn_append ac_config_targets " $1"
12845     ac_need_defaults=false ;;
12846
12847  esac
12848  shift
12849done
12850
12851ac_configure_extra_args=
12852
12853if $ac_cs_silent; then
12854  exec 6>/dev/null
12855  ac_configure_extra_args="$ac_configure_extra_args --silent"
12856fi
12857
12858_ACEOF
12859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12860if \$ac_cs_recheck; then
12861  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12862  shift
12863  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12864  CONFIG_SHELL='$SHELL'
12865  export CONFIG_SHELL
12866  exec "\$@"
12867fi
12868
12869_ACEOF
12870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12871exec 5>>config.log
12872{
12873  echo
12874  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12875## Running $as_me. ##
12876_ASBOX
12877  $as_echo "$ac_log"
12878} >&5
12879
12880_ACEOF
12881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12882#
12883# INIT-COMMANDS
12884#
12885
12886  srcdir="${srcdir}"
12887  objroot="${objroot}"
12888  mangling_map="${mangling_map}"
12889  public_syms="${public_syms}"
12890  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12891
12892
12893  srcdir="${srcdir}"
12894  objroot="${objroot}"
12895  public_syms="${public_syms}"
12896  wrap_syms="${wrap_syms}"
12897  SYM_PREFIX="${SYM_PREFIX}"
12898  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12899
12900
12901  srcdir="${srcdir}"
12902  objroot="${objroot}"
12903  public_syms="${public_syms}"
12904  wrap_syms="${wrap_syms}"
12905  SYM_PREFIX="${SYM_PREFIX}"
12906
12907
12908  srcdir="${srcdir}"
12909  objroot="${objroot}"
12910
12911
12912  srcdir="${srcdir}"
12913  objroot="${objroot}"
12914
12915
12916  SHELL="${SHELL}"
12917  srcdir="${srcdir}"
12918  objroot="${objroot}"
12919  LG_QUANTA="${LG_QUANTA}"
12920  LG_PAGE_SIZES="${LG_PAGE_SIZES}"
12921
12922
12923  srcdir="${srcdir}"
12924  objroot="${objroot}"
12925
12926
12927  srcdir="${srcdir}"
12928  objroot="${objroot}"
12929
12930
12931  srcdir="${srcdir}"
12932  objroot="${objroot}"
12933
12934
12935  srcdir="${srcdir}"
12936  objroot="${objroot}"
12937
12938
12939  srcdir="${srcdir}"
12940  objroot="${objroot}"
12941  install_suffix="${install_suffix}"
12942
12943
12944_ACEOF
12945
12946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12947
12948# Handling of arguments.
12949for ac_config_target in $ac_config_targets
12950do
12951  case $ac_config_target in
12952    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
12953    "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
12954    "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
12955    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
12956    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
12957    "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
12958    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
12959    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
12960    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
12961    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
12962    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
12963    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
12964    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
12965    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
12966    "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
12967    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
12968    "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
12969
12970  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12971  esac
12972done
12973
12974
12975# If the user did not use the arguments to specify the items to instantiate,
12976# then the envvar interface is used.  Set only those that are not.
12977# We use the long form for the default assignment because of an extremely
12978# bizarre bug on SunOS 4.1.3.
12979if $ac_need_defaults; then
12980  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12981  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12982  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12983fi
12984
12985# Have a temporary directory for convenience.  Make it in the build tree
12986# simply because there is no reason against having it here, and in addition,
12987# creating and moving files from /tmp can sometimes cause problems.
12988# Hook for its removal unless debugging.
12989# Note that there is a small window in which the directory will not be cleaned:
12990# after its creation but before its name has been assigned to `$tmp'.
12991$debug ||
12992{
12993  tmp= ac_tmp=
12994  trap 'exit_status=$?
12995  : "${ac_tmp:=$tmp}"
12996  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12997' 0
12998  trap 'as_fn_exit 1' 1 2 13 15
12999}
13000# Create a (secure) tmp directory for tmp files.
13001
13002{
13003  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13004  test -d "$tmp"
13005}  ||
13006{
13007  tmp=./conf$$-$RANDOM
13008  (umask 077 && mkdir "$tmp")
13009} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13010ac_tmp=$tmp
13011
13012# Set up the scripts for CONFIG_FILES section.
13013# No need to generate them if there are no CONFIG_FILES.
13014# This happens for instance with `./config.status config.h'.
13015if test -n "$CONFIG_FILES"; then
13016
13017
13018ac_cr=`echo X | tr X '\015'`
13019# On cygwin, bash can eat \r inside `` if the user requested igncr.
13020# But we know of no other shell where ac_cr would be empty at this
13021# point, so we can use a bashism as a fallback.
13022if test "x$ac_cr" = x; then
13023  eval ac_cr=\$\'\\r\'
13024fi
13025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13027  ac_cs_awk_cr='\\r'
13028else
13029  ac_cs_awk_cr=$ac_cr
13030fi
13031
13032echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13033_ACEOF
13034
13035
13036{
13037  echo "cat >conf$$subs.awk <<_ACEOF" &&
13038  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13039  echo "_ACEOF"
13040} >conf$$subs.sh ||
13041  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13042ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13043ac_delim='%!_!# '
13044for ac_last_try in false false false false false :; do
13045  . ./conf$$subs.sh ||
13046    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13047
13048  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13049  if test $ac_delim_n = $ac_delim_num; then
13050    break
13051  elif $ac_last_try; then
13052    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13053  else
13054    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13055  fi
13056done
13057rm -f conf$$subs.sh
13058
13059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13060cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13061_ACEOF
13062sed -n '
13063h
13064s/^/S["/; s/!.*/"]=/
13065p
13066g
13067s/^[^!]*!//
13068:repl
13069t repl
13070s/'"$ac_delim"'$//
13071t delim
13072:nl
13073h
13074s/\(.\{148\}\)..*/\1/
13075t more1
13076s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13077p
13078n
13079b repl
13080:more1
13081s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13082p
13083g
13084s/.\{148\}//
13085t nl
13086:delim
13087h
13088s/\(.\{148\}\)..*/\1/
13089t more2
13090s/["\\]/\\&/g; s/^/"/; s/$/"/
13091p
13092b
13093:more2
13094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13095p
13096g
13097s/.\{148\}//
13098t delim
13099' <conf$$subs.awk | sed '
13100/^[^""]/{
13101  N
13102  s/\n//
13103}
13104' >>$CONFIG_STATUS || ac_write_fail=1
13105rm -f conf$$subs.awk
13106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107_ACAWK
13108cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13109  for (key in S) S_is_set[key] = 1
13110  FS = ""
13111
13112}
13113{
13114  line = $ 0
13115  nfields = split(line, field, "@")
13116  substed = 0
13117  len = length(field[1])
13118  for (i = 2; i < nfields; i++) {
13119    key = field[i]
13120    keylen = length(key)
13121    if (S_is_set[key]) {
13122      value = S[key]
13123      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13124      len += length(value) + length(field[++i])
13125      substed = 1
13126    } else
13127      len += 1 + keylen
13128  }
13129
13130  print line
13131}
13132
13133_ACAWK
13134_ACEOF
13135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13137  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13138else
13139  cat
13140fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13141  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13142_ACEOF
13143
13144# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13145# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13146# trailing colons and then remove the whole line if VPATH becomes empty
13147# (actually we leave an empty line to preserve line numbers).
13148if test "x$srcdir" = x.; then
13149  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13150h
13151s///
13152s/^/:/
13153s/[	 ]*$/:/
13154s/:\$(srcdir):/:/g
13155s/:\${srcdir}:/:/g
13156s/:@srcdir@:/:/g
13157s/^:*//
13158s/:*$//
13159x
13160s/\(=[	 ]*\).*/\1/
13161G
13162s/\n//
13163s/^[^=]*=[	 ]*$//
13164}'
13165fi
13166
13167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13168fi # test -n "$CONFIG_FILES"
13169
13170# Set up the scripts for CONFIG_HEADERS section.
13171# No need to generate them if there are no CONFIG_HEADERS.
13172# This happens for instance with `./config.status Makefile'.
13173if test -n "$CONFIG_HEADERS"; then
13174cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13175BEGIN {
13176_ACEOF
13177
13178# Transform confdefs.h into an awk script `defines.awk', embedded as
13179# here-document in config.status, that substitutes the proper values into
13180# config.h.in to produce config.h.
13181
13182# Create a delimiter string that does not exist in confdefs.h, to ease
13183# handling of long lines.
13184ac_delim='%!_!# '
13185for ac_last_try in false false :; do
13186  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13187  if test -z "$ac_tt"; then
13188    break
13189  elif $ac_last_try; then
13190    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13191  else
13192    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13193  fi
13194done
13195
13196# For the awk script, D is an array of macro values keyed by name,
13197# likewise P contains macro parameters if any.  Preserve backslash
13198# newline sequences.
13199
13200ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13201sed -n '
13202s/.\{148\}/&'"$ac_delim"'/g
13203t rset
13204:rset
13205s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13206t def
13207d
13208:def
13209s/\\$//
13210t bsnl
13211s/["\\]/\\&/g
13212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13213D["\1"]=" \3"/p
13214s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13215d
13216:bsnl
13217s/["\\]/\\&/g
13218s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13219D["\1"]=" \3\\\\\\n"\\/p
13220t cont
13221s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13222t cont
13223d
13224:cont
13225n
13226s/.\{148\}/&'"$ac_delim"'/g
13227t clear
13228:clear
13229s/\\$//
13230t bsnlc
13231s/["\\]/\\&/g; s/^/"/; s/$/"/p
13232d
13233:bsnlc
13234s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13235b cont
13236' <confdefs.h | sed '
13237s/'"$ac_delim"'/"\\\
13238"/g' >>$CONFIG_STATUS || ac_write_fail=1
13239
13240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13241  for (key in D) D_is_set[key] = 1
13242  FS = ""
13243}
13244/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13245  line = \$ 0
13246  split(line, arg, " ")
13247  if (arg[1] == "#") {
13248    defundef = arg[2]
13249    mac1 = arg[3]
13250  } else {
13251    defundef = substr(arg[1], 2)
13252    mac1 = arg[2]
13253  }
13254  split(mac1, mac2, "(") #)
13255  macro = mac2[1]
13256  prefix = substr(line, 1, index(line, defundef) - 1)
13257  if (D_is_set[macro]) {
13258    # Preserve the white space surrounding the "#".
13259    print prefix "define", macro P[macro] D[macro]
13260    next
13261  } else {
13262    # Replace #undef with comments.  This is necessary, for example,
13263    # in the case of _POSIX_SOURCE, which is predefined and required
13264    # on some systems where configure will not decide to define it.
13265    if (defundef == "undef") {
13266      print "/*", prefix defundef, macro, "*/"
13267      next
13268    }
13269  }
13270}
13271{ print }
13272_ACAWK
13273_ACEOF
13274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13275  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13276fi # test -n "$CONFIG_HEADERS"
13277
13278
13279eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13280shift
13281for ac_tag
13282do
13283  case $ac_tag in
13284  :[FHLC]) ac_mode=$ac_tag; continue;;
13285  esac
13286  case $ac_mode$ac_tag in
13287  :[FHL]*:*);;
13288  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13289  :[FH]-) ac_tag=-:-;;
13290  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13291  esac
13292  ac_save_IFS=$IFS
13293  IFS=:
13294  set x $ac_tag
13295  IFS=$ac_save_IFS
13296  shift
13297  ac_file=$1
13298  shift
13299
13300  case $ac_mode in
13301  :L) ac_source=$1;;
13302  :[FH])
13303    ac_file_inputs=
13304    for ac_f
13305    do
13306      case $ac_f in
13307      -) ac_f="$ac_tmp/stdin";;
13308      *) # Look for the file first in the build tree, then in the source tree
13309	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13310	 # because $ac_f cannot contain `:'.
13311	 test -f "$ac_f" ||
13312	   case $ac_f in
13313	   [\\/$]*) false;;
13314	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13315	   esac ||
13316	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13317      esac
13318      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13319      as_fn_append ac_file_inputs " '$ac_f'"
13320    done
13321
13322    # Let's still pretend it is `configure' which instantiates (i.e., don't
13323    # use $as_me), people would be surprised to read:
13324    #    /* config.h.  Generated by config.status.  */
13325    configure_input='Generated from '`
13326	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13327	`' by configure.'
13328    if test x"$ac_file" != x-; then
13329      configure_input="$ac_file.  $configure_input"
13330      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13331$as_echo "$as_me: creating $ac_file" >&6;}
13332    fi
13333    # Neutralize special characters interpreted by sed in replacement strings.
13334    case $configure_input in #(
13335    *\&* | *\|* | *\\* )
13336       ac_sed_conf_input=`$as_echo "$configure_input" |
13337       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13338    *) ac_sed_conf_input=$configure_input;;
13339    esac
13340
13341    case $ac_tag in
13342    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13343      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13344    esac
13345    ;;
13346  esac
13347
13348  ac_dir=`$as_dirname -- "$ac_file" ||
13349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13350	 X"$ac_file" : 'X\(//\)[^/]' \| \
13351	 X"$ac_file" : 'X\(//\)$' \| \
13352	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13353$as_echo X"$ac_file" |
13354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13355	    s//\1/
13356	    q
13357	  }
13358	  /^X\(\/\/\)[^/].*/{
13359	    s//\1/
13360	    q
13361	  }
13362	  /^X\(\/\/\)$/{
13363	    s//\1/
13364	    q
13365	  }
13366	  /^X\(\/\).*/{
13367	    s//\1/
13368	    q
13369	  }
13370	  s/.*/./; q'`
13371  as_dir="$ac_dir"; as_fn_mkdir_p
13372  ac_builddir=.
13373
13374case "$ac_dir" in
13375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13376*)
13377  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13378  # A ".." for each directory in $ac_dir_suffix.
13379  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13380  case $ac_top_builddir_sub in
13381  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13382  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13383  esac ;;
13384esac
13385ac_abs_top_builddir=$ac_pwd
13386ac_abs_builddir=$ac_pwd$ac_dir_suffix
13387# for backward compatibility:
13388ac_top_builddir=$ac_top_build_prefix
13389
13390case $srcdir in
13391  .)  # We are building in place.
13392    ac_srcdir=.
13393    ac_top_srcdir=$ac_top_builddir_sub
13394    ac_abs_top_srcdir=$ac_pwd ;;
13395  [\\/]* | ?:[\\/]* )  # Absolute name.
13396    ac_srcdir=$srcdir$ac_dir_suffix;
13397    ac_top_srcdir=$srcdir
13398    ac_abs_top_srcdir=$srcdir ;;
13399  *) # Relative name.
13400    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13401    ac_top_srcdir=$ac_top_build_prefix$srcdir
13402    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13403esac
13404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13405
13406
13407  case $ac_mode in
13408  :F)
13409  #
13410  # CONFIG_FILE
13411  #
13412
13413  case $INSTALL in
13414  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13415  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13416  esac
13417_ACEOF
13418
13419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420# If the template does not know about datarootdir, expand it.
13421# FIXME: This hack should be removed a few years after 2.60.
13422ac_datarootdir_hack=; ac_datarootdir_seen=
13423ac_sed_dataroot='
13424/datarootdir/ {
13425  p
13426  q
13427}
13428/@datadir@/p
13429/@docdir@/p
13430/@infodir@/p
13431/@localedir@/p
13432/@mandir@/p'
13433case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13434*datarootdir*) ac_datarootdir_seen=yes;;
13435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13437$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13438_ACEOF
13439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440  ac_datarootdir_hack='
13441  s&@datadir@&$datadir&g
13442  s&@docdir@&$docdir&g
13443  s&@infodir@&$infodir&g
13444  s&@localedir@&$localedir&g
13445  s&@mandir@&$mandir&g
13446  s&\\\${datarootdir}&$datarootdir&g' ;;
13447esac
13448_ACEOF
13449
13450# Neutralize VPATH when `$srcdir' = `.'.
13451# Shell code in configure.ac might set extrasub.
13452# FIXME: do we really want to maintain this feature?
13453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13454ac_sed_extra="$ac_vpsub
13455$extrasub
13456_ACEOF
13457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458:t
13459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13460s|@configure_input@|$ac_sed_conf_input|;t t
13461s&@top_builddir@&$ac_top_builddir_sub&;t t
13462s&@top_build_prefix@&$ac_top_build_prefix&;t t
13463s&@srcdir@&$ac_srcdir&;t t
13464s&@abs_srcdir@&$ac_abs_srcdir&;t t
13465s&@top_srcdir@&$ac_top_srcdir&;t t
13466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13467s&@builddir@&$ac_builddir&;t t
13468s&@abs_builddir@&$ac_abs_builddir&;t t
13469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13470s&@INSTALL@&$ac_INSTALL&;t t
13471$ac_datarootdir_hack
13472"
13473eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13474  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13475
13476test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13477  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13478  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13479      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13480  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13481which seems to be undefined.  Please make sure it is defined" >&5
13482$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13483which seems to be undefined.  Please make sure it is defined" >&2;}
13484
13485  rm -f "$ac_tmp/stdin"
13486  case $ac_file in
13487  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13488  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13489  esac \
13490  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13491 ;;
13492  :H)
13493  #
13494  # CONFIG_HEADER
13495  #
13496  if test x"$ac_file" != x-; then
13497    {
13498      $as_echo "/* $configure_input  */" \
13499      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13500    } >"$ac_tmp/config.h" \
13501      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13502    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13503      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13504$as_echo "$as_me: $ac_file is unchanged" >&6;}
13505    else
13506      rm -f "$ac_file"
13507      mv "$ac_tmp/config.h" "$ac_file" \
13508	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13509    fi
13510  else
13511    $as_echo "/* $configure_input  */" \
13512      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13513      || as_fn_error $? "could not create -" "$LINENO" 5
13514  fi
13515 ;;
13516
13517  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13518$as_echo "$as_me: executing $ac_file commands" >&6;}
13519 ;;
13520  esac
13521
13522
13523  case $ac_file$ac_mode in
13524    "include/jemalloc/internal/public_symbols.txt":C)
13525  f="${objroot}include/jemalloc/internal/public_symbols.txt"
13526  mkdir -p "${objroot}include/jemalloc/internal"
13527  cp /dev/null "${f}"
13528  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13529    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13530    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13531    echo "${n}:${m}" >> "${f}"
13532        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13533  done
13534  for sym in ${public_syms} ; do
13535    n="${sym}"
13536    m="${JEMALLOC_PREFIX}${sym}"
13537    echo "${n}:${m}" >> "${f}"
13538  done
13539 ;;
13540    "include/jemalloc/internal/private_symbols.awk":C)
13541  f="${objroot}include/jemalloc/internal/private_symbols.awk"
13542  mkdir -p "${objroot}include/jemalloc/internal"
13543  export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13544  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13545 ;;
13546    "include/jemalloc/internal/private_symbols_jet.awk":C)
13547  f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13548  mkdir -p "${objroot}include/jemalloc/internal"
13549  export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13550  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13551 ;;
13552    "include/jemalloc/internal/public_namespace.h":C)
13553  mkdir -p "${objroot}include/jemalloc/internal"
13554  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13555 ;;
13556    "include/jemalloc/internal/public_unnamespace.h":C)
13557  mkdir -p "${objroot}include/jemalloc/internal"
13558  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13559 ;;
13560    "include/jemalloc/internal/size_classes.h":C)
13561  mkdir -p "${objroot}include/jemalloc/internal"
13562  "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
13563 ;;
13564    "include/jemalloc/jemalloc_protos_jet.h":C)
13565  mkdir -p "${objroot}include/jemalloc"
13566  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13567 ;;
13568    "include/jemalloc/jemalloc_rename.h":C)
13569  mkdir -p "${objroot}include/jemalloc"
13570  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13571 ;;
13572    "include/jemalloc/jemalloc_mangle.h":C)
13573  mkdir -p "${objroot}include/jemalloc"
13574  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13575 ;;
13576    "include/jemalloc/jemalloc_mangle_jet.h":C)
13577  mkdir -p "${objroot}include/jemalloc"
13578  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13579 ;;
13580    "include/jemalloc/jemalloc.h":C)
13581  mkdir -p "${objroot}include/jemalloc"
13582  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13583 ;;
13584
13585  esac
13586done # for ac_tag
13587
13588
13589as_fn_exit 0
13590_ACEOF
13591ac_clean_files=$ac_clean_files_save
13592
13593test $ac_write_fail = 0 ||
13594  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13595
13596
13597# configure is writing to config.log, and then calls config.status.
13598# config.status does its own redirection, appending to config.log.
13599# Unfortunately, on DOS this fails, as config.log is still kept open
13600# by configure, so config.status won't be able to write to it; its
13601# output is simply discarded.  So we exec the FD to /dev/null,
13602# effectively closing config.log, so it can be properly (re)opened and
13603# appended to by config.status.  When coming back to configure, we
13604# need to make the FD available again.
13605if test "$no_create" != yes; then
13606  ac_cs_success=:
13607  ac_config_status_args=
13608  test "$silent" = yes &&
13609    ac_config_status_args="$ac_config_status_args --quiet"
13610  exec 5>/dev/null
13611  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13612  exec 5>>config.log
13613  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13614  # would make configure fail if this is the last instruction.
13615  $ac_cs_success || as_fn_exit 1
13616fi
13617if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13619$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13620fi
13621
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13624$as_echo "===============================================================================" >&6; }
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
13626$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
13628$as_echo "library revision   : ${rev}" >&6; }
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13630$as_echo "" >&6; }
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
13632$as_echo "CONFIG             : ${CONFIG}" >&6; }
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
13634$as_echo "CC                 : ${CC}" >&6; }
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
13636$as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
13638$as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
13640$as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
13642$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
13644$as_echo "CXX                : ${CXX}" >&6; }
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
13646$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
13648$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
13650$as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
13652$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
13654$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
13656$as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
13658$as_echo "LIBS               : ${LIBS}" >&6; }
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
13660$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13662$as_echo "" >&6; }
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
13664$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
13666$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13668$as_echo "" >&6; }
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
13670$as_echo "PREFIX             : ${PREFIX}" >&6; }
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
13672$as_echo "BINDIR             : ${BINDIR}" >&6; }
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
13674$as_echo "DATADIR            : ${DATADIR}" >&6; }
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
13676$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
13678$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
13680$as_echo "MANDIR             : ${MANDIR}" >&6; }
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13682$as_echo "" >&6; }
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
13684$as_echo "srcroot            : ${srcroot}" >&6; }
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
13686$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
13688$as_echo "objroot            : ${objroot}" >&6; }
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
13690$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13692$as_echo "" >&6; }
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
13694$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
13696$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
13698$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
13700$as_echo "install_suffix     : ${install_suffix}" >&6; }
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
13702$as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
13704$as_echo "autogen            : ${enable_autogen}" >&6; }
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
13706$as_echo "debug              : ${enable_debug}" >&6; }
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
13708$as_echo "stats              : ${enable_stats}" >&6; }
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
13710$as_echo "prof               : ${enable_prof}" >&6; }
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
13712$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
13714$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
13716$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
13718$as_echo "fill               : ${enable_fill}" >&6; }
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
13720$as_echo "utrace             : ${enable_utrace}" >&6; }
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
13722$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
13724$as_echo "log                : ${enable_log}" >&6; }
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
13726$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
13728$as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
13730$as_echo "cxx                : ${enable_cxx}" >&6; }
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13732$as_echo "===============================================================================" >&6; }
13733