1*d14625f7Sroot#! /bin/sh
2*d14625f7Sroot# Guess values for system-dependent variables and create Makefiles.
3*d14625f7Sroot# Generated by GNU Autoconf 2.69.
4*d14625f7Sroot#
5*d14625f7Sroot#
6*d14625f7Sroot# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7*d14625f7Sroot#
8*d14625f7Sroot#
9*d14625f7Sroot# This configure script is free software; the Free Software Foundation
10*d14625f7Sroot# gives unlimited permission to copy, distribute and modify it.
11*d14625f7Sroot## -------------------- ##
12*d14625f7Sroot## M4sh Initialization. ##
13*d14625f7Sroot## -------------------- ##
14*d14625f7Sroot
15*d14625f7Sroot# Be more Bourne compatible
16*d14625f7SrootDUALCASE=1; export DUALCASE # for MKS sh
17*d14625f7Srootif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18*d14625f7Sroot  emulate sh
19*d14625f7Sroot  NULLCMD=:
20*d14625f7Sroot  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21*d14625f7Sroot  # is contrary to our usage.  Disable this feature.
22*d14625f7Sroot  alias -g '${1+"$@"}'='"$@"'
23*d14625f7Sroot  setopt NO_GLOB_SUBST
24*d14625f7Srootelse
25*d14625f7Sroot  case `(set -o) 2>/dev/null` in #(
26*d14625f7Sroot  *posix*) :
27*d14625f7Sroot    set -o posix ;; #(
28*d14625f7Sroot  *) :
29*d14625f7Sroot     ;;
30*d14625f7Srootesac
31*d14625f7Srootfi
32*d14625f7Sroot
33*d14625f7Sroot
34*d14625f7Srootas_nl='
35*d14625f7Sroot'
36*d14625f7Srootexport as_nl
37*d14625f7Sroot# Printing a long string crashes Solaris 7 /usr/bin/printf.
38*d14625f7Srootas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39*d14625f7Srootas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40*d14625f7Srootas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41*d14625f7Sroot# Prefer a ksh shell builtin over an external printf program on Solaris,
42*d14625f7Sroot# but without wasting forks for bash or zsh.
43*d14625f7Srootif test -z "$BASH_VERSION$ZSH_VERSION" \
44*d14625f7Sroot    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45*d14625f7Sroot  as_echo='print -r --'
46*d14625f7Sroot  as_echo_n='print -rn --'
47*d14625f7Srootelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48*d14625f7Sroot  as_echo='printf %s\n'
49*d14625f7Sroot  as_echo_n='printf %s'
50*d14625f7Srootelse
51*d14625f7Sroot  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52*d14625f7Sroot    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53*d14625f7Sroot    as_echo_n='/usr/ucb/echo -n'
54*d14625f7Sroot  else
55*d14625f7Sroot    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56*d14625f7Sroot    as_echo_n_body='eval
57*d14625f7Sroot      arg=$1;
58*d14625f7Sroot      case $arg in #(
59*d14625f7Sroot      *"$as_nl"*)
60*d14625f7Sroot	expr "X$arg" : "X\\(.*\\)$as_nl";
61*d14625f7Sroot	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62*d14625f7Sroot      esac;
63*d14625f7Sroot      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64*d14625f7Sroot    '
65*d14625f7Sroot    export as_echo_n_body
66*d14625f7Sroot    as_echo_n='sh -c $as_echo_n_body as_echo'
67*d14625f7Sroot  fi
68*d14625f7Sroot  export as_echo_body
69*d14625f7Sroot  as_echo='sh -c $as_echo_body as_echo'
70*d14625f7Srootfi
71*d14625f7Sroot
72*d14625f7Sroot# The user is always right.
73*d14625f7Srootif test "${PATH_SEPARATOR+set}" != set; then
74*d14625f7Sroot  PATH_SEPARATOR=:
75*d14625f7Sroot  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76*d14625f7Sroot    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77*d14625f7Sroot      PATH_SEPARATOR=';'
78*d14625f7Sroot  }
79*d14625f7Srootfi
80*d14625f7Sroot
81*d14625f7Sroot
82*d14625f7Sroot# IFS
83*d14625f7Sroot# We need space, tab and new line, in precisely that order.  Quoting is
84*d14625f7Sroot# there to prevent editors from complaining about space-tab.
85*d14625f7Sroot# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86*d14625f7Sroot# splitting by setting IFS to empty value.)
87*d14625f7SrootIFS=" ""	$as_nl"
88*d14625f7Sroot
89*d14625f7Sroot# Find who we are.  Look in the path if we contain no directory separator.
90*d14625f7Srootas_myself=
91*d14625f7Srootcase $0 in #((
92*d14625f7Sroot  *[\\/]* ) as_myself=$0 ;;
93*d14625f7Sroot  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94*d14625f7Srootfor as_dir in $PATH
95*d14625f7Srootdo
96*d14625f7Sroot  IFS=$as_save_IFS
97*d14625f7Sroot  test -z "$as_dir" && as_dir=.
98*d14625f7Sroot    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99*d14625f7Sroot  done
100*d14625f7SrootIFS=$as_save_IFS
101*d14625f7Sroot
102*d14625f7Sroot     ;;
103*d14625f7Srootesac
104*d14625f7Sroot# We did not find ourselves, most probably we were run as `sh COMMAND'
105*d14625f7Sroot# in which case we are not to be found in the path.
106*d14625f7Srootif test "x$as_myself" = x; then
107*d14625f7Sroot  as_myself=$0
108*d14625f7Srootfi
109*d14625f7Srootif test ! -f "$as_myself"; then
110*d14625f7Sroot  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111*d14625f7Sroot  exit 1
112*d14625f7Srootfi
113*d14625f7Sroot
114*d14625f7Sroot# Unset variables that we do not need and which cause bugs (e.g. in
115*d14625f7Sroot# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116*d14625f7Sroot# suppresses any "Segmentation fault" message there.  '((' could
117*d14625f7Sroot# trigger a bug in pdksh 5.2.14.
118*d14625f7Srootfor as_var in BASH_ENV ENV MAIL MAILPATH
119*d14625f7Srootdo eval test x\${$as_var+set} = xset \
120*d14625f7Sroot  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121*d14625f7Srootdone
122*d14625f7SrootPS1='$ '
123*d14625f7SrootPS2='> '
124*d14625f7SrootPS4='+ '
125*d14625f7Sroot
126*d14625f7Sroot# NLS nuisances.
127*d14625f7SrootLC_ALL=C
128*d14625f7Srootexport LC_ALL
129*d14625f7SrootLANGUAGE=C
130*d14625f7Srootexport LANGUAGE
131*d14625f7Sroot
132*d14625f7Sroot# CDPATH.
133*d14625f7Sroot(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134*d14625f7Sroot
135*d14625f7Sroot# Use a proper internal environment variable to ensure we don't fall
136*d14625f7Sroot  # into an infinite loop, continuously re-executing ourselves.
137*d14625f7Sroot  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138*d14625f7Sroot    _as_can_reexec=no; export _as_can_reexec;
139*d14625f7Sroot    # We cannot yet assume a decent shell, so we have to provide a
140*d14625f7Sroot# neutralization value for shells without unset; and this also
141*d14625f7Sroot# works around shells that cannot unset nonexistent variables.
142*d14625f7Sroot# Preserve -v and -x to the replacement shell.
143*d14625f7SrootBASH_ENV=/dev/null
144*d14625f7SrootENV=/dev/null
145*d14625f7Sroot(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146*d14625f7Srootcase $- in # ((((
147*d14625f7Sroot  *v*x* | *x*v* ) as_opts=-vx ;;
148*d14625f7Sroot  *v* ) as_opts=-v ;;
149*d14625f7Sroot  *x* ) as_opts=-x ;;
150*d14625f7Sroot  * ) as_opts= ;;
151*d14625f7Srootesac
152*d14625f7Srootexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153*d14625f7Sroot# Admittedly, this is quite paranoid, since all the known shells bail
154*d14625f7Sroot# out after a failed `exec'.
155*d14625f7Sroot$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156*d14625f7Srootas_fn_exit 255
157*d14625f7Sroot  fi
158*d14625f7Sroot  # We don't want this to propagate to other subprocesses.
159*d14625f7Sroot          { _as_can_reexec=; unset _as_can_reexec;}
160*d14625f7Srootif test "x$CONFIG_SHELL" = x; then
161*d14625f7Sroot  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162*d14625f7Sroot  emulate sh
163*d14625f7Sroot  NULLCMD=:
164*d14625f7Sroot  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165*d14625f7Sroot  # is contrary to our usage.  Disable this feature.
166*d14625f7Sroot  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167*d14625f7Sroot  setopt NO_GLOB_SUBST
168*d14625f7Srootelse
169*d14625f7Sroot  case \`(set -o) 2>/dev/null\` in #(
170*d14625f7Sroot  *posix*) :
171*d14625f7Sroot    set -o posix ;; #(
172*d14625f7Sroot  *) :
173*d14625f7Sroot     ;;
174*d14625f7Srootesac
175*d14625f7Srootfi
176*d14625f7Sroot"
177*d14625f7Sroot  as_required="as_fn_return () { (exit \$1); }
178*d14625f7Srootas_fn_success () { as_fn_return 0; }
179*d14625f7Srootas_fn_failure () { as_fn_return 1; }
180*d14625f7Srootas_fn_ret_success () { return 0; }
181*d14625f7Srootas_fn_ret_failure () { return 1; }
182*d14625f7Sroot
183*d14625f7Srootexitcode=0
184*d14625f7Srootas_fn_success || { exitcode=1; echo as_fn_success failed.; }
185*d14625f7Srootas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186*d14625f7Srootas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187*d14625f7Srootas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188*d14625f7Srootif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189*d14625f7Sroot
190*d14625f7Srootelse
191*d14625f7Sroot  exitcode=1; echo positional parameters were not saved.
192*d14625f7Srootfi
193*d14625f7Sroottest x\$exitcode = x0 || exit 1
194*d14625f7Sroottest -x / || exit 1"
195*d14625f7Sroot  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196*d14625f7Sroot  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197*d14625f7Sroot  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198*d14625f7Sroot  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199*d14625f7Sroottest \$(( 1 + 1 )) = 2 || exit 1"
200*d14625f7Sroot  if (eval "$as_required") 2>/dev/null; then :
201*d14625f7Sroot  as_have_required=yes
202*d14625f7Srootelse
203*d14625f7Sroot  as_have_required=no
204*d14625f7Srootfi
205*d14625f7Sroot  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206*d14625f7Sroot
207*d14625f7Srootelse
208*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209*d14625f7Srootas_found=false
210*d14625f7Srootfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211*d14625f7Srootdo
212*d14625f7Sroot  IFS=$as_save_IFS
213*d14625f7Sroot  test -z "$as_dir" && as_dir=.
214*d14625f7Sroot  as_found=:
215*d14625f7Sroot  case $as_dir in #(
216*d14625f7Sroot	 /*)
217*d14625f7Sroot	   for as_base in sh bash ksh sh5; do
218*d14625f7Sroot	     # Try only shells that exist, to save several forks.
219*d14625f7Sroot	     as_shell=$as_dir/$as_base
220*d14625f7Sroot	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221*d14625f7Sroot		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222*d14625f7Sroot  CONFIG_SHELL=$as_shell as_have_required=yes
223*d14625f7Sroot		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224*d14625f7Sroot  break 2
225*d14625f7Srootfi
226*d14625f7Srootfi
227*d14625f7Sroot	   done;;
228*d14625f7Sroot       esac
229*d14625f7Sroot  as_found=false
230*d14625f7Srootdone
231*d14625f7Sroot$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232*d14625f7Sroot	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233*d14625f7Sroot  CONFIG_SHELL=$SHELL as_have_required=yes
234*d14625f7Srootfi; }
235*d14625f7SrootIFS=$as_save_IFS
236*d14625f7Sroot
237*d14625f7Sroot
238*d14625f7Sroot      if test "x$CONFIG_SHELL" != x; then :
239*d14625f7Sroot  export CONFIG_SHELL
240*d14625f7Sroot             # We cannot yet assume a decent shell, so we have to provide a
241*d14625f7Sroot# neutralization value for shells without unset; and this also
242*d14625f7Sroot# works around shells that cannot unset nonexistent variables.
243*d14625f7Sroot# Preserve -v and -x to the replacement shell.
244*d14625f7SrootBASH_ENV=/dev/null
245*d14625f7SrootENV=/dev/null
246*d14625f7Sroot(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247*d14625f7Srootcase $- in # ((((
248*d14625f7Sroot  *v*x* | *x*v* ) as_opts=-vx ;;
249*d14625f7Sroot  *v* ) as_opts=-v ;;
250*d14625f7Sroot  *x* ) as_opts=-x ;;
251*d14625f7Sroot  * ) as_opts= ;;
252*d14625f7Srootesac
253*d14625f7Srootexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254*d14625f7Sroot# Admittedly, this is quite paranoid, since all the known shells bail
255*d14625f7Sroot# out after a failed `exec'.
256*d14625f7Sroot$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257*d14625f7Srootexit 255
258*d14625f7Srootfi
259*d14625f7Sroot
260*d14625f7Sroot    if test x$as_have_required = xno; then :
261*d14625f7Sroot  $as_echo "$0: This script requires a shell more modern than all"
262*d14625f7Sroot  $as_echo "$0: the shells that I found on your system."
263*d14625f7Sroot  if test x${ZSH_VERSION+set} = xset ; then
264*d14625f7Sroot    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265*d14625f7Sroot    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266*d14625f7Sroot  else
267*d14625f7Sroot    $as_echo "$0: Please tell [email protected] about your system,
268*d14625f7Sroot$0: including any error possibly output before this
269*d14625f7Sroot$0: message. Then install a modern shell, or manually run
270*d14625f7Sroot$0: the script under such a shell if you do have one."
271*d14625f7Sroot  fi
272*d14625f7Sroot  exit 1
273*d14625f7Srootfi
274*d14625f7Srootfi
275*d14625f7Srootfi
276*d14625f7SrootSHELL=${CONFIG_SHELL-/bin/sh}
277*d14625f7Srootexport SHELL
278*d14625f7Sroot# Unset more variables known to interfere with behavior of common tools.
279*d14625f7SrootCLICOLOR_FORCE= GREP_OPTIONS=
280*d14625f7Srootunset CLICOLOR_FORCE GREP_OPTIONS
281*d14625f7Sroot
282*d14625f7Sroot## --------------------- ##
283*d14625f7Sroot## M4sh Shell Functions. ##
284*d14625f7Sroot## --------------------- ##
285*d14625f7Sroot# as_fn_unset VAR
286*d14625f7Sroot# ---------------
287*d14625f7Sroot# Portably unset VAR.
288*d14625f7Srootas_fn_unset ()
289*d14625f7Sroot{
290*d14625f7Sroot  { eval $1=; unset $1;}
291*d14625f7Sroot}
292*d14625f7Srootas_unset=as_fn_unset
293*d14625f7Sroot
294*d14625f7Sroot# as_fn_set_status STATUS
295*d14625f7Sroot# -----------------------
296*d14625f7Sroot# Set $? to STATUS, without forking.
297*d14625f7Srootas_fn_set_status ()
298*d14625f7Sroot{
299*d14625f7Sroot  return $1
300*d14625f7Sroot} # as_fn_set_status
301*d14625f7Sroot
302*d14625f7Sroot# as_fn_exit STATUS
303*d14625f7Sroot# -----------------
304*d14625f7Sroot# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305*d14625f7Srootas_fn_exit ()
306*d14625f7Sroot{
307*d14625f7Sroot  set +e
308*d14625f7Sroot  as_fn_set_status $1
309*d14625f7Sroot  exit $1
310*d14625f7Sroot} # as_fn_exit
311*d14625f7Sroot
312*d14625f7Sroot# as_fn_mkdir_p
313*d14625f7Sroot# -------------
314*d14625f7Sroot# Create "$as_dir" as a directory, including parents if necessary.
315*d14625f7Srootas_fn_mkdir_p ()
316*d14625f7Sroot{
317*d14625f7Sroot
318*d14625f7Sroot  case $as_dir in #(
319*d14625f7Sroot  -*) as_dir=./$as_dir;;
320*d14625f7Sroot  esac
321*d14625f7Sroot  test -d "$as_dir" || eval $as_mkdir_p || {
322*d14625f7Sroot    as_dirs=
323*d14625f7Sroot    while :; do
324*d14625f7Sroot      case $as_dir in #(
325*d14625f7Sroot      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326*d14625f7Sroot      *) as_qdir=$as_dir;;
327*d14625f7Sroot      esac
328*d14625f7Sroot      as_dirs="'$as_qdir' $as_dirs"
329*d14625f7Sroot      as_dir=`$as_dirname -- "$as_dir" ||
330*d14625f7Sroot$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331*d14625f7Sroot	 X"$as_dir" : 'X\(//\)[^/]' \| \
332*d14625f7Sroot	 X"$as_dir" : 'X\(//\)$' \| \
333*d14625f7Sroot	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334*d14625f7Sroot$as_echo X"$as_dir" |
335*d14625f7Sroot    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336*d14625f7Sroot	    s//\1/
337*d14625f7Sroot	    q
338*d14625f7Sroot	  }
339*d14625f7Sroot	  /^X\(\/\/\)[^/].*/{
340*d14625f7Sroot	    s//\1/
341*d14625f7Sroot	    q
342*d14625f7Sroot	  }
343*d14625f7Sroot	  /^X\(\/\/\)$/{
344*d14625f7Sroot	    s//\1/
345*d14625f7Sroot	    q
346*d14625f7Sroot	  }
347*d14625f7Sroot	  /^X\(\/\).*/{
348*d14625f7Sroot	    s//\1/
349*d14625f7Sroot	    q
350*d14625f7Sroot	  }
351*d14625f7Sroot	  s/.*/./; q'`
352*d14625f7Sroot      test -d "$as_dir" && break
353*d14625f7Sroot    done
354*d14625f7Sroot    test -z "$as_dirs" || eval "mkdir $as_dirs"
355*d14625f7Sroot  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356*d14625f7Sroot
357*d14625f7Sroot
358*d14625f7Sroot} # as_fn_mkdir_p
359*d14625f7Sroot
360*d14625f7Sroot# as_fn_executable_p FILE
361*d14625f7Sroot# -----------------------
362*d14625f7Sroot# Test if FILE is an executable regular file.
363*d14625f7Srootas_fn_executable_p ()
364*d14625f7Sroot{
365*d14625f7Sroot  test -f "$1" && test -x "$1"
366*d14625f7Sroot} # as_fn_executable_p
367*d14625f7Sroot# as_fn_append VAR VALUE
368*d14625f7Sroot# ----------------------
369*d14625f7Sroot# Append the text in VALUE to the end of the definition contained in VAR. Take
370*d14625f7Sroot# advantage of any shell optimizations that allow amortized linear growth over
371*d14625f7Sroot# repeated appends, instead of the typical quadratic growth present in naive
372*d14625f7Sroot# implementations.
373*d14625f7Srootif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374*d14625f7Sroot  eval 'as_fn_append ()
375*d14625f7Sroot  {
376*d14625f7Sroot    eval $1+=\$2
377*d14625f7Sroot  }'
378*d14625f7Srootelse
379*d14625f7Sroot  as_fn_append ()
380*d14625f7Sroot  {
381*d14625f7Sroot    eval $1=\$$1\$2
382*d14625f7Sroot  }
383*d14625f7Srootfi # as_fn_append
384*d14625f7Sroot
385*d14625f7Sroot# as_fn_arith ARG...
386*d14625f7Sroot# ------------------
387*d14625f7Sroot# Perform arithmetic evaluation on the ARGs, and store the result in the
388*d14625f7Sroot# global $as_val. Take advantage of shells that can avoid forks. The arguments
389*d14625f7Sroot# must be portable across $(()) and expr.
390*d14625f7Srootif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391*d14625f7Sroot  eval 'as_fn_arith ()
392*d14625f7Sroot  {
393*d14625f7Sroot    as_val=$(( $* ))
394*d14625f7Sroot  }'
395*d14625f7Srootelse
396*d14625f7Sroot  as_fn_arith ()
397*d14625f7Sroot  {
398*d14625f7Sroot    as_val=`expr "$@" || test $? -eq 1`
399*d14625f7Sroot  }
400*d14625f7Srootfi # as_fn_arith
401*d14625f7Sroot
402*d14625f7Sroot
403*d14625f7Sroot# as_fn_error STATUS ERROR [LINENO LOG_FD]
404*d14625f7Sroot# ----------------------------------------
405*d14625f7Sroot# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406*d14625f7Sroot# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407*d14625f7Sroot# script with STATUS, using 1 if that was 0.
408*d14625f7Srootas_fn_error ()
409*d14625f7Sroot{
410*d14625f7Sroot  as_status=$1; test $as_status -eq 0 && as_status=1
411*d14625f7Sroot  if test "$4"; then
412*d14625f7Sroot    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414*d14625f7Sroot  fi
415*d14625f7Sroot  $as_echo "$as_me: error: $2" >&2
416*d14625f7Sroot  as_fn_exit $as_status
417*d14625f7Sroot} # as_fn_error
418*d14625f7Sroot
419*d14625f7Srootif expr a : '\(a\)' >/dev/null 2>&1 &&
420*d14625f7Sroot   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421*d14625f7Sroot  as_expr=expr
422*d14625f7Srootelse
423*d14625f7Sroot  as_expr=false
424*d14625f7Srootfi
425*d14625f7Sroot
426*d14625f7Srootif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427*d14625f7Sroot  as_basename=basename
428*d14625f7Srootelse
429*d14625f7Sroot  as_basename=false
430*d14625f7Srootfi
431*d14625f7Sroot
432*d14625f7Srootif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433*d14625f7Sroot  as_dirname=dirname
434*d14625f7Srootelse
435*d14625f7Sroot  as_dirname=false
436*d14625f7Srootfi
437*d14625f7Sroot
438*d14625f7Srootas_me=`$as_basename -- "$0" ||
439*d14625f7Sroot$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440*d14625f7Sroot	 X"$0" : 'X\(//\)$' \| \
441*d14625f7Sroot	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442*d14625f7Sroot$as_echo X/"$0" |
443*d14625f7Sroot    sed '/^.*\/\([^/][^/]*\)\/*$/{
444*d14625f7Sroot	    s//\1/
445*d14625f7Sroot	    q
446*d14625f7Sroot	  }
447*d14625f7Sroot	  /^X\/\(\/\/\)$/{
448*d14625f7Sroot	    s//\1/
449*d14625f7Sroot	    q
450*d14625f7Sroot	  }
451*d14625f7Sroot	  /^X\/\(\/\).*/{
452*d14625f7Sroot	    s//\1/
453*d14625f7Sroot	    q
454*d14625f7Sroot	  }
455*d14625f7Sroot	  s/.*/./; q'`
456*d14625f7Sroot
457*d14625f7Sroot# Avoid depending upon Character Ranges.
458*d14625f7Srootas_cr_letters='abcdefghijklmnopqrstuvwxyz'
459*d14625f7Srootas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460*d14625f7Srootas_cr_Letters=$as_cr_letters$as_cr_LETTERS
461*d14625f7Srootas_cr_digits='0123456789'
462*d14625f7Srootas_cr_alnum=$as_cr_Letters$as_cr_digits
463*d14625f7Sroot
464*d14625f7Sroot
465*d14625f7Sroot  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466*d14625f7Sroot  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467*d14625f7Sroot  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468*d14625f7Sroot  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469*d14625f7Sroot  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470*d14625f7Sroot  sed -n '
471*d14625f7Sroot    p
472*d14625f7Sroot    /[$]LINENO/=
473*d14625f7Sroot  ' <$as_myself |
474*d14625f7Sroot    sed '
475*d14625f7Sroot      s/[$]LINENO.*/&-/
476*d14625f7Sroot      t lineno
477*d14625f7Sroot      b
478*d14625f7Sroot      :lineno
479*d14625f7Sroot      N
480*d14625f7Sroot      :loop
481*d14625f7Sroot      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482*d14625f7Sroot      t loop
483*d14625f7Sroot      s/-\n.*//
484*d14625f7Sroot    ' >$as_me.lineno &&
485*d14625f7Sroot  chmod +x "$as_me.lineno" ||
486*d14625f7Sroot    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487*d14625f7Sroot
488*d14625f7Sroot  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489*d14625f7Sroot  # already done that, so ensure we don't try to do so again and fall
490*d14625f7Sroot  # in an infinite loop.  This has already happened in practice.
491*d14625f7Sroot  _as_can_reexec=no; export _as_can_reexec
492*d14625f7Sroot  # Don't try to exec as it changes $[0], causing all sort of problems
493*d14625f7Sroot  # (the dirname of $[0] is not the place where we might find the
494*d14625f7Sroot  # original and so on.  Autoconf is especially sensitive to this).
495*d14625f7Sroot  . "./$as_me.lineno"
496*d14625f7Sroot  # Exit status is that of the last command.
497*d14625f7Sroot  exit
498*d14625f7Sroot}
499*d14625f7Sroot
500*d14625f7SrootECHO_C= ECHO_N= ECHO_T=
501*d14625f7Srootcase `echo -n x` in #(((((
502*d14625f7Sroot-n*)
503*d14625f7Sroot  case `echo 'xy\c'` in
504*d14625f7Sroot  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505*d14625f7Sroot  xy)  ECHO_C='\c';;
506*d14625f7Sroot  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507*d14625f7Sroot       ECHO_T='	';;
508*d14625f7Sroot  esac;;
509*d14625f7Sroot*)
510*d14625f7Sroot  ECHO_N='-n';;
511*d14625f7Srootesac
512*d14625f7Sroot
513*d14625f7Srootrm -f conf$$ conf$$.exe conf$$.file
514*d14625f7Srootif test -d conf$$.dir; then
515*d14625f7Sroot  rm -f conf$$.dir/conf$$.file
516*d14625f7Srootelse
517*d14625f7Sroot  rm -f conf$$.dir
518*d14625f7Sroot  mkdir conf$$.dir 2>/dev/null
519*d14625f7Srootfi
520*d14625f7Srootif (echo >conf$$.file) 2>/dev/null; then
521*d14625f7Sroot  if ln -s conf$$.file conf$$ 2>/dev/null; then
522*d14625f7Sroot    as_ln_s='ln -s'
523*d14625f7Sroot    # ... but there are two gotchas:
524*d14625f7Sroot    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525*d14625f7Sroot    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526*d14625f7Sroot    # In both cases, we have to default to `cp -pR'.
527*d14625f7Sroot    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528*d14625f7Sroot      as_ln_s='cp -pR'
529*d14625f7Sroot  elif ln conf$$.file conf$$ 2>/dev/null; then
530*d14625f7Sroot    as_ln_s=ln
531*d14625f7Sroot  else
532*d14625f7Sroot    as_ln_s='cp -pR'
533*d14625f7Sroot  fi
534*d14625f7Srootelse
535*d14625f7Sroot  as_ln_s='cp -pR'
536*d14625f7Srootfi
537*d14625f7Srootrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538*d14625f7Srootrmdir conf$$.dir 2>/dev/null
539*d14625f7Sroot
540*d14625f7Srootif mkdir -p . 2>/dev/null; then
541*d14625f7Sroot  as_mkdir_p='mkdir -p "$as_dir"'
542*d14625f7Srootelse
543*d14625f7Sroot  test -d ./-p && rmdir ./-p
544*d14625f7Sroot  as_mkdir_p=false
545*d14625f7Srootfi
546*d14625f7Sroot
547*d14625f7Srootas_test_x='test -x'
548*d14625f7Srootas_executable_p=as_fn_executable_p
549*d14625f7Sroot
550*d14625f7Sroot# Sed expression to map a string onto a valid CPP name.
551*d14625f7Srootas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552*d14625f7Sroot
553*d14625f7Sroot# Sed expression to map a string onto a valid variable name.
554*d14625f7Srootas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555*d14625f7Sroot
556*d14625f7Sroot
557*d14625f7Sroottest -n "$DJDIR" || exec 7<&0 </dev/null
558*d14625f7Srootexec 6>&1
559*d14625f7Sroot
560*d14625f7Sroot# Name of the host.
561*d14625f7Sroot# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562*d14625f7Sroot# so uname gets run too.
563*d14625f7Srootac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564*d14625f7Sroot
565*d14625f7Sroot#
566*d14625f7Sroot# Initializations.
567*d14625f7Sroot#
568*d14625f7Srootac_default_prefix=/usr/local
569*d14625f7Srootac_clean_files=
570*d14625f7Srootac_config_libobj_dir=.
571*d14625f7SrootLIBOBJS=
572*d14625f7Srootcross_compiling=no
573*d14625f7Srootsubdirs=
574*d14625f7SrootMFLAGS=
575*d14625f7SrootMAKEFLAGS=
576*d14625f7Sroot
577*d14625f7Sroot# Identity of this package.
578*d14625f7SrootPACKAGE_NAME=
579*d14625f7SrootPACKAGE_TARNAME=
580*d14625f7SrootPACKAGE_VERSION=
581*d14625f7SrootPACKAGE_STRING=
582*d14625f7SrootPACKAGE_BUGREPORT=
583*d14625f7SrootPACKAGE_URL=
584*d14625f7Sroot
585*d14625f7Srootac_unique_file="Makefile.in"
586*d14625f7Sroot# Factoring default headers for most tests.
587*d14625f7Srootac_includes_default="\
588*d14625f7Sroot#include <stdio.h>
589*d14625f7Sroot#ifdef HAVE_SYS_TYPES_H
590*d14625f7Sroot# include <sys/types.h>
591*d14625f7Sroot#endif
592*d14625f7Sroot#ifdef HAVE_SYS_STAT_H
593*d14625f7Sroot# include <sys/stat.h>
594*d14625f7Sroot#endif
595*d14625f7Sroot#ifdef STDC_HEADERS
596*d14625f7Sroot# include <stdlib.h>
597*d14625f7Sroot# include <stddef.h>
598*d14625f7Sroot#else
599*d14625f7Sroot# ifdef HAVE_STDLIB_H
600*d14625f7Sroot#  include <stdlib.h>
601*d14625f7Sroot# endif
602*d14625f7Sroot#endif
603*d14625f7Sroot#ifdef HAVE_STRING_H
604*d14625f7Sroot# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605*d14625f7Sroot#  include <memory.h>
606*d14625f7Sroot# endif
607*d14625f7Sroot# include <string.h>
608*d14625f7Sroot#endif
609*d14625f7Sroot#ifdef HAVE_STRINGS_H
610*d14625f7Sroot# include <strings.h>
611*d14625f7Sroot#endif
612*d14625f7Sroot#ifdef HAVE_INTTYPES_H
613*d14625f7Sroot# include <inttypes.h>
614*d14625f7Sroot#endif
615*d14625f7Sroot#ifdef HAVE_STDINT_H
616*d14625f7Sroot# include <stdint.h>
617*d14625f7Sroot#endif
618*d14625f7Sroot#ifdef HAVE_UNISTD_H
619*d14625f7Sroot# include <unistd.h>
620*d14625f7Sroot#endif"
621*d14625f7Sroot
622*d14625f7Srootac_subst_vars='LTLIBOBJS
623*d14625f7SrootLIBOBJS
624*d14625f7Srootcfgoutputs_out
625*d14625f7Srootcfgoutputs_in
626*d14625f7Srootcfghdrs_out
627*d14625f7Srootcfghdrs_in
628*d14625f7Srootenable_initial_exec_tls
629*d14625f7Srootenable_zone_allocator
630*d14625f7Srootenable_tls
631*d14625f7Srootenable_lazy_lock
632*d14625f7Srootjemalloc_version_gid
633*d14625f7Srootjemalloc_version_nrev
634*d14625f7Srootjemalloc_version_bugfix
635*d14625f7Srootjemalloc_version_minor
636*d14625f7Srootjemalloc_version_major
637*d14625f7Srootjemalloc_version
638*d14625f7Srootenable_log
639*d14625f7Srootenable_cache_oblivious
640*d14625f7Srootenable_xmalloc
641*d14625f7Srootenable_utrace
642*d14625f7Srootenable_fill
643*d14625f7Srootenable_prof
644*d14625f7Srootenable_stats
645*d14625f7Srootenable_debug
646*d14625f7Srootje_
647*d14625f7Srootinstall_suffix
648*d14625f7Srootprivate_namespace
649*d14625f7SrootJEMALLOC_CPREFIX
650*d14625f7SrootJEMALLOC_PREFIX
651*d14625f7SrootAUTOCONF
652*d14625f7SrootLD
653*d14625f7SrootRANLIB
654*d14625f7SrootINSTALL_DATA
655*d14625f7SrootINSTALL_SCRIPT
656*d14625f7SrootINSTALL_PROGRAM
657*d14625f7Srootenable_autogen
658*d14625f7SrootRPATH_EXTRA
659*d14625f7SrootLM
660*d14625f7SrootCC_MM
661*d14625f7SrootDUMP_SYMS
662*d14625f7SrootAROUT
663*d14625f7SrootARFLAGS
664*d14625f7SrootMKLIB
665*d14625f7SrootTEST_LD_MODE
666*d14625f7SrootLDTARGET
667*d14625f7SrootCTARGET
668*d14625f7SrootPIC_CFLAGS
669*d14625f7SrootSOREV
670*d14625f7SrootEXTRA_LDFLAGS
671*d14625f7SrootDSO_LDFLAGS
672*d14625f7Srootlink_whole_archive
673*d14625f7Srootlibprefix
674*d14625f7Srootexe
675*d14625f7Sroota
676*d14625f7Srooto
677*d14625f7Srootimportlib
678*d14625f7Srootso
679*d14625f7SrootLD_PRELOAD_VAR
680*d14625f7SrootRPATH
681*d14625f7Srootabi
682*d14625f7SrootAWK
683*d14625f7SrootNM
684*d14625f7SrootAR
685*d14625f7Sroothost_os
686*d14625f7Sroothost_vendor
687*d14625f7Sroothost_cpu
688*d14625f7Sroothost
689*d14625f7Srootbuild_os
690*d14625f7Srootbuild_vendor
691*d14625f7Srootbuild_cpu
692*d14625f7Srootbuild
693*d14625f7SrootEGREP
694*d14625f7SrootGREP
695*d14625f7SrootEXTRA_CXXFLAGS
696*d14625f7SrootSPECIFIED_CXXFLAGS
697*d14625f7SrootCONFIGURE_CXXFLAGS
698*d14625f7Srootenable_cxx
699*d14625f7SrootHAVE_CXX14
700*d14625f7Srootac_ct_CXX
701*d14625f7SrootCXXFLAGS
702*d14625f7SrootCXX
703*d14625f7SrootCPP
704*d14625f7SrootEXTRA_CFLAGS
705*d14625f7SrootSPECIFIED_CFLAGS
706*d14625f7SrootCONFIGURE_CFLAGS
707*d14625f7SrootOBJEXT
708*d14625f7SrootEXEEXT
709*d14625f7Srootac_ct_CC
710*d14625f7SrootCPPFLAGS
711*d14625f7SrootLDFLAGS
712*d14625f7SrootCFLAGS
713*d14625f7SrootCC
714*d14625f7SrootXSLROOT
715*d14625f7SrootXSLTPROC
716*d14625f7SrootMANDIR
717*d14625f7SrootDATADIR
718*d14625f7SrootLIBDIR
719*d14625f7SrootINCLUDEDIR
720*d14625f7SrootBINDIR
721*d14625f7SrootPREFIX
722*d14625f7Srootabs_objroot
723*d14625f7Srootobjroot
724*d14625f7Srootabs_srcroot
725*d14625f7Srootsrcroot
726*d14625f7Srootrev
727*d14625f7SrootCONFIG
728*d14625f7Sroottarget_alias
729*d14625f7Sroothost_alias
730*d14625f7Srootbuild_alias
731*d14625f7SrootLIBS
732*d14625f7SrootECHO_T
733*d14625f7SrootECHO_N
734*d14625f7SrootECHO_C
735*d14625f7SrootDEFS
736*d14625f7Srootmandir
737*d14625f7Srootlocaledir
738*d14625f7Srootlibdir
739*d14625f7Srootpsdir
740*d14625f7Srootpdfdir
741*d14625f7Srootdvidir
742*d14625f7Sroothtmldir
743*d14625f7Srootinfodir
744*d14625f7Srootdocdir
745*d14625f7Srootoldincludedir
746*d14625f7Srootincludedir
747*d14625f7Srootlocalstatedir
748*d14625f7Srootsharedstatedir
749*d14625f7Srootsysconfdir
750*d14625f7Srootdatadir
751*d14625f7Srootdatarootdir
752*d14625f7Srootlibexecdir
753*d14625f7Srootsbindir
754*d14625f7Srootbindir
755*d14625f7Srootprogram_transform_name
756*d14625f7Srootprefix
757*d14625f7Srootexec_prefix
758*d14625f7SrootPACKAGE_URL
759*d14625f7SrootPACKAGE_BUGREPORT
760*d14625f7SrootPACKAGE_STRING
761*d14625f7SrootPACKAGE_VERSION
762*d14625f7SrootPACKAGE_TARNAME
763*d14625f7SrootPACKAGE_NAME
764*d14625f7SrootPATH_SEPARATOR
765*d14625f7SrootSHELL'
766*d14625f7Srootac_subst_files=''
767*d14625f7Srootac_user_opts='
768*d14625f7Srootenable_option_checking
769*d14625f7Srootwith_xslroot
770*d14625f7Srootenable_cxx
771*d14625f7Srootwith_lg_vaddr
772*d14625f7Srootwith_rpath
773*d14625f7Srootenable_autogen
774*d14625f7Srootwith_mangling
775*d14625f7Srootwith_jemalloc_prefix
776*d14625f7Srootwith_export
777*d14625f7Srootwith_private_namespace
778*d14625f7Srootwith_install_suffix
779*d14625f7Srootwith_malloc_conf
780*d14625f7Srootenable_debug
781*d14625f7Srootenable_stats
782*d14625f7Srootenable_prof
783*d14625f7Srootenable_prof_libunwind
784*d14625f7Srootwith_static_libunwind
785*d14625f7Srootenable_prof_libgcc
786*d14625f7Srootenable_prof_gcc
787*d14625f7Srootenable_fill
788*d14625f7Srootenable_utrace
789*d14625f7Srootenable_xmalloc
790*d14625f7Srootenable_cache_oblivious
791*d14625f7Srootenable_log
792*d14625f7Srootwith_lg_quantum
793*d14625f7Srootwith_lg_page
794*d14625f7Srootwith_lg_hugepage
795*d14625f7Srootwith_lg_page_sizes
796*d14625f7Srootwith_version
797*d14625f7Srootenable_syscall
798*d14625f7Srootenable_lazy_lock
799*d14625f7Srootenable_zone_allocator
800*d14625f7Srootenable_initial_exec_tls
801*d14625f7Sroot'
802*d14625f7Sroot      ac_precious_vars='build_alias
803*d14625f7Sroothost_alias
804*d14625f7Sroottarget_alias
805*d14625f7SrootCC
806*d14625f7SrootCFLAGS
807*d14625f7SrootLDFLAGS
808*d14625f7SrootLIBS
809*d14625f7SrootCPPFLAGS
810*d14625f7SrootCPP
811*d14625f7SrootCXX
812*d14625f7SrootCXXFLAGS
813*d14625f7SrootCCC'
814*d14625f7Sroot
815*d14625f7Sroot
816*d14625f7Sroot# Initialize some variables set by options.
817*d14625f7Srootac_init_help=
818*d14625f7Srootac_init_version=false
819*d14625f7Srootac_unrecognized_opts=
820*d14625f7Srootac_unrecognized_sep=
821*d14625f7Sroot# The variables have the same names as the options, with
822*d14625f7Sroot# dashes changed to underlines.
823*d14625f7Srootcache_file=/dev/null
824*d14625f7Srootexec_prefix=NONE
825*d14625f7Srootno_create=
826*d14625f7Srootno_recursion=
827*d14625f7Srootprefix=NONE
828*d14625f7Srootprogram_prefix=NONE
829*d14625f7Srootprogram_suffix=NONE
830*d14625f7Srootprogram_transform_name=s,x,x,
831*d14625f7Srootsilent=
832*d14625f7Srootsite=
833*d14625f7Srootsrcdir=
834*d14625f7Srootverbose=
835*d14625f7Srootx_includes=NONE
836*d14625f7Srootx_libraries=NONE
837*d14625f7Sroot
838*d14625f7Sroot# Installation directory options.
839*d14625f7Sroot# These are left unexpanded so users can "make install exec_prefix=/foo"
840*d14625f7Sroot# and all the variables that are supposed to be based on exec_prefix
841*d14625f7Sroot# by default will actually change.
842*d14625f7Sroot# Use braces instead of parens because sh, perl, etc. also accept them.
843*d14625f7Sroot# (The list follows the same order as the GNU Coding Standards.)
844*d14625f7Srootbindir='${exec_prefix}/bin'
845*d14625f7Srootsbindir='${exec_prefix}/sbin'
846*d14625f7Srootlibexecdir='${exec_prefix}/libexec'
847*d14625f7Srootdatarootdir='${prefix}/share'
848*d14625f7Srootdatadir='${datarootdir}'
849*d14625f7Srootsysconfdir='${prefix}/etc'
850*d14625f7Srootsharedstatedir='${prefix}/com'
851*d14625f7Srootlocalstatedir='${prefix}/var'
852*d14625f7Srootincludedir='${prefix}/include'
853*d14625f7Srootoldincludedir='/usr/include'
854*d14625f7Srootdocdir='${datarootdir}/doc/${PACKAGE}'
855*d14625f7Srootinfodir='${datarootdir}/info'
856*d14625f7Sroothtmldir='${docdir}'
857*d14625f7Srootdvidir='${docdir}'
858*d14625f7Srootpdfdir='${docdir}'
859*d14625f7Srootpsdir='${docdir}'
860*d14625f7Srootlibdir='${exec_prefix}/lib'
861*d14625f7Srootlocaledir='${datarootdir}/locale'
862*d14625f7Srootmandir='${datarootdir}/man'
863*d14625f7Sroot
864*d14625f7Srootac_prev=
865*d14625f7Srootac_dashdash=
866*d14625f7Srootfor ac_option
867*d14625f7Srootdo
868*d14625f7Sroot  # If the previous option needs an argument, assign it.
869*d14625f7Sroot  if test -n "$ac_prev"; then
870*d14625f7Sroot    eval $ac_prev=\$ac_option
871*d14625f7Sroot    ac_prev=
872*d14625f7Sroot    continue
873*d14625f7Sroot  fi
874*d14625f7Sroot
875*d14625f7Sroot  case $ac_option in
876*d14625f7Sroot  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877*d14625f7Sroot  *=)   ac_optarg= ;;
878*d14625f7Sroot  *)    ac_optarg=yes ;;
879*d14625f7Sroot  esac
880*d14625f7Sroot
881*d14625f7Sroot  # Accept the important Cygnus configure options, so we can diagnose typos.
882*d14625f7Sroot
883*d14625f7Sroot  case $ac_dashdash$ac_option in
884*d14625f7Sroot  --)
885*d14625f7Sroot    ac_dashdash=yes ;;
886*d14625f7Sroot
887*d14625f7Sroot  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888*d14625f7Sroot    ac_prev=bindir ;;
889*d14625f7Sroot  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890*d14625f7Sroot    bindir=$ac_optarg ;;
891*d14625f7Sroot
892*d14625f7Sroot  -build | --build | --buil | --bui | --bu)
893*d14625f7Sroot    ac_prev=build_alias ;;
894*d14625f7Sroot  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895*d14625f7Sroot    build_alias=$ac_optarg ;;
896*d14625f7Sroot
897*d14625f7Sroot  -cache-file | --cache-file | --cache-fil | --cache-fi \
898*d14625f7Sroot  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899*d14625f7Sroot    ac_prev=cache_file ;;
900*d14625f7Sroot  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901*d14625f7Sroot  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902*d14625f7Sroot    cache_file=$ac_optarg ;;
903*d14625f7Sroot
904*d14625f7Sroot  --config-cache | -C)
905*d14625f7Sroot    cache_file=config.cache ;;
906*d14625f7Sroot
907*d14625f7Sroot  -datadir | --datadir | --datadi | --datad)
908*d14625f7Sroot    ac_prev=datadir ;;
909*d14625f7Sroot  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910*d14625f7Sroot    datadir=$ac_optarg ;;
911*d14625f7Sroot
912*d14625f7Sroot  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913*d14625f7Sroot  | --dataroo | --dataro | --datar)
914*d14625f7Sroot    ac_prev=datarootdir ;;
915*d14625f7Sroot  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916*d14625f7Sroot  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917*d14625f7Sroot    datarootdir=$ac_optarg ;;
918*d14625f7Sroot
919*d14625f7Sroot  -disable-* | --disable-*)
920*d14625f7Sroot    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921*d14625f7Sroot    # Reject names that are not valid shell variable names.
922*d14625f7Sroot    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923*d14625f7Sroot      as_fn_error $? "invalid feature name: $ac_useropt"
924*d14625f7Sroot    ac_useropt_orig=$ac_useropt
925*d14625f7Sroot    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926*d14625f7Sroot    case $ac_user_opts in
927*d14625f7Sroot      *"
928*d14625f7Sroot"enable_$ac_useropt"
929*d14625f7Sroot"*) ;;
930*d14625f7Sroot      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931*d14625f7Sroot	 ac_unrecognized_sep=', ';;
932*d14625f7Sroot    esac
933*d14625f7Sroot    eval enable_$ac_useropt=no ;;
934*d14625f7Sroot
935*d14625f7Sroot  -docdir | --docdir | --docdi | --doc | --do)
936*d14625f7Sroot    ac_prev=docdir ;;
937*d14625f7Sroot  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938*d14625f7Sroot    docdir=$ac_optarg ;;
939*d14625f7Sroot
940*d14625f7Sroot  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941*d14625f7Sroot    ac_prev=dvidir ;;
942*d14625f7Sroot  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943*d14625f7Sroot    dvidir=$ac_optarg ;;
944*d14625f7Sroot
945*d14625f7Sroot  -enable-* | --enable-*)
946*d14625f7Sroot    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947*d14625f7Sroot    # Reject names that are not valid shell variable names.
948*d14625f7Sroot    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949*d14625f7Sroot      as_fn_error $? "invalid feature name: $ac_useropt"
950*d14625f7Sroot    ac_useropt_orig=$ac_useropt
951*d14625f7Sroot    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952*d14625f7Sroot    case $ac_user_opts in
953*d14625f7Sroot      *"
954*d14625f7Sroot"enable_$ac_useropt"
955*d14625f7Sroot"*) ;;
956*d14625f7Sroot      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957*d14625f7Sroot	 ac_unrecognized_sep=', ';;
958*d14625f7Sroot    esac
959*d14625f7Sroot    eval enable_$ac_useropt=\$ac_optarg ;;
960*d14625f7Sroot
961*d14625f7Sroot  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962*d14625f7Sroot  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963*d14625f7Sroot  | --exec | --exe | --ex)
964*d14625f7Sroot    ac_prev=exec_prefix ;;
965*d14625f7Sroot  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966*d14625f7Sroot  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967*d14625f7Sroot  | --exec=* | --exe=* | --ex=*)
968*d14625f7Sroot    exec_prefix=$ac_optarg ;;
969*d14625f7Sroot
970*d14625f7Sroot  -gas | --gas | --ga | --g)
971*d14625f7Sroot    # Obsolete; use --with-gas.
972*d14625f7Sroot    with_gas=yes ;;
973*d14625f7Sroot
974*d14625f7Sroot  -help | --help | --hel | --he | -h)
975*d14625f7Sroot    ac_init_help=long ;;
976*d14625f7Sroot  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977*d14625f7Sroot    ac_init_help=recursive ;;
978*d14625f7Sroot  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979*d14625f7Sroot    ac_init_help=short ;;
980*d14625f7Sroot
981*d14625f7Sroot  -host | --host | --hos | --ho)
982*d14625f7Sroot    ac_prev=host_alias ;;
983*d14625f7Sroot  -host=* | --host=* | --hos=* | --ho=*)
984*d14625f7Sroot    host_alias=$ac_optarg ;;
985*d14625f7Sroot
986*d14625f7Sroot  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987*d14625f7Sroot    ac_prev=htmldir ;;
988*d14625f7Sroot  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989*d14625f7Sroot  | --ht=*)
990*d14625f7Sroot    htmldir=$ac_optarg ;;
991*d14625f7Sroot
992*d14625f7Sroot  -includedir | --includedir | --includedi | --included | --include \
993*d14625f7Sroot  | --includ | --inclu | --incl | --inc)
994*d14625f7Sroot    ac_prev=includedir ;;
995*d14625f7Sroot  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996*d14625f7Sroot  | --includ=* | --inclu=* | --incl=* | --inc=*)
997*d14625f7Sroot    includedir=$ac_optarg ;;
998*d14625f7Sroot
999*d14625f7Sroot  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000*d14625f7Sroot    ac_prev=infodir ;;
1001*d14625f7Sroot  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002*d14625f7Sroot    infodir=$ac_optarg ;;
1003*d14625f7Sroot
1004*d14625f7Sroot  -libdir | --libdir | --libdi | --libd)
1005*d14625f7Sroot    ac_prev=libdir ;;
1006*d14625f7Sroot  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007*d14625f7Sroot    libdir=$ac_optarg ;;
1008*d14625f7Sroot
1009*d14625f7Sroot  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010*d14625f7Sroot  | --libexe | --libex | --libe)
1011*d14625f7Sroot    ac_prev=libexecdir ;;
1012*d14625f7Sroot  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013*d14625f7Sroot  | --libexe=* | --libex=* | --libe=*)
1014*d14625f7Sroot    libexecdir=$ac_optarg ;;
1015*d14625f7Sroot
1016*d14625f7Sroot  -localedir | --localedir | --localedi | --localed | --locale)
1017*d14625f7Sroot    ac_prev=localedir ;;
1018*d14625f7Sroot  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019*d14625f7Sroot    localedir=$ac_optarg ;;
1020*d14625f7Sroot
1021*d14625f7Sroot  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022*d14625f7Sroot  | --localstate | --localstat | --localsta | --localst | --locals)
1023*d14625f7Sroot    ac_prev=localstatedir ;;
1024*d14625f7Sroot  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025*d14625f7Sroot  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026*d14625f7Sroot    localstatedir=$ac_optarg ;;
1027*d14625f7Sroot
1028*d14625f7Sroot  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029*d14625f7Sroot    ac_prev=mandir ;;
1030*d14625f7Sroot  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031*d14625f7Sroot    mandir=$ac_optarg ;;
1032*d14625f7Sroot
1033*d14625f7Sroot  -nfp | --nfp | --nf)
1034*d14625f7Sroot    # Obsolete; use --without-fp.
1035*d14625f7Sroot    with_fp=no ;;
1036*d14625f7Sroot
1037*d14625f7Sroot  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038*d14625f7Sroot  | --no-cr | --no-c | -n)
1039*d14625f7Sroot    no_create=yes ;;
1040*d14625f7Sroot
1041*d14625f7Sroot  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042*d14625f7Sroot  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043*d14625f7Sroot    no_recursion=yes ;;
1044*d14625f7Sroot
1045*d14625f7Sroot  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046*d14625f7Sroot  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047*d14625f7Sroot  | --oldin | --oldi | --old | --ol | --o)
1048*d14625f7Sroot    ac_prev=oldincludedir ;;
1049*d14625f7Sroot  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050*d14625f7Sroot  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051*d14625f7Sroot  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052*d14625f7Sroot    oldincludedir=$ac_optarg ;;
1053*d14625f7Sroot
1054*d14625f7Sroot  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055*d14625f7Sroot    ac_prev=prefix ;;
1056*d14625f7Sroot  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057*d14625f7Sroot    prefix=$ac_optarg ;;
1058*d14625f7Sroot
1059*d14625f7Sroot  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060*d14625f7Sroot  | --program-pre | --program-pr | --program-p)
1061*d14625f7Sroot    ac_prev=program_prefix ;;
1062*d14625f7Sroot  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063*d14625f7Sroot  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064*d14625f7Sroot    program_prefix=$ac_optarg ;;
1065*d14625f7Sroot
1066*d14625f7Sroot  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067*d14625f7Sroot  | --program-suf | --program-su | --program-s)
1068*d14625f7Sroot    ac_prev=program_suffix ;;
1069*d14625f7Sroot  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070*d14625f7Sroot  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071*d14625f7Sroot    program_suffix=$ac_optarg ;;
1072*d14625f7Sroot
1073*d14625f7Sroot  -program-transform-name | --program-transform-name \
1074*d14625f7Sroot  | --program-transform-nam | --program-transform-na \
1075*d14625f7Sroot  | --program-transform-n | --program-transform- \
1076*d14625f7Sroot  | --program-transform | --program-transfor \
1077*d14625f7Sroot  | --program-transfo | --program-transf \
1078*d14625f7Sroot  | --program-trans | --program-tran \
1079*d14625f7Sroot  | --progr-tra | --program-tr | --program-t)
1080*d14625f7Sroot    ac_prev=program_transform_name ;;
1081*d14625f7Sroot  -program-transform-name=* | --program-transform-name=* \
1082*d14625f7Sroot  | --program-transform-nam=* | --program-transform-na=* \
1083*d14625f7Sroot  | --program-transform-n=* | --program-transform-=* \
1084*d14625f7Sroot  | --program-transform=* | --program-transfor=* \
1085*d14625f7Sroot  | --program-transfo=* | --program-transf=* \
1086*d14625f7Sroot  | --program-trans=* | --program-tran=* \
1087*d14625f7Sroot  | --progr-tra=* | --program-tr=* | --program-t=*)
1088*d14625f7Sroot    program_transform_name=$ac_optarg ;;
1089*d14625f7Sroot
1090*d14625f7Sroot  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091*d14625f7Sroot    ac_prev=pdfdir ;;
1092*d14625f7Sroot  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093*d14625f7Sroot    pdfdir=$ac_optarg ;;
1094*d14625f7Sroot
1095*d14625f7Sroot  -psdir | --psdir | --psdi | --psd | --ps)
1096*d14625f7Sroot    ac_prev=psdir ;;
1097*d14625f7Sroot  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098*d14625f7Sroot    psdir=$ac_optarg ;;
1099*d14625f7Sroot
1100*d14625f7Sroot  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101*d14625f7Sroot  | -silent | --silent | --silen | --sile | --sil)
1102*d14625f7Sroot    silent=yes ;;
1103*d14625f7Sroot
1104*d14625f7Sroot  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105*d14625f7Sroot    ac_prev=sbindir ;;
1106*d14625f7Sroot  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107*d14625f7Sroot  | --sbi=* | --sb=*)
1108*d14625f7Sroot    sbindir=$ac_optarg ;;
1109*d14625f7Sroot
1110*d14625f7Sroot  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111*d14625f7Sroot  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112*d14625f7Sroot  | --sharedst | --shareds | --shared | --share | --shar \
1113*d14625f7Sroot  | --sha | --sh)
1114*d14625f7Sroot    ac_prev=sharedstatedir ;;
1115*d14625f7Sroot  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116*d14625f7Sroot  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117*d14625f7Sroot  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118*d14625f7Sroot  | --sha=* | --sh=*)
1119*d14625f7Sroot    sharedstatedir=$ac_optarg ;;
1120*d14625f7Sroot
1121*d14625f7Sroot  -site | --site | --sit)
1122*d14625f7Sroot    ac_prev=site ;;
1123*d14625f7Sroot  -site=* | --site=* | --sit=*)
1124*d14625f7Sroot    site=$ac_optarg ;;
1125*d14625f7Sroot
1126*d14625f7Sroot  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127*d14625f7Sroot    ac_prev=srcdir ;;
1128*d14625f7Sroot  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129*d14625f7Sroot    srcdir=$ac_optarg ;;
1130*d14625f7Sroot
1131*d14625f7Sroot  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132*d14625f7Sroot  | --syscon | --sysco | --sysc | --sys | --sy)
1133*d14625f7Sroot    ac_prev=sysconfdir ;;
1134*d14625f7Sroot  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135*d14625f7Sroot  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136*d14625f7Sroot    sysconfdir=$ac_optarg ;;
1137*d14625f7Sroot
1138*d14625f7Sroot  -target | --target | --targe | --targ | --tar | --ta | --t)
1139*d14625f7Sroot    ac_prev=target_alias ;;
1140*d14625f7Sroot  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141*d14625f7Sroot    target_alias=$ac_optarg ;;
1142*d14625f7Sroot
1143*d14625f7Sroot  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144*d14625f7Sroot    verbose=yes ;;
1145*d14625f7Sroot
1146*d14625f7Sroot  -version | --version | --versio | --versi | --vers | -V)
1147*d14625f7Sroot    ac_init_version=: ;;
1148*d14625f7Sroot
1149*d14625f7Sroot  -with-* | --with-*)
1150*d14625f7Sroot    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151*d14625f7Sroot    # Reject names that are not valid shell variable names.
1152*d14625f7Sroot    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153*d14625f7Sroot      as_fn_error $? "invalid package name: $ac_useropt"
1154*d14625f7Sroot    ac_useropt_orig=$ac_useropt
1155*d14625f7Sroot    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156*d14625f7Sroot    case $ac_user_opts in
1157*d14625f7Sroot      *"
1158*d14625f7Sroot"with_$ac_useropt"
1159*d14625f7Sroot"*) ;;
1160*d14625f7Sroot      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161*d14625f7Sroot	 ac_unrecognized_sep=', ';;
1162*d14625f7Sroot    esac
1163*d14625f7Sroot    eval with_$ac_useropt=\$ac_optarg ;;
1164*d14625f7Sroot
1165*d14625f7Sroot  -without-* | --without-*)
1166*d14625f7Sroot    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167*d14625f7Sroot    # Reject names that are not valid shell variable names.
1168*d14625f7Sroot    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169*d14625f7Sroot      as_fn_error $? "invalid package name: $ac_useropt"
1170*d14625f7Sroot    ac_useropt_orig=$ac_useropt
1171*d14625f7Sroot    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172*d14625f7Sroot    case $ac_user_opts in
1173*d14625f7Sroot      *"
1174*d14625f7Sroot"with_$ac_useropt"
1175*d14625f7Sroot"*) ;;
1176*d14625f7Sroot      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177*d14625f7Sroot	 ac_unrecognized_sep=', ';;
1178*d14625f7Sroot    esac
1179*d14625f7Sroot    eval with_$ac_useropt=no ;;
1180*d14625f7Sroot
1181*d14625f7Sroot  --x)
1182*d14625f7Sroot    # Obsolete; use --with-x.
1183*d14625f7Sroot    with_x=yes ;;
1184*d14625f7Sroot
1185*d14625f7Sroot  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186*d14625f7Sroot  | --x-incl | --x-inc | --x-in | --x-i)
1187*d14625f7Sroot    ac_prev=x_includes ;;
1188*d14625f7Sroot  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189*d14625f7Sroot  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190*d14625f7Sroot    x_includes=$ac_optarg ;;
1191*d14625f7Sroot
1192*d14625f7Sroot  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193*d14625f7Sroot  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194*d14625f7Sroot    ac_prev=x_libraries ;;
1195*d14625f7Sroot  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196*d14625f7Sroot  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197*d14625f7Sroot    x_libraries=$ac_optarg ;;
1198*d14625f7Sroot
1199*d14625f7Sroot  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200*d14625f7SrootTry \`$0 --help' for more information"
1201*d14625f7Sroot    ;;
1202*d14625f7Sroot
1203*d14625f7Sroot  *=*)
1204*d14625f7Sroot    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205*d14625f7Sroot    # Reject names that are not valid shell variable names.
1206*d14625f7Sroot    case $ac_envvar in #(
1207*d14625f7Sroot      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208*d14625f7Sroot      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209*d14625f7Sroot    esac
1210*d14625f7Sroot    eval $ac_envvar=\$ac_optarg
1211*d14625f7Sroot    export $ac_envvar ;;
1212*d14625f7Sroot
1213*d14625f7Sroot  *)
1214*d14625f7Sroot    # FIXME: should be removed in autoconf 3.0.
1215*d14625f7Sroot    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216*d14625f7Sroot    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217*d14625f7Sroot      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218*d14625f7Sroot    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219*d14625f7Sroot    ;;
1220*d14625f7Sroot
1221*d14625f7Sroot  esac
1222*d14625f7Srootdone
1223*d14625f7Sroot
1224*d14625f7Srootif test -n "$ac_prev"; then
1225*d14625f7Sroot  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226*d14625f7Sroot  as_fn_error $? "missing argument to $ac_option"
1227*d14625f7Srootfi
1228*d14625f7Sroot
1229*d14625f7Srootif test -n "$ac_unrecognized_opts"; then
1230*d14625f7Sroot  case $enable_option_checking in
1231*d14625f7Sroot    no) ;;
1232*d14625f7Sroot    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233*d14625f7Sroot    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234*d14625f7Sroot  esac
1235*d14625f7Srootfi
1236*d14625f7Sroot
1237*d14625f7Sroot# Check all directory arguments for consistency.
1238*d14625f7Srootfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239*d14625f7Sroot		datadir sysconfdir sharedstatedir localstatedir includedir \
1240*d14625f7Sroot		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241*d14625f7Sroot		libdir localedir mandir
1242*d14625f7Srootdo
1243*d14625f7Sroot  eval ac_val=\$$ac_var
1244*d14625f7Sroot  # Remove trailing slashes.
1245*d14625f7Sroot  case $ac_val in
1246*d14625f7Sroot    */ )
1247*d14625f7Sroot      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248*d14625f7Sroot      eval $ac_var=\$ac_val;;
1249*d14625f7Sroot  esac
1250*d14625f7Sroot  # Be sure to have absolute directory names.
1251*d14625f7Sroot  case $ac_val in
1252*d14625f7Sroot    [\\/$]* | ?:[\\/]* )  continue;;
1253*d14625f7Sroot    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254*d14625f7Sroot  esac
1255*d14625f7Sroot  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256*d14625f7Srootdone
1257*d14625f7Sroot
1258*d14625f7Sroot# There might be people who depend on the old broken behavior: `$host'
1259*d14625f7Sroot# used to hold the argument of --host etc.
1260*d14625f7Sroot# FIXME: To remove some day.
1261*d14625f7Srootbuild=$build_alias
1262*d14625f7Sroothost=$host_alias
1263*d14625f7Sroottarget=$target_alias
1264*d14625f7Sroot
1265*d14625f7Sroot# FIXME: To remove some day.
1266*d14625f7Srootif test "x$host_alias" != x; then
1267*d14625f7Sroot  if test "x$build_alias" = x; then
1268*d14625f7Sroot    cross_compiling=maybe
1269*d14625f7Sroot  elif test "x$build_alias" != "x$host_alias"; then
1270*d14625f7Sroot    cross_compiling=yes
1271*d14625f7Sroot  fi
1272*d14625f7Srootfi
1273*d14625f7Sroot
1274*d14625f7Srootac_tool_prefix=
1275*d14625f7Sroottest -n "$host_alias" && ac_tool_prefix=$host_alias-
1276*d14625f7Sroot
1277*d14625f7Sroottest "$silent" = yes && exec 6>/dev/null
1278*d14625f7Sroot
1279*d14625f7Sroot
1280*d14625f7Srootac_pwd=`pwd` && test -n "$ac_pwd" &&
1281*d14625f7Srootac_ls_di=`ls -di .` &&
1282*d14625f7Srootac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283*d14625f7Sroot  as_fn_error $? "working directory cannot be determined"
1284*d14625f7Sroottest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285*d14625f7Sroot  as_fn_error $? "pwd does not report name of working directory"
1286*d14625f7Sroot
1287*d14625f7Sroot
1288*d14625f7Sroot# Find the source files, if location was not specified.
1289*d14625f7Srootif test -z "$srcdir"; then
1290*d14625f7Sroot  ac_srcdir_defaulted=yes
1291*d14625f7Sroot  # Try the directory containing this script, then the parent directory.
1292*d14625f7Sroot  ac_confdir=`$as_dirname -- "$as_myself" ||
1293*d14625f7Sroot$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294*d14625f7Sroot	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295*d14625f7Sroot	 X"$as_myself" : 'X\(//\)$' \| \
1296*d14625f7Sroot	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297*d14625f7Sroot$as_echo X"$as_myself" |
1298*d14625f7Sroot    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299*d14625f7Sroot	    s//\1/
1300*d14625f7Sroot	    q
1301*d14625f7Sroot	  }
1302*d14625f7Sroot	  /^X\(\/\/\)[^/].*/{
1303*d14625f7Sroot	    s//\1/
1304*d14625f7Sroot	    q
1305*d14625f7Sroot	  }
1306*d14625f7Sroot	  /^X\(\/\/\)$/{
1307*d14625f7Sroot	    s//\1/
1308*d14625f7Sroot	    q
1309*d14625f7Sroot	  }
1310*d14625f7Sroot	  /^X\(\/\).*/{
1311*d14625f7Sroot	    s//\1/
1312*d14625f7Sroot	    q
1313*d14625f7Sroot	  }
1314*d14625f7Sroot	  s/.*/./; q'`
1315*d14625f7Sroot  srcdir=$ac_confdir
1316*d14625f7Sroot  if test ! -r "$srcdir/$ac_unique_file"; then
1317*d14625f7Sroot    srcdir=..
1318*d14625f7Sroot  fi
1319*d14625f7Srootelse
1320*d14625f7Sroot  ac_srcdir_defaulted=no
1321*d14625f7Srootfi
1322*d14625f7Srootif test ! -r "$srcdir/$ac_unique_file"; then
1323*d14625f7Sroot  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324*d14625f7Sroot  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325*d14625f7Srootfi
1326*d14625f7Srootac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327*d14625f7Srootac_abs_confdir=`(
1328*d14625f7Sroot	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329*d14625f7Sroot	pwd)`
1330*d14625f7Sroot# When building in place, set srcdir=.
1331*d14625f7Srootif test "$ac_abs_confdir" = "$ac_pwd"; then
1332*d14625f7Sroot  srcdir=.
1333*d14625f7Srootfi
1334*d14625f7Sroot# Remove unnecessary trailing slashes from srcdir.
1335*d14625f7Sroot# Double slashes in file names in object file debugging info
1336*d14625f7Sroot# mess up M-x gdb in Emacs.
1337*d14625f7Srootcase $srcdir in
1338*d14625f7Sroot*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339*d14625f7Srootesac
1340*d14625f7Srootfor ac_var in $ac_precious_vars; do
1341*d14625f7Sroot  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342*d14625f7Sroot  eval ac_env_${ac_var}_value=\$${ac_var}
1343*d14625f7Sroot  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344*d14625f7Sroot  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345*d14625f7Srootdone
1346*d14625f7Sroot
1347*d14625f7Sroot#
1348*d14625f7Sroot# Report the --help message.
1349*d14625f7Sroot#
1350*d14625f7Srootif test "$ac_init_help" = "long"; then
1351*d14625f7Sroot  # Omit some internal or obsolete options to make the list less imposing.
1352*d14625f7Sroot  # This message is too long to be a string in the A/UX 3.1 sh.
1353*d14625f7Sroot  cat <<_ACEOF
1354*d14625f7Sroot\`configure' configures this package to adapt to many kinds of systems.
1355*d14625f7Sroot
1356*d14625f7SrootUsage: $0 [OPTION]... [VAR=VALUE]...
1357*d14625f7Sroot
1358*d14625f7SrootTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1359*d14625f7SrootVAR=VALUE.  See below for descriptions of some of the useful variables.
1360*d14625f7Sroot
1361*d14625f7SrootDefaults for the options are specified in brackets.
1362*d14625f7Sroot
1363*d14625f7SrootConfiguration:
1364*d14625f7Sroot  -h, --help              display this help and exit
1365*d14625f7Sroot      --help=short        display options specific to this package
1366*d14625f7Sroot      --help=recursive    display the short help of all the included packages
1367*d14625f7Sroot  -V, --version           display version information and exit
1368*d14625f7Sroot  -q, --quiet, --silent   do not print \`checking ...' messages
1369*d14625f7Sroot      --cache-file=FILE   cache test results in FILE [disabled]
1370*d14625f7Sroot  -C, --config-cache      alias for \`--cache-file=config.cache'
1371*d14625f7Sroot  -n, --no-create         do not create output files
1372*d14625f7Sroot      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373*d14625f7Sroot
1374*d14625f7SrootInstallation directories:
1375*d14625f7Sroot  --prefix=PREFIX         install architecture-independent files in PREFIX
1376*d14625f7Sroot                          [$ac_default_prefix]
1377*d14625f7Sroot  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378*d14625f7Sroot                          [PREFIX]
1379*d14625f7Sroot
1380*d14625f7SrootBy default, \`make install' will install all the files in
1381*d14625f7Sroot\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382*d14625f7Srootan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383*d14625f7Srootfor instance \`--prefix=\$HOME'.
1384*d14625f7Sroot
1385*d14625f7SrootFor better control, use the options below.
1386*d14625f7Sroot
1387*d14625f7SrootFine tuning of the installation directories:
1388*d14625f7Sroot  --bindir=DIR            user executables [EPREFIX/bin]
1389*d14625f7Sroot  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390*d14625f7Sroot  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391*d14625f7Sroot  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392*d14625f7Sroot  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393*d14625f7Sroot  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394*d14625f7Sroot  --libdir=DIR            object code libraries [EPREFIX/lib]
1395*d14625f7Sroot  --includedir=DIR        C header files [PREFIX/include]
1396*d14625f7Sroot  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397*d14625f7Sroot  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398*d14625f7Sroot  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399*d14625f7Sroot  --infodir=DIR           info documentation [DATAROOTDIR/info]
1400*d14625f7Sroot  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401*d14625f7Sroot  --mandir=DIR            man documentation [DATAROOTDIR/man]
1402*d14625f7Sroot  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1403*d14625f7Sroot  --htmldir=DIR           html documentation [DOCDIR]
1404*d14625f7Sroot  --dvidir=DIR            dvi documentation [DOCDIR]
1405*d14625f7Sroot  --pdfdir=DIR            pdf documentation [DOCDIR]
1406*d14625f7Sroot  --psdir=DIR             ps documentation [DOCDIR]
1407*d14625f7Sroot_ACEOF
1408*d14625f7Sroot
1409*d14625f7Sroot  cat <<\_ACEOF
1410*d14625f7Sroot
1411*d14625f7SrootSystem types:
1412*d14625f7Sroot  --build=BUILD     configure for building on BUILD [guessed]
1413*d14625f7Sroot  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414*d14625f7Sroot_ACEOF
1415*d14625f7Srootfi
1416*d14625f7Sroot
1417*d14625f7Srootif test -n "$ac_init_help"; then
1418*d14625f7Sroot
1419*d14625f7Sroot  cat <<\_ACEOF
1420*d14625f7Sroot
1421*d14625f7SrootOptional Features:
1422*d14625f7Sroot  --disable-option-checking  ignore unrecognized --enable/--with options
1423*d14625f7Sroot  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424*d14625f7Sroot  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425*d14625f7Sroot  --disable-cxx           Disable C++ integration
1426*d14625f7Sroot  --enable-autogen        Automatically regenerate configure output
1427*d14625f7Sroot  --enable-debug          Build debugging code
1428*d14625f7Sroot  --disable-stats         Disable statistics calculation/reporting
1429*d14625f7Sroot  --enable-prof           Enable allocation profiling
1430*d14625f7Sroot  --enable-prof-libunwind Use libunwind for backtracing
1431*d14625f7Sroot  --disable-prof-libgcc   Do not use libgcc for backtracing
1432*d14625f7Sroot  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1433*d14625f7Sroot  --disable-fill          Disable support for junk/zero filling
1434*d14625f7Sroot  --enable-utrace         Enable utrace(2)-based tracing
1435*d14625f7Sroot  --enable-xmalloc        Support xmalloc option
1436*d14625f7Sroot  --disable-cache-oblivious
1437*d14625f7Sroot                          Disable support for cache-oblivious allocation
1438*d14625f7Sroot                          alignment
1439*d14625f7Sroot  --enable-log            Support debug logging
1440*d14625f7Sroot  --disable-syscall       Disable use of syscall(2)
1441*d14625f7Sroot  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1442*d14625f7Sroot  --disable-zone-allocator
1443*d14625f7Sroot                          Disable zone allocator for Darwin
1444*d14625f7Sroot  --disable-initial-exec-tls
1445*d14625f7Sroot                          Disable the initial-exec tls model
1446*d14625f7Sroot
1447*d14625f7SrootOptional Packages:
1448*d14625f7Sroot  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449*d14625f7Sroot  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450*d14625f7Sroot  --with-xslroot=<path>   XSL stylesheet root path
1451*d14625f7Sroot  --with-lg-vaddr=<lg-vaddr>
1452*d14625f7Sroot                          Number of significant virtual address bits
1453*d14625f7Sroot  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1454*d14625f7Sroot  --with-mangling=<map>   Mangle symbols in <map>
1455*d14625f7Sroot  --with-jemalloc-prefix=<prefix>
1456*d14625f7Sroot                          Prefix to prepend to all public APIs
1457*d14625f7Sroot  --without-export        disable exporting jemalloc public APIs
1458*d14625f7Sroot  --with-private-namespace=<prefix>
1459*d14625f7Sroot                          Prefix to prepend to all library-private APIs
1460*d14625f7Sroot  --with-install-suffix=<suffix>
1461*d14625f7Sroot                          Suffix to append to all installed files
1462*d14625f7Sroot  --with-malloc-conf=<malloc_conf>
1463*d14625f7Sroot                          config.malloc_conf options string
1464*d14625f7Sroot  --with-static-libunwind=<libunwind.a>
1465*d14625f7Sroot                          Path to static libunwind library; use rather than
1466*d14625f7Sroot                          dynamically linking
1467*d14625f7Sroot  --with-lg-quantum=<lg-quantum>
1468*d14625f7Sroot                          Base 2 log of minimum allocation alignment
1469*d14625f7Sroot  --with-lg-page=<lg-page>
1470*d14625f7Sroot                          Base 2 log of system page size
1471*d14625f7Sroot  --with-lg-hugepage=<lg-hugepage>
1472*d14625f7Sroot                          Base 2 log of system huge page size
1473*d14625f7Sroot  --with-lg-page-sizes=<lg-page-sizes>
1474*d14625f7Sroot                          Base 2 logs of system page sizes to support
1475*d14625f7Sroot  --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1476*d14625f7Sroot                          Version string
1477*d14625f7Sroot
1478*d14625f7SrootSome influential environment variables:
1479*d14625f7Sroot  CC          C compiler command
1480*d14625f7Sroot  CFLAGS      C compiler flags
1481*d14625f7Sroot  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482*d14625f7Sroot              nonstandard directory <lib dir>
1483*d14625f7Sroot  LIBS        libraries to pass to the linker, e.g. -l<library>
1484*d14625f7Sroot  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485*d14625f7Sroot              you have headers in a nonstandard directory <include dir>
1486*d14625f7Sroot  CPP         C preprocessor
1487*d14625f7Sroot  CXX         C++ compiler command
1488*d14625f7Sroot  CXXFLAGS    C++ compiler flags
1489*d14625f7Sroot
1490*d14625f7SrootUse these variables to override the choices made by `configure' or to help
1491*d14625f7Srootit to find libraries and programs with nonstandard names/locations.
1492*d14625f7Sroot
1493*d14625f7SrootReport bugs to the package provider.
1494*d14625f7Sroot_ACEOF
1495*d14625f7Srootac_status=$?
1496*d14625f7Srootfi
1497*d14625f7Sroot
1498*d14625f7Srootif test "$ac_init_help" = "recursive"; then
1499*d14625f7Sroot  # If there are subdirs, report their specific --help.
1500*d14625f7Sroot  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501*d14625f7Sroot    test -d "$ac_dir" ||
1502*d14625f7Sroot      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503*d14625f7Sroot      continue
1504*d14625f7Sroot    ac_builddir=.
1505*d14625f7Sroot
1506*d14625f7Srootcase "$ac_dir" in
1507*d14625f7Sroot.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*d14625f7Sroot*)
1509*d14625f7Sroot  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510*d14625f7Sroot  # A ".." for each directory in $ac_dir_suffix.
1511*d14625f7Sroot  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512*d14625f7Sroot  case $ac_top_builddir_sub in
1513*d14625f7Sroot  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*d14625f7Sroot  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515*d14625f7Sroot  esac ;;
1516*d14625f7Srootesac
1517*d14625f7Srootac_abs_top_builddir=$ac_pwd
1518*d14625f7Srootac_abs_builddir=$ac_pwd$ac_dir_suffix
1519*d14625f7Sroot# for backward compatibility:
1520*d14625f7Srootac_top_builddir=$ac_top_build_prefix
1521*d14625f7Sroot
1522*d14625f7Srootcase $srcdir in
1523*d14625f7Sroot  .)  # We are building in place.
1524*d14625f7Sroot    ac_srcdir=.
1525*d14625f7Sroot    ac_top_srcdir=$ac_top_builddir_sub
1526*d14625f7Sroot    ac_abs_top_srcdir=$ac_pwd ;;
1527*d14625f7Sroot  [\\/]* | ?:[\\/]* )  # Absolute name.
1528*d14625f7Sroot    ac_srcdir=$srcdir$ac_dir_suffix;
1529*d14625f7Sroot    ac_top_srcdir=$srcdir
1530*d14625f7Sroot    ac_abs_top_srcdir=$srcdir ;;
1531*d14625f7Sroot  *) # Relative name.
1532*d14625f7Sroot    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533*d14625f7Sroot    ac_top_srcdir=$ac_top_build_prefix$srcdir
1534*d14625f7Sroot    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535*d14625f7Srootesac
1536*d14625f7Srootac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537*d14625f7Sroot
1538*d14625f7Sroot    cd "$ac_dir" || { ac_status=$?; continue; }
1539*d14625f7Sroot    # Check for guested configure.
1540*d14625f7Sroot    if test -f "$ac_srcdir/configure.gnu"; then
1541*d14625f7Sroot      echo &&
1542*d14625f7Sroot      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543*d14625f7Sroot    elif test -f "$ac_srcdir/configure"; then
1544*d14625f7Sroot      echo &&
1545*d14625f7Sroot      $SHELL "$ac_srcdir/configure" --help=recursive
1546*d14625f7Sroot    else
1547*d14625f7Sroot      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548*d14625f7Sroot    fi || ac_status=$?
1549*d14625f7Sroot    cd "$ac_pwd" || { ac_status=$?; break; }
1550*d14625f7Sroot  done
1551*d14625f7Srootfi
1552*d14625f7Sroot
1553*d14625f7Sroottest -n "$ac_init_help" && exit $ac_status
1554*d14625f7Srootif $ac_init_version; then
1555*d14625f7Sroot  cat <<\_ACEOF
1556*d14625f7Srootconfigure
1557*d14625f7Srootgenerated by GNU Autoconf 2.69
1558*d14625f7Sroot
1559*d14625f7SrootCopyright (C) 2012 Free Software Foundation, Inc.
1560*d14625f7SrootThis configure script is free software; the Free Software Foundation
1561*d14625f7Srootgives unlimited permission to copy, distribute and modify it.
1562*d14625f7Sroot_ACEOF
1563*d14625f7Sroot  exit
1564*d14625f7Srootfi
1565*d14625f7Sroot
1566*d14625f7Sroot## ------------------------ ##
1567*d14625f7Sroot## Autoconf initialization. ##
1568*d14625f7Sroot## ------------------------ ##
1569*d14625f7Sroot
1570*d14625f7Sroot# ac_fn_c_try_compile LINENO
1571*d14625f7Sroot# --------------------------
1572*d14625f7Sroot# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573*d14625f7Srootac_fn_c_try_compile ()
1574*d14625f7Sroot{
1575*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576*d14625f7Sroot  rm -f conftest.$ac_objext
1577*d14625f7Sroot  if { { ac_try="$ac_compile"
1578*d14625f7Srootcase "(($ac_try" in
1579*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1581*d14625f7Srootesac
1582*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1584*d14625f7Sroot  (eval "$ac_compile") 2>conftest.err
1585*d14625f7Sroot  ac_status=$?
1586*d14625f7Sroot  if test -s conftest.err; then
1587*d14625f7Sroot    grep -v '^ *+' conftest.err >conftest.er1
1588*d14625f7Sroot    cat conftest.er1 >&5
1589*d14625f7Sroot    mv -f conftest.er1 conftest.err
1590*d14625f7Sroot  fi
1591*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592*d14625f7Sroot  test $ac_status = 0; } && {
1593*d14625f7Sroot	 test -z "$ac_c_werror_flag" ||
1594*d14625f7Sroot	 test ! -s conftest.err
1595*d14625f7Sroot       } && test -s conftest.$ac_objext; then :
1596*d14625f7Sroot  ac_retval=0
1597*d14625f7Srootelse
1598*d14625f7Sroot  $as_echo "$as_me: failed program was:" >&5
1599*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
1600*d14625f7Sroot
1601*d14625f7Sroot	ac_retval=1
1602*d14625f7Srootfi
1603*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604*d14625f7Sroot  as_fn_set_status $ac_retval
1605*d14625f7Sroot
1606*d14625f7Sroot} # ac_fn_c_try_compile
1607*d14625f7Sroot
1608*d14625f7Sroot# ac_fn_c_try_cpp LINENO
1609*d14625f7Sroot# ----------------------
1610*d14625f7Sroot# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611*d14625f7Srootac_fn_c_try_cpp ()
1612*d14625f7Sroot{
1613*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614*d14625f7Sroot  if { { ac_try="$ac_cpp conftest.$ac_ext"
1615*d14625f7Srootcase "(($ac_try" in
1616*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1618*d14625f7Srootesac
1619*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1621*d14625f7Sroot  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622*d14625f7Sroot  ac_status=$?
1623*d14625f7Sroot  if test -s conftest.err; then
1624*d14625f7Sroot    grep -v '^ *+' conftest.err >conftest.er1
1625*d14625f7Sroot    cat conftest.er1 >&5
1626*d14625f7Sroot    mv -f conftest.er1 conftest.err
1627*d14625f7Sroot  fi
1628*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629*d14625f7Sroot  test $ac_status = 0; } > conftest.i && {
1630*d14625f7Sroot	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631*d14625f7Sroot	 test ! -s conftest.err
1632*d14625f7Sroot       }; then :
1633*d14625f7Sroot  ac_retval=0
1634*d14625f7Srootelse
1635*d14625f7Sroot  $as_echo "$as_me: failed program was:" >&5
1636*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
1637*d14625f7Sroot
1638*d14625f7Sroot    ac_retval=1
1639*d14625f7Srootfi
1640*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641*d14625f7Sroot  as_fn_set_status $ac_retval
1642*d14625f7Sroot
1643*d14625f7Sroot} # ac_fn_c_try_cpp
1644*d14625f7Sroot
1645*d14625f7Sroot# ac_fn_cxx_try_compile LINENO
1646*d14625f7Sroot# ----------------------------
1647*d14625f7Sroot# Try to compile conftest.$ac_ext, and return whether this succeeded.
1648*d14625f7Srootac_fn_cxx_try_compile ()
1649*d14625f7Sroot{
1650*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651*d14625f7Sroot  rm -f conftest.$ac_objext
1652*d14625f7Sroot  if { { ac_try="$ac_compile"
1653*d14625f7Srootcase "(($ac_try" in
1654*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1656*d14625f7Srootesac
1657*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1659*d14625f7Sroot  (eval "$ac_compile") 2>conftest.err
1660*d14625f7Sroot  ac_status=$?
1661*d14625f7Sroot  if test -s conftest.err; then
1662*d14625f7Sroot    grep -v '^ *+' conftest.err >conftest.er1
1663*d14625f7Sroot    cat conftest.er1 >&5
1664*d14625f7Sroot    mv -f conftest.er1 conftest.err
1665*d14625f7Sroot  fi
1666*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667*d14625f7Sroot  test $ac_status = 0; } && {
1668*d14625f7Sroot	 test -z "$ac_cxx_werror_flag" ||
1669*d14625f7Sroot	 test ! -s conftest.err
1670*d14625f7Sroot       } && test -s conftest.$ac_objext; then :
1671*d14625f7Sroot  ac_retval=0
1672*d14625f7Srootelse
1673*d14625f7Sroot  $as_echo "$as_me: failed program was:" >&5
1674*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
1675*d14625f7Sroot
1676*d14625f7Sroot	ac_retval=1
1677*d14625f7Srootfi
1678*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679*d14625f7Sroot  as_fn_set_status $ac_retval
1680*d14625f7Sroot
1681*d14625f7Sroot} # ac_fn_cxx_try_compile
1682*d14625f7Sroot
1683*d14625f7Sroot# ac_fn_c_try_link LINENO
1684*d14625f7Sroot# -----------------------
1685*d14625f7Sroot# Try to link conftest.$ac_ext, and return whether this succeeded.
1686*d14625f7Srootac_fn_c_try_link ()
1687*d14625f7Sroot{
1688*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689*d14625f7Sroot  rm -f conftest.$ac_objext conftest$ac_exeext
1690*d14625f7Sroot  if { { ac_try="$ac_link"
1691*d14625f7Srootcase "(($ac_try" in
1692*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1694*d14625f7Srootesac
1695*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1697*d14625f7Sroot  (eval "$ac_link") 2>conftest.err
1698*d14625f7Sroot  ac_status=$?
1699*d14625f7Sroot  if test -s conftest.err; then
1700*d14625f7Sroot    grep -v '^ *+' conftest.err >conftest.er1
1701*d14625f7Sroot    cat conftest.er1 >&5
1702*d14625f7Sroot    mv -f conftest.er1 conftest.err
1703*d14625f7Sroot  fi
1704*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705*d14625f7Sroot  test $ac_status = 0; } && {
1706*d14625f7Sroot	 test -z "$ac_c_werror_flag" ||
1707*d14625f7Sroot	 test ! -s conftest.err
1708*d14625f7Sroot       } && test -s conftest$ac_exeext && {
1709*d14625f7Sroot	 test "$cross_compiling" = yes ||
1710*d14625f7Sroot	 test -x conftest$ac_exeext
1711*d14625f7Sroot       }; then :
1712*d14625f7Sroot  ac_retval=0
1713*d14625f7Srootelse
1714*d14625f7Sroot  $as_echo "$as_me: failed program was:" >&5
1715*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
1716*d14625f7Sroot
1717*d14625f7Sroot	ac_retval=1
1718*d14625f7Srootfi
1719*d14625f7Sroot  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720*d14625f7Sroot  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721*d14625f7Sroot  # interfere with the next link command; also delete a directory that is
1722*d14625f7Sroot  # left behind by Apple's compiler.  We do this before executing the actions.
1723*d14625f7Sroot  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725*d14625f7Sroot  as_fn_set_status $ac_retval
1726*d14625f7Sroot
1727*d14625f7Sroot} # ac_fn_c_try_link
1728*d14625f7Sroot
1729*d14625f7Sroot# ac_fn_c_try_run LINENO
1730*d14625f7Sroot# ----------------------
1731*d14625f7Sroot# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732*d14625f7Sroot# that executables *can* be run.
1733*d14625f7Srootac_fn_c_try_run ()
1734*d14625f7Sroot{
1735*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736*d14625f7Sroot  if { { ac_try="$ac_link"
1737*d14625f7Srootcase "(($ac_try" in
1738*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1740*d14625f7Srootesac
1741*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1743*d14625f7Sroot  (eval "$ac_link") 2>&5
1744*d14625f7Sroot  ac_status=$?
1745*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746*d14625f7Sroot  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747*d14625f7Sroot  { { case "(($ac_try" in
1748*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749*d14625f7Sroot  *) ac_try_echo=$ac_try;;
1750*d14625f7Srootesac
1751*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
1753*d14625f7Sroot  (eval "$ac_try") 2>&5
1754*d14625f7Sroot  ac_status=$?
1755*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756*d14625f7Sroot  test $ac_status = 0; }; }; then :
1757*d14625f7Sroot  ac_retval=0
1758*d14625f7Srootelse
1759*d14625f7Sroot  $as_echo "$as_me: program exited with status $ac_status" >&5
1760*d14625f7Sroot       $as_echo "$as_me: failed program was:" >&5
1761*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
1762*d14625f7Sroot
1763*d14625f7Sroot       ac_retval=$ac_status
1764*d14625f7Srootfi
1765*d14625f7Sroot  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767*d14625f7Sroot  as_fn_set_status $ac_retval
1768*d14625f7Sroot
1769*d14625f7Sroot} # ac_fn_c_try_run
1770*d14625f7Sroot
1771*d14625f7Sroot# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772*d14625f7Sroot# -------------------------------------------------------
1773*d14625f7Sroot# Tests whether HEADER exists and can be compiled using the include files in
1774*d14625f7Sroot# INCLUDES, setting the cache variable VAR accordingly.
1775*d14625f7Srootac_fn_c_check_header_compile ()
1776*d14625f7Sroot{
1777*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779*d14625f7Sroot$as_echo_n "checking for $2... " >&6; }
1780*d14625f7Srootif eval \${$3+:} false; then :
1781*d14625f7Sroot  $as_echo_n "(cached) " >&6
1782*d14625f7Srootelse
1783*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784*d14625f7Sroot/* end confdefs.h.  */
1785*d14625f7Sroot$4
1786*d14625f7Sroot#include <$2>
1787*d14625f7Sroot_ACEOF
1788*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1789*d14625f7Sroot  eval "$3=yes"
1790*d14625f7Srootelse
1791*d14625f7Sroot  eval "$3=no"
1792*d14625f7Srootfi
1793*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794*d14625f7Srootfi
1795*d14625f7Srooteval ac_res=\$$3
1796*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797*d14625f7Sroot$as_echo "$ac_res" >&6; }
1798*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799*d14625f7Sroot
1800*d14625f7Sroot} # ac_fn_c_check_header_compile
1801*d14625f7Sroot
1802*d14625f7Sroot# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1803*d14625f7Sroot# --------------------------------------------
1804*d14625f7Sroot# Tries to find the compile-time value of EXPR in a program that includes
1805*d14625f7Sroot# INCLUDES, setting VAR accordingly. Returns whether the value could be
1806*d14625f7Sroot# computed
1807*d14625f7Srootac_fn_c_compute_int ()
1808*d14625f7Sroot{
1809*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810*d14625f7Sroot  if test "$cross_compiling" = yes; then
1811*d14625f7Sroot    # Depending upon the size, compute the lo and hi bounds.
1812*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813*d14625f7Sroot/* end confdefs.h.  */
1814*d14625f7Sroot$4
1815*d14625f7Srootint
1816*d14625f7Srootmain ()
1817*d14625f7Sroot{
1818*d14625f7Srootstatic int test_array [1 - 2 * !(($2) >= 0)];
1819*d14625f7Sroottest_array [0] = 0;
1820*d14625f7Srootreturn test_array [0];
1821*d14625f7Sroot
1822*d14625f7Sroot  ;
1823*d14625f7Sroot  return 0;
1824*d14625f7Sroot}
1825*d14625f7Sroot_ACEOF
1826*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1827*d14625f7Sroot  ac_lo=0 ac_mid=0
1828*d14625f7Sroot  while :; do
1829*d14625f7Sroot    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830*d14625f7Sroot/* end confdefs.h.  */
1831*d14625f7Sroot$4
1832*d14625f7Srootint
1833*d14625f7Srootmain ()
1834*d14625f7Sroot{
1835*d14625f7Srootstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836*d14625f7Sroottest_array [0] = 0;
1837*d14625f7Srootreturn test_array [0];
1838*d14625f7Sroot
1839*d14625f7Sroot  ;
1840*d14625f7Sroot  return 0;
1841*d14625f7Sroot}
1842*d14625f7Sroot_ACEOF
1843*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1844*d14625f7Sroot  ac_hi=$ac_mid; break
1845*d14625f7Srootelse
1846*d14625f7Sroot  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1847*d14625f7Sroot			if test $ac_lo -le $ac_mid; then
1848*d14625f7Sroot			  ac_lo= ac_hi=
1849*d14625f7Sroot			  break
1850*d14625f7Sroot			fi
1851*d14625f7Sroot			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1852*d14625f7Srootfi
1853*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854*d14625f7Sroot  done
1855*d14625f7Srootelse
1856*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857*d14625f7Sroot/* end confdefs.h.  */
1858*d14625f7Sroot$4
1859*d14625f7Srootint
1860*d14625f7Srootmain ()
1861*d14625f7Sroot{
1862*d14625f7Srootstatic int test_array [1 - 2 * !(($2) < 0)];
1863*d14625f7Sroottest_array [0] = 0;
1864*d14625f7Srootreturn test_array [0];
1865*d14625f7Sroot
1866*d14625f7Sroot  ;
1867*d14625f7Sroot  return 0;
1868*d14625f7Sroot}
1869*d14625f7Sroot_ACEOF
1870*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1871*d14625f7Sroot  ac_hi=-1 ac_mid=-1
1872*d14625f7Sroot  while :; do
1873*d14625f7Sroot    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874*d14625f7Sroot/* end confdefs.h.  */
1875*d14625f7Sroot$4
1876*d14625f7Srootint
1877*d14625f7Srootmain ()
1878*d14625f7Sroot{
1879*d14625f7Srootstatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
1880*d14625f7Sroottest_array [0] = 0;
1881*d14625f7Srootreturn test_array [0];
1882*d14625f7Sroot
1883*d14625f7Sroot  ;
1884*d14625f7Sroot  return 0;
1885*d14625f7Sroot}
1886*d14625f7Sroot_ACEOF
1887*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1888*d14625f7Sroot  ac_lo=$ac_mid; break
1889*d14625f7Srootelse
1890*d14625f7Sroot  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1891*d14625f7Sroot			if test $ac_mid -le $ac_hi; then
1892*d14625f7Sroot			  ac_lo= ac_hi=
1893*d14625f7Sroot			  break
1894*d14625f7Sroot			fi
1895*d14625f7Sroot			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1896*d14625f7Srootfi
1897*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898*d14625f7Sroot  done
1899*d14625f7Srootelse
1900*d14625f7Sroot  ac_lo= ac_hi=
1901*d14625f7Srootfi
1902*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903*d14625f7Srootfi
1904*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905*d14625f7Sroot# Binary search between lo and hi bounds.
1906*d14625f7Srootwhile test "x$ac_lo" != "x$ac_hi"; do
1907*d14625f7Sroot  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1908*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909*d14625f7Sroot/* end confdefs.h.  */
1910*d14625f7Sroot$4
1911*d14625f7Srootint
1912*d14625f7Srootmain ()
1913*d14625f7Sroot{
1914*d14625f7Srootstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915*d14625f7Sroottest_array [0] = 0;
1916*d14625f7Srootreturn test_array [0];
1917*d14625f7Sroot
1918*d14625f7Sroot  ;
1919*d14625f7Sroot  return 0;
1920*d14625f7Sroot}
1921*d14625f7Sroot_ACEOF
1922*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
1923*d14625f7Sroot  ac_hi=$ac_mid
1924*d14625f7Srootelse
1925*d14625f7Sroot  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1926*d14625f7Srootfi
1927*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928*d14625f7Srootdone
1929*d14625f7Srootcase $ac_lo in #((
1930*d14625f7Sroot?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1931*d14625f7Sroot'') ac_retval=1 ;;
1932*d14625f7Srootesac
1933*d14625f7Sroot  else
1934*d14625f7Sroot    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935*d14625f7Sroot/* end confdefs.h.  */
1936*d14625f7Sroot$4
1937*d14625f7Srootstatic long int longval () { return $2; }
1938*d14625f7Srootstatic unsigned long int ulongval () { return $2; }
1939*d14625f7Sroot#include <stdio.h>
1940*d14625f7Sroot#include <stdlib.h>
1941*d14625f7Srootint
1942*d14625f7Srootmain ()
1943*d14625f7Sroot{
1944*d14625f7Sroot
1945*d14625f7Sroot  FILE *f = fopen ("conftest.val", "w");
1946*d14625f7Sroot  if (! f)
1947*d14625f7Sroot    return 1;
1948*d14625f7Sroot  if (($2) < 0)
1949*d14625f7Sroot    {
1950*d14625f7Sroot      long int i = longval ();
1951*d14625f7Sroot      if (i != ($2))
1952*d14625f7Sroot	return 1;
1953*d14625f7Sroot      fprintf (f, "%ld", i);
1954*d14625f7Sroot    }
1955*d14625f7Sroot  else
1956*d14625f7Sroot    {
1957*d14625f7Sroot      unsigned long int i = ulongval ();
1958*d14625f7Sroot      if (i != ($2))
1959*d14625f7Sroot	return 1;
1960*d14625f7Sroot      fprintf (f, "%lu", i);
1961*d14625f7Sroot    }
1962*d14625f7Sroot  /* Do not output a trailing newline, as this causes \r\n confusion
1963*d14625f7Sroot     on some platforms.  */
1964*d14625f7Sroot  return ferror (f) || fclose (f) != 0;
1965*d14625f7Sroot
1966*d14625f7Sroot  ;
1967*d14625f7Sroot  return 0;
1968*d14625f7Sroot}
1969*d14625f7Sroot_ACEOF
1970*d14625f7Srootif ac_fn_c_try_run "$LINENO"; then :
1971*d14625f7Sroot  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1972*d14625f7Srootelse
1973*d14625f7Sroot  ac_retval=1
1974*d14625f7Srootfi
1975*d14625f7Srootrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1976*d14625f7Sroot  conftest.$ac_objext conftest.beam conftest.$ac_ext
1977*d14625f7Srootrm -f conftest.val
1978*d14625f7Sroot
1979*d14625f7Sroot  fi
1980*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981*d14625f7Sroot  as_fn_set_status $ac_retval
1982*d14625f7Sroot
1983*d14625f7Sroot} # ac_fn_c_compute_int
1984*d14625f7Sroot
1985*d14625f7Sroot# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986*d14625f7Sroot# -------------------------------------------------------
1987*d14625f7Sroot# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988*d14625f7Sroot# the include files in INCLUDES and setting the cache variable VAR
1989*d14625f7Sroot# accordingly.
1990*d14625f7Srootac_fn_c_check_header_mongrel ()
1991*d14625f7Sroot{
1992*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993*d14625f7Sroot  if eval \${$3+:} false; then :
1994*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995*d14625f7Sroot$as_echo_n "checking for $2... " >&6; }
1996*d14625f7Srootif eval \${$3+:} false; then :
1997*d14625f7Sroot  $as_echo_n "(cached) " >&6
1998*d14625f7Srootfi
1999*d14625f7Srooteval ac_res=\$$3
2000*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001*d14625f7Sroot$as_echo "$ac_res" >&6; }
2002*d14625f7Srootelse
2003*d14625f7Sroot  # Is the header compilable?
2004*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005*d14625f7Sroot$as_echo_n "checking $2 usability... " >&6; }
2006*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007*d14625f7Sroot/* end confdefs.h.  */
2008*d14625f7Sroot$4
2009*d14625f7Sroot#include <$2>
2010*d14625f7Sroot_ACEOF
2011*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
2012*d14625f7Sroot  ac_header_compiler=yes
2013*d14625f7Srootelse
2014*d14625f7Sroot  ac_header_compiler=no
2015*d14625f7Srootfi
2016*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018*d14625f7Sroot$as_echo "$ac_header_compiler" >&6; }
2019*d14625f7Sroot
2020*d14625f7Sroot# Is the header present?
2021*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022*d14625f7Sroot$as_echo_n "checking $2 presence... " >&6; }
2023*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024*d14625f7Sroot/* end confdefs.h.  */
2025*d14625f7Sroot#include <$2>
2026*d14625f7Sroot_ACEOF
2027*d14625f7Srootif ac_fn_c_try_cpp "$LINENO"; then :
2028*d14625f7Sroot  ac_header_preproc=yes
2029*d14625f7Srootelse
2030*d14625f7Sroot  ac_header_preproc=no
2031*d14625f7Srootfi
2032*d14625f7Srootrm -f conftest.err conftest.i conftest.$ac_ext
2033*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034*d14625f7Sroot$as_echo "$ac_header_preproc" >&6; }
2035*d14625f7Sroot
2036*d14625f7Sroot# So?  What about this header?
2037*d14625f7Srootcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038*d14625f7Sroot  yes:no: )
2039*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040*d14625f7Sroot$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042*d14625f7Sroot$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043*d14625f7Sroot    ;;
2044*d14625f7Sroot  no:yes:* )
2045*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046*d14625f7Sroot$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2048*d14625f7Sroot$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2049*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050*d14625f7Sroot$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2052*d14625f7Sroot$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2053*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054*d14625f7Sroot$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055*d14625f7Sroot    ;;
2056*d14625f7Srootesac
2057*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058*d14625f7Sroot$as_echo_n "checking for $2... " >&6; }
2059*d14625f7Srootif eval \${$3+:} false; then :
2060*d14625f7Sroot  $as_echo_n "(cached) " >&6
2061*d14625f7Srootelse
2062*d14625f7Sroot  eval "$3=\$ac_header_compiler"
2063*d14625f7Srootfi
2064*d14625f7Srooteval ac_res=\$$3
2065*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066*d14625f7Sroot$as_echo "$ac_res" >&6; }
2067*d14625f7Srootfi
2068*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069*d14625f7Sroot
2070*d14625f7Sroot} # ac_fn_c_check_header_mongrel
2071*d14625f7Sroot
2072*d14625f7Sroot# ac_fn_c_check_func LINENO FUNC VAR
2073*d14625f7Sroot# ----------------------------------
2074*d14625f7Sroot# Tests whether FUNC exists, setting the cache variable VAR accordingly
2075*d14625f7Srootac_fn_c_check_func ()
2076*d14625f7Sroot{
2077*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079*d14625f7Sroot$as_echo_n "checking for $2... " >&6; }
2080*d14625f7Srootif eval \${$3+:} false; then :
2081*d14625f7Sroot  $as_echo_n "(cached) " >&6
2082*d14625f7Srootelse
2083*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084*d14625f7Sroot/* end confdefs.h.  */
2085*d14625f7Sroot/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086*d14625f7Sroot   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2087*d14625f7Sroot#define $2 innocuous_$2
2088*d14625f7Sroot
2089*d14625f7Sroot/* System header to define __stub macros and hopefully few prototypes,
2090*d14625f7Sroot    which can conflict with char $2 (); below.
2091*d14625f7Sroot    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092*d14625f7Sroot    <limits.h> exists even on freestanding compilers.  */
2093*d14625f7Sroot
2094*d14625f7Sroot#ifdef __STDC__
2095*d14625f7Sroot# include <limits.h>
2096*d14625f7Sroot#else
2097*d14625f7Sroot# include <assert.h>
2098*d14625f7Sroot#endif
2099*d14625f7Sroot
2100*d14625f7Sroot#undef $2
2101*d14625f7Sroot
2102*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
2103*d14625f7Sroot   Use char because int might match the return type of a GCC
2104*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
2105*d14625f7Sroot#ifdef __cplusplus
2106*d14625f7Srootextern "C"
2107*d14625f7Sroot#endif
2108*d14625f7Srootchar $2 ();
2109*d14625f7Sroot/* The GNU C library defines this for functions which it implements
2110*d14625f7Sroot    to always fail with ENOSYS.  Some functions are actually named
2111*d14625f7Sroot    something starting with __ and the normal name is an alias.  */
2112*d14625f7Sroot#if defined __stub_$2 || defined __stub___$2
2113*d14625f7Srootchoke me
2114*d14625f7Sroot#endif
2115*d14625f7Sroot
2116*d14625f7Srootint
2117*d14625f7Srootmain ()
2118*d14625f7Sroot{
2119*d14625f7Srootreturn $2 ();
2120*d14625f7Sroot  ;
2121*d14625f7Sroot  return 0;
2122*d14625f7Sroot}
2123*d14625f7Sroot_ACEOF
2124*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
2125*d14625f7Sroot  eval "$3=yes"
2126*d14625f7Srootelse
2127*d14625f7Sroot  eval "$3=no"
2128*d14625f7Srootfi
2129*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
2130*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
2131*d14625f7Srootfi
2132*d14625f7Srooteval ac_res=\$$3
2133*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134*d14625f7Sroot$as_echo "$ac_res" >&6; }
2135*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136*d14625f7Sroot
2137*d14625f7Sroot} # ac_fn_c_check_func
2138*d14625f7Sroot
2139*d14625f7Sroot# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140*d14625f7Sroot# -------------------------------------------
2141*d14625f7Sroot# Tests whether TYPE exists after having included INCLUDES, setting cache
2142*d14625f7Sroot# variable VAR accordingly.
2143*d14625f7Srootac_fn_c_check_type ()
2144*d14625f7Sroot{
2145*d14625f7Sroot  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147*d14625f7Sroot$as_echo_n "checking for $2... " >&6; }
2148*d14625f7Srootif eval \${$3+:} false; then :
2149*d14625f7Sroot  $as_echo_n "(cached) " >&6
2150*d14625f7Srootelse
2151*d14625f7Sroot  eval "$3=no"
2152*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153*d14625f7Sroot/* end confdefs.h.  */
2154*d14625f7Sroot$4
2155*d14625f7Srootint
2156*d14625f7Srootmain ()
2157*d14625f7Sroot{
2158*d14625f7Srootif (sizeof ($2))
2159*d14625f7Sroot	 return 0;
2160*d14625f7Sroot  ;
2161*d14625f7Sroot  return 0;
2162*d14625f7Sroot}
2163*d14625f7Sroot_ACEOF
2164*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
2165*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166*d14625f7Sroot/* end confdefs.h.  */
2167*d14625f7Sroot$4
2168*d14625f7Srootint
2169*d14625f7Srootmain ()
2170*d14625f7Sroot{
2171*d14625f7Srootif (sizeof (($2)))
2172*d14625f7Sroot	    return 0;
2173*d14625f7Sroot  ;
2174*d14625f7Sroot  return 0;
2175*d14625f7Sroot}
2176*d14625f7Sroot_ACEOF
2177*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
2178*d14625f7Sroot
2179*d14625f7Srootelse
2180*d14625f7Sroot  eval "$3=yes"
2181*d14625f7Srootfi
2182*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183*d14625f7Srootfi
2184*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185*d14625f7Srootfi
2186*d14625f7Srooteval ac_res=\$$3
2187*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188*d14625f7Sroot$as_echo "$ac_res" >&6; }
2189*d14625f7Sroot  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190*d14625f7Sroot
2191*d14625f7Sroot} # ac_fn_c_check_type
2192*d14625f7Srootcat >config.log <<_ACEOF
2193*d14625f7SrootThis file contains any messages produced by compilers while
2194*d14625f7Srootrunning configure, to aid debugging if configure makes a mistake.
2195*d14625f7Sroot
2196*d14625f7SrootIt was created by $as_me, which was
2197*d14625f7Srootgenerated by GNU Autoconf 2.69.  Invocation command line was
2198*d14625f7Sroot
2199*d14625f7Sroot  $ $0 $@
2200*d14625f7Sroot
2201*d14625f7Sroot_ACEOF
2202*d14625f7Srootexec 5>>config.log
2203*d14625f7Sroot{
2204*d14625f7Srootcat <<_ASUNAME
2205*d14625f7Sroot## --------- ##
2206*d14625f7Sroot## Platform. ##
2207*d14625f7Sroot## --------- ##
2208*d14625f7Sroot
2209*d14625f7Sroothostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210*d14625f7Srootuname -m = `(uname -m) 2>/dev/null || echo unknown`
2211*d14625f7Srootuname -r = `(uname -r) 2>/dev/null || echo unknown`
2212*d14625f7Srootuname -s = `(uname -s) 2>/dev/null || echo unknown`
2213*d14625f7Srootuname -v = `(uname -v) 2>/dev/null || echo unknown`
2214*d14625f7Sroot
2215*d14625f7Sroot/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216*d14625f7Sroot/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2217*d14625f7Sroot
2218*d14625f7Sroot/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2219*d14625f7Sroot/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2220*d14625f7Sroot/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221*d14625f7Sroot/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2222*d14625f7Sroot/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2223*d14625f7Sroot/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2224*d14625f7Sroot/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2225*d14625f7Sroot
2226*d14625f7Sroot_ASUNAME
2227*d14625f7Sroot
2228*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229*d14625f7Srootfor as_dir in $PATH
2230*d14625f7Srootdo
2231*d14625f7Sroot  IFS=$as_save_IFS
2232*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2233*d14625f7Sroot    $as_echo "PATH: $as_dir"
2234*d14625f7Sroot  done
2235*d14625f7SrootIFS=$as_save_IFS
2236*d14625f7Sroot
2237*d14625f7Sroot} >&5
2238*d14625f7Sroot
2239*d14625f7Srootcat >&5 <<_ACEOF
2240*d14625f7Sroot
2241*d14625f7Sroot
2242*d14625f7Sroot## ----------- ##
2243*d14625f7Sroot## Core tests. ##
2244*d14625f7Sroot## ----------- ##
2245*d14625f7Sroot
2246*d14625f7Sroot_ACEOF
2247*d14625f7Sroot
2248*d14625f7Sroot
2249*d14625f7Sroot# Keep a trace of the command line.
2250*d14625f7Sroot# Strip out --no-create and --no-recursion so they do not pile up.
2251*d14625f7Sroot# Strip out --silent because we don't want to record it for future runs.
2252*d14625f7Sroot# Also quote any args containing shell meta-characters.
2253*d14625f7Sroot# Make two passes to allow for proper duplicate-argument suppression.
2254*d14625f7Srootac_configure_args=
2255*d14625f7Srootac_configure_args0=
2256*d14625f7Srootac_configure_args1=
2257*d14625f7Srootac_must_keep_next=false
2258*d14625f7Srootfor ac_pass in 1 2
2259*d14625f7Srootdo
2260*d14625f7Sroot  for ac_arg
2261*d14625f7Sroot  do
2262*d14625f7Sroot    case $ac_arg in
2263*d14625f7Sroot    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264*d14625f7Sroot    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265*d14625f7Sroot    | -silent | --silent | --silen | --sile | --sil)
2266*d14625f7Sroot      continue ;;
2267*d14625f7Sroot    *\'*)
2268*d14625f7Sroot      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269*d14625f7Sroot    esac
2270*d14625f7Sroot    case $ac_pass in
2271*d14625f7Sroot    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272*d14625f7Sroot    2)
2273*d14625f7Sroot      as_fn_append ac_configure_args1 " '$ac_arg'"
2274*d14625f7Sroot      if test $ac_must_keep_next = true; then
2275*d14625f7Sroot	ac_must_keep_next=false # Got value, back to normal.
2276*d14625f7Sroot      else
2277*d14625f7Sroot	case $ac_arg in
2278*d14625f7Sroot	  *=* | --config-cache | -C | -disable-* | --disable-* \
2279*d14625f7Sroot	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280*d14625f7Sroot	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281*d14625f7Sroot	  | -with-* | --with-* | -without-* | --without-* | --x)
2282*d14625f7Sroot	    case "$ac_configure_args0 " in
2283*d14625f7Sroot	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284*d14625f7Sroot	    esac
2285*d14625f7Sroot	    ;;
2286*d14625f7Sroot	  -* ) ac_must_keep_next=true ;;
2287*d14625f7Sroot	esac
2288*d14625f7Sroot      fi
2289*d14625f7Sroot      as_fn_append ac_configure_args " '$ac_arg'"
2290*d14625f7Sroot      ;;
2291*d14625f7Sroot    esac
2292*d14625f7Sroot  done
2293*d14625f7Srootdone
2294*d14625f7Sroot{ ac_configure_args0=; unset ac_configure_args0;}
2295*d14625f7Sroot{ ac_configure_args1=; unset ac_configure_args1;}
2296*d14625f7Sroot
2297*d14625f7Sroot# When interrupted or exit'd, cleanup temporary files, and complete
2298*d14625f7Sroot# config.log.  We remove comments because anyway the quotes in there
2299*d14625f7Sroot# would cause problems or look ugly.
2300*d14625f7Sroot# WARNING: Use '\'' to represent an apostrophe within the trap.
2301*d14625f7Sroot# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302*d14625f7Sroottrap 'exit_status=$?
2303*d14625f7Sroot  # Save into config.log some information that might help in debugging.
2304*d14625f7Sroot  {
2305*d14625f7Sroot    echo
2306*d14625f7Sroot
2307*d14625f7Sroot    $as_echo "## ---------------- ##
2308*d14625f7Sroot## Cache variables. ##
2309*d14625f7Sroot## ---------------- ##"
2310*d14625f7Sroot    echo
2311*d14625f7Sroot    # The following way of writing the cache mishandles newlines in values,
2312*d14625f7Sroot(
2313*d14625f7Sroot  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314*d14625f7Sroot    eval ac_val=\$$ac_var
2315*d14625f7Sroot    case $ac_val in #(
2316*d14625f7Sroot    *${as_nl}*)
2317*d14625f7Sroot      case $ac_var in #(
2318*d14625f7Sroot      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319*d14625f7Sroot$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320*d14625f7Sroot      esac
2321*d14625f7Sroot      case $ac_var in #(
2322*d14625f7Sroot      _ | IFS | as_nl) ;; #(
2323*d14625f7Sroot      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324*d14625f7Sroot      *) { eval $ac_var=; unset $ac_var;} ;;
2325*d14625f7Sroot      esac ;;
2326*d14625f7Sroot    esac
2327*d14625f7Sroot  done
2328*d14625f7Sroot  (set) 2>&1 |
2329*d14625f7Sroot    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330*d14625f7Sroot    *${as_nl}ac_space=\ *)
2331*d14625f7Sroot      sed -n \
2332*d14625f7Sroot	"s/'\''/'\''\\\\'\'''\''/g;
2333*d14625f7Sroot	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334*d14625f7Sroot      ;; #(
2335*d14625f7Sroot    *)
2336*d14625f7Sroot      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337*d14625f7Sroot      ;;
2338*d14625f7Sroot    esac |
2339*d14625f7Sroot    sort
2340*d14625f7Sroot)
2341*d14625f7Sroot    echo
2342*d14625f7Sroot
2343*d14625f7Sroot    $as_echo "## ----------------- ##
2344*d14625f7Sroot## Output variables. ##
2345*d14625f7Sroot## ----------------- ##"
2346*d14625f7Sroot    echo
2347*d14625f7Sroot    for ac_var in $ac_subst_vars
2348*d14625f7Sroot    do
2349*d14625f7Sroot      eval ac_val=\$$ac_var
2350*d14625f7Sroot      case $ac_val in
2351*d14625f7Sroot      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352*d14625f7Sroot      esac
2353*d14625f7Sroot      $as_echo "$ac_var='\''$ac_val'\''"
2354*d14625f7Sroot    done | sort
2355*d14625f7Sroot    echo
2356*d14625f7Sroot
2357*d14625f7Sroot    if test -n "$ac_subst_files"; then
2358*d14625f7Sroot      $as_echo "## ------------------- ##
2359*d14625f7Sroot## File substitutions. ##
2360*d14625f7Sroot## ------------------- ##"
2361*d14625f7Sroot      echo
2362*d14625f7Sroot      for ac_var in $ac_subst_files
2363*d14625f7Sroot      do
2364*d14625f7Sroot	eval ac_val=\$$ac_var
2365*d14625f7Sroot	case $ac_val in
2366*d14625f7Sroot	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367*d14625f7Sroot	esac
2368*d14625f7Sroot	$as_echo "$ac_var='\''$ac_val'\''"
2369*d14625f7Sroot      done | sort
2370*d14625f7Sroot      echo
2371*d14625f7Sroot    fi
2372*d14625f7Sroot
2373*d14625f7Sroot    if test -s confdefs.h; then
2374*d14625f7Sroot      $as_echo "## ----------- ##
2375*d14625f7Sroot## confdefs.h. ##
2376*d14625f7Sroot## ----------- ##"
2377*d14625f7Sroot      echo
2378*d14625f7Sroot      cat confdefs.h
2379*d14625f7Sroot      echo
2380*d14625f7Sroot    fi
2381*d14625f7Sroot    test "$ac_signal" != 0 &&
2382*d14625f7Sroot      $as_echo "$as_me: caught signal $ac_signal"
2383*d14625f7Sroot    $as_echo "$as_me: exit $exit_status"
2384*d14625f7Sroot  } >&5
2385*d14625f7Sroot  rm -f core *.core core.conftest.* &&
2386*d14625f7Sroot    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387*d14625f7Sroot    exit $exit_status
2388*d14625f7Sroot' 0
2389*d14625f7Srootfor ac_signal in 1 2 13 15; do
2390*d14625f7Sroot  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391*d14625f7Srootdone
2392*d14625f7Srootac_signal=0
2393*d14625f7Sroot
2394*d14625f7Sroot# confdefs.h avoids OS command line length limits that DEFS can exceed.
2395*d14625f7Srootrm -f -r conftest* confdefs.h
2396*d14625f7Sroot
2397*d14625f7Sroot$as_echo "/* confdefs.h */" > confdefs.h
2398*d14625f7Sroot
2399*d14625f7Sroot# Predefined preprocessor variables.
2400*d14625f7Sroot
2401*d14625f7Srootcat >>confdefs.h <<_ACEOF
2402*d14625f7Sroot#define PACKAGE_NAME "$PACKAGE_NAME"
2403*d14625f7Sroot_ACEOF
2404*d14625f7Sroot
2405*d14625f7Srootcat >>confdefs.h <<_ACEOF
2406*d14625f7Sroot#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407*d14625f7Sroot_ACEOF
2408*d14625f7Sroot
2409*d14625f7Srootcat >>confdefs.h <<_ACEOF
2410*d14625f7Sroot#define PACKAGE_VERSION "$PACKAGE_VERSION"
2411*d14625f7Sroot_ACEOF
2412*d14625f7Sroot
2413*d14625f7Srootcat >>confdefs.h <<_ACEOF
2414*d14625f7Sroot#define PACKAGE_STRING "$PACKAGE_STRING"
2415*d14625f7Sroot_ACEOF
2416*d14625f7Sroot
2417*d14625f7Srootcat >>confdefs.h <<_ACEOF
2418*d14625f7Sroot#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419*d14625f7Sroot_ACEOF
2420*d14625f7Sroot
2421*d14625f7Srootcat >>confdefs.h <<_ACEOF
2422*d14625f7Sroot#define PACKAGE_URL "$PACKAGE_URL"
2423*d14625f7Sroot_ACEOF
2424*d14625f7Sroot
2425*d14625f7Sroot
2426*d14625f7Sroot# Let the site file select an alternate cache file if it wants to.
2427*d14625f7Sroot# Prefer an explicitly selected file to automatically selected ones.
2428*d14625f7Srootac_site_file1=NONE
2429*d14625f7Srootac_site_file2=NONE
2430*d14625f7Srootif test -n "$CONFIG_SITE"; then
2431*d14625f7Sroot  # We do not want a PATH search for config.site.
2432*d14625f7Sroot  case $CONFIG_SITE in #((
2433*d14625f7Sroot    -*)  ac_site_file1=./$CONFIG_SITE;;
2434*d14625f7Sroot    */*) ac_site_file1=$CONFIG_SITE;;
2435*d14625f7Sroot    *)   ac_site_file1=./$CONFIG_SITE;;
2436*d14625f7Sroot  esac
2437*d14625f7Srootelif test "x$prefix" != xNONE; then
2438*d14625f7Sroot  ac_site_file1=$prefix/share/config.site
2439*d14625f7Sroot  ac_site_file2=$prefix/etc/config.site
2440*d14625f7Srootelse
2441*d14625f7Sroot  ac_site_file1=$ac_default_prefix/share/config.site
2442*d14625f7Sroot  ac_site_file2=$ac_default_prefix/etc/config.site
2443*d14625f7Srootfi
2444*d14625f7Srootfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445*d14625f7Srootdo
2446*d14625f7Sroot  test "x$ac_site_file" = xNONE && continue
2447*d14625f7Sroot  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449*d14625f7Sroot$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450*d14625f7Sroot    sed 's/^/| /' "$ac_site_file" >&5
2451*d14625f7Sroot    . "$ac_site_file" \
2452*d14625f7Sroot      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454*d14625f7Srootas_fn_error $? "failed to load site script $ac_site_file
2455*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
2456*d14625f7Sroot  fi
2457*d14625f7Srootdone
2458*d14625f7Sroot
2459*d14625f7Srootif test -r "$cache_file"; then
2460*d14625f7Sroot  # Some versions of bash will fail to source /dev/null (special files
2461*d14625f7Sroot  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2462*d14625f7Sroot  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464*d14625f7Sroot$as_echo "$as_me: loading cache $cache_file" >&6;}
2465*d14625f7Sroot    case $cache_file in
2466*d14625f7Sroot      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467*d14625f7Sroot      *)                      . "./$cache_file";;
2468*d14625f7Sroot    esac
2469*d14625f7Sroot  fi
2470*d14625f7Srootelse
2471*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472*d14625f7Sroot$as_echo "$as_me: creating cache $cache_file" >&6;}
2473*d14625f7Sroot  >$cache_file
2474*d14625f7Srootfi
2475*d14625f7Sroot
2476*d14625f7Sroot# Check that the precious variables saved in the cache have kept the same
2477*d14625f7Sroot# value.
2478*d14625f7Srootac_cache_corrupted=false
2479*d14625f7Srootfor ac_var in $ac_precious_vars; do
2480*d14625f7Sroot  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481*d14625f7Sroot  eval ac_new_set=\$ac_env_${ac_var}_set
2482*d14625f7Sroot  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483*d14625f7Sroot  eval ac_new_val=\$ac_env_${ac_var}_value
2484*d14625f7Sroot  case $ac_old_set,$ac_new_set in
2485*d14625f7Sroot    set,)
2486*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487*d14625f7Sroot$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488*d14625f7Sroot      ac_cache_corrupted=: ;;
2489*d14625f7Sroot    ,set)
2490*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491*d14625f7Sroot$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492*d14625f7Sroot      ac_cache_corrupted=: ;;
2493*d14625f7Sroot    ,);;
2494*d14625f7Sroot    *)
2495*d14625f7Sroot      if test "x$ac_old_val" != "x$ac_new_val"; then
2496*d14625f7Sroot	# differences in whitespace do not lead to failure.
2497*d14625f7Sroot	ac_old_val_w=`echo x $ac_old_val`
2498*d14625f7Sroot	ac_new_val_w=`echo x $ac_new_val`
2499*d14625f7Sroot	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500*d14625f7Sroot	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501*d14625f7Sroot$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502*d14625f7Sroot	  ac_cache_corrupted=:
2503*d14625f7Sroot	else
2504*d14625f7Sroot	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505*d14625f7Sroot$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506*d14625f7Sroot	  eval $ac_var=\$ac_old_val
2507*d14625f7Sroot	fi
2508*d14625f7Sroot	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2509*d14625f7Sroot$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2510*d14625f7Sroot	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2511*d14625f7Sroot$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2512*d14625f7Sroot      fi;;
2513*d14625f7Sroot  esac
2514*d14625f7Sroot  # Pass precious variables to config.status.
2515*d14625f7Sroot  if test "$ac_new_set" = set; then
2516*d14625f7Sroot    case $ac_new_val in
2517*d14625f7Sroot    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518*d14625f7Sroot    *) ac_arg=$ac_var=$ac_new_val ;;
2519*d14625f7Sroot    esac
2520*d14625f7Sroot    case " $ac_configure_args " in
2521*d14625f7Sroot      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2522*d14625f7Sroot      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523*d14625f7Sroot    esac
2524*d14625f7Sroot  fi
2525*d14625f7Srootdone
2526*d14625f7Srootif $ac_cache_corrupted; then
2527*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530*d14625f7Sroot$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531*d14625f7Sroot  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2532*d14625f7Srootfi
2533*d14625f7Sroot## -------------------- ##
2534*d14625f7Sroot## Main body of script. ##
2535*d14625f7Sroot## -------------------- ##
2536*d14625f7Sroot
2537*d14625f7Srootac_ext=c
2538*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
2539*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
2542*d14625f7Sroot
2543*d14625f7Sroot
2544*d14625f7Sroot
2545*d14625f7Srootac_aux_dir=
2546*d14625f7Srootfor ac_dir in build-aux "$srcdir"/build-aux; do
2547*d14625f7Sroot  if test -f "$ac_dir/install-sh"; then
2548*d14625f7Sroot    ac_aux_dir=$ac_dir
2549*d14625f7Sroot    ac_install_sh="$ac_aux_dir/install-sh -c"
2550*d14625f7Sroot    break
2551*d14625f7Sroot  elif test -f "$ac_dir/install.sh"; then
2552*d14625f7Sroot    ac_aux_dir=$ac_dir
2553*d14625f7Sroot    ac_install_sh="$ac_aux_dir/install.sh -c"
2554*d14625f7Sroot    break
2555*d14625f7Sroot  elif test -f "$ac_dir/shtool"; then
2556*d14625f7Sroot    ac_aux_dir=$ac_dir
2557*d14625f7Sroot    ac_install_sh="$ac_aux_dir/shtool install -c"
2558*d14625f7Sroot    break
2559*d14625f7Sroot  fi
2560*d14625f7Srootdone
2561*d14625f7Srootif test -z "$ac_aux_dir"; then
2562*d14625f7Sroot  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2563*d14625f7Srootfi
2564*d14625f7Sroot
2565*d14625f7Sroot# These three variables are undocumented and unsupported,
2566*d14625f7Sroot# and are intended to be withdrawn in a future Autoconf release.
2567*d14625f7Sroot# They can cause serious problems if a builder's source tree is in a directory
2568*d14625f7Sroot# whose full name contains unusual characters.
2569*d14625f7Srootac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2570*d14625f7Srootac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2571*d14625f7Srootac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2572*d14625f7Sroot
2573*d14625f7Sroot
2574*d14625f7Sroot
2575*d14625f7Sroot
2576*d14625f7Sroot
2577*d14625f7Sroot
2578*d14625f7Sroot
2579*d14625f7Sroot
2580*d14625f7SrootCONFIGURE_CFLAGS=
2581*d14625f7SrootSPECIFIED_CFLAGS="${CFLAGS}"
2582*d14625f7Sroot
2583*d14625f7Sroot
2584*d14625f7Sroot
2585*d14625f7Sroot
2586*d14625f7Sroot
2587*d14625f7SrootCONFIGURE_CXXFLAGS=
2588*d14625f7SrootSPECIFIED_CXXFLAGS="${CXXFLAGS}"
2589*d14625f7Sroot
2590*d14625f7Sroot
2591*d14625f7Sroot
2592*d14625f7Sroot
2593*d14625f7Sroot
2594*d14625f7SrootCONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2595*d14625f7Sroot
2596*d14625f7Sroot
2597*d14625f7Srootrev=2
2598*d14625f7Sroot
2599*d14625f7Sroot
2600*d14625f7Srootsrcroot=$srcdir
2601*d14625f7Srootif test "x${srcroot}" = "x." ; then
2602*d14625f7Sroot  srcroot=""
2603*d14625f7Srootelse
2604*d14625f7Sroot  srcroot="${srcroot}/"
2605*d14625f7Srootfi
2606*d14625f7Sroot
2607*d14625f7Srootabs_srcroot="`cd \"${srcdir}\"; pwd`/"
2608*d14625f7Sroot
2609*d14625f7Sroot
2610*d14625f7Srootobjroot=""
2611*d14625f7Sroot
2612*d14625f7Srootabs_objroot="`pwd`/"
2613*d14625f7Sroot
2614*d14625f7Sroot
2615*d14625f7Srootif test "x$prefix" = "xNONE" ; then
2616*d14625f7Sroot  prefix="/usr/local"
2617*d14625f7Srootfi
2618*d14625f7Srootif test "x$exec_prefix" = "xNONE" ; then
2619*d14625f7Sroot  exec_prefix=$prefix
2620*d14625f7Srootfi
2621*d14625f7SrootPREFIX=$prefix
2622*d14625f7Sroot
2623*d14625f7SrootBINDIR=`eval echo $bindir`
2624*d14625f7SrootBINDIR=`eval echo $BINDIR`
2625*d14625f7Sroot
2626*d14625f7SrootINCLUDEDIR=`eval echo $includedir`
2627*d14625f7SrootINCLUDEDIR=`eval echo $INCLUDEDIR`
2628*d14625f7Sroot
2629*d14625f7SrootLIBDIR=`eval echo $libdir`
2630*d14625f7SrootLIBDIR=`eval echo $LIBDIR`
2631*d14625f7Sroot
2632*d14625f7SrootDATADIR=`eval echo $datadir`
2633*d14625f7SrootDATADIR=`eval echo $DATADIR`
2634*d14625f7Sroot
2635*d14625f7SrootMANDIR=`eval echo $mandir`
2636*d14625f7SrootMANDIR=`eval echo $MANDIR`
2637*d14625f7Sroot
2638*d14625f7Sroot
2639*d14625f7Sroot# Extract the first word of "xsltproc", so it can be a program name with args.
2640*d14625f7Srootset dummy xsltproc; ac_word=$2
2641*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2643*d14625f7Srootif ${ac_cv_path_XSLTPROC+:} false; then :
2644*d14625f7Sroot  $as_echo_n "(cached) " >&6
2645*d14625f7Srootelse
2646*d14625f7Sroot  case $XSLTPROC in
2647*d14625f7Sroot  [\\/]* | ?:[\\/]*)
2648*d14625f7Sroot  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2649*d14625f7Sroot  ;;
2650*d14625f7Sroot  *)
2651*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652*d14625f7Srootfor as_dir in $PATH
2653*d14625f7Srootdo
2654*d14625f7Sroot  IFS=$as_save_IFS
2655*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2656*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2657*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658*d14625f7Sroot    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2659*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660*d14625f7Sroot    break 2
2661*d14625f7Sroot  fi
2662*d14625f7Srootdone
2663*d14625f7Sroot  done
2664*d14625f7SrootIFS=$as_save_IFS
2665*d14625f7Sroot
2666*d14625f7Sroot  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2667*d14625f7Sroot  ;;
2668*d14625f7Srootesac
2669*d14625f7Srootfi
2670*d14625f7SrootXSLTPROC=$ac_cv_path_XSLTPROC
2671*d14625f7Srootif test -n "$XSLTPROC"; then
2672*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2673*d14625f7Sroot$as_echo "$XSLTPROC" >&6; }
2674*d14625f7Srootelse
2675*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676*d14625f7Sroot$as_echo "no" >&6; }
2677*d14625f7Srootfi
2678*d14625f7Sroot
2679*d14625f7Sroot
2680*d14625f7Srootif test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2681*d14625f7Sroot  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2682*d14625f7Srootelif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2683*d14625f7Sroot  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2684*d14625f7Srootelse
2685*d14625f7Sroot    DEFAULT_XSLROOT=""
2686*d14625f7Srootfi
2687*d14625f7Sroot
2688*d14625f7Sroot# Check whether --with-xslroot was given.
2689*d14625f7Srootif test "${with_xslroot+set}" = set; then :
2690*d14625f7Sroot  withval=$with_xslroot;
2691*d14625f7Srootif test "x$with_xslroot" = "xno" ; then
2692*d14625f7Sroot  XSLROOT="${DEFAULT_XSLROOT}"
2693*d14625f7Srootelse
2694*d14625f7Sroot  XSLROOT="${with_xslroot}"
2695*d14625f7Srootfi
2696*d14625f7Sroot
2697*d14625f7Srootelse
2698*d14625f7Sroot  XSLROOT="${DEFAULT_XSLROOT}"
2699*d14625f7Sroot
2700*d14625f7Srootfi
2701*d14625f7Sroot
2702*d14625f7Sroot
2703*d14625f7Sroot
2704*d14625f7SrootCFLAGS=$CFLAGS
2705*d14625f7Srootac_ext=c
2706*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
2707*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
2710*d14625f7Srootif test -n "$ac_tool_prefix"; then
2711*d14625f7Sroot  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712*d14625f7Srootset dummy ${ac_tool_prefix}gcc; ac_word=$2
2713*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2715*d14625f7Srootif ${ac_cv_prog_CC+:} false; then :
2716*d14625f7Sroot  $as_echo_n "(cached) " >&6
2717*d14625f7Srootelse
2718*d14625f7Sroot  if test -n "$CC"; then
2719*d14625f7Sroot  ac_cv_prog_CC="$CC" # Let the user override the test.
2720*d14625f7Srootelse
2721*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722*d14625f7Srootfor as_dir in $PATH
2723*d14625f7Srootdo
2724*d14625f7Sroot  IFS=$as_save_IFS
2725*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2726*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2727*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728*d14625f7Sroot    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730*d14625f7Sroot    break 2
2731*d14625f7Sroot  fi
2732*d14625f7Srootdone
2733*d14625f7Sroot  done
2734*d14625f7SrootIFS=$as_save_IFS
2735*d14625f7Sroot
2736*d14625f7Srootfi
2737*d14625f7Srootfi
2738*d14625f7SrootCC=$ac_cv_prog_CC
2739*d14625f7Srootif test -n "$CC"; then
2740*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741*d14625f7Sroot$as_echo "$CC" >&6; }
2742*d14625f7Srootelse
2743*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744*d14625f7Sroot$as_echo "no" >&6; }
2745*d14625f7Srootfi
2746*d14625f7Sroot
2747*d14625f7Sroot
2748*d14625f7Srootfi
2749*d14625f7Srootif test -z "$ac_cv_prog_CC"; then
2750*d14625f7Sroot  ac_ct_CC=$CC
2751*d14625f7Sroot  # Extract the first word of "gcc", so it can be a program name with args.
2752*d14625f7Srootset dummy gcc; ac_word=$2
2753*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2755*d14625f7Srootif ${ac_cv_prog_ac_ct_CC+:} false; then :
2756*d14625f7Sroot  $as_echo_n "(cached) " >&6
2757*d14625f7Srootelse
2758*d14625f7Sroot  if test -n "$ac_ct_CC"; then
2759*d14625f7Sroot  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760*d14625f7Srootelse
2761*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762*d14625f7Srootfor as_dir in $PATH
2763*d14625f7Srootdo
2764*d14625f7Sroot  IFS=$as_save_IFS
2765*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2766*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2767*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768*d14625f7Sroot    ac_cv_prog_ac_ct_CC="gcc"
2769*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770*d14625f7Sroot    break 2
2771*d14625f7Sroot  fi
2772*d14625f7Srootdone
2773*d14625f7Sroot  done
2774*d14625f7SrootIFS=$as_save_IFS
2775*d14625f7Sroot
2776*d14625f7Srootfi
2777*d14625f7Srootfi
2778*d14625f7Srootac_ct_CC=$ac_cv_prog_ac_ct_CC
2779*d14625f7Srootif test -n "$ac_ct_CC"; then
2780*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781*d14625f7Sroot$as_echo "$ac_ct_CC" >&6; }
2782*d14625f7Srootelse
2783*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784*d14625f7Sroot$as_echo "no" >&6; }
2785*d14625f7Srootfi
2786*d14625f7Sroot
2787*d14625f7Sroot  if test "x$ac_ct_CC" = x; then
2788*d14625f7Sroot    CC=""
2789*d14625f7Sroot  else
2790*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
2791*d14625f7Srootyes:)
2792*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794*d14625f7Srootac_tool_warned=yes ;;
2795*d14625f7Srootesac
2796*d14625f7Sroot    CC=$ac_ct_CC
2797*d14625f7Sroot  fi
2798*d14625f7Srootelse
2799*d14625f7Sroot  CC="$ac_cv_prog_CC"
2800*d14625f7Srootfi
2801*d14625f7Sroot
2802*d14625f7Srootif test -z "$CC"; then
2803*d14625f7Sroot          if test -n "$ac_tool_prefix"; then
2804*d14625f7Sroot    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805*d14625f7Srootset dummy ${ac_tool_prefix}cc; ac_word=$2
2806*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2808*d14625f7Srootif ${ac_cv_prog_CC+:} false; then :
2809*d14625f7Sroot  $as_echo_n "(cached) " >&6
2810*d14625f7Srootelse
2811*d14625f7Sroot  if test -n "$CC"; then
2812*d14625f7Sroot  ac_cv_prog_CC="$CC" # Let the user override the test.
2813*d14625f7Srootelse
2814*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815*d14625f7Srootfor as_dir in $PATH
2816*d14625f7Srootdo
2817*d14625f7Sroot  IFS=$as_save_IFS
2818*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2819*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2820*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821*d14625f7Sroot    ac_cv_prog_CC="${ac_tool_prefix}cc"
2822*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823*d14625f7Sroot    break 2
2824*d14625f7Sroot  fi
2825*d14625f7Srootdone
2826*d14625f7Sroot  done
2827*d14625f7SrootIFS=$as_save_IFS
2828*d14625f7Sroot
2829*d14625f7Srootfi
2830*d14625f7Srootfi
2831*d14625f7SrootCC=$ac_cv_prog_CC
2832*d14625f7Srootif test -n "$CC"; then
2833*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834*d14625f7Sroot$as_echo "$CC" >&6; }
2835*d14625f7Srootelse
2836*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837*d14625f7Sroot$as_echo "no" >&6; }
2838*d14625f7Srootfi
2839*d14625f7Sroot
2840*d14625f7Sroot
2841*d14625f7Sroot  fi
2842*d14625f7Srootfi
2843*d14625f7Srootif test -z "$CC"; then
2844*d14625f7Sroot  # Extract the first word of "cc", so it can be a program name with args.
2845*d14625f7Srootset dummy cc; ac_word=$2
2846*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2848*d14625f7Srootif ${ac_cv_prog_CC+:} false; then :
2849*d14625f7Sroot  $as_echo_n "(cached) " >&6
2850*d14625f7Srootelse
2851*d14625f7Sroot  if test -n "$CC"; then
2852*d14625f7Sroot  ac_cv_prog_CC="$CC" # Let the user override the test.
2853*d14625f7Srootelse
2854*d14625f7Sroot  ac_prog_rejected=no
2855*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856*d14625f7Srootfor as_dir in $PATH
2857*d14625f7Srootdo
2858*d14625f7Sroot  IFS=$as_save_IFS
2859*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2860*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2861*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862*d14625f7Sroot    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863*d14625f7Sroot       ac_prog_rejected=yes
2864*d14625f7Sroot       continue
2865*d14625f7Sroot     fi
2866*d14625f7Sroot    ac_cv_prog_CC="cc"
2867*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868*d14625f7Sroot    break 2
2869*d14625f7Sroot  fi
2870*d14625f7Srootdone
2871*d14625f7Sroot  done
2872*d14625f7SrootIFS=$as_save_IFS
2873*d14625f7Sroot
2874*d14625f7Srootif test $ac_prog_rejected = yes; then
2875*d14625f7Sroot  # We found a bogon in the path, so make sure we never use it.
2876*d14625f7Sroot  set dummy $ac_cv_prog_CC
2877*d14625f7Sroot  shift
2878*d14625f7Sroot  if test $# != 0; then
2879*d14625f7Sroot    # We chose a different compiler from the bogus one.
2880*d14625f7Sroot    # However, it has the same basename, so the bogon will be chosen
2881*d14625f7Sroot    # first if we set CC to just the basename; use the full file name.
2882*d14625f7Sroot    shift
2883*d14625f7Sroot    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884*d14625f7Sroot  fi
2885*d14625f7Srootfi
2886*d14625f7Srootfi
2887*d14625f7Srootfi
2888*d14625f7SrootCC=$ac_cv_prog_CC
2889*d14625f7Srootif test -n "$CC"; then
2890*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891*d14625f7Sroot$as_echo "$CC" >&6; }
2892*d14625f7Srootelse
2893*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894*d14625f7Sroot$as_echo "no" >&6; }
2895*d14625f7Srootfi
2896*d14625f7Sroot
2897*d14625f7Sroot
2898*d14625f7Srootfi
2899*d14625f7Srootif test -z "$CC"; then
2900*d14625f7Sroot  if test -n "$ac_tool_prefix"; then
2901*d14625f7Sroot  for ac_prog in cl.exe
2902*d14625f7Sroot  do
2903*d14625f7Sroot    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904*d14625f7Srootset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2907*d14625f7Srootif ${ac_cv_prog_CC+:} false; then :
2908*d14625f7Sroot  $as_echo_n "(cached) " >&6
2909*d14625f7Srootelse
2910*d14625f7Sroot  if test -n "$CC"; then
2911*d14625f7Sroot  ac_cv_prog_CC="$CC" # Let the user override the test.
2912*d14625f7Srootelse
2913*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914*d14625f7Srootfor as_dir in $PATH
2915*d14625f7Srootdo
2916*d14625f7Sroot  IFS=$as_save_IFS
2917*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2918*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2919*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920*d14625f7Sroot    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922*d14625f7Sroot    break 2
2923*d14625f7Sroot  fi
2924*d14625f7Srootdone
2925*d14625f7Sroot  done
2926*d14625f7SrootIFS=$as_save_IFS
2927*d14625f7Sroot
2928*d14625f7Srootfi
2929*d14625f7Srootfi
2930*d14625f7SrootCC=$ac_cv_prog_CC
2931*d14625f7Srootif test -n "$CC"; then
2932*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933*d14625f7Sroot$as_echo "$CC" >&6; }
2934*d14625f7Srootelse
2935*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936*d14625f7Sroot$as_echo "no" >&6; }
2937*d14625f7Srootfi
2938*d14625f7Sroot
2939*d14625f7Sroot
2940*d14625f7Sroot    test -n "$CC" && break
2941*d14625f7Sroot  done
2942*d14625f7Srootfi
2943*d14625f7Srootif test -z "$CC"; then
2944*d14625f7Sroot  ac_ct_CC=$CC
2945*d14625f7Sroot  for ac_prog in cl.exe
2946*d14625f7Srootdo
2947*d14625f7Sroot  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948*d14625f7Srootset dummy $ac_prog; ac_word=$2
2949*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
2951*d14625f7Srootif ${ac_cv_prog_ac_ct_CC+:} false; then :
2952*d14625f7Sroot  $as_echo_n "(cached) " >&6
2953*d14625f7Srootelse
2954*d14625f7Sroot  if test -n "$ac_ct_CC"; then
2955*d14625f7Sroot  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956*d14625f7Srootelse
2957*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958*d14625f7Srootfor as_dir in $PATH
2959*d14625f7Srootdo
2960*d14625f7Sroot  IFS=$as_save_IFS
2961*d14625f7Sroot  test -z "$as_dir" && as_dir=.
2962*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
2963*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964*d14625f7Sroot    ac_cv_prog_ac_ct_CC="$ac_prog"
2965*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966*d14625f7Sroot    break 2
2967*d14625f7Sroot  fi
2968*d14625f7Srootdone
2969*d14625f7Sroot  done
2970*d14625f7SrootIFS=$as_save_IFS
2971*d14625f7Sroot
2972*d14625f7Srootfi
2973*d14625f7Srootfi
2974*d14625f7Srootac_ct_CC=$ac_cv_prog_ac_ct_CC
2975*d14625f7Srootif test -n "$ac_ct_CC"; then
2976*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977*d14625f7Sroot$as_echo "$ac_ct_CC" >&6; }
2978*d14625f7Srootelse
2979*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980*d14625f7Sroot$as_echo "no" >&6; }
2981*d14625f7Srootfi
2982*d14625f7Sroot
2983*d14625f7Sroot
2984*d14625f7Sroot  test -n "$ac_ct_CC" && break
2985*d14625f7Srootdone
2986*d14625f7Sroot
2987*d14625f7Sroot  if test "x$ac_ct_CC" = x; then
2988*d14625f7Sroot    CC=""
2989*d14625f7Sroot  else
2990*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
2991*d14625f7Srootyes:)
2992*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994*d14625f7Srootac_tool_warned=yes ;;
2995*d14625f7Srootesac
2996*d14625f7Sroot    CC=$ac_ct_CC
2997*d14625f7Sroot  fi
2998*d14625f7Srootfi
2999*d14625f7Sroot
3000*d14625f7Srootfi
3001*d14625f7Sroot
3002*d14625f7Sroot
3003*d14625f7Sroottest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005*d14625f7Srootas_fn_error $? "no acceptable C compiler found in \$PATH
3006*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
3007*d14625f7Sroot
3008*d14625f7Sroot# Provide some information about the compiler.
3009*d14625f7Sroot$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3010*d14625f7Srootset X $ac_compile
3011*d14625f7Srootac_compiler=$2
3012*d14625f7Srootfor ac_option in --version -v -V -qversion; do
3013*d14625f7Sroot  { { ac_try="$ac_compiler $ac_option >&5"
3014*d14625f7Srootcase "(($ac_try" in
3015*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3017*d14625f7Srootesac
3018*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3020*d14625f7Sroot  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3021*d14625f7Sroot  ac_status=$?
3022*d14625f7Sroot  if test -s conftest.err; then
3023*d14625f7Sroot    sed '10a\
3024*d14625f7Sroot... rest of stderr output deleted ...
3025*d14625f7Sroot         10q' conftest.err >conftest.er1
3026*d14625f7Sroot    cat conftest.er1 >&5
3027*d14625f7Sroot  fi
3028*d14625f7Sroot  rm -f conftest.er1 conftest.err
3029*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030*d14625f7Sroot  test $ac_status = 0; }
3031*d14625f7Srootdone
3032*d14625f7Sroot
3033*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034*d14625f7Sroot/* end confdefs.h.  */
3035*d14625f7Sroot
3036*d14625f7Srootint
3037*d14625f7Srootmain ()
3038*d14625f7Sroot{
3039*d14625f7Sroot
3040*d14625f7Sroot  ;
3041*d14625f7Sroot  return 0;
3042*d14625f7Sroot}
3043*d14625f7Sroot_ACEOF
3044*d14625f7Srootac_clean_files_save=$ac_clean_files
3045*d14625f7Srootac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3046*d14625f7Sroot# Try to create an executable without -o first, disregard a.out.
3047*d14625f7Sroot# It will help us diagnose broken compilers, and finding out an intuition
3048*d14625f7Sroot# of exeext.
3049*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3050*d14625f7Sroot$as_echo_n "checking whether the C compiler works... " >&6; }
3051*d14625f7Srootac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052*d14625f7Sroot
3053*d14625f7Sroot# The possible output files:
3054*d14625f7Srootac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055*d14625f7Sroot
3056*d14625f7Srootac_rmfiles=
3057*d14625f7Srootfor ac_file in $ac_files
3058*d14625f7Srootdo
3059*d14625f7Sroot  case $ac_file in
3060*d14625f7Sroot    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061*d14625f7Sroot    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3062*d14625f7Sroot  esac
3063*d14625f7Srootdone
3064*d14625f7Srootrm -f $ac_rmfiles
3065*d14625f7Sroot
3066*d14625f7Srootif { { ac_try="$ac_link_default"
3067*d14625f7Srootcase "(($ac_try" in
3068*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3070*d14625f7Srootesac
3071*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3073*d14625f7Sroot  (eval "$ac_link_default") 2>&5
3074*d14625f7Sroot  ac_status=$?
3075*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076*d14625f7Sroot  test $ac_status = 0; }; then :
3077*d14625f7Sroot  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3078*d14625f7Sroot# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3079*d14625f7Sroot# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3080*d14625f7Sroot# so that the user can short-circuit this test for compilers unknown to
3081*d14625f7Sroot# Autoconf.
3082*d14625f7Srootfor ac_file in $ac_files ''
3083*d14625f7Srootdo
3084*d14625f7Sroot  test -f "$ac_file" || continue
3085*d14625f7Sroot  case $ac_file in
3086*d14625f7Sroot    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087*d14625f7Sroot	;;
3088*d14625f7Sroot    [ab].out )
3089*d14625f7Sroot	# We found the default executable, but exeext='' is most
3090*d14625f7Sroot	# certainly right.
3091*d14625f7Sroot	break;;
3092*d14625f7Sroot    *.* )
3093*d14625f7Sroot	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3094*d14625f7Sroot	then :; else
3095*d14625f7Sroot	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096*d14625f7Sroot	fi
3097*d14625f7Sroot	# We set ac_cv_exeext here because the later test for it is not
3098*d14625f7Sroot	# safe: cross compilers may not add the suffix if given an `-o'
3099*d14625f7Sroot	# argument, so we may need to know it at that point already.
3100*d14625f7Sroot	# Even if this section looks crufty: it has the advantage of
3101*d14625f7Sroot	# actually working.
3102*d14625f7Sroot	break;;
3103*d14625f7Sroot    * )
3104*d14625f7Sroot	break;;
3105*d14625f7Sroot  esac
3106*d14625f7Srootdone
3107*d14625f7Sroottest "$ac_cv_exeext" = no && ac_cv_exeext=
3108*d14625f7Sroot
3109*d14625f7Srootelse
3110*d14625f7Sroot  ac_file=''
3111*d14625f7Srootfi
3112*d14625f7Srootif test -z "$ac_file"; then :
3113*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114*d14625f7Sroot$as_echo "no" >&6; }
3115*d14625f7Sroot$as_echo "$as_me: failed program was:" >&5
3116*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
3117*d14625f7Sroot
3118*d14625f7Sroot{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120*d14625f7Srootas_fn_error 77 "C compiler cannot create executables
3121*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
3122*d14625f7Srootelse
3123*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124*d14625f7Sroot$as_echo "yes" >&6; }
3125*d14625f7Srootfi
3126*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3127*d14625f7Sroot$as_echo_n "checking for C compiler default output file name... " >&6; }
3128*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129*d14625f7Sroot$as_echo "$ac_file" >&6; }
3130*d14625f7Srootac_exeext=$ac_cv_exeext
3131*d14625f7Sroot
3132*d14625f7Srootrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3133*d14625f7Srootac_clean_files=$ac_clean_files_save
3134*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3135*d14625f7Sroot$as_echo_n "checking for suffix of executables... " >&6; }
3136*d14625f7Srootif { { ac_try="$ac_link"
3137*d14625f7Srootcase "(($ac_try" in
3138*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3140*d14625f7Srootesac
3141*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3143*d14625f7Sroot  (eval "$ac_link") 2>&5
3144*d14625f7Sroot  ac_status=$?
3145*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146*d14625f7Sroot  test $ac_status = 0; }; then :
3147*d14625f7Sroot  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3148*d14625f7Sroot# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3149*d14625f7Sroot# work properly (i.e., refer to `conftest.exe'), while it won't with
3150*d14625f7Sroot# `rm'.
3151*d14625f7Srootfor ac_file in conftest.exe conftest conftest.*; do
3152*d14625f7Sroot  test -f "$ac_file" || continue
3153*d14625f7Sroot  case $ac_file in
3154*d14625f7Sroot    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3155*d14625f7Sroot    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156*d14625f7Sroot	  break;;
3157*d14625f7Sroot    * ) break;;
3158*d14625f7Sroot  esac
3159*d14625f7Srootdone
3160*d14625f7Srootelse
3161*d14625f7Sroot  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163*d14625f7Srootas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3164*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
3165*d14625f7Srootfi
3166*d14625f7Srootrm -f conftest conftest$ac_cv_exeext
3167*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3168*d14625f7Sroot$as_echo "$ac_cv_exeext" >&6; }
3169*d14625f7Sroot
3170*d14625f7Srootrm -f conftest.$ac_ext
3171*d14625f7SrootEXEEXT=$ac_cv_exeext
3172*d14625f7Srootac_exeext=$EXEEXT
3173*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174*d14625f7Sroot/* end confdefs.h.  */
3175*d14625f7Sroot#include <stdio.h>
3176*d14625f7Srootint
3177*d14625f7Srootmain ()
3178*d14625f7Sroot{
3179*d14625f7SrootFILE *f = fopen ("conftest.out", "w");
3180*d14625f7Sroot return ferror (f) || fclose (f) != 0;
3181*d14625f7Sroot
3182*d14625f7Sroot  ;
3183*d14625f7Sroot  return 0;
3184*d14625f7Sroot}
3185*d14625f7Sroot_ACEOF
3186*d14625f7Srootac_clean_files="$ac_clean_files conftest.out"
3187*d14625f7Sroot# Check that the compiler produces executables we can run.  If not, either
3188*d14625f7Sroot# the compiler is broken, or we cross compile.
3189*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3190*d14625f7Sroot$as_echo_n "checking whether we are cross compiling... " >&6; }
3191*d14625f7Srootif test "$cross_compiling" != yes; then
3192*d14625f7Sroot  { { ac_try="$ac_link"
3193*d14625f7Srootcase "(($ac_try" in
3194*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3196*d14625f7Srootesac
3197*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3199*d14625f7Sroot  (eval "$ac_link") 2>&5
3200*d14625f7Sroot  ac_status=$?
3201*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202*d14625f7Sroot  test $ac_status = 0; }
3203*d14625f7Sroot  if { ac_try='./conftest$ac_cv_exeext'
3204*d14625f7Sroot  { { case "(($ac_try" in
3205*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3207*d14625f7Srootesac
3208*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3210*d14625f7Sroot  (eval "$ac_try") 2>&5
3211*d14625f7Sroot  ac_status=$?
3212*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213*d14625f7Sroot  test $ac_status = 0; }; }; then
3214*d14625f7Sroot    cross_compiling=no
3215*d14625f7Sroot  else
3216*d14625f7Sroot    if test "$cross_compiling" = maybe; then
3217*d14625f7Sroot	cross_compiling=yes
3218*d14625f7Sroot    else
3219*d14625f7Sroot	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221*d14625f7Srootas_fn_error $? "cannot run C compiled programs.
3222*d14625f7SrootIf you meant to cross compile, use \`--host'.
3223*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
3224*d14625f7Sroot    fi
3225*d14625f7Sroot  fi
3226*d14625f7Srootfi
3227*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3228*d14625f7Sroot$as_echo "$cross_compiling" >&6; }
3229*d14625f7Sroot
3230*d14625f7Srootrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3231*d14625f7Srootac_clean_files=$ac_clean_files_save
3232*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3233*d14625f7Sroot$as_echo_n "checking for suffix of object files... " >&6; }
3234*d14625f7Srootif ${ac_cv_objext+:} false; then :
3235*d14625f7Sroot  $as_echo_n "(cached) " >&6
3236*d14625f7Srootelse
3237*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238*d14625f7Sroot/* end confdefs.h.  */
3239*d14625f7Sroot
3240*d14625f7Srootint
3241*d14625f7Srootmain ()
3242*d14625f7Sroot{
3243*d14625f7Sroot
3244*d14625f7Sroot  ;
3245*d14625f7Sroot  return 0;
3246*d14625f7Sroot}
3247*d14625f7Sroot_ACEOF
3248*d14625f7Srootrm -f conftest.o conftest.obj
3249*d14625f7Srootif { { ac_try="$ac_compile"
3250*d14625f7Srootcase "(($ac_try" in
3251*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252*d14625f7Sroot  *) ac_try_echo=$ac_try;;
3253*d14625f7Srootesac
3254*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
3256*d14625f7Sroot  (eval "$ac_compile") 2>&5
3257*d14625f7Sroot  ac_status=$?
3258*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259*d14625f7Sroot  test $ac_status = 0; }; then :
3260*d14625f7Sroot  for ac_file in conftest.o conftest.obj conftest.*; do
3261*d14625f7Sroot  test -f "$ac_file" || continue;
3262*d14625f7Sroot  case $ac_file in
3263*d14625f7Sroot    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3264*d14625f7Sroot    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265*d14625f7Sroot       break;;
3266*d14625f7Sroot  esac
3267*d14625f7Srootdone
3268*d14625f7Srootelse
3269*d14625f7Sroot  $as_echo "$as_me: failed program was:" >&5
3270*d14625f7Srootsed 's/^/| /' conftest.$ac_ext >&5
3271*d14625f7Sroot
3272*d14625f7Sroot{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274*d14625f7Srootas_fn_error $? "cannot compute suffix of object files: cannot compile
3275*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
3276*d14625f7Srootfi
3277*d14625f7Srootrm -f conftest.$ac_cv_objext conftest.$ac_ext
3278*d14625f7Srootfi
3279*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3280*d14625f7Sroot$as_echo "$ac_cv_objext" >&6; }
3281*d14625f7SrootOBJEXT=$ac_cv_objext
3282*d14625f7Srootac_objext=$OBJEXT
3283*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3284*d14625f7Sroot$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3285*d14625f7Srootif ${ac_cv_c_compiler_gnu+:} false; then :
3286*d14625f7Sroot  $as_echo_n "(cached) " >&6
3287*d14625f7Srootelse
3288*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289*d14625f7Sroot/* end confdefs.h.  */
3290*d14625f7Sroot
3291*d14625f7Srootint
3292*d14625f7Srootmain ()
3293*d14625f7Sroot{
3294*d14625f7Sroot#ifndef __GNUC__
3295*d14625f7Sroot       choke me
3296*d14625f7Sroot#endif
3297*d14625f7Sroot
3298*d14625f7Sroot  ;
3299*d14625f7Sroot  return 0;
3300*d14625f7Sroot}
3301*d14625f7Sroot_ACEOF
3302*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3303*d14625f7Sroot  ac_compiler_gnu=yes
3304*d14625f7Srootelse
3305*d14625f7Sroot  ac_compiler_gnu=no
3306*d14625f7Srootfi
3307*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308*d14625f7Srootac_cv_c_compiler_gnu=$ac_compiler_gnu
3309*d14625f7Sroot
3310*d14625f7Srootfi
3311*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3312*d14625f7Sroot$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3313*d14625f7Srootif test $ac_compiler_gnu = yes; then
3314*d14625f7Sroot  GCC=yes
3315*d14625f7Srootelse
3316*d14625f7Sroot  GCC=
3317*d14625f7Srootfi
3318*d14625f7Srootac_test_CFLAGS=${CFLAGS+set}
3319*d14625f7Srootac_save_CFLAGS=$CFLAGS
3320*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3321*d14625f7Sroot$as_echo_n "checking whether $CC accepts -g... " >&6; }
3322*d14625f7Srootif ${ac_cv_prog_cc_g+:} false; then :
3323*d14625f7Sroot  $as_echo_n "(cached) " >&6
3324*d14625f7Srootelse
3325*d14625f7Sroot  ac_save_c_werror_flag=$ac_c_werror_flag
3326*d14625f7Sroot   ac_c_werror_flag=yes
3327*d14625f7Sroot   ac_cv_prog_cc_g=no
3328*d14625f7Sroot   CFLAGS="-g"
3329*d14625f7Sroot   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330*d14625f7Sroot/* end confdefs.h.  */
3331*d14625f7Sroot
3332*d14625f7Srootint
3333*d14625f7Srootmain ()
3334*d14625f7Sroot{
3335*d14625f7Sroot
3336*d14625f7Sroot  ;
3337*d14625f7Sroot  return 0;
3338*d14625f7Sroot}
3339*d14625f7Sroot_ACEOF
3340*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3341*d14625f7Sroot  ac_cv_prog_cc_g=yes
3342*d14625f7Srootelse
3343*d14625f7Sroot  CFLAGS=""
3344*d14625f7Sroot      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345*d14625f7Sroot/* end confdefs.h.  */
3346*d14625f7Sroot
3347*d14625f7Srootint
3348*d14625f7Srootmain ()
3349*d14625f7Sroot{
3350*d14625f7Sroot
3351*d14625f7Sroot  ;
3352*d14625f7Sroot  return 0;
3353*d14625f7Sroot}
3354*d14625f7Sroot_ACEOF
3355*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3356*d14625f7Sroot
3357*d14625f7Srootelse
3358*d14625f7Sroot  ac_c_werror_flag=$ac_save_c_werror_flag
3359*d14625f7Sroot	 CFLAGS="-g"
3360*d14625f7Sroot	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361*d14625f7Sroot/* end confdefs.h.  */
3362*d14625f7Sroot
3363*d14625f7Srootint
3364*d14625f7Srootmain ()
3365*d14625f7Sroot{
3366*d14625f7Sroot
3367*d14625f7Sroot  ;
3368*d14625f7Sroot  return 0;
3369*d14625f7Sroot}
3370*d14625f7Sroot_ACEOF
3371*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3372*d14625f7Sroot  ac_cv_prog_cc_g=yes
3373*d14625f7Srootfi
3374*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375*d14625f7Srootfi
3376*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377*d14625f7Srootfi
3378*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379*d14625f7Sroot   ac_c_werror_flag=$ac_save_c_werror_flag
3380*d14625f7Srootfi
3381*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3382*d14625f7Sroot$as_echo "$ac_cv_prog_cc_g" >&6; }
3383*d14625f7Srootif test "$ac_test_CFLAGS" = set; then
3384*d14625f7Sroot  CFLAGS=$ac_save_CFLAGS
3385*d14625f7Srootelif test $ac_cv_prog_cc_g = yes; then
3386*d14625f7Sroot  if test "$GCC" = yes; then
3387*d14625f7Sroot    CFLAGS="-g -O2"
3388*d14625f7Sroot  else
3389*d14625f7Sroot    CFLAGS="-g"
3390*d14625f7Sroot  fi
3391*d14625f7Srootelse
3392*d14625f7Sroot  if test "$GCC" = yes; then
3393*d14625f7Sroot    CFLAGS="-O2"
3394*d14625f7Sroot  else
3395*d14625f7Sroot    CFLAGS=
3396*d14625f7Sroot  fi
3397*d14625f7Srootfi
3398*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3399*d14625f7Sroot$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3400*d14625f7Srootif ${ac_cv_prog_cc_c89+:} false; then :
3401*d14625f7Sroot  $as_echo_n "(cached) " >&6
3402*d14625f7Srootelse
3403*d14625f7Sroot  ac_cv_prog_cc_c89=no
3404*d14625f7Srootac_save_CC=$CC
3405*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406*d14625f7Sroot/* end confdefs.h.  */
3407*d14625f7Sroot#include <stdarg.h>
3408*d14625f7Sroot#include <stdio.h>
3409*d14625f7Srootstruct stat;
3410*d14625f7Sroot/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3411*d14625f7Srootstruct buf { int x; };
3412*d14625f7SrootFILE * (*rcsopen) (struct buf *, struct stat *, int);
3413*d14625f7Srootstatic char *e (p, i)
3414*d14625f7Sroot     char **p;
3415*d14625f7Sroot     int i;
3416*d14625f7Sroot{
3417*d14625f7Sroot  return p[i];
3418*d14625f7Sroot}
3419*d14625f7Srootstatic char *f (char * (*g) (char **, int), char **p, ...)
3420*d14625f7Sroot{
3421*d14625f7Sroot  char *s;
3422*d14625f7Sroot  va_list v;
3423*d14625f7Sroot  va_start (v,p);
3424*d14625f7Sroot  s = g (p, va_arg (v,int));
3425*d14625f7Sroot  va_end (v);
3426*d14625f7Sroot  return s;
3427*d14625f7Sroot}
3428*d14625f7Sroot
3429*d14625f7Sroot/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3430*d14625f7Sroot   function prototypes and stuff, but not '\xHH' hex character constants.
3431*d14625f7Sroot   These don't provoke an error unfortunately, instead are silently treated
3432*d14625f7Sroot   as 'x'.  The following induces an error, until -std is added to get
3433*d14625f7Sroot   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3434*d14625f7Sroot   array size at least.  It's necessary to write '\x00'==0 to get something
3435*d14625f7Sroot   that's true only with -std.  */
3436*d14625f7Srootint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437*d14625f7Sroot
3438*d14625f7Sroot/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439*d14625f7Sroot   inside strings and character constants.  */
3440*d14625f7Sroot#define FOO(x) 'x'
3441*d14625f7Srootint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442*d14625f7Sroot
3443*d14625f7Srootint test (int i, double x);
3444*d14625f7Srootstruct s1 {int (*f) (int a);};
3445*d14625f7Srootstruct s2 {int (*f) (double a);};
3446*d14625f7Srootint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447*d14625f7Srootint argc;
3448*d14625f7Srootchar **argv;
3449*d14625f7Srootint
3450*d14625f7Srootmain ()
3451*d14625f7Sroot{
3452*d14625f7Srootreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3453*d14625f7Sroot  ;
3454*d14625f7Sroot  return 0;
3455*d14625f7Sroot}
3456*d14625f7Sroot_ACEOF
3457*d14625f7Srootfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458*d14625f7Sroot	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459*d14625f7Srootdo
3460*d14625f7Sroot  CC="$ac_save_CC $ac_arg"
3461*d14625f7Sroot  if ac_fn_c_try_compile "$LINENO"; then :
3462*d14625f7Sroot  ac_cv_prog_cc_c89=$ac_arg
3463*d14625f7Srootfi
3464*d14625f7Srootrm -f core conftest.err conftest.$ac_objext
3465*d14625f7Sroot  test "x$ac_cv_prog_cc_c89" != "xno" && break
3466*d14625f7Srootdone
3467*d14625f7Srootrm -f conftest.$ac_ext
3468*d14625f7SrootCC=$ac_save_CC
3469*d14625f7Sroot
3470*d14625f7Srootfi
3471*d14625f7Sroot# AC_CACHE_VAL
3472*d14625f7Srootcase "x$ac_cv_prog_cc_c89" in
3473*d14625f7Sroot  x)
3474*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475*d14625f7Sroot$as_echo "none needed" >&6; } ;;
3476*d14625f7Sroot  xno)
3477*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3478*d14625f7Sroot$as_echo "unsupported" >&6; } ;;
3479*d14625f7Sroot  *)
3480*d14625f7Sroot    CC="$CC $ac_cv_prog_cc_c89"
3481*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3482*d14625f7Sroot$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483*d14625f7Srootesac
3484*d14625f7Srootif test "x$ac_cv_prog_cc_c89" != xno; then :
3485*d14625f7Sroot
3486*d14625f7Srootfi
3487*d14625f7Sroot
3488*d14625f7Srootac_ext=c
3489*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
3490*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
3493*d14625f7Sroot
3494*d14625f7Sroot
3495*d14625f7Srootif test "x$GCC" != "xyes" ; then
3496*d14625f7Sroot
3497*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3498*d14625f7Sroot$as_echo_n "checking whether compiler is MSVC... " >&6; }
3499*d14625f7Srootif ${je_cv_msvc+:} false; then :
3500*d14625f7Sroot  $as_echo_n "(cached) " >&6
3501*d14625f7Srootelse
3502*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503*d14625f7Sroot/* end confdefs.h.  */
3504*d14625f7Sroot
3505*d14625f7Srootint
3506*d14625f7Srootmain ()
3507*d14625f7Sroot{
3508*d14625f7Sroot
3509*d14625f7Sroot#ifndef _MSC_VER
3510*d14625f7Sroot  int fail-1;
3511*d14625f7Sroot#endif
3512*d14625f7Sroot
3513*d14625f7Sroot  ;
3514*d14625f7Sroot  return 0;
3515*d14625f7Sroot}
3516*d14625f7Sroot_ACEOF
3517*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3518*d14625f7Sroot  je_cv_msvc=yes
3519*d14625f7Srootelse
3520*d14625f7Sroot  je_cv_msvc=no
3521*d14625f7Srootfi
3522*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523*d14625f7Srootfi
3524*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3525*d14625f7Sroot$as_echo "$je_cv_msvc" >&6; }
3526*d14625f7Srootfi
3527*d14625f7Sroot
3528*d14625f7Srootje_cv_cray_prgenv_wrapper=""
3529*d14625f7Srootif test "x${PE_ENV}" != "x" ; then
3530*d14625f7Sroot  case "${CC}" in
3531*d14625f7Sroot    CC|cc)
3532*d14625f7Sroot	je_cv_cray_prgenv_wrapper="yes"
3533*d14625f7Sroot	;;
3534*d14625f7Sroot    *)
3535*d14625f7Sroot       ;;
3536*d14625f7Sroot  esac
3537*d14625f7Srootfi
3538*d14625f7Sroot
3539*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3540*d14625f7Sroot$as_echo_n "checking whether compiler is cray... " >&6; }
3541*d14625f7Srootif ${je_cv_cray+:} false; then :
3542*d14625f7Sroot  $as_echo_n "(cached) " >&6
3543*d14625f7Srootelse
3544*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545*d14625f7Sroot/* end confdefs.h.  */
3546*d14625f7Sroot
3547*d14625f7Srootint
3548*d14625f7Srootmain ()
3549*d14625f7Sroot{
3550*d14625f7Sroot
3551*d14625f7Sroot#ifndef _CRAYC
3552*d14625f7Sroot  int fail-1;
3553*d14625f7Sroot#endif
3554*d14625f7Sroot
3555*d14625f7Sroot  ;
3556*d14625f7Sroot  return 0;
3557*d14625f7Sroot}
3558*d14625f7Sroot_ACEOF
3559*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3560*d14625f7Sroot  je_cv_cray=yes
3561*d14625f7Srootelse
3562*d14625f7Sroot  je_cv_cray=no
3563*d14625f7Srootfi
3564*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565*d14625f7Srootfi
3566*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3567*d14625f7Sroot$as_echo "$je_cv_cray" >&6; }
3568*d14625f7Sroot
3569*d14625f7Srootif test "x${je_cv_cray}" = "xyes" ; then
3570*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3571*d14625f7Sroot$as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3572*d14625f7Srootif ${je_cv_cray_84+:} false; then :
3573*d14625f7Sroot  $as_echo_n "(cached) " >&6
3574*d14625f7Srootelse
3575*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576*d14625f7Sroot/* end confdefs.h.  */
3577*d14625f7Sroot
3578*d14625f7Srootint
3579*d14625f7Srootmain ()
3580*d14625f7Sroot{
3581*d14625f7Sroot
3582*d14625f7Sroot#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3583*d14625f7Sroot  int fail-1;
3584*d14625f7Sroot#endif
3585*d14625f7Sroot
3586*d14625f7Sroot  ;
3587*d14625f7Sroot  return 0;
3588*d14625f7Sroot}
3589*d14625f7Sroot_ACEOF
3590*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3591*d14625f7Sroot  je_cv_cray_84=yes
3592*d14625f7Srootelse
3593*d14625f7Sroot  je_cv_cray_84=no
3594*d14625f7Srootfi
3595*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596*d14625f7Srootfi
3597*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3598*d14625f7Sroot$as_echo "$je_cv_cray_84" >&6; }
3599*d14625f7Srootfi
3600*d14625f7Sroot
3601*d14625f7Srootif test "x$GCC" = "xyes" ; then
3602*d14625f7Sroot
3603*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3604*d14625f7Sroot$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3605*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3606*d14625f7SrootT_APPEND_V=-std=gnu11
3607*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3608*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3609*d14625f7Srootelse
3610*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3611*d14625f7Srootfi
3612*d14625f7Sroot
3613*d14625f7Sroot
3614*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3615*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3616*d14625f7Srootelse
3617*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3618*d14625f7Srootfi
3619*d14625f7Sroot
3620*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621*d14625f7Sroot/* end confdefs.h.  */
3622*d14625f7Sroot
3623*d14625f7Sroot
3624*d14625f7Srootint
3625*d14625f7Srootmain ()
3626*d14625f7Sroot{
3627*d14625f7Sroot
3628*d14625f7Sroot    return 0;
3629*d14625f7Sroot
3630*d14625f7Sroot  ;
3631*d14625f7Sroot  return 0;
3632*d14625f7Sroot}
3633*d14625f7Sroot_ACEOF
3634*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3635*d14625f7Sroot  je_cv_cflags_added=-std=gnu11
3636*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637*d14625f7Sroot$as_echo "yes" >&6; }
3638*d14625f7Srootelse
3639*d14625f7Sroot  je_cv_cflags_added=
3640*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641*d14625f7Sroot$as_echo "no" >&6; }
3642*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3643*d14625f7Sroot
3644*d14625f7Srootfi
3645*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3647*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3648*d14625f7Srootelse
3649*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3650*d14625f7Srootfi
3651*d14625f7Sroot
3652*d14625f7Sroot
3653*d14625f7Sroot  if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3654*d14625f7Sroot    cat >>confdefs.h <<_ACEOF
3655*d14625f7Sroot#define JEMALLOC_HAS_RESTRICT 1
3656*d14625f7Sroot_ACEOF
3657*d14625f7Sroot
3658*d14625f7Sroot  else
3659*d14625f7Sroot
3660*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3661*d14625f7Sroot$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3662*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3663*d14625f7SrootT_APPEND_V=-std=gnu99
3664*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3665*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3666*d14625f7Srootelse
3667*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3668*d14625f7Srootfi
3669*d14625f7Sroot
3670*d14625f7Sroot
3671*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3672*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3673*d14625f7Srootelse
3674*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3675*d14625f7Srootfi
3676*d14625f7Sroot
3677*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678*d14625f7Sroot/* end confdefs.h.  */
3679*d14625f7Sroot
3680*d14625f7Sroot
3681*d14625f7Srootint
3682*d14625f7Srootmain ()
3683*d14625f7Sroot{
3684*d14625f7Sroot
3685*d14625f7Sroot    return 0;
3686*d14625f7Sroot
3687*d14625f7Sroot  ;
3688*d14625f7Sroot  return 0;
3689*d14625f7Sroot}
3690*d14625f7Sroot_ACEOF
3691*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3692*d14625f7Sroot  je_cv_cflags_added=-std=gnu99
3693*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694*d14625f7Sroot$as_echo "yes" >&6; }
3695*d14625f7Srootelse
3696*d14625f7Sroot  je_cv_cflags_added=
3697*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698*d14625f7Sroot$as_echo "no" >&6; }
3699*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3700*d14625f7Sroot
3701*d14625f7Srootfi
3702*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3704*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3705*d14625f7Srootelse
3706*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3707*d14625f7Srootfi
3708*d14625f7Sroot
3709*d14625f7Sroot
3710*d14625f7Sroot    if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3711*d14625f7Sroot      cat >>confdefs.h <<_ACEOF
3712*d14625f7Sroot#define JEMALLOC_HAS_RESTRICT 1
3713*d14625f7Sroot_ACEOF
3714*d14625f7Sroot
3715*d14625f7Sroot    fi
3716*d14625f7Sroot  fi
3717*d14625f7Sroot
3718*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3719*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3720*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3721*d14625f7SrootT_APPEND_V=-Wall
3722*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3723*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3724*d14625f7Srootelse
3725*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3726*d14625f7Srootfi
3727*d14625f7Sroot
3728*d14625f7Sroot
3729*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3730*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3731*d14625f7Srootelse
3732*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3733*d14625f7Srootfi
3734*d14625f7Sroot
3735*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736*d14625f7Sroot/* end confdefs.h.  */
3737*d14625f7Sroot
3738*d14625f7Sroot
3739*d14625f7Srootint
3740*d14625f7Srootmain ()
3741*d14625f7Sroot{
3742*d14625f7Sroot
3743*d14625f7Sroot    return 0;
3744*d14625f7Sroot
3745*d14625f7Sroot  ;
3746*d14625f7Sroot  return 0;
3747*d14625f7Sroot}
3748*d14625f7Sroot_ACEOF
3749*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3750*d14625f7Sroot  je_cv_cflags_added=-Wall
3751*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752*d14625f7Sroot$as_echo "yes" >&6; }
3753*d14625f7Srootelse
3754*d14625f7Sroot  je_cv_cflags_added=
3755*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756*d14625f7Sroot$as_echo "no" >&6; }
3757*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3758*d14625f7Sroot
3759*d14625f7Srootfi
3760*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3762*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3763*d14625f7Srootelse
3764*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3765*d14625f7Srootfi
3766*d14625f7Sroot
3767*d14625f7Sroot
3768*d14625f7Sroot
3769*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3770*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3771*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3772*d14625f7SrootT_APPEND_V=-Wshorten-64-to-32
3773*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3774*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3775*d14625f7Srootelse
3776*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3777*d14625f7Srootfi
3778*d14625f7Sroot
3779*d14625f7Sroot
3780*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3781*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3782*d14625f7Srootelse
3783*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3784*d14625f7Srootfi
3785*d14625f7Sroot
3786*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787*d14625f7Sroot/* end confdefs.h.  */
3788*d14625f7Sroot
3789*d14625f7Sroot
3790*d14625f7Srootint
3791*d14625f7Srootmain ()
3792*d14625f7Sroot{
3793*d14625f7Sroot
3794*d14625f7Sroot    return 0;
3795*d14625f7Sroot
3796*d14625f7Sroot  ;
3797*d14625f7Sroot  return 0;
3798*d14625f7Sroot}
3799*d14625f7Sroot_ACEOF
3800*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3801*d14625f7Sroot  je_cv_cflags_added=-Wshorten-64-to-32
3802*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803*d14625f7Sroot$as_echo "yes" >&6; }
3804*d14625f7Srootelse
3805*d14625f7Sroot  je_cv_cflags_added=
3806*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807*d14625f7Sroot$as_echo "no" >&6; }
3808*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3809*d14625f7Sroot
3810*d14625f7Srootfi
3811*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3813*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3814*d14625f7Srootelse
3815*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3816*d14625f7Srootfi
3817*d14625f7Sroot
3818*d14625f7Sroot
3819*d14625f7Sroot
3820*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3821*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3822*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3823*d14625f7SrootT_APPEND_V=-Wsign-compare
3824*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3825*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3826*d14625f7Srootelse
3827*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3828*d14625f7Srootfi
3829*d14625f7Sroot
3830*d14625f7Sroot
3831*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3832*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3833*d14625f7Srootelse
3834*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3835*d14625f7Srootfi
3836*d14625f7Sroot
3837*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838*d14625f7Sroot/* end confdefs.h.  */
3839*d14625f7Sroot
3840*d14625f7Sroot
3841*d14625f7Srootint
3842*d14625f7Srootmain ()
3843*d14625f7Sroot{
3844*d14625f7Sroot
3845*d14625f7Sroot    return 0;
3846*d14625f7Sroot
3847*d14625f7Sroot  ;
3848*d14625f7Sroot  return 0;
3849*d14625f7Sroot}
3850*d14625f7Sroot_ACEOF
3851*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3852*d14625f7Sroot  je_cv_cflags_added=-Wsign-compare
3853*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854*d14625f7Sroot$as_echo "yes" >&6; }
3855*d14625f7Srootelse
3856*d14625f7Sroot  je_cv_cflags_added=
3857*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858*d14625f7Sroot$as_echo "no" >&6; }
3859*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3860*d14625f7Sroot
3861*d14625f7Srootfi
3862*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3864*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3865*d14625f7Srootelse
3866*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3867*d14625f7Srootfi
3868*d14625f7Sroot
3869*d14625f7Sroot
3870*d14625f7Sroot
3871*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3872*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3873*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3874*d14625f7SrootT_APPEND_V=-Wundef
3875*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3876*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3877*d14625f7Srootelse
3878*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3879*d14625f7Srootfi
3880*d14625f7Sroot
3881*d14625f7Sroot
3882*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3883*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3884*d14625f7Srootelse
3885*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3886*d14625f7Srootfi
3887*d14625f7Sroot
3888*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889*d14625f7Sroot/* end confdefs.h.  */
3890*d14625f7Sroot
3891*d14625f7Sroot
3892*d14625f7Srootint
3893*d14625f7Srootmain ()
3894*d14625f7Sroot{
3895*d14625f7Sroot
3896*d14625f7Sroot    return 0;
3897*d14625f7Sroot
3898*d14625f7Sroot  ;
3899*d14625f7Sroot  return 0;
3900*d14625f7Sroot}
3901*d14625f7Sroot_ACEOF
3902*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3903*d14625f7Sroot  je_cv_cflags_added=-Wundef
3904*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905*d14625f7Sroot$as_echo "yes" >&6; }
3906*d14625f7Srootelse
3907*d14625f7Sroot  je_cv_cflags_added=
3908*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909*d14625f7Sroot$as_echo "no" >&6; }
3910*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3911*d14625f7Sroot
3912*d14625f7Srootfi
3913*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3915*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3916*d14625f7Srootelse
3917*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3918*d14625f7Srootfi
3919*d14625f7Sroot
3920*d14625f7Sroot
3921*d14625f7Sroot
3922*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3923*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3924*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3925*d14625f7SrootT_APPEND_V=-Wno-format-zero-length
3926*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3927*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3928*d14625f7Srootelse
3929*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3930*d14625f7Srootfi
3931*d14625f7Sroot
3932*d14625f7Sroot
3933*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3934*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3935*d14625f7Srootelse
3936*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3937*d14625f7Srootfi
3938*d14625f7Sroot
3939*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940*d14625f7Sroot/* end confdefs.h.  */
3941*d14625f7Sroot
3942*d14625f7Sroot
3943*d14625f7Srootint
3944*d14625f7Srootmain ()
3945*d14625f7Sroot{
3946*d14625f7Sroot
3947*d14625f7Sroot    return 0;
3948*d14625f7Sroot
3949*d14625f7Sroot  ;
3950*d14625f7Sroot  return 0;
3951*d14625f7Sroot}
3952*d14625f7Sroot_ACEOF
3953*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
3954*d14625f7Sroot  je_cv_cflags_added=-Wno-format-zero-length
3955*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956*d14625f7Sroot$as_echo "yes" >&6; }
3957*d14625f7Srootelse
3958*d14625f7Sroot  je_cv_cflags_added=
3959*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960*d14625f7Sroot$as_echo "no" >&6; }
3961*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3962*d14625f7Sroot
3963*d14625f7Srootfi
3964*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3966*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3967*d14625f7Srootelse
3968*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3969*d14625f7Srootfi
3970*d14625f7Sroot
3971*d14625f7Sroot
3972*d14625f7Sroot
3973*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3974*d14625f7Sroot$as_echo_n "checking whether compiler supports -pipe... " >&6; }
3975*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3976*d14625f7SrootT_APPEND_V=-pipe
3977*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3978*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3979*d14625f7Srootelse
3980*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3981*d14625f7Srootfi
3982*d14625f7Sroot
3983*d14625f7Sroot
3984*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3985*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3986*d14625f7Srootelse
3987*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3988*d14625f7Srootfi
3989*d14625f7Sroot
3990*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991*d14625f7Sroot/* end confdefs.h.  */
3992*d14625f7Sroot
3993*d14625f7Sroot
3994*d14625f7Srootint
3995*d14625f7Srootmain ()
3996*d14625f7Sroot{
3997*d14625f7Sroot
3998*d14625f7Sroot    return 0;
3999*d14625f7Sroot
4000*d14625f7Sroot  ;
4001*d14625f7Sroot  return 0;
4002*d14625f7Sroot}
4003*d14625f7Sroot_ACEOF
4004*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4005*d14625f7Sroot  je_cv_cflags_added=-pipe
4006*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4007*d14625f7Sroot$as_echo "yes" >&6; }
4008*d14625f7Srootelse
4009*d14625f7Sroot  je_cv_cflags_added=
4010*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011*d14625f7Sroot$as_echo "no" >&6; }
4012*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4013*d14625f7Sroot
4014*d14625f7Srootfi
4015*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4017*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4018*d14625f7Srootelse
4019*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4020*d14625f7Srootfi
4021*d14625f7Sroot
4022*d14625f7Sroot
4023*d14625f7Sroot
4024*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4025*d14625f7Sroot$as_echo_n "checking whether compiler supports -g3... " >&6; }
4026*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4027*d14625f7SrootT_APPEND_V=-g3
4028*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4029*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4030*d14625f7Srootelse
4031*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4032*d14625f7Srootfi
4033*d14625f7Sroot
4034*d14625f7Sroot
4035*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4036*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4037*d14625f7Srootelse
4038*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4039*d14625f7Srootfi
4040*d14625f7Sroot
4041*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042*d14625f7Sroot/* end confdefs.h.  */
4043*d14625f7Sroot
4044*d14625f7Sroot
4045*d14625f7Srootint
4046*d14625f7Srootmain ()
4047*d14625f7Sroot{
4048*d14625f7Sroot
4049*d14625f7Sroot    return 0;
4050*d14625f7Sroot
4051*d14625f7Sroot  ;
4052*d14625f7Sroot  return 0;
4053*d14625f7Sroot}
4054*d14625f7Sroot_ACEOF
4055*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4056*d14625f7Sroot  je_cv_cflags_added=-g3
4057*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058*d14625f7Sroot$as_echo "yes" >&6; }
4059*d14625f7Srootelse
4060*d14625f7Sroot  je_cv_cflags_added=
4061*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062*d14625f7Sroot$as_echo "no" >&6; }
4063*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4064*d14625f7Sroot
4065*d14625f7Srootfi
4066*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4068*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4069*d14625f7Srootelse
4070*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4071*d14625f7Srootfi
4072*d14625f7Sroot
4073*d14625f7Sroot
4074*d14625f7Srootelif test "x$je_cv_msvc" = "xyes" ; then
4075*d14625f7Sroot  CC="$CC -nologo"
4076*d14625f7Sroot
4077*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4078*d14625f7Sroot$as_echo_n "checking whether compiler supports -Zi... " >&6; }
4079*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4080*d14625f7SrootT_APPEND_V=-Zi
4081*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4082*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4083*d14625f7Srootelse
4084*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4085*d14625f7Srootfi
4086*d14625f7Sroot
4087*d14625f7Sroot
4088*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4089*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4090*d14625f7Srootelse
4091*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4092*d14625f7Srootfi
4093*d14625f7Sroot
4094*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095*d14625f7Sroot/* end confdefs.h.  */
4096*d14625f7Sroot
4097*d14625f7Sroot
4098*d14625f7Srootint
4099*d14625f7Srootmain ()
4100*d14625f7Sroot{
4101*d14625f7Sroot
4102*d14625f7Sroot    return 0;
4103*d14625f7Sroot
4104*d14625f7Sroot  ;
4105*d14625f7Sroot  return 0;
4106*d14625f7Sroot}
4107*d14625f7Sroot_ACEOF
4108*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4109*d14625f7Sroot  je_cv_cflags_added=-Zi
4110*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111*d14625f7Sroot$as_echo "yes" >&6; }
4112*d14625f7Srootelse
4113*d14625f7Sroot  je_cv_cflags_added=
4114*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115*d14625f7Sroot$as_echo "no" >&6; }
4116*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4117*d14625f7Sroot
4118*d14625f7Srootfi
4119*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4121*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4122*d14625f7Srootelse
4123*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4124*d14625f7Srootfi
4125*d14625f7Sroot
4126*d14625f7Sroot
4127*d14625f7Sroot
4128*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4129*d14625f7Sroot$as_echo_n "checking whether compiler supports -MT... " >&6; }
4130*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4131*d14625f7SrootT_APPEND_V=-MT
4132*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4133*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4134*d14625f7Srootelse
4135*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4136*d14625f7Srootfi
4137*d14625f7Sroot
4138*d14625f7Sroot
4139*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4140*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4141*d14625f7Srootelse
4142*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4143*d14625f7Srootfi
4144*d14625f7Sroot
4145*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146*d14625f7Sroot/* end confdefs.h.  */
4147*d14625f7Sroot
4148*d14625f7Sroot
4149*d14625f7Srootint
4150*d14625f7Srootmain ()
4151*d14625f7Sroot{
4152*d14625f7Sroot
4153*d14625f7Sroot    return 0;
4154*d14625f7Sroot
4155*d14625f7Sroot  ;
4156*d14625f7Sroot  return 0;
4157*d14625f7Sroot}
4158*d14625f7Sroot_ACEOF
4159*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4160*d14625f7Sroot  je_cv_cflags_added=-MT
4161*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162*d14625f7Sroot$as_echo "yes" >&6; }
4163*d14625f7Srootelse
4164*d14625f7Sroot  je_cv_cflags_added=
4165*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166*d14625f7Sroot$as_echo "no" >&6; }
4167*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4168*d14625f7Sroot
4169*d14625f7Srootfi
4170*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4172*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4173*d14625f7Srootelse
4174*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4175*d14625f7Srootfi
4176*d14625f7Sroot
4177*d14625f7Sroot
4178*d14625f7Sroot
4179*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4180*d14625f7Sroot$as_echo_n "checking whether compiler supports -W3... " >&6; }
4181*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4182*d14625f7SrootT_APPEND_V=-W3
4183*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4184*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4185*d14625f7Srootelse
4186*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4187*d14625f7Srootfi
4188*d14625f7Sroot
4189*d14625f7Sroot
4190*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4191*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4192*d14625f7Srootelse
4193*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4194*d14625f7Srootfi
4195*d14625f7Sroot
4196*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197*d14625f7Sroot/* end confdefs.h.  */
4198*d14625f7Sroot
4199*d14625f7Sroot
4200*d14625f7Srootint
4201*d14625f7Srootmain ()
4202*d14625f7Sroot{
4203*d14625f7Sroot
4204*d14625f7Sroot    return 0;
4205*d14625f7Sroot
4206*d14625f7Sroot  ;
4207*d14625f7Sroot  return 0;
4208*d14625f7Sroot}
4209*d14625f7Sroot_ACEOF
4210*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4211*d14625f7Sroot  je_cv_cflags_added=-W3
4212*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213*d14625f7Sroot$as_echo "yes" >&6; }
4214*d14625f7Srootelse
4215*d14625f7Sroot  je_cv_cflags_added=
4216*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217*d14625f7Sroot$as_echo "no" >&6; }
4218*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4219*d14625f7Sroot
4220*d14625f7Srootfi
4221*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4223*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4224*d14625f7Srootelse
4225*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4226*d14625f7Srootfi
4227*d14625f7Sroot
4228*d14625f7Sroot
4229*d14625f7Sroot
4230*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4231*d14625f7Sroot$as_echo_n "checking whether compiler supports -FS... " >&6; }
4232*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4233*d14625f7SrootT_APPEND_V=-FS
4234*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4235*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4236*d14625f7Srootelse
4237*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4238*d14625f7Srootfi
4239*d14625f7Sroot
4240*d14625f7Sroot
4241*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4242*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4243*d14625f7Srootelse
4244*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4245*d14625f7Srootfi
4246*d14625f7Sroot
4247*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248*d14625f7Sroot/* end confdefs.h.  */
4249*d14625f7Sroot
4250*d14625f7Sroot
4251*d14625f7Srootint
4252*d14625f7Srootmain ()
4253*d14625f7Sroot{
4254*d14625f7Sroot
4255*d14625f7Sroot    return 0;
4256*d14625f7Sroot
4257*d14625f7Sroot  ;
4258*d14625f7Sroot  return 0;
4259*d14625f7Sroot}
4260*d14625f7Sroot_ACEOF
4261*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4262*d14625f7Sroot  je_cv_cflags_added=-FS
4263*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4264*d14625f7Sroot$as_echo "yes" >&6; }
4265*d14625f7Srootelse
4266*d14625f7Sroot  je_cv_cflags_added=
4267*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268*d14625f7Sroot$as_echo "no" >&6; }
4269*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4270*d14625f7Sroot
4271*d14625f7Srootfi
4272*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4274*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4275*d14625f7Srootelse
4276*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4277*d14625f7Srootfi
4278*d14625f7Sroot
4279*d14625f7Sroot
4280*d14625f7Sroot  T_APPEND_V=-I${srcdir}/include/msvc_compat
4281*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4282*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4283*d14625f7Srootelse
4284*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4285*d14625f7Srootfi
4286*d14625f7Sroot
4287*d14625f7Sroot
4288*d14625f7Srootfi
4289*d14625f7Srootif test "x$je_cv_cray" = "xyes" ; then
4290*d14625f7Sroot    if test "x$je_cv_cray_84" = "xyes" ; then
4291*d14625f7Sroot
4292*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4293*d14625f7Sroot$as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4294*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4295*d14625f7SrootT_APPEND_V=-hipa2
4296*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4297*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4298*d14625f7Srootelse
4299*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4300*d14625f7Srootfi
4301*d14625f7Sroot
4302*d14625f7Sroot
4303*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4304*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4305*d14625f7Srootelse
4306*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4307*d14625f7Srootfi
4308*d14625f7Sroot
4309*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310*d14625f7Sroot/* end confdefs.h.  */
4311*d14625f7Sroot
4312*d14625f7Sroot
4313*d14625f7Srootint
4314*d14625f7Srootmain ()
4315*d14625f7Sroot{
4316*d14625f7Sroot
4317*d14625f7Sroot    return 0;
4318*d14625f7Sroot
4319*d14625f7Sroot  ;
4320*d14625f7Sroot  return 0;
4321*d14625f7Sroot}
4322*d14625f7Sroot_ACEOF
4323*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4324*d14625f7Sroot  je_cv_cflags_added=-hipa2
4325*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326*d14625f7Sroot$as_echo "yes" >&6; }
4327*d14625f7Srootelse
4328*d14625f7Sroot  je_cv_cflags_added=
4329*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330*d14625f7Sroot$as_echo "no" >&6; }
4331*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4332*d14625f7Sroot
4333*d14625f7Srootfi
4334*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4336*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4337*d14625f7Srootelse
4338*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4339*d14625f7Srootfi
4340*d14625f7Sroot
4341*d14625f7Sroot
4342*d14625f7Sroot
4343*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4344*d14625f7Sroot$as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4345*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4346*d14625f7SrootT_APPEND_V=-hnognu
4347*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4348*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4349*d14625f7Srootelse
4350*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4351*d14625f7Srootfi
4352*d14625f7Sroot
4353*d14625f7Sroot
4354*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4355*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4356*d14625f7Srootelse
4357*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4358*d14625f7Srootfi
4359*d14625f7Sroot
4360*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361*d14625f7Sroot/* end confdefs.h.  */
4362*d14625f7Sroot
4363*d14625f7Sroot
4364*d14625f7Srootint
4365*d14625f7Srootmain ()
4366*d14625f7Sroot{
4367*d14625f7Sroot
4368*d14625f7Sroot    return 0;
4369*d14625f7Sroot
4370*d14625f7Sroot  ;
4371*d14625f7Sroot  return 0;
4372*d14625f7Sroot}
4373*d14625f7Sroot_ACEOF
4374*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4375*d14625f7Sroot  je_cv_cflags_added=-hnognu
4376*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377*d14625f7Sroot$as_echo "yes" >&6; }
4378*d14625f7Srootelse
4379*d14625f7Sroot  je_cv_cflags_added=
4380*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381*d14625f7Sroot$as_echo "no" >&6; }
4382*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4383*d14625f7Sroot
4384*d14625f7Srootfi
4385*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4387*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4388*d14625f7Srootelse
4389*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4390*d14625f7Srootfi
4391*d14625f7Sroot
4392*d14625f7Sroot
4393*d14625f7Sroot  fi
4394*d14625f7Sroot
4395*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4396*d14625f7Sroot$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4397*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4398*d14625f7SrootT_APPEND_V=-hnomessage=128
4399*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4400*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4401*d14625f7Srootelse
4402*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4403*d14625f7Srootfi
4404*d14625f7Sroot
4405*d14625f7Sroot
4406*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4407*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4408*d14625f7Srootelse
4409*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4410*d14625f7Srootfi
4411*d14625f7Sroot
4412*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413*d14625f7Sroot/* end confdefs.h.  */
4414*d14625f7Sroot
4415*d14625f7Sroot
4416*d14625f7Srootint
4417*d14625f7Srootmain ()
4418*d14625f7Sroot{
4419*d14625f7Sroot
4420*d14625f7Sroot    return 0;
4421*d14625f7Sroot
4422*d14625f7Sroot  ;
4423*d14625f7Sroot  return 0;
4424*d14625f7Sroot}
4425*d14625f7Sroot_ACEOF
4426*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4427*d14625f7Sroot  je_cv_cflags_added=-hnomessage=128
4428*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429*d14625f7Sroot$as_echo "yes" >&6; }
4430*d14625f7Srootelse
4431*d14625f7Sroot  je_cv_cflags_added=
4432*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433*d14625f7Sroot$as_echo "no" >&6; }
4434*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4435*d14625f7Sroot
4436*d14625f7Srootfi
4437*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4439*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4440*d14625f7Srootelse
4441*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4442*d14625f7Srootfi
4443*d14625f7Sroot
4444*d14625f7Sroot
4445*d14625f7Sroot
4446*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4447*d14625f7Sroot$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4448*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4449*d14625f7SrootT_APPEND_V=-hnomessage=1357
4450*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4451*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4452*d14625f7Srootelse
4453*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4454*d14625f7Srootfi
4455*d14625f7Sroot
4456*d14625f7Sroot
4457*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4458*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4459*d14625f7Srootelse
4460*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4461*d14625f7Srootfi
4462*d14625f7Sroot
4463*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464*d14625f7Sroot/* end confdefs.h.  */
4465*d14625f7Sroot
4466*d14625f7Sroot
4467*d14625f7Srootint
4468*d14625f7Srootmain ()
4469*d14625f7Sroot{
4470*d14625f7Sroot
4471*d14625f7Sroot    return 0;
4472*d14625f7Sroot
4473*d14625f7Sroot  ;
4474*d14625f7Sroot  return 0;
4475*d14625f7Sroot}
4476*d14625f7Sroot_ACEOF
4477*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
4478*d14625f7Sroot  je_cv_cflags_added=-hnomessage=1357
4479*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480*d14625f7Sroot$as_echo "yes" >&6; }
4481*d14625f7Srootelse
4482*d14625f7Sroot  je_cv_cflags_added=
4483*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484*d14625f7Sroot$as_echo "no" >&6; }
4485*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4486*d14625f7Sroot
4487*d14625f7Srootfi
4488*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4490*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4491*d14625f7Srootelse
4492*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4493*d14625f7Srootfi
4494*d14625f7Sroot
4495*d14625f7Sroot
4496*d14625f7Srootfi
4497*d14625f7Sroot
4498*d14625f7Sroot
4499*d14625f7Sroot
4500*d14625f7Srootac_ext=c
4501*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
4502*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
4505*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506*d14625f7Sroot$as_echo_n "checking how to run the C preprocessor... " >&6; }
4507*d14625f7Sroot# On Suns, sometimes $CPP names a directory.
4508*d14625f7Srootif test -n "$CPP" && test -d "$CPP"; then
4509*d14625f7Sroot  CPP=
4510*d14625f7Srootfi
4511*d14625f7Srootif test -z "$CPP"; then
4512*d14625f7Sroot  if ${ac_cv_prog_CPP+:} false; then :
4513*d14625f7Sroot  $as_echo_n "(cached) " >&6
4514*d14625f7Srootelse
4515*d14625f7Sroot      # Double quotes because CPP needs to be expanded
4516*d14625f7Sroot    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517*d14625f7Sroot    do
4518*d14625f7Sroot      ac_preproc_ok=false
4519*d14625f7Srootfor ac_c_preproc_warn_flag in '' yes
4520*d14625f7Srootdo
4521*d14625f7Sroot  # Use a header file that comes with gcc, so configuring glibc
4522*d14625f7Sroot  # with a fresh cross-compiler works.
4523*d14625f7Sroot  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524*d14625f7Sroot  # <limits.h> exists even on freestanding compilers.
4525*d14625f7Sroot  # On the NeXT, cc -E runs the code through the compiler's parser,
4526*d14625f7Sroot  # not just through cpp. "Syntax error" is here to catch this case.
4527*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528*d14625f7Sroot/* end confdefs.h.  */
4529*d14625f7Sroot#ifdef __STDC__
4530*d14625f7Sroot# include <limits.h>
4531*d14625f7Sroot#else
4532*d14625f7Sroot# include <assert.h>
4533*d14625f7Sroot#endif
4534*d14625f7Sroot		     Syntax error
4535*d14625f7Sroot_ACEOF
4536*d14625f7Srootif ac_fn_c_try_cpp "$LINENO"; then :
4537*d14625f7Sroot
4538*d14625f7Srootelse
4539*d14625f7Sroot  # Broken: fails on valid input.
4540*d14625f7Srootcontinue
4541*d14625f7Srootfi
4542*d14625f7Srootrm -f conftest.err conftest.i conftest.$ac_ext
4543*d14625f7Sroot
4544*d14625f7Sroot  # OK, works on sane cases.  Now check whether nonexistent headers
4545*d14625f7Sroot  # can be detected and how.
4546*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547*d14625f7Sroot/* end confdefs.h.  */
4548*d14625f7Sroot#include <ac_nonexistent.h>
4549*d14625f7Sroot_ACEOF
4550*d14625f7Srootif ac_fn_c_try_cpp "$LINENO"; then :
4551*d14625f7Sroot  # Broken: success on invalid input.
4552*d14625f7Srootcontinue
4553*d14625f7Srootelse
4554*d14625f7Sroot  # Passes both tests.
4555*d14625f7Srootac_preproc_ok=:
4556*d14625f7Srootbreak
4557*d14625f7Srootfi
4558*d14625f7Srootrm -f conftest.err conftest.i conftest.$ac_ext
4559*d14625f7Sroot
4560*d14625f7Srootdone
4561*d14625f7Sroot# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562*d14625f7Srootrm -f conftest.i conftest.err conftest.$ac_ext
4563*d14625f7Srootif $ac_preproc_ok; then :
4564*d14625f7Sroot  break
4565*d14625f7Srootfi
4566*d14625f7Sroot
4567*d14625f7Sroot    done
4568*d14625f7Sroot    ac_cv_prog_CPP=$CPP
4569*d14625f7Sroot
4570*d14625f7Srootfi
4571*d14625f7Sroot  CPP=$ac_cv_prog_CPP
4572*d14625f7Srootelse
4573*d14625f7Sroot  ac_cv_prog_CPP=$CPP
4574*d14625f7Srootfi
4575*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576*d14625f7Sroot$as_echo "$CPP" >&6; }
4577*d14625f7Srootac_preproc_ok=false
4578*d14625f7Srootfor ac_c_preproc_warn_flag in '' yes
4579*d14625f7Srootdo
4580*d14625f7Sroot  # Use a header file that comes with gcc, so configuring glibc
4581*d14625f7Sroot  # with a fresh cross-compiler works.
4582*d14625f7Sroot  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583*d14625f7Sroot  # <limits.h> exists even on freestanding compilers.
4584*d14625f7Sroot  # On the NeXT, cc -E runs the code through the compiler's parser,
4585*d14625f7Sroot  # not just through cpp. "Syntax error" is here to catch this case.
4586*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587*d14625f7Sroot/* end confdefs.h.  */
4588*d14625f7Sroot#ifdef __STDC__
4589*d14625f7Sroot# include <limits.h>
4590*d14625f7Sroot#else
4591*d14625f7Sroot# include <assert.h>
4592*d14625f7Sroot#endif
4593*d14625f7Sroot		     Syntax error
4594*d14625f7Sroot_ACEOF
4595*d14625f7Srootif ac_fn_c_try_cpp "$LINENO"; then :
4596*d14625f7Sroot
4597*d14625f7Srootelse
4598*d14625f7Sroot  # Broken: fails on valid input.
4599*d14625f7Srootcontinue
4600*d14625f7Srootfi
4601*d14625f7Srootrm -f conftest.err conftest.i conftest.$ac_ext
4602*d14625f7Sroot
4603*d14625f7Sroot  # OK, works on sane cases.  Now check whether nonexistent headers
4604*d14625f7Sroot  # can be detected and how.
4605*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606*d14625f7Sroot/* end confdefs.h.  */
4607*d14625f7Sroot#include <ac_nonexistent.h>
4608*d14625f7Sroot_ACEOF
4609*d14625f7Srootif ac_fn_c_try_cpp "$LINENO"; then :
4610*d14625f7Sroot  # Broken: success on invalid input.
4611*d14625f7Srootcontinue
4612*d14625f7Srootelse
4613*d14625f7Sroot  # Passes both tests.
4614*d14625f7Srootac_preproc_ok=:
4615*d14625f7Srootbreak
4616*d14625f7Srootfi
4617*d14625f7Srootrm -f conftest.err conftest.i conftest.$ac_ext
4618*d14625f7Sroot
4619*d14625f7Srootdone
4620*d14625f7Sroot# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621*d14625f7Srootrm -f conftest.i conftest.err conftest.$ac_ext
4622*d14625f7Srootif $ac_preproc_ok; then :
4623*d14625f7Sroot
4624*d14625f7Srootelse
4625*d14625f7Sroot  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627*d14625f7Srootas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4628*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
4629*d14625f7Srootfi
4630*d14625f7Sroot
4631*d14625f7Srootac_ext=c
4632*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
4633*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
4636*d14625f7Sroot
4637*d14625f7Sroot
4638*d14625f7Sroot# Check whether --enable-cxx was given.
4639*d14625f7Srootif test "${enable_cxx+set}" = set; then :
4640*d14625f7Sroot  enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4641*d14625f7Sroot  enable_cxx="0"
4642*d14625f7Srootelse
4643*d14625f7Sroot  enable_cxx="1"
4644*d14625f7Srootfi
4645*d14625f7Sroot
4646*d14625f7Srootelse
4647*d14625f7Sroot  enable_cxx="1"
4648*d14625f7Sroot
4649*d14625f7Srootfi
4650*d14625f7Sroot
4651*d14625f7Srootif test "x$enable_cxx" = "x1" ; then
4652*d14625f7Sroot      # ===========================================================================
4653*d14625f7Sroot#   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4654*d14625f7Sroot# ===========================================================================
4655*d14625f7Sroot#
4656*d14625f7Sroot# SYNOPSIS
4657*d14625f7Sroot#
4658*d14625f7Sroot#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4659*d14625f7Sroot#
4660*d14625f7Sroot# DESCRIPTION
4661*d14625f7Sroot#
4662*d14625f7Sroot#   Check for baseline language coverage in the compiler for the specified
4663*d14625f7Sroot#   version of the C++ standard.  If necessary, add switches to CXX and
4664*d14625f7Sroot#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
4665*d14625f7Sroot#   or '14' (for the C++14 standard).
4666*d14625f7Sroot#
4667*d14625f7Sroot#   The second argument, if specified, indicates whether you insist on an
4668*d14625f7Sroot#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4669*d14625f7Sroot#   -std=c++11).  If neither is specified, you get whatever works, with
4670*d14625f7Sroot#   preference for an extended mode.
4671*d14625f7Sroot#
4672*d14625f7Sroot#   The third argument, if specified 'mandatory' or if left unspecified,
4673*d14625f7Sroot#   indicates that baseline support for the specified C++ standard is
4674*d14625f7Sroot#   required and that the macro should error out if no mode with that
4675*d14625f7Sroot#   support is found.  If specified 'optional', then configuration proceeds
4676*d14625f7Sroot#   regardless, after defining HAVE_CXX${VERSION} if and only if a
4677*d14625f7Sroot#   supporting mode is found.
4678*d14625f7Sroot#
4679*d14625f7Sroot# LICENSE
4680*d14625f7Sroot#
4681*d14625f7Sroot#   Copyright (c) 2008 Benjamin Kosnik <[email protected]>
4682*d14625f7Sroot#   Copyright (c) 2012 Zack Weinberg <[email protected]>
4683*d14625f7Sroot#   Copyright (c) 2013 Roy Stogner <[email protected]>
4684*d14625f7Sroot#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <[email protected]>
4685*d14625f7Sroot#   Copyright (c) 2015 Paul Norman <[email protected]>
4686*d14625f7Sroot#   Copyright (c) 2015 Moritz Klammler <[email protected]>
4687*d14625f7Sroot#
4688*d14625f7Sroot#   Copying and distribution of this file, with or without modification, are
4689*d14625f7Sroot#   permitted in any medium without royalty provided the copyright notice
4690*d14625f7Sroot#   and this notice are preserved.  This file is offered as-is, without any
4691*d14625f7Sroot#   warranty.
4692*d14625f7Sroot
4693*d14625f7Sroot#serial 4
4694*d14625f7Sroot
4695*d14625f7Sroot
4696*d14625f7Sroot
4697*d14625f7Sroot
4698*d14625f7Sroot
4699*d14625f7Sroot
4700*d14625f7Sroot
4701*d14625f7Sroot
4702*d14625f7Sroot
4703*d14625f7Sroot
4704*d14625f7Sroot
4705*d14625f7Sroot
4706*d14625f7Sroot
4707*d14625f7Sroot
4708*d14625f7Sroot
4709*d14625f7Sroot
4710*d14625f7Sroot
4711*d14625f7Sroot
4712*d14625f7Sroot
4713*d14625f7Sroot
4714*d14625f7Sroot  ac_ext=cpp
4715*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
4716*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719*d14625f7Srootif test -z "$CXX"; then
4720*d14625f7Sroot  if test -n "$CCC"; then
4721*d14625f7Sroot    CXX=$CCC
4722*d14625f7Sroot  else
4723*d14625f7Sroot    if test -n "$ac_tool_prefix"; then
4724*d14625f7Sroot  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4725*d14625f7Sroot  do
4726*d14625f7Sroot    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727*d14625f7Srootset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
4730*d14625f7Srootif ${ac_cv_prog_CXX+:} false; then :
4731*d14625f7Sroot  $as_echo_n "(cached) " >&6
4732*d14625f7Srootelse
4733*d14625f7Sroot  if test -n "$CXX"; then
4734*d14625f7Sroot  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4735*d14625f7Srootelse
4736*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737*d14625f7Srootfor as_dir in $PATH
4738*d14625f7Srootdo
4739*d14625f7Sroot  IFS=$as_save_IFS
4740*d14625f7Sroot  test -z "$as_dir" && as_dir=.
4741*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
4742*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743*d14625f7Sroot    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4744*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745*d14625f7Sroot    break 2
4746*d14625f7Sroot  fi
4747*d14625f7Srootdone
4748*d14625f7Sroot  done
4749*d14625f7SrootIFS=$as_save_IFS
4750*d14625f7Sroot
4751*d14625f7Srootfi
4752*d14625f7Srootfi
4753*d14625f7SrootCXX=$ac_cv_prog_CXX
4754*d14625f7Srootif test -n "$CXX"; then
4755*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4756*d14625f7Sroot$as_echo "$CXX" >&6; }
4757*d14625f7Srootelse
4758*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759*d14625f7Sroot$as_echo "no" >&6; }
4760*d14625f7Srootfi
4761*d14625f7Sroot
4762*d14625f7Sroot
4763*d14625f7Sroot    test -n "$CXX" && break
4764*d14625f7Sroot  done
4765*d14625f7Srootfi
4766*d14625f7Srootif test -z "$CXX"; then
4767*d14625f7Sroot  ac_ct_CXX=$CXX
4768*d14625f7Sroot  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4769*d14625f7Srootdo
4770*d14625f7Sroot  # Extract the first word of "$ac_prog", so it can be a program name with args.
4771*d14625f7Srootset dummy $ac_prog; ac_word=$2
4772*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
4774*d14625f7Srootif ${ac_cv_prog_ac_ct_CXX+:} false; then :
4775*d14625f7Sroot  $as_echo_n "(cached) " >&6
4776*d14625f7Srootelse
4777*d14625f7Sroot  if test -n "$ac_ct_CXX"; then
4778*d14625f7Sroot  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4779*d14625f7Srootelse
4780*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781*d14625f7Srootfor as_dir in $PATH
4782*d14625f7Srootdo
4783*d14625f7Sroot  IFS=$as_save_IFS
4784*d14625f7Sroot  test -z "$as_dir" && as_dir=.
4785*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
4786*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787*d14625f7Sroot    ac_cv_prog_ac_ct_CXX="$ac_prog"
4788*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789*d14625f7Sroot    break 2
4790*d14625f7Sroot  fi
4791*d14625f7Srootdone
4792*d14625f7Sroot  done
4793*d14625f7SrootIFS=$as_save_IFS
4794*d14625f7Sroot
4795*d14625f7Srootfi
4796*d14625f7Srootfi
4797*d14625f7Srootac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4798*d14625f7Srootif test -n "$ac_ct_CXX"; then
4799*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4800*d14625f7Sroot$as_echo "$ac_ct_CXX" >&6; }
4801*d14625f7Srootelse
4802*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803*d14625f7Sroot$as_echo "no" >&6; }
4804*d14625f7Srootfi
4805*d14625f7Sroot
4806*d14625f7Sroot
4807*d14625f7Sroot  test -n "$ac_ct_CXX" && break
4808*d14625f7Srootdone
4809*d14625f7Sroot
4810*d14625f7Sroot  if test "x$ac_ct_CXX" = x; then
4811*d14625f7Sroot    CXX="g++"
4812*d14625f7Sroot  else
4813*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
4814*d14625f7Srootyes:)
4815*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817*d14625f7Srootac_tool_warned=yes ;;
4818*d14625f7Srootesac
4819*d14625f7Sroot    CXX=$ac_ct_CXX
4820*d14625f7Sroot  fi
4821*d14625f7Srootfi
4822*d14625f7Sroot
4823*d14625f7Sroot  fi
4824*d14625f7Srootfi
4825*d14625f7Sroot# Provide some information about the compiler.
4826*d14625f7Sroot$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4827*d14625f7Srootset X $ac_compile
4828*d14625f7Srootac_compiler=$2
4829*d14625f7Srootfor ac_option in --version -v -V -qversion; do
4830*d14625f7Sroot  { { ac_try="$ac_compiler $ac_option >&5"
4831*d14625f7Srootcase "(($ac_try" in
4832*d14625f7Sroot  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833*d14625f7Sroot  *) ac_try_echo=$ac_try;;
4834*d14625f7Srootesac
4835*d14625f7Srooteval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836*d14625f7Sroot$as_echo "$ac_try_echo"; } >&5
4837*d14625f7Sroot  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838*d14625f7Sroot  ac_status=$?
4839*d14625f7Sroot  if test -s conftest.err; then
4840*d14625f7Sroot    sed '10a\
4841*d14625f7Sroot... rest of stderr output deleted ...
4842*d14625f7Sroot         10q' conftest.err >conftest.er1
4843*d14625f7Sroot    cat conftest.er1 >&5
4844*d14625f7Sroot  fi
4845*d14625f7Sroot  rm -f conftest.er1 conftest.err
4846*d14625f7Sroot  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847*d14625f7Sroot  test $ac_status = 0; }
4848*d14625f7Srootdone
4849*d14625f7Sroot
4850*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4851*d14625f7Sroot$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4852*d14625f7Srootif ${ac_cv_cxx_compiler_gnu+:} false; then :
4853*d14625f7Sroot  $as_echo_n "(cached) " >&6
4854*d14625f7Srootelse
4855*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856*d14625f7Sroot/* end confdefs.h.  */
4857*d14625f7Sroot
4858*d14625f7Srootint
4859*d14625f7Srootmain ()
4860*d14625f7Sroot{
4861*d14625f7Sroot#ifndef __GNUC__
4862*d14625f7Sroot       choke me
4863*d14625f7Sroot#endif
4864*d14625f7Sroot
4865*d14625f7Sroot  ;
4866*d14625f7Sroot  return 0;
4867*d14625f7Sroot}
4868*d14625f7Sroot_ACEOF
4869*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
4870*d14625f7Sroot  ac_compiler_gnu=yes
4871*d14625f7Srootelse
4872*d14625f7Sroot  ac_compiler_gnu=no
4873*d14625f7Srootfi
4874*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875*d14625f7Srootac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876*d14625f7Sroot
4877*d14625f7Srootfi
4878*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4879*d14625f7Sroot$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4880*d14625f7Srootif test $ac_compiler_gnu = yes; then
4881*d14625f7Sroot  GXX=yes
4882*d14625f7Srootelse
4883*d14625f7Sroot  GXX=
4884*d14625f7Srootfi
4885*d14625f7Srootac_test_CXXFLAGS=${CXXFLAGS+set}
4886*d14625f7Srootac_save_CXXFLAGS=$CXXFLAGS
4887*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4888*d14625f7Sroot$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4889*d14625f7Srootif ${ac_cv_prog_cxx_g+:} false; then :
4890*d14625f7Sroot  $as_echo_n "(cached) " >&6
4891*d14625f7Srootelse
4892*d14625f7Sroot  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4893*d14625f7Sroot   ac_cxx_werror_flag=yes
4894*d14625f7Sroot   ac_cv_prog_cxx_g=no
4895*d14625f7Sroot   CXXFLAGS="-g"
4896*d14625f7Sroot   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897*d14625f7Sroot/* end confdefs.h.  */
4898*d14625f7Sroot
4899*d14625f7Srootint
4900*d14625f7Srootmain ()
4901*d14625f7Sroot{
4902*d14625f7Sroot
4903*d14625f7Sroot  ;
4904*d14625f7Sroot  return 0;
4905*d14625f7Sroot}
4906*d14625f7Sroot_ACEOF
4907*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
4908*d14625f7Sroot  ac_cv_prog_cxx_g=yes
4909*d14625f7Srootelse
4910*d14625f7Sroot  CXXFLAGS=""
4911*d14625f7Sroot      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912*d14625f7Sroot/* end confdefs.h.  */
4913*d14625f7Sroot
4914*d14625f7Srootint
4915*d14625f7Srootmain ()
4916*d14625f7Sroot{
4917*d14625f7Sroot
4918*d14625f7Sroot  ;
4919*d14625f7Sroot  return 0;
4920*d14625f7Sroot}
4921*d14625f7Sroot_ACEOF
4922*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
4923*d14625f7Sroot
4924*d14625f7Srootelse
4925*d14625f7Sroot  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4926*d14625f7Sroot	 CXXFLAGS="-g"
4927*d14625f7Sroot	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928*d14625f7Sroot/* end confdefs.h.  */
4929*d14625f7Sroot
4930*d14625f7Srootint
4931*d14625f7Srootmain ()
4932*d14625f7Sroot{
4933*d14625f7Sroot
4934*d14625f7Sroot  ;
4935*d14625f7Sroot  return 0;
4936*d14625f7Sroot}
4937*d14625f7Sroot_ACEOF
4938*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
4939*d14625f7Sroot  ac_cv_prog_cxx_g=yes
4940*d14625f7Srootfi
4941*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942*d14625f7Srootfi
4943*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944*d14625f7Srootfi
4945*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946*d14625f7Sroot   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4947*d14625f7Srootfi
4948*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4949*d14625f7Sroot$as_echo "$ac_cv_prog_cxx_g" >&6; }
4950*d14625f7Srootif test "$ac_test_CXXFLAGS" = set; then
4951*d14625f7Sroot  CXXFLAGS=$ac_save_CXXFLAGS
4952*d14625f7Srootelif test $ac_cv_prog_cxx_g = yes; then
4953*d14625f7Sroot  if test "$GXX" = yes; then
4954*d14625f7Sroot    CXXFLAGS="-g -O2"
4955*d14625f7Sroot  else
4956*d14625f7Sroot    CXXFLAGS="-g"
4957*d14625f7Sroot  fi
4958*d14625f7Srootelse
4959*d14625f7Sroot  if test "$GXX" = yes; then
4960*d14625f7Sroot    CXXFLAGS="-O2"
4961*d14625f7Sroot  else
4962*d14625f7Sroot    CXXFLAGS=
4963*d14625f7Sroot  fi
4964*d14625f7Srootfi
4965*d14625f7Srootac_ext=cpp
4966*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
4967*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4970*d14625f7Sroot
4971*d14625f7Sroot
4972*d14625f7Sroot      ax_cxx_compile_cxx14_required=false
4973*d14625f7Sroot  ac_ext=cpp
4974*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
4975*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4978*d14625f7Sroot  ac_success=no
4979*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
4980*d14625f7Sroot$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
4981*d14625f7Srootif ${ax_cv_cxx_compile_cxx14+:} false; then :
4982*d14625f7Sroot  $as_echo_n "(cached) " >&6
4983*d14625f7Srootelse
4984*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985*d14625f7Sroot/* end confdefs.h.  */
4986*d14625f7Sroot
4987*d14625f7Sroot
4988*d14625f7Sroot// If the compiler admits that it is not ready for C++11, why torture it?
4989*d14625f7Sroot// Hopefully, this will speed up the test.
4990*d14625f7Sroot
4991*d14625f7Sroot#ifndef __cplusplus
4992*d14625f7Sroot
4993*d14625f7Sroot#error "This is not a C++ compiler"
4994*d14625f7Sroot
4995*d14625f7Sroot#elif __cplusplus < 201103L
4996*d14625f7Sroot
4997*d14625f7Sroot#error "This is not a C++11 compiler"
4998*d14625f7Sroot
4999*d14625f7Sroot#else
5000*d14625f7Sroot
5001*d14625f7Srootnamespace cxx11
5002*d14625f7Sroot{
5003*d14625f7Sroot
5004*d14625f7Sroot  namespace test_static_assert
5005*d14625f7Sroot  {
5006*d14625f7Sroot
5007*d14625f7Sroot    template <typename T>
5008*d14625f7Sroot    struct check
5009*d14625f7Sroot    {
5010*d14625f7Sroot      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5011*d14625f7Sroot    };
5012*d14625f7Sroot
5013*d14625f7Sroot  }
5014*d14625f7Sroot
5015*d14625f7Sroot  namespace test_final_override
5016*d14625f7Sroot  {
5017*d14625f7Sroot
5018*d14625f7Sroot    struct Base
5019*d14625f7Sroot    {
5020*d14625f7Sroot      virtual void f() {}
5021*d14625f7Sroot    };
5022*d14625f7Sroot
5023*d14625f7Sroot    struct Derived : public Base
5024*d14625f7Sroot    {
5025*d14625f7Sroot      virtual void f() override {}
5026*d14625f7Sroot    };
5027*d14625f7Sroot
5028*d14625f7Sroot  }
5029*d14625f7Sroot
5030*d14625f7Sroot  namespace test_double_right_angle_brackets
5031*d14625f7Sroot  {
5032*d14625f7Sroot
5033*d14625f7Sroot    template < typename T >
5034*d14625f7Sroot    struct check {};
5035*d14625f7Sroot
5036*d14625f7Sroot    typedef check<void> single_type;
5037*d14625f7Sroot    typedef check<check<void>> double_type;
5038*d14625f7Sroot    typedef check<check<check<void>>> triple_type;
5039*d14625f7Sroot    typedef check<check<check<check<void>>>> quadruple_type;
5040*d14625f7Sroot
5041*d14625f7Sroot  }
5042*d14625f7Sroot
5043*d14625f7Sroot  namespace test_decltype
5044*d14625f7Sroot  {
5045*d14625f7Sroot
5046*d14625f7Sroot    int
5047*d14625f7Sroot    f()
5048*d14625f7Sroot    {
5049*d14625f7Sroot      int a = 1;
5050*d14625f7Sroot      decltype(a) b = 2;
5051*d14625f7Sroot      return a + b;
5052*d14625f7Sroot    }
5053*d14625f7Sroot
5054*d14625f7Sroot  }
5055*d14625f7Sroot
5056*d14625f7Sroot  namespace test_type_deduction
5057*d14625f7Sroot  {
5058*d14625f7Sroot
5059*d14625f7Sroot    template < typename T1, typename T2 >
5060*d14625f7Sroot    struct is_same
5061*d14625f7Sroot    {
5062*d14625f7Sroot      static const bool value = false;
5063*d14625f7Sroot    };
5064*d14625f7Sroot
5065*d14625f7Sroot    template < typename T >
5066*d14625f7Sroot    struct is_same<T, T>
5067*d14625f7Sroot    {
5068*d14625f7Sroot      static const bool value = true;
5069*d14625f7Sroot    };
5070*d14625f7Sroot
5071*d14625f7Sroot    template < typename T1, typename T2 >
5072*d14625f7Sroot    auto
5073*d14625f7Sroot    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5074*d14625f7Sroot    {
5075*d14625f7Sroot      return a1 + a2;
5076*d14625f7Sroot    }
5077*d14625f7Sroot
5078*d14625f7Sroot    int
5079*d14625f7Sroot    test(const int c, volatile int v)
5080*d14625f7Sroot    {
5081*d14625f7Sroot      static_assert(is_same<int, decltype(0)>::value == true, "");
5082*d14625f7Sroot      static_assert(is_same<int, decltype(c)>::value == false, "");
5083*d14625f7Sroot      static_assert(is_same<int, decltype(v)>::value == false, "");
5084*d14625f7Sroot      auto ac = c;
5085*d14625f7Sroot      auto av = v;
5086*d14625f7Sroot      auto sumi = ac + av + 'x';
5087*d14625f7Sroot      auto sumf = ac + av + 1.0;
5088*d14625f7Sroot      static_assert(is_same<int, decltype(ac)>::value == true, "");
5089*d14625f7Sroot      static_assert(is_same<int, decltype(av)>::value == true, "");
5090*d14625f7Sroot      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5091*d14625f7Sroot      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5092*d14625f7Sroot      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5093*d14625f7Sroot      return (sumf > 0.0) ? sumi : add(c, v);
5094*d14625f7Sroot    }
5095*d14625f7Sroot
5096*d14625f7Sroot  }
5097*d14625f7Sroot
5098*d14625f7Sroot  namespace test_noexcept
5099*d14625f7Sroot  {
5100*d14625f7Sroot
5101*d14625f7Sroot    int f() { return 0; }
5102*d14625f7Sroot    int g() noexcept { return 0; }
5103*d14625f7Sroot
5104*d14625f7Sroot    static_assert(noexcept(f()) == false, "");
5105*d14625f7Sroot    static_assert(noexcept(g()) == true, "");
5106*d14625f7Sroot
5107*d14625f7Sroot  }
5108*d14625f7Sroot
5109*d14625f7Sroot  namespace test_constexpr
5110*d14625f7Sroot  {
5111*d14625f7Sroot
5112*d14625f7Sroot    template < typename CharT >
5113*d14625f7Sroot    unsigned long constexpr
5114*d14625f7Sroot    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5115*d14625f7Sroot    {
5116*d14625f7Sroot      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5117*d14625f7Sroot    }
5118*d14625f7Sroot
5119*d14625f7Sroot    template < typename CharT >
5120*d14625f7Sroot    unsigned long constexpr
5121*d14625f7Sroot    strlen_c(const CharT *const s) noexcept
5122*d14625f7Sroot    {
5123*d14625f7Sroot      return strlen_c_r(s, 0UL);
5124*d14625f7Sroot    }
5125*d14625f7Sroot
5126*d14625f7Sroot    static_assert(strlen_c("") == 0UL, "");
5127*d14625f7Sroot    static_assert(strlen_c("1") == 1UL, "");
5128*d14625f7Sroot    static_assert(strlen_c("example") == 7UL, "");
5129*d14625f7Sroot    static_assert(strlen_c("another\0example") == 7UL, "");
5130*d14625f7Sroot
5131*d14625f7Sroot  }
5132*d14625f7Sroot
5133*d14625f7Sroot  namespace test_rvalue_references
5134*d14625f7Sroot  {
5135*d14625f7Sroot
5136*d14625f7Sroot    template < int N >
5137*d14625f7Sroot    struct answer
5138*d14625f7Sroot    {
5139*d14625f7Sroot      static constexpr int value = N;
5140*d14625f7Sroot    };
5141*d14625f7Sroot
5142*d14625f7Sroot    answer<1> f(int&)       { return answer<1>(); }
5143*d14625f7Sroot    answer<2> f(const int&) { return answer<2>(); }
5144*d14625f7Sroot    answer<3> f(int&&)      { return answer<3>(); }
5145*d14625f7Sroot
5146*d14625f7Sroot    void
5147*d14625f7Sroot    test()
5148*d14625f7Sroot    {
5149*d14625f7Sroot      int i = 0;
5150*d14625f7Sroot      const int c = 0;
5151*d14625f7Sroot      static_assert(decltype(f(i))::value == 1, "");
5152*d14625f7Sroot      static_assert(decltype(f(c))::value == 2, "");
5153*d14625f7Sroot      static_assert(decltype(f(0))::value == 3, "");
5154*d14625f7Sroot    }
5155*d14625f7Sroot
5156*d14625f7Sroot  }
5157*d14625f7Sroot
5158*d14625f7Sroot  namespace test_uniform_initialization
5159*d14625f7Sroot  {
5160*d14625f7Sroot
5161*d14625f7Sroot    struct test
5162*d14625f7Sroot    {
5163*d14625f7Sroot      static const int zero {};
5164*d14625f7Sroot      static const int one {1};
5165*d14625f7Sroot    };
5166*d14625f7Sroot
5167*d14625f7Sroot    static_assert(test::zero == 0, "");
5168*d14625f7Sroot    static_assert(test::one == 1, "");
5169*d14625f7Sroot
5170*d14625f7Sroot  }
5171*d14625f7Sroot
5172*d14625f7Sroot  namespace test_lambdas
5173*d14625f7Sroot  {
5174*d14625f7Sroot
5175*d14625f7Sroot    void
5176*d14625f7Sroot    test1()
5177*d14625f7Sroot    {
5178*d14625f7Sroot      auto lambda1 = [](){};
5179*d14625f7Sroot      auto lambda2 = lambda1;
5180*d14625f7Sroot      lambda1();
5181*d14625f7Sroot      lambda2();
5182*d14625f7Sroot    }
5183*d14625f7Sroot
5184*d14625f7Sroot    int
5185*d14625f7Sroot    test2()
5186*d14625f7Sroot    {
5187*d14625f7Sroot      auto a = [](int i, int j){ return i + j; }(1, 2);
5188*d14625f7Sroot      auto b = []() -> int { return '0'; }();
5189*d14625f7Sroot      auto c = [=](){ return a + b; }();
5190*d14625f7Sroot      auto d = [&](){ return c; }();
5191*d14625f7Sroot      auto e = [a, &b](int x) mutable {
5192*d14625f7Sroot        const auto identity = [](int y){ return y; };
5193*d14625f7Sroot        for (auto i = 0; i < a; ++i)
5194*d14625f7Sroot          a += b--;
5195*d14625f7Sroot        return x + identity(a + b);
5196*d14625f7Sroot      }(0);
5197*d14625f7Sroot      return a + b + c + d + e;
5198*d14625f7Sroot    }
5199*d14625f7Sroot
5200*d14625f7Sroot    int
5201*d14625f7Sroot    test3()
5202*d14625f7Sroot    {
5203*d14625f7Sroot      const auto nullary = [](){ return 0; };
5204*d14625f7Sroot      const auto unary = [](int x){ return x; };
5205*d14625f7Sroot      using nullary_t = decltype(nullary);
5206*d14625f7Sroot      using unary_t = decltype(unary);
5207*d14625f7Sroot      const auto higher1st = [](nullary_t f){ return f(); };
5208*d14625f7Sroot      const auto higher2nd = [unary](nullary_t f1){
5209*d14625f7Sroot        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5210*d14625f7Sroot      };
5211*d14625f7Sroot      return higher1st(nullary) + higher2nd(nullary)(unary);
5212*d14625f7Sroot    }
5213*d14625f7Sroot
5214*d14625f7Sroot  }
5215*d14625f7Sroot
5216*d14625f7Sroot  namespace test_variadic_templates
5217*d14625f7Sroot  {
5218*d14625f7Sroot
5219*d14625f7Sroot    template <int...>
5220*d14625f7Sroot    struct sum;
5221*d14625f7Sroot
5222*d14625f7Sroot    template <int N0, int... N1toN>
5223*d14625f7Sroot    struct sum<N0, N1toN...>
5224*d14625f7Sroot    {
5225*d14625f7Sroot      static constexpr auto value = N0 + sum<N1toN...>::value;
5226*d14625f7Sroot    };
5227*d14625f7Sroot
5228*d14625f7Sroot    template <>
5229*d14625f7Sroot    struct sum<>
5230*d14625f7Sroot    {
5231*d14625f7Sroot      static constexpr auto value = 0;
5232*d14625f7Sroot    };
5233*d14625f7Sroot
5234*d14625f7Sroot    static_assert(sum<>::value == 0, "");
5235*d14625f7Sroot    static_assert(sum<1>::value == 1, "");
5236*d14625f7Sroot    static_assert(sum<23>::value == 23, "");
5237*d14625f7Sroot    static_assert(sum<1, 2>::value == 3, "");
5238*d14625f7Sroot    static_assert(sum<5, 5, 11>::value == 21, "");
5239*d14625f7Sroot    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5240*d14625f7Sroot
5241*d14625f7Sroot  }
5242*d14625f7Sroot
5243*d14625f7Sroot  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5244*d14625f7Sroot  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5245*d14625f7Sroot  // because of this.
5246*d14625f7Sroot  namespace test_template_alias_sfinae
5247*d14625f7Sroot  {
5248*d14625f7Sroot
5249*d14625f7Sroot    struct foo {};
5250*d14625f7Sroot
5251*d14625f7Sroot    template<typename T>
5252*d14625f7Sroot    using member = typename T::member_type;
5253*d14625f7Sroot
5254*d14625f7Sroot    template<typename T>
5255*d14625f7Sroot    void func(...) {}
5256*d14625f7Sroot
5257*d14625f7Sroot    template<typename T>
5258*d14625f7Sroot    void func(member<T>*) {}
5259*d14625f7Sroot
5260*d14625f7Sroot    void test();
5261*d14625f7Sroot
5262*d14625f7Sroot    void test() { func<foo>(0); }
5263*d14625f7Sroot
5264*d14625f7Sroot  }
5265*d14625f7Sroot
5266*d14625f7Sroot}  // namespace cxx11
5267*d14625f7Sroot
5268*d14625f7Sroot#endif  // __cplusplus >= 201103L
5269*d14625f7Sroot
5270*d14625f7Sroot
5271*d14625f7Sroot
5272*d14625f7Sroot
5273*d14625f7Sroot// If the compiler admits that it is not ready for C++14, why torture it?
5274*d14625f7Sroot// Hopefully, this will speed up the test.
5275*d14625f7Sroot
5276*d14625f7Sroot#ifndef __cplusplus
5277*d14625f7Sroot
5278*d14625f7Sroot#error "This is not a C++ compiler"
5279*d14625f7Sroot
5280*d14625f7Sroot#elif __cplusplus < 201402L
5281*d14625f7Sroot
5282*d14625f7Sroot#error "This is not a C++14 compiler"
5283*d14625f7Sroot
5284*d14625f7Sroot#else
5285*d14625f7Sroot
5286*d14625f7Srootnamespace cxx14
5287*d14625f7Sroot{
5288*d14625f7Sroot
5289*d14625f7Sroot  namespace test_polymorphic_lambdas
5290*d14625f7Sroot  {
5291*d14625f7Sroot
5292*d14625f7Sroot    int
5293*d14625f7Sroot    test()
5294*d14625f7Sroot    {
5295*d14625f7Sroot      const auto lambda = [](auto&&... args){
5296*d14625f7Sroot        const auto istiny = [](auto x){
5297*d14625f7Sroot          return (sizeof(x) == 1UL) ? 1 : 0;
5298*d14625f7Sroot        };
5299*d14625f7Sroot        const int aretiny[] = { istiny(args)... };
5300*d14625f7Sroot        return aretiny[0];
5301*d14625f7Sroot      };
5302*d14625f7Sroot      return lambda(1, 1L, 1.0f, '1');
5303*d14625f7Sroot    }
5304*d14625f7Sroot
5305*d14625f7Sroot  }
5306*d14625f7Sroot
5307*d14625f7Sroot  namespace test_binary_literals
5308*d14625f7Sroot  {
5309*d14625f7Sroot
5310*d14625f7Sroot    constexpr auto ivii = 0b0000000000101010;
5311*d14625f7Sroot    static_assert(ivii == 42, "wrong value");
5312*d14625f7Sroot
5313*d14625f7Sroot  }
5314*d14625f7Sroot
5315*d14625f7Sroot  namespace test_generalized_constexpr
5316*d14625f7Sroot  {
5317*d14625f7Sroot
5318*d14625f7Sroot    template < typename CharT >
5319*d14625f7Sroot    constexpr unsigned long
5320*d14625f7Sroot    strlen_c(const CharT *const s) noexcept
5321*d14625f7Sroot    {
5322*d14625f7Sroot      auto length = 0UL;
5323*d14625f7Sroot      for (auto p = s; *p; ++p)
5324*d14625f7Sroot        ++length;
5325*d14625f7Sroot      return length;
5326*d14625f7Sroot    }
5327*d14625f7Sroot
5328*d14625f7Sroot    static_assert(strlen_c("") == 0UL, "");
5329*d14625f7Sroot    static_assert(strlen_c("x") == 1UL, "");
5330*d14625f7Sroot    static_assert(strlen_c("test") == 4UL, "");
5331*d14625f7Sroot    static_assert(strlen_c("another\0test") == 7UL, "");
5332*d14625f7Sroot
5333*d14625f7Sroot  }
5334*d14625f7Sroot
5335*d14625f7Sroot  namespace test_lambda_init_capture
5336*d14625f7Sroot  {
5337*d14625f7Sroot
5338*d14625f7Sroot    int
5339*d14625f7Sroot    test()
5340*d14625f7Sroot    {
5341*d14625f7Sroot      auto x = 0;
5342*d14625f7Sroot      const auto lambda1 = [a = x](int b){ return a + b; };
5343*d14625f7Sroot      const auto lambda2 = [a = lambda1(x)](){ return a; };
5344*d14625f7Sroot      return lambda2();
5345*d14625f7Sroot    }
5346*d14625f7Sroot
5347*d14625f7Sroot  }
5348*d14625f7Sroot
5349*d14625f7Sroot  namespace test_digit_seperators
5350*d14625f7Sroot  {
5351*d14625f7Sroot
5352*d14625f7Sroot    constexpr auto ten_million = 100'000'000;
5353*d14625f7Sroot    static_assert(ten_million == 100000000, "");
5354*d14625f7Sroot
5355*d14625f7Sroot  }
5356*d14625f7Sroot
5357*d14625f7Sroot  namespace test_return_type_deduction
5358*d14625f7Sroot  {
5359*d14625f7Sroot
5360*d14625f7Sroot    auto f(int& x) { return x; }
5361*d14625f7Sroot    decltype(auto) g(int& x) { return x; }
5362*d14625f7Sroot
5363*d14625f7Sroot    template < typename T1, typename T2 >
5364*d14625f7Sroot    struct is_same
5365*d14625f7Sroot    {
5366*d14625f7Sroot      static constexpr auto value = false;
5367*d14625f7Sroot    };
5368*d14625f7Sroot
5369*d14625f7Sroot    template < typename T >
5370*d14625f7Sroot    struct is_same<T, T>
5371*d14625f7Sroot    {
5372*d14625f7Sroot      static constexpr auto value = true;
5373*d14625f7Sroot    };
5374*d14625f7Sroot
5375*d14625f7Sroot    int
5376*d14625f7Sroot    test()
5377*d14625f7Sroot    {
5378*d14625f7Sroot      auto x = 0;
5379*d14625f7Sroot      static_assert(is_same<int, decltype(f(x))>::value, "");
5380*d14625f7Sroot      static_assert(is_same<int&, decltype(g(x))>::value, "");
5381*d14625f7Sroot      return x;
5382*d14625f7Sroot    }
5383*d14625f7Sroot
5384*d14625f7Sroot  }
5385*d14625f7Sroot
5386*d14625f7Sroot}  // namespace cxx14
5387*d14625f7Sroot
5388*d14625f7Sroot#endif  // __cplusplus >= 201402L
5389*d14625f7Sroot
5390*d14625f7Sroot
5391*d14625f7Sroot
5392*d14625f7Sroot_ACEOF
5393*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
5394*d14625f7Sroot  ax_cv_cxx_compile_cxx14=yes
5395*d14625f7Srootelse
5396*d14625f7Sroot  ax_cv_cxx_compile_cxx14=no
5397*d14625f7Srootfi
5398*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399*d14625f7Srootfi
5400*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5401*d14625f7Sroot$as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5402*d14625f7Sroot  if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5403*d14625f7Sroot    ac_success=yes
5404*d14625f7Sroot  fi
5405*d14625f7Sroot
5406*d14625f7Sroot
5407*d14625f7Sroot
5408*d14625f7Sroot    if test x$ac_success = xno; then
5409*d14625f7Sroot                for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5410*d14625f7Sroot      cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5411*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5412*d14625f7Sroot$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5413*d14625f7Srootif eval \${$cachevar+:} false; then :
5414*d14625f7Sroot  $as_echo_n "(cached) " >&6
5415*d14625f7Srootelse
5416*d14625f7Sroot  ac_save_CXX="$CXX"
5417*d14625f7Sroot         CXX="$CXX $switch"
5418*d14625f7Sroot         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419*d14625f7Sroot/* end confdefs.h.  */
5420*d14625f7Sroot
5421*d14625f7Sroot
5422*d14625f7Sroot// If the compiler admits that it is not ready for C++11, why torture it?
5423*d14625f7Sroot// Hopefully, this will speed up the test.
5424*d14625f7Sroot
5425*d14625f7Sroot#ifndef __cplusplus
5426*d14625f7Sroot
5427*d14625f7Sroot#error "This is not a C++ compiler"
5428*d14625f7Sroot
5429*d14625f7Sroot#elif __cplusplus < 201103L
5430*d14625f7Sroot
5431*d14625f7Sroot#error "This is not a C++11 compiler"
5432*d14625f7Sroot
5433*d14625f7Sroot#else
5434*d14625f7Sroot
5435*d14625f7Srootnamespace cxx11
5436*d14625f7Sroot{
5437*d14625f7Sroot
5438*d14625f7Sroot  namespace test_static_assert
5439*d14625f7Sroot  {
5440*d14625f7Sroot
5441*d14625f7Sroot    template <typename T>
5442*d14625f7Sroot    struct check
5443*d14625f7Sroot    {
5444*d14625f7Sroot      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5445*d14625f7Sroot    };
5446*d14625f7Sroot
5447*d14625f7Sroot  }
5448*d14625f7Sroot
5449*d14625f7Sroot  namespace test_final_override
5450*d14625f7Sroot  {
5451*d14625f7Sroot
5452*d14625f7Sroot    struct Base
5453*d14625f7Sroot    {
5454*d14625f7Sroot      virtual void f() {}
5455*d14625f7Sroot    };
5456*d14625f7Sroot
5457*d14625f7Sroot    struct Derived : public Base
5458*d14625f7Sroot    {
5459*d14625f7Sroot      virtual void f() override {}
5460*d14625f7Sroot    };
5461*d14625f7Sroot
5462*d14625f7Sroot  }
5463*d14625f7Sroot
5464*d14625f7Sroot  namespace test_double_right_angle_brackets
5465*d14625f7Sroot  {
5466*d14625f7Sroot
5467*d14625f7Sroot    template < typename T >
5468*d14625f7Sroot    struct check {};
5469*d14625f7Sroot
5470*d14625f7Sroot    typedef check<void> single_type;
5471*d14625f7Sroot    typedef check<check<void>> double_type;
5472*d14625f7Sroot    typedef check<check<check<void>>> triple_type;
5473*d14625f7Sroot    typedef check<check<check<check<void>>>> quadruple_type;
5474*d14625f7Sroot
5475*d14625f7Sroot  }
5476*d14625f7Sroot
5477*d14625f7Sroot  namespace test_decltype
5478*d14625f7Sroot  {
5479*d14625f7Sroot
5480*d14625f7Sroot    int
5481*d14625f7Sroot    f()
5482*d14625f7Sroot    {
5483*d14625f7Sroot      int a = 1;
5484*d14625f7Sroot      decltype(a) b = 2;
5485*d14625f7Sroot      return a + b;
5486*d14625f7Sroot    }
5487*d14625f7Sroot
5488*d14625f7Sroot  }
5489*d14625f7Sroot
5490*d14625f7Sroot  namespace test_type_deduction
5491*d14625f7Sroot  {
5492*d14625f7Sroot
5493*d14625f7Sroot    template < typename T1, typename T2 >
5494*d14625f7Sroot    struct is_same
5495*d14625f7Sroot    {
5496*d14625f7Sroot      static const bool value = false;
5497*d14625f7Sroot    };
5498*d14625f7Sroot
5499*d14625f7Sroot    template < typename T >
5500*d14625f7Sroot    struct is_same<T, T>
5501*d14625f7Sroot    {
5502*d14625f7Sroot      static const bool value = true;
5503*d14625f7Sroot    };
5504*d14625f7Sroot
5505*d14625f7Sroot    template < typename T1, typename T2 >
5506*d14625f7Sroot    auto
5507*d14625f7Sroot    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5508*d14625f7Sroot    {
5509*d14625f7Sroot      return a1 + a2;
5510*d14625f7Sroot    }
5511*d14625f7Sroot
5512*d14625f7Sroot    int
5513*d14625f7Sroot    test(const int c, volatile int v)
5514*d14625f7Sroot    {
5515*d14625f7Sroot      static_assert(is_same<int, decltype(0)>::value == true, "");
5516*d14625f7Sroot      static_assert(is_same<int, decltype(c)>::value == false, "");
5517*d14625f7Sroot      static_assert(is_same<int, decltype(v)>::value == false, "");
5518*d14625f7Sroot      auto ac = c;
5519*d14625f7Sroot      auto av = v;
5520*d14625f7Sroot      auto sumi = ac + av + 'x';
5521*d14625f7Sroot      auto sumf = ac + av + 1.0;
5522*d14625f7Sroot      static_assert(is_same<int, decltype(ac)>::value == true, "");
5523*d14625f7Sroot      static_assert(is_same<int, decltype(av)>::value == true, "");
5524*d14625f7Sroot      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5525*d14625f7Sroot      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5526*d14625f7Sroot      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5527*d14625f7Sroot      return (sumf > 0.0) ? sumi : add(c, v);
5528*d14625f7Sroot    }
5529*d14625f7Sroot
5530*d14625f7Sroot  }
5531*d14625f7Sroot
5532*d14625f7Sroot  namespace test_noexcept
5533*d14625f7Sroot  {
5534*d14625f7Sroot
5535*d14625f7Sroot    int f() { return 0; }
5536*d14625f7Sroot    int g() noexcept { return 0; }
5537*d14625f7Sroot
5538*d14625f7Sroot    static_assert(noexcept(f()) == false, "");
5539*d14625f7Sroot    static_assert(noexcept(g()) == true, "");
5540*d14625f7Sroot
5541*d14625f7Sroot  }
5542*d14625f7Sroot
5543*d14625f7Sroot  namespace test_constexpr
5544*d14625f7Sroot  {
5545*d14625f7Sroot
5546*d14625f7Sroot    template < typename CharT >
5547*d14625f7Sroot    unsigned long constexpr
5548*d14625f7Sroot    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5549*d14625f7Sroot    {
5550*d14625f7Sroot      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5551*d14625f7Sroot    }
5552*d14625f7Sroot
5553*d14625f7Sroot    template < typename CharT >
5554*d14625f7Sroot    unsigned long constexpr
5555*d14625f7Sroot    strlen_c(const CharT *const s) noexcept
5556*d14625f7Sroot    {
5557*d14625f7Sroot      return strlen_c_r(s, 0UL);
5558*d14625f7Sroot    }
5559*d14625f7Sroot
5560*d14625f7Sroot    static_assert(strlen_c("") == 0UL, "");
5561*d14625f7Sroot    static_assert(strlen_c("1") == 1UL, "");
5562*d14625f7Sroot    static_assert(strlen_c("example") == 7UL, "");
5563*d14625f7Sroot    static_assert(strlen_c("another\0example") == 7UL, "");
5564*d14625f7Sroot
5565*d14625f7Sroot  }
5566*d14625f7Sroot
5567*d14625f7Sroot  namespace test_rvalue_references
5568*d14625f7Sroot  {
5569*d14625f7Sroot
5570*d14625f7Sroot    template < int N >
5571*d14625f7Sroot    struct answer
5572*d14625f7Sroot    {
5573*d14625f7Sroot      static constexpr int value = N;
5574*d14625f7Sroot    };
5575*d14625f7Sroot
5576*d14625f7Sroot    answer<1> f(int&)       { return answer<1>(); }
5577*d14625f7Sroot    answer<2> f(const int&) { return answer<2>(); }
5578*d14625f7Sroot    answer<3> f(int&&)      { return answer<3>(); }
5579*d14625f7Sroot
5580*d14625f7Sroot    void
5581*d14625f7Sroot    test()
5582*d14625f7Sroot    {
5583*d14625f7Sroot      int i = 0;
5584*d14625f7Sroot      const int c = 0;
5585*d14625f7Sroot      static_assert(decltype(f(i))::value == 1, "");
5586*d14625f7Sroot      static_assert(decltype(f(c))::value == 2, "");
5587*d14625f7Sroot      static_assert(decltype(f(0))::value == 3, "");
5588*d14625f7Sroot    }
5589*d14625f7Sroot
5590*d14625f7Sroot  }
5591*d14625f7Sroot
5592*d14625f7Sroot  namespace test_uniform_initialization
5593*d14625f7Sroot  {
5594*d14625f7Sroot
5595*d14625f7Sroot    struct test
5596*d14625f7Sroot    {
5597*d14625f7Sroot      static const int zero {};
5598*d14625f7Sroot      static const int one {1};
5599*d14625f7Sroot    };
5600*d14625f7Sroot
5601*d14625f7Sroot    static_assert(test::zero == 0, "");
5602*d14625f7Sroot    static_assert(test::one == 1, "");
5603*d14625f7Sroot
5604*d14625f7Sroot  }
5605*d14625f7Sroot
5606*d14625f7Sroot  namespace test_lambdas
5607*d14625f7Sroot  {
5608*d14625f7Sroot
5609*d14625f7Sroot    void
5610*d14625f7Sroot    test1()
5611*d14625f7Sroot    {
5612*d14625f7Sroot      auto lambda1 = [](){};
5613*d14625f7Sroot      auto lambda2 = lambda1;
5614*d14625f7Sroot      lambda1();
5615*d14625f7Sroot      lambda2();
5616*d14625f7Sroot    }
5617*d14625f7Sroot
5618*d14625f7Sroot    int
5619*d14625f7Sroot    test2()
5620*d14625f7Sroot    {
5621*d14625f7Sroot      auto a = [](int i, int j){ return i + j; }(1, 2);
5622*d14625f7Sroot      auto b = []() -> int { return '0'; }();
5623*d14625f7Sroot      auto c = [=](){ return a + b; }();
5624*d14625f7Sroot      auto d = [&](){ return c; }();
5625*d14625f7Sroot      auto e = [a, &b](int x) mutable {
5626*d14625f7Sroot        const auto identity = [](int y){ return y; };
5627*d14625f7Sroot        for (auto i = 0; i < a; ++i)
5628*d14625f7Sroot          a += b--;
5629*d14625f7Sroot        return x + identity(a + b);
5630*d14625f7Sroot      }(0);
5631*d14625f7Sroot      return a + b + c + d + e;
5632*d14625f7Sroot    }
5633*d14625f7Sroot
5634*d14625f7Sroot    int
5635*d14625f7Sroot    test3()
5636*d14625f7Sroot    {
5637*d14625f7Sroot      const auto nullary = [](){ return 0; };
5638*d14625f7Sroot      const auto unary = [](int x){ return x; };
5639*d14625f7Sroot      using nullary_t = decltype(nullary);
5640*d14625f7Sroot      using unary_t = decltype(unary);
5641*d14625f7Sroot      const auto higher1st = [](nullary_t f){ return f(); };
5642*d14625f7Sroot      const auto higher2nd = [unary](nullary_t f1){
5643*d14625f7Sroot        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5644*d14625f7Sroot      };
5645*d14625f7Sroot      return higher1st(nullary) + higher2nd(nullary)(unary);
5646*d14625f7Sroot    }
5647*d14625f7Sroot
5648*d14625f7Sroot  }
5649*d14625f7Sroot
5650*d14625f7Sroot  namespace test_variadic_templates
5651*d14625f7Sroot  {
5652*d14625f7Sroot
5653*d14625f7Sroot    template <int...>
5654*d14625f7Sroot    struct sum;
5655*d14625f7Sroot
5656*d14625f7Sroot    template <int N0, int... N1toN>
5657*d14625f7Sroot    struct sum<N0, N1toN...>
5658*d14625f7Sroot    {
5659*d14625f7Sroot      static constexpr auto value = N0 + sum<N1toN...>::value;
5660*d14625f7Sroot    };
5661*d14625f7Sroot
5662*d14625f7Sroot    template <>
5663*d14625f7Sroot    struct sum<>
5664*d14625f7Sroot    {
5665*d14625f7Sroot      static constexpr auto value = 0;
5666*d14625f7Sroot    };
5667*d14625f7Sroot
5668*d14625f7Sroot    static_assert(sum<>::value == 0, "");
5669*d14625f7Sroot    static_assert(sum<1>::value == 1, "");
5670*d14625f7Sroot    static_assert(sum<23>::value == 23, "");
5671*d14625f7Sroot    static_assert(sum<1, 2>::value == 3, "");
5672*d14625f7Sroot    static_assert(sum<5, 5, 11>::value == 21, "");
5673*d14625f7Sroot    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5674*d14625f7Sroot
5675*d14625f7Sroot  }
5676*d14625f7Sroot
5677*d14625f7Sroot  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5678*d14625f7Sroot  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5679*d14625f7Sroot  // because of this.
5680*d14625f7Sroot  namespace test_template_alias_sfinae
5681*d14625f7Sroot  {
5682*d14625f7Sroot
5683*d14625f7Sroot    struct foo {};
5684*d14625f7Sroot
5685*d14625f7Sroot    template<typename T>
5686*d14625f7Sroot    using member = typename T::member_type;
5687*d14625f7Sroot
5688*d14625f7Sroot    template<typename T>
5689*d14625f7Sroot    void func(...) {}
5690*d14625f7Sroot
5691*d14625f7Sroot    template<typename T>
5692*d14625f7Sroot    void func(member<T>*) {}
5693*d14625f7Sroot
5694*d14625f7Sroot    void test();
5695*d14625f7Sroot
5696*d14625f7Sroot    void test() { func<foo>(0); }
5697*d14625f7Sroot
5698*d14625f7Sroot  }
5699*d14625f7Sroot
5700*d14625f7Sroot}  // namespace cxx11
5701*d14625f7Sroot
5702*d14625f7Sroot#endif  // __cplusplus >= 201103L
5703*d14625f7Sroot
5704*d14625f7Sroot
5705*d14625f7Sroot
5706*d14625f7Sroot
5707*d14625f7Sroot// If the compiler admits that it is not ready for C++14, why torture it?
5708*d14625f7Sroot// Hopefully, this will speed up the test.
5709*d14625f7Sroot
5710*d14625f7Sroot#ifndef __cplusplus
5711*d14625f7Sroot
5712*d14625f7Sroot#error "This is not a C++ compiler"
5713*d14625f7Sroot
5714*d14625f7Sroot#elif __cplusplus < 201402L
5715*d14625f7Sroot
5716*d14625f7Sroot#error "This is not a C++14 compiler"
5717*d14625f7Sroot
5718*d14625f7Sroot#else
5719*d14625f7Sroot
5720*d14625f7Srootnamespace cxx14
5721*d14625f7Sroot{
5722*d14625f7Sroot
5723*d14625f7Sroot  namespace test_polymorphic_lambdas
5724*d14625f7Sroot  {
5725*d14625f7Sroot
5726*d14625f7Sroot    int
5727*d14625f7Sroot    test()
5728*d14625f7Sroot    {
5729*d14625f7Sroot      const auto lambda = [](auto&&... args){
5730*d14625f7Sroot        const auto istiny = [](auto x){
5731*d14625f7Sroot          return (sizeof(x) == 1UL) ? 1 : 0;
5732*d14625f7Sroot        };
5733*d14625f7Sroot        const int aretiny[] = { istiny(args)... };
5734*d14625f7Sroot        return aretiny[0];
5735*d14625f7Sroot      };
5736*d14625f7Sroot      return lambda(1, 1L, 1.0f, '1');
5737*d14625f7Sroot    }
5738*d14625f7Sroot
5739*d14625f7Sroot  }
5740*d14625f7Sroot
5741*d14625f7Sroot  namespace test_binary_literals
5742*d14625f7Sroot  {
5743*d14625f7Sroot
5744*d14625f7Sroot    constexpr auto ivii = 0b0000000000101010;
5745*d14625f7Sroot    static_assert(ivii == 42, "wrong value");
5746*d14625f7Sroot
5747*d14625f7Sroot  }
5748*d14625f7Sroot
5749*d14625f7Sroot  namespace test_generalized_constexpr
5750*d14625f7Sroot  {
5751*d14625f7Sroot
5752*d14625f7Sroot    template < typename CharT >
5753*d14625f7Sroot    constexpr unsigned long
5754*d14625f7Sroot    strlen_c(const CharT *const s) noexcept
5755*d14625f7Sroot    {
5756*d14625f7Sroot      auto length = 0UL;
5757*d14625f7Sroot      for (auto p = s; *p; ++p)
5758*d14625f7Sroot        ++length;
5759*d14625f7Sroot      return length;
5760*d14625f7Sroot    }
5761*d14625f7Sroot
5762*d14625f7Sroot    static_assert(strlen_c("") == 0UL, "");
5763*d14625f7Sroot    static_assert(strlen_c("x") == 1UL, "");
5764*d14625f7Sroot    static_assert(strlen_c("test") == 4UL, "");
5765*d14625f7Sroot    static_assert(strlen_c("another\0test") == 7UL, "");
5766*d14625f7Sroot
5767*d14625f7Sroot  }
5768*d14625f7Sroot
5769*d14625f7Sroot  namespace test_lambda_init_capture
5770*d14625f7Sroot  {
5771*d14625f7Sroot
5772*d14625f7Sroot    int
5773*d14625f7Sroot    test()
5774*d14625f7Sroot    {
5775*d14625f7Sroot      auto x = 0;
5776*d14625f7Sroot      const auto lambda1 = [a = x](int b){ return a + b; };
5777*d14625f7Sroot      const auto lambda2 = [a = lambda1(x)](){ return a; };
5778*d14625f7Sroot      return lambda2();
5779*d14625f7Sroot    }
5780*d14625f7Sroot
5781*d14625f7Sroot  }
5782*d14625f7Sroot
5783*d14625f7Sroot  namespace test_digit_seperators
5784*d14625f7Sroot  {
5785*d14625f7Sroot
5786*d14625f7Sroot    constexpr auto ten_million = 100'000'000;
5787*d14625f7Sroot    static_assert(ten_million == 100000000, "");
5788*d14625f7Sroot
5789*d14625f7Sroot  }
5790*d14625f7Sroot
5791*d14625f7Sroot  namespace test_return_type_deduction
5792*d14625f7Sroot  {
5793*d14625f7Sroot
5794*d14625f7Sroot    auto f(int& x) { return x; }
5795*d14625f7Sroot    decltype(auto) g(int& x) { return x; }
5796*d14625f7Sroot
5797*d14625f7Sroot    template < typename T1, typename T2 >
5798*d14625f7Sroot    struct is_same
5799*d14625f7Sroot    {
5800*d14625f7Sroot      static constexpr auto value = false;
5801*d14625f7Sroot    };
5802*d14625f7Sroot
5803*d14625f7Sroot    template < typename T >
5804*d14625f7Sroot    struct is_same<T, T>
5805*d14625f7Sroot    {
5806*d14625f7Sroot      static constexpr auto value = true;
5807*d14625f7Sroot    };
5808*d14625f7Sroot
5809*d14625f7Sroot    int
5810*d14625f7Sroot    test()
5811*d14625f7Sroot    {
5812*d14625f7Sroot      auto x = 0;
5813*d14625f7Sroot      static_assert(is_same<int, decltype(f(x))>::value, "");
5814*d14625f7Sroot      static_assert(is_same<int&, decltype(g(x))>::value, "");
5815*d14625f7Sroot      return x;
5816*d14625f7Sroot    }
5817*d14625f7Sroot
5818*d14625f7Sroot  }
5819*d14625f7Sroot
5820*d14625f7Sroot}  // namespace cxx14
5821*d14625f7Sroot
5822*d14625f7Sroot#endif  // __cplusplus >= 201402L
5823*d14625f7Sroot
5824*d14625f7Sroot
5825*d14625f7Sroot
5826*d14625f7Sroot_ACEOF
5827*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
5828*d14625f7Sroot  eval $cachevar=yes
5829*d14625f7Srootelse
5830*d14625f7Sroot  eval $cachevar=no
5831*d14625f7Srootfi
5832*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833*d14625f7Sroot         CXX="$ac_save_CXX"
5834*d14625f7Srootfi
5835*d14625f7Srooteval ac_res=\$$cachevar
5836*d14625f7Sroot	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837*d14625f7Sroot$as_echo "$ac_res" >&6; }
5838*d14625f7Sroot      if eval test x\$$cachevar = xyes; then
5839*d14625f7Sroot        CXX="$CXX $switch"
5840*d14625f7Sroot        if test -n "$CXXCPP" ; then
5841*d14625f7Sroot          CXXCPP="$CXXCPP $switch"
5842*d14625f7Sroot        fi
5843*d14625f7Sroot        ac_success=yes
5844*d14625f7Sroot        break
5845*d14625f7Sroot      fi
5846*d14625f7Sroot    done
5847*d14625f7Sroot  fi
5848*d14625f7Sroot  ac_ext=c
5849*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
5850*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
5853*d14625f7Sroot
5854*d14625f7Sroot  if test x$ax_cxx_compile_cxx14_required = xtrue; then
5855*d14625f7Sroot    if test x$ac_success = xno; then
5856*d14625f7Sroot      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5857*d14625f7Sroot    fi
5858*d14625f7Sroot  fi
5859*d14625f7Sroot  if test x$ac_success = xno; then
5860*d14625f7Sroot    HAVE_CXX14=0
5861*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5862*d14625f7Sroot$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5863*d14625f7Sroot  else
5864*d14625f7Sroot    HAVE_CXX14=1
5865*d14625f7Sroot
5866*d14625f7Sroot$as_echo "#define HAVE_CXX14 1" >>confdefs.h
5867*d14625f7Sroot
5868*d14625f7Sroot  fi
5869*d14625f7Sroot
5870*d14625f7Sroot
5871*d14625f7Sroot  if test "x${HAVE_CXX14}" = "x1" ; then
5872*d14625f7Sroot
5873*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5874*d14625f7Sroot$as_echo_n "checking whether compiler supports -Wall... " >&6; }
5875*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5876*d14625f7SrootT_APPEND_V=-Wall
5877*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5878*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5879*d14625f7Srootelse
5880*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5881*d14625f7Srootfi
5882*d14625f7Sroot
5883*d14625f7Sroot
5884*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5885*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5886*d14625f7Srootelse
5887*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5888*d14625f7Srootfi
5889*d14625f7Sroot
5890*d14625f7Srootac_ext=cpp
5891*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
5892*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5895*d14625f7Sroot
5896*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897*d14625f7Sroot/* end confdefs.h.  */
5898*d14625f7Sroot
5899*d14625f7Sroot
5900*d14625f7Srootint
5901*d14625f7Srootmain ()
5902*d14625f7Sroot{
5903*d14625f7Sroot
5904*d14625f7Sroot    return 0;
5905*d14625f7Sroot
5906*d14625f7Sroot  ;
5907*d14625f7Sroot  return 0;
5908*d14625f7Sroot}
5909*d14625f7Sroot_ACEOF
5910*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
5911*d14625f7Sroot  je_cv_cxxflags_added=-Wall
5912*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913*d14625f7Sroot$as_echo "yes" >&6; }
5914*d14625f7Srootelse
5915*d14625f7Sroot  je_cv_cxxflags_added=
5916*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917*d14625f7Sroot$as_echo "no" >&6; }
5918*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5919*d14625f7Sroot
5920*d14625f7Srootfi
5921*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922*d14625f7Srootac_ext=c
5923*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
5924*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
5927*d14625f7Sroot
5928*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5929*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5930*d14625f7Srootelse
5931*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5932*d14625f7Srootfi
5933*d14625f7Sroot
5934*d14625f7Sroot
5935*d14625f7Sroot
5936*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
5937*d14625f7Sroot$as_echo_n "checking whether compiler supports -g3... " >&6; }
5938*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5939*d14625f7SrootT_APPEND_V=-g3
5940*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5941*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5942*d14625f7Srootelse
5943*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5944*d14625f7Srootfi
5945*d14625f7Sroot
5946*d14625f7Sroot
5947*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5948*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5949*d14625f7Srootelse
5950*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5951*d14625f7Srootfi
5952*d14625f7Sroot
5953*d14625f7Srootac_ext=cpp
5954*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
5955*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5958*d14625f7Sroot
5959*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960*d14625f7Sroot/* end confdefs.h.  */
5961*d14625f7Sroot
5962*d14625f7Sroot
5963*d14625f7Srootint
5964*d14625f7Srootmain ()
5965*d14625f7Sroot{
5966*d14625f7Sroot
5967*d14625f7Sroot    return 0;
5968*d14625f7Sroot
5969*d14625f7Sroot  ;
5970*d14625f7Sroot  return 0;
5971*d14625f7Sroot}
5972*d14625f7Sroot_ACEOF
5973*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
5974*d14625f7Sroot  je_cv_cxxflags_added=-g3
5975*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976*d14625f7Sroot$as_echo "yes" >&6; }
5977*d14625f7Srootelse
5978*d14625f7Sroot  je_cv_cxxflags_added=
5979*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980*d14625f7Sroot$as_echo "no" >&6; }
5981*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5982*d14625f7Sroot
5983*d14625f7Srootfi
5984*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985*d14625f7Srootac_ext=c
5986*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
5987*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
5990*d14625f7Sroot
5991*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5992*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5993*d14625f7Srootelse
5994*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5995*d14625f7Srootfi
5996*d14625f7Sroot
5997*d14625f7Sroot
5998*d14625f7Sroot
5999*d14625f7Sroot    SAVED_LIBS="${LIBS}"
6000*d14625f7Sroot    T_APPEND_V=-lstdc++
6001*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6002*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
6003*d14625f7Srootelse
6004*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
6005*d14625f7Srootfi
6006*d14625f7Sroot
6007*d14625f7Sroot
6008*d14625f7Sroot
6009*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6010*d14625f7Sroot$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6011*d14625f7Srootif ${je_cv_libstdcxx+:} false; then :
6012*d14625f7Sroot  $as_echo_n "(cached) " >&6
6013*d14625f7Srootelse
6014*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015*d14625f7Sroot/* end confdefs.h.  */
6016*d14625f7Sroot
6017*d14625f7Sroot#include <stdlib.h>
6018*d14625f7Sroot
6019*d14625f7Srootint
6020*d14625f7Srootmain ()
6021*d14625f7Sroot{
6022*d14625f7Sroot
6023*d14625f7Sroot	int *arr = (int *)malloc(sizeof(int) * 42);
6024*d14625f7Sroot	if (arr == NULL)
6025*d14625f7Sroot		return 1;
6026*d14625f7Sroot
6027*d14625f7Sroot  ;
6028*d14625f7Sroot  return 0;
6029*d14625f7Sroot}
6030*d14625f7Sroot_ACEOF
6031*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
6032*d14625f7Sroot  je_cv_libstdcxx=yes
6033*d14625f7Srootelse
6034*d14625f7Sroot  je_cv_libstdcxx=no
6035*d14625f7Srootfi
6036*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
6037*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
6038*d14625f7Srootfi
6039*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6040*d14625f7Sroot$as_echo "$je_cv_libstdcxx" >&6; }
6041*d14625f7Sroot
6042*d14625f7Sroot    if test "x${je_cv_libstdcxx}" = "xno" ; then
6043*d14625f7Sroot      LIBS="${SAVED_LIBS}"
6044*d14625f7Sroot    fi
6045*d14625f7Sroot  else
6046*d14625f7Sroot    enable_cxx="0"
6047*d14625f7Sroot  fi
6048*d14625f7Srootfi
6049*d14625f7Sroot
6050*d14625f7Sroot
6051*d14625f7Sroot
6052*d14625f7Sroot
6053*d14625f7Sroot
6054*d14625f7Sroot
6055*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6056*d14625f7Sroot$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6057*d14625f7Srootif ${ac_cv_path_GREP+:} false; then :
6058*d14625f7Sroot  $as_echo_n "(cached) " >&6
6059*d14625f7Srootelse
6060*d14625f7Sroot  if test -z "$GREP"; then
6061*d14625f7Sroot  ac_path_GREP_found=false
6062*d14625f7Sroot  # Loop through the user's path and test for each of PROGNAME-LIST
6063*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064*d14625f7Srootfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6065*d14625f7Srootdo
6066*d14625f7Sroot  IFS=$as_save_IFS
6067*d14625f7Sroot  test -z "$as_dir" && as_dir=.
6068*d14625f7Sroot    for ac_prog in grep ggrep; do
6069*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
6070*d14625f7Sroot      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6071*d14625f7Sroot      as_fn_executable_p "$ac_path_GREP" || continue
6072*d14625f7Sroot# Check for GNU ac_path_GREP and select it if it is found.
6073*d14625f7Sroot  # Check for GNU $ac_path_GREP
6074*d14625f7Srootcase `"$ac_path_GREP" --version 2>&1` in
6075*d14625f7Sroot*GNU*)
6076*d14625f7Sroot  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6077*d14625f7Sroot*)
6078*d14625f7Sroot  ac_count=0
6079*d14625f7Sroot  $as_echo_n 0123456789 >"conftest.in"
6080*d14625f7Sroot  while :
6081*d14625f7Sroot  do
6082*d14625f7Sroot    cat "conftest.in" "conftest.in" >"conftest.tmp"
6083*d14625f7Sroot    mv "conftest.tmp" "conftest.in"
6084*d14625f7Sroot    cp "conftest.in" "conftest.nl"
6085*d14625f7Sroot    $as_echo 'GREP' >> "conftest.nl"
6086*d14625f7Sroot    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6087*d14625f7Sroot    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6088*d14625f7Sroot    as_fn_arith $ac_count + 1 && ac_count=$as_val
6089*d14625f7Sroot    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6090*d14625f7Sroot      # Best one so far, save it but keep looking for a better one
6091*d14625f7Sroot      ac_cv_path_GREP="$ac_path_GREP"
6092*d14625f7Sroot      ac_path_GREP_max=$ac_count
6093*d14625f7Sroot    fi
6094*d14625f7Sroot    # 10*(2^10) chars as input seems more than enough
6095*d14625f7Sroot    test $ac_count -gt 10 && break
6096*d14625f7Sroot  done
6097*d14625f7Sroot  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6098*d14625f7Srootesac
6099*d14625f7Sroot
6100*d14625f7Sroot      $ac_path_GREP_found && break 3
6101*d14625f7Sroot    done
6102*d14625f7Sroot  done
6103*d14625f7Sroot  done
6104*d14625f7SrootIFS=$as_save_IFS
6105*d14625f7Sroot  if test -z "$ac_cv_path_GREP"; then
6106*d14625f7Sroot    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6107*d14625f7Sroot  fi
6108*d14625f7Srootelse
6109*d14625f7Sroot  ac_cv_path_GREP=$GREP
6110*d14625f7Srootfi
6111*d14625f7Sroot
6112*d14625f7Srootfi
6113*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6114*d14625f7Sroot$as_echo "$ac_cv_path_GREP" >&6; }
6115*d14625f7Sroot GREP="$ac_cv_path_GREP"
6116*d14625f7Sroot
6117*d14625f7Sroot
6118*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6119*d14625f7Sroot$as_echo_n "checking for egrep... " >&6; }
6120*d14625f7Srootif ${ac_cv_path_EGREP+:} false; then :
6121*d14625f7Sroot  $as_echo_n "(cached) " >&6
6122*d14625f7Srootelse
6123*d14625f7Sroot  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124*d14625f7Sroot   then ac_cv_path_EGREP="$GREP -E"
6125*d14625f7Sroot   else
6126*d14625f7Sroot     if test -z "$EGREP"; then
6127*d14625f7Sroot  ac_path_EGREP_found=false
6128*d14625f7Sroot  # Loop through the user's path and test for each of PROGNAME-LIST
6129*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130*d14625f7Srootfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131*d14625f7Srootdo
6132*d14625f7Sroot  IFS=$as_save_IFS
6133*d14625f7Sroot  test -z "$as_dir" && as_dir=.
6134*d14625f7Sroot    for ac_prog in egrep; do
6135*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
6136*d14625f7Sroot      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137*d14625f7Sroot      as_fn_executable_p "$ac_path_EGREP" || continue
6138*d14625f7Sroot# Check for GNU ac_path_EGREP and select it if it is found.
6139*d14625f7Sroot  # Check for GNU $ac_path_EGREP
6140*d14625f7Srootcase `"$ac_path_EGREP" --version 2>&1` in
6141*d14625f7Sroot*GNU*)
6142*d14625f7Sroot  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6143*d14625f7Sroot*)
6144*d14625f7Sroot  ac_count=0
6145*d14625f7Sroot  $as_echo_n 0123456789 >"conftest.in"
6146*d14625f7Sroot  while :
6147*d14625f7Sroot  do
6148*d14625f7Sroot    cat "conftest.in" "conftest.in" >"conftest.tmp"
6149*d14625f7Sroot    mv "conftest.tmp" "conftest.in"
6150*d14625f7Sroot    cp "conftest.in" "conftest.nl"
6151*d14625f7Sroot    $as_echo 'EGREP' >> "conftest.nl"
6152*d14625f7Sroot    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153*d14625f7Sroot    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154*d14625f7Sroot    as_fn_arith $ac_count + 1 && ac_count=$as_val
6155*d14625f7Sroot    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156*d14625f7Sroot      # Best one so far, save it but keep looking for a better one
6157*d14625f7Sroot      ac_cv_path_EGREP="$ac_path_EGREP"
6158*d14625f7Sroot      ac_path_EGREP_max=$ac_count
6159*d14625f7Sroot    fi
6160*d14625f7Sroot    # 10*(2^10) chars as input seems more than enough
6161*d14625f7Sroot    test $ac_count -gt 10 && break
6162*d14625f7Sroot  done
6163*d14625f7Sroot  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164*d14625f7Srootesac
6165*d14625f7Sroot
6166*d14625f7Sroot      $ac_path_EGREP_found && break 3
6167*d14625f7Sroot    done
6168*d14625f7Sroot  done
6169*d14625f7Sroot  done
6170*d14625f7SrootIFS=$as_save_IFS
6171*d14625f7Sroot  if test -z "$ac_cv_path_EGREP"; then
6172*d14625f7Sroot    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173*d14625f7Sroot  fi
6174*d14625f7Srootelse
6175*d14625f7Sroot  ac_cv_path_EGREP=$EGREP
6176*d14625f7Srootfi
6177*d14625f7Sroot
6178*d14625f7Sroot   fi
6179*d14625f7Srootfi
6180*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6181*d14625f7Sroot$as_echo "$ac_cv_path_EGREP" >&6; }
6182*d14625f7Sroot EGREP="$ac_cv_path_EGREP"
6183*d14625f7Sroot
6184*d14625f7Sroot
6185*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6186*d14625f7Sroot$as_echo_n "checking for ANSI C header files... " >&6; }
6187*d14625f7Srootif ${ac_cv_header_stdc+:} false; then :
6188*d14625f7Sroot  $as_echo_n "(cached) " >&6
6189*d14625f7Srootelse
6190*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191*d14625f7Sroot/* end confdefs.h.  */
6192*d14625f7Sroot#include <stdlib.h>
6193*d14625f7Sroot#include <stdarg.h>
6194*d14625f7Sroot#include <string.h>
6195*d14625f7Sroot#include <float.h>
6196*d14625f7Sroot
6197*d14625f7Srootint
6198*d14625f7Srootmain ()
6199*d14625f7Sroot{
6200*d14625f7Sroot
6201*d14625f7Sroot  ;
6202*d14625f7Sroot  return 0;
6203*d14625f7Sroot}
6204*d14625f7Sroot_ACEOF
6205*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6206*d14625f7Sroot  ac_cv_header_stdc=yes
6207*d14625f7Srootelse
6208*d14625f7Sroot  ac_cv_header_stdc=no
6209*d14625f7Srootfi
6210*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211*d14625f7Sroot
6212*d14625f7Srootif test $ac_cv_header_stdc = yes; then
6213*d14625f7Sroot  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6214*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215*d14625f7Sroot/* end confdefs.h.  */
6216*d14625f7Sroot#include <string.h>
6217*d14625f7Sroot
6218*d14625f7Sroot_ACEOF
6219*d14625f7Srootif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220*d14625f7Sroot  $EGREP "memchr" >/dev/null 2>&1; then :
6221*d14625f7Sroot
6222*d14625f7Srootelse
6223*d14625f7Sroot  ac_cv_header_stdc=no
6224*d14625f7Srootfi
6225*d14625f7Srootrm -f conftest*
6226*d14625f7Sroot
6227*d14625f7Srootfi
6228*d14625f7Sroot
6229*d14625f7Srootif test $ac_cv_header_stdc = yes; then
6230*d14625f7Sroot  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232*d14625f7Sroot/* end confdefs.h.  */
6233*d14625f7Sroot#include <stdlib.h>
6234*d14625f7Sroot
6235*d14625f7Sroot_ACEOF
6236*d14625f7Srootif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237*d14625f7Sroot  $EGREP "free" >/dev/null 2>&1; then :
6238*d14625f7Sroot
6239*d14625f7Srootelse
6240*d14625f7Sroot  ac_cv_header_stdc=no
6241*d14625f7Srootfi
6242*d14625f7Srootrm -f conftest*
6243*d14625f7Sroot
6244*d14625f7Srootfi
6245*d14625f7Sroot
6246*d14625f7Srootif test $ac_cv_header_stdc = yes; then
6247*d14625f7Sroot  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6248*d14625f7Sroot  if test "$cross_compiling" = yes; then :
6249*d14625f7Sroot  :
6250*d14625f7Srootelse
6251*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252*d14625f7Sroot/* end confdefs.h.  */
6253*d14625f7Sroot#include <ctype.h>
6254*d14625f7Sroot#include <stdlib.h>
6255*d14625f7Sroot#if ((' ' & 0x0FF) == 0x020)
6256*d14625f7Sroot# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6257*d14625f7Sroot# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6258*d14625f7Sroot#else
6259*d14625f7Sroot# define ISLOWER(c) \
6260*d14625f7Sroot		   (('a' <= (c) && (c) <= 'i') \
6261*d14625f7Sroot		     || ('j' <= (c) && (c) <= 'r') \
6262*d14625f7Sroot		     || ('s' <= (c) && (c) <= 'z'))
6263*d14625f7Sroot# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6264*d14625f7Sroot#endif
6265*d14625f7Sroot
6266*d14625f7Sroot#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6267*d14625f7Srootint
6268*d14625f7Srootmain ()
6269*d14625f7Sroot{
6270*d14625f7Sroot  int i;
6271*d14625f7Sroot  for (i = 0; i < 256; i++)
6272*d14625f7Sroot    if (XOR (islower (i), ISLOWER (i))
6273*d14625f7Sroot	|| toupper (i) != TOUPPER (i))
6274*d14625f7Sroot      return 2;
6275*d14625f7Sroot  return 0;
6276*d14625f7Sroot}
6277*d14625f7Sroot_ACEOF
6278*d14625f7Srootif ac_fn_c_try_run "$LINENO"; then :
6279*d14625f7Sroot
6280*d14625f7Srootelse
6281*d14625f7Sroot  ac_cv_header_stdc=no
6282*d14625f7Srootfi
6283*d14625f7Srootrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6284*d14625f7Sroot  conftest.$ac_objext conftest.beam conftest.$ac_ext
6285*d14625f7Srootfi
6286*d14625f7Sroot
6287*d14625f7Srootfi
6288*d14625f7Srootfi
6289*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6290*d14625f7Sroot$as_echo "$ac_cv_header_stdc" >&6; }
6291*d14625f7Srootif test $ac_cv_header_stdc = yes; then
6292*d14625f7Sroot
6293*d14625f7Sroot$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6294*d14625f7Sroot
6295*d14625f7Srootfi
6296*d14625f7Sroot
6297*d14625f7Sroot# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298*d14625f7Srootfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6299*d14625f7Sroot		  inttypes.h stdint.h unistd.h
6300*d14625f7Srootdo :
6301*d14625f7Sroot  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302*d14625f7Srootac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6303*d14625f7Sroot"
6304*d14625f7Srootif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6305*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
6306*d14625f7Sroot#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307*d14625f7Sroot_ACEOF
6308*d14625f7Sroot
6309*d14625f7Srootfi
6310*d14625f7Sroot
6311*d14625f7Srootdone
6312*d14625f7Sroot
6313*d14625f7Sroot
6314*d14625f7Sroot { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6315*d14625f7Sroot$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6316*d14625f7Srootif ${ac_cv_c_bigendian+:} false; then :
6317*d14625f7Sroot  $as_echo_n "(cached) " >&6
6318*d14625f7Srootelse
6319*d14625f7Sroot  ac_cv_c_bigendian=unknown
6320*d14625f7Sroot    # See if we're dealing with a universal compiler.
6321*d14625f7Sroot    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322*d14625f7Sroot/* end confdefs.h.  */
6323*d14625f7Sroot#ifndef __APPLE_CC__
6324*d14625f7Sroot	       not a universal capable compiler
6325*d14625f7Sroot	     #endif
6326*d14625f7Sroot	     typedef int dummy;
6327*d14625f7Sroot
6328*d14625f7Sroot_ACEOF
6329*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6330*d14625f7Sroot
6331*d14625f7Sroot	# Check for potential -arch flags.  It is not universal unless
6332*d14625f7Sroot	# there are at least two -arch flags with different values.
6333*d14625f7Sroot	ac_arch=
6334*d14625f7Sroot	ac_prev=
6335*d14625f7Sroot	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6336*d14625f7Sroot	 if test -n "$ac_prev"; then
6337*d14625f7Sroot	   case $ac_word in
6338*d14625f7Sroot	     i?86 | x86_64 | ppc | ppc64)
6339*d14625f7Sroot	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6340*d14625f7Sroot		 ac_arch=$ac_word
6341*d14625f7Sroot	       else
6342*d14625f7Sroot		 ac_cv_c_bigendian=universal
6343*d14625f7Sroot		 break
6344*d14625f7Sroot	       fi
6345*d14625f7Sroot	       ;;
6346*d14625f7Sroot	   esac
6347*d14625f7Sroot	   ac_prev=
6348*d14625f7Sroot	 elif test "x$ac_word" = "x-arch"; then
6349*d14625f7Sroot	   ac_prev=arch
6350*d14625f7Sroot	 fi
6351*d14625f7Sroot       done
6352*d14625f7Srootfi
6353*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354*d14625f7Sroot    if test $ac_cv_c_bigendian = unknown; then
6355*d14625f7Sroot      # See if sys/param.h defines the BYTE_ORDER macro.
6356*d14625f7Sroot      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357*d14625f7Sroot/* end confdefs.h.  */
6358*d14625f7Sroot#include <sys/types.h>
6359*d14625f7Sroot	     #include <sys/param.h>
6360*d14625f7Sroot
6361*d14625f7Srootint
6362*d14625f7Srootmain ()
6363*d14625f7Sroot{
6364*d14625f7Sroot#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6365*d14625f7Sroot		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6366*d14625f7Sroot		     && LITTLE_ENDIAN)
6367*d14625f7Sroot	      bogus endian macros
6368*d14625f7Sroot	     #endif
6369*d14625f7Sroot
6370*d14625f7Sroot  ;
6371*d14625f7Sroot  return 0;
6372*d14625f7Sroot}
6373*d14625f7Sroot_ACEOF
6374*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6375*d14625f7Sroot  # It does; now see whether it defined to BIG_ENDIAN or not.
6376*d14625f7Sroot	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377*d14625f7Sroot/* end confdefs.h.  */
6378*d14625f7Sroot#include <sys/types.h>
6379*d14625f7Sroot		#include <sys/param.h>
6380*d14625f7Sroot
6381*d14625f7Srootint
6382*d14625f7Srootmain ()
6383*d14625f7Sroot{
6384*d14625f7Sroot#if BYTE_ORDER != BIG_ENDIAN
6385*d14625f7Sroot		 not big endian
6386*d14625f7Sroot		#endif
6387*d14625f7Sroot
6388*d14625f7Sroot  ;
6389*d14625f7Sroot  return 0;
6390*d14625f7Sroot}
6391*d14625f7Sroot_ACEOF
6392*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6393*d14625f7Sroot  ac_cv_c_bigendian=yes
6394*d14625f7Srootelse
6395*d14625f7Sroot  ac_cv_c_bigendian=no
6396*d14625f7Srootfi
6397*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398*d14625f7Srootfi
6399*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400*d14625f7Sroot    fi
6401*d14625f7Sroot    if test $ac_cv_c_bigendian = unknown; then
6402*d14625f7Sroot      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6403*d14625f7Sroot      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404*d14625f7Sroot/* end confdefs.h.  */
6405*d14625f7Sroot#include <limits.h>
6406*d14625f7Sroot
6407*d14625f7Srootint
6408*d14625f7Srootmain ()
6409*d14625f7Sroot{
6410*d14625f7Sroot#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6411*d14625f7Sroot	      bogus endian macros
6412*d14625f7Sroot	     #endif
6413*d14625f7Sroot
6414*d14625f7Sroot  ;
6415*d14625f7Sroot  return 0;
6416*d14625f7Sroot}
6417*d14625f7Sroot_ACEOF
6418*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6419*d14625f7Sroot  # It does; now see whether it defined to _BIG_ENDIAN or not.
6420*d14625f7Sroot	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421*d14625f7Sroot/* end confdefs.h.  */
6422*d14625f7Sroot#include <limits.h>
6423*d14625f7Sroot
6424*d14625f7Srootint
6425*d14625f7Srootmain ()
6426*d14625f7Sroot{
6427*d14625f7Sroot#ifndef _BIG_ENDIAN
6428*d14625f7Sroot		 not big endian
6429*d14625f7Sroot		#endif
6430*d14625f7Sroot
6431*d14625f7Sroot  ;
6432*d14625f7Sroot  return 0;
6433*d14625f7Sroot}
6434*d14625f7Sroot_ACEOF
6435*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6436*d14625f7Sroot  ac_cv_c_bigendian=yes
6437*d14625f7Srootelse
6438*d14625f7Sroot  ac_cv_c_bigendian=no
6439*d14625f7Srootfi
6440*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441*d14625f7Srootfi
6442*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443*d14625f7Sroot    fi
6444*d14625f7Sroot    if test $ac_cv_c_bigendian = unknown; then
6445*d14625f7Sroot      # Compile a test program.
6446*d14625f7Sroot      if test "$cross_compiling" = yes; then :
6447*d14625f7Sroot  # Try to guess by grepping values from an object file.
6448*d14625f7Sroot	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449*d14625f7Sroot/* end confdefs.h.  */
6450*d14625f7Srootshort int ascii_mm[] =
6451*d14625f7Sroot		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6452*d14625f7Sroot		short int ascii_ii[] =
6453*d14625f7Sroot		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6454*d14625f7Sroot		int use_ascii (int i) {
6455*d14625f7Sroot		  return ascii_mm[i] + ascii_ii[i];
6456*d14625f7Sroot		}
6457*d14625f7Sroot		short int ebcdic_ii[] =
6458*d14625f7Sroot		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6459*d14625f7Sroot		short int ebcdic_mm[] =
6460*d14625f7Sroot		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6461*d14625f7Sroot		int use_ebcdic (int i) {
6462*d14625f7Sroot		  return ebcdic_mm[i] + ebcdic_ii[i];
6463*d14625f7Sroot		}
6464*d14625f7Sroot		extern int foo;
6465*d14625f7Sroot
6466*d14625f7Srootint
6467*d14625f7Srootmain ()
6468*d14625f7Sroot{
6469*d14625f7Srootreturn use_ascii (foo) == use_ebcdic (foo);
6470*d14625f7Sroot  ;
6471*d14625f7Sroot  return 0;
6472*d14625f7Sroot}
6473*d14625f7Sroot_ACEOF
6474*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
6475*d14625f7Sroot  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6476*d14625f7Sroot	      ac_cv_c_bigendian=yes
6477*d14625f7Sroot	    fi
6478*d14625f7Sroot	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6479*d14625f7Sroot	      if test "$ac_cv_c_bigendian" = unknown; then
6480*d14625f7Sroot		ac_cv_c_bigendian=no
6481*d14625f7Sroot	      else
6482*d14625f7Sroot		# finding both strings is unlikely to happen, but who knows?
6483*d14625f7Sroot		ac_cv_c_bigendian=unknown
6484*d14625f7Sroot	      fi
6485*d14625f7Sroot	    fi
6486*d14625f7Srootfi
6487*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488*d14625f7Srootelse
6489*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490*d14625f7Sroot/* end confdefs.h.  */
6491*d14625f7Sroot$ac_includes_default
6492*d14625f7Srootint
6493*d14625f7Srootmain ()
6494*d14625f7Sroot{
6495*d14625f7Sroot
6496*d14625f7Sroot	     /* Are we little or big endian?  From Harbison&Steele.  */
6497*d14625f7Sroot	     union
6498*d14625f7Sroot	     {
6499*d14625f7Sroot	       long int l;
6500*d14625f7Sroot	       char c[sizeof (long int)];
6501*d14625f7Sroot	     } u;
6502*d14625f7Sroot	     u.l = 1;
6503*d14625f7Sroot	     return u.c[sizeof (long int) - 1] == 1;
6504*d14625f7Sroot
6505*d14625f7Sroot  ;
6506*d14625f7Sroot  return 0;
6507*d14625f7Sroot}
6508*d14625f7Sroot_ACEOF
6509*d14625f7Srootif ac_fn_c_try_run "$LINENO"; then :
6510*d14625f7Sroot  ac_cv_c_bigendian=no
6511*d14625f7Srootelse
6512*d14625f7Sroot  ac_cv_c_bigendian=yes
6513*d14625f7Srootfi
6514*d14625f7Srootrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515*d14625f7Sroot  conftest.$ac_objext conftest.beam conftest.$ac_ext
6516*d14625f7Srootfi
6517*d14625f7Sroot
6518*d14625f7Sroot    fi
6519*d14625f7Srootfi
6520*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6521*d14625f7Sroot$as_echo "$ac_cv_c_bigendian" >&6; }
6522*d14625f7Sroot case $ac_cv_c_bigendian in #(
6523*d14625f7Sroot   yes)
6524*d14625f7Sroot     ac_cv_big_endian=1;; #(
6525*d14625f7Sroot   no)
6526*d14625f7Sroot     ac_cv_big_endian=0 ;; #(
6527*d14625f7Sroot   universal)
6528*d14625f7Sroot
6529*d14625f7Sroot$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6530*d14625f7Sroot
6531*d14625f7Sroot     ;; #(
6532*d14625f7Sroot   *)
6533*d14625f7Sroot     as_fn_error $? "unknown endianness
6534*d14625f7Sroot presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6535*d14625f7Sroot esac
6536*d14625f7Sroot
6537*d14625f7Srootif test "x${ac_cv_big_endian}" = "x1" ; then
6538*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
6539*d14625f7Sroot#define JEMALLOC_BIG_ENDIAN
6540*d14625f7Sroot_ACEOF
6541*d14625f7Sroot
6542*d14625f7Srootfi
6543*d14625f7Sroot
6544*d14625f7Srootif test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6545*d14625f7Sroot  T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6546*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6547*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6548*d14625f7Srootelse
6549*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6550*d14625f7Srootfi
6551*d14625f7Sroot
6552*d14625f7Sroot
6553*d14625f7Srootfi
6554*d14625f7Sroot
6555*d14625f7Srootif test "x${je_cv_msvc}" = "xyes" ; then
6556*d14625f7Sroot  LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6557*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6558*d14625f7Sroot$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6559*d14625f7Srootelse
6560*d14625f7Sroot  # The cast to long int works around a bug in the HP C Compiler
6561*d14625f7Sroot# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6562*d14625f7Sroot# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6563*d14625f7Sroot# This bug is HP SR number 8606223364.
6564*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6565*d14625f7Sroot$as_echo_n "checking size of void *... " >&6; }
6566*d14625f7Srootif ${ac_cv_sizeof_void_p+:} false; then :
6567*d14625f7Sroot  $as_echo_n "(cached) " >&6
6568*d14625f7Srootelse
6569*d14625f7Sroot  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6570*d14625f7Sroot
6571*d14625f7Srootelse
6572*d14625f7Sroot  if test "$ac_cv_type_void_p" = yes; then
6573*d14625f7Sroot     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575*d14625f7Srootas_fn_error 77 "cannot compute sizeof (void *)
6576*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
6577*d14625f7Sroot   else
6578*d14625f7Sroot     ac_cv_sizeof_void_p=0
6579*d14625f7Sroot   fi
6580*d14625f7Srootfi
6581*d14625f7Sroot
6582*d14625f7Srootfi
6583*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6584*d14625f7Sroot$as_echo "$ac_cv_sizeof_void_p" >&6; }
6585*d14625f7Sroot
6586*d14625f7Sroot
6587*d14625f7Sroot
6588*d14625f7Srootcat >>confdefs.h <<_ACEOF
6589*d14625f7Sroot#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6590*d14625f7Sroot_ACEOF
6591*d14625f7Sroot
6592*d14625f7Sroot
6593*d14625f7Sroot  if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6594*d14625f7Sroot    LG_SIZEOF_PTR=3
6595*d14625f7Sroot  elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6596*d14625f7Sroot    LG_SIZEOF_PTR=2
6597*d14625f7Sroot  else
6598*d14625f7Sroot    as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6599*d14625f7Sroot  fi
6600*d14625f7Srootfi
6601*d14625f7Srootcat >>confdefs.h <<_ACEOF
6602*d14625f7Sroot#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6603*d14625f7Sroot_ACEOF
6604*d14625f7Sroot
6605*d14625f7Sroot
6606*d14625f7Sroot# The cast to long int works around a bug in the HP C Compiler
6607*d14625f7Sroot# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6608*d14625f7Sroot# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6609*d14625f7Sroot# This bug is HP SR number 8606223364.
6610*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6611*d14625f7Sroot$as_echo_n "checking size of int... " >&6; }
6612*d14625f7Srootif ${ac_cv_sizeof_int+:} false; then :
6613*d14625f7Sroot  $as_echo_n "(cached) " >&6
6614*d14625f7Srootelse
6615*d14625f7Sroot  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6616*d14625f7Sroot
6617*d14625f7Srootelse
6618*d14625f7Sroot  if test "$ac_cv_type_int" = yes; then
6619*d14625f7Sroot     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6620*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6621*d14625f7Srootas_fn_error 77 "cannot compute sizeof (int)
6622*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
6623*d14625f7Sroot   else
6624*d14625f7Sroot     ac_cv_sizeof_int=0
6625*d14625f7Sroot   fi
6626*d14625f7Srootfi
6627*d14625f7Sroot
6628*d14625f7Srootfi
6629*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6630*d14625f7Sroot$as_echo "$ac_cv_sizeof_int" >&6; }
6631*d14625f7Sroot
6632*d14625f7Sroot
6633*d14625f7Sroot
6634*d14625f7Srootcat >>confdefs.h <<_ACEOF
6635*d14625f7Sroot#define SIZEOF_INT $ac_cv_sizeof_int
6636*d14625f7Sroot_ACEOF
6637*d14625f7Sroot
6638*d14625f7Sroot
6639*d14625f7Srootif test "x${ac_cv_sizeof_int}" = "x8" ; then
6640*d14625f7Sroot  LG_SIZEOF_INT=3
6641*d14625f7Srootelif test "x${ac_cv_sizeof_int}" = "x4" ; then
6642*d14625f7Sroot  LG_SIZEOF_INT=2
6643*d14625f7Srootelse
6644*d14625f7Sroot  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6645*d14625f7Srootfi
6646*d14625f7Srootcat >>confdefs.h <<_ACEOF
6647*d14625f7Sroot#define LG_SIZEOF_INT $LG_SIZEOF_INT
6648*d14625f7Sroot_ACEOF
6649*d14625f7Sroot
6650*d14625f7Sroot
6651*d14625f7Sroot# The cast to long int works around a bug in the HP C Compiler
6652*d14625f7Sroot# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6653*d14625f7Sroot# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6654*d14625f7Sroot# This bug is HP SR number 8606223364.
6655*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6656*d14625f7Sroot$as_echo_n "checking size of long... " >&6; }
6657*d14625f7Srootif ${ac_cv_sizeof_long+:} false; then :
6658*d14625f7Sroot  $as_echo_n "(cached) " >&6
6659*d14625f7Srootelse
6660*d14625f7Sroot  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6661*d14625f7Sroot
6662*d14625f7Srootelse
6663*d14625f7Sroot  if test "$ac_cv_type_long" = yes; then
6664*d14625f7Sroot     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666*d14625f7Srootas_fn_error 77 "cannot compute sizeof (long)
6667*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
6668*d14625f7Sroot   else
6669*d14625f7Sroot     ac_cv_sizeof_long=0
6670*d14625f7Sroot   fi
6671*d14625f7Srootfi
6672*d14625f7Sroot
6673*d14625f7Srootfi
6674*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6675*d14625f7Sroot$as_echo "$ac_cv_sizeof_long" >&6; }
6676*d14625f7Sroot
6677*d14625f7Sroot
6678*d14625f7Sroot
6679*d14625f7Srootcat >>confdefs.h <<_ACEOF
6680*d14625f7Sroot#define SIZEOF_LONG $ac_cv_sizeof_long
6681*d14625f7Sroot_ACEOF
6682*d14625f7Sroot
6683*d14625f7Sroot
6684*d14625f7Srootif test "x${ac_cv_sizeof_long}" = "x8" ; then
6685*d14625f7Sroot  LG_SIZEOF_LONG=3
6686*d14625f7Srootelif test "x${ac_cv_sizeof_long}" = "x4" ; then
6687*d14625f7Sroot  LG_SIZEOF_LONG=2
6688*d14625f7Srootelse
6689*d14625f7Sroot  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6690*d14625f7Srootfi
6691*d14625f7Srootcat >>confdefs.h <<_ACEOF
6692*d14625f7Sroot#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6693*d14625f7Sroot_ACEOF
6694*d14625f7Sroot
6695*d14625f7Sroot
6696*d14625f7Sroot# The cast to long int works around a bug in the HP C Compiler
6697*d14625f7Sroot# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6698*d14625f7Sroot# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6699*d14625f7Sroot# This bug is HP SR number 8606223364.
6700*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6701*d14625f7Sroot$as_echo_n "checking size of long long... " >&6; }
6702*d14625f7Srootif ${ac_cv_sizeof_long_long+:} false; then :
6703*d14625f7Sroot  $as_echo_n "(cached) " >&6
6704*d14625f7Srootelse
6705*d14625f7Sroot  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6706*d14625f7Sroot
6707*d14625f7Srootelse
6708*d14625f7Sroot  if test "$ac_cv_type_long_long" = yes; then
6709*d14625f7Sroot     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6710*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6711*d14625f7Srootas_fn_error 77 "cannot compute sizeof (long long)
6712*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
6713*d14625f7Sroot   else
6714*d14625f7Sroot     ac_cv_sizeof_long_long=0
6715*d14625f7Sroot   fi
6716*d14625f7Srootfi
6717*d14625f7Sroot
6718*d14625f7Srootfi
6719*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6720*d14625f7Sroot$as_echo "$ac_cv_sizeof_long_long" >&6; }
6721*d14625f7Sroot
6722*d14625f7Sroot
6723*d14625f7Sroot
6724*d14625f7Srootcat >>confdefs.h <<_ACEOF
6725*d14625f7Sroot#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6726*d14625f7Sroot_ACEOF
6727*d14625f7Sroot
6728*d14625f7Sroot
6729*d14625f7Srootif test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6730*d14625f7Sroot  LG_SIZEOF_LONG_LONG=3
6731*d14625f7Srootelif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6732*d14625f7Sroot  LG_SIZEOF_LONG_LONG=2
6733*d14625f7Srootelse
6734*d14625f7Sroot  as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6735*d14625f7Srootfi
6736*d14625f7Srootcat >>confdefs.h <<_ACEOF
6737*d14625f7Sroot#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6738*d14625f7Sroot_ACEOF
6739*d14625f7Sroot
6740*d14625f7Sroot
6741*d14625f7Sroot# The cast to long int works around a bug in the HP C Compiler
6742*d14625f7Sroot# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6743*d14625f7Sroot# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6744*d14625f7Sroot# This bug is HP SR number 8606223364.
6745*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6746*d14625f7Sroot$as_echo_n "checking size of intmax_t... " >&6; }
6747*d14625f7Srootif ${ac_cv_sizeof_intmax_t+:} false; then :
6748*d14625f7Sroot  $as_echo_n "(cached) " >&6
6749*d14625f7Srootelse
6750*d14625f7Sroot  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
6751*d14625f7Sroot
6752*d14625f7Srootelse
6753*d14625f7Sroot  if test "$ac_cv_type_intmax_t" = yes; then
6754*d14625f7Sroot     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6755*d14625f7Sroot$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6756*d14625f7Srootas_fn_error 77 "cannot compute sizeof (intmax_t)
6757*d14625f7SrootSee \`config.log' for more details" "$LINENO" 5; }
6758*d14625f7Sroot   else
6759*d14625f7Sroot     ac_cv_sizeof_intmax_t=0
6760*d14625f7Sroot   fi
6761*d14625f7Srootfi
6762*d14625f7Sroot
6763*d14625f7Srootfi
6764*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6765*d14625f7Sroot$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6766*d14625f7Sroot
6767*d14625f7Sroot
6768*d14625f7Sroot
6769*d14625f7Srootcat >>confdefs.h <<_ACEOF
6770*d14625f7Sroot#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6771*d14625f7Sroot_ACEOF
6772*d14625f7Sroot
6773*d14625f7Sroot
6774*d14625f7Srootif test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6775*d14625f7Sroot  LG_SIZEOF_INTMAX_T=4
6776*d14625f7Srootelif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6777*d14625f7Sroot  LG_SIZEOF_INTMAX_T=3
6778*d14625f7Srootelif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6779*d14625f7Sroot  LG_SIZEOF_INTMAX_T=2
6780*d14625f7Srootelse
6781*d14625f7Sroot  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6782*d14625f7Srootfi
6783*d14625f7Srootcat >>confdefs.h <<_ACEOF
6784*d14625f7Sroot#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6785*d14625f7Sroot_ACEOF
6786*d14625f7Sroot
6787*d14625f7Sroot
6788*d14625f7Sroot# Make sure we can run config.sub.
6789*d14625f7Sroot$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6790*d14625f7Sroot  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6791*d14625f7Sroot
6792*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6793*d14625f7Sroot$as_echo_n "checking build system type... " >&6; }
6794*d14625f7Srootif ${ac_cv_build+:} false; then :
6795*d14625f7Sroot  $as_echo_n "(cached) " >&6
6796*d14625f7Srootelse
6797*d14625f7Sroot  ac_build_alias=$build_alias
6798*d14625f7Sroottest "x$ac_build_alias" = x &&
6799*d14625f7Sroot  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6800*d14625f7Sroottest "x$ac_build_alias" = x &&
6801*d14625f7Sroot  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6802*d14625f7Srootac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6803*d14625f7Sroot  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6804*d14625f7Sroot
6805*d14625f7Srootfi
6806*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6807*d14625f7Sroot$as_echo "$ac_cv_build" >&6; }
6808*d14625f7Srootcase $ac_cv_build in
6809*d14625f7Sroot*-*-*) ;;
6810*d14625f7Sroot*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6811*d14625f7Srootesac
6812*d14625f7Srootbuild=$ac_cv_build
6813*d14625f7Srootac_save_IFS=$IFS; IFS='-'
6814*d14625f7Srootset x $ac_cv_build
6815*d14625f7Srootshift
6816*d14625f7Srootbuild_cpu=$1
6817*d14625f7Srootbuild_vendor=$2
6818*d14625f7Srootshift; shift
6819*d14625f7Sroot# Remember, the first character of IFS is used to create $*,
6820*d14625f7Sroot# except with old shells:
6821*d14625f7Srootbuild_os=$*
6822*d14625f7SrootIFS=$ac_save_IFS
6823*d14625f7Srootcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6824*d14625f7Sroot
6825*d14625f7Sroot
6826*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6827*d14625f7Sroot$as_echo_n "checking host system type... " >&6; }
6828*d14625f7Srootif ${ac_cv_host+:} false; then :
6829*d14625f7Sroot  $as_echo_n "(cached) " >&6
6830*d14625f7Srootelse
6831*d14625f7Sroot  if test "x$host_alias" = x; then
6832*d14625f7Sroot  ac_cv_host=$ac_cv_build
6833*d14625f7Srootelse
6834*d14625f7Sroot  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6835*d14625f7Sroot    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6836*d14625f7Srootfi
6837*d14625f7Sroot
6838*d14625f7Srootfi
6839*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6840*d14625f7Sroot$as_echo "$ac_cv_host" >&6; }
6841*d14625f7Srootcase $ac_cv_host in
6842*d14625f7Sroot*-*-*) ;;
6843*d14625f7Sroot*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6844*d14625f7Srootesac
6845*d14625f7Sroothost=$ac_cv_host
6846*d14625f7Srootac_save_IFS=$IFS; IFS='-'
6847*d14625f7Srootset x $ac_cv_host
6848*d14625f7Srootshift
6849*d14625f7Sroothost_cpu=$1
6850*d14625f7Sroothost_vendor=$2
6851*d14625f7Srootshift; shift
6852*d14625f7Sroot# Remember, the first character of IFS is used to create $*,
6853*d14625f7Sroot# except with old shells:
6854*d14625f7Sroothost_os=$*
6855*d14625f7SrootIFS=$ac_save_IFS
6856*d14625f7Srootcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6857*d14625f7Sroot
6858*d14625f7Sroot
6859*d14625f7SrootCPU_SPINWAIT=""
6860*d14625f7Srootcase "${host_cpu}" in
6861*d14625f7Sroot  i686|x86_64)
6862*d14625f7Sroot	HAVE_CPU_SPINWAIT=1
6863*d14625f7Sroot	if test "x${je_cv_msvc}" = "xyes" ; then
6864*d14625f7Sroot	    if ${je_cv_pause_msvc+:} false; then :
6865*d14625f7Sroot  $as_echo_n "(cached) " >&6
6866*d14625f7Srootelse
6867*d14625f7Sroot
6868*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
6869*d14625f7Sroot$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
6870*d14625f7Srootif ${je_cv_pause_msvc+:} false; then :
6871*d14625f7Sroot  $as_echo_n "(cached) " >&6
6872*d14625f7Srootelse
6873*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874*d14625f7Sroot/* end confdefs.h.  */
6875*d14625f7Sroot
6876*d14625f7Srootint
6877*d14625f7Srootmain ()
6878*d14625f7Sroot{
6879*d14625f7Sroot_mm_pause(); return 0;
6880*d14625f7Sroot  ;
6881*d14625f7Sroot  return 0;
6882*d14625f7Sroot}
6883*d14625f7Sroot_ACEOF
6884*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
6885*d14625f7Sroot  je_cv_pause_msvc=yes
6886*d14625f7Srootelse
6887*d14625f7Sroot  je_cv_pause_msvc=no
6888*d14625f7Srootfi
6889*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
6890*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
6891*d14625f7Srootfi
6892*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
6893*d14625f7Sroot$as_echo "$je_cv_pause_msvc" >&6; }
6894*d14625f7Sroot
6895*d14625f7Srootfi
6896*d14625f7Sroot
6897*d14625f7Sroot	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
6898*d14625f7Sroot		CPU_SPINWAIT='_mm_pause()'
6899*d14625f7Sroot	    fi
6900*d14625f7Sroot	else
6901*d14625f7Sroot	    if ${je_cv_pause+:} false; then :
6902*d14625f7Sroot  $as_echo_n "(cached) " >&6
6903*d14625f7Srootelse
6904*d14625f7Sroot
6905*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
6906*d14625f7Sroot$as_echo_n "checking whether pause instruction is compilable... " >&6; }
6907*d14625f7Srootif ${je_cv_pause+:} false; then :
6908*d14625f7Sroot  $as_echo_n "(cached) " >&6
6909*d14625f7Srootelse
6910*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911*d14625f7Sroot/* end confdefs.h.  */
6912*d14625f7Sroot
6913*d14625f7Srootint
6914*d14625f7Srootmain ()
6915*d14625f7Sroot{
6916*d14625f7Sroot__asm__ volatile("pause"); return 0;
6917*d14625f7Sroot  ;
6918*d14625f7Sroot  return 0;
6919*d14625f7Sroot}
6920*d14625f7Sroot_ACEOF
6921*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
6922*d14625f7Sroot  je_cv_pause=yes
6923*d14625f7Srootelse
6924*d14625f7Sroot  je_cv_pause=no
6925*d14625f7Srootfi
6926*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
6927*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
6928*d14625f7Srootfi
6929*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
6930*d14625f7Sroot$as_echo "$je_cv_pause" >&6; }
6931*d14625f7Sroot
6932*d14625f7Srootfi
6933*d14625f7Sroot
6934*d14625f7Sroot	    if test "x${je_cv_pause}" = "xyes" ; then
6935*d14625f7Sroot		CPU_SPINWAIT='__asm__ volatile("pause")'
6936*d14625f7Sroot	    fi
6937*d14625f7Sroot	fi
6938*d14625f7Sroot	;;
6939*d14625f7Sroot  *)
6940*d14625f7Sroot	HAVE_CPU_SPINWAIT=0
6941*d14625f7Sroot	;;
6942*d14625f7Srootesac
6943*d14625f7Srootcat >>confdefs.h <<_ACEOF
6944*d14625f7Sroot#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
6945*d14625f7Sroot_ACEOF
6946*d14625f7Sroot
6947*d14625f7Srootcat >>confdefs.h <<_ACEOF
6948*d14625f7Sroot#define CPU_SPINWAIT $CPU_SPINWAIT
6949*d14625f7Sroot_ACEOF
6950*d14625f7Sroot
6951*d14625f7Sroot
6952*d14625f7Sroot
6953*d14625f7Sroot# Check whether --with-lg_vaddr was given.
6954*d14625f7Srootif test "${with_lg_vaddr+set}" = set; then :
6955*d14625f7Sroot  withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
6956*d14625f7Srootelse
6957*d14625f7Sroot  LG_VADDR="detect"
6958*d14625f7Srootfi
6959*d14625f7Sroot
6960*d14625f7Sroot
6961*d14625f7Srootcase "${host_cpu}" in
6962*d14625f7Sroot  aarch64)
6963*d14625f7Sroot    if test "x$LG_VADDR" = "xdetect"; then
6964*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6965*d14625f7Sroot$as_echo_n "checking number of significant virtual address bits... " >&6; }
6966*d14625f7Sroot      if test "x${LG_SIZEOF_PTR}" = "x2" ; then
6967*d14625f7Sroot        #aarch64 ILP32
6968*d14625f7Sroot        LG_VADDR=32
6969*d14625f7Sroot      else
6970*d14625f7Sroot        #aarch64 LP64
6971*d14625f7Sroot        LG_VADDR=48
6972*d14625f7Sroot      fi
6973*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
6974*d14625f7Sroot$as_echo "$LG_VADDR" >&6; }
6975*d14625f7Sroot    fi
6976*d14625f7Sroot    ;;
6977*d14625f7Sroot  x86_64)
6978*d14625f7Sroot    if test "x$LG_VADDR" = "xdetect"; then
6979*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6980*d14625f7Sroot$as_echo_n "checking number of significant virtual address bits... " >&6; }
6981*d14625f7Srootif ${je_cv_lg_vaddr+:} false; then :
6982*d14625f7Sroot  $as_echo_n "(cached) " >&6
6983*d14625f7Srootelse
6984*d14625f7Sroot  if test "$cross_compiling" = yes; then :
6985*d14625f7Sroot  je_cv_lg_vaddr=57
6986*d14625f7Srootelse
6987*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988*d14625f7Sroot/* end confdefs.h.  */
6989*d14625f7Sroot
6990*d14625f7Sroot#include <stdio.h>
6991*d14625f7Sroot#ifdef _WIN32
6992*d14625f7Sroot#include <limits.h>
6993*d14625f7Sroot#include <intrin.h>
6994*d14625f7Sroottypedef unsigned __int32 uint32_t;
6995*d14625f7Sroot#else
6996*d14625f7Sroot#include <stdint.h>
6997*d14625f7Sroot#endif
6998*d14625f7Sroot
6999*d14625f7Srootint
7000*d14625f7Srootmain ()
7001*d14625f7Sroot{
7002*d14625f7Sroot
7003*d14625f7Sroot	uint32_t r[4];
7004*d14625f7Sroot	uint32_t eax_in = 0x80000008U;
7005*d14625f7Sroot#ifdef _WIN32
7006*d14625f7Sroot	__cpuid((int *)r, (int)eax_in);
7007*d14625f7Sroot#else
7008*d14625f7Sroot	asm volatile ("cpuid"
7009*d14625f7Sroot	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7010*d14625f7Sroot	    : "a" (eax_in), "c" (0)
7011*d14625f7Sroot	);
7012*d14625f7Sroot#endif
7013*d14625f7Sroot	uint32_t eax_out = r[0];
7014*d14625f7Sroot	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7015*d14625f7Sroot	FILE *f = fopen("conftest.out", "w");
7016*d14625f7Sroot	if (f == NULL) {
7017*d14625f7Sroot		return 1;
7018*d14625f7Sroot	}
7019*d14625f7Sroot	if (vaddr > (sizeof(void *) << 3)) {
7020*d14625f7Sroot		vaddr = sizeof(void *) << 3;
7021*d14625f7Sroot	}
7022*d14625f7Sroot	fprintf(f, "%u", vaddr);
7023*d14625f7Sroot	fclose(f);
7024*d14625f7Sroot	return 0;
7025*d14625f7Sroot
7026*d14625f7Sroot  ;
7027*d14625f7Sroot  return 0;
7028*d14625f7Sroot}
7029*d14625f7Sroot_ACEOF
7030*d14625f7Srootif ac_fn_c_try_run "$LINENO"; then :
7031*d14625f7Sroot  je_cv_lg_vaddr=`cat conftest.out`
7032*d14625f7Srootelse
7033*d14625f7Sroot  je_cv_lg_vaddr=error
7034*d14625f7Srootfi
7035*d14625f7Srootrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7036*d14625f7Sroot  conftest.$ac_objext conftest.beam conftest.$ac_ext
7037*d14625f7Srootfi
7038*d14625f7Sroot
7039*d14625f7Srootfi
7040*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7041*d14625f7Sroot$as_echo "$je_cv_lg_vaddr" >&6; }
7042*d14625f7Sroot      if test "x${je_cv_lg_vaddr}" != "x" ; then
7043*d14625f7Sroot        LG_VADDR="${je_cv_lg_vaddr}"
7044*d14625f7Sroot      fi
7045*d14625f7Sroot      if test "x${LG_VADDR}" != "xerror" ; then
7046*d14625f7Sroot        cat >>confdefs.h <<_ACEOF
7047*d14625f7Sroot#define LG_VADDR $LG_VADDR
7048*d14625f7Sroot_ACEOF
7049*d14625f7Sroot
7050*d14625f7Sroot      else
7051*d14625f7Sroot        as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7052*d14625f7Sroot      fi
7053*d14625f7Sroot    fi
7054*d14625f7Sroot    ;;
7055*d14625f7Sroot  *)
7056*d14625f7Sroot    if test "x$LG_VADDR" = "xdetect"; then
7057*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7058*d14625f7Sroot$as_echo_n "checking number of significant virtual address bits... " >&6; }
7059*d14625f7Sroot      if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7060*d14625f7Sroot        LG_VADDR=64
7061*d14625f7Sroot      elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7062*d14625f7Sroot        LG_VADDR=32
7063*d14625f7Sroot      elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7064*d14625f7Sroot        LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7065*d14625f7Sroot      else
7066*d14625f7Sroot        as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7067*d14625f7Sroot      fi
7068*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7069*d14625f7Sroot$as_echo "$LG_VADDR" >&6; }
7070*d14625f7Sroot    fi
7071*d14625f7Sroot    ;;
7072*d14625f7Srootesac
7073*d14625f7Srootcat >>confdefs.h <<_ACEOF
7074*d14625f7Sroot#define LG_VADDR $LG_VADDR
7075*d14625f7Sroot_ACEOF
7076*d14625f7Sroot
7077*d14625f7Sroot
7078*d14625f7SrootLD_PRELOAD_VAR="LD_PRELOAD"
7079*d14625f7Srootso="so"
7080*d14625f7Srootimportlib="${so}"
7081*d14625f7Srooto="$ac_objext"
7082*d14625f7Sroota="a"
7083*d14625f7Srootexe="$ac_exeext"
7084*d14625f7Srootlibprefix="lib"
7085*d14625f7Srootlink_whole_archive="0"
7086*d14625f7SrootDSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7087*d14625f7SrootRPATH='-Wl,-rpath,$(1)'
7088*d14625f7SrootSOREV="${so}.${rev}"
7089*d14625f7SrootPIC_CFLAGS='-fPIC -DPIC'
7090*d14625f7SrootCTARGET='-o $@'
7091*d14625f7SrootLDTARGET='-o $@'
7092*d14625f7SrootTEST_LD_MODE=
7093*d14625f7SrootEXTRA_LDFLAGS=
7094*d14625f7SrootARFLAGS='crus'
7095*d14625f7SrootAROUT=' $@'
7096*d14625f7SrootCC_MM=1
7097*d14625f7Sroot
7098*d14625f7Srootif test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7099*d14625f7Sroot  TEST_LD_MODE='-dynamic'
7100*d14625f7Srootfi
7101*d14625f7Sroot
7102*d14625f7Srootif test "x${je_cv_cray}" = "xyes" ; then
7103*d14625f7Sroot  CC_MM=
7104*d14625f7Srootfi
7105*d14625f7Sroot
7106*d14625f7Sroot
7107*d14625f7Sroot
7108*d14625f7Sroot
7109*d14625f7Srootif test -n "$ac_tool_prefix"; then
7110*d14625f7Sroot  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111*d14625f7Srootset dummy ${ac_tool_prefix}ar; ac_word=$2
7112*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
7114*d14625f7Srootif ${ac_cv_prog_AR+:} false; then :
7115*d14625f7Sroot  $as_echo_n "(cached) " >&6
7116*d14625f7Srootelse
7117*d14625f7Sroot  if test -n "$AR"; then
7118*d14625f7Sroot  ac_cv_prog_AR="$AR" # Let the user override the test.
7119*d14625f7Srootelse
7120*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121*d14625f7Srootfor as_dir in $PATH
7122*d14625f7Srootdo
7123*d14625f7Sroot  IFS=$as_save_IFS
7124*d14625f7Sroot  test -z "$as_dir" && as_dir=.
7125*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
7126*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127*d14625f7Sroot    ac_cv_prog_AR="${ac_tool_prefix}ar"
7128*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129*d14625f7Sroot    break 2
7130*d14625f7Sroot  fi
7131*d14625f7Srootdone
7132*d14625f7Sroot  done
7133*d14625f7SrootIFS=$as_save_IFS
7134*d14625f7Sroot
7135*d14625f7Srootfi
7136*d14625f7Srootfi
7137*d14625f7SrootAR=$ac_cv_prog_AR
7138*d14625f7Srootif test -n "$AR"; then
7139*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7140*d14625f7Sroot$as_echo "$AR" >&6; }
7141*d14625f7Srootelse
7142*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143*d14625f7Sroot$as_echo "no" >&6; }
7144*d14625f7Srootfi
7145*d14625f7Sroot
7146*d14625f7Sroot
7147*d14625f7Srootfi
7148*d14625f7Srootif test -z "$ac_cv_prog_AR"; then
7149*d14625f7Sroot  ac_ct_AR=$AR
7150*d14625f7Sroot  # Extract the first word of "ar", so it can be a program name with args.
7151*d14625f7Srootset dummy ar; ac_word=$2
7152*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
7154*d14625f7Srootif ${ac_cv_prog_ac_ct_AR+:} false; then :
7155*d14625f7Sroot  $as_echo_n "(cached) " >&6
7156*d14625f7Srootelse
7157*d14625f7Sroot  if test -n "$ac_ct_AR"; then
7158*d14625f7Sroot  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7159*d14625f7Srootelse
7160*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161*d14625f7Srootfor as_dir in $PATH
7162*d14625f7Srootdo
7163*d14625f7Sroot  IFS=$as_save_IFS
7164*d14625f7Sroot  test -z "$as_dir" && as_dir=.
7165*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
7166*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167*d14625f7Sroot    ac_cv_prog_ac_ct_AR="ar"
7168*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169*d14625f7Sroot    break 2
7170*d14625f7Sroot  fi
7171*d14625f7Srootdone
7172*d14625f7Sroot  done
7173*d14625f7SrootIFS=$as_save_IFS
7174*d14625f7Sroot
7175*d14625f7Srootfi
7176*d14625f7Srootfi
7177*d14625f7Srootac_ct_AR=$ac_cv_prog_ac_ct_AR
7178*d14625f7Srootif test -n "$ac_ct_AR"; then
7179*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7180*d14625f7Sroot$as_echo "$ac_ct_AR" >&6; }
7181*d14625f7Srootelse
7182*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183*d14625f7Sroot$as_echo "no" >&6; }
7184*d14625f7Srootfi
7185*d14625f7Sroot
7186*d14625f7Sroot  if test "x$ac_ct_AR" = x; then
7187*d14625f7Sroot    AR=":"
7188*d14625f7Sroot  else
7189*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
7190*d14625f7Srootyes:)
7191*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193*d14625f7Srootac_tool_warned=yes ;;
7194*d14625f7Srootesac
7195*d14625f7Sroot    AR=$ac_ct_AR
7196*d14625f7Sroot  fi
7197*d14625f7Srootelse
7198*d14625f7Sroot  AR="$ac_cv_prog_AR"
7199*d14625f7Srootfi
7200*d14625f7Sroot
7201*d14625f7Sroot
7202*d14625f7Sroot
7203*d14625f7Sroot
7204*d14625f7Sroot
7205*d14625f7Srootif test -n "$ac_tool_prefix"; then
7206*d14625f7Sroot  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7207*d14625f7Srootset dummy ${ac_tool_prefix}nm; ac_word=$2
7208*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
7210*d14625f7Srootif ${ac_cv_prog_NM+:} false; then :
7211*d14625f7Sroot  $as_echo_n "(cached) " >&6
7212*d14625f7Srootelse
7213*d14625f7Sroot  if test -n "$NM"; then
7214*d14625f7Sroot  ac_cv_prog_NM="$NM" # Let the user override the test.
7215*d14625f7Srootelse
7216*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217*d14625f7Srootfor as_dir in $PATH
7218*d14625f7Srootdo
7219*d14625f7Sroot  IFS=$as_save_IFS
7220*d14625f7Sroot  test -z "$as_dir" && as_dir=.
7221*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
7222*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223*d14625f7Sroot    ac_cv_prog_NM="${ac_tool_prefix}nm"
7224*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225*d14625f7Sroot    break 2
7226*d14625f7Sroot  fi
7227*d14625f7Srootdone
7228*d14625f7Sroot  done
7229*d14625f7SrootIFS=$as_save_IFS
7230*d14625f7Sroot
7231*d14625f7Srootfi
7232*d14625f7Srootfi
7233*d14625f7SrootNM=$ac_cv_prog_NM
7234*d14625f7Srootif test -n "$NM"; then
7235*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7236*d14625f7Sroot$as_echo "$NM" >&6; }
7237*d14625f7Srootelse
7238*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239*d14625f7Sroot$as_echo "no" >&6; }
7240*d14625f7Srootfi
7241*d14625f7Sroot
7242*d14625f7Sroot
7243*d14625f7Srootfi
7244*d14625f7Srootif test -z "$ac_cv_prog_NM"; then
7245*d14625f7Sroot  ac_ct_NM=$NM
7246*d14625f7Sroot  # Extract the first word of "nm", so it can be a program name with args.
7247*d14625f7Srootset dummy nm; ac_word=$2
7248*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
7250*d14625f7Srootif ${ac_cv_prog_ac_ct_NM+:} false; then :
7251*d14625f7Sroot  $as_echo_n "(cached) " >&6
7252*d14625f7Srootelse
7253*d14625f7Sroot  if test -n "$ac_ct_NM"; then
7254*d14625f7Sroot  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7255*d14625f7Srootelse
7256*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257*d14625f7Srootfor as_dir in $PATH
7258*d14625f7Srootdo
7259*d14625f7Sroot  IFS=$as_save_IFS
7260*d14625f7Sroot  test -z "$as_dir" && as_dir=.
7261*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
7262*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263*d14625f7Sroot    ac_cv_prog_ac_ct_NM="nm"
7264*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265*d14625f7Sroot    break 2
7266*d14625f7Sroot  fi
7267*d14625f7Srootdone
7268*d14625f7Sroot  done
7269*d14625f7SrootIFS=$as_save_IFS
7270*d14625f7Sroot
7271*d14625f7Srootfi
7272*d14625f7Srootfi
7273*d14625f7Srootac_ct_NM=$ac_cv_prog_ac_ct_NM
7274*d14625f7Srootif test -n "$ac_ct_NM"; then
7275*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7276*d14625f7Sroot$as_echo "$ac_ct_NM" >&6; }
7277*d14625f7Srootelse
7278*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279*d14625f7Sroot$as_echo "no" >&6; }
7280*d14625f7Srootfi
7281*d14625f7Sroot
7282*d14625f7Sroot  if test "x$ac_ct_NM" = x; then
7283*d14625f7Sroot    NM=":"
7284*d14625f7Sroot  else
7285*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
7286*d14625f7Srootyes:)
7287*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289*d14625f7Srootac_tool_warned=yes ;;
7290*d14625f7Srootesac
7291*d14625f7Sroot    NM=$ac_ct_NM
7292*d14625f7Sroot  fi
7293*d14625f7Srootelse
7294*d14625f7Sroot  NM="$ac_cv_prog_NM"
7295*d14625f7Srootfi
7296*d14625f7Sroot
7297*d14625f7Sroot
7298*d14625f7Srootfor ac_prog in gawk mawk nawk awk
7299*d14625f7Srootdo
7300*d14625f7Sroot  # Extract the first word of "$ac_prog", so it can be a program name with args.
7301*d14625f7Srootset dummy $ac_prog; ac_word=$2
7302*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
7304*d14625f7Srootif ${ac_cv_prog_AWK+:} false; then :
7305*d14625f7Sroot  $as_echo_n "(cached) " >&6
7306*d14625f7Srootelse
7307*d14625f7Sroot  if test -n "$AWK"; then
7308*d14625f7Sroot  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7309*d14625f7Srootelse
7310*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311*d14625f7Srootfor as_dir in $PATH
7312*d14625f7Srootdo
7313*d14625f7Sroot  IFS=$as_save_IFS
7314*d14625f7Sroot  test -z "$as_dir" && as_dir=.
7315*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
7316*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317*d14625f7Sroot    ac_cv_prog_AWK="$ac_prog"
7318*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319*d14625f7Sroot    break 2
7320*d14625f7Sroot  fi
7321*d14625f7Srootdone
7322*d14625f7Sroot  done
7323*d14625f7SrootIFS=$as_save_IFS
7324*d14625f7Sroot
7325*d14625f7Srootfi
7326*d14625f7Srootfi
7327*d14625f7SrootAWK=$ac_cv_prog_AWK
7328*d14625f7Srootif test -n "$AWK"; then
7329*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7330*d14625f7Sroot$as_echo "$AWK" >&6; }
7331*d14625f7Srootelse
7332*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333*d14625f7Sroot$as_echo "no" >&6; }
7334*d14625f7Srootfi
7335*d14625f7Sroot
7336*d14625f7Sroot
7337*d14625f7Sroot  test -n "$AWK" && break
7338*d14625f7Srootdone
7339*d14625f7Sroot
7340*d14625f7Sroot
7341*d14625f7Srootdefault_retain="0"
7342*d14625f7Srootmaps_coalesce="1"
7343*d14625f7SrootDUMP_SYMS="${NM} -a"
7344*d14625f7SrootSYM_PREFIX=""
7345*d14625f7Srootcase "${host}" in
7346*d14625f7Sroot  *-*-darwin* | *-*-ios*)
7347*d14625f7Sroot	abi="macho"
7348*d14625f7Sroot	RPATH=""
7349*d14625f7Sroot	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7350*d14625f7Sroot	so="dylib"
7351*d14625f7Sroot	importlib="${so}"
7352*d14625f7Sroot	force_tls="0"
7353*d14625f7Sroot	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7354*d14625f7Sroot	SOREV="${rev}.${so}"
7355*d14625f7Sroot	sbrk_deprecated="1"
7356*d14625f7Sroot	SYM_PREFIX="_"
7357*d14625f7Sroot	;;
7358*d14625f7Sroot  *-*-freebsd*)
7359*d14625f7Sroot	abi="elf"
7360*d14625f7Sroot	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7361*d14625f7Sroot
7362*d14625f7Sroot	force_lazy_lock="1"
7363*d14625f7Sroot	;;
7364*d14625f7Sroot  *-*-dragonfly*)
7365*d14625f7Sroot	abi="elf"
7366*d14625f7Sroot	;;
7367*d14625f7Sroot  *-*-openbsd*)
7368*d14625f7Sroot	abi="elf"
7369*d14625f7Sroot	force_tls="0"
7370*d14625f7Sroot	;;
7371*d14625f7Sroot  *-*-bitrig*)
7372*d14625f7Sroot	abi="elf"
7373*d14625f7Sroot	;;
7374*d14625f7Sroot  *-*-linux-android)
7375*d14625f7Sroot		T_APPEND_V=-D_GNU_SOURCE
7376*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7377*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7378*d14625f7Srootelse
7379*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7380*d14625f7Srootfi
7381*d14625f7Sroot
7382*d14625f7Sroot
7383*d14625f7Sroot	abi="elf"
7384*d14625f7Sroot	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7385*d14625f7Sroot
7386*d14625f7Sroot	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7387*d14625f7Sroot
7388*d14625f7Sroot	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7389*d14625f7Sroot
7390*d14625f7Sroot	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7391*d14625f7Sroot
7392*d14625f7Sroot	$as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7393*d14625f7Sroot
7394*d14625f7Sroot	force_tls="0"
7395*d14625f7Sroot	if test "${LG_SIZEOF_PTR}" = "3"; then
7396*d14625f7Sroot	  default_retain="1"
7397*d14625f7Sroot	fi
7398*d14625f7Sroot	;;
7399*d14625f7Sroot  *-*-linux*)
7400*d14625f7Sroot		T_APPEND_V=-D_GNU_SOURCE
7401*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7402*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7403*d14625f7Srootelse
7404*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7405*d14625f7Srootfi
7406*d14625f7Sroot
7407*d14625f7Sroot
7408*d14625f7Sroot	abi="elf"
7409*d14625f7Sroot	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7410*d14625f7Sroot
7411*d14625f7Sroot	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7412*d14625f7Sroot
7413*d14625f7Sroot	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7414*d14625f7Sroot
7415*d14625f7Sroot	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7416*d14625f7Sroot
7417*d14625f7Sroot	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7418*d14625f7Sroot
7419*d14625f7Sroot	if test "${LG_SIZEOF_PTR}" = "3"; then
7420*d14625f7Sroot	  default_retain="1"
7421*d14625f7Sroot	fi
7422*d14625f7Sroot	;;
7423*d14625f7Sroot  *-*-kfreebsd*)
7424*d14625f7Sroot		T_APPEND_V=-D_GNU_SOURCE
7425*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7426*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7427*d14625f7Srootelse
7428*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7429*d14625f7Srootfi
7430*d14625f7Sroot
7431*d14625f7Sroot
7432*d14625f7Sroot	abi="elf"
7433*d14625f7Sroot	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7434*d14625f7Sroot
7435*d14625f7Sroot	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7436*d14625f7Sroot
7437*d14625f7Sroot	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7438*d14625f7Sroot
7439*d14625f7Sroot	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7440*d14625f7Sroot
7441*d14625f7Sroot	;;
7442*d14625f7Sroot  *-*-netbsd*)
7443*d14625f7Sroot	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7444*d14625f7Sroot$as_echo_n "checking ABI... " >&6; }
7445*d14625f7Sroot        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446*d14625f7Sroot/* end confdefs.h.  */
7447*d14625f7Sroot#ifdef __ELF__
7448*d14625f7Sroot/* ELF */
7449*d14625f7Sroot#else
7450*d14625f7Sroot#error aout
7451*d14625f7Sroot#endif
7452*d14625f7Sroot
7453*d14625f7Srootint
7454*d14625f7Srootmain ()
7455*d14625f7Sroot{
7456*d14625f7Sroot
7457*d14625f7Sroot  ;
7458*d14625f7Sroot  return 0;
7459*d14625f7Sroot}
7460*d14625f7Sroot_ACEOF
7461*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7462*d14625f7Sroot  abi="elf"
7463*d14625f7Srootelse
7464*d14625f7Sroot  abi="aout"
7465*d14625f7Srootfi
7466*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467*d14625f7Sroot	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7468*d14625f7Sroot$as_echo "$abi" >&6; }
7469*d14625f7Sroot	;;
7470*d14625f7Sroot  *-*-solaris2*)
7471*d14625f7Sroot	abi="elf"
7472*d14625f7Sroot	RPATH='-Wl,-R,$(1)'
7473*d14625f7Sroot		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7474*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7475*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7476*d14625f7Srootelse
7477*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7478*d14625f7Srootfi
7479*d14625f7Sroot
7480*d14625f7Sroot
7481*d14625f7Sroot	T_APPEND_V=-lposix4 -lsocket -lnsl
7482*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7483*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
7484*d14625f7Srootelse
7485*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
7486*d14625f7Srootfi
7487*d14625f7Sroot
7488*d14625f7Sroot
7489*d14625f7Sroot	;;
7490*d14625f7Sroot  *-ibm-aix*)
7491*d14625f7Sroot	if test "${LG_SIZEOF_PTR}" = "3"; then
7492*d14625f7Sroot	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
7493*d14625f7Sroot	else
7494*d14625f7Sroot	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
7495*d14625f7Sroot	fi
7496*d14625f7Sroot	abi="xcoff"
7497*d14625f7Sroot	;;
7498*d14625f7Sroot  *-*-mingw* | *-*-cygwin*)
7499*d14625f7Sroot	abi="pecoff"
7500*d14625f7Sroot	force_tls="0"
7501*d14625f7Sroot	maps_coalesce="0"
7502*d14625f7Sroot	RPATH=""
7503*d14625f7Sroot	so="dll"
7504*d14625f7Sroot	if test "x$je_cv_msvc" = "xyes" ; then
7505*d14625f7Sroot	  importlib="lib"
7506*d14625f7Sroot	  DSO_LDFLAGS="-LD"
7507*d14625f7Sroot	  EXTRA_LDFLAGS="-link -DEBUG"
7508*d14625f7Sroot	  CTARGET='-Fo$@'
7509*d14625f7Sroot	  LDTARGET='-Fe$@'
7510*d14625f7Sroot	  AR='lib'
7511*d14625f7Sroot	  ARFLAGS='-nologo -out:'
7512*d14625f7Sroot	  AROUT='$@'
7513*d14625f7Sroot	  CC_MM=
7514*d14625f7Sroot        else
7515*d14625f7Sroot	  importlib="${so}"
7516*d14625f7Sroot	  DSO_LDFLAGS="-shared"
7517*d14625f7Sroot	  link_whole_archive="1"
7518*d14625f7Sroot	fi
7519*d14625f7Sroot	case "${host}" in
7520*d14625f7Sroot	  *-*-cygwin*)
7521*d14625f7Sroot	    DUMP_SYMS="dumpbin /SYMBOLS"
7522*d14625f7Sroot	    ;;
7523*d14625f7Sroot	  *)
7524*d14625f7Sroot	    ;;
7525*d14625f7Sroot	esac
7526*d14625f7Sroot	a="lib"
7527*d14625f7Sroot	libprefix=""
7528*d14625f7Sroot	SOREV="${so}"
7529*d14625f7Sroot	PIC_CFLAGS=""
7530*d14625f7Sroot	;;
7531*d14625f7Sroot  *)
7532*d14625f7Sroot	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7533*d14625f7Sroot$as_echo "Unsupported operating system: ${host}" >&6; }
7534*d14625f7Sroot	abi="elf"
7535*d14625f7Sroot	;;
7536*d14625f7Srootesac
7537*d14625f7Sroot
7538*d14625f7SrootJEMALLOC_USABLE_SIZE_CONST=const
7539*d14625f7Srootfor ac_header in malloc.h
7540*d14625f7Srootdo :
7541*d14625f7Sroot  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7542*d14625f7Srootif test "x$ac_cv_header_malloc_h" = xyes; then :
7543*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
7544*d14625f7Sroot#define HAVE_MALLOC_H 1
7545*d14625f7Sroot_ACEOF
7546*d14625f7Sroot
7547*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7548*d14625f7Sroot$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7549*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550*d14625f7Sroot/* end confdefs.h.  */
7551*d14625f7Sroot#include <malloc.h>
7552*d14625f7Sroot     #include <stddef.h>
7553*d14625f7Sroot    size_t malloc_usable_size(const void *ptr);
7554*d14625f7Sroot
7555*d14625f7Srootint
7556*d14625f7Srootmain ()
7557*d14625f7Sroot{
7558*d14625f7Sroot
7559*d14625f7Sroot  ;
7560*d14625f7Sroot  return 0;
7561*d14625f7Sroot}
7562*d14625f7Sroot_ACEOF
7563*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7564*d14625f7Sroot
7565*d14625f7Sroot                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566*d14625f7Sroot$as_echo "yes" >&6; }
7567*d14625f7Sroot
7568*d14625f7Srootelse
7569*d14625f7Sroot
7570*d14625f7Sroot                JEMALLOC_USABLE_SIZE_CONST=
7571*d14625f7Sroot                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572*d14625f7Sroot$as_echo "no" >&6; }
7573*d14625f7Sroot
7574*d14625f7Srootfi
7575*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576*d14625f7Sroot
7577*d14625f7Srootfi
7578*d14625f7Sroot
7579*d14625f7Srootdone
7580*d14625f7Sroot
7581*d14625f7Srootcat >>confdefs.h <<_ACEOF
7582*d14625f7Sroot#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7583*d14625f7Sroot_ACEOF
7584*d14625f7Sroot
7585*d14625f7Sroot
7586*d14625f7Sroot
7587*d14625f7Sroot
7588*d14625f7Sroot
7589*d14625f7Sroot
7590*d14625f7Sroot
7591*d14625f7Sroot
7592*d14625f7Sroot
7593*d14625f7Sroot
7594*d14625f7Sroot
7595*d14625f7Sroot
7596*d14625f7Sroot
7597*d14625f7Sroot
7598*d14625f7Sroot
7599*d14625f7Sroot
7600*d14625f7Sroot
7601*d14625f7Sroot
7602*d14625f7Sroot
7603*d14625f7Sroot
7604*d14625f7Sroot
7605*d14625f7Sroot
7606*d14625f7Sroot
7607*d14625f7Sroot
7608*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7609*d14625f7Sroot$as_echo_n "checking for library containing log... " >&6; }
7610*d14625f7Srootif ${ac_cv_search_log+:} false; then :
7611*d14625f7Sroot  $as_echo_n "(cached) " >&6
7612*d14625f7Srootelse
7613*d14625f7Sroot  ac_func_search_save_LIBS=$LIBS
7614*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615*d14625f7Sroot/* end confdefs.h.  */
7616*d14625f7Sroot
7617*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
7618*d14625f7Sroot   Use char because int might match the return type of a GCC
7619*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
7620*d14625f7Sroot#ifdef __cplusplus
7621*d14625f7Srootextern "C"
7622*d14625f7Sroot#endif
7623*d14625f7Srootchar log ();
7624*d14625f7Srootint
7625*d14625f7Srootmain ()
7626*d14625f7Sroot{
7627*d14625f7Srootreturn log ();
7628*d14625f7Sroot  ;
7629*d14625f7Sroot  return 0;
7630*d14625f7Sroot}
7631*d14625f7Sroot_ACEOF
7632*d14625f7Srootfor ac_lib in '' m; do
7633*d14625f7Sroot  if test -z "$ac_lib"; then
7634*d14625f7Sroot    ac_res="none required"
7635*d14625f7Sroot  else
7636*d14625f7Sroot    ac_res=-l$ac_lib
7637*d14625f7Sroot    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7638*d14625f7Sroot  fi
7639*d14625f7Sroot  if ac_fn_c_try_link "$LINENO"; then :
7640*d14625f7Sroot  ac_cv_search_log=$ac_res
7641*d14625f7Srootfi
7642*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
7643*d14625f7Sroot    conftest$ac_exeext
7644*d14625f7Sroot  if ${ac_cv_search_log+:} false; then :
7645*d14625f7Sroot  break
7646*d14625f7Srootfi
7647*d14625f7Srootdone
7648*d14625f7Srootif ${ac_cv_search_log+:} false; then :
7649*d14625f7Sroot
7650*d14625f7Srootelse
7651*d14625f7Sroot  ac_cv_search_log=no
7652*d14625f7Srootfi
7653*d14625f7Srootrm conftest.$ac_ext
7654*d14625f7SrootLIBS=$ac_func_search_save_LIBS
7655*d14625f7Srootfi
7656*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7657*d14625f7Sroot$as_echo "$ac_cv_search_log" >&6; }
7658*d14625f7Srootac_res=$ac_cv_search_log
7659*d14625f7Srootif test "$ac_res" != no; then :
7660*d14625f7Sroot  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7661*d14625f7Sroot
7662*d14625f7Srootelse
7663*d14625f7Sroot  as_fn_error $? "Missing math functions" "$LINENO" 5
7664*d14625f7Srootfi
7665*d14625f7Sroot
7666*d14625f7Srootif test "x$ac_cv_search_log" != "xnone required" ; then
7667*d14625f7Sroot  LM="$ac_cv_search_log"
7668*d14625f7Srootelse
7669*d14625f7Sroot  LM=
7670*d14625f7Srootfi
7671*d14625f7Sroot
7672*d14625f7Sroot
7673*d14625f7Sroot
7674*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7675*d14625f7Sroot$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7676*d14625f7Srootif ${je_cv_attribute+:} false; then :
7677*d14625f7Sroot  $as_echo_n "(cached) " >&6
7678*d14625f7Srootelse
7679*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680*d14625f7Sroot/* end confdefs.h.  */
7681*d14625f7Srootstatic __attribute__((unused)) void foo(void){}
7682*d14625f7Srootint
7683*d14625f7Srootmain ()
7684*d14625f7Sroot{
7685*d14625f7Sroot
7686*d14625f7Sroot  ;
7687*d14625f7Sroot  return 0;
7688*d14625f7Sroot}
7689*d14625f7Sroot_ACEOF
7690*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
7691*d14625f7Sroot  je_cv_attribute=yes
7692*d14625f7Srootelse
7693*d14625f7Sroot  je_cv_attribute=no
7694*d14625f7Srootfi
7695*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
7696*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
7697*d14625f7Srootfi
7698*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7699*d14625f7Sroot$as_echo "$je_cv_attribute" >&6; }
7700*d14625f7Sroot
7701*d14625f7Srootif test "x${je_cv_attribute}" = "xyes" ; then
7702*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
7703*d14625f7Sroot
7704*d14625f7Sroot  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7705*d14625f7Sroot
7706*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7707*d14625f7Sroot$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7708*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7709*d14625f7SrootT_APPEND_V=-fvisibility=hidden
7710*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7711*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7712*d14625f7Srootelse
7713*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7714*d14625f7Srootfi
7715*d14625f7Sroot
7716*d14625f7Sroot
7717*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7718*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7719*d14625f7Srootelse
7720*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7721*d14625f7Srootfi
7722*d14625f7Sroot
7723*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724*d14625f7Sroot/* end confdefs.h.  */
7725*d14625f7Sroot
7726*d14625f7Sroot
7727*d14625f7Srootint
7728*d14625f7Srootmain ()
7729*d14625f7Sroot{
7730*d14625f7Sroot
7731*d14625f7Sroot    return 0;
7732*d14625f7Sroot
7733*d14625f7Sroot  ;
7734*d14625f7Sroot  return 0;
7735*d14625f7Sroot}
7736*d14625f7Sroot_ACEOF
7737*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7738*d14625f7Sroot  je_cv_cflags_added=-fvisibility=hidden
7739*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7740*d14625f7Sroot$as_echo "yes" >&6; }
7741*d14625f7Srootelse
7742*d14625f7Sroot  je_cv_cflags_added=
7743*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744*d14625f7Sroot$as_echo "no" >&6; }
7745*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7746*d14625f7Sroot
7747*d14625f7Srootfi
7748*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7750*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7751*d14625f7Srootelse
7752*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7753*d14625f7Srootfi
7754*d14625f7Sroot
7755*d14625f7Sroot
7756*d14625f7Sroot
7757*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7758*d14625f7Sroot$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7759*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7760*d14625f7SrootT_APPEND_V=-fvisibility=hidden
7761*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7762*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7763*d14625f7Srootelse
7764*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7765*d14625f7Srootfi
7766*d14625f7Sroot
7767*d14625f7Sroot
7768*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7769*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7770*d14625f7Srootelse
7771*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7772*d14625f7Srootfi
7773*d14625f7Sroot
7774*d14625f7Srootac_ext=cpp
7775*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
7776*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7779*d14625f7Sroot
7780*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781*d14625f7Sroot/* end confdefs.h.  */
7782*d14625f7Sroot
7783*d14625f7Sroot
7784*d14625f7Srootint
7785*d14625f7Srootmain ()
7786*d14625f7Sroot{
7787*d14625f7Sroot
7788*d14625f7Sroot    return 0;
7789*d14625f7Sroot
7790*d14625f7Sroot  ;
7791*d14625f7Sroot  return 0;
7792*d14625f7Sroot}
7793*d14625f7Sroot_ACEOF
7794*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
7795*d14625f7Sroot  je_cv_cxxflags_added=-fvisibility=hidden
7796*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797*d14625f7Sroot$as_echo "yes" >&6; }
7798*d14625f7Srootelse
7799*d14625f7Sroot  je_cv_cxxflags_added=
7800*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801*d14625f7Sroot$as_echo "no" >&6; }
7802*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
7803*d14625f7Sroot
7804*d14625f7Srootfi
7805*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806*d14625f7Srootac_ext=c
7807*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
7808*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
7811*d14625f7Sroot
7812*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7813*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7814*d14625f7Srootelse
7815*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7816*d14625f7Srootfi
7817*d14625f7Sroot
7818*d14625f7Sroot
7819*d14625f7Sroot  fi
7820*d14625f7Srootfi
7821*d14625f7SrootSAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7822*d14625f7Sroot
7823*d14625f7Sroot
7824*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7825*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
7826*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7827*d14625f7SrootT_APPEND_V=-Werror
7828*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7829*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7830*d14625f7Srootelse
7831*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7832*d14625f7Srootfi
7833*d14625f7Sroot
7834*d14625f7Sroot
7835*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7836*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7837*d14625f7Srootelse
7838*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7839*d14625f7Srootfi
7840*d14625f7Sroot
7841*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842*d14625f7Sroot/* end confdefs.h.  */
7843*d14625f7Sroot
7844*d14625f7Sroot
7845*d14625f7Srootint
7846*d14625f7Srootmain ()
7847*d14625f7Sroot{
7848*d14625f7Sroot
7849*d14625f7Sroot    return 0;
7850*d14625f7Sroot
7851*d14625f7Sroot  ;
7852*d14625f7Sroot  return 0;
7853*d14625f7Sroot}
7854*d14625f7Sroot_ACEOF
7855*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7856*d14625f7Sroot  je_cv_cflags_added=-Werror
7857*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858*d14625f7Sroot$as_echo "yes" >&6; }
7859*d14625f7Srootelse
7860*d14625f7Sroot  je_cv_cflags_added=
7861*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862*d14625f7Sroot$as_echo "no" >&6; }
7863*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7864*d14625f7Sroot
7865*d14625f7Srootfi
7866*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7868*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7869*d14625f7Srootelse
7870*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7871*d14625f7Srootfi
7872*d14625f7Sroot
7873*d14625f7Sroot
7874*d14625f7Sroot
7875*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
7876*d14625f7Sroot$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
7877*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7878*d14625f7SrootT_APPEND_V=-herror_on_warning
7879*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7880*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7881*d14625f7Srootelse
7882*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7883*d14625f7Srootfi
7884*d14625f7Sroot
7885*d14625f7Sroot
7886*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7887*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7888*d14625f7Srootelse
7889*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7890*d14625f7Srootfi
7891*d14625f7Sroot
7892*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893*d14625f7Sroot/* end confdefs.h.  */
7894*d14625f7Sroot
7895*d14625f7Sroot
7896*d14625f7Srootint
7897*d14625f7Srootmain ()
7898*d14625f7Sroot{
7899*d14625f7Sroot
7900*d14625f7Sroot    return 0;
7901*d14625f7Sroot
7902*d14625f7Sroot  ;
7903*d14625f7Sroot  return 0;
7904*d14625f7Sroot}
7905*d14625f7Sroot_ACEOF
7906*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7907*d14625f7Sroot  je_cv_cflags_added=-herror_on_warning
7908*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909*d14625f7Sroot$as_echo "yes" >&6; }
7910*d14625f7Srootelse
7911*d14625f7Sroot  je_cv_cflags_added=
7912*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913*d14625f7Sroot$as_echo "no" >&6; }
7914*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7915*d14625f7Sroot
7916*d14625f7Srootfi
7917*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7919*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7920*d14625f7Srootelse
7921*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7922*d14625f7Srootfi
7923*d14625f7Sroot
7924*d14625f7Sroot
7925*d14625f7Sroot
7926*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
7927*d14625f7Sroot$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
7928*d14625f7Srootif ${je_cv_tls_model+:} false; then :
7929*d14625f7Sroot  $as_echo_n "(cached) " >&6
7930*d14625f7Srootelse
7931*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932*d14625f7Sroot/* end confdefs.h.  */
7933*d14625f7Sroot
7934*d14625f7Srootint
7935*d14625f7Srootmain ()
7936*d14625f7Sroot{
7937*d14625f7Srootstatic __thread int
7938*d14625f7Sroot               __attribute__((tls_model("initial-exec"), unused)) foo;
7939*d14625f7Sroot               foo = 0;
7940*d14625f7Sroot  ;
7941*d14625f7Sroot  return 0;
7942*d14625f7Sroot}
7943*d14625f7Sroot_ACEOF
7944*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
7945*d14625f7Sroot  je_cv_tls_model=yes
7946*d14625f7Srootelse
7947*d14625f7Sroot  je_cv_tls_model=no
7948*d14625f7Srootfi
7949*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
7950*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
7951*d14625f7Srootfi
7952*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
7953*d14625f7Sroot$as_echo "$je_cv_tls_model" >&6; }
7954*d14625f7Sroot
7955*d14625f7SrootCONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
7956*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7957*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7958*d14625f7Srootelse
7959*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7960*d14625f7Srootfi
7961*d14625f7Sroot
7962*d14625f7Sroot
7963*d14625f7Sroot
7964*d14625f7SrootSAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7965*d14625f7Sroot
7966*d14625f7Sroot
7967*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7968*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
7969*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7970*d14625f7SrootT_APPEND_V=-Werror
7971*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7972*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7973*d14625f7Srootelse
7974*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7975*d14625f7Srootfi
7976*d14625f7Sroot
7977*d14625f7Sroot
7978*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7979*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7980*d14625f7Srootelse
7981*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7982*d14625f7Srootfi
7983*d14625f7Sroot
7984*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985*d14625f7Sroot/* end confdefs.h.  */
7986*d14625f7Sroot
7987*d14625f7Sroot
7988*d14625f7Srootint
7989*d14625f7Srootmain ()
7990*d14625f7Sroot{
7991*d14625f7Sroot
7992*d14625f7Sroot    return 0;
7993*d14625f7Sroot
7994*d14625f7Sroot  ;
7995*d14625f7Sroot  return 0;
7996*d14625f7Sroot}
7997*d14625f7Sroot_ACEOF
7998*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
7999*d14625f7Sroot  je_cv_cflags_added=-Werror
8000*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001*d14625f7Sroot$as_echo "yes" >&6; }
8002*d14625f7Srootelse
8003*d14625f7Sroot  je_cv_cflags_added=
8004*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005*d14625f7Sroot$as_echo "no" >&6; }
8006*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8007*d14625f7Sroot
8008*d14625f7Srootfi
8009*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8011*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8012*d14625f7Srootelse
8013*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8014*d14625f7Srootfi
8015*d14625f7Sroot
8016*d14625f7Sroot
8017*d14625f7Sroot
8018*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8019*d14625f7Sroot$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8020*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8021*d14625f7SrootT_APPEND_V=-herror_on_warning
8022*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8023*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8024*d14625f7Srootelse
8025*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8026*d14625f7Srootfi
8027*d14625f7Sroot
8028*d14625f7Sroot
8029*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8030*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8031*d14625f7Srootelse
8032*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8033*d14625f7Srootfi
8034*d14625f7Sroot
8035*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036*d14625f7Sroot/* end confdefs.h.  */
8037*d14625f7Sroot
8038*d14625f7Sroot
8039*d14625f7Srootint
8040*d14625f7Srootmain ()
8041*d14625f7Sroot{
8042*d14625f7Sroot
8043*d14625f7Sroot    return 0;
8044*d14625f7Sroot
8045*d14625f7Sroot  ;
8046*d14625f7Sroot  return 0;
8047*d14625f7Sroot}
8048*d14625f7Sroot_ACEOF
8049*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8050*d14625f7Sroot  je_cv_cflags_added=-herror_on_warning
8051*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052*d14625f7Sroot$as_echo "yes" >&6; }
8053*d14625f7Srootelse
8054*d14625f7Sroot  je_cv_cflags_added=
8055*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056*d14625f7Sroot$as_echo "no" >&6; }
8057*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8058*d14625f7Sroot
8059*d14625f7Srootfi
8060*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8062*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8063*d14625f7Srootelse
8064*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8065*d14625f7Srootfi
8066*d14625f7Sroot
8067*d14625f7Sroot
8068*d14625f7Sroot
8069*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8070*d14625f7Sroot$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8071*d14625f7Srootif ${je_cv_alloc_size+:} false; then :
8072*d14625f7Sroot  $as_echo_n "(cached) " >&6
8073*d14625f7Srootelse
8074*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075*d14625f7Sroot/* end confdefs.h.  */
8076*d14625f7Sroot#include <stdlib.h>
8077*d14625f7Srootint
8078*d14625f7Srootmain ()
8079*d14625f7Sroot{
8080*d14625f7Srootvoid *foo(size_t size) __attribute__((alloc_size(1)));
8081*d14625f7Sroot  ;
8082*d14625f7Sroot  return 0;
8083*d14625f7Sroot}
8084*d14625f7Sroot_ACEOF
8085*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
8086*d14625f7Sroot  je_cv_alloc_size=yes
8087*d14625f7Srootelse
8088*d14625f7Sroot  je_cv_alloc_size=no
8089*d14625f7Srootfi
8090*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
8091*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
8092*d14625f7Srootfi
8093*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8094*d14625f7Sroot$as_echo "$je_cv_alloc_size" >&6; }
8095*d14625f7Sroot
8096*d14625f7SrootCONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8097*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8098*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8099*d14625f7Srootelse
8100*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8101*d14625f7Srootfi
8102*d14625f7Sroot
8103*d14625f7Sroot
8104*d14625f7Srootif test "x${je_cv_alloc_size}" = "xyes" ; then
8105*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
8106*d14625f7Sroot
8107*d14625f7Srootfi
8108*d14625f7SrootSAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8109*d14625f7Sroot
8110*d14625f7Sroot
8111*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8112*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8113*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8114*d14625f7SrootT_APPEND_V=-Werror
8115*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8116*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8117*d14625f7Srootelse
8118*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8119*d14625f7Srootfi
8120*d14625f7Sroot
8121*d14625f7Sroot
8122*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8123*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8124*d14625f7Srootelse
8125*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8126*d14625f7Srootfi
8127*d14625f7Sroot
8128*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129*d14625f7Sroot/* end confdefs.h.  */
8130*d14625f7Sroot
8131*d14625f7Sroot
8132*d14625f7Srootint
8133*d14625f7Srootmain ()
8134*d14625f7Sroot{
8135*d14625f7Sroot
8136*d14625f7Sroot    return 0;
8137*d14625f7Sroot
8138*d14625f7Sroot  ;
8139*d14625f7Sroot  return 0;
8140*d14625f7Sroot}
8141*d14625f7Sroot_ACEOF
8142*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8143*d14625f7Sroot  je_cv_cflags_added=-Werror
8144*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145*d14625f7Sroot$as_echo "yes" >&6; }
8146*d14625f7Srootelse
8147*d14625f7Sroot  je_cv_cflags_added=
8148*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149*d14625f7Sroot$as_echo "no" >&6; }
8150*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8151*d14625f7Sroot
8152*d14625f7Srootfi
8153*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8155*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8156*d14625f7Srootelse
8157*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8158*d14625f7Srootfi
8159*d14625f7Sroot
8160*d14625f7Sroot
8161*d14625f7Sroot
8162*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8163*d14625f7Sroot$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8164*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8165*d14625f7SrootT_APPEND_V=-herror_on_warning
8166*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8167*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8168*d14625f7Srootelse
8169*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8170*d14625f7Srootfi
8171*d14625f7Sroot
8172*d14625f7Sroot
8173*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8174*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8175*d14625f7Srootelse
8176*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8177*d14625f7Srootfi
8178*d14625f7Sroot
8179*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180*d14625f7Sroot/* end confdefs.h.  */
8181*d14625f7Sroot
8182*d14625f7Sroot
8183*d14625f7Srootint
8184*d14625f7Srootmain ()
8185*d14625f7Sroot{
8186*d14625f7Sroot
8187*d14625f7Sroot    return 0;
8188*d14625f7Sroot
8189*d14625f7Sroot  ;
8190*d14625f7Sroot  return 0;
8191*d14625f7Sroot}
8192*d14625f7Sroot_ACEOF
8193*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8194*d14625f7Sroot  je_cv_cflags_added=-herror_on_warning
8195*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8196*d14625f7Sroot$as_echo "yes" >&6; }
8197*d14625f7Srootelse
8198*d14625f7Sroot  je_cv_cflags_added=
8199*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200*d14625f7Sroot$as_echo "no" >&6; }
8201*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8202*d14625f7Sroot
8203*d14625f7Srootfi
8204*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8206*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8207*d14625f7Srootelse
8208*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8209*d14625f7Srootfi
8210*d14625f7Sroot
8211*d14625f7Sroot
8212*d14625f7Sroot
8213*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8214*d14625f7Sroot$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8215*d14625f7Srootif ${je_cv_format_gnu_printf+:} false; then :
8216*d14625f7Sroot  $as_echo_n "(cached) " >&6
8217*d14625f7Srootelse
8218*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219*d14625f7Sroot/* end confdefs.h.  */
8220*d14625f7Sroot#include <stdlib.h>
8221*d14625f7Srootint
8222*d14625f7Srootmain ()
8223*d14625f7Sroot{
8224*d14625f7Srootvoid *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8225*d14625f7Sroot  ;
8226*d14625f7Sroot  return 0;
8227*d14625f7Sroot}
8228*d14625f7Sroot_ACEOF
8229*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
8230*d14625f7Sroot  je_cv_format_gnu_printf=yes
8231*d14625f7Srootelse
8232*d14625f7Sroot  je_cv_format_gnu_printf=no
8233*d14625f7Srootfi
8234*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
8235*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
8236*d14625f7Srootfi
8237*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8238*d14625f7Sroot$as_echo "$je_cv_format_gnu_printf" >&6; }
8239*d14625f7Sroot
8240*d14625f7SrootCONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8241*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8242*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8243*d14625f7Srootelse
8244*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8245*d14625f7Srootfi
8246*d14625f7Sroot
8247*d14625f7Sroot
8248*d14625f7Srootif test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8249*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
8250*d14625f7Sroot
8251*d14625f7Srootfi
8252*d14625f7SrootSAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8253*d14625f7Sroot
8254*d14625f7Sroot
8255*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8256*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8257*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8258*d14625f7SrootT_APPEND_V=-Werror
8259*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8260*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8261*d14625f7Srootelse
8262*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8263*d14625f7Srootfi
8264*d14625f7Sroot
8265*d14625f7Sroot
8266*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8267*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8268*d14625f7Srootelse
8269*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8270*d14625f7Srootfi
8271*d14625f7Sroot
8272*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273*d14625f7Sroot/* end confdefs.h.  */
8274*d14625f7Sroot
8275*d14625f7Sroot
8276*d14625f7Srootint
8277*d14625f7Srootmain ()
8278*d14625f7Sroot{
8279*d14625f7Sroot
8280*d14625f7Sroot    return 0;
8281*d14625f7Sroot
8282*d14625f7Sroot  ;
8283*d14625f7Sroot  return 0;
8284*d14625f7Sroot}
8285*d14625f7Sroot_ACEOF
8286*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8287*d14625f7Sroot  je_cv_cflags_added=-Werror
8288*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289*d14625f7Sroot$as_echo "yes" >&6; }
8290*d14625f7Srootelse
8291*d14625f7Sroot  je_cv_cflags_added=
8292*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293*d14625f7Sroot$as_echo "no" >&6; }
8294*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8295*d14625f7Sroot
8296*d14625f7Srootfi
8297*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8299*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8300*d14625f7Srootelse
8301*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8302*d14625f7Srootfi
8303*d14625f7Sroot
8304*d14625f7Sroot
8305*d14625f7Sroot
8306*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8307*d14625f7Sroot$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8308*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8309*d14625f7SrootT_APPEND_V=-herror_on_warning
8310*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8311*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8312*d14625f7Srootelse
8313*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8314*d14625f7Srootfi
8315*d14625f7Sroot
8316*d14625f7Sroot
8317*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8318*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8319*d14625f7Srootelse
8320*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8321*d14625f7Srootfi
8322*d14625f7Sroot
8323*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324*d14625f7Sroot/* end confdefs.h.  */
8325*d14625f7Sroot
8326*d14625f7Sroot
8327*d14625f7Srootint
8328*d14625f7Srootmain ()
8329*d14625f7Sroot{
8330*d14625f7Sroot
8331*d14625f7Sroot    return 0;
8332*d14625f7Sroot
8333*d14625f7Sroot  ;
8334*d14625f7Sroot  return 0;
8335*d14625f7Sroot}
8336*d14625f7Sroot_ACEOF
8337*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8338*d14625f7Sroot  je_cv_cflags_added=-herror_on_warning
8339*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340*d14625f7Sroot$as_echo "yes" >&6; }
8341*d14625f7Srootelse
8342*d14625f7Sroot  je_cv_cflags_added=
8343*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344*d14625f7Sroot$as_echo "no" >&6; }
8345*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8346*d14625f7Sroot
8347*d14625f7Srootfi
8348*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8350*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8351*d14625f7Srootelse
8352*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8353*d14625f7Srootfi
8354*d14625f7Sroot
8355*d14625f7Sroot
8356*d14625f7Sroot
8357*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8358*d14625f7Sroot$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8359*d14625f7Srootif ${je_cv_format_printf+:} false; then :
8360*d14625f7Sroot  $as_echo_n "(cached) " >&6
8361*d14625f7Srootelse
8362*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363*d14625f7Sroot/* end confdefs.h.  */
8364*d14625f7Sroot#include <stdlib.h>
8365*d14625f7Srootint
8366*d14625f7Srootmain ()
8367*d14625f7Sroot{
8368*d14625f7Srootvoid *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8369*d14625f7Sroot  ;
8370*d14625f7Sroot  return 0;
8371*d14625f7Sroot}
8372*d14625f7Sroot_ACEOF
8373*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
8374*d14625f7Sroot  je_cv_format_printf=yes
8375*d14625f7Srootelse
8376*d14625f7Sroot  je_cv_format_printf=no
8377*d14625f7Srootfi
8378*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
8379*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
8380*d14625f7Srootfi
8381*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8382*d14625f7Sroot$as_echo "$je_cv_format_printf" >&6; }
8383*d14625f7Sroot
8384*d14625f7SrootCONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8385*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8386*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8387*d14625f7Srootelse
8388*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8389*d14625f7Srootfi
8390*d14625f7Sroot
8391*d14625f7Sroot
8392*d14625f7Srootif test "x${je_cv_format_printf}" = "xyes" ; then
8393*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
8394*d14625f7Sroot
8395*d14625f7Srootfi
8396*d14625f7Sroot
8397*d14625f7Sroot
8398*d14625f7Sroot# Check whether --with-rpath was given.
8399*d14625f7Srootif test "${with_rpath+set}" = set; then :
8400*d14625f7Sroot  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8401*d14625f7Sroot  RPATH_EXTRA=
8402*d14625f7Srootelse
8403*d14625f7Sroot  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8404*d14625f7Srootfi
8405*d14625f7Srootelse
8406*d14625f7Sroot  RPATH_EXTRA=
8407*d14625f7Sroot
8408*d14625f7Srootfi
8409*d14625f7Sroot
8410*d14625f7Sroot
8411*d14625f7Sroot
8412*d14625f7Sroot# Check whether --enable-autogen was given.
8413*d14625f7Srootif test "${enable_autogen+set}" = set; then :
8414*d14625f7Sroot  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8415*d14625f7Sroot  enable_autogen="0"
8416*d14625f7Srootelse
8417*d14625f7Sroot  enable_autogen="1"
8418*d14625f7Srootfi
8419*d14625f7Sroot
8420*d14625f7Srootelse
8421*d14625f7Sroot  enable_autogen="0"
8422*d14625f7Sroot
8423*d14625f7Srootfi
8424*d14625f7Sroot
8425*d14625f7Sroot
8426*d14625f7Sroot
8427*d14625f7Sroot# Find a good install program.  We prefer a C program (faster),
8428*d14625f7Sroot# so one script is as good as another.  But avoid the broken or
8429*d14625f7Sroot# incompatible versions:
8430*d14625f7Sroot# SysV /etc/install, /usr/sbin/install
8431*d14625f7Sroot# SunOS /usr/etc/install
8432*d14625f7Sroot# IRIX /sbin/install
8433*d14625f7Sroot# AIX /bin/install
8434*d14625f7Sroot# AmigaOS /C/install, which installs bootblocks on floppy discs
8435*d14625f7Sroot# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8436*d14625f7Sroot# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8437*d14625f7Sroot# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8438*d14625f7Sroot# OS/2's system install, which has a completely different semantic
8439*d14625f7Sroot# ./install, which can be erroneously created by make from ./install.sh.
8440*d14625f7Sroot# Reject install programs that cannot install multiple files.
8441*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8442*d14625f7Sroot$as_echo_n "checking for a BSD-compatible install... " >&6; }
8443*d14625f7Srootif test -z "$INSTALL"; then
8444*d14625f7Srootif ${ac_cv_path_install+:} false; then :
8445*d14625f7Sroot  $as_echo_n "(cached) " >&6
8446*d14625f7Srootelse
8447*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448*d14625f7Srootfor as_dir in $PATH
8449*d14625f7Srootdo
8450*d14625f7Sroot  IFS=$as_save_IFS
8451*d14625f7Sroot  test -z "$as_dir" && as_dir=.
8452*d14625f7Sroot    # Account for people who put trailing slashes in PATH elements.
8453*d14625f7Srootcase $as_dir/ in #((
8454*d14625f7Sroot  ./ | .// | /[cC]/* | \
8455*d14625f7Sroot  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8456*d14625f7Sroot  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8457*d14625f7Sroot  /usr/ucb/* ) ;;
8458*d14625f7Sroot  *)
8459*d14625f7Sroot    # OSF1 and SCO ODT 3.0 have their own names for install.
8460*d14625f7Sroot    # Don't use installbsd from OSF since it installs stuff as root
8461*d14625f7Sroot    # by default.
8462*d14625f7Sroot    for ac_prog in ginstall scoinst install; do
8463*d14625f7Sroot      for ac_exec_ext in '' $ac_executable_extensions; do
8464*d14625f7Sroot	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8465*d14625f7Sroot	  if test $ac_prog = install &&
8466*d14625f7Sroot	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467*d14625f7Sroot	    # AIX install.  It has an incompatible calling convention.
8468*d14625f7Sroot	    :
8469*d14625f7Sroot	  elif test $ac_prog = install &&
8470*d14625f7Sroot	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8471*d14625f7Sroot	    # program-specific install script used by HP pwplus--don't use.
8472*d14625f7Sroot	    :
8473*d14625f7Sroot	  else
8474*d14625f7Sroot	    rm -rf conftest.one conftest.two conftest.dir
8475*d14625f7Sroot	    echo one > conftest.one
8476*d14625f7Sroot	    echo two > conftest.two
8477*d14625f7Sroot	    mkdir conftest.dir
8478*d14625f7Sroot	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8479*d14625f7Sroot	      test -s conftest.one && test -s conftest.two &&
8480*d14625f7Sroot	      test -s conftest.dir/conftest.one &&
8481*d14625f7Sroot	      test -s conftest.dir/conftest.two
8482*d14625f7Sroot	    then
8483*d14625f7Sroot	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8484*d14625f7Sroot	      break 3
8485*d14625f7Sroot	    fi
8486*d14625f7Sroot	  fi
8487*d14625f7Sroot	fi
8488*d14625f7Sroot      done
8489*d14625f7Sroot    done
8490*d14625f7Sroot    ;;
8491*d14625f7Srootesac
8492*d14625f7Sroot
8493*d14625f7Sroot  done
8494*d14625f7SrootIFS=$as_save_IFS
8495*d14625f7Sroot
8496*d14625f7Srootrm -rf conftest.one conftest.two conftest.dir
8497*d14625f7Sroot
8498*d14625f7Srootfi
8499*d14625f7Sroot  if test "${ac_cv_path_install+set}" = set; then
8500*d14625f7Sroot    INSTALL=$ac_cv_path_install
8501*d14625f7Sroot  else
8502*d14625f7Sroot    # As a last resort, use the slow shell script.  Don't cache a
8503*d14625f7Sroot    # value for INSTALL within a source directory, because that will
8504*d14625f7Sroot    # break other packages using the cache if that directory is
8505*d14625f7Sroot    # removed, or if the value is a relative name.
8506*d14625f7Sroot    INSTALL=$ac_install_sh
8507*d14625f7Sroot  fi
8508*d14625f7Srootfi
8509*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8510*d14625f7Sroot$as_echo "$INSTALL" >&6; }
8511*d14625f7Sroot
8512*d14625f7Sroot# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8513*d14625f7Sroot# It thinks the first close brace ends the variable substitution.
8514*d14625f7Sroottest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8515*d14625f7Sroot
8516*d14625f7Sroottest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8517*d14625f7Sroot
8518*d14625f7Sroottest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8519*d14625f7Sroot
8520*d14625f7Srootif test -n "$ac_tool_prefix"; then
8521*d14625f7Sroot  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8522*d14625f7Srootset dummy ${ac_tool_prefix}ranlib; ac_word=$2
8523*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
8525*d14625f7Srootif ${ac_cv_prog_RANLIB+:} false; then :
8526*d14625f7Sroot  $as_echo_n "(cached) " >&6
8527*d14625f7Srootelse
8528*d14625f7Sroot  if test -n "$RANLIB"; then
8529*d14625f7Sroot  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8530*d14625f7Srootelse
8531*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532*d14625f7Srootfor as_dir in $PATH
8533*d14625f7Srootdo
8534*d14625f7Sroot  IFS=$as_save_IFS
8535*d14625f7Sroot  test -z "$as_dir" && as_dir=.
8536*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
8537*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538*d14625f7Sroot    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8539*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540*d14625f7Sroot    break 2
8541*d14625f7Sroot  fi
8542*d14625f7Srootdone
8543*d14625f7Sroot  done
8544*d14625f7SrootIFS=$as_save_IFS
8545*d14625f7Sroot
8546*d14625f7Srootfi
8547*d14625f7Srootfi
8548*d14625f7SrootRANLIB=$ac_cv_prog_RANLIB
8549*d14625f7Srootif test -n "$RANLIB"; then
8550*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8551*d14625f7Sroot$as_echo "$RANLIB" >&6; }
8552*d14625f7Srootelse
8553*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554*d14625f7Sroot$as_echo "no" >&6; }
8555*d14625f7Srootfi
8556*d14625f7Sroot
8557*d14625f7Sroot
8558*d14625f7Srootfi
8559*d14625f7Srootif test -z "$ac_cv_prog_RANLIB"; then
8560*d14625f7Sroot  ac_ct_RANLIB=$RANLIB
8561*d14625f7Sroot  # Extract the first word of "ranlib", so it can be a program name with args.
8562*d14625f7Srootset dummy ranlib; ac_word=$2
8563*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
8565*d14625f7Srootif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8566*d14625f7Sroot  $as_echo_n "(cached) " >&6
8567*d14625f7Srootelse
8568*d14625f7Sroot  if test -n "$ac_ct_RANLIB"; then
8569*d14625f7Sroot  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8570*d14625f7Srootelse
8571*d14625f7Srootas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572*d14625f7Srootfor as_dir in $PATH
8573*d14625f7Srootdo
8574*d14625f7Sroot  IFS=$as_save_IFS
8575*d14625f7Sroot  test -z "$as_dir" && as_dir=.
8576*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
8577*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578*d14625f7Sroot    ac_cv_prog_ac_ct_RANLIB="ranlib"
8579*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580*d14625f7Sroot    break 2
8581*d14625f7Sroot  fi
8582*d14625f7Srootdone
8583*d14625f7Sroot  done
8584*d14625f7SrootIFS=$as_save_IFS
8585*d14625f7Sroot
8586*d14625f7Srootfi
8587*d14625f7Srootfi
8588*d14625f7Srootac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8589*d14625f7Srootif test -n "$ac_ct_RANLIB"; then
8590*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8591*d14625f7Sroot$as_echo "$ac_ct_RANLIB" >&6; }
8592*d14625f7Srootelse
8593*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594*d14625f7Sroot$as_echo "no" >&6; }
8595*d14625f7Srootfi
8596*d14625f7Sroot
8597*d14625f7Sroot  if test "x$ac_ct_RANLIB" = x; then
8598*d14625f7Sroot    RANLIB=":"
8599*d14625f7Sroot  else
8600*d14625f7Sroot    case $cross_compiling:$ac_tool_warned in
8601*d14625f7Srootyes:)
8602*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603*d14625f7Sroot$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604*d14625f7Srootac_tool_warned=yes ;;
8605*d14625f7Srootesac
8606*d14625f7Sroot    RANLIB=$ac_ct_RANLIB
8607*d14625f7Sroot  fi
8608*d14625f7Srootelse
8609*d14625f7Sroot  RANLIB="$ac_cv_prog_RANLIB"
8610*d14625f7Srootfi
8611*d14625f7Sroot
8612*d14625f7Sroot# Extract the first word of "ld", so it can be a program name with args.
8613*d14625f7Srootset dummy ld; ac_word=$2
8614*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
8616*d14625f7Srootif ${ac_cv_path_LD+:} false; then :
8617*d14625f7Sroot  $as_echo_n "(cached) " >&6
8618*d14625f7Srootelse
8619*d14625f7Sroot  case $LD in
8620*d14625f7Sroot  [\\/]* | ?:[\\/]*)
8621*d14625f7Sroot  ac_cv_path_LD="$LD" # Let the user override the test with a path.
8622*d14625f7Sroot  ;;
8623*d14625f7Sroot  *)
8624*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625*d14625f7Srootfor as_dir in $PATH
8626*d14625f7Srootdo
8627*d14625f7Sroot  IFS=$as_save_IFS
8628*d14625f7Sroot  test -z "$as_dir" && as_dir=.
8629*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
8630*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631*d14625f7Sroot    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8632*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633*d14625f7Sroot    break 2
8634*d14625f7Sroot  fi
8635*d14625f7Srootdone
8636*d14625f7Sroot  done
8637*d14625f7SrootIFS=$as_save_IFS
8638*d14625f7Sroot
8639*d14625f7Sroot  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8640*d14625f7Sroot  ;;
8641*d14625f7Srootesac
8642*d14625f7Srootfi
8643*d14625f7SrootLD=$ac_cv_path_LD
8644*d14625f7Srootif test -n "$LD"; then
8645*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8646*d14625f7Sroot$as_echo "$LD" >&6; }
8647*d14625f7Srootelse
8648*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649*d14625f7Sroot$as_echo "no" >&6; }
8650*d14625f7Srootfi
8651*d14625f7Sroot
8652*d14625f7Sroot
8653*d14625f7Sroot# Extract the first word of "autoconf", so it can be a program name with args.
8654*d14625f7Srootset dummy autoconf; ac_word=$2
8655*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656*d14625f7Sroot$as_echo_n "checking for $ac_word... " >&6; }
8657*d14625f7Srootif ${ac_cv_path_AUTOCONF+:} false; then :
8658*d14625f7Sroot  $as_echo_n "(cached) " >&6
8659*d14625f7Srootelse
8660*d14625f7Sroot  case $AUTOCONF in
8661*d14625f7Sroot  [\\/]* | ?:[\\/]*)
8662*d14625f7Sroot  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8663*d14625f7Sroot  ;;
8664*d14625f7Sroot  *)
8665*d14625f7Sroot  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666*d14625f7Srootfor as_dir in $PATH
8667*d14625f7Srootdo
8668*d14625f7Sroot  IFS=$as_save_IFS
8669*d14625f7Sroot  test -z "$as_dir" && as_dir=.
8670*d14625f7Sroot    for ac_exec_ext in '' $ac_executable_extensions; do
8671*d14625f7Sroot  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672*d14625f7Sroot    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
8673*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674*d14625f7Sroot    break 2
8675*d14625f7Sroot  fi
8676*d14625f7Srootdone
8677*d14625f7Sroot  done
8678*d14625f7SrootIFS=$as_save_IFS
8679*d14625f7Sroot
8680*d14625f7Sroot  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
8681*d14625f7Sroot  ;;
8682*d14625f7Srootesac
8683*d14625f7Srootfi
8684*d14625f7SrootAUTOCONF=$ac_cv_path_AUTOCONF
8685*d14625f7Srootif test -n "$AUTOCONF"; then
8686*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8687*d14625f7Sroot$as_echo "$AUTOCONF" >&6; }
8688*d14625f7Srootelse
8689*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690*d14625f7Sroot$as_echo "no" >&6; }
8691*d14625f7Srootfi
8692*d14625f7Sroot
8693*d14625f7Sroot
8694*d14625f7Sroot
8695*d14625f7Sroot
8696*d14625f7Sroot# Check whether --with-mangling was given.
8697*d14625f7Srootif test "${with_mangling+set}" = set; then :
8698*d14625f7Sroot  withval=$with_mangling; mangling_map="$with_mangling"
8699*d14625f7Srootelse
8700*d14625f7Sroot  mangling_map=""
8701*d14625f7Srootfi
8702*d14625f7Sroot
8703*d14625f7Sroot
8704*d14625f7Sroot
8705*d14625f7Sroot# Check whether --with-jemalloc_prefix was given.
8706*d14625f7Srootif test "${with_jemalloc_prefix+set}" = set; then :
8707*d14625f7Sroot  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
8708*d14625f7Srootelse
8709*d14625f7Sroot  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
8710*d14625f7Sroot  JEMALLOC_PREFIX=""
8711*d14625f7Srootelse
8712*d14625f7Sroot  JEMALLOC_PREFIX="je_"
8713*d14625f7Srootfi
8714*d14625f7Sroot
8715*d14625f7Srootfi
8716*d14625f7Sroot
8717*d14625f7Srootif test "x$JEMALLOC_PREFIX" = "x" ; then
8718*d14625f7Sroot  $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
8719*d14625f7Sroot
8720*d14625f7Srootelse
8721*d14625f7Sroot  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
8722*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
8723*d14625f7Sroot#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
8724*d14625f7Sroot_ACEOF
8725*d14625f7Sroot
8726*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
8727*d14625f7Sroot#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
8728*d14625f7Sroot_ACEOF
8729*d14625f7Sroot
8730*d14625f7Srootfi
8731*d14625f7Sroot
8732*d14625f7Sroot
8733*d14625f7Sroot
8734*d14625f7Sroot
8735*d14625f7Sroot# Check whether --with-export was given.
8736*d14625f7Srootif test "${with_export+set}" = set; then :
8737*d14625f7Sroot  withval=$with_export; if test "x$with_export" = "xno"; then
8738*d14625f7Sroot  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
8739*d14625f7Sroot
8740*d14625f7Srootfi
8741*d14625f7Sroot
8742*d14625f7Srootfi
8743*d14625f7Sroot
8744*d14625f7Sroot
8745*d14625f7Srootpublic_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
8746*d14625f7Srootac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
8747*d14625f7Srootif test "x$ac_cv_func_memalign" = xyes; then :
8748*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
8749*d14625f7Sroot
8750*d14625f7Sroot	       public_syms="${public_syms} memalign"
8751*d14625f7Srootfi
8752*d14625f7Sroot
8753*d14625f7Srootac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
8754*d14625f7Srootif test "x$ac_cv_func_valloc" = xyes; then :
8755*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
8756*d14625f7Sroot
8757*d14625f7Sroot	       public_syms="${public_syms} valloc"
8758*d14625f7Srootfi
8759*d14625f7Sroot
8760*d14625f7Sroot
8761*d14625f7Srootwrap_syms=
8762*d14625f7Srootif test "x${JEMALLOC_PREFIX}" = "x" ; then
8763*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
8764*d14625f7Srootif test "x$ac_cv_func___libc_calloc" = xyes; then :
8765*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
8766*d14625f7Sroot
8767*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_calloc"
8768*d14625f7Srootfi
8769*d14625f7Sroot
8770*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
8771*d14625f7Srootif test "x$ac_cv_func___libc_free" = xyes; then :
8772*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
8773*d14625f7Sroot
8774*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_free"
8775*d14625f7Srootfi
8776*d14625f7Sroot
8777*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
8778*d14625f7Srootif test "x$ac_cv_func___libc_malloc" = xyes; then :
8779*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
8780*d14625f7Sroot
8781*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_malloc"
8782*d14625f7Srootfi
8783*d14625f7Sroot
8784*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
8785*d14625f7Srootif test "x$ac_cv_func___libc_memalign" = xyes; then :
8786*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
8787*d14625f7Sroot
8788*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_memalign"
8789*d14625f7Srootfi
8790*d14625f7Sroot
8791*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
8792*d14625f7Srootif test "x$ac_cv_func___libc_realloc" = xyes; then :
8793*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
8794*d14625f7Sroot
8795*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_realloc"
8796*d14625f7Srootfi
8797*d14625f7Sroot
8798*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
8799*d14625f7Srootif test "x$ac_cv_func___libc_valloc" = xyes; then :
8800*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
8801*d14625f7Sroot
8802*d14625f7Sroot		 wrap_syms="${wrap_syms} __libc_valloc"
8803*d14625f7Srootfi
8804*d14625f7Sroot
8805*d14625f7Sroot  ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
8806*d14625f7Srootif test "x$ac_cv_func___posix_memalign" = xyes; then :
8807*d14625f7Sroot  $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
8808*d14625f7Sroot
8809*d14625f7Sroot		 wrap_syms="${wrap_syms} __posix_memalign"
8810*d14625f7Srootfi
8811*d14625f7Sroot
8812*d14625f7Srootfi
8813*d14625f7Sroot
8814*d14625f7Srootcase "${host}" in
8815*d14625f7Sroot  *-*-mingw* | *-*-cygwin*)
8816*d14625f7Sroot    wrap_syms="${wrap_syms} tls_callback"
8817*d14625f7Sroot    ;;
8818*d14625f7Sroot  *)
8819*d14625f7Sroot    ;;
8820*d14625f7Srootesac
8821*d14625f7Sroot
8822*d14625f7Sroot
8823*d14625f7Sroot# Check whether --with-private_namespace was given.
8824*d14625f7Srootif test "${with_private_namespace+set}" = set; then :
8825*d14625f7Sroot  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
8826*d14625f7Srootelse
8827*d14625f7Sroot  JEMALLOC_PRIVATE_NAMESPACE="je_"
8828*d14625f7Sroot
8829*d14625f7Srootfi
8830*d14625f7Sroot
8831*d14625f7Srootcat >>confdefs.h <<_ACEOF
8832*d14625f7Sroot#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
8833*d14625f7Sroot_ACEOF
8834*d14625f7Sroot
8835*d14625f7Srootprivate_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
8836*d14625f7Sroot
8837*d14625f7Sroot
8838*d14625f7Sroot
8839*d14625f7Sroot# Check whether --with-install_suffix was given.
8840*d14625f7Srootif test "${with_install_suffix+set}" = set; then :
8841*d14625f7Sroot  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
8842*d14625f7Srootelse
8843*d14625f7Sroot  INSTALL_SUFFIX=
8844*d14625f7Sroot
8845*d14625f7Srootfi
8846*d14625f7Sroot
8847*d14625f7Srootinstall_suffix="$INSTALL_SUFFIX"
8848*d14625f7Sroot
8849*d14625f7Sroot
8850*d14625f7Sroot
8851*d14625f7Sroot# Check whether --with-malloc_conf was given.
8852*d14625f7Srootif test "${with_malloc_conf+set}" = set; then :
8853*d14625f7Sroot  withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
8854*d14625f7Srootelse
8855*d14625f7Sroot  JEMALLOC_CONFIG_MALLOC_CONF=""
8856*d14625f7Sroot
8857*d14625f7Srootfi
8858*d14625f7Sroot
8859*d14625f7Srootconfig_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
8860*d14625f7Srootcat >>confdefs.h <<_ACEOF
8861*d14625f7Sroot#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
8862*d14625f7Sroot_ACEOF
8863*d14625f7Sroot
8864*d14625f7Sroot
8865*d14625f7Srootje_="je_"
8866*d14625f7Sroot
8867*d14625f7Sroot
8868*d14625f7Srootcfgoutputs_in="Makefile.in"
8869*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
8870*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
8871*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
8872*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
8873*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
8874*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
8875*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
8876*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
8877*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
8878*d14625f7Srootcfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
8879*d14625f7Sroot
8880*d14625f7Srootcfgoutputs_out="Makefile"
8881*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
8882*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
8883*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
8884*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
8885*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
8886*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
8887*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
8888*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
8889*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} test/test.sh"
8890*d14625f7Srootcfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
8891*d14625f7Sroot
8892*d14625f7Srootcfgoutputs_tup="Makefile"
8893*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
8894*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
8895*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
8896*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
8897*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
8898*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
8899*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
8900*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
8901*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
8902*d14625f7Srootcfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
8903*d14625f7Sroot
8904*d14625f7Srootcfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
8905*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
8906*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
8907*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
8908*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
8909*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
8910*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
8911*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
8912*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
8913*d14625f7Srootcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
8914*d14625f7Srootcfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
8915*d14625f7Sroot
8916*d14625f7Srootcfghdrs_out="include/jemalloc/jemalloc_defs.h"
8917*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
8918*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
8919*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
8920*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
8921*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
8922*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
8923*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
8924*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
8925*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
8926*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
8927*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
8928*d14625f7Srootcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
8929*d14625f7Srootcfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
8930*d14625f7Sroot
8931*d14625f7Srootcfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
8932*d14625f7Srootcfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
8933*d14625f7Srootcfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
8934*d14625f7Sroot
8935*d14625f7Sroot# Check whether --enable-debug was given.
8936*d14625f7Srootif test "${enable_debug+set}" = set; then :
8937*d14625f7Sroot  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
8938*d14625f7Sroot  enable_debug="0"
8939*d14625f7Srootelse
8940*d14625f7Sroot  enable_debug="1"
8941*d14625f7Srootfi
8942*d14625f7Sroot
8943*d14625f7Srootelse
8944*d14625f7Sroot  enable_debug="0"
8945*d14625f7Sroot
8946*d14625f7Srootfi
8947*d14625f7Sroot
8948*d14625f7Srootif test "x$enable_debug" = "x1" ; then
8949*d14625f7Sroot  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
8950*d14625f7Sroot
8951*d14625f7Srootfi
8952*d14625f7Srootif test "x$enable_debug" = "x1" ; then
8953*d14625f7Sroot  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
8954*d14625f7Sroot
8955*d14625f7Srootfi
8956*d14625f7Sroot
8957*d14625f7Sroot
8958*d14625f7Srootif test "x$enable_debug" = "x0" ; then
8959*d14625f7Sroot  if test "x$GCC" = "xyes" ; then
8960*d14625f7Sroot
8961*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
8962*d14625f7Sroot$as_echo_n "checking whether compiler supports -O3... " >&6; }
8963*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8964*d14625f7SrootT_APPEND_V=-O3
8965*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8966*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8967*d14625f7Srootelse
8968*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8969*d14625f7Srootfi
8970*d14625f7Sroot
8971*d14625f7Sroot
8972*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8973*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8974*d14625f7Srootelse
8975*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8976*d14625f7Srootfi
8977*d14625f7Sroot
8978*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979*d14625f7Sroot/* end confdefs.h.  */
8980*d14625f7Sroot
8981*d14625f7Sroot
8982*d14625f7Srootint
8983*d14625f7Srootmain ()
8984*d14625f7Sroot{
8985*d14625f7Sroot
8986*d14625f7Sroot    return 0;
8987*d14625f7Sroot
8988*d14625f7Sroot  ;
8989*d14625f7Sroot  return 0;
8990*d14625f7Sroot}
8991*d14625f7Sroot_ACEOF
8992*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
8993*d14625f7Sroot  je_cv_cflags_added=-O3
8994*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995*d14625f7Sroot$as_echo "yes" >&6; }
8996*d14625f7Srootelse
8997*d14625f7Sroot  je_cv_cflags_added=
8998*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999*d14625f7Sroot$as_echo "no" >&6; }
9000*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9001*d14625f7Sroot
9002*d14625f7Srootfi
9003*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9005*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9006*d14625f7Srootelse
9007*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9008*d14625f7Srootfi
9009*d14625f7Sroot
9010*d14625f7Sroot
9011*d14625f7Sroot
9012*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9013*d14625f7Sroot$as_echo_n "checking whether compiler supports -O3... " >&6; }
9014*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9015*d14625f7SrootT_APPEND_V=-O3
9016*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9017*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9018*d14625f7Srootelse
9019*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9020*d14625f7Srootfi
9021*d14625f7Sroot
9022*d14625f7Sroot
9023*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9024*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9025*d14625f7Srootelse
9026*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9027*d14625f7Srootfi
9028*d14625f7Sroot
9029*d14625f7Srootac_ext=cpp
9030*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
9031*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9034*d14625f7Sroot
9035*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036*d14625f7Sroot/* end confdefs.h.  */
9037*d14625f7Sroot
9038*d14625f7Sroot
9039*d14625f7Srootint
9040*d14625f7Srootmain ()
9041*d14625f7Sroot{
9042*d14625f7Sroot
9043*d14625f7Sroot    return 0;
9044*d14625f7Sroot
9045*d14625f7Sroot  ;
9046*d14625f7Sroot  return 0;
9047*d14625f7Sroot}
9048*d14625f7Sroot_ACEOF
9049*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
9050*d14625f7Sroot  je_cv_cxxflags_added=-O3
9051*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052*d14625f7Sroot$as_echo "yes" >&6; }
9053*d14625f7Srootelse
9054*d14625f7Sroot  je_cv_cxxflags_added=
9055*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056*d14625f7Sroot$as_echo "no" >&6; }
9057*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9058*d14625f7Sroot
9059*d14625f7Srootfi
9060*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061*d14625f7Srootac_ext=c
9062*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
9063*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
9066*d14625f7Sroot
9067*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9068*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9069*d14625f7Srootelse
9070*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9071*d14625f7Srootfi
9072*d14625f7Sroot
9073*d14625f7Sroot
9074*d14625f7Sroot
9075*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9076*d14625f7Sroot$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9077*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9078*d14625f7SrootT_APPEND_V=-funroll-loops
9079*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9080*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9081*d14625f7Srootelse
9082*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9083*d14625f7Srootfi
9084*d14625f7Sroot
9085*d14625f7Sroot
9086*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9087*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9088*d14625f7Srootelse
9089*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9090*d14625f7Srootfi
9091*d14625f7Sroot
9092*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093*d14625f7Sroot/* end confdefs.h.  */
9094*d14625f7Sroot
9095*d14625f7Sroot
9096*d14625f7Srootint
9097*d14625f7Srootmain ()
9098*d14625f7Sroot{
9099*d14625f7Sroot
9100*d14625f7Sroot    return 0;
9101*d14625f7Sroot
9102*d14625f7Sroot  ;
9103*d14625f7Sroot  return 0;
9104*d14625f7Sroot}
9105*d14625f7Sroot_ACEOF
9106*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
9107*d14625f7Sroot  je_cv_cflags_added=-funroll-loops
9108*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9109*d14625f7Sroot$as_echo "yes" >&6; }
9110*d14625f7Srootelse
9111*d14625f7Sroot  je_cv_cflags_added=
9112*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113*d14625f7Sroot$as_echo "no" >&6; }
9114*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9115*d14625f7Sroot
9116*d14625f7Srootfi
9117*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9119*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9120*d14625f7Srootelse
9121*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9122*d14625f7Srootfi
9123*d14625f7Sroot
9124*d14625f7Sroot
9125*d14625f7Sroot  elif test "x$je_cv_msvc" = "xyes" ; then
9126*d14625f7Sroot
9127*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9128*d14625f7Sroot$as_echo_n "checking whether compiler supports -O2... " >&6; }
9129*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9130*d14625f7SrootT_APPEND_V=-O2
9131*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9132*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9133*d14625f7Srootelse
9134*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9135*d14625f7Srootfi
9136*d14625f7Sroot
9137*d14625f7Sroot
9138*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9139*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9140*d14625f7Srootelse
9141*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9142*d14625f7Srootfi
9143*d14625f7Sroot
9144*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145*d14625f7Sroot/* end confdefs.h.  */
9146*d14625f7Sroot
9147*d14625f7Sroot
9148*d14625f7Srootint
9149*d14625f7Srootmain ()
9150*d14625f7Sroot{
9151*d14625f7Sroot
9152*d14625f7Sroot    return 0;
9153*d14625f7Sroot
9154*d14625f7Sroot  ;
9155*d14625f7Sroot  return 0;
9156*d14625f7Sroot}
9157*d14625f7Sroot_ACEOF
9158*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
9159*d14625f7Sroot  je_cv_cflags_added=-O2
9160*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9161*d14625f7Sroot$as_echo "yes" >&6; }
9162*d14625f7Srootelse
9163*d14625f7Sroot  je_cv_cflags_added=
9164*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165*d14625f7Sroot$as_echo "no" >&6; }
9166*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9167*d14625f7Sroot
9168*d14625f7Srootfi
9169*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9171*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9172*d14625f7Srootelse
9173*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9174*d14625f7Srootfi
9175*d14625f7Sroot
9176*d14625f7Sroot
9177*d14625f7Sroot
9178*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9179*d14625f7Sroot$as_echo_n "checking whether compiler supports -O2... " >&6; }
9180*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9181*d14625f7SrootT_APPEND_V=-O2
9182*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9183*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9184*d14625f7Srootelse
9185*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9186*d14625f7Srootfi
9187*d14625f7Sroot
9188*d14625f7Sroot
9189*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9190*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9191*d14625f7Srootelse
9192*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9193*d14625f7Srootfi
9194*d14625f7Sroot
9195*d14625f7Srootac_ext=cpp
9196*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
9197*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9200*d14625f7Sroot
9201*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202*d14625f7Sroot/* end confdefs.h.  */
9203*d14625f7Sroot
9204*d14625f7Sroot
9205*d14625f7Srootint
9206*d14625f7Srootmain ()
9207*d14625f7Sroot{
9208*d14625f7Sroot
9209*d14625f7Sroot    return 0;
9210*d14625f7Sroot
9211*d14625f7Sroot  ;
9212*d14625f7Sroot  return 0;
9213*d14625f7Sroot}
9214*d14625f7Sroot_ACEOF
9215*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
9216*d14625f7Sroot  je_cv_cxxflags_added=-O2
9217*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218*d14625f7Sroot$as_echo "yes" >&6; }
9219*d14625f7Srootelse
9220*d14625f7Sroot  je_cv_cxxflags_added=
9221*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222*d14625f7Sroot$as_echo "no" >&6; }
9223*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9224*d14625f7Sroot
9225*d14625f7Srootfi
9226*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227*d14625f7Srootac_ext=c
9228*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
9229*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
9232*d14625f7Sroot
9233*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9234*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9235*d14625f7Srootelse
9236*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9237*d14625f7Srootfi
9238*d14625f7Sroot
9239*d14625f7Sroot
9240*d14625f7Sroot  else
9241*d14625f7Sroot
9242*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9243*d14625f7Sroot$as_echo_n "checking whether compiler supports -O... " >&6; }
9244*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9245*d14625f7SrootT_APPEND_V=-O
9246*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9247*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9248*d14625f7Srootelse
9249*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9250*d14625f7Srootfi
9251*d14625f7Sroot
9252*d14625f7Sroot
9253*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9254*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9255*d14625f7Srootelse
9256*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9257*d14625f7Srootfi
9258*d14625f7Sroot
9259*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260*d14625f7Sroot/* end confdefs.h.  */
9261*d14625f7Sroot
9262*d14625f7Sroot
9263*d14625f7Srootint
9264*d14625f7Srootmain ()
9265*d14625f7Sroot{
9266*d14625f7Sroot
9267*d14625f7Sroot    return 0;
9268*d14625f7Sroot
9269*d14625f7Sroot  ;
9270*d14625f7Sroot  return 0;
9271*d14625f7Sroot}
9272*d14625f7Sroot_ACEOF
9273*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
9274*d14625f7Sroot  je_cv_cflags_added=-O
9275*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9276*d14625f7Sroot$as_echo "yes" >&6; }
9277*d14625f7Srootelse
9278*d14625f7Sroot  je_cv_cflags_added=
9279*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280*d14625f7Sroot$as_echo "no" >&6; }
9281*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9282*d14625f7Sroot
9283*d14625f7Srootfi
9284*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9286*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9287*d14625f7Srootelse
9288*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9289*d14625f7Srootfi
9290*d14625f7Sroot
9291*d14625f7Sroot
9292*d14625f7Sroot
9293*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9294*d14625f7Sroot$as_echo_n "checking whether compiler supports -O... " >&6; }
9295*d14625f7SrootT_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9296*d14625f7SrootT_APPEND_V=-O
9297*d14625f7Sroot  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9298*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9299*d14625f7Srootelse
9300*d14625f7Sroot  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9301*d14625f7Srootfi
9302*d14625f7Sroot
9303*d14625f7Sroot
9304*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9305*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9306*d14625f7Srootelse
9307*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9308*d14625f7Srootfi
9309*d14625f7Sroot
9310*d14625f7Srootac_ext=cpp
9311*d14625f7Srootac_cpp='$CXXCPP $CPPFLAGS'
9312*d14625f7Srootac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313*d14625f7Srootac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314*d14625f7Srootac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9315*d14625f7Sroot
9316*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317*d14625f7Sroot/* end confdefs.h.  */
9318*d14625f7Sroot
9319*d14625f7Sroot
9320*d14625f7Srootint
9321*d14625f7Srootmain ()
9322*d14625f7Sroot{
9323*d14625f7Sroot
9324*d14625f7Sroot    return 0;
9325*d14625f7Sroot
9326*d14625f7Sroot  ;
9327*d14625f7Sroot  return 0;
9328*d14625f7Sroot}
9329*d14625f7Sroot_ACEOF
9330*d14625f7Srootif ac_fn_cxx_try_compile "$LINENO"; then :
9331*d14625f7Sroot  je_cv_cxxflags_added=-O
9332*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333*d14625f7Sroot$as_echo "yes" >&6; }
9334*d14625f7Srootelse
9335*d14625f7Sroot  je_cv_cxxflags_added=
9336*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337*d14625f7Sroot$as_echo "no" >&6; }
9338*d14625f7Sroot              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9339*d14625f7Sroot
9340*d14625f7Srootfi
9341*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342*d14625f7Srootac_ext=c
9343*d14625f7Srootac_cpp='$CPP $CPPFLAGS'
9344*d14625f7Srootac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9345*d14625f7Srootac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9346*d14625f7Srootac_compiler_gnu=$ac_cv_c_compiler_gnu
9347*d14625f7Sroot
9348*d14625f7Srootif test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9349*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9350*d14625f7Srootelse
9351*d14625f7Sroot  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9352*d14625f7Srootfi
9353*d14625f7Sroot
9354*d14625f7Sroot
9355*d14625f7Sroot  fi
9356*d14625f7Srootfi
9357*d14625f7Sroot
9358*d14625f7Sroot# Check whether --enable-stats was given.
9359*d14625f7Srootif test "${enable_stats+set}" = set; then :
9360*d14625f7Sroot  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9361*d14625f7Sroot  enable_stats="0"
9362*d14625f7Srootelse
9363*d14625f7Sroot  enable_stats="1"
9364*d14625f7Srootfi
9365*d14625f7Sroot
9366*d14625f7Srootelse
9367*d14625f7Sroot  enable_stats="1"
9368*d14625f7Sroot
9369*d14625f7Srootfi
9370*d14625f7Sroot
9371*d14625f7Srootif test "x$enable_stats" = "x1" ; then
9372*d14625f7Sroot  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
9373*d14625f7Sroot
9374*d14625f7Srootfi
9375*d14625f7Sroot
9376*d14625f7Sroot
9377*d14625f7Sroot# Check whether --enable-prof was given.
9378*d14625f7Srootif test "${enable_prof+set}" = set; then :
9379*d14625f7Sroot  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9380*d14625f7Sroot  enable_prof="0"
9381*d14625f7Srootelse
9382*d14625f7Sroot  enable_prof="1"
9383*d14625f7Srootfi
9384*d14625f7Sroot
9385*d14625f7Srootelse
9386*d14625f7Sroot  enable_prof="0"
9387*d14625f7Sroot
9388*d14625f7Srootfi
9389*d14625f7Sroot
9390*d14625f7Srootif test "x$enable_prof" = "x1" ; then
9391*d14625f7Sroot  backtrace_method=""
9392*d14625f7Srootelse
9393*d14625f7Sroot  backtrace_method="N/A"
9394*d14625f7Srootfi
9395*d14625f7Sroot
9396*d14625f7Sroot# Check whether --enable-prof-libunwind was given.
9397*d14625f7Srootif test "${enable_prof_libunwind+set}" = set; then :
9398*d14625f7Sroot  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9399*d14625f7Sroot  enable_prof_libunwind="0"
9400*d14625f7Srootelse
9401*d14625f7Sroot  enable_prof_libunwind="1"
9402*d14625f7Srootfi
9403*d14625f7Sroot
9404*d14625f7Srootelse
9405*d14625f7Sroot  enable_prof_libunwind="0"
9406*d14625f7Sroot
9407*d14625f7Srootfi
9408*d14625f7Sroot
9409*d14625f7Sroot
9410*d14625f7Sroot# Check whether --with-static_libunwind was given.
9411*d14625f7Srootif test "${with_static_libunwind+set}" = set; then :
9412*d14625f7Sroot  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9413*d14625f7Sroot  LUNWIND="-lunwind"
9414*d14625f7Srootelse
9415*d14625f7Sroot  if test ! -f "$with_static_libunwind" ; then
9416*d14625f7Sroot    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9417*d14625f7Sroot  fi
9418*d14625f7Sroot  LUNWIND="$with_static_libunwind"
9419*d14625f7Srootfi
9420*d14625f7Srootelse
9421*d14625f7Sroot  LUNWIND="-lunwind"
9422*d14625f7Sroot
9423*d14625f7Srootfi
9424*d14625f7Sroot
9425*d14625f7Srootif test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9426*d14625f7Sroot  for ac_header in libunwind.h
9427*d14625f7Srootdo :
9428*d14625f7Sroot  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9429*d14625f7Srootif test "x$ac_cv_header_libunwind_h" = xyes; then :
9430*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
9431*d14625f7Sroot#define HAVE_LIBUNWIND_H 1
9432*d14625f7Sroot_ACEOF
9433*d14625f7Sroot
9434*d14625f7Srootelse
9435*d14625f7Sroot  enable_prof_libunwind="0"
9436*d14625f7Srootfi
9437*d14625f7Sroot
9438*d14625f7Srootdone
9439*d14625f7Sroot
9440*d14625f7Sroot  if test "x$LUNWIND" = "x-lunwind" ; then
9441*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9442*d14625f7Sroot$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9443*d14625f7Srootif ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9444*d14625f7Sroot  $as_echo_n "(cached) " >&6
9445*d14625f7Srootelse
9446*d14625f7Sroot  ac_check_lib_save_LIBS=$LIBS
9447*d14625f7SrootLIBS="-lunwind  $LIBS"
9448*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449*d14625f7Sroot/* end confdefs.h.  */
9450*d14625f7Sroot
9451*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
9452*d14625f7Sroot   Use char because int might match the return type of a GCC
9453*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
9454*d14625f7Sroot#ifdef __cplusplus
9455*d14625f7Srootextern "C"
9456*d14625f7Sroot#endif
9457*d14625f7Srootchar unw_backtrace ();
9458*d14625f7Srootint
9459*d14625f7Srootmain ()
9460*d14625f7Sroot{
9461*d14625f7Srootreturn unw_backtrace ();
9462*d14625f7Sroot  ;
9463*d14625f7Sroot  return 0;
9464*d14625f7Sroot}
9465*d14625f7Sroot_ACEOF
9466*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9467*d14625f7Sroot  ac_cv_lib_unwind_unw_backtrace=yes
9468*d14625f7Srootelse
9469*d14625f7Sroot  ac_cv_lib_unwind_unw_backtrace=no
9470*d14625f7Srootfi
9471*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9472*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9473*d14625f7SrootLIBS=$ac_check_lib_save_LIBS
9474*d14625f7Srootfi
9475*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9476*d14625f7Sroot$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9477*d14625f7Srootif test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9478*d14625f7Sroot  T_APPEND_V=$LUNWIND
9479*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9480*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
9481*d14625f7Srootelse
9482*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
9483*d14625f7Srootfi
9484*d14625f7Sroot
9485*d14625f7Sroot
9486*d14625f7Srootelse
9487*d14625f7Sroot  enable_prof_libunwind="0"
9488*d14625f7Srootfi
9489*d14625f7Sroot
9490*d14625f7Sroot  else
9491*d14625f7Sroot    T_APPEND_V=$LUNWIND
9492*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9493*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
9494*d14625f7Srootelse
9495*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
9496*d14625f7Srootfi
9497*d14625f7Sroot
9498*d14625f7Sroot
9499*d14625f7Sroot  fi
9500*d14625f7Sroot  if test "x${enable_prof_libunwind}" = "x1" ; then
9501*d14625f7Sroot    backtrace_method="libunwind"
9502*d14625f7Sroot    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
9503*d14625f7Sroot
9504*d14625f7Sroot  fi
9505*d14625f7Srootfi
9506*d14625f7Sroot
9507*d14625f7Sroot# Check whether --enable-prof-libgcc was given.
9508*d14625f7Srootif test "${enable_prof_libgcc+set}" = set; then :
9509*d14625f7Sroot  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9510*d14625f7Sroot  enable_prof_libgcc="0"
9511*d14625f7Srootelse
9512*d14625f7Sroot  enable_prof_libgcc="1"
9513*d14625f7Srootfi
9514*d14625f7Sroot
9515*d14625f7Srootelse
9516*d14625f7Sroot  enable_prof_libgcc="1"
9517*d14625f7Sroot
9518*d14625f7Srootfi
9519*d14625f7Sroot
9520*d14625f7Srootif test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9521*d14625f7Sroot     -a "x$GCC" = "xyes" ; then
9522*d14625f7Sroot  for ac_header in unwind.h
9523*d14625f7Srootdo :
9524*d14625f7Sroot  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9525*d14625f7Srootif test "x$ac_cv_header_unwind_h" = xyes; then :
9526*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
9527*d14625f7Sroot#define HAVE_UNWIND_H 1
9528*d14625f7Sroot_ACEOF
9529*d14625f7Sroot
9530*d14625f7Srootelse
9531*d14625f7Sroot  enable_prof_libgcc="0"
9532*d14625f7Srootfi
9533*d14625f7Sroot
9534*d14625f7Srootdone
9535*d14625f7Sroot
9536*d14625f7Sroot  if test "x${enable_prof_libgcc}" = "x1" ; then
9537*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9538*d14625f7Sroot$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9539*d14625f7Srootif ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9540*d14625f7Sroot  $as_echo_n "(cached) " >&6
9541*d14625f7Srootelse
9542*d14625f7Sroot  ac_check_lib_save_LIBS=$LIBS
9543*d14625f7SrootLIBS="-lgcc  $LIBS"
9544*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545*d14625f7Sroot/* end confdefs.h.  */
9546*d14625f7Sroot
9547*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
9548*d14625f7Sroot   Use char because int might match the return type of a GCC
9549*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
9550*d14625f7Sroot#ifdef __cplusplus
9551*d14625f7Srootextern "C"
9552*d14625f7Sroot#endif
9553*d14625f7Srootchar _Unwind_Backtrace ();
9554*d14625f7Srootint
9555*d14625f7Srootmain ()
9556*d14625f7Sroot{
9557*d14625f7Srootreturn _Unwind_Backtrace ();
9558*d14625f7Sroot  ;
9559*d14625f7Sroot  return 0;
9560*d14625f7Sroot}
9561*d14625f7Sroot_ACEOF
9562*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9563*d14625f7Sroot  ac_cv_lib_gcc__Unwind_Backtrace=yes
9564*d14625f7Srootelse
9565*d14625f7Sroot  ac_cv_lib_gcc__Unwind_Backtrace=no
9566*d14625f7Srootfi
9567*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9568*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9569*d14625f7SrootLIBS=$ac_check_lib_save_LIBS
9570*d14625f7Srootfi
9571*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9572*d14625f7Sroot$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9573*d14625f7Srootif test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9574*d14625f7Sroot  T_APPEND_V=-lgcc
9575*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9576*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
9577*d14625f7Srootelse
9578*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
9579*d14625f7Srootfi
9580*d14625f7Sroot
9581*d14625f7Sroot
9582*d14625f7Srootelse
9583*d14625f7Sroot  enable_prof_libgcc="0"
9584*d14625f7Srootfi
9585*d14625f7Sroot
9586*d14625f7Sroot  fi
9587*d14625f7Sroot  if test "x${enable_prof_libgcc}" = "x1" ; then
9588*d14625f7Sroot    backtrace_method="libgcc"
9589*d14625f7Sroot    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
9590*d14625f7Sroot
9591*d14625f7Sroot  fi
9592*d14625f7Srootelse
9593*d14625f7Sroot  enable_prof_libgcc="0"
9594*d14625f7Srootfi
9595*d14625f7Sroot
9596*d14625f7Sroot# Check whether --enable-prof-gcc was given.
9597*d14625f7Srootif test "${enable_prof_gcc+set}" = set; then :
9598*d14625f7Sroot  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
9599*d14625f7Sroot  enable_prof_gcc="0"
9600*d14625f7Srootelse
9601*d14625f7Sroot  enable_prof_gcc="1"
9602*d14625f7Srootfi
9603*d14625f7Sroot
9604*d14625f7Srootelse
9605*d14625f7Sroot  enable_prof_gcc="1"
9606*d14625f7Sroot
9607*d14625f7Srootfi
9608*d14625f7Sroot
9609*d14625f7Srootif test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
9610*d14625f7Sroot     -a "x$GCC" = "xyes" ; then
9611*d14625f7Sroot
9612*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
9613*d14625f7Sroot$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
9614*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9615*d14625f7SrootT_APPEND_V=-fno-omit-frame-pointer
9616*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9617*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9618*d14625f7Srootelse
9619*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9620*d14625f7Srootfi
9621*d14625f7Sroot
9622*d14625f7Sroot
9623*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9624*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9625*d14625f7Srootelse
9626*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9627*d14625f7Srootfi
9628*d14625f7Sroot
9629*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630*d14625f7Sroot/* end confdefs.h.  */
9631*d14625f7Sroot
9632*d14625f7Sroot
9633*d14625f7Srootint
9634*d14625f7Srootmain ()
9635*d14625f7Sroot{
9636*d14625f7Sroot
9637*d14625f7Sroot    return 0;
9638*d14625f7Sroot
9639*d14625f7Sroot  ;
9640*d14625f7Sroot  return 0;
9641*d14625f7Sroot}
9642*d14625f7Sroot_ACEOF
9643*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
9644*d14625f7Sroot  je_cv_cflags_added=-fno-omit-frame-pointer
9645*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9646*d14625f7Sroot$as_echo "yes" >&6; }
9647*d14625f7Srootelse
9648*d14625f7Sroot  je_cv_cflags_added=
9649*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650*d14625f7Sroot$as_echo "no" >&6; }
9651*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9652*d14625f7Sroot
9653*d14625f7Srootfi
9654*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9656*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9657*d14625f7Srootelse
9658*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9659*d14625f7Srootfi
9660*d14625f7Sroot
9661*d14625f7Sroot
9662*d14625f7Sroot  backtrace_method="gcc intrinsics"
9663*d14625f7Sroot  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
9664*d14625f7Sroot
9665*d14625f7Srootelse
9666*d14625f7Sroot  enable_prof_gcc="0"
9667*d14625f7Srootfi
9668*d14625f7Sroot
9669*d14625f7Srootif test "x$backtrace_method" = "x" ; then
9670*d14625f7Sroot  backtrace_method="none (disabling profiling)"
9671*d14625f7Sroot  enable_prof="0"
9672*d14625f7Srootfi
9673*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
9674*d14625f7Sroot$as_echo_n "checking configured backtracing method... " >&6; }
9675*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
9676*d14625f7Sroot$as_echo "$backtrace_method" >&6; }
9677*d14625f7Srootif test "x$enable_prof" = "x1" ; then
9678*d14625f7Sroot    T_APPEND_V=$LM
9679*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9680*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
9681*d14625f7Srootelse
9682*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
9683*d14625f7Srootfi
9684*d14625f7Sroot
9685*d14625f7Sroot
9686*d14625f7Sroot
9687*d14625f7Sroot  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
9688*d14625f7Sroot
9689*d14625f7Srootfi
9690*d14625f7Sroot
9691*d14625f7Sroot
9692*d14625f7Srootif test "x${maps_coalesce}" = "x1" ; then
9693*d14625f7Sroot  $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
9694*d14625f7Sroot
9695*d14625f7Srootfi
9696*d14625f7Sroot
9697*d14625f7Srootif test "x$default_retain" = "x1" ; then
9698*d14625f7Sroot  $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
9699*d14625f7Sroot
9700*d14625f7Srootfi
9701*d14625f7Sroot
9702*d14625f7Sroothave_dss="1"
9703*d14625f7Srootac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9704*d14625f7Srootif test "x$ac_cv_func_sbrk" = xyes; then :
9705*d14625f7Sroot  have_sbrk="1"
9706*d14625f7Srootelse
9707*d14625f7Sroot  have_sbrk="0"
9708*d14625f7Srootfi
9709*d14625f7Sroot
9710*d14625f7Srootif test "x$have_sbrk" = "x1" ; then
9711*d14625f7Sroot  if test "x$sbrk_deprecated" = "x1" ; then
9712*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
9713*d14625f7Sroot$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
9714*d14625f7Sroot    have_dss="0"
9715*d14625f7Sroot  fi
9716*d14625f7Srootelse
9717*d14625f7Sroot  have_dss="0"
9718*d14625f7Srootfi
9719*d14625f7Sroot
9720*d14625f7Srootif test "x$have_dss" = "x1" ; then
9721*d14625f7Sroot  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
9722*d14625f7Sroot
9723*d14625f7Srootfi
9724*d14625f7Sroot
9725*d14625f7Sroot# Check whether --enable-fill was given.
9726*d14625f7Srootif test "${enable_fill+set}" = set; then :
9727*d14625f7Sroot  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
9728*d14625f7Sroot  enable_fill="0"
9729*d14625f7Srootelse
9730*d14625f7Sroot  enable_fill="1"
9731*d14625f7Srootfi
9732*d14625f7Sroot
9733*d14625f7Srootelse
9734*d14625f7Sroot  enable_fill="1"
9735*d14625f7Sroot
9736*d14625f7Srootfi
9737*d14625f7Sroot
9738*d14625f7Srootif test "x$enable_fill" = "x1" ; then
9739*d14625f7Sroot  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
9740*d14625f7Sroot
9741*d14625f7Srootfi
9742*d14625f7Sroot
9743*d14625f7Sroot
9744*d14625f7Sroot# Check whether --enable-utrace was given.
9745*d14625f7Srootif test "${enable_utrace+set}" = set; then :
9746*d14625f7Sroot  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
9747*d14625f7Sroot  enable_utrace="0"
9748*d14625f7Srootelse
9749*d14625f7Sroot  enable_utrace="1"
9750*d14625f7Srootfi
9751*d14625f7Sroot
9752*d14625f7Srootelse
9753*d14625f7Sroot  enable_utrace="0"
9754*d14625f7Sroot
9755*d14625f7Srootfi
9756*d14625f7Sroot
9757*d14625f7Sroot
9758*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
9759*d14625f7Sroot$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
9760*d14625f7Srootif ${je_cv_utrace+:} false; then :
9761*d14625f7Sroot  $as_echo_n "(cached) " >&6
9762*d14625f7Srootelse
9763*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764*d14625f7Sroot/* end confdefs.h.  */
9765*d14625f7Sroot
9766*d14625f7Sroot#include <sys/types.h>
9767*d14625f7Sroot#include <sys/param.h>
9768*d14625f7Sroot#include <sys/time.h>
9769*d14625f7Sroot#include <sys/uio.h>
9770*d14625f7Sroot#include <sys/ktrace.h>
9771*d14625f7Sroot
9772*d14625f7Srootint
9773*d14625f7Srootmain ()
9774*d14625f7Sroot{
9775*d14625f7Sroot
9776*d14625f7Sroot	utrace((void *)0, 0);
9777*d14625f7Sroot
9778*d14625f7Sroot  ;
9779*d14625f7Sroot  return 0;
9780*d14625f7Sroot}
9781*d14625f7Sroot_ACEOF
9782*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9783*d14625f7Sroot  je_cv_utrace=yes
9784*d14625f7Srootelse
9785*d14625f7Sroot  je_cv_utrace=no
9786*d14625f7Srootfi
9787*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9788*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9789*d14625f7Srootfi
9790*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
9791*d14625f7Sroot$as_echo "$je_cv_utrace" >&6; }
9792*d14625f7Sroot
9793*d14625f7Srootif test "x${je_cv_utrace}" = "xno" ; then
9794*d14625f7Sroot  enable_utrace="0"
9795*d14625f7Srootfi
9796*d14625f7Srootif test "x$enable_utrace" = "x1" ; then
9797*d14625f7Sroot  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
9798*d14625f7Sroot
9799*d14625f7Srootfi
9800*d14625f7Sroot
9801*d14625f7Sroot
9802*d14625f7Sroot# Check whether --enable-xmalloc was given.
9803*d14625f7Srootif test "${enable_xmalloc+set}" = set; then :
9804*d14625f7Sroot  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
9805*d14625f7Sroot  enable_xmalloc="0"
9806*d14625f7Srootelse
9807*d14625f7Sroot  enable_xmalloc="1"
9808*d14625f7Srootfi
9809*d14625f7Sroot
9810*d14625f7Srootelse
9811*d14625f7Sroot  enable_xmalloc="0"
9812*d14625f7Sroot
9813*d14625f7Srootfi
9814*d14625f7Sroot
9815*d14625f7Srootif test "x$enable_xmalloc" = "x1" ; then
9816*d14625f7Sroot  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
9817*d14625f7Sroot
9818*d14625f7Srootfi
9819*d14625f7Sroot
9820*d14625f7Sroot
9821*d14625f7Sroot# Check whether --enable-cache-oblivious was given.
9822*d14625f7Srootif test "${enable_cache_oblivious+set}" = set; then :
9823*d14625f7Sroot  enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
9824*d14625f7Sroot  enable_cache_oblivious="0"
9825*d14625f7Srootelse
9826*d14625f7Sroot  enable_cache_oblivious="1"
9827*d14625f7Srootfi
9828*d14625f7Sroot
9829*d14625f7Srootelse
9830*d14625f7Sroot  enable_cache_oblivious="1"
9831*d14625f7Sroot
9832*d14625f7Srootfi
9833*d14625f7Sroot
9834*d14625f7Srootif test "x$enable_cache_oblivious" = "x1" ; then
9835*d14625f7Sroot  $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
9836*d14625f7Sroot
9837*d14625f7Srootfi
9838*d14625f7Sroot
9839*d14625f7Sroot
9840*d14625f7Sroot# Check whether --enable-log was given.
9841*d14625f7Srootif test "${enable_log+set}" = set; then :
9842*d14625f7Sroot  enableval=$enable_log; if test "x$enable_log" = "xno" ; then
9843*d14625f7Sroot  enable_log="0"
9844*d14625f7Srootelse
9845*d14625f7Sroot  enable_log="1"
9846*d14625f7Srootfi
9847*d14625f7Sroot
9848*d14625f7Srootelse
9849*d14625f7Sroot  enable_log="0"
9850*d14625f7Sroot
9851*d14625f7Srootfi
9852*d14625f7Sroot
9853*d14625f7Srootif test "x$enable_log" = "x1" ; then
9854*d14625f7Sroot  $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
9855*d14625f7Sroot
9856*d14625f7Srootfi
9857*d14625f7Sroot
9858*d14625f7Sroot
9859*d14625f7Sroot
9860*d14625f7Sroot
9861*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
9862*d14625f7Sroot$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
9863*d14625f7Srootif ${je_cv_gcc_builtin_unreachable+:} false; then :
9864*d14625f7Sroot  $as_echo_n "(cached) " >&6
9865*d14625f7Srootelse
9866*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867*d14625f7Sroot/* end confdefs.h.  */
9868*d14625f7Sroot
9869*d14625f7Srootvoid foo (void) {
9870*d14625f7Sroot  __builtin_unreachable();
9871*d14625f7Sroot}
9872*d14625f7Sroot
9873*d14625f7Srootint
9874*d14625f7Srootmain ()
9875*d14625f7Sroot{
9876*d14625f7Sroot
9877*d14625f7Sroot	{
9878*d14625f7Sroot		foo();
9879*d14625f7Sroot	}
9880*d14625f7Sroot
9881*d14625f7Sroot  ;
9882*d14625f7Sroot  return 0;
9883*d14625f7Sroot}
9884*d14625f7Sroot_ACEOF
9885*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9886*d14625f7Sroot  je_cv_gcc_builtin_unreachable=yes
9887*d14625f7Srootelse
9888*d14625f7Sroot  je_cv_gcc_builtin_unreachable=no
9889*d14625f7Srootfi
9890*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9891*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9892*d14625f7Srootfi
9893*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
9894*d14625f7Sroot$as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
9895*d14625f7Sroot
9896*d14625f7Srootif test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
9897*d14625f7Sroot  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
9898*d14625f7Sroot
9899*d14625f7Srootelse
9900*d14625f7Sroot  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
9901*d14625f7Sroot
9902*d14625f7Srootfi
9903*d14625f7Sroot
9904*d14625f7Sroot
9905*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
9906*d14625f7Sroot$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
9907*d14625f7Srootif ${je_cv_gcc_builtin_ffsl+:} false; then :
9908*d14625f7Sroot  $as_echo_n "(cached) " >&6
9909*d14625f7Srootelse
9910*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911*d14625f7Sroot/* end confdefs.h.  */
9912*d14625f7Sroot
9913*d14625f7Sroot#include <stdio.h>
9914*d14625f7Sroot#include <strings.h>
9915*d14625f7Sroot#include <string.h>
9916*d14625f7Sroot
9917*d14625f7Srootint
9918*d14625f7Srootmain ()
9919*d14625f7Sroot{
9920*d14625f7Sroot
9921*d14625f7Sroot	{
9922*d14625f7Sroot		int rv = __builtin_ffsl(0x08);
9923*d14625f7Sroot		printf("%d\n", rv);
9924*d14625f7Sroot	}
9925*d14625f7Sroot
9926*d14625f7Sroot  ;
9927*d14625f7Sroot  return 0;
9928*d14625f7Sroot}
9929*d14625f7Sroot_ACEOF
9930*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9931*d14625f7Sroot  je_cv_gcc_builtin_ffsl=yes
9932*d14625f7Srootelse
9933*d14625f7Sroot  je_cv_gcc_builtin_ffsl=no
9934*d14625f7Srootfi
9935*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9936*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9937*d14625f7Srootfi
9938*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
9939*d14625f7Sroot$as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
9940*d14625f7Sroot
9941*d14625f7Srootif test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
9942*d14625f7Sroot  $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
9943*d14625f7Sroot
9944*d14625f7Sroot  $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
9945*d14625f7Sroot
9946*d14625f7Sroot  $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
9947*d14625f7Sroot
9948*d14625f7Srootelse
9949*d14625f7Sroot
9950*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
9951*d14625f7Sroot$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
9952*d14625f7Srootif ${je_cv_function_ffsl+:} false; then :
9953*d14625f7Sroot  $as_echo_n "(cached) " >&6
9954*d14625f7Srootelse
9955*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956*d14625f7Sroot/* end confdefs.h.  */
9957*d14625f7Sroot
9958*d14625f7Sroot  #include <stdio.h>
9959*d14625f7Sroot  #include <strings.h>
9960*d14625f7Sroot  #include <string.h>
9961*d14625f7Sroot
9962*d14625f7Srootint
9963*d14625f7Srootmain ()
9964*d14625f7Sroot{
9965*d14625f7Sroot
9966*d14625f7Sroot	{
9967*d14625f7Sroot		int rv = ffsl(0x08);
9968*d14625f7Sroot		printf("%d\n", rv);
9969*d14625f7Sroot	}
9970*d14625f7Sroot
9971*d14625f7Sroot  ;
9972*d14625f7Sroot  return 0;
9973*d14625f7Sroot}
9974*d14625f7Sroot_ACEOF
9975*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
9976*d14625f7Sroot  je_cv_function_ffsl=yes
9977*d14625f7Srootelse
9978*d14625f7Sroot  je_cv_function_ffsl=no
9979*d14625f7Srootfi
9980*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
9981*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
9982*d14625f7Srootfi
9983*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
9984*d14625f7Sroot$as_echo "$je_cv_function_ffsl" >&6; }
9985*d14625f7Sroot
9986*d14625f7Sroot  if test "x${je_cv_function_ffsl}" = "xyes" ; then
9987*d14625f7Sroot    $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
9988*d14625f7Sroot
9989*d14625f7Sroot    $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
9990*d14625f7Sroot
9991*d14625f7Sroot    $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
9992*d14625f7Sroot
9993*d14625f7Sroot  else
9994*d14625f7Sroot    as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
9995*d14625f7Sroot  fi
9996*d14625f7Srootfi
9997*d14625f7Sroot
9998*d14625f7Sroot
9999*d14625f7Sroot# Check whether --with-lg_quantum was given.
10000*d14625f7Srootif test "${with_lg_quantum+set}" = set; then :
10001*d14625f7Sroot  withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10002*d14625f7Srootelse
10003*d14625f7Sroot  LG_QUANTA="3 4"
10004*d14625f7Srootfi
10005*d14625f7Sroot
10006*d14625f7Srootif test "x$with_lg_quantum" != "x" ; then
10007*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
10008*d14625f7Sroot#define LG_QUANTUM $with_lg_quantum
10009*d14625f7Sroot_ACEOF
10010*d14625f7Sroot
10011*d14625f7Srootfi
10012*d14625f7Sroot
10013*d14625f7Sroot
10014*d14625f7Sroot# Check whether --with-lg_page was given.
10015*d14625f7Srootif test "${with_lg_page+set}" = set; then :
10016*d14625f7Sroot  withval=$with_lg_page; LG_PAGE="$with_lg_page"
10017*d14625f7Srootelse
10018*d14625f7Sroot  LG_PAGE="detect"
10019*d14625f7Srootfi
10020*d14625f7Sroot
10021*d14625f7Srootif test "x$LG_PAGE" = "xdetect"; then
10022*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10023*d14625f7Sroot$as_echo_n "checking LG_PAGE... " >&6; }
10024*d14625f7Srootif ${je_cv_lg_page+:} false; then :
10025*d14625f7Sroot  $as_echo_n "(cached) " >&6
10026*d14625f7Srootelse
10027*d14625f7Sroot  if test "$cross_compiling" = yes; then :
10028*d14625f7Sroot  je_cv_lg_page=12
10029*d14625f7Srootelse
10030*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031*d14625f7Sroot/* end confdefs.h.  */
10032*d14625f7Sroot
10033*d14625f7Sroot#include <strings.h>
10034*d14625f7Sroot#ifdef _WIN32
10035*d14625f7Sroot#include <windows.h>
10036*d14625f7Sroot#else
10037*d14625f7Sroot#include <unistd.h>
10038*d14625f7Sroot#endif
10039*d14625f7Sroot#include <stdio.h>
10040*d14625f7Sroot
10041*d14625f7Srootint
10042*d14625f7Srootmain ()
10043*d14625f7Sroot{
10044*d14625f7Sroot
10045*d14625f7Sroot    int result;
10046*d14625f7Sroot    FILE *f;
10047*d14625f7Sroot
10048*d14625f7Sroot#ifdef _WIN32
10049*d14625f7Sroot    SYSTEM_INFO si;
10050*d14625f7Sroot    GetSystemInfo(&si);
10051*d14625f7Sroot    result = si.dwPageSize;
10052*d14625f7Sroot#else
10053*d14625f7Sroot    result = sysconf(_SC_PAGESIZE);
10054*d14625f7Sroot#endif
10055*d14625f7Sroot    if (result == -1) {
10056*d14625f7Sroot	return 1;
10057*d14625f7Sroot    }
10058*d14625f7Sroot    result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10059*d14625f7Sroot
10060*d14625f7Sroot    f = fopen("conftest.out", "w");
10061*d14625f7Sroot    if (f == NULL) {
10062*d14625f7Sroot	return 1;
10063*d14625f7Sroot    }
10064*d14625f7Sroot    fprintf(f, "%d", result);
10065*d14625f7Sroot    fclose(f);
10066*d14625f7Sroot
10067*d14625f7Sroot    return 0;
10068*d14625f7Sroot
10069*d14625f7Sroot  ;
10070*d14625f7Sroot  return 0;
10071*d14625f7Sroot}
10072*d14625f7Sroot_ACEOF
10073*d14625f7Srootif ac_fn_c_try_run "$LINENO"; then :
10074*d14625f7Sroot  je_cv_lg_page=`cat conftest.out`
10075*d14625f7Srootelse
10076*d14625f7Sroot  je_cv_lg_page=undefined
10077*d14625f7Srootfi
10078*d14625f7Srootrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10079*d14625f7Sroot  conftest.$ac_objext conftest.beam conftest.$ac_ext
10080*d14625f7Srootfi
10081*d14625f7Sroot
10082*d14625f7Srootfi
10083*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10084*d14625f7Sroot$as_echo "$je_cv_lg_page" >&6; }
10085*d14625f7Srootfi
10086*d14625f7Srootif test "x${je_cv_lg_page}" != "x" ; then
10087*d14625f7Sroot  LG_PAGE="${je_cv_lg_page}"
10088*d14625f7Srootfi
10089*d14625f7Srootif test "x${LG_PAGE}" != "xundefined" ; then
10090*d14625f7Sroot   cat >>confdefs.h <<_ACEOF
10091*d14625f7Sroot#define LG_PAGE $LG_PAGE
10092*d14625f7Sroot_ACEOF
10093*d14625f7Sroot
10094*d14625f7Srootelse
10095*d14625f7Sroot   as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10096*d14625f7Srootfi
10097*d14625f7Sroot
10098*d14625f7Sroot
10099*d14625f7Sroot# Check whether --with-lg_hugepage was given.
10100*d14625f7Srootif test "${with_lg_hugepage+set}" = set; then :
10101*d14625f7Sroot  withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10102*d14625f7Srootelse
10103*d14625f7Sroot  je_cv_lg_hugepage=""
10104*d14625f7Srootfi
10105*d14625f7Sroot
10106*d14625f7Srootif test "x${je_cv_lg_hugepage}" = "x" ; then
10107*d14625f7Sroot          if test -e "/proc/meminfo" ; then
10108*d14625f7Sroot    hpsk=`cat /proc/meminfo 2>/dev/null | \
10109*d14625f7Sroot          grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10110*d14625f7Sroot          awk '{print $2}'`
10111*d14625f7Sroot    if test "x${hpsk}" != "x" ; then
10112*d14625f7Sroot      je_cv_lg_hugepage=10
10113*d14625f7Sroot      while test "${hpsk}" -gt 1 ; do
10114*d14625f7Sroot        hpsk="$((hpsk / 2))"
10115*d14625f7Sroot        je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10116*d14625f7Sroot      done
10117*d14625f7Sroot    fi
10118*d14625f7Sroot  fi
10119*d14625f7Sroot
10120*d14625f7Sroot    if test "x${je_cv_lg_hugepage}" = "x" ; then
10121*d14625f7Sroot    je_cv_lg_hugepage=21
10122*d14625f7Sroot  fi
10123*d14625f7Srootfi
10124*d14625f7Srootif test "x${LG_PAGE}" != "xundefined" -a \
10125*d14625f7Sroot        "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10126*d14625f7Sroot  as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10127*d14625f7Srootfi
10128*d14625f7Srootcat >>confdefs.h <<_ACEOF
10129*d14625f7Sroot#define LG_HUGEPAGE ${je_cv_lg_hugepage}
10130*d14625f7Sroot_ACEOF
10131*d14625f7Sroot
10132*d14625f7Sroot
10133*d14625f7Sroot
10134*d14625f7Sroot# Check whether --with-lg_page_sizes was given.
10135*d14625f7Srootif test "${with_lg_page_sizes+set}" = set; then :
10136*d14625f7Sroot  withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
10137*d14625f7Srootelse
10138*d14625f7Sroot  LG_PAGE_SIZES="$LG_PAGE"
10139*d14625f7Srootfi
10140*d14625f7Sroot
10141*d14625f7Sroot
10142*d14625f7Sroot
10143*d14625f7Sroot
10144*d14625f7Sroot# Check whether --with-version was given.
10145*d14625f7Srootif test "${with_version+set}" = set; then :
10146*d14625f7Sroot  withval=$with_version;
10147*d14625f7Sroot    echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
10148*d14625f7Sroot    if test $? -eq 0 ; then
10149*d14625f7Sroot      echo "$with_version" > "${objroot}VERSION"
10150*d14625f7Sroot    else
10151*d14625f7Sroot      echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
10152*d14625f7Sroot      if test $? -ne 0 ; then
10153*d14625f7Sroot        as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
10154*d14625f7Sroot      fi
10155*d14625f7Sroot    fi
10156*d14625f7Sroot
10157*d14625f7Srootelse
10158*d14625f7Sroot
10159*d14625f7Sroot        if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
10160*d14625f7Sroot                        for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
10161*d14625f7Sroot                     '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
10162*d14625f7Sroot                     '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
10163*d14625f7Sroot                     '[0-9][0-9].[0-9][0-9].[0-9]' \
10164*d14625f7Sroot                     '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
10165*d14625f7Sroot        (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
10166*d14625f7Sroot        if test $? -eq 0 ; then
10167*d14625f7Sroot          mv "${objroot}VERSION.tmp" "${objroot}VERSION"
10168*d14625f7Sroot          break
10169*d14625f7Sroot        fi
10170*d14625f7Sroot      done
10171*d14625f7Sroot    fi
10172*d14625f7Sroot    rm -f "${objroot}VERSION.tmp"
10173*d14625f7Sroot
10174*d14625f7Srootfi
10175*d14625f7Sroot
10176*d14625f7Sroot
10177*d14625f7Srootif test ! -e "${objroot}VERSION" ; then
10178*d14625f7Sroot  if test ! -e "${srcroot}VERSION" ; then
10179*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
10180*d14625f7Sroot$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
10181*d14625f7Sroot    echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
10182*d14625f7Sroot  else
10183*d14625f7Sroot    cp ${srcroot}VERSION ${objroot}VERSION
10184*d14625f7Sroot  fi
10185*d14625f7Srootfi
10186*d14625f7Srootjemalloc_version=`cat "${objroot}VERSION"`
10187*d14625f7Srootjemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
10188*d14625f7Srootjemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
10189*d14625f7Srootjemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
10190*d14625f7Srootjemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
10191*d14625f7Srootjemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
10192*d14625f7Sroot
10193*d14625f7Sroot
10194*d14625f7Sroot
10195*d14625f7Sroot
10196*d14625f7Sroot
10197*d14625f7Sroot
10198*d14625f7Sroot
10199*d14625f7Sroot
10200*d14625f7Srootif test "x$abi" != "xpecoff" ; then
10201*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
10202*d14625f7Sroot
10203*d14625f7Sroot  for ac_header in pthread.h
10204*d14625f7Srootdo :
10205*d14625f7Sroot  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10206*d14625f7Srootif test "x$ac_cv_header_pthread_h" = xyes; then :
10207*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
10208*d14625f7Sroot#define HAVE_PTHREAD_H 1
10209*d14625f7Sroot_ACEOF
10210*d14625f7Sroot
10211*d14625f7Srootelse
10212*d14625f7Sroot  as_fn_error $? "pthread.h is missing" "$LINENO" 5
10213*d14625f7Srootfi
10214*d14625f7Sroot
10215*d14625f7Srootdone
10216*d14625f7Sroot
10217*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10218*d14625f7Sroot$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10219*d14625f7Srootif ${ac_cv_lib_pthread_pthread_create+:} false; then :
10220*d14625f7Sroot  $as_echo_n "(cached) " >&6
10221*d14625f7Srootelse
10222*d14625f7Sroot  ac_check_lib_save_LIBS=$LIBS
10223*d14625f7SrootLIBS="-lpthread  $LIBS"
10224*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225*d14625f7Sroot/* end confdefs.h.  */
10226*d14625f7Sroot
10227*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
10228*d14625f7Sroot   Use char because int might match the return type of a GCC
10229*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
10230*d14625f7Sroot#ifdef __cplusplus
10231*d14625f7Srootextern "C"
10232*d14625f7Sroot#endif
10233*d14625f7Srootchar pthread_create ();
10234*d14625f7Srootint
10235*d14625f7Srootmain ()
10236*d14625f7Sroot{
10237*d14625f7Srootreturn pthread_create ();
10238*d14625f7Sroot  ;
10239*d14625f7Sroot  return 0;
10240*d14625f7Sroot}
10241*d14625f7Sroot_ACEOF
10242*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10243*d14625f7Sroot  ac_cv_lib_pthread_pthread_create=yes
10244*d14625f7Srootelse
10245*d14625f7Sroot  ac_cv_lib_pthread_pthread_create=no
10246*d14625f7Srootfi
10247*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10248*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10249*d14625f7SrootLIBS=$ac_check_lib_save_LIBS
10250*d14625f7Srootfi
10251*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10252*d14625f7Sroot$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10253*d14625f7Srootif test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10254*d14625f7Sroot  T_APPEND_V=-lpthread
10255*d14625f7Sroot  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10256*d14625f7Sroot  LIBS="${LIBS}${T_APPEND_V}"
10257*d14625f7Srootelse
10258*d14625f7Sroot  LIBS="${LIBS} ${T_APPEND_V}"
10259*d14625f7Srootfi
10260*d14625f7Sroot
10261*d14625f7Sroot
10262*d14625f7Srootelse
10263*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10264*d14625f7Sroot$as_echo_n "checking for library containing pthread_create... " >&6; }
10265*d14625f7Srootif ${ac_cv_search_pthread_create+:} false; then :
10266*d14625f7Sroot  $as_echo_n "(cached) " >&6
10267*d14625f7Srootelse
10268*d14625f7Sroot  ac_func_search_save_LIBS=$LIBS
10269*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270*d14625f7Sroot/* end confdefs.h.  */
10271*d14625f7Sroot
10272*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
10273*d14625f7Sroot   Use char because int might match the return type of a GCC
10274*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
10275*d14625f7Sroot#ifdef __cplusplus
10276*d14625f7Srootextern "C"
10277*d14625f7Sroot#endif
10278*d14625f7Srootchar pthread_create ();
10279*d14625f7Srootint
10280*d14625f7Srootmain ()
10281*d14625f7Sroot{
10282*d14625f7Srootreturn pthread_create ();
10283*d14625f7Sroot  ;
10284*d14625f7Sroot  return 0;
10285*d14625f7Sroot}
10286*d14625f7Sroot_ACEOF
10287*d14625f7Srootfor ac_lib in '' ; do
10288*d14625f7Sroot  if test -z "$ac_lib"; then
10289*d14625f7Sroot    ac_res="none required"
10290*d14625f7Sroot  else
10291*d14625f7Sroot    ac_res=-l$ac_lib
10292*d14625f7Sroot    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10293*d14625f7Sroot  fi
10294*d14625f7Sroot  if ac_fn_c_try_link "$LINENO"; then :
10295*d14625f7Sroot  ac_cv_search_pthread_create=$ac_res
10296*d14625f7Srootfi
10297*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10298*d14625f7Sroot    conftest$ac_exeext
10299*d14625f7Sroot  if ${ac_cv_search_pthread_create+:} false; then :
10300*d14625f7Sroot  break
10301*d14625f7Srootfi
10302*d14625f7Srootdone
10303*d14625f7Srootif ${ac_cv_search_pthread_create+:} false; then :
10304*d14625f7Sroot
10305*d14625f7Srootelse
10306*d14625f7Sroot  ac_cv_search_pthread_create=no
10307*d14625f7Srootfi
10308*d14625f7Srootrm conftest.$ac_ext
10309*d14625f7SrootLIBS=$ac_func_search_save_LIBS
10310*d14625f7Srootfi
10311*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10312*d14625f7Sroot$as_echo "$ac_cv_search_pthread_create" >&6; }
10313*d14625f7Srootac_res=$ac_cv_search_pthread_create
10314*d14625f7Srootif test "$ac_res" != no; then :
10315*d14625f7Sroot  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10316*d14625f7Sroot
10317*d14625f7Srootelse
10318*d14625f7Sroot  as_fn_error $? "libpthread is missing" "$LINENO" 5
10319*d14625f7Srootfi
10320*d14625f7Sroot
10321*d14625f7Srootfi
10322*d14625f7Sroot
10323*d14625f7Sroot  wrap_syms="${wrap_syms} pthread_create"
10324*d14625f7Sroot  have_pthread="1"
10325*d14625f7Sroot    have_dlsym="1"
10326*d14625f7Sroot  for ac_header in dlfcn.h
10327*d14625f7Srootdo :
10328*d14625f7Sroot  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10329*d14625f7Srootif test "x$ac_cv_header_dlfcn_h" = xyes; then :
10330*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
10331*d14625f7Sroot#define HAVE_DLFCN_H 1
10332*d14625f7Sroot_ACEOF
10333*d14625f7Sroot ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10334*d14625f7Srootif test "x$ac_cv_func_dlsym" = xyes; then :
10335*d14625f7Sroot
10336*d14625f7Srootelse
10337*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10338*d14625f7Sroot$as_echo_n "checking for dlsym in -ldl... " >&6; }
10339*d14625f7Srootif ${ac_cv_lib_dl_dlsym+:} false; then :
10340*d14625f7Sroot  $as_echo_n "(cached) " >&6
10341*d14625f7Srootelse
10342*d14625f7Sroot  ac_check_lib_save_LIBS=$LIBS
10343*d14625f7SrootLIBS="-ldl  $LIBS"
10344*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345*d14625f7Sroot/* end confdefs.h.  */
10346*d14625f7Sroot
10347*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
10348*d14625f7Sroot   Use char because int might match the return type of a GCC
10349*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
10350*d14625f7Sroot#ifdef __cplusplus
10351*d14625f7Srootextern "C"
10352*d14625f7Sroot#endif
10353*d14625f7Srootchar dlsym ();
10354*d14625f7Srootint
10355*d14625f7Srootmain ()
10356*d14625f7Sroot{
10357*d14625f7Srootreturn dlsym ();
10358*d14625f7Sroot  ;
10359*d14625f7Sroot  return 0;
10360*d14625f7Sroot}
10361*d14625f7Sroot_ACEOF
10362*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10363*d14625f7Sroot  ac_cv_lib_dl_dlsym=yes
10364*d14625f7Srootelse
10365*d14625f7Sroot  ac_cv_lib_dl_dlsym=no
10366*d14625f7Srootfi
10367*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10368*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10369*d14625f7SrootLIBS=$ac_check_lib_save_LIBS
10370*d14625f7Srootfi
10371*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10372*d14625f7Sroot$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10373*d14625f7Srootif test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10374*d14625f7Sroot  LIBS="$LIBS -ldl"
10375*d14625f7Srootelse
10376*d14625f7Sroot  have_dlsym="0"
10377*d14625f7Srootfi
10378*d14625f7Sroot
10379*d14625f7Srootfi
10380*d14625f7Sroot
10381*d14625f7Srootelse
10382*d14625f7Sroot  have_dlsym="0"
10383*d14625f7Srootfi
10384*d14625f7Sroot
10385*d14625f7Srootdone
10386*d14625f7Sroot
10387*d14625f7Sroot  if test "x$have_dlsym" = "x1" ; then
10388*d14625f7Sroot    $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
10389*d14625f7Sroot
10390*d14625f7Sroot  fi
10391*d14625f7Sroot
10392*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10393*d14625f7Sroot$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10394*d14625f7Srootif ${je_cv_pthread_atfork+:} false; then :
10395*d14625f7Sroot  $as_echo_n "(cached) " >&6
10396*d14625f7Srootelse
10397*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398*d14625f7Sroot/* end confdefs.h.  */
10399*d14625f7Sroot
10400*d14625f7Sroot#include <pthread.h>
10401*d14625f7Sroot
10402*d14625f7Srootint
10403*d14625f7Srootmain ()
10404*d14625f7Sroot{
10405*d14625f7Sroot
10406*d14625f7Sroot  pthread_atfork((void *)0, (void *)0, (void *)0);
10407*d14625f7Sroot
10408*d14625f7Sroot  ;
10409*d14625f7Sroot  return 0;
10410*d14625f7Sroot}
10411*d14625f7Sroot_ACEOF
10412*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10413*d14625f7Sroot  je_cv_pthread_atfork=yes
10414*d14625f7Srootelse
10415*d14625f7Sroot  je_cv_pthread_atfork=no
10416*d14625f7Srootfi
10417*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10418*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10419*d14625f7Srootfi
10420*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10421*d14625f7Sroot$as_echo "$je_cv_pthread_atfork" >&6; }
10422*d14625f7Sroot
10423*d14625f7Sroot  if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10424*d14625f7Sroot    $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
10425*d14625f7Sroot
10426*d14625f7Sroot  fi
10427*d14625f7Sroot
10428*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10429*d14625f7Sroot$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10430*d14625f7Srootif ${je_cv_pthread_setname_np+:} false; then :
10431*d14625f7Sroot  $as_echo_n "(cached) " >&6
10432*d14625f7Srootelse
10433*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434*d14625f7Sroot/* end confdefs.h.  */
10435*d14625f7Sroot
10436*d14625f7Sroot#include <pthread.h>
10437*d14625f7Sroot
10438*d14625f7Srootint
10439*d14625f7Srootmain ()
10440*d14625f7Sroot{
10441*d14625f7Sroot
10442*d14625f7Sroot  pthread_setname_np(pthread_self(), "setname_test");
10443*d14625f7Sroot
10444*d14625f7Sroot  ;
10445*d14625f7Sroot  return 0;
10446*d14625f7Sroot}
10447*d14625f7Sroot_ACEOF
10448*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10449*d14625f7Sroot  je_cv_pthread_setname_np=yes
10450*d14625f7Srootelse
10451*d14625f7Sroot  je_cv_pthread_setname_np=no
10452*d14625f7Srootfi
10453*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10454*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10455*d14625f7Srootfi
10456*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10457*d14625f7Sroot$as_echo "$je_cv_pthread_setname_np" >&6; }
10458*d14625f7Sroot
10459*d14625f7Sroot  if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10460*d14625f7Sroot    $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
10461*d14625f7Sroot
10462*d14625f7Sroot  fi
10463*d14625f7Srootfi
10464*d14625f7Sroot
10465*d14625f7SrootT_APPEND_V=-D_REENTRANT
10466*d14625f7Sroot  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10467*d14625f7Sroot  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10468*d14625f7Srootelse
10469*d14625f7Sroot  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10470*d14625f7Srootfi
10471*d14625f7Sroot
10472*d14625f7Sroot
10473*d14625f7Sroot
10474*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10475*d14625f7Sroot$as_echo_n "checking for library containing clock_gettime... " >&6; }
10476*d14625f7Srootif ${ac_cv_search_clock_gettime+:} false; then :
10477*d14625f7Sroot  $as_echo_n "(cached) " >&6
10478*d14625f7Srootelse
10479*d14625f7Sroot  ac_func_search_save_LIBS=$LIBS
10480*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481*d14625f7Sroot/* end confdefs.h.  */
10482*d14625f7Sroot
10483*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
10484*d14625f7Sroot   Use char because int might match the return type of a GCC
10485*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
10486*d14625f7Sroot#ifdef __cplusplus
10487*d14625f7Srootextern "C"
10488*d14625f7Sroot#endif
10489*d14625f7Srootchar clock_gettime ();
10490*d14625f7Srootint
10491*d14625f7Srootmain ()
10492*d14625f7Sroot{
10493*d14625f7Srootreturn clock_gettime ();
10494*d14625f7Sroot  ;
10495*d14625f7Sroot  return 0;
10496*d14625f7Sroot}
10497*d14625f7Sroot_ACEOF
10498*d14625f7Srootfor ac_lib in '' rt; do
10499*d14625f7Sroot  if test -z "$ac_lib"; then
10500*d14625f7Sroot    ac_res="none required"
10501*d14625f7Sroot  else
10502*d14625f7Sroot    ac_res=-l$ac_lib
10503*d14625f7Sroot    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10504*d14625f7Sroot  fi
10505*d14625f7Sroot  if ac_fn_c_try_link "$LINENO"; then :
10506*d14625f7Sroot  ac_cv_search_clock_gettime=$ac_res
10507*d14625f7Srootfi
10508*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10509*d14625f7Sroot    conftest$ac_exeext
10510*d14625f7Sroot  if ${ac_cv_search_clock_gettime+:} false; then :
10511*d14625f7Sroot  break
10512*d14625f7Srootfi
10513*d14625f7Srootdone
10514*d14625f7Srootif ${ac_cv_search_clock_gettime+:} false; then :
10515*d14625f7Sroot
10516*d14625f7Srootelse
10517*d14625f7Sroot  ac_cv_search_clock_gettime=no
10518*d14625f7Srootfi
10519*d14625f7Srootrm conftest.$ac_ext
10520*d14625f7SrootLIBS=$ac_func_search_save_LIBS
10521*d14625f7Srootfi
10522*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10523*d14625f7Sroot$as_echo "$ac_cv_search_clock_gettime" >&6; }
10524*d14625f7Srootac_res=$ac_cv_search_clock_gettime
10525*d14625f7Srootif test "$ac_res" != no; then :
10526*d14625f7Sroot  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10527*d14625f7Sroot
10528*d14625f7Srootfi
10529*d14625f7Sroot
10530*d14625f7Sroot
10531*d14625f7Srootif test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10532*d14625f7Sroot  if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10533*d14625f7Sroot    SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10534*d14625f7Sroot
10535*d14625f7Sroot
10536*d14625f7Sroot    unset ac_cv_search_clock_gettime
10537*d14625f7Sroot
10538*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10539*d14625f7Sroot$as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10540*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10541*d14625f7SrootT_APPEND_V=-dynamic
10542*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10543*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10544*d14625f7Srootelse
10545*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10546*d14625f7Srootfi
10547*d14625f7Sroot
10548*d14625f7Sroot
10549*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10550*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10551*d14625f7Srootelse
10552*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10553*d14625f7Srootfi
10554*d14625f7Sroot
10555*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556*d14625f7Sroot/* end confdefs.h.  */
10557*d14625f7Sroot
10558*d14625f7Sroot
10559*d14625f7Srootint
10560*d14625f7Srootmain ()
10561*d14625f7Sroot{
10562*d14625f7Sroot
10563*d14625f7Sroot    return 0;
10564*d14625f7Sroot
10565*d14625f7Sroot  ;
10566*d14625f7Sroot  return 0;
10567*d14625f7Sroot}
10568*d14625f7Sroot_ACEOF
10569*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
10570*d14625f7Sroot  je_cv_cflags_added=-dynamic
10571*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572*d14625f7Sroot$as_echo "yes" >&6; }
10573*d14625f7Srootelse
10574*d14625f7Sroot  je_cv_cflags_added=
10575*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576*d14625f7Sroot$as_echo "no" >&6; }
10577*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10578*d14625f7Sroot
10579*d14625f7Srootfi
10580*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10582*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10583*d14625f7Srootelse
10584*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10585*d14625f7Srootfi
10586*d14625f7Sroot
10587*d14625f7Sroot
10588*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10589*d14625f7Sroot$as_echo_n "checking for library containing clock_gettime... " >&6; }
10590*d14625f7Srootif ${ac_cv_search_clock_gettime+:} false; then :
10591*d14625f7Sroot  $as_echo_n "(cached) " >&6
10592*d14625f7Srootelse
10593*d14625f7Sroot  ac_func_search_save_LIBS=$LIBS
10594*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595*d14625f7Sroot/* end confdefs.h.  */
10596*d14625f7Sroot
10597*d14625f7Sroot/* Override any GCC internal prototype to avoid an error.
10598*d14625f7Sroot   Use char because int might match the return type of a GCC
10599*d14625f7Sroot   builtin and then its argument prototype would still apply.  */
10600*d14625f7Sroot#ifdef __cplusplus
10601*d14625f7Srootextern "C"
10602*d14625f7Sroot#endif
10603*d14625f7Srootchar clock_gettime ();
10604*d14625f7Srootint
10605*d14625f7Srootmain ()
10606*d14625f7Sroot{
10607*d14625f7Srootreturn clock_gettime ();
10608*d14625f7Sroot  ;
10609*d14625f7Sroot  return 0;
10610*d14625f7Sroot}
10611*d14625f7Sroot_ACEOF
10612*d14625f7Srootfor ac_lib in '' rt; do
10613*d14625f7Sroot  if test -z "$ac_lib"; then
10614*d14625f7Sroot    ac_res="none required"
10615*d14625f7Sroot  else
10616*d14625f7Sroot    ac_res=-l$ac_lib
10617*d14625f7Sroot    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10618*d14625f7Sroot  fi
10619*d14625f7Sroot  if ac_fn_c_try_link "$LINENO"; then :
10620*d14625f7Sroot  ac_cv_search_clock_gettime=$ac_res
10621*d14625f7Srootfi
10622*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10623*d14625f7Sroot    conftest$ac_exeext
10624*d14625f7Sroot  if ${ac_cv_search_clock_gettime+:} false; then :
10625*d14625f7Sroot  break
10626*d14625f7Srootfi
10627*d14625f7Srootdone
10628*d14625f7Srootif ${ac_cv_search_clock_gettime+:} false; then :
10629*d14625f7Sroot
10630*d14625f7Srootelse
10631*d14625f7Sroot  ac_cv_search_clock_gettime=no
10632*d14625f7Srootfi
10633*d14625f7Srootrm conftest.$ac_ext
10634*d14625f7SrootLIBS=$ac_func_search_save_LIBS
10635*d14625f7Srootfi
10636*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10637*d14625f7Sroot$as_echo "$ac_cv_search_clock_gettime" >&6; }
10638*d14625f7Srootac_res=$ac_cv_search_clock_gettime
10639*d14625f7Srootif test "$ac_res" != no; then :
10640*d14625f7Sroot  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10641*d14625f7Sroot
10642*d14625f7Srootfi
10643*d14625f7Sroot
10644*d14625f7Sroot
10645*d14625f7Sroot    CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10646*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10647*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10648*d14625f7Srootelse
10649*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10650*d14625f7Srootfi
10651*d14625f7Sroot
10652*d14625f7Sroot
10653*d14625f7Sroot  fi
10654*d14625f7Srootfi
10655*d14625f7Sroot
10656*d14625f7Sroot
10657*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
10658*d14625f7Sroot$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
10659*d14625f7Srootif ${je_cv_clock_monotonic_coarse+:} false; then :
10660*d14625f7Sroot  $as_echo_n "(cached) " >&6
10661*d14625f7Srootelse
10662*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663*d14625f7Sroot/* end confdefs.h.  */
10664*d14625f7Sroot
10665*d14625f7Sroot#include <time.h>
10666*d14625f7Sroot
10667*d14625f7Srootint
10668*d14625f7Srootmain ()
10669*d14625f7Sroot{
10670*d14625f7Sroot
10671*d14625f7Sroot	struct timespec ts;
10672*d14625f7Sroot
10673*d14625f7Sroot	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
10674*d14625f7Sroot
10675*d14625f7Sroot  ;
10676*d14625f7Sroot  return 0;
10677*d14625f7Sroot}
10678*d14625f7Sroot_ACEOF
10679*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10680*d14625f7Sroot  je_cv_clock_monotonic_coarse=yes
10681*d14625f7Srootelse
10682*d14625f7Sroot  je_cv_clock_monotonic_coarse=no
10683*d14625f7Srootfi
10684*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10685*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10686*d14625f7Srootfi
10687*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
10688*d14625f7Sroot$as_echo "$je_cv_clock_monotonic_coarse" >&6; }
10689*d14625f7Sroot
10690*d14625f7Srootif test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
10691*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
10692*d14625f7Sroot
10693*d14625f7Srootfi
10694*d14625f7Sroot
10695*d14625f7Sroot
10696*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
10697*d14625f7Sroot$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
10698*d14625f7Srootif ${je_cv_clock_monotonic+:} false; then :
10699*d14625f7Sroot  $as_echo_n "(cached) " >&6
10700*d14625f7Srootelse
10701*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702*d14625f7Sroot/* end confdefs.h.  */
10703*d14625f7Sroot
10704*d14625f7Sroot#include <unistd.h>
10705*d14625f7Sroot#include <time.h>
10706*d14625f7Sroot
10707*d14625f7Srootint
10708*d14625f7Srootmain ()
10709*d14625f7Sroot{
10710*d14625f7Sroot
10711*d14625f7Sroot	struct timespec ts;
10712*d14625f7Sroot
10713*d14625f7Sroot	clock_gettime(CLOCK_MONOTONIC, &ts);
10714*d14625f7Sroot#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
10715*d14625f7Sroot#  error _POSIX_MONOTONIC_CLOCK missing/invalid
10716*d14625f7Sroot#endif
10717*d14625f7Sroot
10718*d14625f7Sroot  ;
10719*d14625f7Sroot  return 0;
10720*d14625f7Sroot}
10721*d14625f7Sroot_ACEOF
10722*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10723*d14625f7Sroot  je_cv_clock_monotonic=yes
10724*d14625f7Srootelse
10725*d14625f7Sroot  je_cv_clock_monotonic=no
10726*d14625f7Srootfi
10727*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10728*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10729*d14625f7Srootfi
10730*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
10731*d14625f7Sroot$as_echo "$je_cv_clock_monotonic" >&6; }
10732*d14625f7Sroot
10733*d14625f7Srootif test "x${je_cv_clock_monotonic}" = "xyes" ; then
10734*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
10735*d14625f7Sroot
10736*d14625f7Srootfi
10737*d14625f7Sroot
10738*d14625f7Sroot
10739*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
10740*d14625f7Sroot$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
10741*d14625f7Srootif ${je_cv_mach_absolute_time+:} false; then :
10742*d14625f7Sroot  $as_echo_n "(cached) " >&6
10743*d14625f7Srootelse
10744*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745*d14625f7Sroot/* end confdefs.h.  */
10746*d14625f7Sroot
10747*d14625f7Sroot#include <mach/mach_time.h>
10748*d14625f7Sroot
10749*d14625f7Srootint
10750*d14625f7Srootmain ()
10751*d14625f7Sroot{
10752*d14625f7Sroot
10753*d14625f7Sroot	mach_absolute_time();
10754*d14625f7Sroot
10755*d14625f7Sroot  ;
10756*d14625f7Sroot  return 0;
10757*d14625f7Sroot}
10758*d14625f7Sroot_ACEOF
10759*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10760*d14625f7Sroot  je_cv_mach_absolute_time=yes
10761*d14625f7Srootelse
10762*d14625f7Sroot  je_cv_mach_absolute_time=no
10763*d14625f7Srootfi
10764*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10765*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10766*d14625f7Srootfi
10767*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
10768*d14625f7Sroot$as_echo "$je_cv_mach_absolute_time" >&6; }
10769*d14625f7Sroot
10770*d14625f7Srootif test "x${je_cv_mach_absolute_time}" = "xyes" ; then
10771*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
10772*d14625f7Sroot
10773*d14625f7Srootfi
10774*d14625f7Sroot
10775*d14625f7Sroot# Check whether --enable-syscall was given.
10776*d14625f7Srootif test "${enable_syscall+set}" = set; then :
10777*d14625f7Sroot  enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
10778*d14625f7Sroot  enable_syscall="0"
10779*d14625f7Srootelse
10780*d14625f7Sroot  enable_syscall="1"
10781*d14625f7Srootfi
10782*d14625f7Sroot
10783*d14625f7Srootelse
10784*d14625f7Sroot  enable_syscall="1"
10785*d14625f7Sroot
10786*d14625f7Srootfi
10787*d14625f7Sroot
10788*d14625f7Srootif test "x$enable_syscall" = "x1" ; then
10789*d14625f7Sroot      SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10790*d14625f7Sroot
10791*d14625f7Sroot
10792*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
10793*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
10794*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10795*d14625f7SrootT_APPEND_V=-Werror
10796*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10797*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10798*d14625f7Srootelse
10799*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10800*d14625f7Srootfi
10801*d14625f7Sroot
10802*d14625f7Sroot
10803*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10804*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10805*d14625f7Srootelse
10806*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10807*d14625f7Srootfi
10808*d14625f7Sroot
10809*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810*d14625f7Sroot/* end confdefs.h.  */
10811*d14625f7Sroot
10812*d14625f7Sroot
10813*d14625f7Srootint
10814*d14625f7Srootmain ()
10815*d14625f7Sroot{
10816*d14625f7Sroot
10817*d14625f7Sroot    return 0;
10818*d14625f7Sroot
10819*d14625f7Sroot  ;
10820*d14625f7Sroot  return 0;
10821*d14625f7Sroot}
10822*d14625f7Sroot_ACEOF
10823*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
10824*d14625f7Sroot  je_cv_cflags_added=-Werror
10825*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10826*d14625f7Sroot$as_echo "yes" >&6; }
10827*d14625f7Srootelse
10828*d14625f7Sroot  je_cv_cflags_added=
10829*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830*d14625f7Sroot$as_echo "no" >&6; }
10831*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10832*d14625f7Sroot
10833*d14625f7Srootfi
10834*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10836*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10837*d14625f7Srootelse
10838*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10839*d14625f7Srootfi
10840*d14625f7Sroot
10841*d14625f7Sroot
10842*d14625f7Sroot
10843*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
10844*d14625f7Sroot$as_echo_n "checking whether syscall(2) is compilable... " >&6; }
10845*d14625f7Srootif ${je_cv_syscall+:} false; then :
10846*d14625f7Sroot  $as_echo_n "(cached) " >&6
10847*d14625f7Srootelse
10848*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849*d14625f7Sroot/* end confdefs.h.  */
10850*d14625f7Sroot
10851*d14625f7Sroot#include <sys/syscall.h>
10852*d14625f7Sroot#include <unistd.h>
10853*d14625f7Sroot
10854*d14625f7Srootint
10855*d14625f7Srootmain ()
10856*d14625f7Sroot{
10857*d14625f7Sroot
10858*d14625f7Sroot	syscall(SYS_write, 2, "hello", 5);
10859*d14625f7Sroot
10860*d14625f7Sroot  ;
10861*d14625f7Sroot  return 0;
10862*d14625f7Sroot}
10863*d14625f7Sroot_ACEOF
10864*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
10865*d14625f7Sroot  je_cv_syscall=yes
10866*d14625f7Srootelse
10867*d14625f7Sroot  je_cv_syscall=no
10868*d14625f7Srootfi
10869*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
10870*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
10871*d14625f7Srootfi
10872*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
10873*d14625f7Sroot$as_echo "$je_cv_syscall" >&6; }
10874*d14625f7Sroot
10875*d14625f7Sroot  CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10876*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10877*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10878*d14625f7Srootelse
10879*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10880*d14625f7Srootfi
10881*d14625f7Sroot
10882*d14625f7Sroot
10883*d14625f7Sroot  if test "x$je_cv_syscall" = "xyes" ; then
10884*d14625f7Sroot    $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
10885*d14625f7Sroot
10886*d14625f7Sroot  fi
10887*d14625f7Srootfi
10888*d14625f7Sroot
10889*d14625f7Srootac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
10890*d14625f7Srootif test "x$ac_cv_func_secure_getenv" = xyes; then :
10891*d14625f7Sroot  have_secure_getenv="1"
10892*d14625f7Srootelse
10893*d14625f7Sroot  have_secure_getenv="0"
10894*d14625f7Sroot
10895*d14625f7Srootfi
10896*d14625f7Sroot
10897*d14625f7Srootif test "x$have_secure_getenv" = "x1" ; then
10898*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
10899*d14625f7Sroot
10900*d14625f7Srootfi
10901*d14625f7Sroot
10902*d14625f7Srootac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
10903*d14625f7Srootif test "x$ac_cv_func_sched_getcpu" = xyes; then :
10904*d14625f7Sroot  have_sched_getcpu="1"
10905*d14625f7Srootelse
10906*d14625f7Sroot  have_sched_getcpu="0"
10907*d14625f7Sroot
10908*d14625f7Srootfi
10909*d14625f7Sroot
10910*d14625f7Srootif test "x$have_sched_getcpu" = "x1" ; then
10911*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
10912*d14625f7Sroot
10913*d14625f7Srootfi
10914*d14625f7Sroot
10915*d14625f7Srootac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
10916*d14625f7Srootif test "x$ac_cv_func_sched_setaffinity" = xyes; then :
10917*d14625f7Sroot  have_sched_setaffinity="1"
10918*d14625f7Srootelse
10919*d14625f7Sroot  have_sched_setaffinity="0"
10920*d14625f7Sroot
10921*d14625f7Srootfi
10922*d14625f7Sroot
10923*d14625f7Srootif test "x$have_sched_setaffinity" = "x1" ; then
10924*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
10925*d14625f7Sroot
10926*d14625f7Srootfi
10927*d14625f7Sroot
10928*d14625f7Srootac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
10929*d14625f7Srootif test "x$ac_cv_func_issetugid" = xyes; then :
10930*d14625f7Sroot  have_issetugid="1"
10931*d14625f7Srootelse
10932*d14625f7Sroot  have_issetugid="0"
10933*d14625f7Sroot
10934*d14625f7Srootfi
10935*d14625f7Sroot
10936*d14625f7Srootif test "x$have_issetugid" = "x1" ; then
10937*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
10938*d14625f7Sroot
10939*d14625f7Srootfi
10940*d14625f7Sroot
10941*d14625f7Srootac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
10942*d14625f7Srootif test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
10943*d14625f7Sroot  have__malloc_thread_cleanup="1"
10944*d14625f7Srootelse
10945*d14625f7Sroot  have__malloc_thread_cleanup="0"
10946*d14625f7Sroot
10947*d14625f7Srootfi
10948*d14625f7Sroot
10949*d14625f7Srootif test "x$have__malloc_thread_cleanup" = "x1" ; then
10950*d14625f7Sroot  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
10951*d14625f7Sroot
10952*d14625f7Sroot  wrap_syms="${wrap_syms} _malloc_thread_cleanup"
10953*d14625f7Sroot  force_tls="1"
10954*d14625f7Srootfi
10955*d14625f7Sroot
10956*d14625f7Srootac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
10957*d14625f7Srootif test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
10958*d14625f7Sroot  have__pthread_mutex_init_calloc_cb="1"
10959*d14625f7Srootelse
10960*d14625f7Sroot  have__pthread_mutex_init_calloc_cb="0"
10961*d14625f7Sroot
10962*d14625f7Srootfi
10963*d14625f7Sroot
10964*d14625f7Srootif test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
10965*d14625f7Sroot  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
10966*d14625f7Sroot
10967*d14625f7Sroot  wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
10968*d14625f7Srootfi
10969*d14625f7Sroot
10970*d14625f7Sroot# Check whether --enable-lazy_lock was given.
10971*d14625f7Srootif test "${enable_lazy_lock+set}" = set; then :
10972*d14625f7Sroot  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
10973*d14625f7Sroot  enable_lazy_lock="0"
10974*d14625f7Srootelse
10975*d14625f7Sroot  enable_lazy_lock="1"
10976*d14625f7Srootfi
10977*d14625f7Sroot
10978*d14625f7Srootelse
10979*d14625f7Sroot  enable_lazy_lock=""
10980*d14625f7Sroot
10981*d14625f7Srootfi
10982*d14625f7Sroot
10983*d14625f7Srootif test "x${enable_lazy_lock}" = "x" ; then
10984*d14625f7Sroot  if test "x${force_lazy_lock}" = "x1" ; then
10985*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
10986*d14625f7Sroot$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
10987*d14625f7Sroot    enable_lazy_lock="1"
10988*d14625f7Sroot  else
10989*d14625f7Sroot    enable_lazy_lock="0"
10990*d14625f7Sroot  fi
10991*d14625f7Srootfi
10992*d14625f7Srootif test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
10993*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
10994*d14625f7Sroot$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
10995*d14625f7Sroot  enable_lazy_lock="0"
10996*d14625f7Srootfi
10997*d14625f7Srootif test "x$enable_lazy_lock" = "x1" ; then
10998*d14625f7Sroot  if test "x$have_dlsym" = "x1" ; then
10999*d14625f7Sroot    $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
11000*d14625f7Sroot
11001*d14625f7Sroot  else
11002*d14625f7Sroot    as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11003*d14625f7Sroot  fi
11004*d14625f7Srootfi
11005*d14625f7Sroot
11006*d14625f7Sroot
11007*d14625f7Srootif test "x${force_tls}" = "x1" ; then
11008*d14625f7Sroot  enable_tls="1"
11009*d14625f7Srootelif test "x${force_tls}" = "x0" ; then
11010*d14625f7Sroot  enable_tls="0"
11011*d14625f7Srootelse
11012*d14625f7Sroot  enable_tls="1"
11013*d14625f7Srootfi
11014*d14625f7Srootif test "x${enable_tls}" = "x1" ; then
11015*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11016*d14625f7Sroot$as_echo_n "checking for TLS... " >&6; }
11017*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018*d14625f7Sroot/* end confdefs.h.  */
11019*d14625f7Sroot
11020*d14625f7Sroot    __thread int x;
11021*d14625f7Sroot
11022*d14625f7Srootint
11023*d14625f7Srootmain ()
11024*d14625f7Sroot{
11025*d14625f7Sroot
11026*d14625f7Sroot    x = 42;
11027*d14625f7Sroot
11028*d14625f7Sroot    return 0;
11029*d14625f7Sroot
11030*d14625f7Sroot  ;
11031*d14625f7Sroot  return 0;
11032*d14625f7Sroot}
11033*d14625f7Sroot_ACEOF
11034*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
11035*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036*d14625f7Sroot$as_echo "yes" >&6; }
11037*d14625f7Srootelse
11038*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039*d14625f7Sroot$as_echo "no" >&6; }
11040*d14625f7Sroot              enable_tls="0"
11041*d14625f7Srootfi
11042*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043*d14625f7Srootelse
11044*d14625f7Sroot  enable_tls="0"
11045*d14625f7Srootfi
11046*d14625f7Sroot
11047*d14625f7Srootif test "x${enable_tls}" = "x1" ; then
11048*d14625f7Sroot  cat >>confdefs.h <<_ACEOF
11049*d14625f7Sroot#define JEMALLOC_TLS
11050*d14625f7Sroot_ACEOF
11051*d14625f7Sroot
11052*d14625f7Srootfi
11053*d14625f7Sroot
11054*d14625f7Sroot
11055*d14625f7Sroot
11056*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11057*d14625f7Sroot$as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11058*d14625f7Srootif ${je_cv_c11_atomics+:} false; then :
11059*d14625f7Sroot  $as_echo_n "(cached) " >&6
11060*d14625f7Srootelse
11061*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062*d14625f7Sroot/* end confdefs.h.  */
11063*d14625f7Sroot
11064*d14625f7Sroot#include <stdint.h>
11065*d14625f7Sroot#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11066*d14625f7Sroot#include <stdatomic.h>
11067*d14625f7Sroot#else
11068*d14625f7Sroot#error Atomics not available
11069*d14625f7Sroot#endif
11070*d14625f7Sroot
11071*d14625f7Srootint
11072*d14625f7Srootmain ()
11073*d14625f7Sroot{
11074*d14625f7Sroot
11075*d14625f7Sroot    uint64_t *p = (uint64_t *)0;
11076*d14625f7Sroot    uint64_t x = 1;
11077*d14625f7Sroot    volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11078*d14625f7Sroot    uint64_t r = atomic_fetch_add(a, x) + x;
11079*d14625f7Sroot    return r == 0;
11080*d14625f7Sroot
11081*d14625f7Sroot  ;
11082*d14625f7Sroot  return 0;
11083*d14625f7Sroot}
11084*d14625f7Sroot_ACEOF
11085*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11086*d14625f7Sroot  je_cv_c11_atomics=yes
11087*d14625f7Srootelse
11088*d14625f7Sroot  je_cv_c11_atomics=no
11089*d14625f7Srootfi
11090*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11091*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11092*d14625f7Srootfi
11093*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11094*d14625f7Sroot$as_echo "$je_cv_c11_atomics" >&6; }
11095*d14625f7Sroot
11096*d14625f7Srootif test "x${je_cv_c11_atomics}" = "xyes" ; then
11097*d14625f7Sroot  $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11098*d14625f7Sroot
11099*d14625f7Srootfi
11100*d14625f7Sroot
11101*d14625f7Sroot
11102*d14625f7Sroot
11103*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11104*d14625f7Sroot$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11105*d14625f7Srootif ${je_cv_gcc_atomic_atomics+:} false; then :
11106*d14625f7Sroot  $as_echo_n "(cached) " >&6
11107*d14625f7Srootelse
11108*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109*d14625f7Sroot/* end confdefs.h.  */
11110*d14625f7Sroot
11111*d14625f7Sroot
11112*d14625f7Srootint
11113*d14625f7Srootmain ()
11114*d14625f7Sroot{
11115*d14625f7Sroot
11116*d14625f7Sroot    int x = 0;
11117*d14625f7Sroot    int val = 1;
11118*d14625f7Sroot    int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11119*d14625f7Sroot    int after_add = x;
11120*d14625f7Sroot    return after_add == 1;
11121*d14625f7Sroot
11122*d14625f7Sroot  ;
11123*d14625f7Sroot  return 0;
11124*d14625f7Sroot}
11125*d14625f7Sroot_ACEOF
11126*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11127*d14625f7Sroot  je_cv_gcc_atomic_atomics=yes
11128*d14625f7Srootelse
11129*d14625f7Sroot  je_cv_gcc_atomic_atomics=no
11130*d14625f7Srootfi
11131*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11132*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11133*d14625f7Srootfi
11134*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11135*d14625f7Sroot$as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11136*d14625f7Sroot
11137*d14625f7Srootif test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11138*d14625f7Sroot  $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11139*d14625f7Sroot
11140*d14625f7Srootfi
11141*d14625f7Sroot
11142*d14625f7Sroot
11143*d14625f7Sroot
11144*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11145*d14625f7Sroot$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11146*d14625f7Srootif ${je_cv_gcc_sync_atomics+:} false; then :
11147*d14625f7Sroot  $as_echo_n "(cached) " >&6
11148*d14625f7Srootelse
11149*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150*d14625f7Sroot/* end confdefs.h.  */
11151*d14625f7Sroot
11152*d14625f7Sroot
11153*d14625f7Srootint
11154*d14625f7Srootmain ()
11155*d14625f7Sroot{
11156*d14625f7Sroot
11157*d14625f7Sroot    int x = 0;
11158*d14625f7Sroot    int before_add = __sync_fetch_and_add(&x, 1);
11159*d14625f7Sroot    int after_add = x;
11160*d14625f7Sroot    return (before_add == 0) && (after_add == 1);
11161*d14625f7Sroot
11162*d14625f7Sroot  ;
11163*d14625f7Sroot  return 0;
11164*d14625f7Sroot}
11165*d14625f7Sroot_ACEOF
11166*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11167*d14625f7Sroot  je_cv_gcc_sync_atomics=yes
11168*d14625f7Srootelse
11169*d14625f7Sroot  je_cv_gcc_sync_atomics=no
11170*d14625f7Srootfi
11171*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11172*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11173*d14625f7Srootfi
11174*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11175*d14625f7Sroot$as_echo "$je_cv_gcc_sync_atomics" >&6; }
11176*d14625f7Sroot
11177*d14625f7Srootif test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11178*d14625f7Sroot  $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11179*d14625f7Sroot
11180*d14625f7Srootfi
11181*d14625f7Sroot
11182*d14625f7Sroot
11183*d14625f7Sroot
11184*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11185*d14625f7Sroot$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11186*d14625f7Srootif ${je_cv_osatomic+:} false; then :
11187*d14625f7Sroot  $as_echo_n "(cached) " >&6
11188*d14625f7Srootelse
11189*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190*d14625f7Sroot/* end confdefs.h.  */
11191*d14625f7Sroot
11192*d14625f7Sroot#include <libkern/OSAtomic.h>
11193*d14625f7Sroot#include <inttypes.h>
11194*d14625f7Sroot
11195*d14625f7Srootint
11196*d14625f7Srootmain ()
11197*d14625f7Sroot{
11198*d14625f7Sroot
11199*d14625f7Sroot	{
11200*d14625f7Sroot		int32_t x32 = 0;
11201*d14625f7Sroot		volatile int32_t *x32p = &x32;
11202*d14625f7Sroot		OSAtomicAdd32(1, x32p);
11203*d14625f7Sroot	}
11204*d14625f7Sroot	{
11205*d14625f7Sroot		int64_t x64 = 0;
11206*d14625f7Sroot		volatile int64_t *x64p = &x64;
11207*d14625f7Sroot		OSAtomicAdd64(1, x64p);
11208*d14625f7Sroot	}
11209*d14625f7Sroot
11210*d14625f7Sroot  ;
11211*d14625f7Sroot  return 0;
11212*d14625f7Sroot}
11213*d14625f7Sroot_ACEOF
11214*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11215*d14625f7Sroot  je_cv_osatomic=yes
11216*d14625f7Srootelse
11217*d14625f7Sroot  je_cv_osatomic=no
11218*d14625f7Srootfi
11219*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11220*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11221*d14625f7Srootfi
11222*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11223*d14625f7Sroot$as_echo "$je_cv_osatomic" >&6; }
11224*d14625f7Sroot
11225*d14625f7Srootif test "x${je_cv_osatomic}" = "xyes" ; then
11226*d14625f7Sroot  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
11227*d14625f7Sroot
11228*d14625f7Srootfi
11229*d14625f7Sroot
11230*d14625f7Sroot
11231*d14625f7Sroot
11232*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11233*d14625f7Sroot$as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11234*d14625f7Srootif ${je_cv_madvise+:} false; then :
11235*d14625f7Sroot  $as_echo_n "(cached) " >&6
11236*d14625f7Srootelse
11237*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238*d14625f7Sroot/* end confdefs.h.  */
11239*d14625f7Sroot
11240*d14625f7Sroot#include <sys/mman.h>
11241*d14625f7Sroot
11242*d14625f7Srootint
11243*d14625f7Srootmain ()
11244*d14625f7Sroot{
11245*d14625f7Sroot
11246*d14625f7Sroot	madvise((void *)0, 0, 0);
11247*d14625f7Sroot
11248*d14625f7Sroot  ;
11249*d14625f7Sroot  return 0;
11250*d14625f7Sroot}
11251*d14625f7Sroot_ACEOF
11252*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11253*d14625f7Sroot  je_cv_madvise=yes
11254*d14625f7Srootelse
11255*d14625f7Sroot  je_cv_madvise=no
11256*d14625f7Srootfi
11257*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11258*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11259*d14625f7Srootfi
11260*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11261*d14625f7Sroot$as_echo "$je_cv_madvise" >&6; }
11262*d14625f7Sroot
11263*d14625f7Srootif test "x${je_cv_madvise}" = "xyes" ; then
11264*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
11265*d14625f7Sroot
11266*d14625f7Sroot
11267*d14625f7Sroot
11268*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11269*d14625f7Sroot$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11270*d14625f7Srootif ${je_cv_madv_free+:} false; then :
11271*d14625f7Sroot  $as_echo_n "(cached) " >&6
11272*d14625f7Srootelse
11273*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274*d14625f7Sroot/* end confdefs.h.  */
11275*d14625f7Sroot
11276*d14625f7Sroot#include <sys/mman.h>
11277*d14625f7Sroot
11278*d14625f7Srootint
11279*d14625f7Srootmain ()
11280*d14625f7Sroot{
11281*d14625f7Sroot
11282*d14625f7Sroot	madvise((void *)0, 0, MADV_FREE);
11283*d14625f7Sroot
11284*d14625f7Sroot  ;
11285*d14625f7Sroot  return 0;
11286*d14625f7Sroot}
11287*d14625f7Sroot_ACEOF
11288*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11289*d14625f7Sroot  je_cv_madv_free=yes
11290*d14625f7Srootelse
11291*d14625f7Sroot  je_cv_madv_free=no
11292*d14625f7Srootfi
11293*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11294*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11295*d14625f7Srootfi
11296*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11297*d14625f7Sroot$as_echo "$je_cv_madv_free" >&6; }
11298*d14625f7Sroot
11299*d14625f7Sroot  if test "x${je_cv_madv_free}" = "xyes" ; then
11300*d14625f7Sroot    $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11301*d14625f7Sroot
11302*d14625f7Sroot  elif test "x${je_cv_madvise}" = "xyes" ; then
11303*d14625f7Sroot    case "${host_cpu}" in i686|x86_64)
11304*d14625f7Sroot        case "${host}" in *-*-linux*)
11305*d14625f7Sroot            $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11306*d14625f7Sroot
11307*d14625f7Sroot            $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
11308*d14625f7Sroot
11309*d14625f7Sroot	    ;;
11310*d14625f7Sroot        esac
11311*d14625f7Sroot        ;;
11312*d14625f7Sroot    esac
11313*d14625f7Sroot  fi
11314*d14625f7Sroot
11315*d14625f7Sroot
11316*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11317*d14625f7Sroot$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11318*d14625f7Srootif ${je_cv_madv_dontneed+:} false; then :
11319*d14625f7Sroot  $as_echo_n "(cached) " >&6
11320*d14625f7Srootelse
11321*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322*d14625f7Sroot/* end confdefs.h.  */
11323*d14625f7Sroot
11324*d14625f7Sroot#include <sys/mman.h>
11325*d14625f7Sroot
11326*d14625f7Srootint
11327*d14625f7Srootmain ()
11328*d14625f7Sroot{
11329*d14625f7Sroot
11330*d14625f7Sroot	madvise((void *)0, 0, MADV_DONTNEED);
11331*d14625f7Sroot
11332*d14625f7Sroot  ;
11333*d14625f7Sroot  return 0;
11334*d14625f7Sroot}
11335*d14625f7Sroot_ACEOF
11336*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11337*d14625f7Sroot  je_cv_madv_dontneed=yes
11338*d14625f7Srootelse
11339*d14625f7Sroot  je_cv_madv_dontneed=no
11340*d14625f7Srootfi
11341*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11342*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11343*d14625f7Srootfi
11344*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11345*d14625f7Sroot$as_echo "$je_cv_madv_dontneed" >&6; }
11346*d14625f7Sroot
11347*d14625f7Sroot  if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11348*d14625f7Sroot    $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
11349*d14625f7Sroot
11350*d14625f7Sroot  fi
11351*d14625f7Sroot
11352*d14625f7Sroot
11353*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11354*d14625f7Sroot$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11355*d14625f7Srootif ${je_cv_madv_dontdump+:} false; then :
11356*d14625f7Sroot  $as_echo_n "(cached) " >&6
11357*d14625f7Srootelse
11358*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359*d14625f7Sroot/* end confdefs.h.  */
11360*d14625f7Sroot
11361*d14625f7Sroot#include <sys/mman.h>
11362*d14625f7Sroot
11363*d14625f7Srootint
11364*d14625f7Srootmain ()
11365*d14625f7Sroot{
11366*d14625f7Sroot
11367*d14625f7Sroot	madvise((void *)0, 0, MADV_DONTDUMP);
11368*d14625f7Sroot	madvise((void *)0, 0, MADV_DODUMP);
11369*d14625f7Sroot
11370*d14625f7Sroot  ;
11371*d14625f7Sroot  return 0;
11372*d14625f7Sroot}
11373*d14625f7Sroot_ACEOF
11374*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11375*d14625f7Sroot  je_cv_madv_dontdump=yes
11376*d14625f7Srootelse
11377*d14625f7Sroot  je_cv_madv_dontdump=no
11378*d14625f7Srootfi
11379*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11380*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11381*d14625f7Srootfi
11382*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11383*d14625f7Sroot$as_echo "$je_cv_madv_dontdump" >&6; }
11384*d14625f7Sroot
11385*d14625f7Sroot  if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11386*d14625f7Sroot    $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
11387*d14625f7Sroot
11388*d14625f7Sroot  fi
11389*d14625f7Sroot
11390*d14625f7Sroot
11391*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11392*d14625f7Sroot$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11393*d14625f7Srootif ${je_cv_thp+:} false; then :
11394*d14625f7Sroot  $as_echo_n "(cached) " >&6
11395*d14625f7Srootelse
11396*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397*d14625f7Sroot/* end confdefs.h.  */
11398*d14625f7Sroot
11399*d14625f7Sroot#include <sys/mman.h>
11400*d14625f7Sroot
11401*d14625f7Srootint
11402*d14625f7Srootmain ()
11403*d14625f7Sroot{
11404*d14625f7Sroot
11405*d14625f7Sroot	madvise((void *)0, 0, MADV_HUGEPAGE);
11406*d14625f7Sroot	madvise((void *)0, 0, MADV_NOHUGEPAGE);
11407*d14625f7Sroot
11408*d14625f7Sroot  ;
11409*d14625f7Sroot  return 0;
11410*d14625f7Sroot}
11411*d14625f7Sroot_ACEOF
11412*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11413*d14625f7Sroot  je_cv_thp=yes
11414*d14625f7Srootelse
11415*d14625f7Sroot  je_cv_thp=no
11416*d14625f7Srootfi
11417*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11418*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11419*d14625f7Srootfi
11420*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11421*d14625f7Sroot$as_echo "$je_cv_thp" >&6; }
11422*d14625f7Sroot
11423*d14625f7Srootcase "${host_cpu}" in
11424*d14625f7Sroot  arm*)
11425*d14625f7Sroot    ;;
11426*d14625f7Sroot  *)
11427*d14625f7Sroot  if test "x${je_cv_thp}" = "xyes" ; then
11428*d14625f7Sroot    $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
11429*d14625f7Sroot
11430*d14625f7Sroot  fi
11431*d14625f7Sroot  ;;
11432*d14625f7Srootesac
11433*d14625f7Srootfi
11434*d14625f7Sroot
11435*d14625f7Sroot
11436*d14625f7Sroot
11437*d14625f7Sroot
11438*d14625f7Srootif test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
11439*d14625f7Sroot
11440*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
11441*d14625f7Sroot$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
11442*d14625f7Srootif ${je_cv_sync_compare_and_swap_4+:} false; then :
11443*d14625f7Sroot  $as_echo_n "(cached) " >&6
11444*d14625f7Srootelse
11445*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446*d14625f7Sroot/* end confdefs.h.  */
11447*d14625f7Sroot
11448*d14625f7Sroot                                                 #include <stdint.h>
11449*d14625f7Sroot
11450*d14625f7Srootint
11451*d14625f7Srootmain ()
11452*d14625f7Sroot{
11453*d14625f7Sroot
11454*d14625f7Sroot                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
11455*d14625f7Sroot                                                 {
11456*d14625f7Sroot                                                    uint32_t x32 = 0;
11457*d14625f7Sroot                                                    __sync_add_and_fetch(&x32, 42);
11458*d14625f7Sroot                                                    __sync_sub_and_fetch(&x32, 1);
11459*d14625f7Sroot                                                 }
11460*d14625f7Sroot                                                 #else
11461*d14625f7Sroot                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
11462*d14625f7Sroot                                                 #endif
11463*d14625f7Sroot
11464*d14625f7Sroot  ;
11465*d14625f7Sroot  return 0;
11466*d14625f7Sroot}
11467*d14625f7Sroot_ACEOF
11468*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11469*d14625f7Sroot  je_cv_sync_compare_and_swap_4=yes
11470*d14625f7Srootelse
11471*d14625f7Sroot  je_cv_sync_compare_and_swap_4=no
11472*d14625f7Srootfi
11473*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11474*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11475*d14625f7Srootfi
11476*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
11477*d14625f7Sroot$as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
11478*d14625f7Sroot
11479*d14625f7Sroot  if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
11480*d14625f7Sroot    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
11481*d14625f7Sroot
11482*d14625f7Sroot  fi
11483*d14625f7Sroot
11484*d14625f7Sroot
11485*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
11486*d14625f7Sroot$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
11487*d14625f7Srootif ${je_cv_sync_compare_and_swap_8+:} false; then :
11488*d14625f7Sroot  $as_echo_n "(cached) " >&6
11489*d14625f7Srootelse
11490*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491*d14625f7Sroot/* end confdefs.h.  */
11492*d14625f7Sroot
11493*d14625f7Sroot                                                 #include <stdint.h>
11494*d14625f7Sroot
11495*d14625f7Srootint
11496*d14625f7Srootmain ()
11497*d14625f7Sroot{
11498*d14625f7Sroot
11499*d14625f7Sroot                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
11500*d14625f7Sroot                                                 {
11501*d14625f7Sroot                                                    uint64_t x64 = 0;
11502*d14625f7Sroot                                                    __sync_add_and_fetch(&x64, 42);
11503*d14625f7Sroot                                                    __sync_sub_and_fetch(&x64, 1);
11504*d14625f7Sroot                                                 }
11505*d14625f7Sroot                                                 #else
11506*d14625f7Sroot                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
11507*d14625f7Sroot                                                 #endif
11508*d14625f7Sroot
11509*d14625f7Sroot  ;
11510*d14625f7Sroot  return 0;
11511*d14625f7Sroot}
11512*d14625f7Sroot_ACEOF
11513*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11514*d14625f7Sroot  je_cv_sync_compare_and_swap_8=yes
11515*d14625f7Srootelse
11516*d14625f7Sroot  je_cv_sync_compare_and_swap_8=no
11517*d14625f7Srootfi
11518*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11519*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11520*d14625f7Srootfi
11521*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
11522*d14625f7Sroot$as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
11523*d14625f7Sroot
11524*d14625f7Sroot  if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
11525*d14625f7Sroot    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
11526*d14625f7Sroot
11527*d14625f7Sroot  fi
11528*d14625f7Sroot
11529*d14625f7Srootfi
11530*d14625f7Sroot
11531*d14625f7Sroot
11532*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11533*d14625f7Sroot$as_echo_n "checking for __builtin_clz... " >&6; }
11534*d14625f7Srootif ${je_cv_builtin_clz+:} false; then :
11535*d14625f7Sroot  $as_echo_n "(cached) " >&6
11536*d14625f7Srootelse
11537*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538*d14625f7Sroot/* end confdefs.h.  */
11539*d14625f7Sroot
11540*d14625f7Srootint
11541*d14625f7Srootmain ()
11542*d14625f7Sroot{
11543*d14625f7Sroot
11544*d14625f7Sroot                                                {
11545*d14625f7Sroot                                                        unsigned x = 0;
11546*d14625f7Sroot                                                        int y = __builtin_clz(x);
11547*d14625f7Sroot                                                }
11548*d14625f7Sroot                                                {
11549*d14625f7Sroot                                                        unsigned long x = 0;
11550*d14625f7Sroot                                                        int y = __builtin_clzl(x);
11551*d14625f7Sroot                                                }
11552*d14625f7Sroot
11553*d14625f7Sroot  ;
11554*d14625f7Sroot  return 0;
11555*d14625f7Sroot}
11556*d14625f7Sroot_ACEOF
11557*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11558*d14625f7Sroot  je_cv_builtin_clz=yes
11559*d14625f7Srootelse
11560*d14625f7Sroot  je_cv_builtin_clz=no
11561*d14625f7Srootfi
11562*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11563*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11564*d14625f7Srootfi
11565*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11566*d14625f7Sroot$as_echo "$je_cv_builtin_clz" >&6; }
11567*d14625f7Sroot
11568*d14625f7Srootif test "x${je_cv_builtin_clz}" = "xyes" ; then
11569*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
11570*d14625f7Sroot
11571*d14625f7Srootfi
11572*d14625f7Sroot
11573*d14625f7Sroot
11574*d14625f7Sroot
11575*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
11576*d14625f7Sroot$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
11577*d14625f7Srootif ${je_cv_os_unfair_lock+:} false; then :
11578*d14625f7Sroot  $as_echo_n "(cached) " >&6
11579*d14625f7Srootelse
11580*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581*d14625f7Sroot/* end confdefs.h.  */
11582*d14625f7Sroot
11583*d14625f7Sroot#include <os/lock.h>
11584*d14625f7Sroot#include <AvailabilityMacros.h>
11585*d14625f7Sroot
11586*d14625f7Srootint
11587*d14625f7Srootmain ()
11588*d14625f7Sroot{
11589*d14625f7Sroot
11590*d14625f7Sroot	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
11591*d14625f7Sroot	#error "os_unfair_lock is not supported"
11592*d14625f7Sroot	#else
11593*d14625f7Sroot	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
11594*d14625f7Sroot	os_unfair_lock_lock(&lock);
11595*d14625f7Sroot	os_unfair_lock_unlock(&lock);
11596*d14625f7Sroot	#endif
11597*d14625f7Sroot
11598*d14625f7Sroot  ;
11599*d14625f7Sroot  return 0;
11600*d14625f7Sroot}
11601*d14625f7Sroot_ACEOF
11602*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11603*d14625f7Sroot  je_cv_os_unfair_lock=yes
11604*d14625f7Srootelse
11605*d14625f7Sroot  je_cv_os_unfair_lock=no
11606*d14625f7Srootfi
11607*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11608*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11609*d14625f7Srootfi
11610*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
11611*d14625f7Sroot$as_echo "$je_cv_os_unfair_lock" >&6; }
11612*d14625f7Sroot
11613*d14625f7Srootif test "x${je_cv_os_unfair_lock}" = "xyes" ; then
11614*d14625f7Sroot  $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
11615*d14625f7Sroot
11616*d14625f7Srootfi
11617*d14625f7Sroot
11618*d14625f7Sroot
11619*d14625f7Sroot
11620*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
11621*d14625f7Sroot$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
11622*d14625f7Srootif ${je_cv_osspin+:} false; then :
11623*d14625f7Sroot  $as_echo_n "(cached) " >&6
11624*d14625f7Srootelse
11625*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626*d14625f7Sroot/* end confdefs.h.  */
11627*d14625f7Sroot
11628*d14625f7Sroot#include <libkern/OSAtomic.h>
11629*d14625f7Sroot#include <inttypes.h>
11630*d14625f7Sroot
11631*d14625f7Srootint
11632*d14625f7Srootmain ()
11633*d14625f7Sroot{
11634*d14625f7Sroot
11635*d14625f7Sroot	OSSpinLock lock = 0;
11636*d14625f7Sroot	OSSpinLockLock(&lock);
11637*d14625f7Sroot	OSSpinLockUnlock(&lock);
11638*d14625f7Sroot
11639*d14625f7Sroot  ;
11640*d14625f7Sroot  return 0;
11641*d14625f7Sroot}
11642*d14625f7Sroot_ACEOF
11643*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11644*d14625f7Sroot  je_cv_osspin=yes
11645*d14625f7Srootelse
11646*d14625f7Sroot  je_cv_osspin=no
11647*d14625f7Srootfi
11648*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11649*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11650*d14625f7Srootfi
11651*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
11652*d14625f7Sroot$as_echo "$je_cv_osspin" >&6; }
11653*d14625f7Sroot
11654*d14625f7Srootif test "x${je_cv_osspin}" = "xyes" ; then
11655*d14625f7Sroot  $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
11656*d14625f7Sroot
11657*d14625f7Srootfi
11658*d14625f7Sroot
11659*d14625f7Sroot
11660*d14625f7Sroot# Check whether --enable-zone-allocator was given.
11661*d14625f7Srootif test "${enable_zone_allocator+set}" = set; then :
11662*d14625f7Sroot  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
11663*d14625f7Sroot  enable_zone_allocator="0"
11664*d14625f7Srootelse
11665*d14625f7Sroot  enable_zone_allocator="1"
11666*d14625f7Srootfi
11667*d14625f7Sroot
11668*d14625f7Srootelse
11669*d14625f7Sroot  if test "x${abi}" = "xmacho"; then
11670*d14625f7Sroot  enable_zone_allocator="1"
11671*d14625f7Srootfi
11672*d14625f7Sroot
11673*d14625f7Sroot
11674*d14625f7Srootfi
11675*d14625f7Sroot
11676*d14625f7Sroot
11677*d14625f7Sroot
11678*d14625f7Srootif test "x${enable_zone_allocator}" = "x1" ; then
11679*d14625f7Sroot  if test "x${abi}" != "xmacho"; then
11680*d14625f7Sroot    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
11681*d14625f7Sroot  fi
11682*d14625f7Sroot  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
11683*d14625f7Sroot
11684*d14625f7Srootfi
11685*d14625f7Sroot
11686*d14625f7Sroot# Check whether --enable-initial-exec-tls was given.
11687*d14625f7Srootif test "${enable_initial_exec_tls+set}" = set; then :
11688*d14625f7Sroot  enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
11689*d14625f7Sroot  enable_initial_exec_tls="0"
11690*d14625f7Srootelse
11691*d14625f7Sroot  enable_initial_exec_tls="1"
11692*d14625f7Srootfi
11693*d14625f7Sroot
11694*d14625f7Srootelse
11695*d14625f7Sroot  enable_initial_exec_tls="1"
11696*d14625f7Sroot
11697*d14625f7Srootfi
11698*d14625f7Sroot
11699*d14625f7Sroot
11700*d14625f7Sroot
11701*d14625f7Srootif test "x${je_cv_tls_model}" = "xyes" -a \
11702*d14625f7Sroot       "x${enable_initial_exec_tls}" = "x1" ; then
11703*d14625f7Sroot  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
11704*d14625f7Sroot
11705*d14625f7Srootelse
11706*d14625f7Sroot  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
11707*d14625f7Sroot
11708*d14625f7Srootfi
11709*d14625f7Sroot
11710*d14625f7Sroot
11711*d14625f7Srootif test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
11712*d14625f7Sroot    -a "x${je_cv_os_unfair_lock}" != "xyes" \
11713*d14625f7Sroot    -a "x${je_cv_osspin}" != "xyes" ; then
11714*d14625f7Sroot  $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
11715*d14625f7Sroot
11716*d14625f7Srootfi
11717*d14625f7Sroot
11718*d14625f7Sroot
11719*d14625f7Sroot
11720*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
11721*d14625f7Sroot$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
11722*d14625f7Srootif ${je_cv_glibc_malloc_hook+:} false; then :
11723*d14625f7Sroot  $as_echo_n "(cached) " >&6
11724*d14625f7Srootelse
11725*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726*d14625f7Sroot/* end confdefs.h.  */
11727*d14625f7Sroot
11728*d14625f7Sroot#include <stddef.h>
11729*d14625f7Sroot
11730*d14625f7Srootextern void (* __free_hook)(void *ptr);
11731*d14625f7Srootextern void *(* __malloc_hook)(size_t size);
11732*d14625f7Srootextern void *(* __realloc_hook)(void *ptr, size_t size);
11733*d14625f7Sroot
11734*d14625f7Srootint
11735*d14625f7Srootmain ()
11736*d14625f7Sroot{
11737*d14625f7Sroot
11738*d14625f7Sroot  void *ptr = 0L;
11739*d14625f7Sroot  if (__malloc_hook) ptr = __malloc_hook(1);
11740*d14625f7Sroot  if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
11741*d14625f7Sroot  if (__free_hook && ptr) __free_hook(ptr);
11742*d14625f7Sroot
11743*d14625f7Sroot  ;
11744*d14625f7Sroot  return 0;
11745*d14625f7Sroot}
11746*d14625f7Sroot_ACEOF
11747*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11748*d14625f7Sroot  je_cv_glibc_malloc_hook=yes
11749*d14625f7Srootelse
11750*d14625f7Sroot  je_cv_glibc_malloc_hook=no
11751*d14625f7Srootfi
11752*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11753*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11754*d14625f7Srootfi
11755*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
11756*d14625f7Sroot$as_echo "$je_cv_glibc_malloc_hook" >&6; }
11757*d14625f7Sroot
11758*d14625f7Srootif test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
11759*d14625f7Sroot  if test "x${JEMALLOC_PREFIX}" = "x" ; then
11760*d14625f7Sroot    $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
11761*d14625f7Sroot
11762*d14625f7Sroot    wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
11763*d14625f7Sroot  fi
11764*d14625f7Srootfi
11765*d14625f7Sroot
11766*d14625f7Sroot
11767*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
11768*d14625f7Sroot$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
11769*d14625f7Srootif ${je_cv_glibc_memalign_hook+:} false; then :
11770*d14625f7Sroot  $as_echo_n "(cached) " >&6
11771*d14625f7Srootelse
11772*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773*d14625f7Sroot/* end confdefs.h.  */
11774*d14625f7Sroot
11775*d14625f7Sroot#include <stddef.h>
11776*d14625f7Sroot
11777*d14625f7Srootextern void *(* __memalign_hook)(size_t alignment, size_t size);
11778*d14625f7Sroot
11779*d14625f7Srootint
11780*d14625f7Srootmain ()
11781*d14625f7Sroot{
11782*d14625f7Sroot
11783*d14625f7Sroot  void *ptr = 0L;
11784*d14625f7Sroot  if (__memalign_hook) ptr = __memalign_hook(16, 7);
11785*d14625f7Sroot
11786*d14625f7Sroot  ;
11787*d14625f7Sroot  return 0;
11788*d14625f7Sroot}
11789*d14625f7Sroot_ACEOF
11790*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11791*d14625f7Sroot  je_cv_glibc_memalign_hook=yes
11792*d14625f7Srootelse
11793*d14625f7Sroot  je_cv_glibc_memalign_hook=no
11794*d14625f7Srootfi
11795*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11796*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11797*d14625f7Srootfi
11798*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
11799*d14625f7Sroot$as_echo "$je_cv_glibc_memalign_hook" >&6; }
11800*d14625f7Sroot
11801*d14625f7Srootif test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
11802*d14625f7Sroot  if test "x${JEMALLOC_PREFIX}" = "x" ; then
11803*d14625f7Sroot    $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
11804*d14625f7Sroot
11805*d14625f7Sroot    wrap_syms="${wrap_syms} __memalign_hook"
11806*d14625f7Sroot  fi
11807*d14625f7Srootfi
11808*d14625f7Sroot
11809*d14625f7Sroot
11810*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
11811*d14625f7Sroot$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
11812*d14625f7Srootif ${je_cv_pthread_mutex_adaptive_np+:} false; then :
11813*d14625f7Sroot  $as_echo_n "(cached) " >&6
11814*d14625f7Srootelse
11815*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816*d14625f7Sroot/* end confdefs.h.  */
11817*d14625f7Sroot
11818*d14625f7Sroot#include <pthread.h>
11819*d14625f7Sroot
11820*d14625f7Srootint
11821*d14625f7Srootmain ()
11822*d14625f7Sroot{
11823*d14625f7Sroot
11824*d14625f7Sroot  pthread_mutexattr_t attr;
11825*d14625f7Sroot  pthread_mutexattr_init(&attr);
11826*d14625f7Sroot  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
11827*d14625f7Sroot  pthread_mutexattr_destroy(&attr);
11828*d14625f7Sroot
11829*d14625f7Sroot  ;
11830*d14625f7Sroot  return 0;
11831*d14625f7Sroot}
11832*d14625f7Sroot_ACEOF
11833*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
11834*d14625f7Sroot  je_cv_pthread_mutex_adaptive_np=yes
11835*d14625f7Srootelse
11836*d14625f7Sroot  je_cv_pthread_mutex_adaptive_np=no
11837*d14625f7Srootfi
11838*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
11839*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
11840*d14625f7Srootfi
11841*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
11842*d14625f7Sroot$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
11843*d14625f7Sroot
11844*d14625f7Srootif test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
11845*d14625f7Sroot  $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
11846*d14625f7Sroot
11847*d14625f7Srootfi
11848*d14625f7Sroot
11849*d14625f7SrootSAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11850*d14625f7Sroot
11851*d14625f7Sroot
11852*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
11853*d14625f7Sroot$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
11854*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11855*d14625f7SrootT_APPEND_V=-D_GNU_SOURCE
11856*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11857*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11858*d14625f7Srootelse
11859*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11860*d14625f7Srootfi
11861*d14625f7Sroot
11862*d14625f7Sroot
11863*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11864*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11865*d14625f7Srootelse
11866*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11867*d14625f7Srootfi
11868*d14625f7Sroot
11869*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870*d14625f7Sroot/* end confdefs.h.  */
11871*d14625f7Sroot
11872*d14625f7Sroot
11873*d14625f7Srootint
11874*d14625f7Srootmain ()
11875*d14625f7Sroot{
11876*d14625f7Sroot
11877*d14625f7Sroot    return 0;
11878*d14625f7Sroot
11879*d14625f7Sroot  ;
11880*d14625f7Sroot  return 0;
11881*d14625f7Sroot}
11882*d14625f7Sroot_ACEOF
11883*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
11884*d14625f7Sroot  je_cv_cflags_added=-D_GNU_SOURCE
11885*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886*d14625f7Sroot$as_echo "yes" >&6; }
11887*d14625f7Srootelse
11888*d14625f7Sroot  je_cv_cflags_added=
11889*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890*d14625f7Sroot$as_echo "no" >&6; }
11891*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11892*d14625f7Sroot
11893*d14625f7Srootfi
11894*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11896*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11897*d14625f7Srootelse
11898*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11899*d14625f7Srootfi
11900*d14625f7Sroot
11901*d14625f7Sroot
11902*d14625f7Sroot
11903*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11904*d14625f7Sroot$as_echo_n "checking whether compiler supports -Werror... " >&6; }
11905*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11906*d14625f7SrootT_APPEND_V=-Werror
11907*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11908*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11909*d14625f7Srootelse
11910*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11911*d14625f7Srootfi
11912*d14625f7Sroot
11913*d14625f7Sroot
11914*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11915*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11916*d14625f7Srootelse
11917*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11918*d14625f7Srootfi
11919*d14625f7Sroot
11920*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921*d14625f7Sroot/* end confdefs.h.  */
11922*d14625f7Sroot
11923*d14625f7Sroot
11924*d14625f7Srootint
11925*d14625f7Srootmain ()
11926*d14625f7Sroot{
11927*d14625f7Sroot
11928*d14625f7Sroot    return 0;
11929*d14625f7Sroot
11930*d14625f7Sroot  ;
11931*d14625f7Sroot  return 0;
11932*d14625f7Sroot}
11933*d14625f7Sroot_ACEOF
11934*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
11935*d14625f7Sroot  je_cv_cflags_added=-Werror
11936*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937*d14625f7Sroot$as_echo "yes" >&6; }
11938*d14625f7Srootelse
11939*d14625f7Sroot  je_cv_cflags_added=
11940*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941*d14625f7Sroot$as_echo "no" >&6; }
11942*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11943*d14625f7Sroot
11944*d14625f7Srootfi
11945*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11947*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11948*d14625f7Srootelse
11949*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11950*d14625f7Srootfi
11951*d14625f7Sroot
11952*d14625f7Sroot
11953*d14625f7Sroot
11954*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
11955*d14625f7Sroot$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
11956*d14625f7SrootT_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11957*d14625f7SrootT_APPEND_V=-herror_on_warning
11958*d14625f7Sroot  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11959*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11960*d14625f7Srootelse
11961*d14625f7Sroot  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11962*d14625f7Srootfi
11963*d14625f7Sroot
11964*d14625f7Sroot
11965*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11966*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11967*d14625f7Srootelse
11968*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11969*d14625f7Srootfi
11970*d14625f7Sroot
11971*d14625f7Srootcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972*d14625f7Sroot/* end confdefs.h.  */
11973*d14625f7Sroot
11974*d14625f7Sroot
11975*d14625f7Srootint
11976*d14625f7Srootmain ()
11977*d14625f7Sroot{
11978*d14625f7Sroot
11979*d14625f7Sroot    return 0;
11980*d14625f7Sroot
11981*d14625f7Sroot  ;
11982*d14625f7Sroot  return 0;
11983*d14625f7Sroot}
11984*d14625f7Sroot_ACEOF
11985*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
11986*d14625f7Sroot  je_cv_cflags_added=-herror_on_warning
11987*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988*d14625f7Sroot$as_echo "yes" >&6; }
11989*d14625f7Srootelse
11990*d14625f7Sroot  je_cv_cflags_added=
11991*d14625f7Sroot              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992*d14625f7Sroot$as_echo "no" >&6; }
11993*d14625f7Sroot              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11994*d14625f7Sroot
11995*d14625f7Srootfi
11996*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11998*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11999*d14625f7Srootelse
12000*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12001*d14625f7Srootfi
12002*d14625f7Sroot
12003*d14625f7Sroot
12004*d14625f7Sroot
12005*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12006*d14625f7Sroot$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12007*d14625f7Srootif ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12008*d14625f7Sroot  $as_echo_n "(cached) " >&6
12009*d14625f7Srootelse
12010*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011*d14625f7Sroot/* end confdefs.h.  */
12012*d14625f7Sroot
12013*d14625f7Sroot#include <errno.h>
12014*d14625f7Sroot#include <stdio.h>
12015*d14625f7Sroot#include <stdlib.h>
12016*d14625f7Sroot#include <string.h>
12017*d14625f7Sroot
12018*d14625f7Srootint
12019*d14625f7Srootmain ()
12020*d14625f7Sroot{
12021*d14625f7Sroot
12022*d14625f7Sroot  char *buffer = (char *) malloc(100);
12023*d14625f7Sroot  char *error = strerror_r(EINVAL, buffer, 100);
12024*d14625f7Sroot  printf("%s\n", error);
12025*d14625f7Sroot
12026*d14625f7Sroot  ;
12027*d14625f7Sroot  return 0;
12028*d14625f7Sroot}
12029*d14625f7Sroot_ACEOF
12030*d14625f7Srootif ac_fn_c_try_link "$LINENO"; then :
12031*d14625f7Sroot  je_cv_strerror_r_returns_char_with_gnu_source=yes
12032*d14625f7Srootelse
12033*d14625f7Sroot  je_cv_strerror_r_returns_char_with_gnu_source=no
12034*d14625f7Srootfi
12035*d14625f7Srootrm -f core conftest.err conftest.$ac_objext \
12036*d14625f7Sroot    conftest$ac_exeext conftest.$ac_ext
12037*d14625f7Srootfi
12038*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12039*d14625f7Sroot$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12040*d14625f7Sroot
12041*d14625f7SrootCONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12042*d14625f7Srootif test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12043*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12044*d14625f7Srootelse
12045*d14625f7Sroot  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12046*d14625f7Srootfi
12047*d14625f7Sroot
12048*d14625f7Sroot
12049*d14625f7Srootif test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12050*d14625f7Sroot  $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
12051*d14625f7Sroot
12052*d14625f7Srootfi
12053*d14625f7Sroot
12054*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12055*d14625f7Sroot$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12056*d14625f7Srootif ${ac_cv_header_stdbool_h+:} false; then :
12057*d14625f7Sroot  $as_echo_n "(cached) " >&6
12058*d14625f7Srootelse
12059*d14625f7Sroot  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060*d14625f7Sroot/* end confdefs.h.  */
12061*d14625f7Sroot
12062*d14625f7Sroot             #include <stdbool.h>
12063*d14625f7Sroot             #ifndef bool
12064*d14625f7Sroot              "error: bool is not defined"
12065*d14625f7Sroot             #endif
12066*d14625f7Sroot             #ifndef false
12067*d14625f7Sroot              "error: false is not defined"
12068*d14625f7Sroot             #endif
12069*d14625f7Sroot             #if false
12070*d14625f7Sroot              "error: false is not 0"
12071*d14625f7Sroot             #endif
12072*d14625f7Sroot             #ifndef true
12073*d14625f7Sroot              "error: true is not defined"
12074*d14625f7Sroot             #endif
12075*d14625f7Sroot             #if true != 1
12076*d14625f7Sroot              "error: true is not 1"
12077*d14625f7Sroot             #endif
12078*d14625f7Sroot             #ifndef __bool_true_false_are_defined
12079*d14625f7Sroot              "error: __bool_true_false_are_defined is not defined"
12080*d14625f7Sroot             #endif
12081*d14625f7Sroot
12082*d14625f7Sroot             struct s { _Bool s: 1; _Bool t; } s;
12083*d14625f7Sroot
12084*d14625f7Sroot             char a[true == 1 ? 1 : -1];
12085*d14625f7Sroot             char b[false == 0 ? 1 : -1];
12086*d14625f7Sroot             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12087*d14625f7Sroot             char d[(bool) 0.5 == true ? 1 : -1];
12088*d14625f7Sroot             /* See body of main program for 'e'.  */
12089*d14625f7Sroot             char f[(_Bool) 0.0 == false ? 1 : -1];
12090*d14625f7Sroot             char g[true];
12091*d14625f7Sroot             char h[sizeof (_Bool)];
12092*d14625f7Sroot             char i[sizeof s.t];
12093*d14625f7Sroot             enum { j = false, k = true, l = false * true, m = true * 256 };
12094*d14625f7Sroot             /* The following fails for
12095*d14625f7Sroot                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12096*d14625f7Sroot             _Bool n[m];
12097*d14625f7Sroot             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12098*d14625f7Sroot             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12099*d14625f7Sroot             /* Catch a bug in an HP-UX C compiler.  See
12100*d14625f7Sroot                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12101*d14625f7Sroot                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12102*d14625f7Sroot              */
12103*d14625f7Sroot             _Bool q = true;
12104*d14625f7Sroot             _Bool *pq = &q;
12105*d14625f7Sroot
12106*d14625f7Srootint
12107*d14625f7Srootmain ()
12108*d14625f7Sroot{
12109*d14625f7Sroot
12110*d14625f7Sroot             bool e = &s;
12111*d14625f7Sroot             *pq |= q;
12112*d14625f7Sroot             *pq |= ! q;
12113*d14625f7Sroot             /* Refer to every declared value, to avoid compiler optimizations.  */
12114*d14625f7Sroot             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12115*d14625f7Sroot                     + !m + !n + !o + !p + !q + !pq);
12116*d14625f7Sroot
12117*d14625f7Sroot  ;
12118*d14625f7Sroot  return 0;
12119*d14625f7Sroot}
12120*d14625f7Sroot_ACEOF
12121*d14625f7Srootif ac_fn_c_try_compile "$LINENO"; then :
12122*d14625f7Sroot  ac_cv_header_stdbool_h=yes
12123*d14625f7Srootelse
12124*d14625f7Sroot  ac_cv_header_stdbool_h=no
12125*d14625f7Srootfi
12126*d14625f7Srootrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127*d14625f7Srootfi
12128*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12129*d14625f7Sroot$as_echo "$ac_cv_header_stdbool_h" >&6; }
12130*d14625f7Sroot   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12131*d14625f7Srootif test "x$ac_cv_type__Bool" = xyes; then :
12132*d14625f7Sroot
12133*d14625f7Srootcat >>confdefs.h <<_ACEOF
12134*d14625f7Sroot#define HAVE__BOOL 1
12135*d14625f7Sroot_ACEOF
12136*d14625f7Sroot
12137*d14625f7Sroot
12138*d14625f7Srootfi
12139*d14625f7Sroot
12140*d14625f7Sroot
12141*d14625f7Srootif test $ac_cv_header_stdbool_h = yes; then
12142*d14625f7Sroot
12143*d14625f7Sroot$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12144*d14625f7Sroot
12145*d14625f7Srootfi
12146*d14625f7Sroot
12147*d14625f7Sroot
12148*d14625f7Sroot
12149*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12150*d14625f7Sroot
12151*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12152*d14625f7Sroot
12153*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12154*d14625f7Sroot
12155*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12156*d14625f7Sroot
12157*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12158*d14625f7Sroot
12159*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
12160*d14625f7Sroot
12161*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12162*d14625f7Sroot
12163*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12164*d14625f7Sroot
12165*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12166*d14625f7Sroot
12167*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12168*d14625f7Sroot
12169*d14625f7Srootac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12170*d14625f7Sroot
12171*d14625f7Sroot
12172*d14625f7Sroot
12173*d14625f7Sroot
12174*d14625f7Srootac_config_headers="$ac_config_headers $cfghdrs_tup"
12175*d14625f7Sroot
12176*d14625f7Sroot
12177*d14625f7Sroot
12178*d14625f7Srootac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12179*d14625f7Sroot
12180*d14625f7Sroot
12181*d14625f7Sroot
12182*d14625f7Srootcat >confcache <<\_ACEOF
12183*d14625f7Sroot# This file is a shell script that caches the results of configure
12184*d14625f7Sroot# tests run on this system so they can be shared between configure
12185*d14625f7Sroot# scripts and configure runs, see configure's option --config-cache.
12186*d14625f7Sroot# It is not useful on other systems.  If it contains results you don't
12187*d14625f7Sroot# want to keep, you may remove or edit it.
12188*d14625f7Sroot#
12189*d14625f7Sroot# config.status only pays attention to the cache file if you give it
12190*d14625f7Sroot# the --recheck option to rerun configure.
12191*d14625f7Sroot#
12192*d14625f7Sroot# `ac_cv_env_foo' variables (set or unset) will be overridden when
12193*d14625f7Sroot# loading this file, other *unset* `ac_cv_foo' will be assigned the
12194*d14625f7Sroot# following values.
12195*d14625f7Sroot
12196*d14625f7Sroot_ACEOF
12197*d14625f7Sroot
12198*d14625f7Sroot# The following way of writing the cache mishandles newlines in values,
12199*d14625f7Sroot# but we know of no workaround that is simple, portable, and efficient.
12200*d14625f7Sroot# So, we kill variables containing newlines.
12201*d14625f7Sroot# Ultrix sh set writes to stderr and can't be redirected directly,
12202*d14625f7Sroot# and sets the high bit in the cache file unless we assign to the vars.
12203*d14625f7Sroot(
12204*d14625f7Sroot  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12205*d14625f7Sroot    eval ac_val=\$$ac_var
12206*d14625f7Sroot    case $ac_val in #(
12207*d14625f7Sroot    *${as_nl}*)
12208*d14625f7Sroot      case $ac_var in #(
12209*d14625f7Sroot      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12210*d14625f7Sroot$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12211*d14625f7Sroot      esac
12212*d14625f7Sroot      case $ac_var in #(
12213*d14625f7Sroot      _ | IFS | as_nl) ;; #(
12214*d14625f7Sroot      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12215*d14625f7Sroot      *) { eval $ac_var=; unset $ac_var;} ;;
12216*d14625f7Sroot      esac ;;
12217*d14625f7Sroot    esac
12218*d14625f7Sroot  done
12219*d14625f7Sroot
12220*d14625f7Sroot  (set) 2>&1 |
12221*d14625f7Sroot    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12222*d14625f7Sroot    *${as_nl}ac_space=\ *)
12223*d14625f7Sroot      # `set' does not quote correctly, so add quotes: double-quote
12224*d14625f7Sroot      # substitution turns \\\\ into \\, and sed turns \\ into \.
12225*d14625f7Sroot      sed -n \
12226*d14625f7Sroot	"s/'/'\\\\''/g;
12227*d14625f7Sroot	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12228*d14625f7Sroot      ;; #(
12229*d14625f7Sroot    *)
12230*d14625f7Sroot      # `set' quotes correctly as required by POSIX, so do not add quotes.
12231*d14625f7Sroot      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12232*d14625f7Sroot      ;;
12233*d14625f7Sroot    esac |
12234*d14625f7Sroot    sort
12235*d14625f7Sroot) |
12236*d14625f7Sroot  sed '
12237*d14625f7Sroot     /^ac_cv_env_/b end
12238*d14625f7Sroot     t clear
12239*d14625f7Sroot     :clear
12240*d14625f7Sroot     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12241*d14625f7Sroot     t end
12242*d14625f7Sroot     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12243*d14625f7Sroot     :end' >>confcache
12244*d14625f7Srootif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12245*d14625f7Sroot  if test -w "$cache_file"; then
12246*d14625f7Sroot    if test "x$cache_file" != "x/dev/null"; then
12247*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12248*d14625f7Sroot$as_echo "$as_me: updating cache $cache_file" >&6;}
12249*d14625f7Sroot      if test ! -f "$cache_file" || test -h "$cache_file"; then
12250*d14625f7Sroot	cat confcache >"$cache_file"
12251*d14625f7Sroot      else
12252*d14625f7Sroot        case $cache_file in #(
12253*d14625f7Sroot        */* | ?:*)
12254*d14625f7Sroot	  mv -f confcache "$cache_file"$$ &&
12255*d14625f7Sroot	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12256*d14625f7Sroot        *)
12257*d14625f7Sroot	  mv -f confcache "$cache_file" ;;
12258*d14625f7Sroot	esac
12259*d14625f7Sroot      fi
12260*d14625f7Sroot    fi
12261*d14625f7Sroot  else
12262*d14625f7Sroot    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12263*d14625f7Sroot$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12264*d14625f7Sroot  fi
12265*d14625f7Srootfi
12266*d14625f7Srootrm -f confcache
12267*d14625f7Sroot
12268*d14625f7Sroottest "x$prefix" = xNONE && prefix=$ac_default_prefix
12269*d14625f7Sroot# Let make expand exec_prefix.
12270*d14625f7Sroottest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12271*d14625f7Sroot
12272*d14625f7SrootDEFS=-DHAVE_CONFIG_H
12273*d14625f7Sroot
12274*d14625f7Srootac_libobjs=
12275*d14625f7Srootac_ltlibobjs=
12276*d14625f7SrootU=
12277*d14625f7Srootfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12278*d14625f7Sroot  # 1. Remove the extension, and $U if already installed.
12279*d14625f7Sroot  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12280*d14625f7Sroot  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12281*d14625f7Sroot  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12282*d14625f7Sroot  #    will be set to the directory where LIBOBJS objects are built.
12283*d14625f7Sroot  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12284*d14625f7Sroot  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12285*d14625f7Srootdone
12286*d14625f7SrootLIBOBJS=$ac_libobjs
12287*d14625f7Sroot
12288*d14625f7SrootLTLIBOBJS=$ac_ltlibobjs
12289*d14625f7Sroot
12290*d14625f7Sroot
12291*d14625f7Sroot
12292*d14625f7Sroot
12293*d14625f7Sroot: "${CONFIG_STATUS=./config.status}"
12294*d14625f7Srootac_write_fail=0
12295*d14625f7Srootac_clean_files_save=$ac_clean_files
12296*d14625f7Srootac_clean_files="$ac_clean_files $CONFIG_STATUS"
12297*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12298*d14625f7Sroot$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12299*d14625f7Srootas_write_fail=0
12300*d14625f7Srootcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12301*d14625f7Sroot#! $SHELL
12302*d14625f7Sroot# Generated by $as_me.
12303*d14625f7Sroot# Run this file to recreate the current configuration.
12304*d14625f7Sroot# Compiler output produced by configure, useful for debugging
12305*d14625f7Sroot# configure, is in config.log if it exists.
12306*d14625f7Sroot
12307*d14625f7Srootdebug=false
12308*d14625f7Srootac_cs_recheck=false
12309*d14625f7Srootac_cs_silent=false
12310*d14625f7Sroot
12311*d14625f7SrootSHELL=\${CONFIG_SHELL-$SHELL}
12312*d14625f7Srootexport SHELL
12313*d14625f7Sroot_ASEOF
12314*d14625f7Srootcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12315*d14625f7Sroot## -------------------- ##
12316*d14625f7Sroot## M4sh Initialization. ##
12317*d14625f7Sroot## -------------------- ##
12318*d14625f7Sroot
12319*d14625f7Sroot# Be more Bourne compatible
12320*d14625f7SrootDUALCASE=1; export DUALCASE # for MKS sh
12321*d14625f7Srootif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12322*d14625f7Sroot  emulate sh
12323*d14625f7Sroot  NULLCMD=:
12324*d14625f7Sroot  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12325*d14625f7Sroot  # is contrary to our usage.  Disable this feature.
12326*d14625f7Sroot  alias -g '${1+"$@"}'='"$@"'
12327*d14625f7Sroot  setopt NO_GLOB_SUBST
12328*d14625f7Srootelse
12329*d14625f7Sroot  case `(set -o) 2>/dev/null` in #(
12330*d14625f7Sroot  *posix*) :
12331*d14625f7Sroot    set -o posix ;; #(
12332*d14625f7Sroot  *) :
12333*d14625f7Sroot     ;;
12334*d14625f7Srootesac
12335*d14625f7Srootfi
12336*d14625f7Sroot
12337*d14625f7Sroot
12338*d14625f7Srootas_nl='
12339*d14625f7Sroot'
12340*d14625f7Srootexport as_nl
12341*d14625f7Sroot# Printing a long string crashes Solaris 7 /usr/bin/printf.
12342*d14625f7Srootas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12343*d14625f7Srootas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12344*d14625f7Srootas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12345*d14625f7Sroot# Prefer a ksh shell builtin over an external printf program on Solaris,
12346*d14625f7Sroot# but without wasting forks for bash or zsh.
12347*d14625f7Srootif test -z "$BASH_VERSION$ZSH_VERSION" \
12348*d14625f7Sroot    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12349*d14625f7Sroot  as_echo='print -r --'
12350*d14625f7Sroot  as_echo_n='print -rn --'
12351*d14625f7Srootelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12352*d14625f7Sroot  as_echo='printf %s\n'
12353*d14625f7Sroot  as_echo_n='printf %s'
12354*d14625f7Srootelse
12355*d14625f7Sroot  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12356*d14625f7Sroot    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12357*d14625f7Sroot    as_echo_n='/usr/ucb/echo -n'
12358*d14625f7Sroot  else
12359*d14625f7Sroot    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12360*d14625f7Sroot    as_echo_n_body='eval
12361*d14625f7Sroot      arg=$1;
12362*d14625f7Sroot      case $arg in #(
12363*d14625f7Sroot      *"$as_nl"*)
12364*d14625f7Sroot	expr "X$arg" : "X\\(.*\\)$as_nl";
12365*d14625f7Sroot	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12366*d14625f7Sroot      esac;
12367*d14625f7Sroot      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12368*d14625f7Sroot    '
12369*d14625f7Sroot    export as_echo_n_body
12370*d14625f7Sroot    as_echo_n='sh -c $as_echo_n_body as_echo'
12371*d14625f7Sroot  fi
12372*d14625f7Sroot  export as_echo_body
12373*d14625f7Sroot  as_echo='sh -c $as_echo_body as_echo'
12374*d14625f7Srootfi
12375*d14625f7Sroot
12376*d14625f7Sroot# The user is always right.
12377*d14625f7Srootif test "${PATH_SEPARATOR+set}" != set; then
12378*d14625f7Sroot  PATH_SEPARATOR=:
12379*d14625f7Sroot  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12380*d14625f7Sroot    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12381*d14625f7Sroot      PATH_SEPARATOR=';'
12382*d14625f7Sroot  }
12383*d14625f7Srootfi
12384*d14625f7Sroot
12385*d14625f7Sroot
12386*d14625f7Sroot# IFS
12387*d14625f7Sroot# We need space, tab and new line, in precisely that order.  Quoting is
12388*d14625f7Sroot# there to prevent editors from complaining about space-tab.
12389*d14625f7Sroot# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12390*d14625f7Sroot# splitting by setting IFS to empty value.)
12391*d14625f7SrootIFS=" ""	$as_nl"
12392*d14625f7Sroot
12393*d14625f7Sroot# Find who we are.  Look in the path if we contain no directory separator.
12394*d14625f7Srootas_myself=
12395*d14625f7Srootcase $0 in #((
12396*d14625f7Sroot  *[\\/]* ) as_myself=$0 ;;
12397*d14625f7Sroot  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398*d14625f7Srootfor as_dir in $PATH
12399*d14625f7Srootdo
12400*d14625f7Sroot  IFS=$as_save_IFS
12401*d14625f7Sroot  test -z "$as_dir" && as_dir=.
12402*d14625f7Sroot    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12403*d14625f7Sroot  done
12404*d14625f7SrootIFS=$as_save_IFS
12405*d14625f7Sroot
12406*d14625f7Sroot     ;;
12407*d14625f7Srootesac
12408*d14625f7Sroot# We did not find ourselves, most probably we were run as `sh COMMAND'
12409*d14625f7Sroot# in which case we are not to be found in the path.
12410*d14625f7Srootif test "x$as_myself" = x; then
12411*d14625f7Sroot  as_myself=$0
12412*d14625f7Srootfi
12413*d14625f7Srootif test ! -f "$as_myself"; then
12414*d14625f7Sroot  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12415*d14625f7Sroot  exit 1
12416*d14625f7Srootfi
12417*d14625f7Sroot
12418*d14625f7Sroot# Unset variables that we do not need and which cause bugs (e.g. in
12419*d14625f7Sroot# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12420*d14625f7Sroot# suppresses any "Segmentation fault" message there.  '((' could
12421*d14625f7Sroot# trigger a bug in pdksh 5.2.14.
12422*d14625f7Srootfor as_var in BASH_ENV ENV MAIL MAILPATH
12423*d14625f7Srootdo eval test x\${$as_var+set} = xset \
12424*d14625f7Sroot  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12425*d14625f7Srootdone
12426*d14625f7SrootPS1='$ '
12427*d14625f7SrootPS2='> '
12428*d14625f7SrootPS4='+ '
12429*d14625f7Sroot
12430*d14625f7Sroot# NLS nuisances.
12431*d14625f7SrootLC_ALL=C
12432*d14625f7Srootexport LC_ALL
12433*d14625f7SrootLANGUAGE=C
12434*d14625f7Srootexport LANGUAGE
12435*d14625f7Sroot
12436*d14625f7Sroot# CDPATH.
12437*d14625f7Sroot(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12438*d14625f7Sroot
12439*d14625f7Sroot
12440*d14625f7Sroot# as_fn_error STATUS ERROR [LINENO LOG_FD]
12441*d14625f7Sroot# ----------------------------------------
12442*d14625f7Sroot# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12443*d14625f7Sroot# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12444*d14625f7Sroot# script with STATUS, using 1 if that was 0.
12445*d14625f7Srootas_fn_error ()
12446*d14625f7Sroot{
12447*d14625f7Sroot  as_status=$1; test $as_status -eq 0 && as_status=1
12448*d14625f7Sroot  if test "$4"; then
12449*d14625f7Sroot    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12450*d14625f7Sroot    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12451*d14625f7Sroot  fi
12452*d14625f7Sroot  $as_echo "$as_me: error: $2" >&2
12453*d14625f7Sroot  as_fn_exit $as_status
12454*d14625f7Sroot} # as_fn_error
12455*d14625f7Sroot
12456*d14625f7Sroot
12457*d14625f7Sroot# as_fn_set_status STATUS
12458*d14625f7Sroot# -----------------------
12459*d14625f7Sroot# Set $? to STATUS, without forking.
12460*d14625f7Srootas_fn_set_status ()
12461*d14625f7Sroot{
12462*d14625f7Sroot  return $1
12463*d14625f7Sroot} # as_fn_set_status
12464*d14625f7Sroot
12465*d14625f7Sroot# as_fn_exit STATUS
12466*d14625f7Sroot# -----------------
12467*d14625f7Sroot# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12468*d14625f7Srootas_fn_exit ()
12469*d14625f7Sroot{
12470*d14625f7Sroot  set +e
12471*d14625f7Sroot  as_fn_set_status $1
12472*d14625f7Sroot  exit $1
12473*d14625f7Sroot} # as_fn_exit
12474*d14625f7Sroot
12475*d14625f7Sroot# as_fn_unset VAR
12476*d14625f7Sroot# ---------------
12477*d14625f7Sroot# Portably unset VAR.
12478*d14625f7Srootas_fn_unset ()
12479*d14625f7Sroot{
12480*d14625f7Sroot  { eval $1=; unset $1;}
12481*d14625f7Sroot}
12482*d14625f7Srootas_unset=as_fn_unset
12483*d14625f7Sroot# as_fn_append VAR VALUE
12484*d14625f7Sroot# ----------------------
12485*d14625f7Sroot# Append the text in VALUE to the end of the definition contained in VAR. Take
12486*d14625f7Sroot# advantage of any shell optimizations that allow amortized linear growth over
12487*d14625f7Sroot# repeated appends, instead of the typical quadratic growth present in naive
12488*d14625f7Sroot# implementations.
12489*d14625f7Srootif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12490*d14625f7Sroot  eval 'as_fn_append ()
12491*d14625f7Sroot  {
12492*d14625f7Sroot    eval $1+=\$2
12493*d14625f7Sroot  }'
12494*d14625f7Srootelse
12495*d14625f7Sroot  as_fn_append ()
12496*d14625f7Sroot  {
12497*d14625f7Sroot    eval $1=\$$1\$2
12498*d14625f7Sroot  }
12499*d14625f7Srootfi # as_fn_append
12500*d14625f7Sroot
12501*d14625f7Sroot# as_fn_arith ARG...
12502*d14625f7Sroot# ------------------
12503*d14625f7Sroot# Perform arithmetic evaluation on the ARGs, and store the result in the
12504*d14625f7Sroot# global $as_val. Take advantage of shells that can avoid forks. The arguments
12505*d14625f7Sroot# must be portable across $(()) and expr.
12506*d14625f7Srootif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12507*d14625f7Sroot  eval 'as_fn_arith ()
12508*d14625f7Sroot  {
12509*d14625f7Sroot    as_val=$(( $* ))
12510*d14625f7Sroot  }'
12511*d14625f7Srootelse
12512*d14625f7Sroot  as_fn_arith ()
12513*d14625f7Sroot  {
12514*d14625f7Sroot    as_val=`expr "$@" || test $? -eq 1`
12515*d14625f7Sroot  }
12516*d14625f7Srootfi # as_fn_arith
12517*d14625f7Sroot
12518*d14625f7Sroot
12519*d14625f7Srootif expr a : '\(a\)' >/dev/null 2>&1 &&
12520*d14625f7Sroot   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12521*d14625f7Sroot  as_expr=expr
12522*d14625f7Srootelse
12523*d14625f7Sroot  as_expr=false
12524*d14625f7Srootfi
12525*d14625f7Sroot
12526*d14625f7Srootif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12527*d14625f7Sroot  as_basename=basename
12528*d14625f7Srootelse
12529*d14625f7Sroot  as_basename=false
12530*d14625f7Srootfi
12531*d14625f7Sroot
12532*d14625f7Srootif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12533*d14625f7Sroot  as_dirname=dirname
12534*d14625f7Srootelse
12535*d14625f7Sroot  as_dirname=false
12536*d14625f7Srootfi
12537*d14625f7Sroot
12538*d14625f7Srootas_me=`$as_basename -- "$0" ||
12539*d14625f7Sroot$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12540*d14625f7Sroot	 X"$0" : 'X\(//\)$' \| \
12541*d14625f7Sroot	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12542*d14625f7Sroot$as_echo X/"$0" |
12543*d14625f7Sroot    sed '/^.*\/\([^/][^/]*\)\/*$/{
12544*d14625f7Sroot	    s//\1/
12545*d14625f7Sroot	    q
12546*d14625f7Sroot	  }
12547*d14625f7Sroot	  /^X\/\(\/\/\)$/{
12548*d14625f7Sroot	    s//\1/
12549*d14625f7Sroot	    q
12550*d14625f7Sroot	  }
12551*d14625f7Sroot	  /^X\/\(\/\).*/{
12552*d14625f7Sroot	    s//\1/
12553*d14625f7Sroot	    q
12554*d14625f7Sroot	  }
12555*d14625f7Sroot	  s/.*/./; q'`
12556*d14625f7Sroot
12557*d14625f7Sroot# Avoid depending upon Character Ranges.
12558*d14625f7Srootas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12559*d14625f7Srootas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12560*d14625f7Srootas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12561*d14625f7Srootas_cr_digits='0123456789'
12562*d14625f7Srootas_cr_alnum=$as_cr_Letters$as_cr_digits
12563*d14625f7Sroot
12564*d14625f7SrootECHO_C= ECHO_N= ECHO_T=
12565*d14625f7Srootcase `echo -n x` in #(((((
12566*d14625f7Sroot-n*)
12567*d14625f7Sroot  case `echo 'xy\c'` in
12568*d14625f7Sroot  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12569*d14625f7Sroot  xy)  ECHO_C='\c';;
12570*d14625f7Sroot  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12571*d14625f7Sroot       ECHO_T='	';;
12572*d14625f7Sroot  esac;;
12573*d14625f7Sroot*)
12574*d14625f7Sroot  ECHO_N='-n';;
12575*d14625f7Srootesac
12576*d14625f7Sroot
12577*d14625f7Srootrm -f conf$$ conf$$.exe conf$$.file
12578*d14625f7Srootif test -d conf$$.dir; then
12579*d14625f7Sroot  rm -f conf$$.dir/conf$$.file
12580*d14625f7Srootelse
12581*d14625f7Sroot  rm -f conf$$.dir
12582*d14625f7Sroot  mkdir conf$$.dir 2>/dev/null
12583*d14625f7Srootfi
12584*d14625f7Srootif (echo >conf$$.file) 2>/dev/null; then
12585*d14625f7Sroot  if ln -s conf$$.file conf$$ 2>/dev/null; then
12586*d14625f7Sroot    as_ln_s='ln -s'
12587*d14625f7Sroot    # ... but there are two gotchas:
12588*d14625f7Sroot    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12589*d14625f7Sroot    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12590*d14625f7Sroot    # In both cases, we have to default to `cp -pR'.
12591*d14625f7Sroot    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12592*d14625f7Sroot      as_ln_s='cp -pR'
12593*d14625f7Sroot  elif ln conf$$.file conf$$ 2>/dev/null; then
12594*d14625f7Sroot    as_ln_s=ln
12595*d14625f7Sroot  else
12596*d14625f7Sroot    as_ln_s='cp -pR'
12597*d14625f7Sroot  fi
12598*d14625f7Srootelse
12599*d14625f7Sroot  as_ln_s='cp -pR'
12600*d14625f7Srootfi
12601*d14625f7Srootrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12602*d14625f7Srootrmdir conf$$.dir 2>/dev/null
12603*d14625f7Sroot
12604*d14625f7Sroot
12605*d14625f7Sroot# as_fn_mkdir_p
12606*d14625f7Sroot# -------------
12607*d14625f7Sroot# Create "$as_dir" as a directory, including parents if necessary.
12608*d14625f7Srootas_fn_mkdir_p ()
12609*d14625f7Sroot{
12610*d14625f7Sroot
12611*d14625f7Sroot  case $as_dir in #(
12612*d14625f7Sroot  -*) as_dir=./$as_dir;;
12613*d14625f7Sroot  esac
12614*d14625f7Sroot  test -d "$as_dir" || eval $as_mkdir_p || {
12615*d14625f7Sroot    as_dirs=
12616*d14625f7Sroot    while :; do
12617*d14625f7Sroot      case $as_dir in #(
12618*d14625f7Sroot      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12619*d14625f7Sroot      *) as_qdir=$as_dir;;
12620*d14625f7Sroot      esac
12621*d14625f7Sroot      as_dirs="'$as_qdir' $as_dirs"
12622*d14625f7Sroot      as_dir=`$as_dirname -- "$as_dir" ||
12623*d14625f7Sroot$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624*d14625f7Sroot	 X"$as_dir" : 'X\(//\)[^/]' \| \
12625*d14625f7Sroot	 X"$as_dir" : 'X\(//\)$' \| \
12626*d14625f7Sroot	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12627*d14625f7Sroot$as_echo X"$as_dir" |
12628*d14625f7Sroot    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12629*d14625f7Sroot	    s//\1/
12630*d14625f7Sroot	    q
12631*d14625f7Sroot	  }
12632*d14625f7Sroot	  /^X\(\/\/\)[^/].*/{
12633*d14625f7Sroot	    s//\1/
12634*d14625f7Sroot	    q
12635*d14625f7Sroot	  }
12636*d14625f7Sroot	  /^X\(\/\/\)$/{
12637*d14625f7Sroot	    s//\1/
12638*d14625f7Sroot	    q
12639*d14625f7Sroot	  }
12640*d14625f7Sroot	  /^X\(\/\).*/{
12641*d14625f7Sroot	    s//\1/
12642*d14625f7Sroot	    q
12643*d14625f7Sroot	  }
12644*d14625f7Sroot	  s/.*/./; q'`
12645*d14625f7Sroot      test -d "$as_dir" && break
12646*d14625f7Sroot    done
12647*d14625f7Sroot    test -z "$as_dirs" || eval "mkdir $as_dirs"
12648*d14625f7Sroot  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12649*d14625f7Sroot
12650*d14625f7Sroot
12651*d14625f7Sroot} # as_fn_mkdir_p
12652*d14625f7Srootif mkdir -p . 2>/dev/null; then
12653*d14625f7Sroot  as_mkdir_p='mkdir -p "$as_dir"'
12654*d14625f7Srootelse
12655*d14625f7Sroot  test -d ./-p && rmdir ./-p
12656*d14625f7Sroot  as_mkdir_p=false
12657*d14625f7Srootfi
12658*d14625f7Sroot
12659*d14625f7Sroot
12660*d14625f7Sroot# as_fn_executable_p FILE
12661*d14625f7Sroot# -----------------------
12662*d14625f7Sroot# Test if FILE is an executable regular file.
12663*d14625f7Srootas_fn_executable_p ()
12664*d14625f7Sroot{
12665*d14625f7Sroot  test -f "$1" && test -x "$1"
12666*d14625f7Sroot} # as_fn_executable_p
12667*d14625f7Srootas_test_x='test -x'
12668*d14625f7Srootas_executable_p=as_fn_executable_p
12669*d14625f7Sroot
12670*d14625f7Sroot# Sed expression to map a string onto a valid CPP name.
12671*d14625f7Srootas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12672*d14625f7Sroot
12673*d14625f7Sroot# Sed expression to map a string onto a valid variable name.
12674*d14625f7Srootas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12675*d14625f7Sroot
12676*d14625f7Sroot
12677*d14625f7Srootexec 6>&1
12678*d14625f7Sroot## ----------------------------------- ##
12679*d14625f7Sroot## Main body of $CONFIG_STATUS script. ##
12680*d14625f7Sroot## ----------------------------------- ##
12681*d14625f7Sroot_ASEOF
12682*d14625f7Sroottest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12683*d14625f7Sroot
12684*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12685*d14625f7Sroot# Save the log message, to keep $0 and so on meaningful, and to
12686*d14625f7Sroot# report actual input values of CONFIG_FILES etc. instead of their
12687*d14625f7Sroot# values after options handling.
12688*d14625f7Srootac_log="
12689*d14625f7SrootThis file was extended by $as_me, which was
12690*d14625f7Srootgenerated by GNU Autoconf 2.69.  Invocation command line was
12691*d14625f7Sroot
12692*d14625f7Sroot  CONFIG_FILES    = $CONFIG_FILES
12693*d14625f7Sroot  CONFIG_HEADERS  = $CONFIG_HEADERS
12694*d14625f7Sroot  CONFIG_LINKS    = $CONFIG_LINKS
12695*d14625f7Sroot  CONFIG_COMMANDS = $CONFIG_COMMANDS
12696*d14625f7Sroot  $ $0 $@
12697*d14625f7Sroot
12698*d14625f7Srooton `(hostname || uname -n) 2>/dev/null | sed 1q`
12699*d14625f7Sroot"
12700*d14625f7Sroot
12701*d14625f7Sroot_ACEOF
12702*d14625f7Sroot
12703*d14625f7Srootcase $ac_config_files in *"
12704*d14625f7Sroot"*) set x $ac_config_files; shift; ac_config_files=$*;;
12705*d14625f7Srootesac
12706*d14625f7Sroot
12707*d14625f7Srootcase $ac_config_headers in *"
12708*d14625f7Sroot"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12709*d14625f7Srootesac
12710*d14625f7Sroot
12711*d14625f7Sroot
12712*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12713*d14625f7Sroot# Files that config.status was made for.
12714*d14625f7Srootconfig_files="$ac_config_files"
12715*d14625f7Srootconfig_headers="$ac_config_headers"
12716*d14625f7Srootconfig_commands="$ac_config_commands"
12717*d14625f7Sroot
12718*d14625f7Sroot_ACEOF
12719*d14625f7Sroot
12720*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12721*d14625f7Srootac_cs_usage="\
12722*d14625f7Sroot\`$as_me' instantiates files and other configuration actions
12723*d14625f7Srootfrom templates according to the current configuration.  Unless the files
12724*d14625f7Srootand actions are specified as TAGs, all are instantiated by default.
12725*d14625f7Sroot
12726*d14625f7SrootUsage: $0 [OPTION]... [TAG]...
12727*d14625f7Sroot
12728*d14625f7Sroot  -h, --help       print this help, then exit
12729*d14625f7Sroot  -V, --version    print version number and configuration settings, then exit
12730*d14625f7Sroot      --config     print configuration, then exit
12731*d14625f7Sroot  -q, --quiet, --silent
12732*d14625f7Sroot                   do not print progress messages
12733*d14625f7Sroot  -d, --debug      don't remove temporary files
12734*d14625f7Sroot      --recheck    update $as_me by reconfiguring in the same conditions
12735*d14625f7Sroot      --file=FILE[:TEMPLATE]
12736*d14625f7Sroot                   instantiate the configuration file FILE
12737*d14625f7Sroot      --header=FILE[:TEMPLATE]
12738*d14625f7Sroot                   instantiate the configuration header FILE
12739*d14625f7Sroot
12740*d14625f7SrootConfiguration files:
12741*d14625f7Sroot$config_files
12742*d14625f7Sroot
12743*d14625f7SrootConfiguration headers:
12744*d14625f7Sroot$config_headers
12745*d14625f7Sroot
12746*d14625f7SrootConfiguration commands:
12747*d14625f7Sroot$config_commands
12748*d14625f7Sroot
12749*d14625f7SrootReport bugs to the package provider."
12750*d14625f7Sroot
12751*d14625f7Sroot_ACEOF
12752*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753*d14625f7Srootac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12754*d14625f7Srootac_cs_version="\\
12755*d14625f7Srootconfig.status
12756*d14625f7Srootconfigured by $0, generated by GNU Autoconf 2.69,
12757*d14625f7Sroot  with options \\"\$ac_cs_config\\"
12758*d14625f7Sroot
12759*d14625f7SrootCopyright (C) 2012 Free Software Foundation, Inc.
12760*d14625f7SrootThis config.status script is free software; the Free Software Foundation
12761*d14625f7Srootgives unlimited permission to copy, distribute and modify it."
12762*d14625f7Sroot
12763*d14625f7Srootac_pwd='$ac_pwd'
12764*d14625f7Srootsrcdir='$srcdir'
12765*d14625f7SrootINSTALL='$INSTALL'
12766*d14625f7SrootAWK='$AWK'
12767*d14625f7Sroottest -n "\$AWK" || AWK=awk
12768*d14625f7Sroot_ACEOF
12769*d14625f7Sroot
12770*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771*d14625f7Sroot# The default lists apply if the user does not specify any file.
12772*d14625f7Srootac_need_defaults=:
12773*d14625f7Srootwhile test $# != 0
12774*d14625f7Srootdo
12775*d14625f7Sroot  case $1 in
12776*d14625f7Sroot  --*=?*)
12777*d14625f7Sroot    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12778*d14625f7Sroot    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12779*d14625f7Sroot    ac_shift=:
12780*d14625f7Sroot    ;;
12781*d14625f7Sroot  --*=)
12782*d14625f7Sroot    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12783*d14625f7Sroot    ac_optarg=
12784*d14625f7Sroot    ac_shift=:
12785*d14625f7Sroot    ;;
12786*d14625f7Sroot  *)
12787*d14625f7Sroot    ac_option=$1
12788*d14625f7Sroot    ac_optarg=$2
12789*d14625f7Sroot    ac_shift=shift
12790*d14625f7Sroot    ;;
12791*d14625f7Sroot  esac
12792*d14625f7Sroot
12793*d14625f7Sroot  case $ac_option in
12794*d14625f7Sroot  # Handling of the options.
12795*d14625f7Sroot  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12796*d14625f7Sroot    ac_cs_recheck=: ;;
12797*d14625f7Sroot  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12798*d14625f7Sroot    $as_echo "$ac_cs_version"; exit ;;
12799*d14625f7Sroot  --config | --confi | --conf | --con | --co | --c )
12800*d14625f7Sroot    $as_echo "$ac_cs_config"; exit ;;
12801*d14625f7Sroot  --debug | --debu | --deb | --de | --d | -d )
12802*d14625f7Sroot    debug=: ;;
12803*d14625f7Sroot  --file | --fil | --fi | --f )
12804*d14625f7Sroot    $ac_shift
12805*d14625f7Sroot    case $ac_optarg in
12806*d14625f7Sroot    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12807*d14625f7Sroot    '') as_fn_error $? "missing file argument" ;;
12808*d14625f7Sroot    esac
12809*d14625f7Sroot    as_fn_append CONFIG_FILES " '$ac_optarg'"
12810*d14625f7Sroot    ac_need_defaults=false;;
12811*d14625f7Sroot  --header | --heade | --head | --hea )
12812*d14625f7Sroot    $ac_shift
12813*d14625f7Sroot    case $ac_optarg in
12814*d14625f7Sroot    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12815*d14625f7Sroot    esac
12816*d14625f7Sroot    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12817*d14625f7Sroot    ac_need_defaults=false;;
12818*d14625f7Sroot  --he | --h)
12819*d14625f7Sroot    # Conflict between --help and --header
12820*d14625f7Sroot    as_fn_error $? "ambiguous option: \`$1'
12821*d14625f7SrootTry \`$0 --help' for more information.";;
12822*d14625f7Sroot  --help | --hel | -h )
12823*d14625f7Sroot    $as_echo "$ac_cs_usage"; exit ;;
12824*d14625f7Sroot  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12825*d14625f7Sroot  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12826*d14625f7Sroot    ac_cs_silent=: ;;
12827*d14625f7Sroot
12828*d14625f7Sroot  # This is an error.
12829*d14625f7Sroot  -*) as_fn_error $? "unrecognized option: \`$1'
12830*d14625f7SrootTry \`$0 --help' for more information." ;;
12831*d14625f7Sroot
12832*d14625f7Sroot  *) as_fn_append ac_config_targets " $1"
12833*d14625f7Sroot     ac_need_defaults=false ;;
12834*d14625f7Sroot
12835*d14625f7Sroot  esac
12836*d14625f7Sroot  shift
12837*d14625f7Srootdone
12838*d14625f7Sroot
12839*d14625f7Srootac_configure_extra_args=
12840*d14625f7Sroot
12841*d14625f7Srootif $ac_cs_silent; then
12842*d14625f7Sroot  exec 6>/dev/null
12843*d14625f7Sroot  ac_configure_extra_args="$ac_configure_extra_args --silent"
12844*d14625f7Srootfi
12845*d14625f7Sroot
12846*d14625f7Sroot_ACEOF
12847*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12848*d14625f7Srootif \$ac_cs_recheck; then
12849*d14625f7Sroot  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12850*d14625f7Sroot  shift
12851*d14625f7Sroot  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12852*d14625f7Sroot  CONFIG_SHELL='$SHELL'
12853*d14625f7Sroot  export CONFIG_SHELL
12854*d14625f7Sroot  exec "\$@"
12855*d14625f7Srootfi
12856*d14625f7Sroot
12857*d14625f7Sroot_ACEOF
12858*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859*d14625f7Srootexec 5>>config.log
12860*d14625f7Sroot{
12861*d14625f7Sroot  echo
12862*d14625f7Sroot  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12863*d14625f7Sroot## Running $as_me. ##
12864*d14625f7Sroot_ASBOX
12865*d14625f7Sroot  $as_echo "$ac_log"
12866*d14625f7Sroot} >&5
12867*d14625f7Sroot
12868*d14625f7Sroot_ACEOF
12869*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12870*d14625f7Sroot#
12871*d14625f7Sroot# INIT-COMMANDS
12872*d14625f7Sroot#
12873*d14625f7Sroot
12874*d14625f7Sroot  srcdir="${srcdir}"
12875*d14625f7Sroot  objroot="${objroot}"
12876*d14625f7Sroot  mangling_map="${mangling_map}"
12877*d14625f7Sroot  public_syms="${public_syms}"
12878*d14625f7Sroot  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12879*d14625f7Sroot
12880*d14625f7Sroot
12881*d14625f7Sroot  srcdir="${srcdir}"
12882*d14625f7Sroot  objroot="${objroot}"
12883*d14625f7Sroot  public_syms="${public_syms}"
12884*d14625f7Sroot  wrap_syms="${wrap_syms}"
12885*d14625f7Sroot  SYM_PREFIX="${SYM_PREFIX}"
12886*d14625f7Sroot  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12887*d14625f7Sroot
12888*d14625f7Sroot
12889*d14625f7Sroot  srcdir="${srcdir}"
12890*d14625f7Sroot  objroot="${objroot}"
12891*d14625f7Sroot  public_syms="${public_syms}"
12892*d14625f7Sroot  wrap_syms="${wrap_syms}"
12893*d14625f7Sroot  SYM_PREFIX="${SYM_PREFIX}"
12894*d14625f7Sroot
12895*d14625f7Sroot
12896*d14625f7Sroot  srcdir="${srcdir}"
12897*d14625f7Sroot  objroot="${objroot}"
12898*d14625f7Sroot
12899*d14625f7Sroot
12900*d14625f7Sroot  srcdir="${srcdir}"
12901*d14625f7Sroot  objroot="${objroot}"
12902*d14625f7Sroot
12903*d14625f7Sroot
12904*d14625f7Sroot  SHELL="${SHELL}"
12905*d14625f7Sroot  srcdir="${srcdir}"
12906*d14625f7Sroot  objroot="${objroot}"
12907*d14625f7Sroot  LG_QUANTA="${LG_QUANTA}"
12908*d14625f7Sroot  LG_PAGE_SIZES="${LG_PAGE_SIZES}"
12909*d14625f7Sroot
12910*d14625f7Sroot
12911*d14625f7Sroot  srcdir="${srcdir}"
12912*d14625f7Sroot  objroot="${objroot}"
12913*d14625f7Sroot
12914*d14625f7Sroot
12915*d14625f7Sroot  srcdir="${srcdir}"
12916*d14625f7Sroot  objroot="${objroot}"
12917*d14625f7Sroot
12918*d14625f7Sroot
12919*d14625f7Sroot  srcdir="${srcdir}"
12920*d14625f7Sroot  objroot="${objroot}"
12921*d14625f7Sroot
12922*d14625f7Sroot
12923*d14625f7Sroot  srcdir="${srcdir}"
12924*d14625f7Sroot  objroot="${objroot}"
12925*d14625f7Sroot
12926*d14625f7Sroot
12927*d14625f7Sroot  srcdir="${srcdir}"
12928*d14625f7Sroot  objroot="${objroot}"
12929*d14625f7Sroot  install_suffix="${install_suffix}"
12930*d14625f7Sroot
12931*d14625f7Sroot
12932*d14625f7Sroot_ACEOF
12933*d14625f7Sroot
12934*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12935*d14625f7Sroot
12936*d14625f7Sroot# Handling of arguments.
12937*d14625f7Srootfor ac_config_target in $ac_config_targets
12938*d14625f7Srootdo
12939*d14625f7Sroot  case $ac_config_target in
12940*d14625f7Sroot    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
12941*d14625f7Sroot    "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
12942*d14625f7Sroot    "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
12943*d14625f7Sroot    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
12944*d14625f7Sroot    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
12945*d14625f7Sroot    "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
12946*d14625f7Sroot    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
12947*d14625f7Sroot    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
12948*d14625f7Sroot    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
12949*d14625f7Sroot    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
12950*d14625f7Sroot    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
12951*d14625f7Sroot    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
12952*d14625f7Sroot    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
12953*d14625f7Sroot    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
12954*d14625f7Sroot    "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
12955*d14625f7Sroot    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
12956*d14625f7Sroot    "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
12957*d14625f7Sroot
12958*d14625f7Sroot  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12959*d14625f7Sroot  esac
12960*d14625f7Srootdone
12961*d14625f7Sroot
12962*d14625f7Sroot
12963*d14625f7Sroot# If the user did not use the arguments to specify the items to instantiate,
12964*d14625f7Sroot# then the envvar interface is used.  Set only those that are not.
12965*d14625f7Sroot# We use the long form for the default assignment because of an extremely
12966*d14625f7Sroot# bizarre bug on SunOS 4.1.3.
12967*d14625f7Srootif $ac_need_defaults; then
12968*d14625f7Sroot  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12969*d14625f7Sroot  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12970*d14625f7Sroot  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12971*d14625f7Srootfi
12972*d14625f7Sroot
12973*d14625f7Sroot# Have a temporary directory for convenience.  Make it in the build tree
12974*d14625f7Sroot# simply because there is no reason against having it here, and in addition,
12975*d14625f7Sroot# creating and moving files from /tmp can sometimes cause problems.
12976*d14625f7Sroot# Hook for its removal unless debugging.
12977*d14625f7Sroot# Note that there is a small window in which the directory will not be cleaned:
12978*d14625f7Sroot# after its creation but before its name has been assigned to `$tmp'.
12979*d14625f7Sroot$debug ||
12980*d14625f7Sroot{
12981*d14625f7Sroot  tmp= ac_tmp=
12982*d14625f7Sroot  trap 'exit_status=$?
12983*d14625f7Sroot  : "${ac_tmp:=$tmp}"
12984*d14625f7Sroot  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12985*d14625f7Sroot' 0
12986*d14625f7Sroot  trap 'as_fn_exit 1' 1 2 13 15
12987*d14625f7Sroot}
12988*d14625f7Sroot# Create a (secure) tmp directory for tmp files.
12989*d14625f7Sroot
12990*d14625f7Sroot{
12991*d14625f7Sroot  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12992*d14625f7Sroot  test -d "$tmp"
12993*d14625f7Sroot}  ||
12994*d14625f7Sroot{
12995*d14625f7Sroot  tmp=./conf$$-$RANDOM
12996*d14625f7Sroot  (umask 077 && mkdir "$tmp")
12997*d14625f7Sroot} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12998*d14625f7Srootac_tmp=$tmp
12999*d14625f7Sroot
13000*d14625f7Sroot# Set up the scripts for CONFIG_FILES section.
13001*d14625f7Sroot# No need to generate them if there are no CONFIG_FILES.
13002*d14625f7Sroot# This happens for instance with `./config.status config.h'.
13003*d14625f7Srootif test -n "$CONFIG_FILES"; then
13004*d14625f7Sroot
13005*d14625f7Sroot
13006*d14625f7Srootac_cr=`echo X | tr X '\015'`
13007*d14625f7Sroot# On cygwin, bash can eat \r inside `` if the user requested igncr.
13008*d14625f7Sroot# But we know of no other shell where ac_cr would be empty at this
13009*d14625f7Sroot# point, so we can use a bashism as a fallback.
13010*d14625f7Srootif test "x$ac_cr" = x; then
13011*d14625f7Sroot  eval ac_cr=\$\'\\r\'
13012*d14625f7Srootfi
13013*d14625f7Srootac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13014*d14625f7Srootif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13015*d14625f7Sroot  ac_cs_awk_cr='\\r'
13016*d14625f7Srootelse
13017*d14625f7Sroot  ac_cs_awk_cr=$ac_cr
13018*d14625f7Srootfi
13019*d14625f7Sroot
13020*d14625f7Srootecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13021*d14625f7Sroot_ACEOF
13022*d14625f7Sroot
13023*d14625f7Sroot
13024*d14625f7Sroot{
13025*d14625f7Sroot  echo "cat >conf$$subs.awk <<_ACEOF" &&
13026*d14625f7Sroot  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13027*d14625f7Sroot  echo "_ACEOF"
13028*d14625f7Sroot} >conf$$subs.sh ||
13029*d14625f7Sroot  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13030*d14625f7Srootac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13031*d14625f7Srootac_delim='%!_!# '
13032*d14625f7Srootfor ac_last_try in false false false false false :; do
13033*d14625f7Sroot  . ./conf$$subs.sh ||
13034*d14625f7Sroot    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13035*d14625f7Sroot
13036*d14625f7Sroot  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13037*d14625f7Sroot  if test $ac_delim_n = $ac_delim_num; then
13038*d14625f7Sroot    break
13039*d14625f7Sroot  elif $ac_last_try; then
13040*d14625f7Sroot    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13041*d14625f7Sroot  else
13042*d14625f7Sroot    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13043*d14625f7Sroot  fi
13044*d14625f7Srootdone
13045*d14625f7Srootrm -f conf$$subs.sh
13046*d14625f7Sroot
13047*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13048*d14625f7Srootcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13049*d14625f7Sroot_ACEOF
13050*d14625f7Srootsed -n '
13051*d14625f7Srooth
13052*d14625f7Sroots/^/S["/; s/!.*/"]=/
13053*d14625f7Srootp
13054*d14625f7Srootg
13055*d14625f7Sroots/^[^!]*!//
13056*d14625f7Sroot:repl
13057*d14625f7Sroott repl
13058*d14625f7Sroots/'"$ac_delim"'$//
13059*d14625f7Sroott delim
13060*d14625f7Sroot:nl
13061*d14625f7Srooth
13062*d14625f7Sroots/\(.\{148\}\)..*/\1/
13063*d14625f7Sroott more1
13064*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13065*d14625f7Srootp
13066*d14625f7Srootn
13067*d14625f7Srootb repl
13068*d14625f7Sroot:more1
13069*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/"\\/
13070*d14625f7Srootp
13071*d14625f7Srootg
13072*d14625f7Sroots/.\{148\}//
13073*d14625f7Sroott nl
13074*d14625f7Sroot:delim
13075*d14625f7Srooth
13076*d14625f7Sroots/\(.\{148\}\)..*/\1/
13077*d14625f7Sroott more2
13078*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/"/
13079*d14625f7Srootp
13080*d14625f7Srootb
13081*d14625f7Sroot:more2
13082*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/"\\/
13083*d14625f7Srootp
13084*d14625f7Srootg
13085*d14625f7Sroots/.\{148\}//
13086*d14625f7Sroott delim
13087*d14625f7Sroot' <conf$$subs.awk | sed '
13088*d14625f7Sroot/^[^""]/{
13089*d14625f7Sroot  N
13090*d14625f7Sroot  s/\n//
13091*d14625f7Sroot}
13092*d14625f7Sroot' >>$CONFIG_STATUS || ac_write_fail=1
13093*d14625f7Srootrm -f conf$$subs.awk
13094*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13095*d14625f7Sroot_ACAWK
13096*d14625f7Srootcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13097*d14625f7Sroot  for (key in S) S_is_set[key] = 1
13098*d14625f7Sroot  FS = ""
13099*d14625f7Sroot
13100*d14625f7Sroot}
13101*d14625f7Sroot{
13102*d14625f7Sroot  line = $ 0
13103*d14625f7Sroot  nfields = split(line, field, "@")
13104*d14625f7Sroot  substed = 0
13105*d14625f7Sroot  len = length(field[1])
13106*d14625f7Sroot  for (i = 2; i < nfields; i++) {
13107*d14625f7Sroot    key = field[i]
13108*d14625f7Sroot    keylen = length(key)
13109*d14625f7Sroot    if (S_is_set[key]) {
13110*d14625f7Sroot      value = S[key]
13111*d14625f7Sroot      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13112*d14625f7Sroot      len += length(value) + length(field[++i])
13113*d14625f7Sroot      substed = 1
13114*d14625f7Sroot    } else
13115*d14625f7Sroot      len += 1 + keylen
13116*d14625f7Sroot  }
13117*d14625f7Sroot
13118*d14625f7Sroot  print line
13119*d14625f7Sroot}
13120*d14625f7Sroot
13121*d14625f7Sroot_ACAWK
13122*d14625f7Sroot_ACEOF
13123*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13124*d14625f7Srootif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13125*d14625f7Sroot  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13126*d14625f7Srootelse
13127*d14625f7Sroot  cat
13128*d14625f7Srootfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13129*d14625f7Sroot  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13130*d14625f7Sroot_ACEOF
13131*d14625f7Sroot
13132*d14625f7Sroot# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13133*d14625f7Sroot# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13134*d14625f7Sroot# trailing colons and then remove the whole line if VPATH becomes empty
13135*d14625f7Sroot# (actually we leave an empty line to preserve line numbers).
13136*d14625f7Srootif test "x$srcdir" = x.; then
13137*d14625f7Sroot  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13138*d14625f7Srooth
13139*d14625f7Sroots///
13140*d14625f7Sroots/^/:/
13141*d14625f7Sroots/[	 ]*$/:/
13142*d14625f7Sroots/:\$(srcdir):/:/g
13143*d14625f7Sroots/:\${srcdir}:/:/g
13144*d14625f7Sroots/:@srcdir@:/:/g
13145*d14625f7Sroots/^:*//
13146*d14625f7Sroots/:*$//
13147*d14625f7Srootx
13148*d14625f7Sroots/\(=[	 ]*\).*/\1/
13149*d14625f7SrootG
13150*d14625f7Sroots/\n//
13151*d14625f7Sroots/^[^=]*=[	 ]*$//
13152*d14625f7Sroot}'
13153*d14625f7Srootfi
13154*d14625f7Sroot
13155*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156*d14625f7Srootfi # test -n "$CONFIG_FILES"
13157*d14625f7Sroot
13158*d14625f7Sroot# Set up the scripts for CONFIG_HEADERS section.
13159*d14625f7Sroot# No need to generate them if there are no CONFIG_HEADERS.
13160*d14625f7Sroot# This happens for instance with `./config.status Makefile'.
13161*d14625f7Srootif test -n "$CONFIG_HEADERS"; then
13162*d14625f7Srootcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13163*d14625f7SrootBEGIN {
13164*d14625f7Sroot_ACEOF
13165*d14625f7Sroot
13166*d14625f7Sroot# Transform confdefs.h into an awk script `defines.awk', embedded as
13167*d14625f7Sroot# here-document in config.status, that substitutes the proper values into
13168*d14625f7Sroot# config.h.in to produce config.h.
13169*d14625f7Sroot
13170*d14625f7Sroot# Create a delimiter string that does not exist in confdefs.h, to ease
13171*d14625f7Sroot# handling of long lines.
13172*d14625f7Srootac_delim='%!_!# '
13173*d14625f7Srootfor ac_last_try in false false :; do
13174*d14625f7Sroot  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13175*d14625f7Sroot  if test -z "$ac_tt"; then
13176*d14625f7Sroot    break
13177*d14625f7Sroot  elif $ac_last_try; then
13178*d14625f7Sroot    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13179*d14625f7Sroot  else
13180*d14625f7Sroot    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13181*d14625f7Sroot  fi
13182*d14625f7Srootdone
13183*d14625f7Sroot
13184*d14625f7Sroot# For the awk script, D is an array of macro values keyed by name,
13185*d14625f7Sroot# likewise P contains macro parameters if any.  Preserve backslash
13186*d14625f7Sroot# newline sequences.
13187*d14625f7Sroot
13188*d14625f7Srootac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13189*d14625f7Srootsed -n '
13190*d14625f7Sroots/.\{148\}/&'"$ac_delim"'/g
13191*d14625f7Sroott rset
13192*d14625f7Sroot:rset
13193*d14625f7Sroots/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13194*d14625f7Sroott def
13195*d14625f7Srootd
13196*d14625f7Sroot:def
13197*d14625f7Sroots/\\$//
13198*d14625f7Sroott bsnl
13199*d14625f7Sroots/["\\]/\\&/g
13200*d14625f7Sroots/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13201*d14625f7SrootD["\1"]=" \3"/p
13202*d14625f7Sroots/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13203*d14625f7Srootd
13204*d14625f7Sroot:bsnl
13205*d14625f7Sroots/["\\]/\\&/g
13206*d14625f7Sroots/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13207*d14625f7SrootD["\1"]=" \3\\\\\\n"\\/p
13208*d14625f7Sroott cont
13209*d14625f7Sroots/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13210*d14625f7Sroott cont
13211*d14625f7Srootd
13212*d14625f7Sroot:cont
13213*d14625f7Srootn
13214*d14625f7Sroots/.\{148\}/&'"$ac_delim"'/g
13215*d14625f7Sroott clear
13216*d14625f7Sroot:clear
13217*d14625f7Sroots/\\$//
13218*d14625f7Sroott bsnlc
13219*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/"/p
13220*d14625f7Srootd
13221*d14625f7Sroot:bsnlc
13222*d14625f7Sroots/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13223*d14625f7Srootb cont
13224*d14625f7Sroot' <confdefs.h | sed '
13225*d14625f7Sroots/'"$ac_delim"'/"\\\
13226*d14625f7Sroot"/g' >>$CONFIG_STATUS || ac_write_fail=1
13227*d14625f7Sroot
13228*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229*d14625f7Sroot  for (key in D) D_is_set[key] = 1
13230*d14625f7Sroot  FS = ""
13231*d14625f7Sroot}
13232*d14625f7Sroot/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13233*d14625f7Sroot  line = \$ 0
13234*d14625f7Sroot  split(line, arg, " ")
13235*d14625f7Sroot  if (arg[1] == "#") {
13236*d14625f7Sroot    defundef = arg[2]
13237*d14625f7Sroot    mac1 = arg[3]
13238*d14625f7Sroot  } else {
13239*d14625f7Sroot    defundef = substr(arg[1], 2)
13240*d14625f7Sroot    mac1 = arg[2]
13241*d14625f7Sroot  }
13242*d14625f7Sroot  split(mac1, mac2, "(") #)
13243*d14625f7Sroot  macro = mac2[1]
13244*d14625f7Sroot  prefix = substr(line, 1, index(line, defundef) - 1)
13245*d14625f7Sroot  if (D_is_set[macro]) {
13246*d14625f7Sroot    # Preserve the white space surrounding the "#".
13247*d14625f7Sroot    print prefix "define", macro P[macro] D[macro]
13248*d14625f7Sroot    next
13249*d14625f7Sroot  } else {
13250*d14625f7Sroot    # Replace #undef with comments.  This is necessary, for example,
13251*d14625f7Sroot    # in the case of _POSIX_SOURCE, which is predefined and required
13252*d14625f7Sroot    # on some systems where configure will not decide to define it.
13253*d14625f7Sroot    if (defundef == "undef") {
13254*d14625f7Sroot      print "/*", prefix defundef, macro, "*/"
13255*d14625f7Sroot      next
13256*d14625f7Sroot    }
13257*d14625f7Sroot  }
13258*d14625f7Sroot}
13259*d14625f7Sroot{ print }
13260*d14625f7Sroot_ACAWK
13261*d14625f7Sroot_ACEOF
13262*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13263*d14625f7Sroot  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13264*d14625f7Srootfi # test -n "$CONFIG_HEADERS"
13265*d14625f7Sroot
13266*d14625f7Sroot
13267*d14625f7Srooteval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13268*d14625f7Srootshift
13269*d14625f7Srootfor ac_tag
13270*d14625f7Srootdo
13271*d14625f7Sroot  case $ac_tag in
13272*d14625f7Sroot  :[FHLC]) ac_mode=$ac_tag; continue;;
13273*d14625f7Sroot  esac
13274*d14625f7Sroot  case $ac_mode$ac_tag in
13275*d14625f7Sroot  :[FHL]*:*);;
13276*d14625f7Sroot  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13277*d14625f7Sroot  :[FH]-) ac_tag=-:-;;
13278*d14625f7Sroot  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13279*d14625f7Sroot  esac
13280*d14625f7Sroot  ac_save_IFS=$IFS
13281*d14625f7Sroot  IFS=:
13282*d14625f7Sroot  set x $ac_tag
13283*d14625f7Sroot  IFS=$ac_save_IFS
13284*d14625f7Sroot  shift
13285*d14625f7Sroot  ac_file=$1
13286*d14625f7Sroot  shift
13287*d14625f7Sroot
13288*d14625f7Sroot  case $ac_mode in
13289*d14625f7Sroot  :L) ac_source=$1;;
13290*d14625f7Sroot  :[FH])
13291*d14625f7Sroot    ac_file_inputs=
13292*d14625f7Sroot    for ac_f
13293*d14625f7Sroot    do
13294*d14625f7Sroot      case $ac_f in
13295*d14625f7Sroot      -) ac_f="$ac_tmp/stdin";;
13296*d14625f7Sroot      *) # Look for the file first in the build tree, then in the source tree
13297*d14625f7Sroot	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13298*d14625f7Sroot	 # because $ac_f cannot contain `:'.
13299*d14625f7Sroot	 test -f "$ac_f" ||
13300*d14625f7Sroot	   case $ac_f in
13301*d14625f7Sroot	   [\\/$]*) false;;
13302*d14625f7Sroot	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13303*d14625f7Sroot	   esac ||
13304*d14625f7Sroot	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13305*d14625f7Sroot      esac
13306*d14625f7Sroot      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13307*d14625f7Sroot      as_fn_append ac_file_inputs " '$ac_f'"
13308*d14625f7Sroot    done
13309*d14625f7Sroot
13310*d14625f7Sroot    # Let's still pretend it is `configure' which instantiates (i.e., don't
13311*d14625f7Sroot    # use $as_me), people would be surprised to read:
13312*d14625f7Sroot    #    /* config.h.  Generated by config.status.  */
13313*d14625f7Sroot    configure_input='Generated from '`
13314*d14625f7Sroot	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13315*d14625f7Sroot	`' by configure.'
13316*d14625f7Sroot    if test x"$ac_file" != x-; then
13317*d14625f7Sroot      configure_input="$ac_file.  $configure_input"
13318*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13319*d14625f7Sroot$as_echo "$as_me: creating $ac_file" >&6;}
13320*d14625f7Sroot    fi
13321*d14625f7Sroot    # Neutralize special characters interpreted by sed in replacement strings.
13322*d14625f7Sroot    case $configure_input in #(
13323*d14625f7Sroot    *\&* | *\|* | *\\* )
13324*d14625f7Sroot       ac_sed_conf_input=`$as_echo "$configure_input" |
13325*d14625f7Sroot       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13326*d14625f7Sroot    *) ac_sed_conf_input=$configure_input;;
13327*d14625f7Sroot    esac
13328*d14625f7Sroot
13329*d14625f7Sroot    case $ac_tag in
13330*d14625f7Sroot    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13331*d14625f7Sroot      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13332*d14625f7Sroot    esac
13333*d14625f7Sroot    ;;
13334*d14625f7Sroot  esac
13335*d14625f7Sroot
13336*d14625f7Sroot  ac_dir=`$as_dirname -- "$ac_file" ||
13337*d14625f7Sroot$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13338*d14625f7Sroot	 X"$ac_file" : 'X\(//\)[^/]' \| \
13339*d14625f7Sroot	 X"$ac_file" : 'X\(//\)$' \| \
13340*d14625f7Sroot	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13341*d14625f7Sroot$as_echo X"$ac_file" |
13342*d14625f7Sroot    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13343*d14625f7Sroot	    s//\1/
13344*d14625f7Sroot	    q
13345*d14625f7Sroot	  }
13346*d14625f7Sroot	  /^X\(\/\/\)[^/].*/{
13347*d14625f7Sroot	    s//\1/
13348*d14625f7Sroot	    q
13349*d14625f7Sroot	  }
13350*d14625f7Sroot	  /^X\(\/\/\)$/{
13351*d14625f7Sroot	    s//\1/
13352*d14625f7Sroot	    q
13353*d14625f7Sroot	  }
13354*d14625f7Sroot	  /^X\(\/\).*/{
13355*d14625f7Sroot	    s//\1/
13356*d14625f7Sroot	    q
13357*d14625f7Sroot	  }
13358*d14625f7Sroot	  s/.*/./; q'`
13359*d14625f7Sroot  as_dir="$ac_dir"; as_fn_mkdir_p
13360*d14625f7Sroot  ac_builddir=.
13361*d14625f7Sroot
13362*d14625f7Srootcase "$ac_dir" in
13363*d14625f7Sroot.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13364*d14625f7Sroot*)
13365*d14625f7Sroot  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13366*d14625f7Sroot  # A ".." for each directory in $ac_dir_suffix.
13367*d14625f7Sroot  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13368*d14625f7Sroot  case $ac_top_builddir_sub in
13369*d14625f7Sroot  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13370*d14625f7Sroot  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13371*d14625f7Sroot  esac ;;
13372*d14625f7Srootesac
13373*d14625f7Srootac_abs_top_builddir=$ac_pwd
13374*d14625f7Srootac_abs_builddir=$ac_pwd$ac_dir_suffix
13375*d14625f7Sroot# for backward compatibility:
13376*d14625f7Srootac_top_builddir=$ac_top_build_prefix
13377*d14625f7Sroot
13378*d14625f7Srootcase $srcdir in
13379*d14625f7Sroot  .)  # We are building in place.
13380*d14625f7Sroot    ac_srcdir=.
13381*d14625f7Sroot    ac_top_srcdir=$ac_top_builddir_sub
13382*d14625f7Sroot    ac_abs_top_srcdir=$ac_pwd ;;
13383*d14625f7Sroot  [\\/]* | ?:[\\/]* )  # Absolute name.
13384*d14625f7Sroot    ac_srcdir=$srcdir$ac_dir_suffix;
13385*d14625f7Sroot    ac_top_srcdir=$srcdir
13386*d14625f7Sroot    ac_abs_top_srcdir=$srcdir ;;
13387*d14625f7Sroot  *) # Relative name.
13388*d14625f7Sroot    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13389*d14625f7Sroot    ac_top_srcdir=$ac_top_build_prefix$srcdir
13390*d14625f7Sroot    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13391*d14625f7Srootesac
13392*d14625f7Srootac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13393*d14625f7Sroot
13394*d14625f7Sroot
13395*d14625f7Sroot  case $ac_mode in
13396*d14625f7Sroot  :F)
13397*d14625f7Sroot  #
13398*d14625f7Sroot  # CONFIG_FILE
13399*d14625f7Sroot  #
13400*d14625f7Sroot
13401*d14625f7Sroot  case $INSTALL in
13402*d14625f7Sroot  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13403*d14625f7Sroot  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13404*d14625f7Sroot  esac
13405*d14625f7Sroot_ACEOF
13406*d14625f7Sroot
13407*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408*d14625f7Sroot# If the template does not know about datarootdir, expand it.
13409*d14625f7Sroot# FIXME: This hack should be removed a few years after 2.60.
13410*d14625f7Srootac_datarootdir_hack=; ac_datarootdir_seen=
13411*d14625f7Srootac_sed_dataroot='
13412*d14625f7Sroot/datarootdir/ {
13413*d14625f7Sroot  p
13414*d14625f7Sroot  q
13415*d14625f7Sroot}
13416*d14625f7Sroot/@datadir@/p
13417*d14625f7Sroot/@docdir@/p
13418*d14625f7Sroot/@infodir@/p
13419*d14625f7Sroot/@localedir@/p
13420*d14625f7Sroot/@mandir@/p'
13421*d14625f7Srootcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13422*d14625f7Sroot*datarootdir*) ac_datarootdir_seen=yes;;
13423*d14625f7Sroot*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13424*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13425*d14625f7Sroot$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13426*d14625f7Sroot_ACEOF
13427*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428*d14625f7Sroot  ac_datarootdir_hack='
13429*d14625f7Sroot  s&@datadir@&$datadir&g
13430*d14625f7Sroot  s&@docdir@&$docdir&g
13431*d14625f7Sroot  s&@infodir@&$infodir&g
13432*d14625f7Sroot  s&@localedir@&$localedir&g
13433*d14625f7Sroot  s&@mandir@&$mandir&g
13434*d14625f7Sroot  s&\\\${datarootdir}&$datarootdir&g' ;;
13435*d14625f7Srootesac
13436*d14625f7Sroot_ACEOF
13437*d14625f7Sroot
13438*d14625f7Sroot# Neutralize VPATH when `$srcdir' = `.'.
13439*d14625f7Sroot# Shell code in configure.ac might set extrasub.
13440*d14625f7Sroot# FIXME: do we really want to maintain this feature?
13441*d14625f7Srootcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442*d14625f7Srootac_sed_extra="$ac_vpsub
13443*d14625f7Sroot$extrasub
13444*d14625f7Sroot_ACEOF
13445*d14625f7Srootcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446*d14625f7Sroot:t
13447*d14625f7Sroot/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13448*d14625f7Sroots|@configure_input@|$ac_sed_conf_input|;t t
13449*d14625f7Sroots&@top_builddir@&$ac_top_builddir_sub&;t t
13450*d14625f7Sroots&@top_build_prefix@&$ac_top_build_prefix&;t t
13451*d14625f7Sroots&@srcdir@&$ac_srcdir&;t t
13452*d14625f7Sroots&@abs_srcdir@&$ac_abs_srcdir&;t t
13453*d14625f7Sroots&@top_srcdir@&$ac_top_srcdir&;t t
13454*d14625f7Sroots&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13455*d14625f7Sroots&@builddir@&$ac_builddir&;t t
13456*d14625f7Sroots&@abs_builddir@&$ac_abs_builddir&;t t
13457*d14625f7Sroots&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13458*d14625f7Sroots&@INSTALL@&$ac_INSTALL&;t t
13459*d14625f7Sroot$ac_datarootdir_hack
13460*d14625f7Sroot"
13461*d14625f7Srooteval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13462*d14625f7Sroot  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13463*d14625f7Sroot
13464*d14625f7Sroottest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13465*d14625f7Sroot  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13466*d14625f7Sroot  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13467*d14625f7Sroot      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13468*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13469*d14625f7Srootwhich seems to be undefined.  Please make sure it is defined" >&5
13470*d14625f7Sroot$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13471*d14625f7Srootwhich seems to be undefined.  Please make sure it is defined" >&2;}
13472*d14625f7Sroot
13473*d14625f7Sroot  rm -f "$ac_tmp/stdin"
13474*d14625f7Sroot  case $ac_file in
13475*d14625f7Sroot  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13476*d14625f7Sroot  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13477*d14625f7Sroot  esac \
13478*d14625f7Sroot  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13479*d14625f7Sroot ;;
13480*d14625f7Sroot  :H)
13481*d14625f7Sroot  #
13482*d14625f7Sroot  # CONFIG_HEADER
13483*d14625f7Sroot  #
13484*d14625f7Sroot  if test x"$ac_file" != x-; then
13485*d14625f7Sroot    {
13486*d14625f7Sroot      $as_echo "/* $configure_input  */" \
13487*d14625f7Sroot      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13488*d14625f7Sroot    } >"$ac_tmp/config.h" \
13489*d14625f7Sroot      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13490*d14625f7Sroot    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13491*d14625f7Sroot      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13492*d14625f7Sroot$as_echo "$as_me: $ac_file is unchanged" >&6;}
13493*d14625f7Sroot    else
13494*d14625f7Sroot      rm -f "$ac_file"
13495*d14625f7Sroot      mv "$ac_tmp/config.h" "$ac_file" \
13496*d14625f7Sroot	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13497*d14625f7Sroot    fi
13498*d14625f7Sroot  else
13499*d14625f7Sroot    $as_echo "/* $configure_input  */" \
13500*d14625f7Sroot      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13501*d14625f7Sroot      || as_fn_error $? "could not create -" "$LINENO" 5
13502*d14625f7Sroot  fi
13503*d14625f7Sroot ;;
13504*d14625f7Sroot
13505*d14625f7Sroot  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13506*d14625f7Sroot$as_echo "$as_me: executing $ac_file commands" >&6;}
13507*d14625f7Sroot ;;
13508*d14625f7Sroot  esac
13509*d14625f7Sroot
13510*d14625f7Sroot
13511*d14625f7Sroot  case $ac_file$ac_mode in
13512*d14625f7Sroot    "include/jemalloc/internal/public_symbols.txt":C)
13513*d14625f7Sroot  f="${objroot}include/jemalloc/internal/public_symbols.txt"
13514*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13515*d14625f7Sroot  cp /dev/null "${f}"
13516*d14625f7Sroot  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13517*d14625f7Sroot    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13518*d14625f7Sroot    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13519*d14625f7Sroot    echo "${n}:${m}" >> "${f}"
13520*d14625f7Sroot        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13521*d14625f7Sroot  done
13522*d14625f7Sroot  for sym in ${public_syms} ; do
13523*d14625f7Sroot    n="${sym}"
13524*d14625f7Sroot    m="${JEMALLOC_PREFIX}${sym}"
13525*d14625f7Sroot    echo "${n}:${m}" >> "${f}"
13526*d14625f7Sroot  done
13527*d14625f7Sroot ;;
13528*d14625f7Sroot    "include/jemalloc/internal/private_symbols.awk":C)
13529*d14625f7Sroot  f="${objroot}include/jemalloc/internal/private_symbols.awk"
13530*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13531*d14625f7Sroot  export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13532*d14625f7Sroot  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13533*d14625f7Sroot ;;
13534*d14625f7Sroot    "include/jemalloc/internal/private_symbols_jet.awk":C)
13535*d14625f7Sroot  f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13536*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13537*d14625f7Sroot  export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13538*d14625f7Sroot  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13539*d14625f7Sroot ;;
13540*d14625f7Sroot    "include/jemalloc/internal/public_namespace.h":C)
13541*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13542*d14625f7Sroot  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13543*d14625f7Sroot ;;
13544*d14625f7Sroot    "include/jemalloc/internal/public_unnamespace.h":C)
13545*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13546*d14625f7Sroot  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13547*d14625f7Sroot ;;
13548*d14625f7Sroot    "include/jemalloc/internal/size_classes.h":C)
13549*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc/internal"
13550*d14625f7Sroot  "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
13551*d14625f7Sroot ;;
13552*d14625f7Sroot    "include/jemalloc/jemalloc_protos_jet.h":C)
13553*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc"
13554*d14625f7Sroot  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13555*d14625f7Sroot ;;
13556*d14625f7Sroot    "include/jemalloc/jemalloc_rename.h":C)
13557*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc"
13558*d14625f7Sroot  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13559*d14625f7Sroot ;;
13560*d14625f7Sroot    "include/jemalloc/jemalloc_mangle.h":C)
13561*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc"
13562*d14625f7Sroot  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13563*d14625f7Sroot ;;
13564*d14625f7Sroot    "include/jemalloc/jemalloc_mangle_jet.h":C)
13565*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc"
13566*d14625f7Sroot  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13567*d14625f7Sroot ;;
13568*d14625f7Sroot    "include/jemalloc/jemalloc.h":C)
13569*d14625f7Sroot  mkdir -p "${objroot}include/jemalloc"
13570*d14625f7Sroot  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13571*d14625f7Sroot ;;
13572*d14625f7Sroot
13573*d14625f7Sroot  esac
13574*d14625f7Srootdone # for ac_tag
13575*d14625f7Sroot
13576*d14625f7Sroot
13577*d14625f7Srootas_fn_exit 0
13578*d14625f7Sroot_ACEOF
13579*d14625f7Srootac_clean_files=$ac_clean_files_save
13580*d14625f7Sroot
13581*d14625f7Sroottest $ac_write_fail = 0 ||
13582*d14625f7Sroot  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13583*d14625f7Sroot
13584*d14625f7Sroot
13585*d14625f7Sroot# configure is writing to config.log, and then calls config.status.
13586*d14625f7Sroot# config.status does its own redirection, appending to config.log.
13587*d14625f7Sroot# Unfortunately, on DOS this fails, as config.log is still kept open
13588*d14625f7Sroot# by configure, so config.status won't be able to write to it; its
13589*d14625f7Sroot# output is simply discarded.  So we exec the FD to /dev/null,
13590*d14625f7Sroot# effectively closing config.log, so it can be properly (re)opened and
13591*d14625f7Sroot# appended to by config.status.  When coming back to configure, we
13592*d14625f7Sroot# need to make the FD available again.
13593*d14625f7Srootif test "$no_create" != yes; then
13594*d14625f7Sroot  ac_cs_success=:
13595*d14625f7Sroot  ac_config_status_args=
13596*d14625f7Sroot  test "$silent" = yes &&
13597*d14625f7Sroot    ac_config_status_args="$ac_config_status_args --quiet"
13598*d14625f7Sroot  exec 5>/dev/null
13599*d14625f7Sroot  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13600*d14625f7Sroot  exec 5>>config.log
13601*d14625f7Sroot  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13602*d14625f7Sroot  # would make configure fail if this is the last instruction.
13603*d14625f7Sroot  $ac_cs_success || as_fn_exit 1
13604*d14625f7Srootfi
13605*d14625f7Srootif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13606*d14625f7Sroot  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13607*d14625f7Sroot$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13608*d14625f7Srootfi
13609*d14625f7Sroot
13610*d14625f7Sroot
13611*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13612*d14625f7Sroot$as_echo "===============================================================================" >&6; }
13613*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
13614*d14625f7Sroot$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
13615*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
13616*d14625f7Sroot$as_echo "library revision   : ${rev}" >&6; }
13617*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13618*d14625f7Sroot$as_echo "" >&6; }
13619*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
13620*d14625f7Sroot$as_echo "CONFIG             : ${CONFIG}" >&6; }
13621*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
13622*d14625f7Sroot$as_echo "CC                 : ${CC}" >&6; }
13623*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
13624*d14625f7Sroot$as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
13625*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
13626*d14625f7Sroot$as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
13627*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
13628*d14625f7Sroot$as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
13629*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
13630*d14625f7Sroot$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
13631*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
13632*d14625f7Sroot$as_echo "CXX                : ${CXX}" >&6; }
13633*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
13634*d14625f7Sroot$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
13635*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
13636*d14625f7Sroot$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
13637*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
13638*d14625f7Sroot$as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
13639*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
13640*d14625f7Sroot$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
13641*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
13642*d14625f7Sroot$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
13643*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
13644*d14625f7Sroot$as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
13645*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
13646*d14625f7Sroot$as_echo "LIBS               : ${LIBS}" >&6; }
13647*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
13648*d14625f7Sroot$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
13649*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13650*d14625f7Sroot$as_echo "" >&6; }
13651*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
13652*d14625f7Sroot$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
13653*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
13654*d14625f7Sroot$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
13655*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13656*d14625f7Sroot$as_echo "" >&6; }
13657*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
13658*d14625f7Sroot$as_echo "PREFIX             : ${PREFIX}" >&6; }
13659*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
13660*d14625f7Sroot$as_echo "BINDIR             : ${BINDIR}" >&6; }
13661*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
13662*d14625f7Sroot$as_echo "DATADIR            : ${DATADIR}" >&6; }
13663*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
13664*d14625f7Sroot$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
13665*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
13666*d14625f7Sroot$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
13667*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
13668*d14625f7Sroot$as_echo "MANDIR             : ${MANDIR}" >&6; }
13669*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13670*d14625f7Sroot$as_echo "" >&6; }
13671*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
13672*d14625f7Sroot$as_echo "srcroot            : ${srcroot}" >&6; }
13673*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
13674*d14625f7Sroot$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
13675*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
13676*d14625f7Sroot$as_echo "objroot            : ${objroot}" >&6; }
13677*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
13678*d14625f7Sroot$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
13679*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13680*d14625f7Sroot$as_echo "" >&6; }
13681*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
13682*d14625f7Sroot$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
13683*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
13684*d14625f7Sroot$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
13685*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
13686*d14625f7Sroot$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
13687*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
13688*d14625f7Sroot$as_echo "install_suffix     : ${install_suffix}" >&6; }
13689*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
13690*d14625f7Sroot$as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
13691*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
13692*d14625f7Sroot$as_echo "autogen            : ${enable_autogen}" >&6; }
13693*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
13694*d14625f7Sroot$as_echo "debug              : ${enable_debug}" >&6; }
13695*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
13696*d14625f7Sroot$as_echo "stats              : ${enable_stats}" >&6; }
13697*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
13698*d14625f7Sroot$as_echo "prof               : ${enable_prof}" >&6; }
13699*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
13700*d14625f7Sroot$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
13701*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
13702*d14625f7Sroot$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
13703*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
13704*d14625f7Sroot$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
13705*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
13706*d14625f7Sroot$as_echo "fill               : ${enable_fill}" >&6; }
13707*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
13708*d14625f7Sroot$as_echo "utrace             : ${enable_utrace}" >&6; }
13709*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
13710*d14625f7Sroot$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
13711*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
13712*d14625f7Sroot$as_echo "log                : ${enable_log}" >&6; }
13713*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
13714*d14625f7Sroot$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
13715*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
13716*d14625f7Sroot$as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
13717*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
13718*d14625f7Sroot$as_echo "cxx                : ${enable_cxx}" >&6; }
13719*d14625f7Sroot{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13720*d14625f7Sroot$as_echo "===============================================================================" >&6; }
13721