1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Makefile.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624cfgoutputs_out
625cfgoutputs_in
626cfghdrs_out
627cfghdrs_in
628enable_initial_exec_tls
629enable_zone_allocator
630enable_tls
631enable_lazy_lock
632libdl
633enable_opt_safety_checks
634enable_readlinkat
635enable_log
636enable_cache_oblivious
637enable_xmalloc
638enable_utrace
639enable_fill
640enable_prof
641enable_experimental_smallocx
642enable_stats
643enable_debug
644je_
645install_suffix
646private_namespace
647JEMALLOC_CPREFIX
648JEMALLOC_PREFIX
649enable_static
650enable_shared
651enable_doc
652AUTOCONF
653LD
654RANLIB
655INSTALL_DATA
656INSTALL_SCRIPT
657INSTALL_PROGRAM
658enable_autogen
659RPATH_EXTRA
660LM
661CC_MM
662DUMP_SYMS
663AROUT
664ARFLAGS
665MKLIB
666TEST_LD_MODE
667LDTARGET
668CTARGET
669PIC_CFLAGS
670SOREV
671EXTRA_LDFLAGS
672DSO_LDFLAGS
673link_whole_archive
674libprefix
675exe
676a
677o
678importlib
679so
680LD_PRELOAD_VAR
681RPATH
682abi
683jemalloc_version_gid
684jemalloc_version_nrev
685jemalloc_version_bugfix
686jemalloc_version_minor
687jemalloc_version_major
688jemalloc_version
689AWK
690NM
691AR
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700EGREP
701GREP
702EXTRA_CXXFLAGS
703SPECIFIED_CXXFLAGS
704CONFIGURE_CXXFLAGS
705enable_cxx
706HAVE_CXX14
707ac_ct_CXX
708CXXFLAGS
709CXX
710CPP
711EXTRA_CFLAGS
712SPECIFIED_CFLAGS
713CONFIGURE_CFLAGS
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721XSLROOT
722XSLTPROC
723MANDIR
724DATADIR
725LIBDIR
726INCLUDEDIR
727BINDIR
728PREFIX
729abs_objroot
730objroot
731abs_srcroot
732srcroot
733rev
734CONFIG
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776with_xslroot
777enable_cxx
778with_lg_vaddr
779with_version
780with_rpath
781enable_autogen
782enable_doc
783enable_shared
784enable_static
785with_mangling
786with_jemalloc_prefix
787with_export
788with_private_namespace
789with_install_suffix
790with_malloc_conf
791enable_debug
792enable_stats
793enable_experimental_smallocx
794enable_prof
795enable_prof_libunwind
796with_static_libunwind
797enable_prof_libgcc
798enable_prof_gcc
799enable_fill
800enable_utrace
801enable_xmalloc
802enable_cache_oblivious
803enable_log
804enable_readlinkat
805enable_opt_safety_checks
806with_lg_quantum
807with_lg_page
808with_lg_hugepage
809enable_libdl
810enable_syscall
811enable_lazy_lock
812enable_zone_allocator
813enable_initial_exec_tls
814'
815      ac_precious_vars='build_alias
816host_alias
817target_alias
818CC
819CFLAGS
820LDFLAGS
821LIBS
822CPPFLAGS
823CPP
824CXX
825CXXFLAGS
826CCC'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881  # If the previous option needs an argument, assign it.
882  if test -n "$ac_prev"; then
883    eval $ac_prev=\$ac_option
884    ac_prev=
885    continue
886  fi
887
888  case $ac_option in
889  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890  *=)   ac_optarg= ;;
891  *)    ac_optarg=yes ;;
892  esac
893
894  # Accept the important Cygnus configure options, so we can diagnose typos.
895
896  case $ac_dashdash$ac_option in
897  --)
898    ac_dashdash=yes ;;
899
900  -bindir | --bindir | --bindi | --bind | --bin | --bi)
901    ac_prev=bindir ;;
902  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903    bindir=$ac_optarg ;;
904
905  -build | --build | --buil | --bui | --bu)
906    ac_prev=build_alias ;;
907  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908    build_alias=$ac_optarg ;;
909
910  -cache-file | --cache-file | --cache-fil | --cache-fi \
911  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912    ac_prev=cache_file ;;
913  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915    cache_file=$ac_optarg ;;
916
917  --config-cache | -C)
918    cache_file=config.cache ;;
919
920  -datadir | --datadir | --datadi | --datad)
921    ac_prev=datadir ;;
922  -datadir=* | --datadir=* | --datadi=* | --datad=*)
923    datadir=$ac_optarg ;;
924
925  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926  | --dataroo | --dataro | --datar)
927    ac_prev=datarootdir ;;
928  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930    datarootdir=$ac_optarg ;;
931
932  -disable-* | --disable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=no ;;
947
948  -docdir | --docdir | --docdi | --doc | --do)
949    ac_prev=docdir ;;
950  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951    docdir=$ac_optarg ;;
952
953  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954    ac_prev=dvidir ;;
955  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956    dvidir=$ac_optarg ;;
957
958  -enable-* | --enable-*)
959    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960    # Reject names that are not valid shell variable names.
961    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962      as_fn_error $? "invalid feature name: $ac_useropt"
963    ac_useropt_orig=$ac_useropt
964    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965    case $ac_user_opts in
966      *"
967"enable_$ac_useropt"
968"*) ;;
969      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970	 ac_unrecognized_sep=', ';;
971    esac
972    eval enable_$ac_useropt=\$ac_optarg ;;
973
974  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976  | --exec | --exe | --ex)
977    ac_prev=exec_prefix ;;
978  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980  | --exec=* | --exe=* | --ex=*)
981    exec_prefix=$ac_optarg ;;
982
983  -gas | --gas | --ga | --g)
984    # Obsolete; use --with-gas.
985    with_gas=yes ;;
986
987  -help | --help | --hel | --he | -h)
988    ac_init_help=long ;;
989  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990    ac_init_help=recursive ;;
991  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992    ac_init_help=short ;;
993
994  -host | --host | --hos | --ho)
995    ac_prev=host_alias ;;
996  -host=* | --host=* | --hos=* | --ho=*)
997    host_alias=$ac_optarg ;;
998
999  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000    ac_prev=htmldir ;;
1001  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002  | --ht=*)
1003    htmldir=$ac_optarg ;;
1004
1005  -includedir | --includedir | --includedi | --included | --include \
1006  | --includ | --inclu | --incl | --inc)
1007    ac_prev=includedir ;;
1008  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009  | --includ=* | --inclu=* | --incl=* | --inc=*)
1010    includedir=$ac_optarg ;;
1011
1012  -infodir | --infodir | --infodi | --infod | --info | --inf)
1013    ac_prev=infodir ;;
1014  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015    infodir=$ac_optarg ;;
1016
1017  -libdir | --libdir | --libdi | --libd)
1018    ac_prev=libdir ;;
1019  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020    libdir=$ac_optarg ;;
1021
1022  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023  | --libexe | --libex | --libe)
1024    ac_prev=libexecdir ;;
1025  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026  | --libexe=* | --libex=* | --libe=*)
1027    libexecdir=$ac_optarg ;;
1028
1029  -localedir | --localedir | --localedi | --localed | --locale)
1030    ac_prev=localedir ;;
1031  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032    localedir=$ac_optarg ;;
1033
1034  -localstatedir | --localstatedir | --localstatedi | --localstated \
1035  | --localstate | --localstat | --localsta | --localst | --locals)
1036    ac_prev=localstatedir ;;
1037  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039    localstatedir=$ac_optarg ;;
1040
1041  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042    ac_prev=mandir ;;
1043  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044    mandir=$ac_optarg ;;
1045
1046  -nfp | --nfp | --nf)
1047    # Obsolete; use --without-fp.
1048    with_fp=no ;;
1049
1050  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051  | --no-cr | --no-c | -n)
1052    no_create=yes ;;
1053
1054  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056    no_recursion=yes ;;
1057
1058  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060  | --oldin | --oldi | --old | --ol | --o)
1061    ac_prev=oldincludedir ;;
1062  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065    oldincludedir=$ac_optarg ;;
1066
1067  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068    ac_prev=prefix ;;
1069  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070    prefix=$ac_optarg ;;
1071
1072  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073  | --program-pre | --program-pr | --program-p)
1074    ac_prev=program_prefix ;;
1075  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077    program_prefix=$ac_optarg ;;
1078
1079  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080  | --program-suf | --program-su | --program-s)
1081    ac_prev=program_suffix ;;
1082  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084    program_suffix=$ac_optarg ;;
1085
1086  -program-transform-name | --program-transform-name \
1087  | --program-transform-nam | --program-transform-na \
1088  | --program-transform-n | --program-transform- \
1089  | --program-transform | --program-transfor \
1090  | --program-transfo | --program-transf \
1091  | --program-trans | --program-tran \
1092  | --progr-tra | --program-tr | --program-t)
1093    ac_prev=program_transform_name ;;
1094  -program-transform-name=* | --program-transform-name=* \
1095  | --program-transform-nam=* | --program-transform-na=* \
1096  | --program-transform-n=* | --program-transform-=* \
1097  | --program-transform=* | --program-transfor=* \
1098  | --program-transfo=* | --program-transf=* \
1099  | --program-trans=* | --program-tran=* \
1100  | --progr-tra=* | --program-tr=* | --program-t=*)
1101    program_transform_name=$ac_optarg ;;
1102
1103  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104    ac_prev=pdfdir ;;
1105  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106    pdfdir=$ac_optarg ;;
1107
1108  -psdir | --psdir | --psdi | --psd | --ps)
1109    ac_prev=psdir ;;
1110  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111    psdir=$ac_optarg ;;
1112
1113  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114  | -silent | --silent | --silen | --sile | --sil)
1115    silent=yes ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures this package to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --libdir=DIR            object code libraries [EPREFIX/lib]
1408  --includedir=DIR        C header files [PREFIX/include]
1409  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424System types:
1425  --build=BUILD     configure for building on BUILD [guessed]
1426  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1427_ACEOF
1428fi
1429
1430if test -n "$ac_init_help"; then
1431
1432  cat <<\_ACEOF
1433
1434Optional Features:
1435  --disable-option-checking  ignore unrecognized --enable/--with options
1436  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438  --disable-cxx           Disable C++ integration
1439  --enable-autogen        Automatically regenerate configure output
1440  --enable-documentation  Build documentation
1441  --enable-shared         Build shared libaries
1442  --enable-static         Build static libaries
1443  --enable-debug          Build debugging code
1444  --disable-stats         Disable statistics calculation/reporting
1445  --enable-experimental-smallocx
1446                          Enable experimental smallocx API
1447  --enable-prof           Enable allocation profiling
1448  --enable-prof-libunwind Use libunwind for backtracing
1449  --disable-prof-libgcc   Do not use libgcc for backtracing
1450  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1451  --disable-fill          Disable support for junk/zero filling
1452  --enable-utrace         Enable utrace(2)-based tracing
1453  --enable-xmalloc        Support xmalloc option
1454  --disable-cache-oblivious
1455                          Disable support for cache-oblivious allocation
1456                          alignment
1457  --enable-log            Support debug logging
1458  --enable-readlinkat     Use readlinkat over readlink
1459  --enable-opt-safety-checks
1460                          Perform certain low-overhead checks, even in opt
1461                          mode
1462  --disable-libdl         Do not use libdl
1463  --disable-syscall       Disable use of syscall(2)
1464  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1465  --disable-zone-allocator
1466                          Disable zone allocator for Darwin
1467  --disable-initial-exec-tls
1468                          Disable the initial-exec tls model
1469
1470Optional Packages:
1471  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1472  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1473  --with-xslroot=<path>   XSL stylesheet root path
1474  --with-lg-vaddr=<lg-vaddr>
1475                          Number of significant virtual address bits
1476  --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1477                          Version string
1478  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1479  --with-mangling=<map>   Mangle symbols in <map>
1480  --with-jemalloc-prefix=<prefix>
1481                          Prefix to prepend to all public APIs
1482  --without-export        disable exporting jemalloc public APIs
1483  --with-private-namespace=<prefix>
1484                          Prefix to prepend to all library-private APIs
1485  --with-install-suffix=<suffix>
1486                          Suffix to append to all installed files
1487  --with-malloc-conf=<malloc_conf>
1488                          config.malloc_conf options string
1489  --with-static-libunwind=<libunwind.a>
1490                          Path to static libunwind library; use rather than
1491                          dynamically linking
1492  --with-lg-quantum=<lg-quantum>
1493                          Base 2 log of minimum allocation alignment
1494  --with-lg-page=<lg-page>
1495                          Base 2 log of system page size
1496  --with-lg-hugepage=<lg-hugepage>
1497                          Base 2 log of system huge page size
1498
1499Some influential environment variables:
1500  CC          C compiler command
1501  CFLAGS      C compiler flags
1502  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503              nonstandard directory <lib dir>
1504  LIBS        libraries to pass to the linker, e.g. -l<library>
1505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506              you have headers in a nonstandard directory <include dir>
1507  CPP         C preprocessor
1508  CXX         C++ compiler command
1509  CXXFLAGS    C++ compiler flags
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to the package provider.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520  # If there are subdirs, report their specific --help.
1521  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522    test -d "$ac_dir" ||
1523      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524      continue
1525    ac_builddir=.
1526
1527case "$ac_dir" in
1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529*)
1530  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531  # A ".." for each directory in $ac_dir_suffix.
1532  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533  case $ac_top_builddir_sub in
1534  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536  esac ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
1542
1543case $srcdir in
1544  .)  # We are building in place.
1545    ac_srcdir=.
1546    ac_top_srcdir=$ac_top_builddir_sub
1547    ac_abs_top_srcdir=$ac_pwd ;;
1548  [\\/]* | ?:[\\/]* )  # Absolute name.
1549    ac_srcdir=$srcdir$ac_dir_suffix;
1550    ac_top_srcdir=$srcdir
1551    ac_abs_top_srcdir=$srcdir ;;
1552  *) # Relative name.
1553    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554    ac_top_srcdir=$ac_top_build_prefix$srcdir
1555    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556esac
1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559    cd "$ac_dir" || { ac_status=$?; continue; }
1560    # Check for guested configure.
1561    if test -f "$ac_srcdir/configure.gnu"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564    elif test -f "$ac_srcdir/configure"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure" --help=recursive
1567    else
1568      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569    fi || ac_status=$?
1570    cd "$ac_pwd" || { ac_status=$?; break; }
1571  done
1572fi
1573
1574test -n "$ac_init_help" && exit $ac_status
1575if $ac_init_version; then
1576  cat <<\_ACEOF
1577configure
1578generated by GNU Autoconf 2.69
1579
1580Copyright (C) 2012 Free Software Foundation, Inc.
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
1584  exit
1585fi
1586
1587## ------------------------ ##
1588## Autoconf initialization. ##
1589## ------------------------ ##
1590
1591# ac_fn_c_try_compile LINENO
1592# --------------------------
1593# Try to compile conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_compile ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  rm -f conftest.$ac_objext
1598  if { { ac_try="$ac_compile"
1599case "(($ac_try" in
1600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601  *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605  (eval "$ac_compile") 2>conftest.err
1606  ac_status=$?
1607  if test -s conftest.err; then
1608    grep -v '^ *+' conftest.err >conftest.er1
1609    cat conftest.er1 >&5
1610    mv -f conftest.er1 conftest.err
1611  fi
1612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613  test $ac_status = 0; } && {
1614	 test -z "$ac_c_werror_flag" ||
1615	 test ! -s conftest.err
1616       } && test -s conftest.$ac_objext; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622	ac_retval=1
1623fi
1624  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625  as_fn_set_status $ac_retval
1626
1627} # ac_fn_c_try_compile
1628
1629# ac_fn_c_try_cpp LINENO
1630# ----------------------
1631# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_cpp ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  if { { ac_try="$ac_cpp conftest.$ac_ext"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643  ac_status=$?
1644  if test -s conftest.err; then
1645    grep -v '^ *+' conftest.err >conftest.er1
1646    cat conftest.er1 >&5
1647    mv -f conftest.er1 conftest.err
1648  fi
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; } > conftest.i && {
1651	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652	 test ! -s conftest.err
1653       }; then :
1654  ac_retval=0
1655else
1656  $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659    ac_retval=1
1660fi
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662  as_fn_set_status $ac_retval
1663
1664} # ac_fn_c_try_cpp
1665
1666# ac_fn_cxx_try_compile LINENO
1667# ----------------------------
1668# Try to compile conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_cxx_try_compile ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  rm -f conftest.$ac_objext
1673  if { { ac_try="$ac_compile"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_compile") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } && {
1689	 test -z "$ac_cxx_werror_flag" ||
1690	 test ! -s conftest.err
1691       } && test -s conftest.$ac_objext; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697	ac_retval=1
1698fi
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_cxx_try_compile
1703
1704# ac_fn_c_try_link LINENO
1705# -----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_link ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  rm -f conftest.$ac_objext conftest$ac_exeext
1711  if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_link") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && {
1727	 test -z "$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       } && test -s conftest$ac_exeext && {
1730	 test "$cross_compiling" = yes ||
1731	 test -x conftest$ac_exeext
1732       }; then :
1733  ac_retval=0
1734else
1735  $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738	ac_retval=1
1739fi
1740  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742  # interfere with the next link command; also delete a directory that is
1743  # left behind by Apple's compiler.  We do this before executing the actions.
1744  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_link
1749
1750# ac_fn_c_try_run LINENO
1751# ----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753# that executables *can* be run.
1754ac_fn_c_try_run ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>&5
1765  ac_status=$?
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768  { { case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_try") 2>&5
1775  ac_status=$?
1776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777  test $ac_status = 0; }; }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: program exited with status $ac_status" >&5
1781       $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784       ac_retval=$ac_status
1785fi
1786  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_run
1791
1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists and can be compiled using the include files in
1795# INCLUDES, setting the cache variable VAR accordingly.
1796ac_fn_c_check_header_compile ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810  eval "$3=yes"
1811else
1812  eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_header_compile
1822
1823# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1824# --------------------------------------------
1825# Tries to find the compile-time value of EXPR in a program that includes
1826# INCLUDES, setting VAR accordingly. Returns whether the value could be
1827# computed
1828ac_fn_c_compute_int ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  if test "$cross_compiling" = yes; then
1832    # Depending upon the size, compute the lo and hi bounds.
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836int
1837main ()
1838{
1839static int test_array [1 - 2 * !(($2) >= 0)];
1840test_array [0] = 0;
1841return test_array [0];
1842
1843  ;
1844  return 0;
1845}
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"; then :
1848  ac_lo=0 ac_mid=0
1849  while :; do
1850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852$4
1853int
1854main ()
1855{
1856static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1857test_array [0] = 0;
1858return test_array [0];
1859
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865  ac_hi=$ac_mid; break
1866else
1867  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1868			if test $ac_lo -le $ac_mid; then
1869			  ac_lo= ac_hi=
1870			  break
1871			fi
1872			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875  done
1876else
1877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880int
1881main ()
1882{
1883static int test_array [1 - 2 * !(($2) < 0)];
1884test_array [0] = 0;
1885return test_array [0];
1886
1887  ;
1888  return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892  ac_hi=-1 ac_mid=-1
1893  while :; do
1894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897int
1898main ()
1899{
1900static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1901test_array [0] = 0;
1902return test_array [0];
1903
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909  ac_lo=$ac_mid; break
1910else
1911  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1912			if test $ac_mid -le $ac_hi; then
1913			  ac_lo= ac_hi=
1914			  break
1915			fi
1916			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919  done
1920else
1921  ac_lo= ac_hi=
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926# Binary search between lo and hi bounds.
1927while test "x$ac_lo" != "x$ac_hi"; do
1928  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931$4
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936test_array [0] = 0;
1937return test_array [0];
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944  ac_hi=$ac_mid
1945else
1946  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949done
1950case $ac_lo in #((
1951?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1952'') ac_retval=1 ;;
1953esac
1954  else
1955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957$4
1958static long int longval () { return $2; }
1959static unsigned long int ulongval () { return $2; }
1960#include <stdio.h>
1961#include <stdlib.h>
1962int
1963main ()
1964{
1965
1966  FILE *f = fopen ("conftest.val", "w");
1967  if (! f)
1968    return 1;
1969  if (($2) < 0)
1970    {
1971      long int i = longval ();
1972      if (i != ($2))
1973	return 1;
1974      fprintf (f, "%ld", i);
1975    }
1976  else
1977    {
1978      unsigned long int i = ulongval ();
1979      if (i != ($2))
1980	return 1;
1981      fprintf (f, "%lu", i);
1982    }
1983  /* Do not output a trailing newline, as this causes \r\n confusion
1984     on some platforms.  */
1985  return ferror (f) || fclose (f) != 0;
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_run "$LINENO"; then :
1992  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1993else
1994  ac_retval=1
1995fi
1996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1997  conftest.$ac_objext conftest.beam conftest.$ac_ext
1998rm -f conftest.val
1999
2000  fi
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002  as_fn_set_status $ac_retval
2003
2004} # ac_fn_c_compute_int
2005
2006# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007# -------------------------------------------------------
2008# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009# the include files in INCLUDES and setting the cache variable VAR
2010# accordingly.
2011ac_fn_c_check_header_mongrel ()
2012{
2013  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014  if eval \${$3+:} false; then :
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if eval \${$3+:} false; then :
2018  $as_echo_n "(cached) " >&6
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023else
2024  # Is the header compilable?
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026$as_echo_n "checking $2 usability... " >&6; }
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030#include <$2>
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033  ac_header_compiler=yes
2034else
2035  ac_header_compiler=no
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039$as_echo "$ac_header_compiler" >&6; }
2040
2041# Is the header present?
2042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043$as_echo_n "checking $2 presence... " >&6; }
2044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046#include <$2>
2047_ACEOF
2048if ac_fn_c_try_cpp "$LINENO"; then :
2049  ac_header_preproc=yes
2050else
2051  ac_header_preproc=no
2052fi
2053rm -f conftest.err conftest.i conftest.$ac_ext
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055$as_echo "$ac_header_preproc" >&6; }
2056
2057# So?  What about this header?
2058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059  yes:no: )
2060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064    ;;
2065  no:yes:* )
2066    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2069$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2070    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2073$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2074    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076    ;;
2077esac
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if eval \${$3+:} false; then :
2081  $as_echo_n "(cached) " >&6
2082else
2083  eval "$3=\$ac_header_compiler"
2084fi
2085eval ac_res=\$$3
2086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087$as_echo "$ac_res" >&6; }
2088fi
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091} # ac_fn_c_check_header_mongrel
2092
2093# ac_fn_c_check_func LINENO FUNC VAR
2094# ----------------------------------
2095# Tests whether FUNC exists, setting the cache variable VAR accordingly
2096ac_fn_c_check_func ()
2097{
2098  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100$as_echo_n "checking for $2... " >&6; }
2101if eval \${$3+:} false; then :
2102  $as_echo_n "(cached) " >&6
2103else
2104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2107   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2108#define $2 innocuous_$2
2109
2110/* System header to define __stub macros and hopefully few prototypes,
2111    which can conflict with char $2 (); below.
2112    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2113    <limits.h> exists even on freestanding compilers.  */
2114
2115#ifdef __STDC__
2116# include <limits.h>
2117#else
2118# include <assert.h>
2119#endif
2120
2121#undef $2
2122
2123/* Override any GCC internal prototype to avoid an error.
2124   Use char because int might match the return type of a GCC
2125   builtin and then its argument prototype would still apply.  */
2126#ifdef __cplusplus
2127extern "C"
2128#endif
2129char $2 ();
2130/* The GNU C library defines this for functions which it implements
2131    to always fail with ENOSYS.  Some functions are actually named
2132    something starting with __ and the normal name is an alias.  */
2133#if defined __stub_$2 || defined __stub___$2
2134choke me
2135#endif
2136
2137int
2138main ()
2139{
2140return $2 ();
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_link "$LINENO"; then :
2146  eval "$3=yes"
2147else
2148  eval "$3=no"
2149fi
2150rm -f core conftest.err conftest.$ac_objext \
2151    conftest$ac_exeext conftest.$ac_ext
2152fi
2153eval ac_res=\$$3
2154	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155$as_echo "$ac_res" >&6; }
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158} # ac_fn_c_check_func
2159
2160# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2161# -------------------------------------------
2162# Tests whether TYPE exists after having included INCLUDES, setting cache
2163# variable VAR accordingly.
2164ac_fn_c_check_type ()
2165{
2166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
2169if eval \${$3+:} false; then :
2170  $as_echo_n "(cached) " >&6
2171else
2172  eval "$3=no"
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179if (sizeof ($2))
2180	 return 0;
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$4
2189int
2190main ()
2191{
2192if (sizeof (($2)))
2193	    return 0;
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199
2200else
2201  eval "$3=yes"
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207eval ac_res=\$$3
2208	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209$as_echo "$ac_res" >&6; }
2210  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212} # ac_fn_c_check_type
2213cat >config.log <<_ACEOF
2214This file contains any messages produced by compilers while
2215running configure, to aid debugging if configure makes a mistake.
2216
2217It was created by $as_me, which was
2218generated by GNU Autoconf 2.69.  Invocation command line was
2219
2220  $ $0 $@
2221
2222_ACEOF
2223exec 5>>config.log
2224{
2225cat <<_ASUNAME
2226## --------- ##
2227## Platform. ##
2228## --------- ##
2229
2230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234uname -v = `(uname -v) 2>/dev/null || echo unknown`
2235
2236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2238
2239/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2240/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2243/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2244/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2245/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2246
2247_ASUNAME
2248
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254    $as_echo "PATH: $as_dir"
2255  done
2256IFS=$as_save_IFS
2257
2258} >&5
2259
2260cat >&5 <<_ACEOF
2261
2262
2263## ----------- ##
2264## Core tests. ##
2265## ----------- ##
2266
2267_ACEOF
2268
2269
2270# Keep a trace of the command line.
2271# Strip out --no-create and --no-recursion so they do not pile up.
2272# Strip out --silent because we don't want to record it for future runs.
2273# Also quote any args containing shell meta-characters.
2274# Make two passes to allow for proper duplicate-argument suppression.
2275ac_configure_args=
2276ac_configure_args0=
2277ac_configure_args1=
2278ac_must_keep_next=false
2279for ac_pass in 1 2
2280do
2281  for ac_arg
2282  do
2283    case $ac_arg in
2284    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286    | -silent | --silent | --silen | --sile | --sil)
2287      continue ;;
2288    *\'*)
2289      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2290    esac
2291    case $ac_pass in
2292    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2293    2)
2294      as_fn_append ac_configure_args1 " '$ac_arg'"
2295      if test $ac_must_keep_next = true; then
2296	ac_must_keep_next=false # Got value, back to normal.
2297      else
2298	case $ac_arg in
2299	  *=* | --config-cache | -C | -disable-* | --disable-* \
2300	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302	  | -with-* | --with-* | -without-* | --without-* | --x)
2303	    case "$ac_configure_args0 " in
2304	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2305	    esac
2306	    ;;
2307	  -* ) ac_must_keep_next=true ;;
2308	esac
2309      fi
2310      as_fn_append ac_configure_args " '$ac_arg'"
2311      ;;
2312    esac
2313  done
2314done
2315{ ac_configure_args0=; unset ac_configure_args0;}
2316{ ac_configure_args1=; unset ac_configure_args1;}
2317
2318# When interrupted or exit'd, cleanup temporary files, and complete
2319# config.log.  We remove comments because anyway the quotes in there
2320# would cause problems or look ugly.
2321# WARNING: Use '\'' to represent an apostrophe within the trap.
2322# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323trap 'exit_status=$?
2324  # Save into config.log some information that might help in debugging.
2325  {
2326    echo
2327
2328    $as_echo "## ---------------- ##
2329## Cache variables. ##
2330## ---------------- ##"
2331    echo
2332    # The following way of writing the cache mishandles newlines in values,
2333(
2334  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335    eval ac_val=\$$ac_var
2336    case $ac_val in #(
2337    *${as_nl}*)
2338      case $ac_var in #(
2339      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341      esac
2342      case $ac_var in #(
2343      _ | IFS | as_nl) ;; #(
2344      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345      *) { eval $ac_var=; unset $ac_var;} ;;
2346      esac ;;
2347    esac
2348  done
2349  (set) 2>&1 |
2350    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351    *${as_nl}ac_space=\ *)
2352      sed -n \
2353	"s/'\''/'\''\\\\'\'''\''/g;
2354	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355      ;; #(
2356    *)
2357      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358      ;;
2359    esac |
2360    sort
2361)
2362    echo
2363
2364    $as_echo "## ----------------- ##
2365## Output variables. ##
2366## ----------------- ##"
2367    echo
2368    for ac_var in $ac_subst_vars
2369    do
2370      eval ac_val=\$$ac_var
2371      case $ac_val in
2372      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373      esac
2374      $as_echo "$ac_var='\''$ac_val'\''"
2375    done | sort
2376    echo
2377
2378    if test -n "$ac_subst_files"; then
2379      $as_echo "## ------------------- ##
2380## File substitutions. ##
2381## ------------------- ##"
2382      echo
2383      for ac_var in $ac_subst_files
2384      do
2385	eval ac_val=\$$ac_var
2386	case $ac_val in
2387	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388	esac
2389	$as_echo "$ac_var='\''$ac_val'\''"
2390      done | sort
2391      echo
2392    fi
2393
2394    if test -s confdefs.h; then
2395      $as_echo "## ----------- ##
2396## confdefs.h. ##
2397## ----------- ##"
2398      echo
2399      cat confdefs.h
2400      echo
2401    fi
2402    test "$ac_signal" != 0 &&
2403      $as_echo "$as_me: caught signal $ac_signal"
2404    $as_echo "$as_me: exit $exit_status"
2405  } >&5
2406  rm -f core *.core core.conftest.* &&
2407    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408    exit $exit_status
2409' 0
2410for ac_signal in 1 2 13 15; do
2411  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412done
2413ac_signal=0
2414
2415# confdefs.h avoids OS command line length limits that DEFS can exceed.
2416rm -f -r conftest* confdefs.h
2417
2418$as_echo "/* confdefs.h */" > confdefs.h
2419
2420# Predefined preprocessor variables.
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_NAME "$PACKAGE_NAME"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_VERSION "$PACKAGE_VERSION"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_STRING "$PACKAGE_STRING"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_URL "$PACKAGE_URL"
2444_ACEOF
2445
2446
2447# Let the site file select an alternate cache file if it wants to.
2448# Prefer an explicitly selected file to automatically selected ones.
2449ac_site_file1=NONE
2450ac_site_file2=NONE
2451if test -n "$CONFIG_SITE"; then
2452  # We do not want a PATH search for config.site.
2453  case $CONFIG_SITE in #((
2454    -*)  ac_site_file1=./$CONFIG_SITE;;
2455    */*) ac_site_file1=$CONFIG_SITE;;
2456    *)   ac_site_file1=./$CONFIG_SITE;;
2457  esac
2458elif test "x$prefix" != xNONE; then
2459  ac_site_file1=$prefix/share/config.site
2460  ac_site_file2=$prefix/etc/config.site
2461else
2462  ac_site_file1=$ac_default_prefix/share/config.site
2463  ac_site_file2=$ac_default_prefix/etc/config.site
2464fi
2465for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2466do
2467  test "x$ac_site_file" = xNONE && continue
2468  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471    sed 's/^/| /' "$ac_site_file" >&5
2472    . "$ac_site_file" \
2473      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475as_fn_error $? "failed to load site script $ac_site_file
2476See \`config.log' for more details" "$LINENO" 5; }
2477  fi
2478done
2479
2480if test -r "$cache_file"; then
2481  # Some versions of bash will fail to source /dev/null (special files
2482  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2483  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485$as_echo "$as_me: loading cache $cache_file" >&6;}
2486    case $cache_file in
2487      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488      *)                      . "./$cache_file";;
2489    esac
2490  fi
2491else
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493$as_echo "$as_me: creating cache $cache_file" >&6;}
2494  >$cache_file
2495fi
2496
2497# Check that the precious variables saved in the cache have kept the same
2498# value.
2499ac_cache_corrupted=false
2500for ac_var in $ac_precious_vars; do
2501  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502  eval ac_new_set=\$ac_env_${ac_var}_set
2503  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504  eval ac_new_val=\$ac_env_${ac_var}_value
2505  case $ac_old_set,$ac_new_set in
2506    set,)
2507      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509      ac_cache_corrupted=: ;;
2510    ,set)
2511      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513      ac_cache_corrupted=: ;;
2514    ,);;
2515    *)
2516      if test "x$ac_old_val" != "x$ac_new_val"; then
2517	# differences in whitespace do not lead to failure.
2518	ac_old_val_w=`echo x $ac_old_val`
2519	ac_new_val_w=`echo x $ac_new_val`
2520	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523	  ac_cache_corrupted=:
2524	else
2525	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527	  eval $ac_var=\$ac_old_val
2528	fi
2529	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2530$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2531	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2532$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2533      fi;;
2534  esac
2535  # Pass precious variables to config.status.
2536  if test "$ac_new_set" = set; then
2537    case $ac_new_val in
2538    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539    *) ac_arg=$ac_var=$ac_new_val ;;
2540    esac
2541    case " $ac_configure_args " in
2542      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2543      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544    esac
2545  fi
2546done
2547if $ac_cache_corrupted; then
2548  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2553fi
2554## -------------------- ##
2555## Main body of script. ##
2556## -------------------- ##
2557
2558ac_ext=c
2559ac_cpp='$CPP $CPPFLAGS'
2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564
2565
2566ac_aux_dir=
2567for ac_dir in build-aux "$srcdir"/build-aux; do
2568  if test -f "$ac_dir/install-sh"; then
2569    ac_aux_dir=$ac_dir
2570    ac_install_sh="$ac_aux_dir/install-sh -c"
2571    break
2572  elif test -f "$ac_dir/install.sh"; then
2573    ac_aux_dir=$ac_dir
2574    ac_install_sh="$ac_aux_dir/install.sh -c"
2575    break
2576  elif test -f "$ac_dir/shtool"; then
2577    ac_aux_dir=$ac_dir
2578    ac_install_sh="$ac_aux_dir/shtool install -c"
2579    break
2580  fi
2581done
2582if test -z "$ac_aux_dir"; then
2583  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2584fi
2585
2586# These three variables are undocumented and unsupported,
2587# and are intended to be withdrawn in a future Autoconf release.
2588# They can cause serious problems if a builder's source tree is in a directory
2589# whose full name contains unusual characters.
2590ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2591ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2592ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2593
2594
2595
2596
2597
2598
2599
2600
2601CONFIGURE_CFLAGS=
2602SPECIFIED_CFLAGS="${CFLAGS}"
2603
2604
2605
2606
2607
2608CONFIGURE_CXXFLAGS=
2609SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2610
2611
2612
2613
2614
2615CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2616
2617
2618rev=2
2619
2620
2621srcroot=$srcdir
2622if test "x${srcroot}" = "x." ; then
2623  srcroot=""
2624else
2625  srcroot="${srcroot}/"
2626fi
2627
2628abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2629
2630
2631objroot=""
2632
2633abs_objroot="`pwd`/"
2634
2635
2636if test "x$prefix" = "xNONE" ; then
2637  prefix="/usr/local"
2638fi
2639if test "x$exec_prefix" = "xNONE" ; then
2640  exec_prefix=$prefix
2641fi
2642PREFIX=$prefix
2643
2644BINDIR=`eval echo $bindir`
2645BINDIR=`eval echo $BINDIR`
2646
2647INCLUDEDIR=`eval echo $includedir`
2648INCLUDEDIR=`eval echo $INCLUDEDIR`
2649
2650LIBDIR=`eval echo $libdir`
2651LIBDIR=`eval echo $LIBDIR`
2652
2653DATADIR=`eval echo $datadir`
2654DATADIR=`eval echo $DATADIR`
2655
2656MANDIR=`eval echo $mandir`
2657MANDIR=`eval echo $MANDIR`
2658
2659
2660# Extract the first word of "xsltproc", so it can be a program name with args.
2661set dummy xsltproc; ac_word=$2
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if ${ac_cv_path_XSLTPROC+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  case $XSLTPROC in
2668  [\\/]* | ?:[\\/]*)
2669  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2670  ;;
2671  *)
2672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    for ac_exec_ext in '' $ac_executable_extensions; do
2678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681    break 2
2682  fi
2683done
2684  done
2685IFS=$as_save_IFS
2686
2687  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2688  ;;
2689esac
2690fi
2691XSLTPROC=$ac_cv_path_XSLTPROC
2692if test -n "$XSLTPROC"; then
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2694$as_echo "$XSLTPROC" >&6; }
2695else
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
2698fi
2699
2700
2701if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2702  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2703elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2704  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2705else
2706    DEFAULT_XSLROOT=""
2707fi
2708
2709# Check whether --with-xslroot was given.
2710if test "${with_xslroot+set}" = set; then :
2711  withval=$with_xslroot;
2712if test "x$with_xslroot" = "xno" ; then
2713  XSLROOT="${DEFAULT_XSLROOT}"
2714else
2715  XSLROOT="${with_xslroot}"
2716fi
2717
2718else
2719  XSLROOT="${DEFAULT_XSLROOT}"
2720
2721fi
2722
2723if test "x$XSLTPROC" = "xfalse" ; then
2724  XSLROOT=""
2725fi
2726
2727
2728CFLAGS=$CFLAGS
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734if test -n "$ac_tool_prefix"; then
2735  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}gcc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if ${ac_cv_prog_CC+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$CC"; then
2743  ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772fi
2773if test -z "$ac_cv_prog_CC"; then
2774  ac_ct_CC=$CC
2775  # Extract the first word of "gcc", so it can be a program name with args.
2776set dummy gcc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if ${ac_cv_prog_ac_ct_CC+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test -n "$ac_ct_CC"; then
2783  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    for ac_exec_ext in '' $ac_executable_extensions; do
2791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792    ac_cv_prog_ac_ct_CC="gcc"
2793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794    break 2
2795  fi
2796done
2797  done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803if test -n "$ac_ct_CC"; then
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805$as_echo "$ac_ct_CC" >&6; }
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809fi
2810
2811  if test "x$ac_ct_CC" = x; then
2812    CC=""
2813  else
2814    case $cross_compiling:$ac_tool_warned in
2815yes:)
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2818ac_tool_warned=yes ;;
2819esac
2820    CC=$ac_ct_CC
2821  fi
2822else
2823  CC="$ac_cv_prog_CC"
2824fi
2825
2826if test -z "$CC"; then
2827          if test -n "$ac_tool_prefix"; then
2828    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829set dummy ${ac_tool_prefix}cc; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_CC+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_CC="${ac_tool_prefix}cc"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865  fi
2866fi
2867if test -z "$CC"; then
2868  # Extract the first word of "cc", so it can be a program name with args.
2869set dummy cc; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if ${ac_cv_prog_CC+:} false; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  if test -n "$CC"; then
2876  ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
2878  ac_prog_rejected=no
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887       ac_prog_rejected=yes
2888       continue
2889     fi
2890    ac_cv_prog_CC="cc"
2891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895  done
2896IFS=$as_save_IFS
2897
2898if test $ac_prog_rejected = yes; then
2899  # We found a bogon in the path, so make sure we never use it.
2900  set dummy $ac_cv_prog_CC
2901  shift
2902  if test $# != 0; then
2903    # We chose a different compiler from the bogus one.
2904    # However, it has the same basename, so the bogon will be chosen
2905    # first if we set CC to just the basename; use the full file name.
2906    shift
2907    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2908  fi
2909fi
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915$as_echo "$CC" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922fi
2923if test -z "$CC"; then
2924  if test -n "$ac_tool_prefix"; then
2925  for ac_prog in cl.exe
2926  do
2927    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930$as_echo_n "checking for $ac_word... " >&6; }
2931if ${ac_cv_prog_CC+:} false; then :
2932  $as_echo_n "(cached) " >&6
2933else
2934  if test -n "$CC"; then
2935  ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942    for ac_exec_ext in '' $ac_executable_extensions; do
2943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949  done
2950IFS=$as_save_IFS
2951
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957$as_echo "$CC" >&6; }
2958else
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961fi
2962
2963
2964    test -n "$CC" && break
2965  done
2966fi
2967if test -z "$CC"; then
2968  ac_ct_CC=$CC
2969  for ac_prog in cl.exe
2970do
2971  # Extract the first word of "$ac_prog", so it can be a program name with args.
2972set dummy $ac_prog; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  if test -n "$ac_ct_CC"; then
2979  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986    for ac_exec_ext in '' $ac_executable_extensions; do
2987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988    ac_cv_prog_ac_ct_CC="$ac_prog"
2989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990    break 2
2991  fi
2992done
2993  done
2994IFS=$as_save_IFS
2995
2996fi
2997fi
2998ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999if test -n "$ac_ct_CC"; then
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001$as_echo "$ac_ct_CC" >&6; }
3002else
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005fi
3006
3007
3008  test -n "$ac_ct_CC" && break
3009done
3010
3011  if test "x$ac_ct_CC" = x; then
3012    CC=""
3013  else
3014    case $cross_compiling:$ac_tool_warned in
3015yes:)
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018ac_tool_warned=yes ;;
3019esac
3020    CC=$ac_ct_CC
3021  fi
3022fi
3023
3024fi
3025
3026
3027test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029as_fn_error $? "no acceptable C compiler found in \$PATH
3030See \`config.log' for more details" "$LINENO" 5; }
3031
3032# Provide some information about the compiler.
3033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3034set X $ac_compile
3035ac_compiler=$2
3036for ac_option in --version -v -V -qversion; do
3037  { { ac_try="$ac_compiler $ac_option >&5"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3045  ac_status=$?
3046  if test -s conftest.err; then
3047    sed '10a\
3048... rest of stderr output deleted ...
3049         10q' conftest.err >conftest.er1
3050    cat conftest.er1 >&5
3051  fi
3052  rm -f conftest.er1 conftest.err
3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054  test $ac_status = 0; }
3055done
3056
3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068ac_clean_files_save=$ac_clean_files
3069ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3070# Try to create an executable without -o first, disregard a.out.
3071# It will help us diagnose broken compilers, and finding out an intuition
3072# of exeext.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3074$as_echo_n "checking whether the C compiler works... " >&6; }
3075ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076
3077# The possible output files:
3078ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3079
3080ac_rmfiles=
3081for ac_file in $ac_files
3082do
3083  case $ac_file in
3084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3086  esac
3087done
3088rm -f $ac_rmfiles
3089
3090if { { ac_try="$ac_link_default"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096$as_echo "$ac_try_echo"; } >&5
3097  (eval "$ac_link_default") 2>&5
3098  ac_status=$?
3099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100  test $ac_status = 0; }; then :
3101  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3104# so that the user can short-circuit this test for compilers unknown to
3105# Autoconf.
3106for ac_file in $ac_files ''
3107do
3108  test -f "$ac_file" || continue
3109  case $ac_file in
3110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3111	;;
3112    [ab].out )
3113	# We found the default executable, but exeext='' is most
3114	# certainly right.
3115	break;;
3116    *.* )
3117	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118	then :; else
3119	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120	fi
3121	# We set ac_cv_exeext here because the later test for it is not
3122	# safe: cross compilers may not add the suffix if given an `-o'
3123	# argument, so we may need to know it at that point already.
3124	# Even if this section looks crufty: it has the advantage of
3125	# actually working.
3126	break;;
3127    * )
3128	break;;
3129  esac
3130done
3131test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
3133else
3134  ac_file=''
3135fi
3136if test -z "$ac_file"; then :
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139$as_echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144as_fn_error 77 "C compiler cannot create executables
3145See \`config.log' for more details" "$LINENO" 5; }
3146else
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148$as_echo "yes" >&6; }
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3151$as_echo_n "checking for C compiler default output file name... " >&6; }
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3153$as_echo "$ac_file" >&6; }
3154ac_exeext=$ac_cv_exeext
3155
3156rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3157ac_clean_files=$ac_clean_files_save
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3159$as_echo_n "checking for suffix of executables... " >&6; }
3160if { { ac_try="$ac_link"
3161case "(($ac_try" in
3162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163  *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167  (eval "$ac_link") 2>&5
3168  ac_status=$?
3169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170  test $ac_status = 0; }; then :
3171  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3173# work properly (i.e., refer to `conftest.exe'), while it won't with
3174# `rm'.
3175for ac_file in conftest.exe conftest conftest.*; do
3176  test -f "$ac_file" || continue
3177  case $ac_file in
3178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3179    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180	  break;;
3181    * ) break;;
3182  esac
3183done
3184else
3185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3188See \`config.log' for more details" "$LINENO" 5; }
3189fi
3190rm -f conftest conftest$ac_cv_exeext
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3192$as_echo "$ac_cv_exeext" >&6; }
3193
3194rm -f conftest.$ac_ext
3195EXEEXT=$ac_cv_exeext
3196ac_exeext=$EXEEXT
3197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199#include <stdio.h>
3200int
3201main ()
3202{
3203FILE *f = fopen ("conftest.out", "w");
3204 return ferror (f) || fclose (f) != 0;
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210ac_clean_files="$ac_clean_files conftest.out"
3211# Check that the compiler produces executables we can run.  If not, either
3212# the compiler is broken, or we cross compile.
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3214$as_echo_n "checking whether we are cross compiling... " >&6; }
3215if test "$cross_compiling" != yes; then
3216  { { ac_try="$ac_link"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223  (eval "$ac_link") 2>&5
3224  ac_status=$?
3225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226  test $ac_status = 0; }
3227  if { ac_try='./conftest$ac_cv_exeext'
3228  { { case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233$as_echo "$ac_try_echo"; } >&5
3234  (eval "$ac_try") 2>&5
3235  ac_status=$?
3236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237  test $ac_status = 0; }; }; then
3238    cross_compiling=no
3239  else
3240    if test "$cross_compiling" = maybe; then
3241	cross_compiling=yes
3242    else
3243	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details" "$LINENO" 5; }
3248    fi
3249  fi
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3252$as_echo "$cross_compiling" >&6; }
3253
3254rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3255ac_clean_files=$ac_clean_files_save
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3257$as_echo_n "checking for suffix of object files... " >&6; }
3258if ${ac_cv_objext+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272rm -f conftest.o conftest.obj
3273if { { ac_try="$ac_compile"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280  (eval "$ac_compile") 2>&5
3281  ac_status=$?
3282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283  test $ac_status = 0; }; then :
3284  for ac_file in conftest.o conftest.obj conftest.*; do
3285  test -f "$ac_file" || continue;
3286  case $ac_file in
3287    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3288    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3289       break;;
3290  esac
3291done
3292else
3293  $as_echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298as_fn_error $? "cannot compute suffix of object files: cannot compile
3299See \`config.log' for more details" "$LINENO" 5; }
3300fi
3301rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302fi
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3304$as_echo "$ac_cv_objext" >&6; }
3305OBJEXT=$ac_cv_objext
3306ac_objext=$OBJEXT
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3308$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3309if ${ac_cv_c_compiler_gnu+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318#ifndef __GNUC__
3319       choke me
3320#endif
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326if ac_fn_c_try_compile "$LINENO"; then :
3327  ac_compiler_gnu=yes
3328else
3329  ac_compiler_gnu=no
3330fi
3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332ac_cv_c_compiler_gnu=$ac_compiler_gnu
3333
3334fi
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3336$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3337if test $ac_compiler_gnu = yes; then
3338  GCC=yes
3339else
3340  GCC=
3341fi
3342ac_test_CFLAGS=${CFLAGS+set}
3343ac_save_CFLAGS=$CFLAGS
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3345$as_echo_n "checking whether $CC accepts -g... " >&6; }
3346if ${ac_cv_prog_cc_g+:} false; then :
3347  $as_echo_n "(cached) " >&6
3348else
3349  ac_save_c_werror_flag=$ac_c_werror_flag
3350   ac_c_werror_flag=yes
3351   ac_cv_prog_cc_g=no
3352   CFLAGS="-g"
3353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355
3356int
3357main ()
3358{
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364if ac_fn_c_try_compile "$LINENO"; then :
3365  ac_cv_prog_cc_g=yes
3366else
3367  CFLAGS=""
3368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379if ac_fn_c_try_compile "$LINENO"; then :
3380
3381else
3382  ac_c_werror_flag=$ac_save_c_werror_flag
3383	 CFLAGS="-g"
3384	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386
3387int
3388main ()
3389{
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then :
3396  ac_cv_prog_cc_g=yes
3397fi
3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403   ac_c_werror_flag=$ac_save_c_werror_flag
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3406$as_echo "$ac_cv_prog_cc_g" >&6; }
3407if test "$ac_test_CFLAGS" = set; then
3408  CFLAGS=$ac_save_CFLAGS
3409elif test $ac_cv_prog_cc_g = yes; then
3410  if test "$GCC" = yes; then
3411    CFLAGS="-g -O2"
3412  else
3413    CFLAGS="-g"
3414  fi
3415else
3416  if test "$GCC" = yes; then
3417    CFLAGS="-O2"
3418  else
3419    CFLAGS=
3420  fi
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3423$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3424if ${ac_cv_prog_cc_c89+:} false; then :
3425  $as_echo_n "(cached) " >&6
3426else
3427  ac_cv_prog_cc_c89=no
3428ac_save_CC=$CC
3429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h.  */
3431#include <stdarg.h>
3432#include <stdio.h>
3433struct stat;
3434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3435struct buf { int x; };
3436FILE * (*rcsopen) (struct buf *, struct stat *, int);
3437static char *e (p, i)
3438     char **p;
3439     int i;
3440{
3441  return p[i];
3442}
3443static char *f (char * (*g) (char **, int), char **p, ...)
3444{
3445  char *s;
3446  va_list v;
3447  va_start (v,p);
3448  s = g (p, va_arg (v,int));
3449  va_end (v);
3450  return s;
3451}
3452
3453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3454   function prototypes and stuff, but not '\xHH' hex character constants.
3455   These don't provoke an error unfortunately, instead are silently treated
3456   as 'x'.  The following induces an error, until -std is added to get
3457   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3458   array size at least.  It's necessary to write '\x00'==0 to get something
3459   that's true only with -std.  */
3460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3461
3462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3463   inside strings and character constants.  */
3464#define FOO(x) 'x'
3465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3466
3467int test (int i, double x);
3468struct s1 {int (*f) (int a);};
3469struct s2 {int (*f) (double a);};
3470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3471int argc;
3472char **argv;
3473int
3474main ()
3475{
3476return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3482	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3483do
3484  CC="$ac_save_CC $ac_arg"
3485  if ac_fn_c_try_compile "$LINENO"; then :
3486  ac_cv_prog_cc_c89=$ac_arg
3487fi
3488rm -f core conftest.err conftest.$ac_objext
3489  test "x$ac_cv_prog_cc_c89" != "xno" && break
3490done
3491rm -f conftest.$ac_ext
3492CC=$ac_save_CC
3493
3494fi
3495# AC_CACHE_VAL
3496case "x$ac_cv_prog_cc_c89" in
3497  x)
3498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3499$as_echo "none needed" >&6; } ;;
3500  xno)
3501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3502$as_echo "unsupported" >&6; } ;;
3503  *)
3504    CC="$CC $ac_cv_prog_cc_c89"
3505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3507esac
3508if test "x$ac_cv_prog_cc_c89" != xno; then :
3509
3510fi
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
3518
3519if test "x$GCC" != "xyes" ; then
3520
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3522$as_echo_n "checking whether compiler is MSVC... " >&6; }
3523if ${je_cv_msvc+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532
3533#ifndef _MSC_VER
3534  int fail-1;
3535#endif
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542  je_cv_msvc=yes
3543else
3544  je_cv_msvc=no
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3549$as_echo "$je_cv_msvc" >&6; }
3550fi
3551
3552je_cv_cray_prgenv_wrapper=""
3553if test "x${PE_ENV}" != "x" ; then
3554  case "${CC}" in
3555    CC|cc)
3556	je_cv_cray_prgenv_wrapper="yes"
3557	;;
3558    *)
3559       ;;
3560  esac
3561fi
3562
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3564$as_echo_n "checking whether compiler is cray... " >&6; }
3565if ${je_cv_cray+:} false; then :
3566  $as_echo_n "(cached) " >&6
3567else
3568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574
3575#ifndef _CRAYC
3576  int fail-1;
3577#endif
3578
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583if ac_fn_c_try_compile "$LINENO"; then :
3584  je_cv_cray=yes
3585else
3586  je_cv_cray=no
3587fi
3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3591$as_echo "$je_cv_cray" >&6; }
3592
3593if test "x${je_cv_cray}" = "xyes" ; then
3594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3595$as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3596if ${je_cv_cray_84+:} false; then :
3597  $as_echo_n "(cached) " >&6
3598else
3599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h.  */
3601
3602int
3603main ()
3604{
3605
3606#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3607  int fail-1;
3608#endif
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615  je_cv_cray_84=yes
3616else
3617  je_cv_cray_84=no
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3622$as_echo "$je_cv_cray_84" >&6; }
3623fi
3624
3625if test "x$GCC" = "xyes" ; then
3626
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3628$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3629T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3630T_APPEND_V=-std=gnu11
3631  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3632  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3633else
3634  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3635fi
3636
3637
3638if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3639  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3640else
3641  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3642fi
3643
3644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h.  */
3646
3647
3648int
3649main ()
3650{
3651
3652    return 0;
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658if ac_fn_c_try_compile "$LINENO"; then :
3659  je_cv_cflags_added=-std=gnu11
3660              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661$as_echo "yes" >&6; }
3662else
3663  je_cv_cflags_added=
3664              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3667
3668fi
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3671  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3672else
3673  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3674fi
3675
3676
3677  if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3678    cat >>confdefs.h <<_ACEOF
3679#define JEMALLOC_HAS_RESTRICT 1
3680_ACEOF
3681
3682  else
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3685$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3686T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3687T_APPEND_V=-std=gnu99
3688  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3689  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3690else
3691  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3692fi
3693
3694
3695if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3696  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3697else
3698  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3699fi
3700
3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704
3705int
3706main ()
3707{
3708
3709    return 0;
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716  je_cv_cflags_added=-std=gnu99
3717              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718$as_echo "yes" >&6; }
3719else
3720  je_cv_cflags_added=
3721              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722$as_echo "no" >&6; }
3723              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3724
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3728  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3729else
3730  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3731fi
3732
3733
3734    if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3735      cat >>confdefs.h <<_ACEOF
3736#define JEMALLOC_HAS_RESTRICT 1
3737_ACEOF
3738
3739    fi
3740  fi
3741
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3743$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3744T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3745T_APPEND_V=-Wall
3746  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3747  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3748else
3749  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3750fi
3751
3752
3753if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3754  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3755else
3756  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3757fi
3758
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762
3763int
3764main ()
3765{
3766
3767    return 0;
3768
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774  je_cv_cflags_added=-Wall
3775              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3776$as_echo "yes" >&6; }
3777else
3778  je_cv_cflags_added=
3779              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3782
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3786  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3787else
3788  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3789fi
3790
3791
3792
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
3794$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
3795T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3796T_APPEND_V=-Wextra
3797  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3798  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3799else
3800  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3801fi
3802
3803
3804if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3805  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3806else
3807  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3808fi
3809
3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812
3813
3814int
3815main ()
3816{
3817
3818    return 0;
3819
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824if ac_fn_c_try_compile "$LINENO"; then :
3825  je_cv_cflags_added=-Wextra
3826              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827$as_echo "yes" >&6; }
3828else
3829  je_cv_cflags_added=
3830              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3833
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3837  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3838else
3839  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3840fi
3841
3842
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3845$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3846T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3847T_APPEND_V=-Wshorten-64-to-32
3848  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3849  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3850else
3851  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3852fi
3853
3854
3855if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3856  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3857else
3858  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3859fi
3860
3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863
3864
3865int
3866main ()
3867{
3868
3869    return 0;
3870
3871  ;
3872  return 0;
3873}
3874_ACEOF
3875if ac_fn_c_try_compile "$LINENO"; then :
3876  je_cv_cflags_added=-Wshorten-64-to-32
3877              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878$as_echo "yes" >&6; }
3879else
3880  je_cv_cflags_added=
3881              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3884
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3888  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3889else
3890  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3891fi
3892
3893
3894
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3896$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3897T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3898T_APPEND_V=-Wsign-compare
3899  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3900  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3901else
3902  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3903fi
3904
3905
3906if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3907  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3908else
3909  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3910fi
3911
3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914
3915
3916int
3917main ()
3918{
3919
3920    return 0;
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  je_cv_cflags_added=-Wsign-compare
3928              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929$as_echo "yes" >&6; }
3930else
3931  je_cv_cflags_added=
3932              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3935
3936fi
3937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3939  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3940else
3941  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3942fi
3943
3944
3945
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3947$as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3948T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3949T_APPEND_V=-Wundef
3950  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3951  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3952else
3953  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3954fi
3955
3956
3957if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3958  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3959else
3960  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3961fi
3962
3963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965
3966
3967int
3968main ()
3969{
3970
3971    return 0;
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977if ac_fn_c_try_compile "$LINENO"; then :
3978  je_cv_cflags_added=-Wundef
3979              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980$as_echo "yes" >&6; }
3981else
3982  je_cv_cflags_added=
3983              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3986
3987fi
3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3990  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3991else
3992  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3993fi
3994
3995
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3998$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3999T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4000T_APPEND_V=-Wno-format-zero-length
4001  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4002  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4003else
4004  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4005fi
4006
4007
4008if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4009  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4010else
4011  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4012fi
4013
4014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016
4017
4018int
4019main ()
4020{
4021
4022    return 0;
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"; then :
4029  je_cv_cflags_added=-Wno-format-zero-length
4030              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031$as_echo "yes" >&6; }
4032else
4033  je_cv_cflags_added=
4034              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035$as_echo "no" >&6; }
4036              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4037
4038fi
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4041  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4042else
4043  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4044fi
4045
4046
4047
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
4049$as_echo_n "checking whether compiler supports -pipe... " >&6; }
4050T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4051T_APPEND_V=-pipe
4052  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4053  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4054else
4055  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4056fi
4057
4058
4059if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4060  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4061else
4062  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4063fi
4064
4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067
4068
4069int
4070main ()
4071{
4072
4073    return 0;
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"; then :
4080  je_cv_cflags_added=-pipe
4081              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082$as_echo "yes" >&6; }
4083else
4084  je_cv_cflags_added=
4085              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4088
4089fi
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4092  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4093else
4094  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4095fi
4096
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4100$as_echo_n "checking whether compiler supports -g3... " >&6; }
4101T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4102T_APPEND_V=-g3
4103  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4104  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4105else
4106  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4107fi
4108
4109
4110if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4111  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4112else
4113  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4114fi
4115
4116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119
4120int
4121main ()
4122{
4123
4124    return 0;
4125
4126  ;
4127  return 0;
4128}
4129_ACEOF
4130if ac_fn_c_try_compile "$LINENO"; then :
4131  je_cv_cflags_added=-g3
4132              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4133$as_echo "yes" >&6; }
4134else
4135  je_cv_cflags_added=
4136              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137$as_echo "no" >&6; }
4138              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4139
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4143  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4144else
4145  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4146fi
4147
4148
4149elif test "x$je_cv_msvc" = "xyes" ; then
4150  CC="$CC -nologo"
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4153$as_echo_n "checking whether compiler supports -Zi... " >&6; }
4154T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4155T_APPEND_V=-Zi
4156  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4157  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4158else
4159  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4160fi
4161
4162
4163if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4164  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4165else
4166  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4167fi
4168
4169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171
4172
4173int
4174main ()
4175{
4176
4177    return 0;
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184  je_cv_cflags_added=-Zi
4185              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186$as_echo "yes" >&6; }
4187else
4188  je_cv_cflags_added=
4189              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
4191              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4192
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4196  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4197else
4198  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4199fi
4200
4201
4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4204$as_echo_n "checking whether compiler supports -MT... " >&6; }
4205T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4206T_APPEND_V=-MT
4207  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4208  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4209else
4210  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4211fi
4212
4213
4214if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4215  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4216else
4217  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4218fi
4219
4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222
4223
4224int
4225main ()
4226{
4227
4228    return 0;
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_compile "$LINENO"; then :
4235  je_cv_cflags_added=-MT
4236              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4237$as_echo "yes" >&6; }
4238else
4239  je_cv_cflags_added=
4240              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4243
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4247  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4248else
4249  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4250fi
4251
4252
4253
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4255$as_echo_n "checking whether compiler supports -W3... " >&6; }
4256T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4257T_APPEND_V=-W3
4258  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4259  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4260else
4261  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4262fi
4263
4264
4265if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4266  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4267else
4268  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4269fi
4270
4271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273
4274
4275int
4276main ()
4277{
4278
4279    return 0;
4280
4281  ;
4282  return 0;
4283}
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"; then :
4286  je_cv_cflags_added=-W3
4287              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288$as_echo "yes" >&6; }
4289else
4290  je_cv_cflags_added=
4291              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4294
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4298  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4299else
4300  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4301fi
4302
4303
4304
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4306$as_echo_n "checking whether compiler supports -FS... " >&6; }
4307T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4308T_APPEND_V=-FS
4309  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4310  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4311else
4312  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4313fi
4314
4315
4316if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4317  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4318else
4319  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4320fi
4321
4322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324
4325
4326int
4327main ()
4328{
4329
4330    return 0;
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337  je_cv_cflags_added=-FS
4338              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339$as_echo "yes" >&6; }
4340else
4341  je_cv_cflags_added=
4342              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343$as_echo "no" >&6; }
4344              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4345
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4349  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4350else
4351  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4352fi
4353
4354
4355  T_APPEND_V=-I${srcdir}/include/msvc_compat
4356  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4357  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4358else
4359  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4360fi
4361
4362
4363fi
4364if test "x$je_cv_cray" = "xyes" ; then
4365    if test "x$je_cv_cray_84" = "xyes" ; then
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4368$as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4369T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4370T_APPEND_V=-hipa2
4371  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4372  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4373else
4374  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4375fi
4376
4377
4378if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4379  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4380else
4381  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4382fi
4383
4384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386
4387
4388int
4389main ()
4390{
4391
4392    return 0;
4393
4394  ;
4395  return 0;
4396}
4397_ACEOF
4398if ac_fn_c_try_compile "$LINENO"; then :
4399  je_cv_cflags_added=-hipa2
4400              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401$as_echo "yes" >&6; }
4402else
4403  je_cv_cflags_added=
4404              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
4406              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4407
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4411  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4412else
4413  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4414fi
4415
4416
4417
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4419$as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4420T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4421T_APPEND_V=-hnognu
4422  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4423  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4424else
4425  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4426fi
4427
4428
4429if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4430  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4431else
4432  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4433fi
4434
4435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438
4439int
4440main ()
4441{
4442
4443    return 0;
4444
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450  je_cv_cflags_added=-hnognu
4451              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452$as_echo "yes" >&6; }
4453else
4454  je_cv_cflags_added=
4455              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
4457              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4458
4459fi
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4462  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4463else
4464  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4465fi
4466
4467
4468  fi
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4471$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4472T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4473T_APPEND_V=-hnomessage=128
4474  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4475  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4476else
4477  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4478fi
4479
4480
4481if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4482  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4483else
4484  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4485fi
4486
4487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489
4490
4491int
4492main ()
4493{
4494
4495    return 0;
4496
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502  je_cv_cflags_added=-hnomessage=128
4503              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504$as_echo "yes" >&6; }
4505else
4506  je_cv_cflags_added=
4507              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
4509              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4510
4511fi
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4514  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4515else
4516  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4517fi
4518
4519
4520
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4522$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4523T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4524T_APPEND_V=-hnomessage=1357
4525  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4526  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4527else
4528  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4529fi
4530
4531
4532if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4533  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4534else
4535  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4536fi
4537
4538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h.  */
4540
4541
4542int
4543main ()
4544{
4545
4546    return 0;
4547
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553  je_cv_cflags_added=-hnomessage=1357
4554              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4555$as_echo "yes" >&6; }
4556else
4557  je_cv_cflags_added=
4558              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4561
4562fi
4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4565  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4566else
4567  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4568fi
4569
4570
4571fi
4572
4573
4574
4575ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4581$as_echo_n "checking how to run the C preprocessor... " >&6; }
4582# On Suns, sometimes $CPP names a directory.
4583if test -n "$CPP" && test -d "$CPP"; then
4584  CPP=
4585fi
4586if test -z "$CPP"; then
4587  if ${ac_cv_prog_CPP+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590      # Double quotes because CPP needs to be expanded
4591    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4592    do
4593      ac_preproc_ok=false
4594for ac_c_preproc_warn_flag in '' yes
4595do
4596  # Use a header file that comes with gcc, so configuring glibc
4597  # with a fresh cross-compiler works.
4598  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4599  # <limits.h> exists even on freestanding compilers.
4600  # On the NeXT, cc -E runs the code through the compiler's parser,
4601  # not just through cpp. "Syntax error" is here to catch this case.
4602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h.  */
4604#ifdef __STDC__
4605# include <limits.h>
4606#else
4607# include <assert.h>
4608#endif
4609		     Syntax error
4610_ACEOF
4611if ac_fn_c_try_cpp "$LINENO"; then :
4612
4613else
4614  # Broken: fails on valid input.
4615continue
4616fi
4617rm -f conftest.err conftest.i conftest.$ac_ext
4618
4619  # OK, works on sane cases.  Now check whether nonexistent headers
4620  # can be detected and how.
4621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h.  */
4623#include <ac_nonexistent.h>
4624_ACEOF
4625if ac_fn_c_try_cpp "$LINENO"; then :
4626  # Broken: success on invalid input.
4627continue
4628else
4629  # Passes both tests.
4630ac_preproc_ok=:
4631break
4632fi
4633rm -f conftest.err conftest.i conftest.$ac_ext
4634
4635done
4636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4637rm -f conftest.i conftest.err conftest.$ac_ext
4638if $ac_preproc_ok; then :
4639  break
4640fi
4641
4642    done
4643    ac_cv_prog_CPP=$CPP
4644
4645fi
4646  CPP=$ac_cv_prog_CPP
4647else
4648  ac_cv_prog_CPP=$CPP
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4651$as_echo "$CPP" >&6; }
4652ac_preproc_ok=false
4653for ac_c_preproc_warn_flag in '' yes
4654do
4655  # Use a header file that comes with gcc, so configuring glibc
4656  # with a fresh cross-compiler works.
4657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4658  # <limits.h> exists even on freestanding compilers.
4659  # On the NeXT, cc -E runs the code through the compiler's parser,
4660  # not just through cpp. "Syntax error" is here to catch this case.
4661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h.  */
4663#ifdef __STDC__
4664# include <limits.h>
4665#else
4666# include <assert.h>
4667#endif
4668		     Syntax error
4669_ACEOF
4670if ac_fn_c_try_cpp "$LINENO"; then :
4671
4672else
4673  # Broken: fails on valid input.
4674continue
4675fi
4676rm -f conftest.err conftest.i conftest.$ac_ext
4677
4678  # OK, works on sane cases.  Now check whether nonexistent headers
4679  # can be detected and how.
4680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h.  */
4682#include <ac_nonexistent.h>
4683_ACEOF
4684if ac_fn_c_try_cpp "$LINENO"; then :
4685  # Broken: success on invalid input.
4686continue
4687else
4688  # Passes both tests.
4689ac_preproc_ok=:
4690break
4691fi
4692rm -f conftest.err conftest.i conftest.$ac_ext
4693
4694done
4695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4696rm -f conftest.i conftest.err conftest.$ac_ext
4697if $ac_preproc_ok; then :
4698
4699else
4700  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4703See \`config.log' for more details" "$LINENO" 5; }
4704fi
4705
4706ac_ext=c
4707ac_cpp='$CPP $CPPFLAGS'
4708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711
4712
4713# Check whether --enable-cxx was given.
4714if test "${enable_cxx+set}" = set; then :
4715  enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4716  enable_cxx="0"
4717else
4718  enable_cxx="1"
4719fi
4720
4721else
4722  enable_cxx="1"
4723
4724fi
4725
4726if test "x$enable_cxx" = "x1" ; then
4727      # ===========================================================================
4728#   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4729# ===========================================================================
4730#
4731# SYNOPSIS
4732#
4733#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4734#
4735# DESCRIPTION
4736#
4737#   Check for baseline language coverage in the compiler for the specified
4738#   version of the C++ standard.  If necessary, add switches to CXX and
4739#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
4740#   or '14' (for the C++14 standard).
4741#
4742#   The second argument, if specified, indicates whether you insist on an
4743#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4744#   -std=c++11).  If neither is specified, you get whatever works, with
4745#   preference for an extended mode.
4746#
4747#   The third argument, if specified 'mandatory' or if left unspecified,
4748#   indicates that baseline support for the specified C++ standard is
4749#   required and that the macro should error out if no mode with that
4750#   support is found.  If specified 'optional', then configuration proceeds
4751#   regardless, after defining HAVE_CXX${VERSION} if and only if a
4752#   supporting mode is found.
4753#
4754# LICENSE
4755#
4756#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
4757#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
4758#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
4759#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
4760#   Copyright (c) 2015 Paul Norman <penorman@mac.com>
4761#   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
4762#
4763#   Copying and distribution of this file, with or without modification, are
4764#   permitted in any medium without royalty provided the copyright notice
4765#   and this notice are preserved.  This file is offered as-is, without any
4766#   warranty.
4767
4768#serial 4
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789  ac_ext=cpp
4790ac_cpp='$CXXCPP $CPPFLAGS'
4791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794if test -z "$CXX"; then
4795  if test -n "$CCC"; then
4796    CXX=$CCC
4797  else
4798    if test -n "$ac_tool_prefix"; then
4799  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4800  do
4801    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804$as_echo_n "checking for $ac_word... " >&6; }
4805if ${ac_cv_prog_CXX+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  if test -n "$CXX"; then
4809  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4810else
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH
4813do
4814  IFS=$as_save_IFS
4815  test -z "$as_dir" && as_dir=.
4816    for ac_exec_ext in '' $ac_executable_extensions; do
4817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820    break 2
4821  fi
4822done
4823  done
4824IFS=$as_save_IFS
4825
4826fi
4827fi
4828CXX=$ac_cv_prog_CXX
4829if test -n "$CXX"; then
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4831$as_echo "$CXX" >&6; }
4832else
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834$as_echo "no" >&6; }
4835fi
4836
4837
4838    test -n "$CXX" && break
4839  done
4840fi
4841if test -z "$CXX"; then
4842  ac_ct_CXX=$CXX
4843  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4844do
4845  # Extract the first word of "$ac_prog", so it can be a program name with args.
4846set dummy $ac_prog; ac_word=$2
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
4849if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  if test -n "$ac_ct_CXX"; then
4853  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860    for ac_exec_ext in '' $ac_executable_extensions; do
4861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862    ac_cv_prog_ac_ct_CXX="$ac_prog"
4863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867  done
4868IFS=$as_save_IFS
4869
4870fi
4871fi
4872ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873if test -n "$ac_ct_CXX"; then
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4875$as_echo "$ac_ct_CXX" >&6; }
4876else
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881
4882  test -n "$ac_ct_CXX" && break
4883done
4884
4885  if test "x$ac_ct_CXX" = x; then
4886    CXX="g++"
4887  else
4888    case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892ac_tool_warned=yes ;;
4893esac
4894    CXX=$ac_ct_CXX
4895  fi
4896fi
4897
4898  fi
4899fi
4900# Provide some information about the compiler.
4901$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4902set X $ac_compile
4903ac_compiler=$2
4904for ac_option in --version -v -V -qversion; do
4905  { { ac_try="$ac_compiler $ac_option >&5"
4906case "(($ac_try" in
4907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908  *) ac_try_echo=$ac_try;;
4909esac
4910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911$as_echo "$ac_try_echo"; } >&5
4912  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4913  ac_status=$?
4914  if test -s conftest.err; then
4915    sed '10a\
4916... rest of stderr output deleted ...
4917         10q' conftest.err >conftest.er1
4918    cat conftest.er1 >&5
4919  fi
4920  rm -f conftest.er1 conftest.err
4921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922  test $ac_status = 0; }
4923done
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4926$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4927if ${ac_cv_cxx_compiler_gnu+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932
4933int
4934main ()
4935{
4936#ifndef __GNUC__
4937       choke me
4938#endif
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944if ac_fn_cxx_try_compile "$LINENO"; then :
4945  ac_compiler_gnu=yes
4946else
4947  ac_compiler_gnu=no
4948fi
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4951
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4954$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4955if test $ac_compiler_gnu = yes; then
4956  GXX=yes
4957else
4958  GXX=
4959fi
4960ac_test_CXXFLAGS=${CXXFLAGS+set}
4961ac_save_CXXFLAGS=$CXXFLAGS
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4963$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4964if ${ac_cv_prog_cxx_g+:} false; then :
4965  $as_echo_n "(cached) " >&6
4966else
4967  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4968   ac_cxx_werror_flag=yes
4969   ac_cv_prog_cxx_g=no
4970   CXXFLAGS="-g"
4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973
4974int
4975main ()
4976{
4977
4978  ;
4979  return 0;
4980}
4981_ACEOF
4982if ac_fn_cxx_try_compile "$LINENO"; then :
4983  ac_cv_prog_cxx_g=yes
4984else
4985  CXXFLAGS=""
4986      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_cxx_try_compile "$LINENO"; then :
4998
4999else
5000  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5001	 CXXFLAGS="-g"
5002	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004
5005int
5006main ()
5007{
5008
5009  ;
5010  return 0;
5011}
5012_ACEOF
5013if ac_fn_cxx_try_compile "$LINENO"; then :
5014  ac_cv_prog_cxx_g=yes
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5024$as_echo "$ac_cv_prog_cxx_g" >&6; }
5025if test "$ac_test_CXXFLAGS" = set; then
5026  CXXFLAGS=$ac_save_CXXFLAGS
5027elif test $ac_cv_prog_cxx_g = yes; then
5028  if test "$GXX" = yes; then
5029    CXXFLAGS="-g -O2"
5030  else
5031    CXXFLAGS="-g"
5032  fi
5033else
5034  if test "$GXX" = yes; then
5035    CXXFLAGS="-O2"
5036  else
5037    CXXFLAGS=
5038  fi
5039fi
5040ac_ext=cpp
5041ac_cpp='$CXXCPP $CPPFLAGS'
5042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5045
5046
5047      ax_cxx_compile_cxx14_required=false
5048  ac_ext=cpp
5049ac_cpp='$CXXCPP $CPPFLAGS'
5050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053  ac_success=no
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5055$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5056if ${ax_cv_cxx_compile_cxx14+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h.  */
5061
5062
5063// If the compiler admits that it is not ready for C++11, why torture it?
5064// Hopefully, this will speed up the test.
5065
5066#ifndef __cplusplus
5067
5068#error "This is not a C++ compiler"
5069
5070#elif __cplusplus < 201103L
5071
5072#error "This is not a C++11 compiler"
5073
5074#else
5075
5076namespace cxx11
5077{
5078
5079  namespace test_static_assert
5080  {
5081
5082    template <typename T>
5083    struct check
5084    {
5085      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5086    };
5087
5088  }
5089
5090  namespace test_final_override
5091  {
5092
5093    struct Base
5094    {
5095      virtual void f() {}
5096    };
5097
5098    struct Derived : public Base
5099    {
5100      virtual void f() override {}
5101    };
5102
5103  }
5104
5105  namespace test_double_right_angle_brackets
5106  {
5107
5108    template < typename T >
5109    struct check {};
5110
5111    typedef check<void> single_type;
5112    typedef check<check<void>> double_type;
5113    typedef check<check<check<void>>> triple_type;
5114    typedef check<check<check<check<void>>>> quadruple_type;
5115
5116  }
5117
5118  namespace test_decltype
5119  {
5120
5121    int
5122    f()
5123    {
5124      int a = 1;
5125      decltype(a) b = 2;
5126      return a + b;
5127    }
5128
5129  }
5130
5131  namespace test_type_deduction
5132  {
5133
5134    template < typename T1, typename T2 >
5135    struct is_same
5136    {
5137      static const bool value = false;
5138    };
5139
5140    template < typename T >
5141    struct is_same<T, T>
5142    {
5143      static const bool value = true;
5144    };
5145
5146    template < typename T1, typename T2 >
5147    auto
5148    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5149    {
5150      return a1 + a2;
5151    }
5152
5153    int
5154    test(const int c, volatile int v)
5155    {
5156      static_assert(is_same<int, decltype(0)>::value == true, "");
5157      static_assert(is_same<int, decltype(c)>::value == false, "");
5158      static_assert(is_same<int, decltype(v)>::value == false, "");
5159      auto ac = c;
5160      auto av = v;
5161      auto sumi = ac + av + 'x';
5162      auto sumf = ac + av + 1.0;
5163      static_assert(is_same<int, decltype(ac)>::value == true, "");
5164      static_assert(is_same<int, decltype(av)>::value == true, "");
5165      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5166      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5167      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5168      return (sumf > 0.0) ? sumi : add(c, v);
5169    }
5170
5171  }
5172
5173  namespace test_noexcept
5174  {
5175
5176    int f() { return 0; }
5177    int g() noexcept { return 0; }
5178
5179    static_assert(noexcept(f()) == false, "");
5180    static_assert(noexcept(g()) == true, "");
5181
5182  }
5183
5184  namespace test_constexpr
5185  {
5186
5187    template < typename CharT >
5188    unsigned long constexpr
5189    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5190    {
5191      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5192    }
5193
5194    template < typename CharT >
5195    unsigned long constexpr
5196    strlen_c(const CharT *const s) noexcept
5197    {
5198      return strlen_c_r(s, 0UL);
5199    }
5200
5201    static_assert(strlen_c("") == 0UL, "");
5202    static_assert(strlen_c("1") == 1UL, "");
5203    static_assert(strlen_c("example") == 7UL, "");
5204    static_assert(strlen_c("another\0example") == 7UL, "");
5205
5206  }
5207
5208  namespace test_rvalue_references
5209  {
5210
5211    template < int N >
5212    struct answer
5213    {
5214      static constexpr int value = N;
5215    };
5216
5217    answer<1> f(int&)       { return answer<1>(); }
5218    answer<2> f(const int&) { return answer<2>(); }
5219    answer<3> f(int&&)      { return answer<3>(); }
5220
5221    void
5222    test()
5223    {
5224      int i = 0;
5225      const int c = 0;
5226      static_assert(decltype(f(i))::value == 1, "");
5227      static_assert(decltype(f(c))::value == 2, "");
5228      static_assert(decltype(f(0))::value == 3, "");
5229    }
5230
5231  }
5232
5233  namespace test_uniform_initialization
5234  {
5235
5236    struct test
5237    {
5238      static const int zero {};
5239      static const int one {1};
5240    };
5241
5242    static_assert(test::zero == 0, "");
5243    static_assert(test::one == 1, "");
5244
5245  }
5246
5247  namespace test_lambdas
5248  {
5249
5250    void
5251    test1()
5252    {
5253      auto lambda1 = [](){};
5254      auto lambda2 = lambda1;
5255      lambda1();
5256      lambda2();
5257    }
5258
5259    int
5260    test2()
5261    {
5262      auto a = [](int i, int j){ return i + j; }(1, 2);
5263      auto b = []() -> int { return '0'; }();
5264      auto c = [=](){ return a + b; }();
5265      auto d = [&](){ return c; }();
5266      auto e = [a, &b](int x) mutable {
5267        const auto identity = [](int y){ return y; };
5268        for (auto i = 0; i < a; ++i)
5269          a += b--;
5270        return x + identity(a + b);
5271      }(0);
5272      return a + b + c + d + e;
5273    }
5274
5275    int
5276    test3()
5277    {
5278      const auto nullary = [](){ return 0; };
5279      const auto unary = [](int x){ return x; };
5280      using nullary_t = decltype(nullary);
5281      using unary_t = decltype(unary);
5282      const auto higher1st = [](nullary_t f){ return f(); };
5283      const auto higher2nd = [unary](nullary_t f1){
5284        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5285      };
5286      return higher1st(nullary) + higher2nd(nullary)(unary);
5287    }
5288
5289  }
5290
5291  namespace test_variadic_templates
5292  {
5293
5294    template <int...>
5295    struct sum;
5296
5297    template <int N0, int... N1toN>
5298    struct sum<N0, N1toN...>
5299    {
5300      static constexpr auto value = N0 + sum<N1toN...>::value;
5301    };
5302
5303    template <>
5304    struct sum<>
5305    {
5306      static constexpr auto value = 0;
5307    };
5308
5309    static_assert(sum<>::value == 0, "");
5310    static_assert(sum<1>::value == 1, "");
5311    static_assert(sum<23>::value == 23, "");
5312    static_assert(sum<1, 2>::value == 3, "");
5313    static_assert(sum<5, 5, 11>::value == 21, "");
5314    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5315
5316  }
5317
5318  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5319  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5320  // because of this.
5321  namespace test_template_alias_sfinae
5322  {
5323
5324    struct foo {};
5325
5326    template<typename T>
5327    using member = typename T::member_type;
5328
5329    template<typename T>
5330    void func(...) {}
5331
5332    template<typename T>
5333    void func(member<T>*) {}
5334
5335    void test();
5336
5337    void test() { func<foo>(0); }
5338
5339  }
5340
5341}  // namespace cxx11
5342
5343#endif  // __cplusplus >= 201103L
5344
5345
5346
5347
5348// If the compiler admits that it is not ready for C++14, why torture it?
5349// Hopefully, this will speed up the test.
5350
5351#ifndef __cplusplus
5352
5353#error "This is not a C++ compiler"
5354
5355#elif __cplusplus < 201402L
5356
5357#error "This is not a C++14 compiler"
5358
5359#else
5360
5361namespace cxx14
5362{
5363
5364  namespace test_polymorphic_lambdas
5365  {
5366
5367    int
5368    test()
5369    {
5370      const auto lambda = [](auto&&... args){
5371        const auto istiny = [](auto x){
5372          return (sizeof(x) == 1UL) ? 1 : 0;
5373        };
5374        const int aretiny[] = { istiny(args)... };
5375        return aretiny[0];
5376      };
5377      return lambda(1, 1L, 1.0f, '1');
5378    }
5379
5380  }
5381
5382  namespace test_binary_literals
5383  {
5384
5385    constexpr auto ivii = 0b0000000000101010;
5386    static_assert(ivii == 42, "wrong value");
5387
5388  }
5389
5390  namespace test_generalized_constexpr
5391  {
5392
5393    template < typename CharT >
5394    constexpr unsigned long
5395    strlen_c(const CharT *const s) noexcept
5396    {
5397      auto length = 0UL;
5398      for (auto p = s; *p; ++p)
5399        ++length;
5400      return length;
5401    }
5402
5403    static_assert(strlen_c("") == 0UL, "");
5404    static_assert(strlen_c("x") == 1UL, "");
5405    static_assert(strlen_c("test") == 4UL, "");
5406    static_assert(strlen_c("another\0test") == 7UL, "");
5407
5408  }
5409
5410  namespace test_lambda_init_capture
5411  {
5412
5413    int
5414    test()
5415    {
5416      auto x = 0;
5417      const auto lambda1 = [a = x](int b){ return a + b; };
5418      const auto lambda2 = [a = lambda1(x)](){ return a; };
5419      return lambda2();
5420    }
5421
5422  }
5423
5424  namespace test_digit_seperators
5425  {
5426
5427    constexpr auto ten_million = 100'000'000;
5428    static_assert(ten_million == 100000000, "");
5429
5430  }
5431
5432  namespace test_return_type_deduction
5433  {
5434
5435    auto f(int& x) { return x; }
5436    decltype(auto) g(int& x) { return x; }
5437
5438    template < typename T1, typename T2 >
5439    struct is_same
5440    {
5441      static constexpr auto value = false;
5442    };
5443
5444    template < typename T >
5445    struct is_same<T, T>
5446    {
5447      static constexpr auto value = true;
5448    };
5449
5450    int
5451    test()
5452    {
5453      auto x = 0;
5454      static_assert(is_same<int, decltype(f(x))>::value, "");
5455      static_assert(is_same<int&, decltype(g(x))>::value, "");
5456      return x;
5457    }
5458
5459  }
5460
5461}  // namespace cxx14
5462
5463#endif  // __cplusplus >= 201402L
5464
5465
5466
5467_ACEOF
5468if ac_fn_cxx_try_compile "$LINENO"; then :
5469  ax_cv_cxx_compile_cxx14=yes
5470else
5471  ax_cv_cxx_compile_cxx14=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5476$as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5477  if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5478    ac_success=yes
5479  fi
5480
5481
5482
5483    if test x$ac_success = xno; then
5484                for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5485      cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5486      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5487$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5488if eval \${$cachevar+:} false; then :
5489  $as_echo_n "(cached) " >&6
5490else
5491  ac_save_CXX="$CXX"
5492         CXX="$CXX $switch"
5493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495
5496
5497// If the compiler admits that it is not ready for C++11, why torture it?
5498// Hopefully, this will speed up the test.
5499
5500#ifndef __cplusplus
5501
5502#error "This is not a C++ compiler"
5503
5504#elif __cplusplus < 201103L
5505
5506#error "This is not a C++11 compiler"
5507
5508#else
5509
5510namespace cxx11
5511{
5512
5513  namespace test_static_assert
5514  {
5515
5516    template <typename T>
5517    struct check
5518    {
5519      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5520    };
5521
5522  }
5523
5524  namespace test_final_override
5525  {
5526
5527    struct Base
5528    {
5529      virtual void f() {}
5530    };
5531
5532    struct Derived : public Base
5533    {
5534      virtual void f() override {}
5535    };
5536
5537  }
5538
5539  namespace test_double_right_angle_brackets
5540  {
5541
5542    template < typename T >
5543    struct check {};
5544
5545    typedef check<void> single_type;
5546    typedef check<check<void>> double_type;
5547    typedef check<check<check<void>>> triple_type;
5548    typedef check<check<check<check<void>>>> quadruple_type;
5549
5550  }
5551
5552  namespace test_decltype
5553  {
5554
5555    int
5556    f()
5557    {
5558      int a = 1;
5559      decltype(a) b = 2;
5560      return a + b;
5561    }
5562
5563  }
5564
5565  namespace test_type_deduction
5566  {
5567
5568    template < typename T1, typename T2 >
5569    struct is_same
5570    {
5571      static const bool value = false;
5572    };
5573
5574    template < typename T >
5575    struct is_same<T, T>
5576    {
5577      static const bool value = true;
5578    };
5579
5580    template < typename T1, typename T2 >
5581    auto
5582    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5583    {
5584      return a1 + a2;
5585    }
5586
5587    int
5588    test(const int c, volatile int v)
5589    {
5590      static_assert(is_same<int, decltype(0)>::value == true, "");
5591      static_assert(is_same<int, decltype(c)>::value == false, "");
5592      static_assert(is_same<int, decltype(v)>::value == false, "");
5593      auto ac = c;
5594      auto av = v;
5595      auto sumi = ac + av + 'x';
5596      auto sumf = ac + av + 1.0;
5597      static_assert(is_same<int, decltype(ac)>::value == true, "");
5598      static_assert(is_same<int, decltype(av)>::value == true, "");
5599      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5600      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5601      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5602      return (sumf > 0.0) ? sumi : add(c, v);
5603    }
5604
5605  }
5606
5607  namespace test_noexcept
5608  {
5609
5610    int f() { return 0; }
5611    int g() noexcept { return 0; }
5612
5613    static_assert(noexcept(f()) == false, "");
5614    static_assert(noexcept(g()) == true, "");
5615
5616  }
5617
5618  namespace test_constexpr
5619  {
5620
5621    template < typename CharT >
5622    unsigned long constexpr
5623    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5624    {
5625      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5626    }
5627
5628    template < typename CharT >
5629    unsigned long constexpr
5630    strlen_c(const CharT *const s) noexcept
5631    {
5632      return strlen_c_r(s, 0UL);
5633    }
5634
5635    static_assert(strlen_c("") == 0UL, "");
5636    static_assert(strlen_c("1") == 1UL, "");
5637    static_assert(strlen_c("example") == 7UL, "");
5638    static_assert(strlen_c("another\0example") == 7UL, "");
5639
5640  }
5641
5642  namespace test_rvalue_references
5643  {
5644
5645    template < int N >
5646    struct answer
5647    {
5648      static constexpr int value = N;
5649    };
5650
5651    answer<1> f(int&)       { return answer<1>(); }
5652    answer<2> f(const int&) { return answer<2>(); }
5653    answer<3> f(int&&)      { return answer<3>(); }
5654
5655    void
5656    test()
5657    {
5658      int i = 0;
5659      const int c = 0;
5660      static_assert(decltype(f(i))::value == 1, "");
5661      static_assert(decltype(f(c))::value == 2, "");
5662      static_assert(decltype(f(0))::value == 3, "");
5663    }
5664
5665  }
5666
5667  namespace test_uniform_initialization
5668  {
5669
5670    struct test
5671    {
5672      static const int zero {};
5673      static const int one {1};
5674    };
5675
5676    static_assert(test::zero == 0, "");
5677    static_assert(test::one == 1, "");
5678
5679  }
5680
5681  namespace test_lambdas
5682  {
5683
5684    void
5685    test1()
5686    {
5687      auto lambda1 = [](){};
5688      auto lambda2 = lambda1;
5689      lambda1();
5690      lambda2();
5691    }
5692
5693    int
5694    test2()
5695    {
5696      auto a = [](int i, int j){ return i + j; }(1, 2);
5697      auto b = []() -> int { return '0'; }();
5698      auto c = [=](){ return a + b; }();
5699      auto d = [&](){ return c; }();
5700      auto e = [a, &b](int x) mutable {
5701        const auto identity = [](int y){ return y; };
5702        for (auto i = 0; i < a; ++i)
5703          a += b--;
5704        return x + identity(a + b);
5705      }(0);
5706      return a + b + c + d + e;
5707    }
5708
5709    int
5710    test3()
5711    {
5712      const auto nullary = [](){ return 0; };
5713      const auto unary = [](int x){ return x; };
5714      using nullary_t = decltype(nullary);
5715      using unary_t = decltype(unary);
5716      const auto higher1st = [](nullary_t f){ return f(); };
5717      const auto higher2nd = [unary](nullary_t f1){
5718        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5719      };
5720      return higher1st(nullary) + higher2nd(nullary)(unary);
5721    }
5722
5723  }
5724
5725  namespace test_variadic_templates
5726  {
5727
5728    template <int...>
5729    struct sum;
5730
5731    template <int N0, int... N1toN>
5732    struct sum<N0, N1toN...>
5733    {
5734      static constexpr auto value = N0 + sum<N1toN...>::value;
5735    };
5736
5737    template <>
5738    struct sum<>
5739    {
5740      static constexpr auto value = 0;
5741    };
5742
5743    static_assert(sum<>::value == 0, "");
5744    static_assert(sum<1>::value == 1, "");
5745    static_assert(sum<23>::value == 23, "");
5746    static_assert(sum<1, 2>::value == 3, "");
5747    static_assert(sum<5, 5, 11>::value == 21, "");
5748    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5749
5750  }
5751
5752  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5753  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5754  // because of this.
5755  namespace test_template_alias_sfinae
5756  {
5757
5758    struct foo {};
5759
5760    template<typename T>
5761    using member = typename T::member_type;
5762
5763    template<typename T>
5764    void func(...) {}
5765
5766    template<typename T>
5767    void func(member<T>*) {}
5768
5769    void test();
5770
5771    void test() { func<foo>(0); }
5772
5773  }
5774
5775}  // namespace cxx11
5776
5777#endif  // __cplusplus >= 201103L
5778
5779
5780
5781
5782// If the compiler admits that it is not ready for C++14, why torture it?
5783// Hopefully, this will speed up the test.
5784
5785#ifndef __cplusplus
5786
5787#error "This is not a C++ compiler"
5788
5789#elif __cplusplus < 201402L
5790
5791#error "This is not a C++14 compiler"
5792
5793#else
5794
5795namespace cxx14
5796{
5797
5798  namespace test_polymorphic_lambdas
5799  {
5800
5801    int
5802    test()
5803    {
5804      const auto lambda = [](auto&&... args){
5805        const auto istiny = [](auto x){
5806          return (sizeof(x) == 1UL) ? 1 : 0;
5807        };
5808        const int aretiny[] = { istiny(args)... };
5809        return aretiny[0];
5810      };
5811      return lambda(1, 1L, 1.0f, '1');
5812    }
5813
5814  }
5815
5816  namespace test_binary_literals
5817  {
5818
5819    constexpr auto ivii = 0b0000000000101010;
5820    static_assert(ivii == 42, "wrong value");
5821
5822  }
5823
5824  namespace test_generalized_constexpr
5825  {
5826
5827    template < typename CharT >
5828    constexpr unsigned long
5829    strlen_c(const CharT *const s) noexcept
5830    {
5831      auto length = 0UL;
5832      for (auto p = s; *p; ++p)
5833        ++length;
5834      return length;
5835    }
5836
5837    static_assert(strlen_c("") == 0UL, "");
5838    static_assert(strlen_c("x") == 1UL, "");
5839    static_assert(strlen_c("test") == 4UL, "");
5840    static_assert(strlen_c("another\0test") == 7UL, "");
5841
5842  }
5843
5844  namespace test_lambda_init_capture
5845  {
5846
5847    int
5848    test()
5849    {
5850      auto x = 0;
5851      const auto lambda1 = [a = x](int b){ return a + b; };
5852      const auto lambda2 = [a = lambda1(x)](){ return a; };
5853      return lambda2();
5854    }
5855
5856  }
5857
5858  namespace test_digit_seperators
5859  {
5860
5861    constexpr auto ten_million = 100'000'000;
5862    static_assert(ten_million == 100000000, "");
5863
5864  }
5865
5866  namespace test_return_type_deduction
5867  {
5868
5869    auto f(int& x) { return x; }
5870    decltype(auto) g(int& x) { return x; }
5871
5872    template < typename T1, typename T2 >
5873    struct is_same
5874    {
5875      static constexpr auto value = false;
5876    };
5877
5878    template < typename T >
5879    struct is_same<T, T>
5880    {
5881      static constexpr auto value = true;
5882    };
5883
5884    int
5885    test()
5886    {
5887      auto x = 0;
5888      static_assert(is_same<int, decltype(f(x))>::value, "");
5889      static_assert(is_same<int&, decltype(g(x))>::value, "");
5890      return x;
5891    }
5892
5893  }
5894
5895}  // namespace cxx14
5896
5897#endif  // __cplusplus >= 201402L
5898
5899
5900
5901_ACEOF
5902if ac_fn_cxx_try_compile "$LINENO"; then :
5903  eval $cachevar=yes
5904else
5905  eval $cachevar=no
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908         CXX="$ac_save_CXX"
5909fi
5910eval ac_res=\$$cachevar
5911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5912$as_echo "$ac_res" >&6; }
5913      if eval test x\$$cachevar = xyes; then
5914        CXX="$CXX $switch"
5915        if test -n "$CXXCPP" ; then
5916          CXXCPP="$CXXCPP $switch"
5917        fi
5918        ac_success=yes
5919        break
5920      fi
5921    done
5922  fi
5923  ac_ext=c
5924ac_cpp='$CPP $CPPFLAGS'
5925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927ac_compiler_gnu=$ac_cv_c_compiler_gnu
5928
5929  if test x$ax_cxx_compile_cxx14_required = xtrue; then
5930    if test x$ac_success = xno; then
5931      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5932    fi
5933  fi
5934  if test x$ac_success = xno; then
5935    HAVE_CXX14=0
5936    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5937$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5938  else
5939    HAVE_CXX14=1
5940
5941$as_echo "#define HAVE_CXX14 1" >>confdefs.h
5942
5943  fi
5944
5945
5946  if test "x${HAVE_CXX14}" = "x1" ; then
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5949$as_echo_n "checking whether compiler supports -Wall... " >&6; }
5950T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5951T_APPEND_V=-Wall
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=-Wall
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
6012$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
6013T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6014T_APPEND_V=-Wextra
6015  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6016  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6017else
6018  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6019fi
6020
6021
6022if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6023  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6024else
6025  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6026fi
6027
6028ac_ext=cpp
6029ac_cpp='$CXXCPP $CPPFLAGS'
6030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6033
6034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036
6037
6038int
6039main ()
6040{
6041
6042    return 0;
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048if ac_fn_cxx_try_compile "$LINENO"; then :
6049  je_cv_cxxflags_added=-Wextra
6050              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6051$as_echo "yes" >&6; }
6052else
6053  je_cv_cxxflags_added=
6054              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055$as_echo "no" >&6; }
6056              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6057
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060ac_ext=c
6061ac_cpp='$CPP $CPPFLAGS'
6062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065
6066if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6067  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6068else
6069  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6070fi
6071
6072
6073
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
6075$as_echo_n "checking whether compiler supports -g3... " >&6; }
6076T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6077T_APPEND_V=-g3
6078  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6079  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6080else
6081  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6082fi
6083
6084
6085if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6086  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6087else
6088  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6089fi
6090
6091ac_ext=cpp
6092ac_cpp='$CXXCPP $CPPFLAGS'
6093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6096
6097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099
6100
6101int
6102main ()
6103{
6104
6105    return 0;
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111if ac_fn_cxx_try_compile "$LINENO"; then :
6112  je_cv_cxxflags_added=-g3
6113              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6114$as_echo "yes" >&6; }
6115else
6116  je_cv_cxxflags_added=
6117              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6120
6121fi
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123ac_ext=c
6124ac_cpp='$CPP $CPPFLAGS'
6125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6130  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6131else
6132  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6133fi
6134
6135
6136
6137    SAVED_LIBS="${LIBS}"
6138    T_APPEND_V=-lstdc++
6139  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6140  LIBS="${LIBS}${T_APPEND_V}"
6141else
6142  LIBS="${LIBS} ${T_APPEND_V}"
6143fi
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6148$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6149if ${je_cv_libstdcxx+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154
6155#include <stdlib.h>
6156
6157int
6158main ()
6159{
6160
6161	int *arr = (int *)malloc(sizeof(int) * 42);
6162	if (arr == NULL)
6163		return 1;
6164
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_link "$LINENO"; then :
6170  je_cv_libstdcxx=yes
6171else
6172  je_cv_libstdcxx=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext \
6175    conftest$ac_exeext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6178$as_echo "$je_cv_libstdcxx" >&6; }
6179
6180    if test "x${je_cv_libstdcxx}" = "xno" ; then
6181      LIBS="${SAVED_LIBS}"
6182    fi
6183  else
6184    enable_cxx="0"
6185  fi
6186fi
6187
6188
6189
6190
6191
6192
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6194$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6195if ${ac_cv_path_GREP+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if test -z "$GREP"; then
6199  ac_path_GREP_found=false
6200  # Loop through the user's path and test for each of PROGNAME-LIST
6201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    for ac_prog in grep ggrep; do
6207    for ac_exec_ext in '' $ac_executable_extensions; do
6208      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6209      as_fn_executable_p "$ac_path_GREP" || continue
6210# Check for GNU ac_path_GREP and select it if it is found.
6211  # Check for GNU $ac_path_GREP
6212case `"$ac_path_GREP" --version 2>&1` in
6213*GNU*)
6214  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6215*)
6216  ac_count=0
6217  $as_echo_n 0123456789 >"conftest.in"
6218  while :
6219  do
6220    cat "conftest.in" "conftest.in" >"conftest.tmp"
6221    mv "conftest.tmp" "conftest.in"
6222    cp "conftest.in" "conftest.nl"
6223    $as_echo 'GREP' >> "conftest.nl"
6224    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6225    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6226    as_fn_arith $ac_count + 1 && ac_count=$as_val
6227    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6228      # Best one so far, save it but keep looking for a better one
6229      ac_cv_path_GREP="$ac_path_GREP"
6230      ac_path_GREP_max=$ac_count
6231    fi
6232    # 10*(2^10) chars as input seems more than enough
6233    test $ac_count -gt 10 && break
6234  done
6235  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6236esac
6237
6238      $ac_path_GREP_found && break 3
6239    done
6240  done
6241  done
6242IFS=$as_save_IFS
6243  if test -z "$ac_cv_path_GREP"; then
6244    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6245  fi
6246else
6247  ac_cv_path_GREP=$GREP
6248fi
6249
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6252$as_echo "$ac_cv_path_GREP" >&6; }
6253 GREP="$ac_cv_path_GREP"
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6257$as_echo_n "checking for egrep... " >&6; }
6258if ${ac_cv_path_EGREP+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6262   then ac_cv_path_EGREP="$GREP -E"
6263   else
6264     if test -z "$EGREP"; then
6265  ac_path_EGREP_found=false
6266  # Loop through the user's path and test for each of PROGNAME-LIST
6267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6269do
6270  IFS=$as_save_IFS
6271  test -z "$as_dir" && as_dir=.
6272    for ac_prog in egrep; do
6273    for ac_exec_ext in '' $ac_executable_extensions; do
6274      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6275      as_fn_executable_p "$ac_path_EGREP" || continue
6276# Check for GNU ac_path_EGREP and select it if it is found.
6277  # Check for GNU $ac_path_EGREP
6278case `"$ac_path_EGREP" --version 2>&1` in
6279*GNU*)
6280  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6281*)
6282  ac_count=0
6283  $as_echo_n 0123456789 >"conftest.in"
6284  while :
6285  do
6286    cat "conftest.in" "conftest.in" >"conftest.tmp"
6287    mv "conftest.tmp" "conftest.in"
6288    cp "conftest.in" "conftest.nl"
6289    $as_echo 'EGREP' >> "conftest.nl"
6290    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292    as_fn_arith $ac_count + 1 && ac_count=$as_val
6293    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6294      # Best one so far, save it but keep looking for a better one
6295      ac_cv_path_EGREP="$ac_path_EGREP"
6296      ac_path_EGREP_max=$ac_count
6297    fi
6298    # 10*(2^10) chars as input seems more than enough
6299    test $ac_count -gt 10 && break
6300  done
6301  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302esac
6303
6304      $ac_path_EGREP_found && break 3
6305    done
6306  done
6307  done
6308IFS=$as_save_IFS
6309  if test -z "$ac_cv_path_EGREP"; then
6310    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6311  fi
6312else
6313  ac_cv_path_EGREP=$EGREP
6314fi
6315
6316   fi
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6319$as_echo "$ac_cv_path_EGREP" >&6; }
6320 EGREP="$ac_cv_path_EGREP"
6321
6322
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6324$as_echo_n "checking for ANSI C header files... " >&6; }
6325if ${ac_cv_header_stdc+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330#include <stdlib.h>
6331#include <stdarg.h>
6332#include <string.h>
6333#include <float.h>
6334
6335int
6336main ()
6337{
6338
6339  ;
6340  return 0;
6341}
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"; then :
6344  ac_cv_header_stdc=yes
6345else
6346  ac_cv_header_stdc=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349
6350if test $ac_cv_header_stdc = yes; then
6351  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354#include <string.h>
6355
6356_ACEOF
6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358  $EGREP "memchr" >/dev/null 2>&1; then :
6359
6360else
6361  ac_cv_header_stdc=no
6362fi
6363rm -f conftest*
6364
6365fi
6366
6367if test $ac_cv_header_stdc = yes; then
6368  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h.  */
6371#include <stdlib.h>
6372
6373_ACEOF
6374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375  $EGREP "free" >/dev/null 2>&1; then :
6376
6377else
6378  ac_cv_header_stdc=no
6379fi
6380rm -f conftest*
6381
6382fi
6383
6384if test $ac_cv_header_stdc = yes; then
6385  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6386  if test "$cross_compiling" = yes; then :
6387  :
6388else
6389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390/* end confdefs.h.  */
6391#include <ctype.h>
6392#include <stdlib.h>
6393#if ((' ' & 0x0FF) == 0x020)
6394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6396#else
6397# define ISLOWER(c) \
6398		   (('a' <= (c) && (c) <= 'i') \
6399		     || ('j' <= (c) && (c) <= 'r') \
6400		     || ('s' <= (c) && (c) <= 'z'))
6401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6402#endif
6403
6404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6405int
6406main ()
6407{
6408  int i;
6409  for (i = 0; i < 256; i++)
6410    if (XOR (islower (i), ISLOWER (i))
6411	|| toupper (i) != TOUPPER (i))
6412      return 2;
6413  return 0;
6414}
6415_ACEOF
6416if ac_fn_c_try_run "$LINENO"; then :
6417
6418else
6419  ac_cv_header_stdc=no
6420fi
6421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6422  conftest.$ac_objext conftest.beam conftest.$ac_ext
6423fi
6424
6425fi
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6428$as_echo "$ac_cv_header_stdc" >&6; }
6429if test $ac_cv_header_stdc = yes; then
6430
6431$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6432
6433fi
6434
6435# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6437		  inttypes.h stdint.h unistd.h
6438do :
6439  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6440ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6441"
6442if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6443  cat >>confdefs.h <<_ACEOF
6444#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445_ACEOF
6446
6447fi
6448
6449done
6450
6451
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6453$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6454if ${ac_cv_c_bigendian+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  ac_cv_c_bigendian=unknown
6458    # See if we're dealing with a universal compiler.
6459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h.  */
6461#ifndef __APPLE_CC__
6462	       not a universal capable compiler
6463	     #endif
6464	     typedef int dummy;
6465
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468
6469	# Check for potential -arch flags.  It is not universal unless
6470	# there are at least two -arch flags with different values.
6471	ac_arch=
6472	ac_prev=
6473	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6474	 if test -n "$ac_prev"; then
6475	   case $ac_word in
6476	     i?86 | x86_64 | ppc | ppc64)
6477	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6478		 ac_arch=$ac_word
6479	       else
6480		 ac_cv_c_bigendian=universal
6481		 break
6482	       fi
6483	       ;;
6484	   esac
6485	   ac_prev=
6486	 elif test "x$ac_word" = "x-arch"; then
6487	   ac_prev=arch
6488	 fi
6489       done
6490fi
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492    if test $ac_cv_c_bigendian = unknown; then
6493      # See if sys/param.h defines the BYTE_ORDER macro.
6494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496#include <sys/types.h>
6497	     #include <sys/param.h>
6498
6499int
6500main ()
6501{
6502#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6503		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6504		     && LITTLE_ENDIAN)
6505	      bogus endian macros
6506	     #endif
6507
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"; then :
6513  # It does; now see whether it defined to BIG_ENDIAN or not.
6514	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516#include <sys/types.h>
6517		#include <sys/param.h>
6518
6519int
6520main ()
6521{
6522#if BYTE_ORDER != BIG_ENDIAN
6523		 not big endian
6524		#endif
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_compile "$LINENO"; then :
6531  ac_cv_c_bigendian=yes
6532else
6533  ac_cv_c_bigendian=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536fi
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538    fi
6539    if test $ac_cv_c_bigendian = unknown; then
6540      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6541      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542/* end confdefs.h.  */
6543#include <limits.h>
6544
6545int
6546main ()
6547{
6548#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6549	      bogus endian macros
6550	     #endif
6551
6552  ;
6553  return 0;
6554}
6555_ACEOF
6556if ac_fn_c_try_compile "$LINENO"; then :
6557  # It does; now see whether it defined to _BIG_ENDIAN or not.
6558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560#include <limits.h>
6561
6562int
6563main ()
6564{
6565#ifndef _BIG_ENDIAN
6566		 not big endian
6567		#endif
6568
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"; then :
6574  ac_cv_c_bigendian=yes
6575else
6576  ac_cv_c_bigendian=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581    fi
6582    if test $ac_cv_c_bigendian = unknown; then
6583      # Compile a test program.
6584      if test "$cross_compiling" = yes; then :
6585  # Try to guess by grepping values from an object file.
6586	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588short int ascii_mm[] =
6589		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6590		short int ascii_ii[] =
6591		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6592		int use_ascii (int i) {
6593		  return ascii_mm[i] + ascii_ii[i];
6594		}
6595		short int ebcdic_ii[] =
6596		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6597		short int ebcdic_mm[] =
6598		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6599		int use_ebcdic (int i) {
6600		  return ebcdic_mm[i] + ebcdic_ii[i];
6601		}
6602		extern int foo;
6603
6604int
6605main ()
6606{
6607return use_ascii (foo) == use_ebcdic (foo);
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_compile "$LINENO"; then :
6613  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6614	      ac_cv_c_bigendian=yes
6615	    fi
6616	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6617	      if test "$ac_cv_c_bigendian" = unknown; then
6618		ac_cv_c_bigendian=no
6619	      else
6620		# finding both strings is unlikely to happen, but who knows?
6621		ac_cv_c_bigendian=unknown
6622	      fi
6623	    fi
6624fi
6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629$ac_includes_default
6630int
6631main ()
6632{
6633
6634	     /* Are we little or big endian?  From Harbison&Steele.  */
6635	     union
6636	     {
6637	       long int l;
6638	       char c[sizeof (long int)];
6639	     } u;
6640	     u.l = 1;
6641	     return u.c[sizeof (long int) - 1] == 1;
6642
6643  ;
6644  return 0;
6645}
6646_ACEOF
6647if ac_fn_c_try_run "$LINENO"; then :
6648  ac_cv_c_bigendian=no
6649else
6650  ac_cv_c_bigendian=yes
6651fi
6652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6653  conftest.$ac_objext conftest.beam conftest.$ac_ext
6654fi
6655
6656    fi
6657fi
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6659$as_echo "$ac_cv_c_bigendian" >&6; }
6660 case $ac_cv_c_bigendian in #(
6661   yes)
6662     ac_cv_big_endian=1;; #(
6663   no)
6664     ac_cv_big_endian=0 ;; #(
6665   universal)
6666
6667$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6668
6669     ;; #(
6670   *)
6671     as_fn_error $? "unknown endianness
6672 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6673 esac
6674
6675if test "x${ac_cv_big_endian}" = "x1" ; then
6676  cat >>confdefs.h <<_ACEOF
6677#define JEMALLOC_BIG_ENDIAN
6678_ACEOF
6679
6680fi
6681
6682if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6683  T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6684  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6685  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6686else
6687  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6688fi
6689
6690
6691fi
6692
6693if test "x${je_cv_msvc}" = "xyes" ; then
6694  LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6696$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6697else
6698  # The cast to long int works around a bug in the HP C Compiler
6699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6701# This bug is HP SR number 8606223364.
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6703$as_echo_n "checking size of void *... " >&6; }
6704if ${ac_cv_sizeof_void_p+:} false; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6708
6709else
6710  if test "$ac_cv_type_void_p" = yes; then
6711     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6713as_fn_error 77 "cannot compute sizeof (void *)
6714See \`config.log' for more details" "$LINENO" 5; }
6715   else
6716     ac_cv_sizeof_void_p=0
6717   fi
6718fi
6719
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6722$as_echo "$ac_cv_sizeof_void_p" >&6; }
6723
6724
6725
6726cat >>confdefs.h <<_ACEOF
6727#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6728_ACEOF
6729
6730
6731  if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6732    LG_SIZEOF_PTR=3
6733  elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6734    LG_SIZEOF_PTR=2
6735  else
6736    as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6737  fi
6738fi
6739cat >>confdefs.h <<_ACEOF
6740#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6741_ACEOF
6742
6743
6744# The cast to long int works around a bug in the HP C Compiler
6745# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6746# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6747# This bug is HP SR number 8606223364.
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6749$as_echo_n "checking size of int... " >&6; }
6750if ${ac_cv_sizeof_int+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6754
6755else
6756  if test "$ac_cv_type_int" = yes; then
6757     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6759as_fn_error 77 "cannot compute sizeof (int)
6760See \`config.log' for more details" "$LINENO" 5; }
6761   else
6762     ac_cv_sizeof_int=0
6763   fi
6764fi
6765
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6768$as_echo "$ac_cv_sizeof_int" >&6; }
6769
6770
6771
6772cat >>confdefs.h <<_ACEOF
6773#define SIZEOF_INT $ac_cv_sizeof_int
6774_ACEOF
6775
6776
6777if test "x${ac_cv_sizeof_int}" = "x8" ; then
6778  LG_SIZEOF_INT=3
6779elif test "x${ac_cv_sizeof_int}" = "x4" ; then
6780  LG_SIZEOF_INT=2
6781else
6782  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6783fi
6784cat >>confdefs.h <<_ACEOF
6785#define LG_SIZEOF_INT $LG_SIZEOF_INT
6786_ACEOF
6787
6788
6789# The cast to long int works around a bug in the HP C Compiler
6790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6792# This bug is HP SR number 8606223364.
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6794$as_echo_n "checking size of long... " >&6; }
6795if ${ac_cv_sizeof_long+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6799
6800else
6801  if test "$ac_cv_type_long" = yes; then
6802     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6804as_fn_error 77 "cannot compute sizeof (long)
6805See \`config.log' for more details" "$LINENO" 5; }
6806   else
6807     ac_cv_sizeof_long=0
6808   fi
6809fi
6810
6811fi
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6813$as_echo "$ac_cv_sizeof_long" >&6; }
6814
6815
6816
6817cat >>confdefs.h <<_ACEOF
6818#define SIZEOF_LONG $ac_cv_sizeof_long
6819_ACEOF
6820
6821
6822if test "x${ac_cv_sizeof_long}" = "x8" ; then
6823  LG_SIZEOF_LONG=3
6824elif test "x${ac_cv_sizeof_long}" = "x4" ; then
6825  LG_SIZEOF_LONG=2
6826else
6827  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6828fi
6829cat >>confdefs.h <<_ACEOF
6830#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6831_ACEOF
6832
6833
6834# The cast to long int works around a bug in the HP C Compiler
6835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6837# This bug is HP SR number 8606223364.
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6839$as_echo_n "checking size of long long... " >&6; }
6840if ${ac_cv_sizeof_long_long+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6844
6845else
6846  if test "$ac_cv_type_long_long" = yes; then
6847     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6849as_fn_error 77 "cannot compute sizeof (long long)
6850See \`config.log' for more details" "$LINENO" 5; }
6851   else
6852     ac_cv_sizeof_long_long=0
6853   fi
6854fi
6855
6856fi
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6858$as_echo "$ac_cv_sizeof_long_long" >&6; }
6859
6860
6861
6862cat >>confdefs.h <<_ACEOF
6863#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6864_ACEOF
6865
6866
6867if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6868  LG_SIZEOF_LONG_LONG=3
6869elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6870  LG_SIZEOF_LONG_LONG=2
6871else
6872  as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6873fi
6874cat >>confdefs.h <<_ACEOF
6875#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6876_ACEOF
6877
6878
6879# The cast to long int works around a bug in the HP C Compiler
6880# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6881# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6882# This bug is HP SR number 8606223364.
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6884$as_echo_n "checking size of intmax_t... " >&6; }
6885if ${ac_cv_sizeof_intmax_t+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
6889
6890else
6891  if test "$ac_cv_type_intmax_t" = yes; then
6892     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6894as_fn_error 77 "cannot compute sizeof (intmax_t)
6895See \`config.log' for more details" "$LINENO" 5; }
6896   else
6897     ac_cv_sizeof_intmax_t=0
6898   fi
6899fi
6900
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6903$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6904
6905
6906
6907cat >>confdefs.h <<_ACEOF
6908#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6909_ACEOF
6910
6911
6912if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6913  LG_SIZEOF_INTMAX_T=4
6914elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6915  LG_SIZEOF_INTMAX_T=3
6916elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6917  LG_SIZEOF_INTMAX_T=2
6918else
6919  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6920fi
6921cat >>confdefs.h <<_ACEOF
6922#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6923_ACEOF
6924
6925
6926# Make sure we can run config.sub.
6927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6928  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6931$as_echo_n "checking build system type... " >&6; }
6932if ${ac_cv_build+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  ac_build_alias=$build_alias
6936test "x$ac_build_alias" = x &&
6937  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6938test "x$ac_build_alias" = x &&
6939  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6941  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6942
6943fi
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6945$as_echo "$ac_cv_build" >&6; }
6946case $ac_cv_build in
6947*-*-*) ;;
6948*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6949esac
6950build=$ac_cv_build
6951ac_save_IFS=$IFS; IFS='-'
6952set x $ac_cv_build
6953shift
6954build_cpu=$1
6955build_vendor=$2
6956shift; shift
6957# Remember, the first character of IFS is used to create $*,
6958# except with old shells:
6959build_os=$*
6960IFS=$ac_save_IFS
6961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6962
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6965$as_echo_n "checking host system type... " >&6; }
6966if ${ac_cv_host+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  if test "x$host_alias" = x; then
6970  ac_cv_host=$ac_cv_build
6971else
6972  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6973    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6974fi
6975
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6978$as_echo "$ac_cv_host" >&6; }
6979case $ac_cv_host in
6980*-*-*) ;;
6981*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6982esac
6983host=$ac_cv_host
6984ac_save_IFS=$IFS; IFS='-'
6985set x $ac_cv_host
6986shift
6987host_cpu=$1
6988host_vendor=$2
6989shift; shift
6990# Remember, the first character of IFS is used to create $*,
6991# except with old shells:
6992host_os=$*
6993IFS=$ac_save_IFS
6994case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6995
6996
6997CPU_SPINWAIT=""
6998case "${host_cpu}" in
6999  i686|x86_64)
7000	HAVE_CPU_SPINWAIT=1
7001	if test "x${je_cv_msvc}" = "xyes" ; then
7002	    if ${je_cv_pause_msvc+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
7007$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
7008if ${je_cv_pause_msvc+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013
7014int
7015main ()
7016{
7017_mm_pause(); return 0;
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"; then :
7023  je_cv_pause_msvc=yes
7024else
7025  je_cv_pause_msvc=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext \
7028    conftest$ac_exeext conftest.$ac_ext
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
7031$as_echo "$je_cv_pause_msvc" >&6; }
7032
7033fi
7034
7035	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
7036		CPU_SPINWAIT='_mm_pause()'
7037	    fi
7038	else
7039	    if ${je_cv_pause+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
7044$as_echo_n "checking whether pause instruction is compilable... " >&6; }
7045if ${je_cv_pause+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050
7051int
7052main ()
7053{
7054__asm__ volatile("pause"); return 0;
7055  ;
7056  return 0;
7057}
7058_ACEOF
7059if ac_fn_c_try_link "$LINENO"; then :
7060  je_cv_pause=yes
7061else
7062  je_cv_pause=no
7063fi
7064rm -f core conftest.err conftest.$ac_objext \
7065    conftest$ac_exeext conftest.$ac_ext
7066fi
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
7068$as_echo "$je_cv_pause" >&6; }
7069
7070fi
7071
7072	    if test "x${je_cv_pause}" = "xyes" ; then
7073		CPU_SPINWAIT='__asm__ volatile("pause")'
7074	    fi
7075	fi
7076	;;
7077  *)
7078	HAVE_CPU_SPINWAIT=0
7079	;;
7080esac
7081cat >>confdefs.h <<_ACEOF
7082#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
7083_ACEOF
7084
7085cat >>confdefs.h <<_ACEOF
7086#define CPU_SPINWAIT $CPU_SPINWAIT
7087_ACEOF
7088
7089
7090
7091# Check whether --with-lg_vaddr was given.
7092if test "${with_lg_vaddr+set}" = set; then :
7093  withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
7094else
7095  LG_VADDR="detect"
7096fi
7097
7098
7099case "${host_cpu}" in
7100  aarch64)
7101    if test "x$LG_VADDR" = "xdetect"; then
7102      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7103$as_echo_n "checking number of significant virtual address bits... " >&6; }
7104      if test "x${LG_SIZEOF_PTR}" = "x2" ; then
7105        #aarch64 ILP32
7106        LG_VADDR=32
7107      else
7108        #aarch64 LP64
7109        LG_VADDR=48
7110      fi
7111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7112$as_echo "$LG_VADDR" >&6; }
7113    fi
7114    ;;
7115  x86_64)
7116    if test "x$LG_VADDR" = "xdetect"; then
7117      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7118$as_echo_n "checking number of significant virtual address bits... " >&6; }
7119if ${je_cv_lg_vaddr+:} false; then :
7120  $as_echo_n "(cached) " >&6
7121else
7122  if test "$cross_compiling" = yes; then :
7123  je_cv_lg_vaddr=57
7124else
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127
7128#include <stdio.h>
7129#ifdef _WIN32
7130#include <limits.h>
7131#include <intrin.h>
7132typedef unsigned __int32 uint32_t;
7133#else
7134#include <stdint.h>
7135#endif
7136
7137int
7138main ()
7139{
7140
7141	uint32_t r[4];
7142	uint32_t eax_in = 0x80000008U;
7143#ifdef _WIN32
7144	__cpuid((int *)r, (int)eax_in);
7145#else
7146	asm volatile ("cpuid"
7147	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7148	    : "a" (eax_in), "c" (0)
7149	);
7150#endif
7151	uint32_t eax_out = r[0];
7152	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7153	FILE *f = fopen("conftest.out", "w");
7154	if (f == NULL) {
7155		return 1;
7156	}
7157	if (vaddr > (sizeof(void *) << 3)) {
7158		vaddr = sizeof(void *) << 3;
7159	}
7160	fprintf(f, "%u", vaddr);
7161	fclose(f);
7162	return 0;
7163
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168if ac_fn_c_try_run "$LINENO"; then :
7169  je_cv_lg_vaddr=`cat conftest.out`
7170else
7171  je_cv_lg_vaddr=error
7172fi
7173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7174  conftest.$ac_objext conftest.beam conftest.$ac_ext
7175fi
7176
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7179$as_echo "$je_cv_lg_vaddr" >&6; }
7180      if test "x${je_cv_lg_vaddr}" != "x" ; then
7181        LG_VADDR="${je_cv_lg_vaddr}"
7182      fi
7183      if test "x${LG_VADDR}" != "xerror" ; then
7184        cat >>confdefs.h <<_ACEOF
7185#define LG_VADDR $LG_VADDR
7186_ACEOF
7187
7188      else
7189        as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7190      fi
7191    fi
7192    ;;
7193  *)
7194    if test "x$LG_VADDR" = "xdetect"; then
7195      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7196$as_echo_n "checking number of significant virtual address bits... " >&6; }
7197      if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7198        LG_VADDR=64
7199      elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7200        LG_VADDR=32
7201      elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7202        LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7203      else
7204        as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7205      fi
7206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7207$as_echo "$LG_VADDR" >&6; }
7208    fi
7209    ;;
7210esac
7211cat >>confdefs.h <<_ACEOF
7212#define LG_VADDR $LG_VADDR
7213_ACEOF
7214
7215
7216LD_PRELOAD_VAR="LD_PRELOAD"
7217so="so"
7218importlib="${so}"
7219o="$ac_objext"
7220a="a"
7221exe="$ac_exeext"
7222libprefix="lib"
7223link_whole_archive="0"
7224DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7225RPATH='-Wl,-rpath,$(1)'
7226SOREV="${so}.${rev}"
7227PIC_CFLAGS='-fPIC -DPIC'
7228CTARGET='-o $@'
7229LDTARGET='-o $@'
7230TEST_LD_MODE=
7231EXTRA_LDFLAGS=
7232ARFLAGS='crus'
7233AROUT=' $@'
7234CC_MM=1
7235
7236if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7237  TEST_LD_MODE='-dynamic'
7238fi
7239
7240if test "x${je_cv_cray}" = "xyes" ; then
7241  CC_MM=
7242fi
7243
7244
7245
7246
7247if test -n "$ac_tool_prefix"; then
7248  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}ar; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if ${ac_cv_prog_AR+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  if test -n "$AR"; then
7256  ac_cv_prog_AR="$AR" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265    ac_cv_prog_AR="${ac_tool_prefix}ar"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275AR=$ac_cv_prog_AR
7276if test -n "$AR"; then
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7278$as_echo "$AR" >&6; }
7279else
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285fi
7286if test -z "$ac_cv_prog_AR"; then
7287  ac_ct_AR=$AR
7288  # Extract the first word of "ar", so it can be a program name with args.
7289set dummy ar; ac_word=$2
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291$as_echo_n "checking for $ac_word... " >&6; }
7292if ${ac_cv_prog_ac_ct_AR+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  if test -n "$ac_ct_AR"; then
7296  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303    for ac_exec_ext in '' $ac_executable_extensions; do
7304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305    ac_cv_prog_ac_ct_AR="ar"
7306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310  done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_AR=$ac_cv_prog_ac_ct_AR
7316if test -n "$ac_ct_AR"; then
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7318$as_echo "$ac_ct_AR" >&6; }
7319else
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324  if test "x$ac_ct_AR" = x; then
7325    AR=":"
7326  else
7327    case $cross_compiling:$ac_tool_warned in
7328yes:)
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331ac_tool_warned=yes ;;
7332esac
7333    AR=$ac_ct_AR
7334  fi
7335else
7336  AR="$ac_cv_prog_AR"
7337fi
7338
7339
7340
7341
7342
7343if test -n "$ac_tool_prefix"; then
7344  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7345set dummy ${ac_tool_prefix}nm; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if ${ac_cv_prog_NM+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$NM"; then
7352  ac_cv_prog_NM="$NM" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361    ac_cv_prog_NM="${ac_tool_prefix}nm"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371NM=$ac_cv_prog_NM
7372if test -n "$NM"; then
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7374$as_echo "$NM" >&6; }
7375else
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381fi
7382if test -z "$ac_cv_prog_NM"; then
7383  ac_ct_NM=$NM
7384  # Extract the first word of "nm", so it can be a program name with args.
7385set dummy nm; ac_word=$2
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
7388if ${ac_cv_prog_ac_ct_NM+:} false; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  if test -n "$ac_ct_NM"; then
7392  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399    for ac_exec_ext in '' $ac_executable_extensions; do
7400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401    ac_cv_prog_ac_ct_NM="nm"
7402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406  done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411ac_ct_NM=$ac_cv_prog_ac_ct_NM
7412if test -n "$ac_ct_NM"; then
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7414$as_echo "$ac_ct_NM" >&6; }
7415else
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420  if test "x$ac_ct_NM" = x; then
7421    NM=":"
7422  else
7423    case $cross_compiling:$ac_tool_warned in
7424yes:)
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427ac_tool_warned=yes ;;
7428esac
7429    NM=$ac_ct_NM
7430  fi
7431else
7432  NM="$ac_cv_prog_NM"
7433fi
7434
7435
7436for ac_prog in gawk mawk nawk awk
7437do
7438  # Extract the first word of "$ac_prog", so it can be a program name with args.
7439set dummy $ac_prog; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if ${ac_cv_prog_AWK+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$AWK"; then
7446  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455    ac_cv_prog_AWK="$ac_prog"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465AWK=$ac_cv_prog_AWK
7466if test -n "$AWK"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7468$as_echo "$AWK" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474
7475  test -n "$AWK" && break
7476done
7477
7478
7479
7480
7481# Check whether --with-version was given.
7482if test "${with_version+set}" = set; then :
7483  withval=$with_version;
7484    echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
7485    if test $? -eq 0 ; then
7486      echo "$with_version" > "${objroot}VERSION"
7487    else
7488      echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
7489      if test $? -ne 0 ; then
7490        as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
7491      fi
7492    fi
7493
7494else
7495
7496        if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
7497                        for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
7498                     '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
7499                     '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
7500                     '[0-9][0-9].[0-9][0-9].[0-9]' \
7501                     '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
7502        (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
7503        if test $? -eq 0 ; then
7504          mv "${objroot}VERSION.tmp" "${objroot}VERSION"
7505          break
7506        fi
7507      done
7508    fi
7509    rm -f "${objroot}VERSION.tmp"
7510
7511fi
7512
7513
7514if test ! -e "${objroot}VERSION" ; then
7515  if test ! -e "${srcroot}VERSION" ; then
7516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
7517$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
7518    echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
7519  else
7520    cp ${srcroot}VERSION ${objroot}VERSION
7521  fi
7522fi
7523jemalloc_version=`cat "${objroot}VERSION"`
7524jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
7525jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
7526jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
7527jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
7528jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
7529
7530
7531
7532
7533
7534
7535
7536default_retain="0"
7537maps_coalesce="1"
7538DUMP_SYMS="${NM} -a"
7539SYM_PREFIX=""
7540case "${host}" in
7541  *-*-darwin* | *-*-ios*)
7542	abi="macho"
7543	RPATH=""
7544	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7545	so="dylib"
7546	importlib="${so}"
7547	force_tls="0"
7548	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7549	SOREV="${rev}.${so}"
7550	sbrk_deprecated="1"
7551	SYM_PREFIX="_"
7552	;;
7553  *-*-freebsd*)
7554	abi="elf"
7555	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7556
7557	force_lazy_lock="1"
7558	;;
7559  *-*-dragonfly*)
7560	abi="elf"
7561	;;
7562  *-*-openbsd*)
7563	abi="elf"
7564	force_tls="0"
7565	;;
7566  *-*-bitrig*)
7567	abi="elf"
7568	;;
7569  *-*-linux-android)
7570		T_APPEND_V=-D_GNU_SOURCE
7571  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7572  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7573else
7574  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7575fi
7576
7577
7578	abi="elf"
7579	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7580
7581	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7582
7583	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7584
7585	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7586
7587	$as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7588
7589	force_tls="0"
7590	if test "${LG_SIZEOF_PTR}" = "3"; then
7591	  default_retain="1"
7592	fi
7593	;;
7594  *-*-linux*)
7595		T_APPEND_V=-D_GNU_SOURCE
7596  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7597  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7598else
7599  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7600fi
7601
7602
7603	abi="elf"
7604	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7605
7606	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7607
7608	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7609
7610	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7611
7612	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7613
7614	if test "${LG_SIZEOF_PTR}" = "3"; then
7615	  default_retain="1"
7616	fi
7617	;;
7618  *-*-kfreebsd*)
7619		T_APPEND_V=-D_GNU_SOURCE
7620  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7621  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7622else
7623  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7624fi
7625
7626
7627	abi="elf"
7628	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7629
7630	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7631
7632	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7633
7634	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7635
7636	;;
7637  *-*-netbsd*)
7638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7639$as_echo_n "checking ABI... " >&6; }
7640        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642#ifdef __ELF__
7643/* ELF */
7644#else
7645#error aout
7646#endif
7647
7648int
7649main ()
7650{
7651
7652  ;
7653  return 0;
7654}
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  abi="elf"
7658else
7659  abi="aout"
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7663$as_echo "$abi" >&6; }
7664	;;
7665  *-*-solaris2*)
7666	abi="elf"
7667	RPATH='-Wl,-R,$(1)'
7668		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7669  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7670  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7671else
7672  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7673fi
7674
7675
7676	T_APPEND_V=-lposix4 -lsocket -lnsl
7677  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7678  LIBS="${LIBS}${T_APPEND_V}"
7679else
7680  LIBS="${LIBS} ${T_APPEND_V}"
7681fi
7682
7683
7684	;;
7685  *-ibm-aix*)
7686	if test "${LG_SIZEOF_PTR}" = "3"; then
7687	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
7688	else
7689	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
7690	fi
7691	abi="xcoff"
7692	;;
7693  *-*-mingw* | *-*-cygwin*)
7694	abi="pecoff"
7695	force_tls="0"
7696	maps_coalesce="0"
7697	RPATH=""
7698	so="dll"
7699	if test "x$je_cv_msvc" = "xyes" ; then
7700	  importlib="lib"
7701	  DSO_LDFLAGS="-LD"
7702	  EXTRA_LDFLAGS="-link -DEBUG"
7703	  CTARGET='-Fo$@'
7704	  LDTARGET='-Fe$@'
7705	  AR='lib'
7706	  ARFLAGS='-nologo -out:'
7707	  AROUT='$@'
7708	  CC_MM=
7709        else
7710	  importlib="${so}"
7711	  DSO_LDFLAGS="-shared"
7712	  link_whole_archive="1"
7713	fi
7714	case "${host}" in
7715	  *-*-cygwin*)
7716	    DUMP_SYMS="dumpbin /SYMBOLS"
7717	    ;;
7718	  *)
7719	    ;;
7720	esac
7721	a="lib"
7722	libprefix=""
7723	SOREV="${so}"
7724	PIC_CFLAGS=""
7725	if test "${LG_SIZEOF_PTR}" = "3"; then
7726	  default_retain="1"
7727	fi
7728	;;
7729  *)
7730	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7731$as_echo "Unsupported operating system: ${host}" >&6; }
7732	abi="elf"
7733	;;
7734esac
7735
7736JEMALLOC_USABLE_SIZE_CONST=const
7737for ac_header in malloc.h
7738do :
7739  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7740if test "x$ac_cv_header_malloc_h" = xyes; then :
7741  cat >>confdefs.h <<_ACEOF
7742#define HAVE_MALLOC_H 1
7743_ACEOF
7744
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7746$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749#include <malloc.h>
7750     #include <stddef.h>
7751    size_t malloc_usable_size(const void *ptr);
7752
7753int
7754main ()
7755{
7756
7757  ;
7758  return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_compile "$LINENO"; then :
7762
7763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764$as_echo "yes" >&6; }
7765
7766else
7767
7768                JEMALLOC_USABLE_SIZE_CONST=
7769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771
7772fi
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774
7775fi
7776
7777done
7778
7779cat >>confdefs.h <<_ACEOF
7780#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7781_ACEOF
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7807$as_echo_n "checking for library containing log... " >&6; }
7808if ${ac_cv_search_log+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  ac_func_search_save_LIBS=$LIBS
7812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814
7815/* Override any GCC internal prototype to avoid an error.
7816   Use char because int might match the return type of a GCC
7817   builtin and then its argument prototype would still apply.  */
7818#ifdef __cplusplus
7819extern "C"
7820#endif
7821char log ();
7822int
7823main ()
7824{
7825return log ();
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830for ac_lib in '' m; do
7831  if test -z "$ac_lib"; then
7832    ac_res="none required"
7833  else
7834    ac_res=-l$ac_lib
7835    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7836  fi
7837  if ac_fn_c_try_link "$LINENO"; then :
7838  ac_cv_search_log=$ac_res
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841    conftest$ac_exeext
7842  if ${ac_cv_search_log+:} false; then :
7843  break
7844fi
7845done
7846if ${ac_cv_search_log+:} false; then :
7847
7848else
7849  ac_cv_search_log=no
7850fi
7851rm conftest.$ac_ext
7852LIBS=$ac_func_search_save_LIBS
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7855$as_echo "$ac_cv_search_log" >&6; }
7856ac_res=$ac_cv_search_log
7857if test "$ac_res" != no; then :
7858  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7859
7860else
7861  as_fn_error $? "Missing math functions" "$LINENO" 5
7862fi
7863
7864if test "x$ac_cv_search_log" != "xnone required" ; then
7865  LM="$ac_cv_search_log"
7866else
7867  LM=
7868fi
7869
7870
7871
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7873$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7874if ${je_cv_attribute+:} false; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879static __attribute__((unused)) void foo(void){}
7880int
7881main ()
7882{
7883
7884  ;
7885  return 0;
7886}
7887_ACEOF
7888if ac_fn_c_try_link "$LINENO"; then :
7889  je_cv_attribute=yes
7890else
7891  je_cv_attribute=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext \
7894    conftest$ac_exeext conftest.$ac_ext
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7897$as_echo "$je_cv_attribute" >&6; }
7898
7899if test "x${je_cv_attribute}" = "xyes" ; then
7900  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
7901
7902  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7905$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7906T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7907T_APPEND_V=-fvisibility=hidden
7908  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7909  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7910else
7911  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7912fi
7913
7914
7915if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7916  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7917else
7918  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7919fi
7920
7921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h.  */
7923
7924
7925int
7926main ()
7927{
7928
7929    return 0;
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"; then :
7936  je_cv_cflags_added=-fvisibility=hidden
7937              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938$as_echo "yes" >&6; }
7939else
7940  je_cv_cflags_added=
7941              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
7943              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7944
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7948  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7949else
7950  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7951fi
7952
7953
7954
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7956$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7957T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7958T_APPEND_V=-fvisibility=hidden
7959  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7960  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7961else
7962  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7963fi
7964
7965
7966if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7967  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7968else
7969  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7970fi
7971
7972ac_ext=cpp
7973ac_cpp='$CXXCPP $CPPFLAGS'
7974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7977
7978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979/* end confdefs.h.  */
7980
7981
7982int
7983main ()
7984{
7985
7986    return 0;
7987
7988  ;
7989  return 0;
7990}
7991_ACEOF
7992if ac_fn_cxx_try_compile "$LINENO"; then :
7993  je_cv_cxxflags_added=-fvisibility=hidden
7994              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7995$as_echo "yes" >&6; }
7996else
7997  je_cv_cxxflags_added=
7998              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
8000              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
8001
8002fi
8003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004ac_ext=c
8005ac_cpp='$CPP $CPPFLAGS'
8006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
8011  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
8012else
8013  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
8014fi
8015
8016
8017  fi
8018fi
8019SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8020
8021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8023$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8024T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8025T_APPEND_V=-Werror
8026  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8027  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8028else
8029  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8030fi
8031
8032
8033if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8034  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8035else
8036  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8037fi
8038
8039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041
8042
8043int
8044main ()
8045{
8046
8047    return 0;
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"; then :
8054  je_cv_cflags_added=-Werror
8055              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8056$as_echo "yes" >&6; }
8057else
8058  je_cv_cflags_added=
8059              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
8061              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8062
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8066  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8067else
8068  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8069fi
8070
8071
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8074$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8075T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8076T_APPEND_V=-herror_on_warning
8077  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8078  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8079else
8080  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8081fi
8082
8083
8084if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8085  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8086else
8087  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8088fi
8089
8090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092
8093
8094int
8095main ()
8096{
8097
8098    return 0;
8099
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105  je_cv_cflags_added=-herror_on_warning
8106              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107$as_echo "yes" >&6; }
8108else
8109  je_cv_cflags_added=
8110              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8113
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8117  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8118else
8119  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8120fi
8121
8122
8123
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
8125$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
8126if ${je_cv_tls_model+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h.  */
8131
8132int
8133main ()
8134{
8135static __thread int
8136               __attribute__((tls_model("initial-exec"), unused)) foo;
8137               foo = 0;
8138  ;
8139  return 0;
8140}
8141_ACEOF
8142if ac_fn_c_try_link "$LINENO"; then :
8143  je_cv_tls_model=yes
8144else
8145  je_cv_tls_model=no
8146fi
8147rm -f core conftest.err conftest.$ac_objext \
8148    conftest$ac_exeext conftest.$ac_ext
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
8151$as_echo "$je_cv_tls_model" >&6; }
8152
8153CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8154if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8155  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8156else
8157  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8158fi
8159
8160
8161
8162SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8163
8164
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8166$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8167T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8168T_APPEND_V=-Werror
8169  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8170  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8171else
8172  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8173fi
8174
8175
8176if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8177  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8178else
8179  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8180fi
8181
8182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184
8185
8186int
8187main ()
8188{
8189
8190    return 0;
8191
8192  ;
8193  return 0;
8194}
8195_ACEOF
8196if ac_fn_c_try_compile "$LINENO"; then :
8197  je_cv_cflags_added=-Werror
8198              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8199$as_echo "yes" >&6; }
8200else
8201  je_cv_cflags_added=
8202              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8205
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8209  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8210else
8211  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8212fi
8213
8214
8215
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8217$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8218T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8219T_APPEND_V=-herror_on_warning
8220  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8221  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8222else
8223  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8224fi
8225
8226
8227if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8228  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8229else
8230  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8231fi
8232
8233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235
8236
8237int
8238main ()
8239{
8240
8241    return 0;
8242
8243  ;
8244  return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_compile "$LINENO"; then :
8248  je_cv_cflags_added=-herror_on_warning
8249              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250$as_echo "yes" >&6; }
8251else
8252  je_cv_cflags_added=
8253              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
8255              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8256
8257fi
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8260  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8261else
8262  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8263fi
8264
8265
8266
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8268$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8269if ${je_cv_alloc_size+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h.  */
8274#include <stdlib.h>
8275int
8276main ()
8277{
8278void *foo(size_t size) __attribute__((alloc_size(1)));
8279  ;
8280  return 0;
8281}
8282_ACEOF
8283if ac_fn_c_try_link "$LINENO"; then :
8284  je_cv_alloc_size=yes
8285else
8286  je_cv_alloc_size=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext \
8289    conftest$ac_exeext conftest.$ac_ext
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8292$as_echo "$je_cv_alloc_size" >&6; }
8293
8294CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8295if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8296  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8297else
8298  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8299fi
8300
8301
8302if test "x${je_cv_alloc_size}" = "xyes" ; then
8303  $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
8304
8305fi
8306SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8307
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8310$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8311T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8312T_APPEND_V=-Werror
8313  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8314  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8315else
8316  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8317fi
8318
8319
8320if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8321  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8322else
8323  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8324fi
8325
8326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328
8329
8330int
8331main ()
8332{
8333
8334    return 0;
8335
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"; then :
8341  je_cv_cflags_added=-Werror
8342              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8343$as_echo "yes" >&6; }
8344else
8345  je_cv_cflags_added=
8346              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
8348              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8349
8350fi
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8353  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8354else
8355  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8356fi
8357
8358
8359
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8361$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8362T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8363T_APPEND_V=-herror_on_warning
8364  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8365  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8366else
8367  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8368fi
8369
8370
8371if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8372  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8373else
8374  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8375fi
8376
8377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379
8380
8381int
8382main ()
8383{
8384
8385    return 0;
8386
8387  ;
8388  return 0;
8389}
8390_ACEOF
8391if ac_fn_c_try_compile "$LINENO"; then :
8392  je_cv_cflags_added=-herror_on_warning
8393              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8394$as_echo "yes" >&6; }
8395else
8396  je_cv_cflags_added=
8397              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
8399              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8400
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8404  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8405else
8406  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8407fi
8408
8409
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8412$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8413if ${je_cv_format_gnu_printf+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418#include <stdlib.h>
8419int
8420main ()
8421{
8422void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427if ac_fn_c_try_link "$LINENO"; then :
8428  je_cv_format_gnu_printf=yes
8429else
8430  je_cv_format_gnu_printf=no
8431fi
8432rm -f core conftest.err conftest.$ac_objext \
8433    conftest$ac_exeext conftest.$ac_ext
8434fi
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8436$as_echo "$je_cv_format_gnu_printf" >&6; }
8437
8438CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8439if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8440  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8441else
8442  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8443fi
8444
8445
8446if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8447  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
8448
8449fi
8450SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8451
8452
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8454$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8455T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8456T_APPEND_V=-Werror
8457  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8458  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8459else
8460  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8461fi
8462
8463
8464if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8465  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8466else
8467  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8468fi
8469
8470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h.  */
8472
8473
8474int
8475main ()
8476{
8477
8478    return 0;
8479
8480  ;
8481  return 0;
8482}
8483_ACEOF
8484if ac_fn_c_try_compile "$LINENO"; then :
8485  je_cv_cflags_added=-Werror
8486              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8487$as_echo "yes" >&6; }
8488else
8489  je_cv_cflags_added=
8490              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
8492              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8493
8494fi
8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8497  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8498else
8499  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8500fi
8501
8502
8503
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8505$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8506T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8507T_APPEND_V=-herror_on_warning
8508  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8509  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8510else
8511  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8512fi
8513
8514
8515if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8516  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8517else
8518  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8519fi
8520
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523
8524
8525int
8526main ()
8527{
8528
8529    return 0;
8530
8531  ;
8532  return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"; then :
8536  je_cv_cflags_added=-herror_on_warning
8537              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8538$as_echo "yes" >&6; }
8539else
8540  je_cv_cflags_added=
8541              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8544
8545fi
8546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8548  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8549else
8550  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8551fi
8552
8553
8554
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8556$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8557if ${je_cv_format_printf+:} false; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562#include <stdlib.h>
8563int
8564main ()
8565{
8566void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_link "$LINENO"; then :
8572  je_cv_format_printf=yes
8573else
8574  je_cv_format_printf=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext \
8577    conftest$ac_exeext conftest.$ac_ext
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8580$as_echo "$je_cv_format_printf" >&6; }
8581
8582CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8583if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8584  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8585else
8586  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8587fi
8588
8589
8590if test "x${je_cv_format_printf}" = "xyes" ; then
8591  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
8592
8593fi
8594
8595SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8596
8597
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8599$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8600T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8601T_APPEND_V=-Werror
8602  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8603  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8604else
8605  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8606fi
8607
8608
8609if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8610  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8611else
8612  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8613fi
8614
8615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617
8618
8619int
8620main ()
8621{
8622
8623    return 0;
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_compile "$LINENO"; then :
8630  je_cv_cflags_added=-Werror
8631              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632$as_echo "yes" >&6; }
8633else
8634  je_cv_cflags_added=
8635              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8638
8639fi
8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8642  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8643else
8644  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8645fi
8646
8647
8648
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8650$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8651T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8652T_APPEND_V=-herror_on_warning
8653  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8654  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8655else
8656  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8657fi
8658
8659
8660if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8661  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8662else
8663  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8664fi
8665
8666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668
8669
8670int
8671main ()
8672{
8673
8674    return 0;
8675
8676  ;
8677  return 0;
8678}
8679_ACEOF
8680if ac_fn_c_try_compile "$LINENO"; then :
8681  je_cv_cflags_added=-herror_on_warning
8682              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8683$as_echo "yes" >&6; }
8684else
8685  je_cv_cflags_added=
8686              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
8688              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8689
8690fi
8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8693  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8694else
8695  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8696fi
8697
8698
8699
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8701$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8702if ${je_cv_format_arg+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707#include <stdlib.h>
8708int
8709main ()
8710{
8711const char * __attribute__((__format_arg__(1))) foo(const char *format);
8712  ;
8713  return 0;
8714}
8715_ACEOF
8716if ac_fn_c_try_link "$LINENO"; then :
8717  je_cv_format_arg=yes
8718else
8719  je_cv_format_arg=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext \
8722    conftest$ac_exeext conftest.$ac_ext
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5
8725$as_echo "$je_cv_format_arg" >&6; }
8726
8727CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8728if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8729  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8730else
8731  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8732fi
8733
8734
8735if test "x${je_cv_format_arg}" = "xyes" ; then
8736  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG  " >>confdefs.h
8737
8738fi
8739
8740
8741# Check whether --with-rpath was given.
8742if test "${with_rpath+set}" = set; then :
8743  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8744  RPATH_EXTRA=
8745else
8746  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8747fi
8748else
8749  RPATH_EXTRA=
8750
8751fi
8752
8753
8754
8755# Check whether --enable-autogen was given.
8756if test "${enable_autogen+set}" = set; then :
8757  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8758  enable_autogen="0"
8759else
8760  enable_autogen="1"
8761fi
8762
8763else
8764  enable_autogen="0"
8765
8766fi
8767
8768
8769
8770# Find a good install program.  We prefer a C program (faster),
8771# so one script is as good as another.  But avoid the broken or
8772# incompatible versions:
8773# SysV /etc/install, /usr/sbin/install
8774# SunOS /usr/etc/install
8775# IRIX /sbin/install
8776# AIX /bin/install
8777# AmigaOS /C/install, which installs bootblocks on floppy discs
8778# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8779# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8780# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8781# OS/2's system install, which has a completely different semantic
8782# ./install, which can be erroneously created by make from ./install.sh.
8783# Reject install programs that cannot install multiple files.
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8785$as_echo_n "checking for a BSD-compatible install... " >&6; }
8786if test -z "$INSTALL"; then
8787if ${ac_cv_path_install+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793  IFS=$as_save_IFS
8794  test -z "$as_dir" && as_dir=.
8795    # Account for people who put trailing slashes in PATH elements.
8796case $as_dir/ in #((
8797  ./ | .// | /[cC]/* | \
8798  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8799  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8800  /usr/ucb/* ) ;;
8801  *)
8802    # OSF1 and SCO ODT 3.0 have their own names for install.
8803    # Don't use installbsd from OSF since it installs stuff as root
8804    # by default.
8805    for ac_prog in ginstall scoinst install; do
8806      for ac_exec_ext in '' $ac_executable_extensions; do
8807	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8808	  if test $ac_prog = install &&
8809	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8810	    # AIX install.  It has an incompatible calling convention.
8811	    :
8812	  elif test $ac_prog = install &&
8813	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8814	    # program-specific install script used by HP pwplus--don't use.
8815	    :
8816	  else
8817	    rm -rf conftest.one conftest.two conftest.dir
8818	    echo one > conftest.one
8819	    echo two > conftest.two
8820	    mkdir conftest.dir
8821	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8822	      test -s conftest.one && test -s conftest.two &&
8823	      test -s conftest.dir/conftest.one &&
8824	      test -s conftest.dir/conftest.two
8825	    then
8826	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8827	      break 3
8828	    fi
8829	  fi
8830	fi
8831      done
8832    done
8833    ;;
8834esac
8835
8836  done
8837IFS=$as_save_IFS
8838
8839rm -rf conftest.one conftest.two conftest.dir
8840
8841fi
8842  if test "${ac_cv_path_install+set}" = set; then
8843    INSTALL=$ac_cv_path_install
8844  else
8845    # As a last resort, use the slow shell script.  Don't cache a
8846    # value for INSTALL within a source directory, because that will
8847    # break other packages using the cache if that directory is
8848    # removed, or if the value is a relative name.
8849    INSTALL=$ac_install_sh
8850  fi
8851fi
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8853$as_echo "$INSTALL" >&6; }
8854
8855# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8856# It thinks the first close brace ends the variable substitution.
8857test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8858
8859test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8860
8861test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8862
8863if test -n "$ac_tool_prefix"; then
8864  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867$as_echo_n "checking for $ac_word... " >&6; }
8868if ${ac_cv_prog_RANLIB+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  if test -n "$RANLIB"; then
8872  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8873else
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877  IFS=$as_save_IFS
8878  test -z "$as_dir" && as_dir=.
8879    for ac_exec_ext in '' $ac_executable_extensions; do
8880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883    break 2
8884  fi
8885done
8886  done
8887IFS=$as_save_IFS
8888
8889fi
8890fi
8891RANLIB=$ac_cv_prog_RANLIB
8892if test -n "$RANLIB"; then
8893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8894$as_echo "$RANLIB" >&6; }
8895else
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
8898fi
8899
8900
8901fi
8902if test -z "$ac_cv_prog_RANLIB"; then
8903  ac_ct_RANLIB=$RANLIB
8904  # Extract the first word of "ranlib", so it can be a program name with args.
8905set dummy ranlib; ac_word=$2
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907$as_echo_n "checking for $ac_word... " >&6; }
8908if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  if test -n "$ac_ct_RANLIB"; then
8912  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8913else
8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $PATH
8916do
8917  IFS=$as_save_IFS
8918  test -z "$as_dir" && as_dir=.
8919    for ac_exec_ext in '' $ac_executable_extensions; do
8920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921    ac_cv_prog_ac_ct_RANLIB="ranlib"
8922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923    break 2
8924  fi
8925done
8926  done
8927IFS=$as_save_IFS
8928
8929fi
8930fi
8931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8932if test -n "$ac_ct_RANLIB"; then
8933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8934$as_echo "$ac_ct_RANLIB" >&6; }
8935else
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
8938fi
8939
8940  if test "x$ac_ct_RANLIB" = x; then
8941    RANLIB=":"
8942  else
8943    case $cross_compiling:$ac_tool_warned in
8944yes:)
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947ac_tool_warned=yes ;;
8948esac
8949    RANLIB=$ac_ct_RANLIB
8950  fi
8951else
8952  RANLIB="$ac_cv_prog_RANLIB"
8953fi
8954
8955# Extract the first word of "ld", so it can be a program name with args.
8956set dummy ld; ac_word=$2
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958$as_echo_n "checking for $ac_word... " >&6; }
8959if ${ac_cv_path_LD+:} false; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  case $LD in
8963  [\\/]* | ?:[\\/]*)
8964  ac_cv_path_LD="$LD" # Let the user override the test with a path.
8965  ;;
8966  *)
8967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968for as_dir in $PATH
8969do
8970  IFS=$as_save_IFS
8971  test -z "$as_dir" && as_dir=.
8972    for ac_exec_ext in '' $ac_executable_extensions; do
8973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8974    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976    break 2
8977  fi
8978done
8979  done
8980IFS=$as_save_IFS
8981
8982  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8983  ;;
8984esac
8985fi
8986LD=$ac_cv_path_LD
8987if test -n "$LD"; then
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8989$as_echo "$LD" >&6; }
8990else
8991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
8993fi
8994
8995
8996# Extract the first word of "autoconf", so it can be a program name with args.
8997set dummy autoconf; ac_word=$2
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999$as_echo_n "checking for $ac_word... " >&6; }
9000if ${ac_cv_path_AUTOCONF+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  case $AUTOCONF in
9004  [\\/]* | ?:[\\/]*)
9005  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
9006  ;;
9007  *)
9008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011  IFS=$as_save_IFS
9012  test -z "$as_dir" && as_dir=.
9013    for ac_exec_ext in '' $ac_executable_extensions; do
9014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
9016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017    break 2
9018  fi
9019done
9020  done
9021IFS=$as_save_IFS
9022
9023  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
9024  ;;
9025esac
9026fi
9027AUTOCONF=$ac_cv_path_AUTOCONF
9028if test -n "$AUTOCONF"; then
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
9030$as_echo "$AUTOCONF" >&6; }
9031else
9032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
9034fi
9035
9036
9037
9038# Check whether --enable-doc was given.
9039if test "${enable_doc+set}" = set; then :
9040  enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then
9041  enable_doc="0"
9042else
9043  enable_doc="1"
9044fi
9045
9046else
9047  enable_doc="1"
9048
9049fi
9050
9051
9052
9053# Check whether --enable-shared was given.
9054if test "${enable_shared+set}" = set; then :
9055  enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
9056  enable_shared="0"
9057else
9058  enable_shared="1"
9059fi
9060
9061else
9062  enable_shared="1"
9063
9064fi
9065
9066
9067
9068# Check whether --enable-static was given.
9069if test "${enable_static+set}" = set; then :
9070  enableval=$enable_static; if test "x$enable_static" = "xno" ; then
9071  enable_static="0"
9072else
9073  enable_static="1"
9074fi
9075
9076else
9077  enable_static="1"
9078
9079fi
9080
9081
9082
9083if test "$enable_shared$enable_static" = "00" ; then
9084  as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
9085fi
9086
9087
9088# Check whether --with-mangling was given.
9089if test "${with_mangling+set}" = set; then :
9090  withval=$with_mangling; mangling_map="$with_mangling"
9091else
9092  mangling_map=""
9093fi
9094
9095
9096
9097# Check whether --with-jemalloc_prefix was given.
9098if test "${with_jemalloc_prefix+set}" = set; then :
9099  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
9100else
9101  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
9102  JEMALLOC_PREFIX=""
9103else
9104  JEMALLOC_PREFIX="je_"
9105fi
9106
9107fi
9108
9109if test "x$JEMALLOC_PREFIX" = "x" ; then
9110  $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
9111
9112else
9113  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
9114  cat >>confdefs.h <<_ACEOF
9115#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
9116_ACEOF
9117
9118  cat >>confdefs.h <<_ACEOF
9119#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
9120_ACEOF
9121
9122fi
9123
9124
9125
9126
9127# Check whether --with-export was given.
9128if test "${with_export+set}" = set; then :
9129  withval=$with_export; if test "x$with_export" = "xno"; then
9130  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
9131
9132fi
9133
9134fi
9135
9136
9137public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
9138ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
9139if test "x$ac_cv_func_memalign" = xyes; then :
9140  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
9141
9142	       public_syms="${public_syms} memalign"
9143fi
9144
9145ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
9146if test "x$ac_cv_func_valloc" = xyes; then :
9147  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
9148
9149	       public_syms="${public_syms} valloc"
9150fi
9151
9152
9153wrap_syms=
9154if test "x${JEMALLOC_PREFIX}" = "x" ; then
9155  ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
9156if test "x$ac_cv_func___libc_calloc" = xyes; then :
9157  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
9158
9159		 wrap_syms="${wrap_syms} __libc_calloc"
9160fi
9161
9162  ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
9163if test "x$ac_cv_func___libc_free" = xyes; then :
9164  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
9165
9166		 wrap_syms="${wrap_syms} __libc_free"
9167fi
9168
9169  ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
9170if test "x$ac_cv_func___libc_malloc" = xyes; then :
9171  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
9172
9173		 wrap_syms="${wrap_syms} __libc_malloc"
9174fi
9175
9176  ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
9177if test "x$ac_cv_func___libc_memalign" = xyes; then :
9178  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
9179
9180		 wrap_syms="${wrap_syms} __libc_memalign"
9181fi
9182
9183  ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
9184if test "x$ac_cv_func___libc_realloc" = xyes; then :
9185  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
9186
9187		 wrap_syms="${wrap_syms} __libc_realloc"
9188fi
9189
9190  ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
9191if test "x$ac_cv_func___libc_valloc" = xyes; then :
9192  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
9193
9194		 wrap_syms="${wrap_syms} __libc_valloc"
9195fi
9196
9197  ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
9198if test "x$ac_cv_func___posix_memalign" = xyes; then :
9199  $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
9200
9201		 wrap_syms="${wrap_syms} __posix_memalign"
9202fi
9203
9204fi
9205
9206case "${host}" in
9207  *-*-mingw* | *-*-cygwin*)
9208    wrap_syms="${wrap_syms} tls_callback"
9209    ;;
9210  *)
9211    ;;
9212esac
9213
9214
9215# Check whether --with-private_namespace was given.
9216if test "${with_private_namespace+set}" = set; then :
9217  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
9218else
9219  JEMALLOC_PRIVATE_NAMESPACE="je_"
9220
9221fi
9222
9223cat >>confdefs.h <<_ACEOF
9224#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
9225_ACEOF
9226
9227private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
9228
9229
9230
9231# Check whether --with-install_suffix was given.
9232if test "${with_install_suffix+set}" = set; then :
9233  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
9234else
9235  INSTALL_SUFFIX=
9236
9237fi
9238
9239install_suffix="$INSTALL_SUFFIX"
9240
9241
9242
9243# Check whether --with-malloc_conf was given.
9244if test "${with_malloc_conf+set}" = set; then :
9245  withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
9246else
9247  JEMALLOC_CONFIG_MALLOC_CONF=""
9248
9249fi
9250
9251config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
9252cat >>confdefs.h <<_ACEOF
9253#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
9254_ACEOF
9255
9256
9257je_="je_"
9258
9259
9260cfgoutputs_in="Makefile.in"
9261cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
9262cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
9263cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
9264cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
9265cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
9266cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
9267cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
9268cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
9269cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
9270cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
9271
9272cfgoutputs_out="Makefile"
9273cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
9274cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
9275cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
9276cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
9277cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
9278cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
9279cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
9280cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
9281cfgoutputs_out="${cfgoutputs_out} test/test.sh"
9282cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
9283
9284cfgoutputs_tup="Makefile"
9285cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
9286cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
9287cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
9288cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
9289cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
9290cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
9291cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
9292cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
9293cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
9294cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
9295
9296cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
9297cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
9298cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
9299cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
9300cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
9301cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
9302cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
9303cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
9304cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
9305cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
9306
9307cfghdrs_out="include/jemalloc/jemalloc_defs.h"
9308cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
9309cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
9310cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
9311cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
9312cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
9313cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
9314cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
9315cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
9316cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
9317cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
9318cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
9319cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
9320
9321cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
9322cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
9323cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
9324
9325
9326# Check whether --enable-debug was given.
9327if test "${enable_debug+set}" = set; then :
9328  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
9329  enable_debug="0"
9330else
9331  enable_debug="1"
9332fi
9333
9334else
9335  enable_debug="0"
9336
9337fi
9338
9339if test "x$enable_debug" = "x1" ; then
9340  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
9341
9342fi
9343if test "x$enable_debug" = "x1" ; then
9344  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
9345
9346fi
9347
9348
9349if test "x$enable_debug" = "x0" ; then
9350  if test "x$GCC" = "xyes" ; then
9351
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9353$as_echo_n "checking whether compiler supports -O3... " >&6; }
9354T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9355T_APPEND_V=-O3
9356  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9357  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9358else
9359  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9360fi
9361
9362
9363if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9364  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9365else
9366  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9367fi
9368
9369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h.  */
9371
9372
9373int
9374main ()
9375{
9376
9377    return 0;
9378
9379  ;
9380  return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_compile "$LINENO"; then :
9384  je_cv_cflags_added=-O3
9385              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9386$as_echo "yes" >&6; }
9387else
9388  je_cv_cflags_added=
9389              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390$as_echo "no" >&6; }
9391              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9392
9393fi
9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9396  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9397else
9398  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9399fi
9400
9401
9402
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9404$as_echo_n "checking whether compiler supports -O3... " >&6; }
9405T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9406T_APPEND_V=-O3
9407  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9408  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9409else
9410  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9411fi
9412
9413
9414if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9415  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9416else
9417  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9418fi
9419
9420ac_ext=cpp
9421ac_cpp='$CXXCPP $CPPFLAGS'
9422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9425
9426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h.  */
9428
9429
9430int
9431main ()
9432{
9433
9434    return 0;
9435
9436  ;
9437  return 0;
9438}
9439_ACEOF
9440if ac_fn_cxx_try_compile "$LINENO"; then :
9441  je_cv_cxxflags_added=-O3
9442              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9443$as_echo "yes" >&6; }
9444else
9445  je_cv_cxxflags_added=
9446              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
9448              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9449
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452ac_ext=c
9453ac_cpp='$CPP $CPPFLAGS'
9454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9456ac_compiler_gnu=$ac_cv_c_compiler_gnu
9457
9458if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9459  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9460else
9461  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9462fi
9463
9464
9465
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9467$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9468T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9469T_APPEND_V=-funroll-loops
9470  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9471  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9472else
9473  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9474fi
9475
9476
9477if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9478  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9479else
9480  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9481fi
9482
9483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485
9486
9487int
9488main ()
9489{
9490
9491    return 0;
9492
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"; then :
9498  je_cv_cflags_added=-funroll-loops
9499              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9500$as_echo "yes" >&6; }
9501else
9502  je_cv_cflags_added=
9503              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9506
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9510  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9511else
9512  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9513fi
9514
9515
9516  elif test "x$je_cv_msvc" = "xyes" ; then
9517
9518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9519$as_echo_n "checking whether compiler supports -O2... " >&6; }
9520T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9521T_APPEND_V=-O2
9522  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9523  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9524else
9525  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9526fi
9527
9528
9529if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9530  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9531else
9532  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9533fi
9534
9535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537
9538
9539int
9540main ()
9541{
9542
9543    return 0;
9544
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_compile "$LINENO"; then :
9550  je_cv_cflags_added=-O2
9551              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9552$as_echo "yes" >&6; }
9553else
9554  je_cv_cflags_added=
9555              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
9557              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9558
9559fi
9560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9561if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9562  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9563else
9564  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9565fi
9566
9567
9568
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9570$as_echo_n "checking whether compiler supports -O2... " >&6; }
9571T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9572T_APPEND_V=-O2
9573  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9574  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9575else
9576  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9577fi
9578
9579
9580if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9581  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9582else
9583  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9584fi
9585
9586ac_ext=cpp
9587ac_cpp='$CXXCPP $CPPFLAGS'
9588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9591
9592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594
9595
9596int
9597main ()
9598{
9599
9600    return 0;
9601
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606if ac_fn_cxx_try_compile "$LINENO"; then :
9607  je_cv_cxxflags_added=-O2
9608              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9609$as_echo "yes" >&6; }
9610else
9611  je_cv_cxxflags_added=
9612              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613$as_echo "no" >&6; }
9614              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9615
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618ac_ext=c
9619ac_cpp='$CPP $CPPFLAGS'
9620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623
9624if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9625  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9626else
9627  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9628fi
9629
9630
9631  else
9632
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9634$as_echo_n "checking whether compiler supports -O... " >&6; }
9635T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9636T_APPEND_V=-O
9637  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9638  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9639else
9640  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9641fi
9642
9643
9644if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9645  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9646else
9647  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9648fi
9649
9650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652
9653
9654int
9655main ()
9656{
9657
9658    return 0;
9659
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664if ac_fn_c_try_compile "$LINENO"; then :
9665  je_cv_cflags_added=-O
9666              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9667$as_echo "yes" >&6; }
9668else
9669  je_cv_cflags_added=
9670              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
9672              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9673
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9677  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9678else
9679  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9680fi
9681
9682
9683
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9685$as_echo_n "checking whether compiler supports -O... " >&6; }
9686T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9687T_APPEND_V=-O
9688  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9689  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9690else
9691  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9692fi
9693
9694
9695if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9696  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9697else
9698  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9699fi
9700
9701ac_ext=cpp
9702ac_cpp='$CXXCPP $CPPFLAGS'
9703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9706
9707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709
9710
9711int
9712main ()
9713{
9714
9715    return 0;
9716
9717  ;
9718  return 0;
9719}
9720_ACEOF
9721if ac_fn_cxx_try_compile "$LINENO"; then :
9722  je_cv_cxxflags_added=-O
9723              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9724$as_echo "yes" >&6; }
9725else
9726  je_cv_cxxflags_added=
9727              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728$as_echo "no" >&6; }
9729              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9730
9731fi
9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733ac_ext=c
9734ac_cpp='$CPP $CPPFLAGS'
9735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9737ac_compiler_gnu=$ac_cv_c_compiler_gnu
9738
9739if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9740  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9741else
9742  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9743fi
9744
9745
9746  fi
9747fi
9748
9749# Check whether --enable-stats was given.
9750if test "${enable_stats+set}" = set; then :
9751  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9752  enable_stats="0"
9753else
9754  enable_stats="1"
9755fi
9756
9757else
9758  enable_stats="1"
9759
9760fi
9761
9762if test "x$enable_stats" = "x1" ; then
9763  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
9764
9765fi
9766
9767
9768# Check whether --enable-experimental_smallocx was given.
9769if test "${enable_experimental_smallocx+set}" = set; then :
9770  enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
9771enable_experimental_smallocx="0"
9772else
9773enable_experimental_smallocx="1"
9774fi
9775
9776else
9777  enable_experimental_smallocx="0"
9778
9779fi
9780
9781if test "x$enable_experimental_smallocx" = "x1" ; then
9782  $as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API 1" >>confdefs.h
9783
9784fi
9785
9786
9787# Check whether --enable-prof was given.
9788if test "${enable_prof+set}" = set; then :
9789  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9790  enable_prof="0"
9791else
9792  enable_prof="1"
9793fi
9794
9795else
9796  enable_prof="0"
9797
9798fi
9799
9800if test "x$enable_prof" = "x1" ; then
9801  backtrace_method=""
9802else
9803  backtrace_method="N/A"
9804fi
9805
9806# Check whether --enable-prof-libunwind was given.
9807if test "${enable_prof_libunwind+set}" = set; then :
9808  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9809  enable_prof_libunwind="0"
9810else
9811  enable_prof_libunwind="1"
9812fi
9813
9814else
9815  enable_prof_libunwind="0"
9816
9817fi
9818
9819
9820# Check whether --with-static_libunwind was given.
9821if test "${with_static_libunwind+set}" = set; then :
9822  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9823  LUNWIND="-lunwind"
9824else
9825  if test ! -f "$with_static_libunwind" ; then
9826    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9827  fi
9828  LUNWIND="$with_static_libunwind"
9829fi
9830else
9831  LUNWIND="-lunwind"
9832
9833fi
9834
9835if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9836  for ac_header in libunwind.h
9837do :
9838  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9839if test "x$ac_cv_header_libunwind_h" = xyes; then :
9840  cat >>confdefs.h <<_ACEOF
9841#define HAVE_LIBUNWIND_H 1
9842_ACEOF
9843
9844else
9845  enable_prof_libunwind="0"
9846fi
9847
9848done
9849
9850  if test "x$LUNWIND" = "x-lunwind" ; then
9851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9852$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9853if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  ac_check_lib_save_LIBS=$LIBS
9857LIBS="-lunwind  $LIBS"
9858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860
9861/* Override any GCC internal prototype to avoid an error.
9862   Use char because int might match the return type of a GCC
9863   builtin and then its argument prototype would still apply.  */
9864#ifdef __cplusplus
9865extern "C"
9866#endif
9867char unw_backtrace ();
9868int
9869main ()
9870{
9871return unw_backtrace ();
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877  ac_cv_lib_unwind_unw_backtrace=yes
9878else
9879  ac_cv_lib_unwind_unw_backtrace=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883LIBS=$ac_check_lib_save_LIBS
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9886$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9887if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9888  T_APPEND_V=$LUNWIND
9889  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9890  LIBS="${LIBS}${T_APPEND_V}"
9891else
9892  LIBS="${LIBS} ${T_APPEND_V}"
9893fi
9894
9895
9896else
9897  enable_prof_libunwind="0"
9898fi
9899
9900  else
9901    T_APPEND_V=$LUNWIND
9902  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9903  LIBS="${LIBS}${T_APPEND_V}"
9904else
9905  LIBS="${LIBS} ${T_APPEND_V}"
9906fi
9907
9908
9909  fi
9910  if test "x${enable_prof_libunwind}" = "x1" ; then
9911    backtrace_method="libunwind"
9912    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
9913
9914  fi
9915fi
9916
9917# Check whether --enable-prof-libgcc was given.
9918if test "${enable_prof_libgcc+set}" = set; then :
9919  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9920  enable_prof_libgcc="0"
9921else
9922  enable_prof_libgcc="1"
9923fi
9924
9925else
9926  enable_prof_libgcc="1"
9927
9928fi
9929
9930if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9931     -a "x$GCC" = "xyes" ; then
9932  for ac_header in unwind.h
9933do :
9934  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9935if test "x$ac_cv_header_unwind_h" = xyes; then :
9936  cat >>confdefs.h <<_ACEOF
9937#define HAVE_UNWIND_H 1
9938_ACEOF
9939
9940else
9941  enable_prof_libgcc="0"
9942fi
9943
9944done
9945
9946  if test "x${enable_prof_libgcc}" = "x1" ; then
9947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9948$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9949if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9950  $as_echo_n "(cached) " >&6
9951else
9952  ac_check_lib_save_LIBS=$LIBS
9953LIBS="-lgcc  $LIBS"
9954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956
9957/* Override any GCC internal prototype to avoid an error.
9958   Use char because int might match the return type of a GCC
9959   builtin and then its argument prototype would still apply.  */
9960#ifdef __cplusplus
9961extern "C"
9962#endif
9963char _Unwind_Backtrace ();
9964int
9965main ()
9966{
9967return _Unwind_Backtrace ();
9968  ;
9969  return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973  ac_cv_lib_gcc__Unwind_Backtrace=yes
9974else
9975  ac_cv_lib_gcc__Unwind_Backtrace=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978    conftest$ac_exeext conftest.$ac_ext
9979LIBS=$ac_check_lib_save_LIBS
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9982$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9983if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9984  T_APPEND_V=-lgcc
9985  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9986  LIBS="${LIBS}${T_APPEND_V}"
9987else
9988  LIBS="${LIBS} ${T_APPEND_V}"
9989fi
9990
9991
9992else
9993  enable_prof_libgcc="0"
9994fi
9995
9996  fi
9997  if test "x${enable_prof_libgcc}" = "x1" ; then
9998    backtrace_method="libgcc"
9999    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
10000
10001  fi
10002else
10003  enable_prof_libgcc="0"
10004fi
10005
10006# Check whether --enable-prof-gcc was given.
10007if test "${enable_prof_gcc+set}" = set; then :
10008  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
10009  enable_prof_gcc="0"
10010else
10011  enable_prof_gcc="1"
10012fi
10013
10014else
10015  enable_prof_gcc="1"
10016
10017fi
10018
10019if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
10020     -a "x$GCC" = "xyes" ; then
10021
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
10023$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
10024T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10025T_APPEND_V=-fno-omit-frame-pointer
10026  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10027  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10028else
10029  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10030fi
10031
10032
10033if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10034  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10035else
10036  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10037fi
10038
10039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h.  */
10041
10042
10043int
10044main ()
10045{
10046
10047    return 0;
10048
10049  ;
10050  return 0;
10051}
10052_ACEOF
10053if ac_fn_c_try_compile "$LINENO"; then :
10054  je_cv_cflags_added=-fno-omit-frame-pointer
10055              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10056$as_echo "yes" >&6; }
10057else
10058  je_cv_cflags_added=
10059              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10062
10063fi
10064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10066  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10067else
10068  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10069fi
10070
10071
10072  backtrace_method="gcc intrinsics"
10073  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
10074
10075else
10076  enable_prof_gcc="0"
10077fi
10078
10079if test "x$backtrace_method" = "x" ; then
10080  backtrace_method="none (disabling profiling)"
10081  enable_prof="0"
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
10084$as_echo_n "checking configured backtracing method... " >&6; }
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
10086$as_echo "$backtrace_method" >&6; }
10087if test "x$enable_prof" = "x1" ; then
10088    T_APPEND_V=$LM
10089  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10090  LIBS="${LIBS}${T_APPEND_V}"
10091else
10092  LIBS="${LIBS} ${T_APPEND_V}"
10093fi
10094
10095
10096
10097  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
10098
10099fi
10100
10101
10102if test "x${maps_coalesce}" = "x1" ; then
10103  $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
10104
10105fi
10106
10107if test "x$default_retain" = "x1" ; then
10108  $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
10109
10110fi
10111
10112have_dss="1"
10113ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
10114if test "x$ac_cv_func_sbrk" = xyes; then :
10115  have_sbrk="1"
10116else
10117  have_sbrk="0"
10118fi
10119
10120if test "x$have_sbrk" = "x1" ; then
10121  if test "x$sbrk_deprecated" = "x1" ; then
10122    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
10123$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
10124    have_dss="0"
10125  fi
10126else
10127  have_dss="0"
10128fi
10129
10130if test "x$have_dss" = "x1" ; then
10131  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
10132
10133fi
10134
10135# Check whether --enable-fill was given.
10136if test "${enable_fill+set}" = set; then :
10137  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
10138  enable_fill="0"
10139else
10140  enable_fill="1"
10141fi
10142
10143else
10144  enable_fill="1"
10145
10146fi
10147
10148if test "x$enable_fill" = "x1" ; then
10149  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
10150
10151fi
10152
10153
10154# Check whether --enable-utrace was given.
10155if test "${enable_utrace+set}" = set; then :
10156  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
10157  enable_utrace="0"
10158else
10159  enable_utrace="1"
10160fi
10161
10162else
10163  enable_utrace="0"
10164
10165fi
10166
10167
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
10169$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
10170if ${je_cv_utrace+:} false; then :
10171  $as_echo_n "(cached) " >&6
10172else
10173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175
10176#include <sys/types.h>
10177#include <sys/param.h>
10178#include <sys/time.h>
10179#include <sys/uio.h>
10180#include <sys/ktrace.h>
10181
10182int
10183main ()
10184{
10185
10186	utrace((void *)0, 0);
10187
10188  ;
10189  return 0;
10190}
10191_ACEOF
10192if ac_fn_c_try_link "$LINENO"; then :
10193  je_cv_utrace=yes
10194else
10195  je_cv_utrace=no
10196fi
10197rm -f core conftest.err conftest.$ac_objext \
10198    conftest$ac_exeext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
10201$as_echo "$je_cv_utrace" >&6; }
10202
10203if test "x${je_cv_utrace}" = "xno" ; then
10204  enable_utrace="0"
10205fi
10206if test "x$enable_utrace" = "x1" ; then
10207  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
10208
10209fi
10210
10211
10212# Check whether --enable-xmalloc was given.
10213if test "${enable_xmalloc+set}" = set; then :
10214  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
10215  enable_xmalloc="0"
10216else
10217  enable_xmalloc="1"
10218fi
10219
10220else
10221  enable_xmalloc="0"
10222
10223fi
10224
10225if test "x$enable_xmalloc" = "x1" ; then
10226  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
10227
10228fi
10229
10230
10231# Check whether --enable-cache-oblivious was given.
10232if test "${enable_cache_oblivious+set}" = set; then :
10233  enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
10234  enable_cache_oblivious="0"
10235else
10236  enable_cache_oblivious="1"
10237fi
10238
10239else
10240  enable_cache_oblivious="1"
10241
10242fi
10243
10244if test "x$enable_cache_oblivious" = "x1" ; then
10245  $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
10246
10247fi
10248
10249
10250# Check whether --enable-log was given.
10251if test "${enable_log+set}" = set; then :
10252  enableval=$enable_log; if test "x$enable_log" = "xno" ; then
10253  enable_log="0"
10254else
10255  enable_log="1"
10256fi
10257
10258else
10259  enable_log="0"
10260
10261fi
10262
10263if test "x$enable_log" = "x1" ; then
10264  $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
10265
10266fi
10267
10268
10269# Check whether --enable-readlinkat was given.
10270if test "${enable_readlinkat+set}" = set; then :
10271  enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
10272  enable_readlinkat="0"
10273else
10274  enable_readlinkat="1"
10275fi
10276
10277else
10278  enable_readlinkat="0"
10279
10280fi
10281
10282if test "x$enable_readlinkat" = "x1" ; then
10283  $as_echo "#define JEMALLOC_READLINKAT  " >>confdefs.h
10284
10285fi
10286
10287
10288# Check whether --enable-opt-safety-checks was given.
10289if test "${enable_opt_safety_checks+set}" = set; then :
10290  enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then
10291  enable_opt_safety_checks="0"
10292else
10293  enable_opt_safety_checks="1"
10294fi
10295
10296else
10297  enable_opt_safety_checks="0"
10298
10299fi
10300
10301if test "x$enable_opt_safety_checks" = "x1" ; then
10302  $as_echo "#define JEMALLOC_OPT_SAFETY_CHECKS  " >>confdefs.h
10303
10304fi
10305
10306
10307
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
10309$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
10310if ${je_cv_gcc_builtin_unreachable+:} false; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314/* end confdefs.h.  */
10315
10316void foo (void) {
10317  __builtin_unreachable();
10318}
10319
10320int
10321main ()
10322{
10323
10324	{
10325		foo();
10326	}
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332if ac_fn_c_try_link "$LINENO"; then :
10333  je_cv_gcc_builtin_unreachable=yes
10334else
10335  je_cv_gcc_builtin_unreachable=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext \
10338    conftest$ac_exeext conftest.$ac_ext
10339fi
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
10341$as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
10342
10343if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
10344  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
10345
10346else
10347  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
10348
10349fi
10350
10351
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
10353$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
10354if ${je_cv_gcc_builtin_ffsl+:} false; then :
10355  $as_echo_n "(cached) " >&6
10356else
10357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359
10360#include <stdio.h>
10361#include <strings.h>
10362#include <string.h>
10363
10364int
10365main ()
10366{
10367
10368	{
10369		int rv = __builtin_ffsl(0x08);
10370		printf("%d\n", rv);
10371	}
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  je_cv_gcc_builtin_ffsl=yes
10379else
10380  je_cv_gcc_builtin_ffsl=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
10386$as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
10387
10388if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
10389  $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
10390
10391  $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
10392
10393  $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
10394
10395else
10396
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
10398$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
10399if ${je_cv_function_ffsl+:} false; then :
10400  $as_echo_n "(cached) " >&6
10401else
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404
10405  #include <stdio.h>
10406  #include <strings.h>
10407  #include <string.h>
10408
10409int
10410main ()
10411{
10412
10413	{
10414		int rv = ffsl(0x08);
10415		printf("%d\n", rv);
10416	}
10417
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  je_cv_function_ffsl=yes
10424else
10425  je_cv_function_ffsl=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428    conftest$ac_exeext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
10431$as_echo "$je_cv_function_ffsl" >&6; }
10432
10433  if test "x${je_cv_function_ffsl}" = "xyes" ; then
10434    $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
10435
10436    $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
10437
10438    $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
10439
10440  else
10441    as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
10442  fi
10443fi
10444
10445
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
10447$as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; }
10448if ${je_cv_gcc_builtin_popcountl+:} false; then :
10449  $as_echo_n "(cached) " >&6
10450else
10451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h.  */
10453
10454#include <stdio.h>
10455#include <strings.h>
10456#include <string.h>
10457
10458int
10459main ()
10460{
10461
10462	{
10463		int rv = __builtin_popcountl(0x08);
10464		printf("%d\n", rv);
10465	}
10466
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472  je_cv_gcc_builtin_popcountl=yes
10473else
10474  je_cv_gcc_builtin_popcountl=no
10475fi
10476rm -f core conftest.err conftest.$ac_objext \
10477    conftest$ac_exeext conftest.$ac_ext
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
10480$as_echo "$je_cv_gcc_builtin_popcountl" >&6; }
10481
10482if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
10483  $as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
10484
10485  $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
10486
10487fi
10488
10489
10490# Check whether --with-lg_quantum was given.
10491if test "${with_lg_quantum+set}" = set; then :
10492  withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10493else
10494  LG_QUANTA="3 4"
10495fi
10496
10497if test "x$with_lg_quantum" != "x" ; then
10498  cat >>confdefs.h <<_ACEOF
10499#define LG_QUANTUM $with_lg_quantum
10500_ACEOF
10501
10502fi
10503
10504
10505# Check whether --with-lg_page was given.
10506if test "${with_lg_page+set}" = set; then :
10507  withval=$with_lg_page; LG_PAGE="$with_lg_page"
10508else
10509  LG_PAGE="detect"
10510fi
10511
10512if test "x$LG_PAGE" = "xdetect"; then
10513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10514$as_echo_n "checking LG_PAGE... " >&6; }
10515if ${je_cv_lg_page+:} false; then :
10516  $as_echo_n "(cached) " >&6
10517else
10518  if test "$cross_compiling" = yes; then :
10519  je_cv_lg_page=12
10520else
10521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h.  */
10523
10524#include <strings.h>
10525#ifdef _WIN32
10526#include <windows.h>
10527#else
10528#include <unistd.h>
10529#endif
10530#include <stdio.h>
10531
10532int
10533main ()
10534{
10535
10536    int result;
10537    FILE *f;
10538
10539#ifdef _WIN32
10540    SYSTEM_INFO si;
10541    GetSystemInfo(&si);
10542    result = si.dwPageSize;
10543#else
10544    result = sysconf(_SC_PAGESIZE);
10545#endif
10546    if (result == -1) {
10547	return 1;
10548    }
10549    result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10550
10551    f = fopen("conftest.out", "w");
10552    if (f == NULL) {
10553	return 1;
10554    }
10555    fprintf(f, "%d", result);
10556    fclose(f);
10557
10558    return 0;
10559
10560  ;
10561  return 0;
10562}
10563_ACEOF
10564if ac_fn_c_try_run "$LINENO"; then :
10565  je_cv_lg_page=`cat conftest.out`
10566else
10567  je_cv_lg_page=undefined
10568fi
10569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10570  conftest.$ac_objext conftest.beam conftest.$ac_ext
10571fi
10572
10573fi
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10575$as_echo "$je_cv_lg_page" >&6; }
10576fi
10577if test "x${je_cv_lg_page}" != "x" ; then
10578  LG_PAGE="${je_cv_lg_page}"
10579fi
10580if test "x${LG_PAGE}" != "xundefined" ; then
10581   cat >>confdefs.h <<_ACEOF
10582#define LG_PAGE $LG_PAGE
10583_ACEOF
10584
10585else
10586   as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10587fi
10588
10589
10590# Check whether --with-lg_hugepage was given.
10591if test "${with_lg_hugepage+set}" = set; then :
10592  withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10593else
10594  je_cv_lg_hugepage=""
10595fi
10596
10597if test "x${je_cv_lg_hugepage}" = "x" ; then
10598          if test -e "/proc/meminfo" ; then
10599    hpsk=`cat /proc/meminfo 2>/dev/null | \
10600          grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10601          awk '{print $2}'`
10602    if test "x${hpsk}" != "x" ; then
10603      je_cv_lg_hugepage=10
10604      while test "${hpsk}" -gt 1 ; do
10605        hpsk="$((hpsk / 2))"
10606        je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10607      done
10608    fi
10609  fi
10610
10611    if test "x${je_cv_lg_hugepage}" = "x" ; then
10612    je_cv_lg_hugepage=21
10613  fi
10614fi
10615if test "x${LG_PAGE}" != "xundefined" -a \
10616        "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10617  as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10618fi
10619cat >>confdefs.h <<_ACEOF
10620#define LG_HUGEPAGE ${je_cv_lg_hugepage}
10621_ACEOF
10622
10623
10624# Check whether --enable-libdl was given.
10625if test "${enable_libdl+set}" = set; then :
10626  enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
10627  enable_libdl="0"
10628else
10629  enable_libdl="1"
10630fi
10631
10632else
10633  enable_libdl="1"
10634
10635fi
10636
10637
10638
10639
10640if test "x$abi" != "xpecoff" ; then
10641  $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
10642
10643  for ac_header in pthread.h
10644do :
10645  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10646if test "x$ac_cv_header_pthread_h" = xyes; then :
10647  cat >>confdefs.h <<_ACEOF
10648#define HAVE_PTHREAD_H 1
10649_ACEOF
10650
10651else
10652  as_fn_error $? "pthread.h is missing" "$LINENO" 5
10653fi
10654
10655done
10656
10657      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10658$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10659if ${ac_cv_lib_pthread_pthread_create+:} false; then :
10660  $as_echo_n "(cached) " >&6
10661else
10662  ac_check_lib_save_LIBS=$LIBS
10663LIBS="-lpthread  $LIBS"
10664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h.  */
10666
10667/* Override any GCC internal prototype to avoid an error.
10668   Use char because int might match the return type of a GCC
10669   builtin and then its argument prototype would still apply.  */
10670#ifdef __cplusplus
10671extern "C"
10672#endif
10673char pthread_create ();
10674int
10675main ()
10676{
10677return pthread_create ();
10678  ;
10679  return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_link "$LINENO"; then :
10683  ac_cv_lib_pthread_pthread_create=yes
10684else
10685  ac_cv_lib_pthread_pthread_create=no
10686fi
10687rm -f core conftest.err conftest.$ac_objext \
10688    conftest$ac_exeext conftest.$ac_ext
10689LIBS=$ac_check_lib_save_LIBS
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10692$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10693if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10694  T_APPEND_V=-pthread
10695  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10696  LIBS="${LIBS}${T_APPEND_V}"
10697else
10698  LIBS="${LIBS} ${T_APPEND_V}"
10699fi
10700
10701
10702else
10703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10704$as_echo_n "checking for library containing pthread_create... " >&6; }
10705if ${ac_cv_search_pthread_create+:} false; then :
10706  $as_echo_n "(cached) " >&6
10707else
10708  ac_func_search_save_LIBS=$LIBS
10709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710/* end confdefs.h.  */
10711
10712/* Override any GCC internal prototype to avoid an error.
10713   Use char because int might match the return type of a GCC
10714   builtin and then its argument prototype would still apply.  */
10715#ifdef __cplusplus
10716extern "C"
10717#endif
10718char pthread_create ();
10719int
10720main ()
10721{
10722return pthread_create ();
10723  ;
10724  return 0;
10725}
10726_ACEOF
10727for ac_lib in '' ; do
10728  if test -z "$ac_lib"; then
10729    ac_res="none required"
10730  else
10731    ac_res=-l$ac_lib
10732    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10733  fi
10734  if ac_fn_c_try_link "$LINENO"; then :
10735  ac_cv_search_pthread_create=$ac_res
10736fi
10737rm -f core conftest.err conftest.$ac_objext \
10738    conftest$ac_exeext
10739  if ${ac_cv_search_pthread_create+:} false; then :
10740  break
10741fi
10742done
10743if ${ac_cv_search_pthread_create+:} false; then :
10744
10745else
10746  ac_cv_search_pthread_create=no
10747fi
10748rm conftest.$ac_ext
10749LIBS=$ac_func_search_save_LIBS
10750fi
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10752$as_echo "$ac_cv_search_pthread_create" >&6; }
10753ac_res=$ac_cv_search_pthread_create
10754if test "$ac_res" != no; then :
10755  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10756
10757else
10758  as_fn_error $? "libpthread is missing" "$LINENO" 5
10759fi
10760
10761fi
10762
10763  wrap_syms="${wrap_syms} pthread_create"
10764  have_pthread="1"
10765
10766  if test "x$enable_libdl" = "x1" ; then
10767    have_dlsym="1"
10768    for ac_header in dlfcn.h
10769do :
10770  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10771if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10772  cat >>confdefs.h <<_ACEOF
10773#define HAVE_DLFCN_H 1
10774_ACEOF
10775 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10776if test "x$ac_cv_func_dlsym" = xyes; then :
10777
10778else
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10780$as_echo_n "checking for dlsym in -ldl... " >&6; }
10781if ${ac_cv_lib_dl_dlsym+:} false; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  ac_check_lib_save_LIBS=$LIBS
10785LIBS="-ldl  $LIBS"
10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h.  */
10788
10789/* Override any GCC internal prototype to avoid an error.
10790   Use char because int might match the return type of a GCC
10791   builtin and then its argument prototype would still apply.  */
10792#ifdef __cplusplus
10793extern "C"
10794#endif
10795char dlsym ();
10796int
10797main ()
10798{
10799return dlsym ();
10800  ;
10801  return 0;
10802}
10803_ACEOF
10804if ac_fn_c_try_link "$LINENO"; then :
10805  ac_cv_lib_dl_dlsym=yes
10806else
10807  ac_cv_lib_dl_dlsym=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext \
10810    conftest$ac_exeext conftest.$ac_ext
10811LIBS=$ac_check_lib_save_LIBS
10812fi
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10814$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10815if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10816  LIBS="$LIBS -ldl"
10817else
10818  have_dlsym="0"
10819fi
10820
10821fi
10822
10823else
10824  have_dlsym="0"
10825fi
10826
10827done
10828
10829    if test "x$have_dlsym" = "x1" ; then
10830      $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
10831
10832    fi
10833  else
10834    have_dlsym="0"
10835  fi
10836
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10839$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10840if ${je_cv_pthread_atfork+:} false; then :
10841  $as_echo_n "(cached) " >&6
10842else
10843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845
10846#include <pthread.h>
10847
10848int
10849main ()
10850{
10851
10852  pthread_atfork((void *)0, (void *)0, (void *)0);
10853
10854  ;
10855  return 0;
10856}
10857_ACEOF
10858if ac_fn_c_try_link "$LINENO"; then :
10859  je_cv_pthread_atfork=yes
10860else
10861  je_cv_pthread_atfork=no
10862fi
10863rm -f core conftest.err conftest.$ac_objext \
10864    conftest$ac_exeext conftest.$ac_ext
10865fi
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10867$as_echo "$je_cv_pthread_atfork" >&6; }
10868
10869  if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10870    $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
10871
10872  fi
10873
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10875$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10876if ${je_cv_pthread_setname_np+:} false; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881
10882#include <pthread.h>
10883
10884int
10885main ()
10886{
10887
10888  pthread_setname_np(pthread_self(), "setname_test");
10889
10890  ;
10891  return 0;
10892}
10893_ACEOF
10894if ac_fn_c_try_link "$LINENO"; then :
10895  je_cv_pthread_setname_np=yes
10896else
10897  je_cv_pthread_setname_np=no
10898fi
10899rm -f core conftest.err conftest.$ac_objext \
10900    conftest$ac_exeext conftest.$ac_ext
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10903$as_echo "$je_cv_pthread_setname_np" >&6; }
10904
10905  if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10906    $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
10907
10908  fi
10909fi
10910
10911T_APPEND_V=-D_REENTRANT
10912  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10913  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10914else
10915  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10916fi
10917
10918
10919
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10921$as_echo_n "checking for library containing clock_gettime... " >&6; }
10922if ${ac_cv_search_clock_gettime+:} false; then :
10923  $as_echo_n "(cached) " >&6
10924else
10925  ac_func_search_save_LIBS=$LIBS
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930   Use char because int might match the return type of a GCC
10931   builtin and then its argument prototype would still apply.  */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char clock_gettime ();
10936int
10937main ()
10938{
10939return clock_gettime ();
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944for ac_lib in '' rt; do
10945  if test -z "$ac_lib"; then
10946    ac_res="none required"
10947  else
10948    ac_res=-l$ac_lib
10949    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10950  fi
10951  if ac_fn_c_try_link "$LINENO"; then :
10952  ac_cv_search_clock_gettime=$ac_res
10953fi
10954rm -f core conftest.err conftest.$ac_objext \
10955    conftest$ac_exeext
10956  if ${ac_cv_search_clock_gettime+:} false; then :
10957  break
10958fi
10959done
10960if ${ac_cv_search_clock_gettime+:} false; then :
10961
10962else
10963  ac_cv_search_clock_gettime=no
10964fi
10965rm conftest.$ac_ext
10966LIBS=$ac_func_search_save_LIBS
10967fi
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10969$as_echo "$ac_cv_search_clock_gettime" >&6; }
10970ac_res=$ac_cv_search_clock_gettime
10971if test "$ac_res" != no; then :
10972  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10973
10974fi
10975
10976
10977if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10978  if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10979    SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10980
10981
10982    unset ac_cv_search_clock_gettime
10983
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10985$as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10986T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10987T_APPEND_V=-dynamic
10988  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10989  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10990else
10991  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10992fi
10993
10994
10995if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10996  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10997else
10998  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10999fi
11000
11001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002/* end confdefs.h.  */
11003
11004
11005int
11006main ()
11007{
11008
11009    return 0;
11010
11011  ;
11012  return 0;
11013}
11014_ACEOF
11015if ac_fn_c_try_compile "$LINENO"; then :
11016  je_cv_cflags_added=-dynamic
11017              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
11019else
11020  je_cv_cflags_added=
11021              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11024
11025fi
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11028  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11029else
11030  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11031fi
11032
11033
11034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11035$as_echo_n "checking for library containing clock_gettime... " >&6; }
11036if ${ac_cv_search_clock_gettime+:} false; then :
11037  $as_echo_n "(cached) " >&6
11038else
11039  ac_func_search_save_LIBS=$LIBS
11040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041/* end confdefs.h.  */
11042
11043/* Override any GCC internal prototype to avoid an error.
11044   Use char because int might match the return type of a GCC
11045   builtin and then its argument prototype would still apply.  */
11046#ifdef __cplusplus
11047extern "C"
11048#endif
11049char clock_gettime ();
11050int
11051main ()
11052{
11053return clock_gettime ();
11054  ;
11055  return 0;
11056}
11057_ACEOF
11058for ac_lib in '' rt; do
11059  if test -z "$ac_lib"; then
11060    ac_res="none required"
11061  else
11062    ac_res=-l$ac_lib
11063    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11064  fi
11065  if ac_fn_c_try_link "$LINENO"; then :
11066  ac_cv_search_clock_gettime=$ac_res
11067fi
11068rm -f core conftest.err conftest.$ac_objext \
11069    conftest$ac_exeext
11070  if ${ac_cv_search_clock_gettime+:} false; then :
11071  break
11072fi
11073done
11074if ${ac_cv_search_clock_gettime+:} false; then :
11075
11076else
11077  ac_cv_search_clock_gettime=no
11078fi
11079rm conftest.$ac_ext
11080LIBS=$ac_func_search_save_LIBS
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11083$as_echo "$ac_cv_search_clock_gettime" >&6; }
11084ac_res=$ac_cv_search_clock_gettime
11085if test "$ac_res" != no; then :
11086  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11087
11088fi
11089
11090
11091    CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
11092if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11093  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11094else
11095  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11096fi
11097
11098
11099  fi
11100fi
11101
11102
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
11104$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
11105if ${je_cv_clock_monotonic_coarse+:} false; then :
11106  $as_echo_n "(cached) " >&6
11107else
11108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110
11111#include <time.h>
11112
11113int
11114main ()
11115{
11116
11117	struct timespec ts;
11118
11119	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
11120
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125if ac_fn_c_try_link "$LINENO"; then :
11126  je_cv_clock_monotonic_coarse=yes
11127else
11128  je_cv_clock_monotonic_coarse=no
11129fi
11130rm -f core conftest.err conftest.$ac_objext \
11131    conftest$ac_exeext conftest.$ac_ext
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
11134$as_echo "$je_cv_clock_monotonic_coarse" >&6; }
11135
11136if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
11137  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
11138
11139fi
11140
11141
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
11143$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
11144if ${je_cv_clock_monotonic+:} false; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149
11150#include <unistd.h>
11151#include <time.h>
11152
11153int
11154main ()
11155{
11156
11157	struct timespec ts;
11158
11159	clock_gettime(CLOCK_MONOTONIC, &ts);
11160#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
11161#  error _POSIX_MONOTONIC_CLOCK missing/invalid
11162#endif
11163
11164  ;
11165  return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169  je_cv_clock_monotonic=yes
11170else
11171  je_cv_clock_monotonic=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174    conftest$ac_exeext conftest.$ac_ext
11175fi
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
11177$as_echo "$je_cv_clock_monotonic" >&6; }
11178
11179if test "x${je_cv_clock_monotonic}" = "xyes" ; then
11180  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
11181
11182fi
11183
11184
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
11186$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
11187if ${je_cv_mach_absolute_time+:} false; then :
11188  $as_echo_n "(cached) " >&6
11189else
11190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h.  */
11192
11193#include <mach/mach_time.h>
11194
11195int
11196main ()
11197{
11198
11199	mach_absolute_time();
11200
11201  ;
11202  return 0;
11203}
11204_ACEOF
11205if ac_fn_c_try_link "$LINENO"; then :
11206  je_cv_mach_absolute_time=yes
11207else
11208  je_cv_mach_absolute_time=no
11209fi
11210rm -f core conftest.err conftest.$ac_objext \
11211    conftest$ac_exeext conftest.$ac_ext
11212fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
11214$as_echo "$je_cv_mach_absolute_time" >&6; }
11215
11216if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
11217  $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
11218
11219fi
11220
11221# Check whether --enable-syscall was given.
11222if test "${enable_syscall+set}" = set; then :
11223  enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
11224  enable_syscall="0"
11225else
11226  enable_syscall="1"
11227fi
11228
11229else
11230  enable_syscall="1"
11231
11232fi
11233
11234if test "x$enable_syscall" = "x1" ; then
11235      SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11236
11237
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11239$as_echo_n "checking whether compiler supports -Werror... " >&6; }
11240T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11241T_APPEND_V=-Werror
11242  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11243  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11244else
11245  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11246fi
11247
11248
11249if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11250  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11251else
11252  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11253fi
11254
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257
11258
11259int
11260main ()
11261{
11262
11263    return 0;
11264
11265  ;
11266  return 0;
11267}
11268_ACEOF
11269if ac_fn_c_try_compile "$LINENO"; then :
11270  je_cv_cflags_added=-Werror
11271              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11272$as_echo "yes" >&6; }
11273else
11274  je_cv_cflags_added=
11275              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11278
11279fi
11280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11282  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11283else
11284  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11285fi
11286
11287
11288
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
11290$as_echo_n "checking whether syscall(2) is compilable... " >&6; }
11291if ${je_cv_syscall+:} false; then :
11292  $as_echo_n "(cached) " >&6
11293else
11294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295/* end confdefs.h.  */
11296
11297#include <sys/syscall.h>
11298#include <unistd.h>
11299
11300int
11301main ()
11302{
11303
11304	syscall(SYS_write, 2, "hello", 5);
11305
11306  ;
11307  return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_link "$LINENO"; then :
11311  je_cv_syscall=yes
11312else
11313  je_cv_syscall=no
11314fi
11315rm -f core conftest.err conftest.$ac_objext \
11316    conftest$ac_exeext conftest.$ac_ext
11317fi
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
11319$as_echo "$je_cv_syscall" >&6; }
11320
11321  CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
11322if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11323  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11324else
11325  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11326fi
11327
11328
11329  if test "x$je_cv_syscall" = "xyes" ; then
11330    $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
11331
11332  fi
11333fi
11334
11335ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
11336if test "x$ac_cv_func_secure_getenv" = xyes; then :
11337  have_secure_getenv="1"
11338else
11339  have_secure_getenv="0"
11340
11341fi
11342
11343if test "x$have_secure_getenv" = "x1" ; then
11344  $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
11345
11346fi
11347
11348ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
11349if test "x$ac_cv_func_sched_getcpu" = xyes; then :
11350  have_sched_getcpu="1"
11351else
11352  have_sched_getcpu="0"
11353
11354fi
11355
11356if test "x$have_sched_getcpu" = "x1" ; then
11357  $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
11358
11359fi
11360
11361ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
11362if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
11363  have_sched_setaffinity="1"
11364else
11365  have_sched_setaffinity="0"
11366
11367fi
11368
11369if test "x$have_sched_setaffinity" = "x1" ; then
11370  $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
11371
11372fi
11373
11374ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
11375if test "x$ac_cv_func_issetugid" = xyes; then :
11376  have_issetugid="1"
11377else
11378  have_issetugid="0"
11379
11380fi
11381
11382if test "x$have_issetugid" = "x1" ; then
11383  $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
11384
11385fi
11386
11387ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
11388if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
11389  have__malloc_thread_cleanup="1"
11390else
11391  have__malloc_thread_cleanup="0"
11392
11393fi
11394
11395if test "x$have__malloc_thread_cleanup" = "x1" ; then
11396  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
11397
11398  wrap_syms="${wrap_syms} _malloc_thread_cleanup"
11399  force_tls="1"
11400fi
11401
11402ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
11403if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
11404  have__pthread_mutex_init_calloc_cb="1"
11405else
11406  have__pthread_mutex_init_calloc_cb="0"
11407
11408fi
11409
11410if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
11411  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
11412
11413  wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
11414fi
11415
11416# Check whether --enable-lazy_lock was given.
11417if test "${enable_lazy_lock+set}" = set; then :
11418  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
11419  enable_lazy_lock="0"
11420else
11421  enable_lazy_lock="1"
11422fi
11423
11424else
11425  enable_lazy_lock=""
11426
11427fi
11428
11429if test "x${enable_lazy_lock}" = "x" ; then
11430  if test "x${force_lazy_lock}" = "x1" ; then
11431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
11432$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
11433    enable_lazy_lock="1"
11434  else
11435    enable_lazy_lock="0"
11436  fi
11437fi
11438if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
11440$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
11441  enable_lazy_lock="0"
11442fi
11443if test "x$enable_lazy_lock" = "x1" ; then
11444  if test "x$have_dlsym" = "x1" ; then
11445    $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
11446
11447  else
11448    as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11449  fi
11450fi
11451
11452
11453if test "x${force_tls}" = "x1" ; then
11454  enable_tls="1"
11455elif test "x${force_tls}" = "x0" ; then
11456  enable_tls="0"
11457else
11458  enable_tls="1"
11459fi
11460if test "x${enable_tls}" = "x1" ; then
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11462$as_echo_n "checking for TLS... " >&6; }
11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h.  */
11465
11466    __thread int x;
11467
11468int
11469main ()
11470{
11471
11472    x = 42;
11473
11474    return 0;
11475
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_compile "$LINENO"; then :
11481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482$as_echo "yes" >&6; }
11483else
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
11486              enable_tls="0"
11487fi
11488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489else
11490  enable_tls="0"
11491fi
11492
11493if test "x${enable_tls}" = "x1" ; then
11494  cat >>confdefs.h <<_ACEOF
11495#define JEMALLOC_TLS
11496_ACEOF
11497
11498fi
11499
11500
11501
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11503$as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11504if ${je_cv_c11_atomics+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509
11510#include <stdint.h>
11511#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11512#include <stdatomic.h>
11513#else
11514#error Atomics not available
11515#endif
11516
11517int
11518main ()
11519{
11520
11521    uint64_t *p = (uint64_t *)0;
11522    uint64_t x = 1;
11523    volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11524    uint64_t r = atomic_fetch_add(a, x) + x;
11525    return r == 0;
11526
11527  ;
11528  return 0;
11529}
11530_ACEOF
11531if ac_fn_c_try_link "$LINENO"; then :
11532  je_cv_c11_atomics=yes
11533else
11534  je_cv_c11_atomics=no
11535fi
11536rm -f core conftest.err conftest.$ac_objext \
11537    conftest$ac_exeext conftest.$ac_ext
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11540$as_echo "$je_cv_c11_atomics" >&6; }
11541
11542if test "x${je_cv_c11_atomics}" = "xyes" ; then
11543  $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11544
11545fi
11546
11547
11548
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11550$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11551if ${je_cv_gcc_atomic_atomics+:} false; then :
11552  $as_echo_n "(cached) " >&6
11553else
11554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h.  */
11556
11557
11558int
11559main ()
11560{
11561
11562    int x = 0;
11563    int val = 1;
11564    int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11565    int after_add = x;
11566    return after_add == 1;
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572if ac_fn_c_try_link "$LINENO"; then :
11573  je_cv_gcc_atomic_atomics=yes
11574else
11575  je_cv_gcc_atomic_atomics=no
11576fi
11577rm -f core conftest.err conftest.$ac_objext \
11578    conftest$ac_exeext conftest.$ac_ext
11579fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11581$as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11582
11583if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11584  $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11585
11586
11587
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
11589$as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
11590if ${je_cv_gcc_u8_atomic_atomics+:} false; then :
11591  $as_echo_n "(cached) " >&6
11592else
11593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h.  */
11595
11596
11597int
11598main ()
11599{
11600
11601      unsigned char x = 0;
11602      int val = 1;
11603      int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11604      int after_add = (int)x;
11605      return after_add == 1;
11606
11607  ;
11608  return 0;
11609}
11610_ACEOF
11611if ac_fn_c_try_link "$LINENO"; then :
11612  je_cv_gcc_u8_atomic_atomics=yes
11613else
11614  je_cv_gcc_u8_atomic_atomics=no
11615fi
11616rm -f core conftest.err conftest.$ac_objext \
11617    conftest$ac_exeext conftest.$ac_ext
11618fi
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
11620$as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; }
11621
11622  if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
11623    $as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1" >>confdefs.h
11624
11625  fi
11626fi
11627
11628
11629
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11631$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11632if ${je_cv_gcc_sync_atomics+:} false; then :
11633  $as_echo_n "(cached) " >&6
11634else
11635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636/* end confdefs.h.  */
11637
11638
11639int
11640main ()
11641{
11642
11643    int x = 0;
11644    int before_add = __sync_fetch_and_add(&x, 1);
11645    int after_add = x;
11646    return (before_add == 0) && (after_add == 1);
11647
11648  ;
11649  return 0;
11650}
11651_ACEOF
11652if ac_fn_c_try_link "$LINENO"; then :
11653  je_cv_gcc_sync_atomics=yes
11654else
11655  je_cv_gcc_sync_atomics=no
11656fi
11657rm -f core conftest.err conftest.$ac_objext \
11658    conftest$ac_exeext conftest.$ac_ext
11659fi
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11661$as_echo "$je_cv_gcc_sync_atomics" >&6; }
11662
11663if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11664  $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11665
11666
11667
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
11669$as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
11670if ${je_cv_gcc_u8_sync_atomics+:} false; then :
11671  $as_echo_n "(cached) " >&6
11672else
11673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674/* end confdefs.h.  */
11675
11676
11677int
11678main ()
11679{
11680
11681      unsigned char x = 0;
11682      int before_add = __sync_fetch_and_add(&x, 1);
11683      int after_add = (int)x;
11684      return (before_add == 0) && (after_add == 1);
11685
11686  ;
11687  return 0;
11688}
11689_ACEOF
11690if ac_fn_c_try_link "$LINENO"; then :
11691  je_cv_gcc_u8_sync_atomics=yes
11692else
11693  je_cv_gcc_u8_sync_atomics=no
11694fi
11695rm -f core conftest.err conftest.$ac_objext \
11696    conftest$ac_exeext conftest.$ac_ext
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
11699$as_echo "$je_cv_gcc_u8_sync_atomics" >&6; }
11700
11701  if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
11702    $as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS 1" >>confdefs.h
11703
11704  fi
11705fi
11706
11707
11708
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11710$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11711if ${je_cv_osatomic+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716
11717#include <libkern/OSAtomic.h>
11718#include <inttypes.h>
11719
11720int
11721main ()
11722{
11723
11724	{
11725		int32_t x32 = 0;
11726		volatile int32_t *x32p = &x32;
11727		OSAtomicAdd32(1, x32p);
11728	}
11729	{
11730		int64_t x64 = 0;
11731		volatile int64_t *x64p = &x64;
11732		OSAtomicAdd64(1, x64p);
11733	}
11734
11735  ;
11736  return 0;
11737}
11738_ACEOF
11739if ac_fn_c_try_link "$LINENO"; then :
11740  je_cv_osatomic=yes
11741else
11742  je_cv_osatomic=no
11743fi
11744rm -f core conftest.err conftest.$ac_objext \
11745    conftest$ac_exeext conftest.$ac_ext
11746fi
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11748$as_echo "$je_cv_osatomic" >&6; }
11749
11750if test "x${je_cv_osatomic}" = "xyes" ; then
11751  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
11752
11753fi
11754
11755
11756
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11758$as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11759if ${je_cv_madvise+:} false; then :
11760  $as_echo_n "(cached) " >&6
11761else
11762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763/* end confdefs.h.  */
11764
11765#include <sys/mman.h>
11766
11767int
11768main ()
11769{
11770
11771	madvise((void *)0, 0, 0);
11772
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777if ac_fn_c_try_link "$LINENO"; then :
11778  je_cv_madvise=yes
11779else
11780  je_cv_madvise=no
11781fi
11782rm -f core conftest.err conftest.$ac_objext \
11783    conftest$ac_exeext conftest.$ac_ext
11784fi
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11786$as_echo "$je_cv_madvise" >&6; }
11787
11788if test "x${je_cv_madvise}" = "xyes" ; then
11789  $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
11790
11791
11792
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11794$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11795if ${je_cv_madv_free+:} false; then :
11796  $as_echo_n "(cached) " >&6
11797else
11798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799/* end confdefs.h.  */
11800
11801#include <sys/mman.h>
11802
11803int
11804main ()
11805{
11806
11807	madvise((void *)0, 0, MADV_FREE);
11808
11809  ;
11810  return 0;
11811}
11812_ACEOF
11813if ac_fn_c_try_link "$LINENO"; then :
11814  je_cv_madv_free=yes
11815else
11816  je_cv_madv_free=no
11817fi
11818rm -f core conftest.err conftest.$ac_objext \
11819    conftest$ac_exeext conftest.$ac_ext
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11822$as_echo "$je_cv_madv_free" >&6; }
11823
11824  if test "x${je_cv_madv_free}" = "xyes" ; then
11825    $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11826
11827  elif test "x${je_cv_madvise}" = "xyes" ; then
11828    case "${host_cpu}" in i686|x86_64)
11829        case "${host}" in *-*-linux*)
11830            $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11831
11832            $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
11833
11834	    ;;
11835        esac
11836        ;;
11837    esac
11838  fi
11839
11840
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11842$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11843if ${je_cv_madv_dontneed+:} false; then :
11844  $as_echo_n "(cached) " >&6
11845else
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848
11849#include <sys/mman.h>
11850
11851int
11852main ()
11853{
11854
11855	madvise((void *)0, 0, MADV_DONTNEED);
11856
11857  ;
11858  return 0;
11859}
11860_ACEOF
11861if ac_fn_c_try_link "$LINENO"; then :
11862  je_cv_madv_dontneed=yes
11863else
11864  je_cv_madv_dontneed=no
11865fi
11866rm -f core conftest.err conftest.$ac_objext \
11867    conftest$ac_exeext conftest.$ac_ext
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11870$as_echo "$je_cv_madv_dontneed" >&6; }
11871
11872  if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11873    $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
11874
11875  fi
11876
11877
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11879$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11880if ${je_cv_madv_dontdump+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h.  */
11885
11886#include <sys/mman.h>
11887
11888int
11889main ()
11890{
11891
11892	madvise((void *)0, 0, MADV_DONTDUMP);
11893	madvise((void *)0, 0, MADV_DODUMP);
11894
11895  ;
11896  return 0;
11897}
11898_ACEOF
11899if ac_fn_c_try_link "$LINENO"; then :
11900  je_cv_madv_dontdump=yes
11901else
11902  je_cv_madv_dontdump=no
11903fi
11904rm -f core conftest.err conftest.$ac_objext \
11905    conftest$ac_exeext conftest.$ac_ext
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11908$as_echo "$je_cv_madv_dontdump" >&6; }
11909
11910  if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11911    $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
11912
11913  fi
11914
11915
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11917$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11918if ${je_cv_thp+:} false; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923
11924#include <sys/mman.h>
11925
11926int
11927main ()
11928{
11929
11930	madvise((void *)0, 0, MADV_HUGEPAGE);
11931	madvise((void *)0, 0, MADV_NOHUGEPAGE);
11932
11933  ;
11934  return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938  je_cv_thp=yes
11939else
11940  je_cv_thp=no
11941fi
11942rm -f core conftest.err conftest.$ac_objext \
11943    conftest$ac_exeext conftest.$ac_ext
11944fi
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11946$as_echo "$je_cv_thp" >&6; }
11947
11948case "${host_cpu}" in
11949  arm*)
11950    ;;
11951  *)
11952  if test "x${je_cv_thp}" = "xyes" ; then
11953    $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
11954
11955  fi
11956  ;;
11957esac
11958fi
11959
11960
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11962$as_echo_n "checking for __builtin_clz... " >&6; }
11963if ${je_cv_builtin_clz+:} false; then :
11964  $as_echo_n "(cached) " >&6
11965else
11966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h.  */
11968
11969int
11970main ()
11971{
11972
11973                                                {
11974                                                        unsigned x = 0;
11975                                                        int y = __builtin_clz(x);
11976                                                }
11977                                                {
11978                                                        unsigned long x = 0;
11979                                                        int y = __builtin_clzl(x);
11980                                                }
11981
11982  ;
11983  return 0;
11984}
11985_ACEOF
11986if ac_fn_c_try_link "$LINENO"; then :
11987  je_cv_builtin_clz=yes
11988else
11989  je_cv_builtin_clz=no
11990fi
11991rm -f core conftest.err conftest.$ac_objext \
11992    conftest$ac_exeext conftest.$ac_ext
11993fi
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11995$as_echo "$je_cv_builtin_clz" >&6; }
11996
11997if test "x${je_cv_builtin_clz}" = "xyes" ; then
11998  $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
11999
12000fi
12001
12002
12003
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
12005$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
12006if ${je_cv_os_unfair_lock+:} false; then :
12007  $as_echo_n "(cached) " >&6
12008else
12009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010/* end confdefs.h.  */
12011
12012#include <os/lock.h>
12013#include <AvailabilityMacros.h>
12014
12015int
12016main ()
12017{
12018
12019	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
12020	#error "os_unfair_lock is not supported"
12021	#else
12022	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
12023	os_unfair_lock_lock(&lock);
12024	os_unfair_lock_unlock(&lock);
12025	#endif
12026
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then :
12032  je_cv_os_unfair_lock=yes
12033else
12034  je_cv_os_unfair_lock=no
12035fi
12036rm -f core conftest.err conftest.$ac_objext \
12037    conftest$ac_exeext conftest.$ac_ext
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
12040$as_echo "$je_cv_os_unfair_lock" >&6; }
12041
12042if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
12043  $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
12044
12045fi
12046
12047
12048# Check whether --enable-zone-allocator was given.
12049if test "${enable_zone_allocator+set}" = set; then :
12050  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
12051  enable_zone_allocator="0"
12052else
12053  enable_zone_allocator="1"
12054fi
12055
12056else
12057  if test "x${abi}" = "xmacho"; then
12058  enable_zone_allocator="1"
12059fi
12060
12061
12062fi
12063
12064
12065
12066if test "x${enable_zone_allocator}" = "x1" ; then
12067  if test "x${abi}" != "xmacho"; then
12068    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
12069  fi
12070  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
12071
12072fi
12073
12074# Check whether --enable-initial-exec-tls was given.
12075if test "${enable_initial_exec_tls+set}" = set; then :
12076  enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
12077  enable_initial_exec_tls="0"
12078else
12079  enable_initial_exec_tls="1"
12080fi
12081
12082else
12083  enable_initial_exec_tls="1"
12084
12085fi
12086
12087
12088
12089if test "x${je_cv_tls_model}" = "xyes" -a \
12090       "x${enable_initial_exec_tls}" = "x1" ; then
12091  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
12092
12093else
12094  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
12095
12096fi
12097
12098
12099if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" ; then
12100  $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
12101
12102fi
12103
12104
12105
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
12107$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
12108if ${je_cv_glibc_malloc_hook+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h.  */
12113
12114#include <stddef.h>
12115
12116extern void (* __free_hook)(void *ptr);
12117extern void *(* __malloc_hook)(size_t size);
12118extern void *(* __realloc_hook)(void *ptr, size_t size);
12119
12120int
12121main ()
12122{
12123
12124  void *ptr = 0L;
12125  if (__malloc_hook) ptr = __malloc_hook(1);
12126  if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
12127  if (__free_hook && ptr) __free_hook(ptr);
12128
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134  je_cv_glibc_malloc_hook=yes
12135else
12136  je_cv_glibc_malloc_hook=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139    conftest$ac_exeext conftest.$ac_ext
12140fi
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
12142$as_echo "$je_cv_glibc_malloc_hook" >&6; }
12143
12144if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
12145  if test "x${JEMALLOC_PREFIX}" = "x" ; then
12146    $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
12147
12148    wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
12149  fi
12150fi
12151
12152
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
12154$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
12155if ${je_cv_glibc_memalign_hook+:} false; then :
12156  $as_echo_n "(cached) " >&6
12157else
12158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159/* end confdefs.h.  */
12160
12161#include <stddef.h>
12162
12163extern void *(* __memalign_hook)(size_t alignment, size_t size);
12164
12165int
12166main ()
12167{
12168
12169  void *ptr = 0L;
12170  if (__memalign_hook) ptr = __memalign_hook(16, 7);
12171
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_link "$LINENO"; then :
12177  je_cv_glibc_memalign_hook=yes
12178else
12179  je_cv_glibc_memalign_hook=no
12180fi
12181rm -f core conftest.err conftest.$ac_objext \
12182    conftest$ac_exeext conftest.$ac_ext
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
12185$as_echo "$je_cv_glibc_memalign_hook" >&6; }
12186
12187if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
12188  if test "x${JEMALLOC_PREFIX}" = "x" ; then
12189    $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
12190
12191    wrap_syms="${wrap_syms} __memalign_hook"
12192  fi
12193fi
12194
12195
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
12197$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
12198if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203
12204#include <pthread.h>
12205
12206int
12207main ()
12208{
12209
12210  pthread_mutexattr_t attr;
12211  pthread_mutexattr_init(&attr);
12212  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
12213  pthread_mutexattr_destroy(&attr);
12214
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_c_try_link "$LINENO"; then :
12220  je_cv_pthread_mutex_adaptive_np=yes
12221else
12222  je_cv_pthread_mutex_adaptive_np=no
12223fi
12224rm -f core conftest.err conftest.$ac_objext \
12225    conftest$ac_exeext conftest.$ac_ext
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
12228$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
12229
12230if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
12231  $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
12232
12233fi
12234
12235SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12236
12237
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
12239$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
12240T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12241T_APPEND_V=-D_GNU_SOURCE
12242  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12243  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12244else
12245  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12246fi
12247
12248
12249if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12250  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12251else
12252  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12253fi
12254
12255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256/* end confdefs.h.  */
12257
12258
12259int
12260main ()
12261{
12262
12263    return 0;
12264
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269if ac_fn_c_try_compile "$LINENO"; then :
12270  je_cv_cflags_added=-D_GNU_SOURCE
12271              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272$as_echo "yes" >&6; }
12273else
12274  je_cv_cflags_added=
12275              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12278
12279fi
12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12282  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12283else
12284  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12285fi
12286
12287
12288
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
12290$as_echo_n "checking whether compiler supports -Werror... " >&6; }
12291T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12292T_APPEND_V=-Werror
12293  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12294  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12295else
12296  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12297fi
12298
12299
12300if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12301  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12302else
12303  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12304fi
12305
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h.  */
12308
12309
12310int
12311main ()
12312{
12313
12314    return 0;
12315
12316  ;
12317  return 0;
12318}
12319_ACEOF
12320if ac_fn_c_try_compile "$LINENO"; then :
12321  je_cv_cflags_added=-Werror
12322              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12323$as_echo "yes" >&6; }
12324else
12325  je_cv_cflags_added=
12326              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12329
12330fi
12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12333  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12334else
12335  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12336fi
12337
12338
12339
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
12341$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
12342T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12343T_APPEND_V=-herror_on_warning
12344  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12345  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12346else
12347  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12348fi
12349
12350
12351if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12352  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12353else
12354  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12355fi
12356
12357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358/* end confdefs.h.  */
12359
12360
12361int
12362main ()
12363{
12364
12365    return 0;
12366
12367  ;
12368  return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_compile "$LINENO"; then :
12372  je_cv_cflags_added=-herror_on_warning
12373              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374$as_echo "yes" >&6; }
12375else
12376  je_cv_cflags_added=
12377              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
12379              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12380
12381fi
12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12384  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12385else
12386  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12387fi
12388
12389
12390
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12392$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12393if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h.  */
12398
12399#include <errno.h>
12400#include <stdio.h>
12401#include <stdlib.h>
12402#include <string.h>
12403
12404int
12405main ()
12406{
12407
12408  char *buffer = (char *) malloc(100);
12409  char *error = strerror_r(EINVAL, buffer, 100);
12410  printf("%s\n", error);
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_link "$LINENO"; then :
12417  je_cv_strerror_r_returns_char_with_gnu_source=yes
12418else
12419  je_cv_strerror_r_returns_char_with_gnu_source=no
12420fi
12421rm -f core conftest.err conftest.$ac_objext \
12422    conftest$ac_exeext conftest.$ac_ext
12423fi
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12425$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12426
12427CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12428if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12429  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12430else
12431  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12432fi
12433
12434
12435if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12436  $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
12437
12438fi
12439
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12441$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12442if ${ac_cv_header_stdbool_h+:} false; then :
12443  $as_echo_n "(cached) " >&6
12444else
12445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447
12448             #include <stdbool.h>
12449             #ifndef bool
12450              "error: bool is not defined"
12451             #endif
12452             #ifndef false
12453              "error: false is not defined"
12454             #endif
12455             #if false
12456              "error: false is not 0"
12457             #endif
12458             #ifndef true
12459              "error: true is not defined"
12460             #endif
12461             #if true != 1
12462              "error: true is not 1"
12463             #endif
12464             #ifndef __bool_true_false_are_defined
12465              "error: __bool_true_false_are_defined is not defined"
12466             #endif
12467
12468             struct s { _Bool s: 1; _Bool t; } s;
12469
12470             char a[true == 1 ? 1 : -1];
12471             char b[false == 0 ? 1 : -1];
12472             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12473             char d[(bool) 0.5 == true ? 1 : -1];
12474             /* See body of main program for 'e'.  */
12475             char f[(_Bool) 0.0 == false ? 1 : -1];
12476             char g[true];
12477             char h[sizeof (_Bool)];
12478             char i[sizeof s.t];
12479             enum { j = false, k = true, l = false * true, m = true * 256 };
12480             /* The following fails for
12481                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12482             _Bool n[m];
12483             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12484             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12485             /* Catch a bug in an HP-UX C compiler.  See
12486                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12487                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12488              */
12489             _Bool q = true;
12490             _Bool *pq = &q;
12491
12492int
12493main ()
12494{
12495
12496             bool e = &s;
12497             *pq |= q;
12498             *pq |= ! q;
12499             /* Refer to every declared value, to avoid compiler optimizations.  */
12500             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12501                     + !m + !n + !o + !p + !q + !pq);
12502
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507if ac_fn_c_try_compile "$LINENO"; then :
12508  ac_cv_header_stdbool_h=yes
12509else
12510  ac_cv_header_stdbool_h=no
12511fi
12512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12515$as_echo "$ac_cv_header_stdbool_h" >&6; }
12516   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12517if test "x$ac_cv_type__Bool" = xyes; then :
12518
12519cat >>confdefs.h <<_ACEOF
12520#define HAVE__BOOL 1
12521_ACEOF
12522
12523
12524fi
12525
12526
12527if test $ac_cv_header_stdbool_h = yes; then
12528
12529$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12530
12531fi
12532
12533
12534
12535ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12536
12537ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12538
12539ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12540
12541ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12542
12543ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12544
12545ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12546
12547ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12548
12549ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12550
12551ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12552
12553ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12554
12555
12556
12557
12558ac_config_headers="$ac_config_headers $cfghdrs_tup"
12559
12560
12561
12562ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12563
12564
12565
12566cat >confcache <<\_ACEOF
12567# This file is a shell script that caches the results of configure
12568# tests run on this system so they can be shared between configure
12569# scripts and configure runs, see configure's option --config-cache.
12570# It is not useful on other systems.  If it contains results you don't
12571# want to keep, you may remove or edit it.
12572#
12573# config.status only pays attention to the cache file if you give it
12574# the --recheck option to rerun configure.
12575#
12576# `ac_cv_env_foo' variables (set or unset) will be overridden when
12577# loading this file, other *unset* `ac_cv_foo' will be assigned the
12578# following values.
12579
12580_ACEOF
12581
12582# The following way of writing the cache mishandles newlines in values,
12583# but we know of no workaround that is simple, portable, and efficient.
12584# So, we kill variables containing newlines.
12585# Ultrix sh set writes to stderr and can't be redirected directly,
12586# and sets the high bit in the cache file unless we assign to the vars.
12587(
12588  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12589    eval ac_val=\$$ac_var
12590    case $ac_val in #(
12591    *${as_nl}*)
12592      case $ac_var in #(
12593      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12594$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12595      esac
12596      case $ac_var in #(
12597      _ | IFS | as_nl) ;; #(
12598      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12599      *) { eval $ac_var=; unset $ac_var;} ;;
12600      esac ;;
12601    esac
12602  done
12603
12604  (set) 2>&1 |
12605    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12606    *${as_nl}ac_space=\ *)
12607      # `set' does not quote correctly, so add quotes: double-quote
12608      # substitution turns \\\\ into \\, and sed turns \\ into \.
12609      sed -n \
12610	"s/'/'\\\\''/g;
12611	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12612      ;; #(
12613    *)
12614      # `set' quotes correctly as required by POSIX, so do not add quotes.
12615      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12616      ;;
12617    esac |
12618    sort
12619) |
12620  sed '
12621     /^ac_cv_env_/b end
12622     t clear
12623     :clear
12624     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12625     t end
12626     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12627     :end' >>confcache
12628if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12629  if test -w "$cache_file"; then
12630    if test "x$cache_file" != "x/dev/null"; then
12631      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12632$as_echo "$as_me: updating cache $cache_file" >&6;}
12633      if test ! -f "$cache_file" || test -h "$cache_file"; then
12634	cat confcache >"$cache_file"
12635      else
12636        case $cache_file in #(
12637        */* | ?:*)
12638	  mv -f confcache "$cache_file"$$ &&
12639	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12640        *)
12641	  mv -f confcache "$cache_file" ;;
12642	esac
12643      fi
12644    fi
12645  else
12646    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12648  fi
12649fi
12650rm -f confcache
12651
12652test "x$prefix" = xNONE && prefix=$ac_default_prefix
12653# Let make expand exec_prefix.
12654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12655
12656DEFS=-DHAVE_CONFIG_H
12657
12658ac_libobjs=
12659ac_ltlibobjs=
12660U=
12661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12662  # 1. Remove the extension, and $U if already installed.
12663  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12664  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12665  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12666  #    will be set to the directory where LIBOBJS objects are built.
12667  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12668  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12669done
12670LIBOBJS=$ac_libobjs
12671
12672LTLIBOBJS=$ac_ltlibobjs
12673
12674
12675
12676
12677: "${CONFIG_STATUS=./config.status}"
12678ac_write_fail=0
12679ac_clean_files_save=$ac_clean_files
12680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12683as_write_fail=0
12684cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12685#! $SHELL
12686# Generated by $as_me.
12687# Run this file to recreate the current configuration.
12688# Compiler output produced by configure, useful for debugging
12689# configure, is in config.log if it exists.
12690
12691debug=false
12692ac_cs_recheck=false
12693ac_cs_silent=false
12694
12695SHELL=\${CONFIG_SHELL-$SHELL}
12696export SHELL
12697_ASEOF
12698cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12699## -------------------- ##
12700## M4sh Initialization. ##
12701## -------------------- ##
12702
12703# Be more Bourne compatible
12704DUALCASE=1; export DUALCASE # for MKS sh
12705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12706  emulate sh
12707  NULLCMD=:
12708  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12709  # is contrary to our usage.  Disable this feature.
12710  alias -g '${1+"$@"}'='"$@"'
12711  setopt NO_GLOB_SUBST
12712else
12713  case `(set -o) 2>/dev/null` in #(
12714  *posix*) :
12715    set -o posix ;; #(
12716  *) :
12717     ;;
12718esac
12719fi
12720
12721
12722as_nl='
12723'
12724export as_nl
12725# Printing a long string crashes Solaris 7 /usr/bin/printf.
12726as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12729# Prefer a ksh shell builtin over an external printf program on Solaris,
12730# but without wasting forks for bash or zsh.
12731if test -z "$BASH_VERSION$ZSH_VERSION" \
12732    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12733  as_echo='print -r --'
12734  as_echo_n='print -rn --'
12735elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12736  as_echo='printf %s\n'
12737  as_echo_n='printf %s'
12738else
12739  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12740    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12741    as_echo_n='/usr/ucb/echo -n'
12742  else
12743    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12744    as_echo_n_body='eval
12745      arg=$1;
12746      case $arg in #(
12747      *"$as_nl"*)
12748	expr "X$arg" : "X\\(.*\\)$as_nl";
12749	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12750      esac;
12751      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12752    '
12753    export as_echo_n_body
12754    as_echo_n='sh -c $as_echo_n_body as_echo'
12755  fi
12756  export as_echo_body
12757  as_echo='sh -c $as_echo_body as_echo'
12758fi
12759
12760# The user is always right.
12761if test "${PATH_SEPARATOR+set}" != set; then
12762  PATH_SEPARATOR=:
12763  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12764    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12765      PATH_SEPARATOR=';'
12766  }
12767fi
12768
12769
12770# IFS
12771# We need space, tab and new line, in precisely that order.  Quoting is
12772# there to prevent editors from complaining about space-tab.
12773# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12774# splitting by setting IFS to empty value.)
12775IFS=" ""	$as_nl"
12776
12777# Find who we are.  Look in the path if we contain no directory separator.
12778as_myself=
12779case $0 in #((
12780  *[\\/]* ) as_myself=$0 ;;
12781  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784  IFS=$as_save_IFS
12785  test -z "$as_dir" && as_dir=.
12786    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12787  done
12788IFS=$as_save_IFS
12789
12790     ;;
12791esac
12792# We did not find ourselves, most probably we were run as `sh COMMAND'
12793# in which case we are not to be found in the path.
12794if test "x$as_myself" = x; then
12795  as_myself=$0
12796fi
12797if test ! -f "$as_myself"; then
12798  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12799  exit 1
12800fi
12801
12802# Unset variables that we do not need and which cause bugs (e.g. in
12803# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12804# suppresses any "Segmentation fault" message there.  '((' could
12805# trigger a bug in pdksh 5.2.14.
12806for as_var in BASH_ENV ENV MAIL MAILPATH
12807do eval test x\${$as_var+set} = xset \
12808  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12809done
12810PS1='$ '
12811PS2='> '
12812PS4='+ '
12813
12814# NLS nuisances.
12815LC_ALL=C
12816export LC_ALL
12817LANGUAGE=C
12818export LANGUAGE
12819
12820# CDPATH.
12821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12822
12823
12824# as_fn_error STATUS ERROR [LINENO LOG_FD]
12825# ----------------------------------------
12826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12828# script with STATUS, using 1 if that was 0.
12829as_fn_error ()
12830{
12831  as_status=$1; test $as_status -eq 0 && as_status=1
12832  if test "$4"; then
12833    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12834    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12835  fi
12836  $as_echo "$as_me: error: $2" >&2
12837  as_fn_exit $as_status
12838} # as_fn_error
12839
12840
12841# as_fn_set_status STATUS
12842# -----------------------
12843# Set $? to STATUS, without forking.
12844as_fn_set_status ()
12845{
12846  return $1
12847} # as_fn_set_status
12848
12849# as_fn_exit STATUS
12850# -----------------
12851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12852as_fn_exit ()
12853{
12854  set +e
12855  as_fn_set_status $1
12856  exit $1
12857} # as_fn_exit
12858
12859# as_fn_unset VAR
12860# ---------------
12861# Portably unset VAR.
12862as_fn_unset ()
12863{
12864  { eval $1=; unset $1;}
12865}
12866as_unset=as_fn_unset
12867# as_fn_append VAR VALUE
12868# ----------------------
12869# Append the text in VALUE to the end of the definition contained in VAR. Take
12870# advantage of any shell optimizations that allow amortized linear growth over
12871# repeated appends, instead of the typical quadratic growth present in naive
12872# implementations.
12873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12874  eval 'as_fn_append ()
12875  {
12876    eval $1+=\$2
12877  }'
12878else
12879  as_fn_append ()
12880  {
12881    eval $1=\$$1\$2
12882  }
12883fi # as_fn_append
12884
12885# as_fn_arith ARG...
12886# ------------------
12887# Perform arithmetic evaluation on the ARGs, and store the result in the
12888# global $as_val. Take advantage of shells that can avoid forks. The arguments
12889# must be portable across $(()) and expr.
12890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12891  eval 'as_fn_arith ()
12892  {
12893    as_val=$(( $* ))
12894  }'
12895else
12896  as_fn_arith ()
12897  {
12898    as_val=`expr "$@" || test $? -eq 1`
12899  }
12900fi # as_fn_arith
12901
12902
12903if expr a : '\(a\)' >/dev/null 2>&1 &&
12904   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12905  as_expr=expr
12906else
12907  as_expr=false
12908fi
12909
12910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12911  as_basename=basename
12912else
12913  as_basename=false
12914fi
12915
12916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12917  as_dirname=dirname
12918else
12919  as_dirname=false
12920fi
12921
12922as_me=`$as_basename -- "$0" ||
12923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12924	 X"$0" : 'X\(//\)$' \| \
12925	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12926$as_echo X/"$0" |
12927    sed '/^.*\/\([^/][^/]*\)\/*$/{
12928	    s//\1/
12929	    q
12930	  }
12931	  /^X\/\(\/\/\)$/{
12932	    s//\1/
12933	    q
12934	  }
12935	  /^X\/\(\/\).*/{
12936	    s//\1/
12937	    q
12938	  }
12939	  s/.*/./; q'`
12940
12941# Avoid depending upon Character Ranges.
12942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12945as_cr_digits='0123456789'
12946as_cr_alnum=$as_cr_Letters$as_cr_digits
12947
12948ECHO_C= ECHO_N= ECHO_T=
12949case `echo -n x` in #(((((
12950-n*)
12951  case `echo 'xy\c'` in
12952  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12953  xy)  ECHO_C='\c';;
12954  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12955       ECHO_T='	';;
12956  esac;;
12957*)
12958  ECHO_N='-n';;
12959esac
12960
12961rm -f conf$$ conf$$.exe conf$$.file
12962if test -d conf$$.dir; then
12963  rm -f conf$$.dir/conf$$.file
12964else
12965  rm -f conf$$.dir
12966  mkdir conf$$.dir 2>/dev/null
12967fi
12968if (echo >conf$$.file) 2>/dev/null; then
12969  if ln -s conf$$.file conf$$ 2>/dev/null; then
12970    as_ln_s='ln -s'
12971    # ... but there are two gotchas:
12972    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12973    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12974    # In both cases, we have to default to `cp -pR'.
12975    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12976      as_ln_s='cp -pR'
12977  elif ln conf$$.file conf$$ 2>/dev/null; then
12978    as_ln_s=ln
12979  else
12980    as_ln_s='cp -pR'
12981  fi
12982else
12983  as_ln_s='cp -pR'
12984fi
12985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12986rmdir conf$$.dir 2>/dev/null
12987
12988
12989# as_fn_mkdir_p
12990# -------------
12991# Create "$as_dir" as a directory, including parents if necessary.
12992as_fn_mkdir_p ()
12993{
12994
12995  case $as_dir in #(
12996  -*) as_dir=./$as_dir;;
12997  esac
12998  test -d "$as_dir" || eval $as_mkdir_p || {
12999    as_dirs=
13000    while :; do
13001      case $as_dir in #(
13002      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13003      *) as_qdir=$as_dir;;
13004      esac
13005      as_dirs="'$as_qdir' $as_dirs"
13006      as_dir=`$as_dirname -- "$as_dir" ||
13007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13008	 X"$as_dir" : 'X\(//\)[^/]' \| \
13009	 X"$as_dir" : 'X\(//\)$' \| \
13010	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13011$as_echo X"$as_dir" |
13012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13013	    s//\1/
13014	    q
13015	  }
13016	  /^X\(\/\/\)[^/].*/{
13017	    s//\1/
13018	    q
13019	  }
13020	  /^X\(\/\/\)$/{
13021	    s//\1/
13022	    q
13023	  }
13024	  /^X\(\/\).*/{
13025	    s//\1/
13026	    q
13027	  }
13028	  s/.*/./; q'`
13029      test -d "$as_dir" && break
13030    done
13031    test -z "$as_dirs" || eval "mkdir $as_dirs"
13032  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13033
13034
13035} # as_fn_mkdir_p
13036if mkdir -p . 2>/dev/null; then
13037  as_mkdir_p='mkdir -p "$as_dir"'
13038else
13039  test -d ./-p && rmdir ./-p
13040  as_mkdir_p=false
13041fi
13042
13043
13044# as_fn_executable_p FILE
13045# -----------------------
13046# Test if FILE is an executable regular file.
13047as_fn_executable_p ()
13048{
13049  test -f "$1" && test -x "$1"
13050} # as_fn_executable_p
13051as_test_x='test -x'
13052as_executable_p=as_fn_executable_p
13053
13054# Sed expression to map a string onto a valid CPP name.
13055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13056
13057# Sed expression to map a string onto a valid variable name.
13058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13059
13060
13061exec 6>&1
13062## ----------------------------------- ##
13063## Main body of $CONFIG_STATUS script. ##
13064## ----------------------------------- ##
13065_ASEOF
13066test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13067
13068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13069# Save the log message, to keep $0 and so on meaningful, and to
13070# report actual input values of CONFIG_FILES etc. instead of their
13071# values after options handling.
13072ac_log="
13073This file was extended by $as_me, which was
13074generated by GNU Autoconf 2.69.  Invocation command line was
13075
13076  CONFIG_FILES    = $CONFIG_FILES
13077  CONFIG_HEADERS  = $CONFIG_HEADERS
13078  CONFIG_LINKS    = $CONFIG_LINKS
13079  CONFIG_COMMANDS = $CONFIG_COMMANDS
13080  $ $0 $@
13081
13082on `(hostname || uname -n) 2>/dev/null | sed 1q`
13083"
13084
13085_ACEOF
13086
13087case $ac_config_files in *"
13088"*) set x $ac_config_files; shift; ac_config_files=$*;;
13089esac
13090
13091case $ac_config_headers in *"
13092"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13093esac
13094
13095
13096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097# Files that config.status was made for.
13098config_files="$ac_config_files"
13099config_headers="$ac_config_headers"
13100config_commands="$ac_config_commands"
13101
13102_ACEOF
13103
13104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105ac_cs_usage="\
13106\`$as_me' instantiates files and other configuration actions
13107from templates according to the current configuration.  Unless the files
13108and actions are specified as TAGs, all are instantiated by default.
13109
13110Usage: $0 [OPTION]... [TAG]...
13111
13112  -h, --help       print this help, then exit
13113  -V, --version    print version number and configuration settings, then exit
13114      --config     print configuration, then exit
13115  -q, --quiet, --silent
13116                   do not print progress messages
13117  -d, --debug      don't remove temporary files
13118      --recheck    update $as_me by reconfiguring in the same conditions
13119      --file=FILE[:TEMPLATE]
13120                   instantiate the configuration file FILE
13121      --header=FILE[:TEMPLATE]
13122                   instantiate the configuration header FILE
13123
13124Configuration files:
13125$config_files
13126
13127Configuration headers:
13128$config_headers
13129
13130Configuration commands:
13131$config_commands
13132
13133Report bugs to the package provider."
13134
13135_ACEOF
13136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13137ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13138ac_cs_version="\\
13139config.status
13140configured by $0, generated by GNU Autoconf 2.69,
13141  with options \\"\$ac_cs_config\\"
13142
13143Copyright (C) 2012 Free Software Foundation, Inc.
13144This config.status script is free software; the Free Software Foundation
13145gives unlimited permission to copy, distribute and modify it."
13146
13147ac_pwd='$ac_pwd'
13148srcdir='$srcdir'
13149INSTALL='$INSTALL'
13150AWK='$AWK'
13151test -n "\$AWK" || AWK=awk
13152_ACEOF
13153
13154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155# The default lists apply if the user does not specify any file.
13156ac_need_defaults=:
13157while test $# != 0
13158do
13159  case $1 in
13160  --*=?*)
13161    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13162    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13163    ac_shift=:
13164    ;;
13165  --*=)
13166    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13167    ac_optarg=
13168    ac_shift=:
13169    ;;
13170  *)
13171    ac_option=$1
13172    ac_optarg=$2
13173    ac_shift=shift
13174    ;;
13175  esac
13176
13177  case $ac_option in
13178  # Handling of the options.
13179  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13180    ac_cs_recheck=: ;;
13181  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13182    $as_echo "$ac_cs_version"; exit ;;
13183  --config | --confi | --conf | --con | --co | --c )
13184    $as_echo "$ac_cs_config"; exit ;;
13185  --debug | --debu | --deb | --de | --d | -d )
13186    debug=: ;;
13187  --file | --fil | --fi | --f )
13188    $ac_shift
13189    case $ac_optarg in
13190    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13191    '') as_fn_error $? "missing file argument" ;;
13192    esac
13193    as_fn_append CONFIG_FILES " '$ac_optarg'"
13194    ac_need_defaults=false;;
13195  --header | --heade | --head | --hea )
13196    $ac_shift
13197    case $ac_optarg in
13198    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13199    esac
13200    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13201    ac_need_defaults=false;;
13202  --he | --h)
13203    # Conflict between --help and --header
13204    as_fn_error $? "ambiguous option: \`$1'
13205Try \`$0 --help' for more information.";;
13206  --help | --hel | -h )
13207    $as_echo "$ac_cs_usage"; exit ;;
13208  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13209  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13210    ac_cs_silent=: ;;
13211
13212  # This is an error.
13213  -*) as_fn_error $? "unrecognized option: \`$1'
13214Try \`$0 --help' for more information." ;;
13215
13216  *) as_fn_append ac_config_targets " $1"
13217     ac_need_defaults=false ;;
13218
13219  esac
13220  shift
13221done
13222
13223ac_configure_extra_args=
13224
13225if $ac_cs_silent; then
13226  exec 6>/dev/null
13227  ac_configure_extra_args="$ac_configure_extra_args --silent"
13228fi
13229
13230_ACEOF
13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232if \$ac_cs_recheck; then
13233  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13234  shift
13235  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13236  CONFIG_SHELL='$SHELL'
13237  export CONFIG_SHELL
13238  exec "\$@"
13239fi
13240
13241_ACEOF
13242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243exec 5>>config.log
13244{
13245  echo
13246  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13247## Running $as_me. ##
13248_ASBOX
13249  $as_echo "$ac_log"
13250} >&5
13251
13252_ACEOF
13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254#
13255# INIT-COMMANDS
13256#
13257
13258  srcdir="${srcdir}"
13259  objroot="${objroot}"
13260  mangling_map="${mangling_map}"
13261  public_syms="${public_syms}"
13262  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
13263
13264
13265  srcdir="${srcdir}"
13266  objroot="${objroot}"
13267  public_syms="${public_syms}"
13268  wrap_syms="${wrap_syms}"
13269  SYM_PREFIX="${SYM_PREFIX}"
13270  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
13271
13272
13273  srcdir="${srcdir}"
13274  objroot="${objroot}"
13275  public_syms="${public_syms}"
13276  wrap_syms="${wrap_syms}"
13277  SYM_PREFIX="${SYM_PREFIX}"
13278
13279
13280  srcdir="${srcdir}"
13281  objroot="${objroot}"
13282
13283
13284  srcdir="${srcdir}"
13285  objroot="${objroot}"
13286
13287
13288  srcdir="${srcdir}"
13289  objroot="${objroot}"
13290
13291
13292  srcdir="${srcdir}"
13293  objroot="${objroot}"
13294
13295
13296  srcdir="${srcdir}"
13297  objroot="${objroot}"
13298
13299
13300  srcdir="${srcdir}"
13301  objroot="${objroot}"
13302
13303
13304  srcdir="${srcdir}"
13305  objroot="${objroot}"
13306  install_suffix="${install_suffix}"
13307
13308
13309_ACEOF
13310
13311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13312
13313# Handling of arguments.
13314for ac_config_target in $ac_config_targets
13315do
13316  case $ac_config_target in
13317    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
13318    "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
13319    "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
13320    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
13321    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
13322    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
13323    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
13324    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
13325    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
13326    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
13327    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
13328    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
13329    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
13330    "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
13331    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
13332    "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
13333
13334  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13335  esac
13336done
13337
13338
13339# If the user did not use the arguments to specify the items to instantiate,
13340# then the envvar interface is used.  Set only those that are not.
13341# We use the long form for the default assignment because of an extremely
13342# bizarre bug on SunOS 4.1.3.
13343if $ac_need_defaults; then
13344  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13345  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13346  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13347fi
13348
13349# Have a temporary directory for convenience.  Make it in the build tree
13350# simply because there is no reason against having it here, and in addition,
13351# creating and moving files from /tmp can sometimes cause problems.
13352# Hook for its removal unless debugging.
13353# Note that there is a small window in which the directory will not be cleaned:
13354# after its creation but before its name has been assigned to `$tmp'.
13355$debug ||
13356{
13357  tmp= ac_tmp=
13358  trap 'exit_status=$?
13359  : "${ac_tmp:=$tmp}"
13360  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13361' 0
13362  trap 'as_fn_exit 1' 1 2 13 15
13363}
13364# Create a (secure) tmp directory for tmp files.
13365
13366{
13367  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13368  test -d "$tmp"
13369}  ||
13370{
13371  tmp=./conf$$-$RANDOM
13372  (umask 077 && mkdir "$tmp")
13373} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13374ac_tmp=$tmp
13375
13376# Set up the scripts for CONFIG_FILES section.
13377# No need to generate them if there are no CONFIG_FILES.
13378# This happens for instance with `./config.status config.h'.
13379if test -n "$CONFIG_FILES"; then
13380
13381
13382ac_cr=`echo X | tr X '\015'`
13383# On cygwin, bash can eat \r inside `` if the user requested igncr.
13384# But we know of no other shell where ac_cr would be empty at this
13385# point, so we can use a bashism as a fallback.
13386if test "x$ac_cr" = x; then
13387  eval ac_cr=\$\'\\r\'
13388fi
13389ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13390if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13391  ac_cs_awk_cr='\\r'
13392else
13393  ac_cs_awk_cr=$ac_cr
13394fi
13395
13396echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13397_ACEOF
13398
13399
13400{
13401  echo "cat >conf$$subs.awk <<_ACEOF" &&
13402  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13403  echo "_ACEOF"
13404} >conf$$subs.sh ||
13405  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13406ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13407ac_delim='%!_!# '
13408for ac_last_try in false false false false false :; do
13409  . ./conf$$subs.sh ||
13410    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13411
13412  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13413  if test $ac_delim_n = $ac_delim_num; then
13414    break
13415  elif $ac_last_try; then
13416    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13417  else
13418    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13419  fi
13420done
13421rm -f conf$$subs.sh
13422
13423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13424cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13425_ACEOF
13426sed -n '
13427h
13428s/^/S["/; s/!.*/"]=/
13429p
13430g
13431s/^[^!]*!//
13432:repl
13433t repl
13434s/'"$ac_delim"'$//
13435t delim
13436:nl
13437h
13438s/\(.\{148\}\)..*/\1/
13439t more1
13440s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13441p
13442n
13443b repl
13444:more1
13445s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13446p
13447g
13448s/.\{148\}//
13449t nl
13450:delim
13451h
13452s/\(.\{148\}\)..*/\1/
13453t more2
13454s/["\\]/\\&/g; s/^/"/; s/$/"/
13455p
13456b
13457:more2
13458s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13459p
13460g
13461s/.\{148\}//
13462t delim
13463' <conf$$subs.awk | sed '
13464/^[^""]/{
13465  N
13466  s/\n//
13467}
13468' >>$CONFIG_STATUS || ac_write_fail=1
13469rm -f conf$$subs.awk
13470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13471_ACAWK
13472cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13473  for (key in S) S_is_set[key] = 1
13474  FS = ""
13475
13476}
13477{
13478  line = $ 0
13479  nfields = split(line, field, "@")
13480  substed = 0
13481  len = length(field[1])
13482  for (i = 2; i < nfields; i++) {
13483    key = field[i]
13484    keylen = length(key)
13485    if (S_is_set[key]) {
13486      value = S[key]
13487      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13488      len += length(value) + length(field[++i])
13489      substed = 1
13490    } else
13491      len += 1 + keylen
13492  }
13493
13494  print line
13495}
13496
13497_ACAWK
13498_ACEOF
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13501  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13502else
13503  cat
13504fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13505  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13506_ACEOF
13507
13508# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13509# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13510# trailing colons and then remove the whole line if VPATH becomes empty
13511# (actually we leave an empty line to preserve line numbers).
13512if test "x$srcdir" = x.; then
13513  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13514h
13515s///
13516s/^/:/
13517s/[	 ]*$/:/
13518s/:\$(srcdir):/:/g
13519s/:\${srcdir}:/:/g
13520s/:@srcdir@:/:/g
13521s/^:*//
13522s/:*$//
13523x
13524s/\(=[	 ]*\).*/\1/
13525G
13526s/\n//
13527s/^[^=]*=[	 ]*$//
13528}'
13529fi
13530
13531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13532fi # test -n "$CONFIG_FILES"
13533
13534# Set up the scripts for CONFIG_HEADERS section.
13535# No need to generate them if there are no CONFIG_HEADERS.
13536# This happens for instance with `./config.status Makefile'.
13537if test -n "$CONFIG_HEADERS"; then
13538cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13539BEGIN {
13540_ACEOF
13541
13542# Transform confdefs.h into an awk script `defines.awk', embedded as
13543# here-document in config.status, that substitutes the proper values into
13544# config.h.in to produce config.h.
13545
13546# Create a delimiter string that does not exist in confdefs.h, to ease
13547# handling of long lines.
13548ac_delim='%!_!# '
13549for ac_last_try in false false :; do
13550  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13551  if test -z "$ac_tt"; then
13552    break
13553  elif $ac_last_try; then
13554    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13555  else
13556    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13557  fi
13558done
13559
13560# For the awk script, D is an array of macro values keyed by name,
13561# likewise P contains macro parameters if any.  Preserve backslash
13562# newline sequences.
13563
13564ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13565sed -n '
13566s/.\{148\}/&'"$ac_delim"'/g
13567t rset
13568:rset
13569s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13570t def
13571d
13572:def
13573s/\\$//
13574t bsnl
13575s/["\\]/\\&/g
13576s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13577D["\1"]=" \3"/p
13578s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13579d
13580:bsnl
13581s/["\\]/\\&/g
13582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13583D["\1"]=" \3\\\\\\n"\\/p
13584t cont
13585s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13586t cont
13587d
13588:cont
13589n
13590s/.\{148\}/&'"$ac_delim"'/g
13591t clear
13592:clear
13593s/\\$//
13594t bsnlc
13595s/["\\]/\\&/g; s/^/"/; s/$/"/p
13596d
13597:bsnlc
13598s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13599b cont
13600' <confdefs.h | sed '
13601s/'"$ac_delim"'/"\\\
13602"/g' >>$CONFIG_STATUS || ac_write_fail=1
13603
13604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13605  for (key in D) D_is_set[key] = 1
13606  FS = ""
13607}
13608/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13609  line = \$ 0
13610  split(line, arg, " ")
13611  if (arg[1] == "#") {
13612    defundef = arg[2]
13613    mac1 = arg[3]
13614  } else {
13615    defundef = substr(arg[1], 2)
13616    mac1 = arg[2]
13617  }
13618  split(mac1, mac2, "(") #)
13619  macro = mac2[1]
13620  prefix = substr(line, 1, index(line, defundef) - 1)
13621  if (D_is_set[macro]) {
13622    # Preserve the white space surrounding the "#".
13623    print prefix "define", macro P[macro] D[macro]
13624    next
13625  } else {
13626    # Replace #undef with comments.  This is necessary, for example,
13627    # in the case of _POSIX_SOURCE, which is predefined and required
13628    # on some systems where configure will not decide to define it.
13629    if (defundef == "undef") {
13630      print "/*", prefix defundef, macro, "*/"
13631      next
13632    }
13633  }
13634}
13635{ print }
13636_ACAWK
13637_ACEOF
13638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13639  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13640fi # test -n "$CONFIG_HEADERS"
13641
13642
13643eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13644shift
13645for ac_tag
13646do
13647  case $ac_tag in
13648  :[FHLC]) ac_mode=$ac_tag; continue;;
13649  esac
13650  case $ac_mode$ac_tag in
13651  :[FHL]*:*);;
13652  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13653  :[FH]-) ac_tag=-:-;;
13654  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13655  esac
13656  ac_save_IFS=$IFS
13657  IFS=:
13658  set x $ac_tag
13659  IFS=$ac_save_IFS
13660  shift
13661  ac_file=$1
13662  shift
13663
13664  case $ac_mode in
13665  :L) ac_source=$1;;
13666  :[FH])
13667    ac_file_inputs=
13668    for ac_f
13669    do
13670      case $ac_f in
13671      -) ac_f="$ac_tmp/stdin";;
13672      *) # Look for the file first in the build tree, then in the source tree
13673	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13674	 # because $ac_f cannot contain `:'.
13675	 test -f "$ac_f" ||
13676	   case $ac_f in
13677	   [\\/$]*) false;;
13678	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13679	   esac ||
13680	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13681      esac
13682      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13683      as_fn_append ac_file_inputs " '$ac_f'"
13684    done
13685
13686    # Let's still pretend it is `configure' which instantiates (i.e., don't
13687    # use $as_me), people would be surprised to read:
13688    #    /* config.h.  Generated by config.status.  */
13689    configure_input='Generated from '`
13690	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13691	`' by configure.'
13692    if test x"$ac_file" != x-; then
13693      configure_input="$ac_file.  $configure_input"
13694      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13695$as_echo "$as_me: creating $ac_file" >&6;}
13696    fi
13697    # Neutralize special characters interpreted by sed in replacement strings.
13698    case $configure_input in #(
13699    *\&* | *\|* | *\\* )
13700       ac_sed_conf_input=`$as_echo "$configure_input" |
13701       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13702    *) ac_sed_conf_input=$configure_input;;
13703    esac
13704
13705    case $ac_tag in
13706    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13707      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13708    esac
13709    ;;
13710  esac
13711
13712  ac_dir=`$as_dirname -- "$ac_file" ||
13713$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13714	 X"$ac_file" : 'X\(//\)[^/]' \| \
13715	 X"$ac_file" : 'X\(//\)$' \| \
13716	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13717$as_echo X"$ac_file" |
13718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13719	    s//\1/
13720	    q
13721	  }
13722	  /^X\(\/\/\)[^/].*/{
13723	    s//\1/
13724	    q
13725	  }
13726	  /^X\(\/\/\)$/{
13727	    s//\1/
13728	    q
13729	  }
13730	  /^X\(\/\).*/{
13731	    s//\1/
13732	    q
13733	  }
13734	  s/.*/./; q'`
13735  as_dir="$ac_dir"; as_fn_mkdir_p
13736  ac_builddir=.
13737
13738case "$ac_dir" in
13739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13740*)
13741  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13742  # A ".." for each directory in $ac_dir_suffix.
13743  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13744  case $ac_top_builddir_sub in
13745  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13746  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13747  esac ;;
13748esac
13749ac_abs_top_builddir=$ac_pwd
13750ac_abs_builddir=$ac_pwd$ac_dir_suffix
13751# for backward compatibility:
13752ac_top_builddir=$ac_top_build_prefix
13753
13754case $srcdir in
13755  .)  # We are building in place.
13756    ac_srcdir=.
13757    ac_top_srcdir=$ac_top_builddir_sub
13758    ac_abs_top_srcdir=$ac_pwd ;;
13759  [\\/]* | ?:[\\/]* )  # Absolute name.
13760    ac_srcdir=$srcdir$ac_dir_suffix;
13761    ac_top_srcdir=$srcdir
13762    ac_abs_top_srcdir=$srcdir ;;
13763  *) # Relative name.
13764    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13765    ac_top_srcdir=$ac_top_build_prefix$srcdir
13766    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13767esac
13768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13769
13770
13771  case $ac_mode in
13772  :F)
13773  #
13774  # CONFIG_FILE
13775  #
13776
13777  case $INSTALL in
13778  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13779  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13780  esac
13781_ACEOF
13782
13783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13784# If the template does not know about datarootdir, expand it.
13785# FIXME: This hack should be removed a few years after 2.60.
13786ac_datarootdir_hack=; ac_datarootdir_seen=
13787ac_sed_dataroot='
13788/datarootdir/ {
13789  p
13790  q
13791}
13792/@datadir@/p
13793/@docdir@/p
13794/@infodir@/p
13795/@localedir@/p
13796/@mandir@/p'
13797case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13798*datarootdir*) ac_datarootdir_seen=yes;;
13799*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13801$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13802_ACEOF
13803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804  ac_datarootdir_hack='
13805  s&@datadir@&$datadir&g
13806  s&@docdir@&$docdir&g
13807  s&@infodir@&$infodir&g
13808  s&@localedir@&$localedir&g
13809  s&@mandir@&$mandir&g
13810  s&\\\${datarootdir}&$datarootdir&g' ;;
13811esac
13812_ACEOF
13813
13814# Neutralize VPATH when `$srcdir' = `.'.
13815# Shell code in configure.ac might set extrasub.
13816# FIXME: do we really want to maintain this feature?
13817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13818ac_sed_extra="$ac_vpsub
13819$extrasub
13820_ACEOF
13821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822:t
13823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13824s|@configure_input@|$ac_sed_conf_input|;t t
13825s&@top_builddir@&$ac_top_builddir_sub&;t t
13826s&@top_build_prefix@&$ac_top_build_prefix&;t t
13827s&@srcdir@&$ac_srcdir&;t t
13828s&@abs_srcdir@&$ac_abs_srcdir&;t t
13829s&@top_srcdir@&$ac_top_srcdir&;t t
13830s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13831s&@builddir@&$ac_builddir&;t t
13832s&@abs_builddir@&$ac_abs_builddir&;t t
13833s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13834s&@INSTALL@&$ac_INSTALL&;t t
13835$ac_datarootdir_hack
13836"
13837eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13838  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13839
13840test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13841  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13842  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13843      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13844  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13845which seems to be undefined.  Please make sure it is defined" >&5
13846$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13847which seems to be undefined.  Please make sure it is defined" >&2;}
13848
13849  rm -f "$ac_tmp/stdin"
13850  case $ac_file in
13851  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13852  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13853  esac \
13854  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13855 ;;
13856  :H)
13857  #
13858  # CONFIG_HEADER
13859  #
13860  if test x"$ac_file" != x-; then
13861    {
13862      $as_echo "/* $configure_input  */" \
13863      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13864    } >"$ac_tmp/config.h" \
13865      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13866    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13867      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13868$as_echo "$as_me: $ac_file is unchanged" >&6;}
13869    else
13870      rm -f "$ac_file"
13871      mv "$ac_tmp/config.h" "$ac_file" \
13872	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13873    fi
13874  else
13875    $as_echo "/* $configure_input  */" \
13876      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13877      || as_fn_error $? "could not create -" "$LINENO" 5
13878  fi
13879 ;;
13880
13881  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13882$as_echo "$as_me: executing $ac_file commands" >&6;}
13883 ;;
13884  esac
13885
13886
13887  case $ac_file$ac_mode in
13888    "include/jemalloc/internal/public_symbols.txt":C)
13889  f="${objroot}include/jemalloc/internal/public_symbols.txt"
13890  mkdir -p "${objroot}include/jemalloc/internal"
13891  cp /dev/null "${f}"
13892  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13893    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13894    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13895    echo "${n}:${m}" >> "${f}"
13896        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13897  done
13898  for sym in ${public_syms} ; do
13899    n="${sym}"
13900    m="${JEMALLOC_PREFIX}${sym}"
13901    echo "${n}:${m}" >> "${f}"
13902  done
13903 ;;
13904    "include/jemalloc/internal/private_symbols.awk":C)
13905  f="${objroot}include/jemalloc/internal/private_symbols.awk"
13906  mkdir -p "${objroot}include/jemalloc/internal"
13907  export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13908  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13909 ;;
13910    "include/jemalloc/internal/private_symbols_jet.awk":C)
13911  f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13912  mkdir -p "${objroot}include/jemalloc/internal"
13913  export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13914  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13915 ;;
13916    "include/jemalloc/internal/public_namespace.h":C)
13917  mkdir -p "${objroot}include/jemalloc/internal"
13918  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13919 ;;
13920    "include/jemalloc/internal/public_unnamespace.h":C)
13921  mkdir -p "${objroot}include/jemalloc/internal"
13922  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13923 ;;
13924    "include/jemalloc/jemalloc_protos_jet.h":C)
13925  mkdir -p "${objroot}include/jemalloc"
13926  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13927 ;;
13928    "include/jemalloc/jemalloc_rename.h":C)
13929  mkdir -p "${objroot}include/jemalloc"
13930  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13931 ;;
13932    "include/jemalloc/jemalloc_mangle.h":C)
13933  mkdir -p "${objroot}include/jemalloc"
13934  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13935 ;;
13936    "include/jemalloc/jemalloc_mangle_jet.h":C)
13937  mkdir -p "${objroot}include/jemalloc"
13938  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13939 ;;
13940    "include/jemalloc/jemalloc.h":C)
13941  mkdir -p "${objroot}include/jemalloc"
13942  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13943 ;;
13944
13945  esac
13946done # for ac_tag
13947
13948
13949as_fn_exit 0
13950_ACEOF
13951ac_clean_files=$ac_clean_files_save
13952
13953test $ac_write_fail = 0 ||
13954  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13955
13956
13957# configure is writing to config.log, and then calls config.status.
13958# config.status does its own redirection, appending to config.log.
13959# Unfortunately, on DOS this fails, as config.log is still kept open
13960# by configure, so config.status won't be able to write to it; its
13961# output is simply discarded.  So we exec the FD to /dev/null,
13962# effectively closing config.log, so it can be properly (re)opened and
13963# appended to by config.status.  When coming back to configure, we
13964# need to make the FD available again.
13965if test "$no_create" != yes; then
13966  ac_cs_success=:
13967  ac_config_status_args=
13968  test "$silent" = yes &&
13969    ac_config_status_args="$ac_config_status_args --quiet"
13970  exec 5>/dev/null
13971  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13972  exec 5>>config.log
13973  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13974  # would make configure fail if this is the last instruction.
13975  $ac_cs_success || as_fn_exit 1
13976fi
13977if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13979$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13980fi
13981
13982
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13984$as_echo "===============================================================================" >&6; }
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
13986$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
13988$as_echo "library revision   : ${rev}" >&6; }
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13990$as_echo "" >&6; }
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
13992$as_echo "CONFIG             : ${CONFIG}" >&6; }
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
13994$as_echo "CC                 : ${CC}" >&6; }
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
13996$as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
13998$as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
14000$as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
14002$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
14004$as_echo "CXX                : ${CXX}" >&6; }
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
14006$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
14008$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
14010$as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
14012$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
14014$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
14016$as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
14018$as_echo "LIBS               : ${LIBS}" >&6; }
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
14020$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14022$as_echo "" >&6; }
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
14024$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
14026$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14028$as_echo "" >&6; }
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
14030$as_echo "PREFIX             : ${PREFIX}" >&6; }
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
14032$as_echo "BINDIR             : ${BINDIR}" >&6; }
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
14034$as_echo "DATADIR            : ${DATADIR}" >&6; }
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
14036$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
14038$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
14040$as_echo "MANDIR             : ${MANDIR}" >&6; }
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14042$as_echo "" >&6; }
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
14044$as_echo "srcroot            : ${srcroot}" >&6; }
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
14046$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
14048$as_echo "objroot            : ${objroot}" >&6; }
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
14050$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14052$as_echo "" >&6; }
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
14054$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
14056$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
14058$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
14060$as_echo "install_suffix     : ${install_suffix}" >&6; }
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
14062$as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: documentation      : ${enable_doc}" >&5
14064$as_echo "documentation      : ${enable_doc}" >&6; }
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs        : ${enable_shared}" >&5
14066$as_echo "shared libs        : ${enable_shared}" >&6; }
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs        : ${enable_static}" >&5
14068$as_echo "static libs        : ${enable_static}" >&6; }
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
14070$as_echo "autogen            : ${enable_autogen}" >&6; }
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
14072$as_echo "debug              : ${enable_debug}" >&6; }
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
14074$as_echo "stats              : ${enable_stats}" >&6; }
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: experimetal_smallocx : ${enable_experimental_smallocx}" >&5
14076$as_echo "experimetal_smallocx : ${enable_experimental_smallocx}" >&6; }
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
14078$as_echo "prof               : ${enable_prof}" >&6; }
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
14080$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
14082$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
14084$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
14086$as_echo "fill               : ${enable_fill}" >&6; }
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
14088$as_echo "utrace             : ${enable_utrace}" >&6; }
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
14090$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
14092$as_echo "log                : ${enable_log}" >&6; }
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
14094$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
14096$as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
14098$as_echo "cxx                : ${enable_cxx}" >&6; }
14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
14100$as_echo "===============================================================================" >&6; }
14101