Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="Makefile.in"
    586 # Factoring default headers for most tests.
    587 ac_includes_default="\
    588 #include <stdio.h>
    589 #ifdef HAVE_SYS_TYPES_H
    590 # include <sys/types.h>
    591 #endif
    592 #ifdef HAVE_SYS_STAT_H
    593 # include <sys/stat.h>
    594 #endif
    595 #ifdef STDC_HEADERS
    596 # include <stdlib.h>
    597 # include <stddef.h>
    598 #else
    599 # ifdef HAVE_STDLIB_H
    600 #  include <stdlib.h>
    601 # endif
    602 #endif
    603 #ifdef HAVE_STRING_H
    604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    605 #  include <memory.h>
    606 # endif
    607 # include <string.h>
    608 #endif
    609 #ifdef HAVE_STRINGS_H
    610 # include <strings.h>
    611 #endif
    612 #ifdef HAVE_INTTYPES_H
    613 # include <inttypes.h>
    614 #endif
    615 #ifdef HAVE_STDINT_H
    616 # include <stdint.h>
    617 #endif
    618 #ifdef HAVE_UNISTD_H
    619 # include <unistd.h>
    620 #endif"
    621 
    622 ac_subst_vars='LTLIBOBJS
    623 LIBOBJS
    624 cfgoutputs_out
    625 cfgoutputs_in
    626 cfghdrs_out
    627 cfghdrs_in
    628 enable_initial_exec_tls
    629 enable_zone_allocator
    630 enable_tls
    631 enable_lazy_lock
    632 libdl
    633 enable_uaf_detection
    634 enable_opt_size_checks
    635 enable_opt_safety_checks
    636 enable_readlinkat
    637 enable_log
    638 enable_cache_oblivious
    639 enable_xmalloc
    640 enable_utrace
    641 enable_fill
    642 enable_prof
    643 enable_experimental_smallocx
    644 enable_stats
    645 enable_debug
    646 je_
    647 install_suffix
    648 private_namespace
    649 JEMALLOC_CPREFIX
    650 JEMALLOC_PREFIX
    651 enable_static
    652 enable_shared
    653 enable_doc
    654 AUTOCONF
    655 LD
    656 RANLIB
    657 INSTALL_DATA
    658 INSTALL_SCRIPT
    659 INSTALL_PROGRAM
    660 enable_autogen
    661 RPATH_EXTRA
    662 LM
    663 CC_MM
    664 DUMP_SYMS
    665 AROUT
    666 ARFLAGS
    667 MKLIB
    668 TEST_LD_MODE
    669 LDTARGET
    670 CTARGET
    671 PIC_CFLAGS
    672 SOREV
    673 EXTRA_LDFLAGS
    674 DSO_LDFLAGS
    675 link_whole_archive
    676 libprefix
    677 exe
    678 a
    679 o
    680 importlib
    681 so
    682 LD_PRELOAD_VAR
    683 RPATH
    684 abi
    685 jemalloc_version_gid
    686 jemalloc_version_nrev
    687 jemalloc_version_bugfix
    688 jemalloc_version_minor
    689 jemalloc_version_major
    690 jemalloc_version
    691 AWK
    692 NM
    693 AR
    694 host_os
    695 host_vendor
    696 host_cpu
    697 host
    698 build_os
    699 build_vendor
    700 build_cpu
    701 build
    702 EGREP
    703 GREP
    704 EXTRA_CXXFLAGS
    705 SPECIFIED_CXXFLAGS
    706 CONFIGURE_CXXFLAGS
    707 enable_cxx
    708 HAVE_CXX14
    709 HAVE_CXX17
    710 ac_ct_CXX
    711 CXXFLAGS
    712 CXX
    713 CPP
    714 EXTRA_CFLAGS
    715 SPECIFIED_CFLAGS
    716 CONFIGURE_CFLAGS
    717 OBJEXT
    718 EXEEXT
    719 ac_ct_CC
    720 CPPFLAGS
    721 LDFLAGS
    722 CFLAGS
    723 CC
    724 XSLROOT
    725 XSLTPROC
    726 MANDIR
    727 DATADIR
    728 LIBDIR
    729 INCLUDEDIR
    730 BINDIR
    731 PREFIX
    732 abs_objroot
    733 objroot
    734 abs_srcroot
    735 srcroot
    736 rev
    737 CONFIG
    738 target_alias
    739 host_alias
    740 build_alias
    741 LIBS
    742 ECHO_T
    743 ECHO_N
    744 ECHO_C
    745 DEFS
    746 mandir
    747 localedir
    748 libdir
    749 psdir
    750 pdfdir
    751 dvidir
    752 htmldir
    753 infodir
    754 docdir
    755 oldincludedir
    756 includedir
    757 localstatedir
    758 sharedstatedir
    759 sysconfdir
    760 datadir
    761 datarootdir
    762 libexecdir
    763 sbindir
    764 bindir
    765 program_transform_name
    766 prefix
    767 exec_prefix
    768 PACKAGE_URL
    769 PACKAGE_BUGREPORT
    770 PACKAGE_STRING
    771 PACKAGE_VERSION
    772 PACKAGE_TARNAME
    773 PACKAGE_NAME
    774 PATH_SEPARATOR
    775 SHELL'
    776 ac_subst_files=''
    777 ac_user_opts='
    778 enable_option_checking
    779 with_xslroot
    780 enable_cxx
    781 with_lg_vaddr
    782 with_version
    783 with_rpath
    784 enable_autogen
    785 enable_doc
    786 enable_shared
    787 enable_static
    788 with_mangling
    789 with_jemalloc_prefix
    790 with_export
    791 with_private_namespace
    792 with_install_suffix
    793 with_malloc_conf
    794 enable_debug
    795 enable_stats
    796 enable_experimental_smallocx
    797 enable_prof
    798 enable_prof_libunwind
    799 with_static_libunwind
    800 enable_prof_libgcc
    801 enable_prof_gcc
    802 enable_fill
    803 enable_utrace
    804 enable_xmalloc
    805 enable_cache_oblivious
    806 enable_log
    807 enable_readlinkat
    808 enable_opt_safety_checks
    809 enable_opt_size_checks
    810 enable_uaf_detection
    811 with_lg_quantum
    812 with_lg_slab_maxregs
    813 with_lg_page
    814 with_lg_hugepage
    815 enable_libdl
    816 enable_syscall
    817 enable_lazy_lock
    818 enable_zone_allocator
    819 enable_initial_exec_tls
    820 '
    821       ac_precious_vars='build_alias
    822 host_alias
    823 target_alias
    824 CC
    825 CFLAGS
    826 LDFLAGS
    827 LIBS
    828 CPPFLAGS
    829 CPP
    830 CXX
    831 CXXFLAGS
    832 CCC'
    833 
    834 
    835 # Initialize some variables set by options.
    836 ac_init_help=
    837 ac_init_version=false
    838 ac_unrecognized_opts=
    839 ac_unrecognized_sep=
    840 # The variables have the same names as the options, with
    841 # dashes changed to underlines.
    842 cache_file=/dev/null
    843 exec_prefix=NONE
    844 no_create=
    845 no_recursion=
    846 prefix=NONE
    847 program_prefix=NONE
    848 program_suffix=NONE
    849 program_transform_name=s,x,x,
    850 silent=
    851 site=
    852 srcdir=
    853 verbose=
    854 x_includes=NONE
    855 x_libraries=NONE
    856 
    857 # Installation directory options.
    858 # These are left unexpanded so users can "make install exec_prefix=/foo"
    859 # and all the variables that are supposed to be based on exec_prefix
    860 # by default will actually change.
    861 # Use braces instead of parens because sh, perl, etc. also accept them.
    862 # (The list follows the same order as the GNU Coding Standards.)
    863 bindir='${exec_prefix}/bin'
    864 sbindir='${exec_prefix}/sbin'
    865 libexecdir='${exec_prefix}/libexec'
    866 datarootdir='${prefix}/share'
    867 datadir='${datarootdir}'
    868 sysconfdir='${prefix}/etc'
    869 sharedstatedir='${prefix}/com'
    870 localstatedir='${prefix}/var'
    871 includedir='${prefix}/include'
    872 oldincludedir='/usr/include'
    873 docdir='${datarootdir}/doc/${PACKAGE}'
    874 infodir='${datarootdir}/info'
    875 htmldir='${docdir}'
    876 dvidir='${docdir}'
    877 pdfdir='${docdir}'
    878 psdir='${docdir}'
    879 libdir='${exec_prefix}/lib'
    880 localedir='${datarootdir}/locale'
    881 mandir='${datarootdir}/man'
    882 
    883 ac_prev=
    884 ac_dashdash=
    885 for ac_option
    886 do
    887   # If the previous option needs an argument, assign it.
    888   if test -n "$ac_prev"; then
    889     eval $ac_prev=\$ac_option
    890     ac_prev=
    891     continue
    892   fi
    893 
    894   case $ac_option in
    895   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    896   *=)   ac_optarg= ;;
    897   *)    ac_optarg=yes ;;
    898   esac
    899 
    900   # Accept the important Cygnus configure options, so we can diagnose typos.
    901 
    902   case $ac_dashdash$ac_option in
    903   --)
    904     ac_dashdash=yes ;;
    905 
    906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    907     ac_prev=bindir ;;
    908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    909     bindir=$ac_optarg ;;
    910 
    911   -build | --build | --buil | --bui | --bu)
    912     ac_prev=build_alias ;;
    913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    914     build_alias=$ac_optarg ;;
    915 
    916   -cache-file | --cache-file | --cache-fil | --cache-fi \
    917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    918     ac_prev=cache_file ;;
    919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    921     cache_file=$ac_optarg ;;
    922 
    923   --config-cache | -C)
    924     cache_file=config.cache ;;
    925 
    926   -datadir | --datadir | --datadi | --datad)
    927     ac_prev=datadir ;;
    928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    929     datadir=$ac_optarg ;;
    930 
    931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    932   | --dataroo | --dataro | --datar)
    933     ac_prev=datarootdir ;;
    934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    936     datarootdir=$ac_optarg ;;
    937 
    938   -disable-* | --disable-*)
    939     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    940     # Reject names that are not valid shell variable names.
    941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    942       as_fn_error $? "invalid feature name: $ac_useropt"
    943     ac_useropt_orig=$ac_useropt
    944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    945     case $ac_user_opts in
    946       *"
    947 "enable_$ac_useropt"
    948 "*) ;;
    949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    950 	 ac_unrecognized_sep=', ';;
    951     esac
    952     eval enable_$ac_useropt=no ;;
    953 
    954   -docdir | --docdir | --docdi | --doc | --do)
    955     ac_prev=docdir ;;
    956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    957     docdir=$ac_optarg ;;
    958 
    959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    960     ac_prev=dvidir ;;
    961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    962     dvidir=$ac_optarg ;;
    963 
    964   -enable-* | --enable-*)
    965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    966     # Reject names that are not valid shell variable names.
    967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    968       as_fn_error $? "invalid feature name: $ac_useropt"
    969     ac_useropt_orig=$ac_useropt
    970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    971     case $ac_user_opts in
    972       *"
    973 "enable_$ac_useropt"
    974 "*) ;;
    975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    976 	 ac_unrecognized_sep=', ';;
    977     esac
    978     eval enable_$ac_useropt=\$ac_optarg ;;
    979 
    980   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    981   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    982   | --exec | --exe | --ex)
    983     ac_prev=exec_prefix ;;
    984   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    985   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    986   | --exec=* | --exe=* | --ex=*)
    987     exec_prefix=$ac_optarg ;;
    988 
    989   -gas | --gas | --ga | --g)
    990     # Obsolete; use --with-gas.
    991     with_gas=yes ;;
    992 
    993   -help | --help | --hel | --he | -h)
    994     ac_init_help=long ;;
    995   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    996     ac_init_help=recursive ;;
    997   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    998     ac_init_help=short ;;
    999 
   1000   -host | --host | --hos | --ho)
   1001     ac_prev=host_alias ;;
   1002   -host=* | --host=* | --hos=* | --ho=*)
   1003     host_alias=$ac_optarg ;;
   1004 
   1005   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1006     ac_prev=htmldir ;;
   1007   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1008   | --ht=*)
   1009     htmldir=$ac_optarg ;;
   1010 
   1011   -includedir | --includedir | --includedi | --included | --include \
   1012   | --includ | --inclu | --incl | --inc)
   1013     ac_prev=includedir ;;
   1014   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1015   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1016     includedir=$ac_optarg ;;
   1017 
   1018   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1019     ac_prev=infodir ;;
   1020   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1021     infodir=$ac_optarg ;;
   1022 
   1023   -libdir | --libdir | --libdi | --libd)
   1024     ac_prev=libdir ;;
   1025   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1026     libdir=$ac_optarg ;;
   1027 
   1028   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1029   | --libexe | --libex | --libe)
   1030     ac_prev=libexecdir ;;
   1031   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1032   | --libexe=* | --libex=* | --libe=*)
   1033     libexecdir=$ac_optarg ;;
   1034 
   1035   -localedir | --localedir | --localedi | --localed | --locale)
   1036     ac_prev=localedir ;;
   1037   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1038     localedir=$ac_optarg ;;
   1039 
   1040   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1041   | --localstate | --localstat | --localsta | --localst | --locals)
   1042     ac_prev=localstatedir ;;
   1043   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1044   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1045     localstatedir=$ac_optarg ;;
   1046 
   1047   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1048     ac_prev=mandir ;;
   1049   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1050     mandir=$ac_optarg ;;
   1051 
   1052   -nfp | --nfp | --nf)
   1053     # Obsolete; use --without-fp.
   1054     with_fp=no ;;
   1055 
   1056   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1057   | --no-cr | --no-c | -n)
   1058     no_create=yes ;;
   1059 
   1060   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1061   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1062     no_recursion=yes ;;
   1063 
   1064   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1065   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1066   | --oldin | --oldi | --old | --ol | --o)
   1067     ac_prev=oldincludedir ;;
   1068   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1069   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1070   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1071     oldincludedir=$ac_optarg ;;
   1072 
   1073   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1074     ac_prev=prefix ;;
   1075   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1076     prefix=$ac_optarg ;;
   1077 
   1078   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1079   | --program-pre | --program-pr | --program-p)
   1080     ac_prev=program_prefix ;;
   1081   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1082   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1083     program_prefix=$ac_optarg ;;
   1084 
   1085   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1086   | --program-suf | --program-su | --program-s)
   1087     ac_prev=program_suffix ;;
   1088   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1089   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1090     program_suffix=$ac_optarg ;;
   1091 
   1092   -program-transform-name | --program-transform-name \
   1093   | --program-transform-nam | --program-transform-na \
   1094   | --program-transform-n | --program-transform- \
   1095   | --program-transform | --program-transfor \
   1096   | --program-transfo | --program-transf \
   1097   | --program-trans | --program-tran \
   1098   | --progr-tra | --program-tr | --program-t)
   1099     ac_prev=program_transform_name ;;
   1100   -program-transform-name=* | --program-transform-name=* \
   1101   | --program-transform-nam=* | --program-transform-na=* \
   1102   | --program-transform-n=* | --program-transform-=* \
   1103   | --program-transform=* | --program-transfor=* \
   1104   | --program-transfo=* | --program-transf=* \
   1105   | --program-trans=* | --program-tran=* \
   1106   | --progr-tra=* | --program-tr=* | --program-t=*)
   1107     program_transform_name=$ac_optarg ;;
   1108 
   1109   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1110     ac_prev=pdfdir ;;
   1111   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1112     pdfdir=$ac_optarg ;;
   1113 
   1114   -psdir | --psdir | --psdi | --psd | --ps)
   1115     ac_prev=psdir ;;
   1116   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1117     psdir=$ac_optarg ;;
   1118 
   1119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1120   | -silent | --silent | --silen | --sile | --sil)
   1121     silent=yes ;;
   1122 
   1123   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1124     ac_prev=sbindir ;;
   1125   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1126   | --sbi=* | --sb=*)
   1127     sbindir=$ac_optarg ;;
   1128 
   1129   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1130   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1131   | --sharedst | --shareds | --shared | --share | --shar \
   1132   | --sha | --sh)
   1133     ac_prev=sharedstatedir ;;
   1134   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1135   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1136   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1137   | --sha=* | --sh=*)
   1138     sharedstatedir=$ac_optarg ;;
   1139 
   1140   -site | --site | --sit)
   1141     ac_prev=site ;;
   1142   -site=* | --site=* | --sit=*)
   1143     site=$ac_optarg ;;
   1144 
   1145   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1146     ac_prev=srcdir ;;
   1147   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1148     srcdir=$ac_optarg ;;
   1149 
   1150   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1151   | --syscon | --sysco | --sysc | --sys | --sy)
   1152     ac_prev=sysconfdir ;;
   1153   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1154   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1155     sysconfdir=$ac_optarg ;;
   1156 
   1157   -target | --target | --targe | --targ | --tar | --ta | --t)
   1158     ac_prev=target_alias ;;
   1159   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1160     target_alias=$ac_optarg ;;
   1161 
   1162   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1163     verbose=yes ;;
   1164 
   1165   -version | --version | --versio | --versi | --vers | -V)
   1166     ac_init_version=: ;;
   1167 
   1168   -with-* | --with-*)
   1169     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1170     # Reject names that are not valid shell variable names.
   1171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1172       as_fn_error $? "invalid package name: $ac_useropt"
   1173     ac_useropt_orig=$ac_useropt
   1174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1175     case $ac_user_opts in
   1176       *"
   1177 "with_$ac_useropt"
   1178 "*) ;;
   1179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1180 	 ac_unrecognized_sep=', ';;
   1181     esac
   1182     eval with_$ac_useropt=\$ac_optarg ;;
   1183 
   1184   -without-* | --without-*)
   1185     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1186     # Reject names that are not valid shell variable names.
   1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1188       as_fn_error $? "invalid package name: $ac_useropt"
   1189     ac_useropt_orig=$ac_useropt
   1190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1191     case $ac_user_opts in
   1192       *"
   1193 "with_$ac_useropt"
   1194 "*) ;;
   1195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1196 	 ac_unrecognized_sep=', ';;
   1197     esac
   1198     eval with_$ac_useropt=no ;;
   1199 
   1200   --x)
   1201     # Obsolete; use --with-x.
   1202     with_x=yes ;;
   1203 
   1204   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1205   | --x-incl | --x-inc | --x-in | --x-i)
   1206     ac_prev=x_includes ;;
   1207   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1208   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1209     x_includes=$ac_optarg ;;
   1210 
   1211   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1212   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1213     ac_prev=x_libraries ;;
   1214   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1215   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1216     x_libraries=$ac_optarg ;;
   1217 
   1218   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1219 Try \`$0 --help' for more information"
   1220     ;;
   1221 
   1222   *=*)
   1223     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1224     # Reject names that are not valid shell variable names.
   1225     case $ac_envvar in #(
   1226       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1227       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1228     esac
   1229     eval $ac_envvar=\$ac_optarg
   1230     export $ac_envvar ;;
   1231 
   1232   *)
   1233     # FIXME: should be removed in autoconf 3.0.
   1234     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1235     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1236       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1237     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1238     ;;
   1239 
   1240   esac
   1241 done
   1242 
   1243 if test -n "$ac_prev"; then
   1244   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1245   as_fn_error $? "missing argument to $ac_option"
   1246 fi
   1247 
   1248 if test -n "$ac_unrecognized_opts"; then
   1249   case $enable_option_checking in
   1250     no) ;;
   1251     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1252     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1253   esac
   1254 fi
   1255 
   1256 # Check all directory arguments for consistency.
   1257 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1258 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1259 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1260 		libdir localedir mandir
   1261 do
   1262   eval ac_val=\$$ac_var
   1263   # Remove trailing slashes.
   1264   case $ac_val in
   1265     */ )
   1266       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1267       eval $ac_var=\$ac_val;;
   1268   esac
   1269   # Be sure to have absolute directory names.
   1270   case $ac_val in
   1271     [\\/$]* | ?:[\\/]* )  continue;;
   1272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1273   esac
   1274   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1275 done
   1276 
   1277 # There might be people who depend on the old broken behavior: `$host'
   1278 # used to hold the argument of --host etc.
   1279 # FIXME: To remove some day.
   1280 build=$build_alias
   1281 host=$host_alias
   1282 target=$target_alias
   1283 
   1284 # FIXME: To remove some day.
   1285 if test "x$host_alias" != x; then
   1286   if test "x$build_alias" = x; then
   1287     cross_compiling=maybe
   1288   elif test "x$build_alias" != "x$host_alias"; then
   1289     cross_compiling=yes
   1290   fi
   1291 fi
   1292 
   1293 ac_tool_prefix=
   1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1295 
   1296 test "$silent" = yes && exec 6>/dev/null
   1297 
   1298 
   1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1300 ac_ls_di=`ls -di .` &&
   1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1302   as_fn_error $? "working directory cannot be determined"
   1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1304   as_fn_error $? "pwd does not report name of working directory"
   1305 
   1306 
   1307 # Find the source files, if location was not specified.
   1308 if test -z "$srcdir"; then
   1309   ac_srcdir_defaulted=yes
   1310   # Try the directory containing this script, then the parent directory.
   1311   ac_confdir=`$as_dirname -- "$as_myself" ||
   1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1313 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1314 	 X"$as_myself" : 'X\(//\)$' \| \
   1315 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1316 $as_echo X"$as_myself" |
   1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1318 	    s//\1/
   1319 	    q
   1320 	  }
   1321 	  /^X\(\/\/\)[^/].*/{
   1322 	    s//\1/
   1323 	    q
   1324 	  }
   1325 	  /^X\(\/\/\)$/{
   1326 	    s//\1/
   1327 	    q
   1328 	  }
   1329 	  /^X\(\/\).*/{
   1330 	    s//\1/
   1331 	    q
   1332 	  }
   1333 	  s/.*/./; q'`
   1334   srcdir=$ac_confdir
   1335   if test ! -r "$srcdir/$ac_unique_file"; then
   1336     srcdir=..
   1337   fi
   1338 else
   1339   ac_srcdir_defaulted=no
   1340 fi
   1341 if test ! -r "$srcdir/$ac_unique_file"; then
   1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1344 fi
   1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1346 ac_abs_confdir=`(
   1347 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1348 	pwd)`
   1349 # When building in place, set srcdir=.
   1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1351   srcdir=.
   1352 fi
   1353 # Remove unnecessary trailing slashes from srcdir.
   1354 # Double slashes in file names in object file debugging info
   1355 # mess up M-x gdb in Emacs.
   1356 case $srcdir in
   1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1358 esac
   1359 for ac_var in $ac_precious_vars; do
   1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1361   eval ac_env_${ac_var}_value=\$${ac_var}
   1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1364 done
   1365 
   1366 #
   1367 # Report the --help message.
   1368 #
   1369 if test "$ac_init_help" = "long"; then
   1370   # Omit some internal or obsolete options to make the list less imposing.
   1371   # This message is too long to be a string in the A/UX 3.1 sh.
   1372   cat <<_ACEOF
   1373 \`configure' configures this package to adapt to many kinds of systems.
   1374 
   1375 Usage: $0 [OPTION]... [VAR=VALUE]...
   1376 
   1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1379 
   1380 Defaults for the options are specified in brackets.
   1381 
   1382 Configuration:
   1383   -h, --help              display this help and exit
   1384       --help=short        display options specific to this package
   1385       --help=recursive    display the short help of all the included packages
   1386   -V, --version           display version information and exit
   1387   -q, --quiet, --silent   do not print \`checking ...' messages
   1388       --cache-file=FILE   cache test results in FILE [disabled]
   1389   -C, --config-cache      alias for \`--cache-file=config.cache'
   1390   -n, --no-create         do not create output files
   1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1392 
   1393 Installation directories:
   1394   --prefix=PREFIX         install architecture-independent files in PREFIX
   1395                           [$ac_default_prefix]
   1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1397                           [PREFIX]
   1398 
   1399 By default, \`make install' will install all the files in
   1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1402 for instance \`--prefix=\$HOME'.
   1403 
   1404 For better control, use the options below.
   1405 
   1406 Fine tuning of the installation directories:
   1407   --bindir=DIR            user executables [EPREFIX/bin]
   1408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1409   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1413   --libdir=DIR            object code libraries [EPREFIX/lib]
   1414   --includedir=DIR        C header files [PREFIX/include]
   1415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1418   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1420   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1421   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1422   --htmldir=DIR           html documentation [DOCDIR]
   1423   --dvidir=DIR            dvi documentation [DOCDIR]
   1424   --pdfdir=DIR            pdf documentation [DOCDIR]
   1425   --psdir=DIR             ps documentation [DOCDIR]
   1426 _ACEOF
   1427 
   1428   cat <<\_ACEOF
   1429 
   1430 System types:
   1431   --build=BUILD     configure for building on BUILD [guessed]
   1432   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1433 _ACEOF
   1434 fi
   1435 
   1436 if test -n "$ac_init_help"; then
   1437 
   1438   cat <<\_ACEOF
   1439 
   1440 Optional Features:
   1441   --disable-option-checking  ignore unrecognized --enable/--with options
   1442   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1443   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1444   --disable-cxx           Disable C++ integration
   1445   --enable-autogen        Automatically regenerate configure output
   1446   --enable-doc            Build documentation
   1447   --enable-shared         Build shared libaries
   1448   --enable-static         Build static libaries
   1449   --enable-debug          Build debugging code
   1450   --disable-stats         Disable statistics calculation/reporting
   1451   --enable-experimental-smallocx
   1452                           Enable experimental smallocx API
   1453   --enable-prof           Enable allocation profiling
   1454   --enable-prof-libunwind Use libunwind for backtracing
   1455   --disable-prof-libgcc   Do not use libgcc for backtracing
   1456   --disable-prof-gcc      Do not use gcc intrinsics for backtracing
   1457   --disable-fill          Disable support for junk/zero filling
   1458   --enable-utrace         Enable utrace(2)-based tracing
   1459   --enable-xmalloc        Support xmalloc option
   1460   --disable-cache-oblivious
   1461                           Disable support for cache-oblivious allocation
   1462                           alignment
   1463   --enable-log            Support debug logging
   1464   --enable-readlinkat     Use readlinkat over readlink
   1465   --enable-opt-safety-checks
   1466                           Perform certain low-overhead checks, even in opt
   1467                           mode
   1468   --enable-opt-size-checks
   1469                           Perform sized-deallocation argument checks, even in
   1470                           opt mode
   1471   --enable-uaf-detection  Allow sampled junk-filling on deallocation to detect
   1472                           use-after-free
   1473   --disable-libdl         Do not use libdl
   1474   --disable-syscall       Disable use of syscall(2)
   1475   --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
   1476   --disable-zone-allocator
   1477                           Disable zone allocator for Darwin
   1478   --disable-initial-exec-tls
   1479                           Disable the initial-exec tls model
   1480 
   1481 Optional Packages:
   1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1484   --with-xslroot=<path>   XSL stylesheet root path
   1485   --with-lg-vaddr=<lg-vaddr>
   1486                           Number of significant virtual address bits
   1487   --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
   1488                           Version string
   1489   --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
   1490   --with-mangling=<map>   Mangle symbols in <map>
   1491   --with-jemalloc-prefix=<prefix>
   1492                           Prefix to prepend to all public APIs
   1493   --without-export        disable exporting jemalloc public APIs
   1494   --with-private-namespace=<prefix>
   1495                           Prefix to prepend to all library-private APIs
   1496   --with-install-suffix=<suffix>
   1497                           Suffix to append to all installed files
   1498   --with-malloc-conf=<malloc_conf>
   1499                           config.malloc_conf options string
   1500   --with-static-libunwind=<libunwind.a>
   1501                           Path to static libunwind library; use rather than
   1502                           dynamically linking
   1503   --with-lg-quantum=<lg-quantum>
   1504                           Base 2 log of minimum allocation alignment
   1505   --with-lg-slab-maxregs=<lg-slab-maxregs>
   1506                           Base 2 log of maximum number of regions in a slab
   1507                           (used with malloc_conf slab_sizes)
   1508   --with-lg-page=<lg-page>
   1509                           Base 2 log of system page size
   1510   --with-lg-hugepage=<lg-hugepage>
   1511                           Base 2 log of system huge page size
   1512 
   1513 Some influential environment variables:
   1514   CC          C compiler command
   1515   CFLAGS      C compiler flags
   1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1517               nonstandard directory <lib dir>
   1518   LIBS        libraries to pass to the linker, e.g. -l<library>
   1519   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1520               you have headers in a nonstandard directory <include dir>
   1521   CPP         C preprocessor
   1522   CXX         C++ compiler command
   1523   CXXFLAGS    C++ compiler flags
   1524 
   1525 Use these variables to override the choices made by `configure' or to help
   1526 it to find libraries and programs with nonstandard names/locations.
   1527 
   1528 Report bugs to the package provider.
   1529 _ACEOF
   1530 ac_status=$?
   1531 fi
   1532 
   1533 if test "$ac_init_help" = "recursive"; then
   1534   # If there are subdirs, report their specific --help.
   1535   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1536     test -d "$ac_dir" ||
   1537       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1538       continue
   1539     ac_builddir=.
   1540 
   1541 case "$ac_dir" in
   1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1543 *)
   1544   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1545   # A ".." for each directory in $ac_dir_suffix.
   1546   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1547   case $ac_top_builddir_sub in
   1548   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1549   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1550   esac ;;
   1551 esac
   1552 ac_abs_top_builddir=$ac_pwd
   1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1554 # for backward compatibility:
   1555 ac_top_builddir=$ac_top_build_prefix
   1556 
   1557 case $srcdir in
   1558   .)  # We are building in place.
   1559     ac_srcdir=.
   1560     ac_top_srcdir=$ac_top_builddir_sub
   1561     ac_abs_top_srcdir=$ac_pwd ;;
   1562   [\\/]* | ?:[\\/]* )  # Absolute name.
   1563     ac_srcdir=$srcdir$ac_dir_suffix;
   1564     ac_top_srcdir=$srcdir
   1565     ac_abs_top_srcdir=$srcdir ;;
   1566   *) # Relative name.
   1567     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1568     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1569     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1570 esac
   1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1572 
   1573     cd "$ac_dir" || { ac_status=$?; continue; }
   1574     # Check for guested configure.
   1575     if test -f "$ac_srcdir/configure.gnu"; then
   1576       echo &&
   1577       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1578     elif test -f "$ac_srcdir/configure"; then
   1579       echo &&
   1580       $SHELL "$ac_srcdir/configure" --help=recursive
   1581     else
   1582       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1583     fi || ac_status=$?
   1584     cd "$ac_pwd" || { ac_status=$?; break; }
   1585   done
   1586 fi
   1587 
   1588 test -n "$ac_init_help" && exit $ac_status
   1589 if $ac_init_version; then
   1590   cat <<\_ACEOF
   1591 configure
   1592 generated by GNU Autoconf 2.69
   1593 
   1594 Copyright (C) 2012 Free Software Foundation, Inc.
   1595 This configure script is free software; the Free Software Foundation
   1596 gives unlimited permission to copy, distribute and modify it.
   1597 _ACEOF
   1598   exit
   1599 fi
   1600 
   1601 ## ------------------------ ##
   1602 ## Autoconf initialization. ##
   1603 ## ------------------------ ##
   1604 
   1605 # ac_fn_c_try_compile LINENO
   1606 # --------------------------
   1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1608 ac_fn_c_try_compile ()
   1609 {
   1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1611   rm -f conftest.$ac_objext
   1612   if { { ac_try="$ac_compile"
   1613 case "(($ac_try" in
   1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1615   *) ac_try_echo=$ac_try;;
   1616 esac
   1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1618 $as_echo "$ac_try_echo"; } >&5
   1619   (eval "$ac_compile") 2>conftest.err
   1620   ac_status=$?
   1621   if test -s conftest.err; then
   1622     grep -v '^ *+' conftest.err >conftest.er1
   1623     cat conftest.er1 >&5
   1624     mv -f conftest.er1 conftest.err
   1625   fi
   1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1627   test $ac_status = 0; } && {
   1628 	 test -z "$ac_c_werror_flag" ||
   1629 	 test ! -s conftest.err
   1630        } && test -s conftest.$ac_objext; then :
   1631   ac_retval=0
   1632 else
   1633   $as_echo "$as_me: failed program was:" >&5
   1634 sed 's/^/| /' conftest.$ac_ext >&5
   1635 
   1636 	ac_retval=1
   1637 fi
   1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1639   as_fn_set_status $ac_retval
   1640 
   1641 } # ac_fn_c_try_compile
   1642 
   1643 # ac_fn_c_try_cpp LINENO
   1644 # ----------------------
   1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1646 ac_fn_c_try_cpp ()
   1647 {
   1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1649   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1650 case "(($ac_try" in
   1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1652   *) ac_try_echo=$ac_try;;
   1653 esac
   1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1655 $as_echo "$ac_try_echo"; } >&5
   1656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1657   ac_status=$?
   1658   if test -s conftest.err; then
   1659     grep -v '^ *+' conftest.err >conftest.er1
   1660     cat conftest.er1 >&5
   1661     mv -f conftest.er1 conftest.err
   1662   fi
   1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1664   test $ac_status = 0; } > conftest.i && {
   1665 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1666 	 test ! -s conftest.err
   1667        }; then :
   1668   ac_retval=0
   1669 else
   1670   $as_echo "$as_me: failed program was:" >&5
   1671 sed 's/^/| /' conftest.$ac_ext >&5
   1672 
   1673     ac_retval=1
   1674 fi
   1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1676   as_fn_set_status $ac_retval
   1677 
   1678 } # ac_fn_c_try_cpp
   1679 
   1680 # ac_fn_cxx_try_compile LINENO
   1681 # ----------------------------
   1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1683 ac_fn_cxx_try_compile ()
   1684 {
   1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1686   rm -f conftest.$ac_objext
   1687   if { { ac_try="$ac_compile"
   1688 case "(($ac_try" in
   1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1690   *) ac_try_echo=$ac_try;;
   1691 esac
   1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1693 $as_echo "$ac_try_echo"; } >&5
   1694   (eval "$ac_compile") 2>conftest.err
   1695   ac_status=$?
   1696   if test -s conftest.err; then
   1697     grep -v '^ *+' conftest.err >conftest.er1
   1698     cat conftest.er1 >&5
   1699     mv -f conftest.er1 conftest.err
   1700   fi
   1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1702   test $ac_status = 0; } && {
   1703 	 test -z "$ac_cxx_werror_flag" ||
   1704 	 test ! -s conftest.err
   1705        } && test -s conftest.$ac_objext; then :
   1706   ac_retval=0
   1707 else
   1708   $as_echo "$as_me: failed program was:" >&5
   1709 sed 's/^/| /' conftest.$ac_ext >&5
   1710 
   1711 	ac_retval=1
   1712 fi
   1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1714   as_fn_set_status $ac_retval
   1715 
   1716 } # ac_fn_cxx_try_compile
   1717 
   1718 # ac_fn_c_try_link LINENO
   1719 # -----------------------
   1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1721 ac_fn_c_try_link ()
   1722 {
   1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1724   rm -f conftest.$ac_objext conftest$ac_exeext
   1725   if { { ac_try="$ac_link"
   1726 case "(($ac_try" in
   1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1728   *) ac_try_echo=$ac_try;;
   1729 esac
   1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1731 $as_echo "$ac_try_echo"; } >&5
   1732   (eval "$ac_link") 2>conftest.err
   1733   ac_status=$?
   1734   if test -s conftest.err; then
   1735     grep -v '^ *+' conftest.err >conftest.er1
   1736     cat conftest.er1 >&5
   1737     mv -f conftest.er1 conftest.err
   1738   fi
   1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1740   test $ac_status = 0; } && {
   1741 	 test -z "$ac_c_werror_flag" ||
   1742 	 test ! -s conftest.err
   1743        } && test -s conftest$ac_exeext && {
   1744 	 test "$cross_compiling" = yes ||
   1745 	 test -x conftest$ac_exeext
   1746        }; then :
   1747   ac_retval=0
   1748 else
   1749   $as_echo "$as_me: failed program was:" >&5
   1750 sed 's/^/| /' conftest.$ac_ext >&5
   1751 
   1752 	ac_retval=1
   1753 fi
   1754   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1755   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1756   # interfere with the next link command; also delete a directory that is
   1757   # left behind by Apple's compiler.  We do this before executing the actions.
   1758   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1760   as_fn_set_status $ac_retval
   1761 
   1762 } # ac_fn_c_try_link
   1763 
   1764 # ac_fn_c_try_run LINENO
   1765 # ----------------------
   1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1767 # that executables *can* be run.
   1768 ac_fn_c_try_run ()
   1769 {
   1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1771   if { { ac_try="$ac_link"
   1772 case "(($ac_try" in
   1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1774   *) ac_try_echo=$ac_try;;
   1775 esac
   1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1777 $as_echo "$ac_try_echo"; } >&5
   1778   (eval "$ac_link") 2>&5
   1779   ac_status=$?
   1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1781   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1782   { { case "(($ac_try" in
   1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1784   *) ac_try_echo=$ac_try;;
   1785 esac
   1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1787 $as_echo "$ac_try_echo"; } >&5
   1788   (eval "$ac_try") 2>&5
   1789   ac_status=$?
   1790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1791   test $ac_status = 0; }; }; then :
   1792   ac_retval=0
   1793 else
   1794   $as_echo "$as_me: program exited with status $ac_status" >&5
   1795        $as_echo "$as_me: failed program was:" >&5
   1796 sed 's/^/| /' conftest.$ac_ext >&5
   1797 
   1798        ac_retval=$ac_status
   1799 fi
   1800   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1802   as_fn_set_status $ac_retval
   1803 
   1804 } # ac_fn_c_try_run
   1805 
   1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1807 # -------------------------------------------------------
   1808 # Tests whether HEADER exists and can be compiled using the include files in
   1809 # INCLUDES, setting the cache variable VAR accordingly.
   1810 ac_fn_c_check_header_compile ()
   1811 {
   1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1814 $as_echo_n "checking for $2... " >&6; }
   1815 if eval \${$3+:} false; then :
   1816   $as_echo_n "(cached) " >&6
   1817 else
   1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1819 /* end confdefs.h.  */
   1820 $4
   1821 #include <$2>
   1822 _ACEOF
   1823 if ac_fn_c_try_compile "$LINENO"; then :
   1824   eval "$3=yes"
   1825 else
   1826   eval "$3=no"
   1827 fi
   1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1829 fi
   1830 eval ac_res=\$$3
   1831 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1832 $as_echo "$ac_res" >&6; }
   1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1834 
   1835 } # ac_fn_c_check_header_compile
   1836 
   1837 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1838 # --------------------------------------------
   1839 # Tries to find the compile-time value of EXPR in a program that includes
   1840 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1841 # computed
   1842 ac_fn_c_compute_int ()
   1843 {
   1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1845   if test "$cross_compiling" = yes; then
   1846     # Depending upon the size, compute the lo and hi bounds.
   1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1848 /* end confdefs.h.  */
   1849 $4
   1850 int
   1851 main ()
   1852 {
   1853 static int test_array [1 - 2 * !(($2) >= 0)];
   1854 test_array [0] = 0;
   1855 return test_array [0];
   1856 
   1857   ;
   1858   return 0;
   1859 }
   1860 _ACEOF
   1861 if ac_fn_c_try_compile "$LINENO"; then :
   1862   ac_lo=0 ac_mid=0
   1863   while :; do
   1864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1865 /* end confdefs.h.  */
   1866 $4
   1867 int
   1868 main ()
   1869 {
   1870 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1871 test_array [0] = 0;
   1872 return test_array [0];
   1873 
   1874   ;
   1875   return 0;
   1876 }
   1877 _ACEOF
   1878 if ac_fn_c_try_compile "$LINENO"; then :
   1879   ac_hi=$ac_mid; break
   1880 else
   1881   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1882 			if test $ac_lo -le $ac_mid; then
   1883 			  ac_lo= ac_hi=
   1884 			  break
   1885 			fi
   1886 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1887 fi
   1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1889   done
   1890 else
   1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1892 /* end confdefs.h.  */
   1893 $4
   1894 int
   1895 main ()
   1896 {
   1897 static int test_array [1 - 2 * !(($2) < 0)];
   1898 test_array [0] = 0;
   1899 return test_array [0];
   1900 
   1901   ;
   1902   return 0;
   1903 }
   1904 _ACEOF
   1905 if ac_fn_c_try_compile "$LINENO"; then :
   1906   ac_hi=-1 ac_mid=-1
   1907   while :; do
   1908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1909 /* end confdefs.h.  */
   1910 $4
   1911 int
   1912 main ()
   1913 {
   1914 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1915 test_array [0] = 0;
   1916 return test_array [0];
   1917 
   1918   ;
   1919   return 0;
   1920 }
   1921 _ACEOF
   1922 if ac_fn_c_try_compile "$LINENO"; then :
   1923   ac_lo=$ac_mid; break
   1924 else
   1925   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1926 			if test $ac_mid -le $ac_hi; then
   1927 			  ac_lo= ac_hi=
   1928 			  break
   1929 			fi
   1930 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1931 fi
   1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1933   done
   1934 else
   1935   ac_lo= ac_hi=
   1936 fi
   1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1938 fi
   1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1940 # Binary search between lo and hi bounds.
   1941 while test "x$ac_lo" != "x$ac_hi"; do
   1942   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1944 /* end confdefs.h.  */
   1945 $4
   1946 int
   1947 main ()
   1948 {
   1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1950 test_array [0] = 0;
   1951 return test_array [0];
   1952 
   1953   ;
   1954   return 0;
   1955 }
   1956 _ACEOF
   1957 if ac_fn_c_try_compile "$LINENO"; then :
   1958   ac_hi=$ac_mid
   1959 else
   1960   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1961 fi
   1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1963 done
   1964 case $ac_lo in #((
   1965 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1966 '') ac_retval=1 ;;
   1967 esac
   1968   else
   1969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1970 /* end confdefs.h.  */
   1971 $4
   1972 static long int longval () { return $2; }
   1973 static unsigned long int ulongval () { return $2; }
   1974 #include <stdio.h>
   1975 #include <stdlib.h>
   1976 int
   1977 main ()
   1978 {
   1979 
   1980   FILE *f = fopen ("conftest.val", "w");
   1981   if (! f)
   1982     return 1;
   1983   if (($2) < 0)
   1984     {
   1985       long int i = longval ();
   1986       if (i != ($2))
   1987 	return 1;
   1988       fprintf (f, "%ld", i);
   1989     }
   1990   else
   1991     {
   1992       unsigned long int i = ulongval ();
   1993       if (i != ($2))
   1994 	return 1;
   1995       fprintf (f, "%lu", i);
   1996     }
   1997   /* Do not output a trailing newline, as this causes \r\n confusion
   1998      on some platforms.  */
   1999   return ferror (f) || fclose (f) != 0;
   2000 
   2001   ;
   2002   return 0;
   2003 }
   2004 _ACEOF
   2005 if ac_fn_c_try_run "$LINENO"; then :
   2006   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2007 else
   2008   ac_retval=1
   2009 fi
   2010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2011   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2012 rm -f conftest.val
   2013 
   2014   fi
   2015   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2016   as_fn_set_status $ac_retval
   2017 
   2018 } # ac_fn_c_compute_int
   2019 
   2020 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   2021 # -------------------------------------------------------
   2022 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   2023 # the include files in INCLUDES and setting the cache variable VAR
   2024 # accordingly.
   2025 ac_fn_c_check_header_mongrel ()
   2026 {
   2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2028   if eval \${$3+:} false; then :
   2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2030 $as_echo_n "checking for $2... " >&6; }
   2031 if eval \${$3+:} false; then :
   2032   $as_echo_n "(cached) " >&6
   2033 fi
   2034 eval ac_res=\$$3
   2035 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2036 $as_echo "$ac_res" >&6; }
   2037 else
   2038   # Is the header compilable?
   2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2040 $as_echo_n "checking $2 usability... " >&6; }
   2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2042 /* end confdefs.h.  */
   2043 $4
   2044 #include <$2>
   2045 _ACEOF
   2046 if ac_fn_c_try_compile "$LINENO"; then :
   2047   ac_header_compiler=yes
   2048 else
   2049   ac_header_compiler=no
   2050 fi
   2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2053 $as_echo "$ac_header_compiler" >&6; }
   2054 
   2055 # Is the header present?
   2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2057 $as_echo_n "checking $2 presence... " >&6; }
   2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2059 /* end confdefs.h.  */
   2060 #include <$2>
   2061 _ACEOF
   2062 if ac_fn_c_try_cpp "$LINENO"; then :
   2063   ac_header_preproc=yes
   2064 else
   2065   ac_header_preproc=no
   2066 fi
   2067 rm -f conftest.err conftest.i conftest.$ac_ext
   2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2069 $as_echo "$ac_header_preproc" >&6; }
   2070 
   2071 # So?  What about this header?
   2072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   2073   yes:no: )
   2074     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2075 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   2076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2077 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2078     ;;
   2079   no:yes:* )
   2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2081 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2083 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2085 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2086     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2087 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2088     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2089 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2090     ;;
   2091 esac
   2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2093 $as_echo_n "checking for $2... " >&6; }
   2094 if eval \${$3+:} false; then :
   2095   $as_echo_n "(cached) " >&6
   2096 else
   2097   eval "$3=\$ac_header_compiler"
   2098 fi
   2099 eval ac_res=\$$3
   2100 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2101 $as_echo "$ac_res" >&6; }
   2102 fi
   2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2104 
   2105 } # ac_fn_c_check_header_mongrel
   2106 
   2107 # ac_fn_c_check_func LINENO FUNC VAR
   2108 # ----------------------------------
   2109 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2110 ac_fn_c_check_func ()
   2111 {
   2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2114 $as_echo_n "checking for $2... " >&6; }
   2115 if eval \${$3+:} false; then :
   2116   $as_echo_n "(cached) " >&6
   2117 else
   2118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2119 /* end confdefs.h.  */
   2120 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2122 #define $2 innocuous_$2
   2123 
   2124 /* System header to define __stub macros and hopefully few prototypes,
   2125     which can conflict with char $2 (); below.
   2126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2127     <limits.h> exists even on freestanding compilers.  */
   2128 
   2129 #ifdef __STDC__
   2130 # include <limits.h>
   2131 #else
   2132 # include <assert.h>
   2133 #endif
   2134 
   2135 #undef $2
   2136 
   2137 /* Override any GCC internal prototype to avoid an error.
   2138    Use char because int might match the return type of a GCC
   2139    builtin and then its argument prototype would still apply.  */
   2140 #ifdef __cplusplus
   2141 extern "C"
   2142 #endif
   2143 char $2 ();
   2144 /* The GNU C library defines this for functions which it implements
   2145     to always fail with ENOSYS.  Some functions are actually named
   2146     something starting with __ and the normal name is an alias.  */
   2147 #if defined __stub_$2 || defined __stub___$2
   2148 choke me
   2149 #endif
   2150 
   2151 int
   2152 main ()
   2153 {
   2154 return $2 ();
   2155   ;
   2156   return 0;
   2157 }
   2158 _ACEOF
   2159 if ac_fn_c_try_link "$LINENO"; then :
   2160   eval "$3=yes"
   2161 else
   2162   eval "$3=no"
   2163 fi
   2164 rm -f core conftest.err conftest.$ac_objext \
   2165     conftest$ac_exeext conftest.$ac_ext
   2166 fi
   2167 eval ac_res=\$$3
   2168 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2169 $as_echo "$ac_res" >&6; }
   2170   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2171 
   2172 } # ac_fn_c_check_func
   2173 
   2174 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2175 # -------------------------------------------
   2176 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2177 # variable VAR accordingly.
   2178 ac_fn_c_check_type ()
   2179 {
   2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2182 $as_echo_n "checking for $2... " >&6; }
   2183 if eval \${$3+:} false; then :
   2184   $as_echo_n "(cached) " >&6
   2185 else
   2186   eval "$3=no"
   2187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2188 /* end confdefs.h.  */
   2189 $4
   2190 int
   2191 main ()
   2192 {
   2193 if (sizeof ($2))
   2194 	 return 0;
   2195   ;
   2196   return 0;
   2197 }
   2198 _ACEOF
   2199 if ac_fn_c_try_compile "$LINENO"; then :
   2200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2201 /* end confdefs.h.  */
   2202 $4
   2203 int
   2204 main ()
   2205 {
   2206 if (sizeof (($2)))
   2207 	    return 0;
   2208   ;
   2209   return 0;
   2210 }
   2211 _ACEOF
   2212 if ac_fn_c_try_compile "$LINENO"; then :
   2213 
   2214 else
   2215   eval "$3=yes"
   2216 fi
   2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2218 fi
   2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2220 fi
   2221 eval ac_res=\$$3
   2222 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2223 $as_echo "$ac_res" >&6; }
   2224   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2225 
   2226 } # ac_fn_c_check_type
   2227 cat >config.log <<_ACEOF
   2228 This file contains any messages produced by compilers while
   2229 running configure, to aid debugging if configure makes a mistake.
   2230 
   2231 It was created by $as_me, which was
   2232 generated by GNU Autoconf 2.69.  Invocation command line was
   2233 
   2234   $ $0 $@
   2235 
   2236 _ACEOF
   2237 exec 5>>config.log
   2238 {
   2239 cat <<_ASUNAME
   2240 ## --------- ##
   2241 ## Platform. ##
   2242 ## --------- ##
   2243 
   2244 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2245 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2246 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2247 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2248 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2249 
   2250 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2251 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2252 
   2253 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2254 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2255 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2256 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2257 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2258 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2259 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2260 
   2261 _ASUNAME
   2262 
   2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2264 for as_dir in $PATH
   2265 do
   2266   IFS=$as_save_IFS
   2267   test -z "$as_dir" && as_dir=.
   2268     $as_echo "PATH: $as_dir"
   2269   done
   2270 IFS=$as_save_IFS
   2271 
   2272 } >&5
   2273 
   2274 cat >&5 <<_ACEOF
   2275 
   2276 
   2277 ## ----------- ##
   2278 ## Core tests. ##
   2279 ## ----------- ##
   2280 
   2281 _ACEOF
   2282 
   2283 
   2284 # Keep a trace of the command line.
   2285 # Strip out --no-create and --no-recursion so they do not pile up.
   2286 # Strip out --silent because we don't want to record it for future runs.
   2287 # Also quote any args containing shell meta-characters.
   2288 # Make two passes to allow for proper duplicate-argument suppression.
   2289 ac_configure_args=
   2290 ac_configure_args0=
   2291 ac_configure_args1=
   2292 ac_must_keep_next=false
   2293 for ac_pass in 1 2
   2294 do
   2295   for ac_arg
   2296   do
   2297     case $ac_arg in
   2298     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2299     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2300     | -silent | --silent | --silen | --sile | --sil)
   2301       continue ;;
   2302     *\'*)
   2303       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2304     esac
   2305     case $ac_pass in
   2306     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2307     2)
   2308       as_fn_append ac_configure_args1 " '$ac_arg'"
   2309       if test $ac_must_keep_next = true; then
   2310 	ac_must_keep_next=false # Got value, back to normal.
   2311       else
   2312 	case $ac_arg in
   2313 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2314 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2315 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2316 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2317 	    case "$ac_configure_args0 " in
   2318 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2319 	    esac
   2320 	    ;;
   2321 	  -* ) ac_must_keep_next=true ;;
   2322 	esac
   2323       fi
   2324       as_fn_append ac_configure_args " '$ac_arg'"
   2325       ;;
   2326     esac
   2327   done
   2328 done
   2329 { ac_configure_args0=; unset ac_configure_args0;}
   2330 { ac_configure_args1=; unset ac_configure_args1;}
   2331 
   2332 # When interrupted or exit'd, cleanup temporary files, and complete
   2333 # config.log.  We remove comments because anyway the quotes in there
   2334 # would cause problems or look ugly.
   2335 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2336 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2337 trap 'exit_status=$?
   2338   # Save into config.log some information that might help in debugging.
   2339   {
   2340     echo
   2341 
   2342     $as_echo "## ---------------- ##
   2343 ## Cache variables. ##
   2344 ## ---------------- ##"
   2345     echo
   2346     # The following way of writing the cache mishandles newlines in values,
   2347 (
   2348   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2349     eval ac_val=\$$ac_var
   2350     case $ac_val in #(
   2351     *${as_nl}*)
   2352       case $ac_var in #(
   2353       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2354 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2355       esac
   2356       case $ac_var in #(
   2357       _ | IFS | as_nl) ;; #(
   2358       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2359       *) { eval $ac_var=; unset $ac_var;} ;;
   2360       esac ;;
   2361     esac
   2362   done
   2363   (set) 2>&1 |
   2364     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2365     *${as_nl}ac_space=\ *)
   2366       sed -n \
   2367 	"s/'\''/'\''\\\\'\'''\''/g;
   2368 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2369       ;; #(
   2370     *)
   2371       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2372       ;;
   2373     esac |
   2374     sort
   2375 )
   2376     echo
   2377 
   2378     $as_echo "## ----------------- ##
   2379 ## Output variables. ##
   2380 ## ----------------- ##"
   2381     echo
   2382     for ac_var in $ac_subst_vars
   2383     do
   2384       eval ac_val=\$$ac_var
   2385       case $ac_val in
   2386       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2387       esac
   2388       $as_echo "$ac_var='\''$ac_val'\''"
   2389     done | sort
   2390     echo
   2391 
   2392     if test -n "$ac_subst_files"; then
   2393       $as_echo "## ------------------- ##
   2394 ## File substitutions. ##
   2395 ## ------------------- ##"
   2396       echo
   2397       for ac_var in $ac_subst_files
   2398       do
   2399 	eval ac_val=\$$ac_var
   2400 	case $ac_val in
   2401 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2402 	esac
   2403 	$as_echo "$ac_var='\''$ac_val'\''"
   2404       done | sort
   2405       echo
   2406     fi
   2407 
   2408     if test -s confdefs.h; then
   2409       $as_echo "## ----------- ##
   2410 ## confdefs.h. ##
   2411 ## ----------- ##"
   2412       echo
   2413       cat confdefs.h
   2414       echo
   2415     fi
   2416     test "$ac_signal" != 0 &&
   2417       $as_echo "$as_me: caught signal $ac_signal"
   2418     $as_echo "$as_me: exit $exit_status"
   2419   } >&5
   2420   rm -f core *.core core.conftest.* &&
   2421     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2422     exit $exit_status
   2423 ' 0
   2424 for ac_signal in 1 2 13 15; do
   2425   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2426 done
   2427 ac_signal=0
   2428 
   2429 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2430 rm -f -r conftest* confdefs.h
   2431 
   2432 $as_echo "/* confdefs.h */" > confdefs.h
   2433 
   2434 # Predefined preprocessor variables.
   2435 
   2436 cat >>confdefs.h <<_ACEOF
   2437 #define PACKAGE_NAME "$PACKAGE_NAME"
   2438 _ACEOF
   2439 
   2440 cat >>confdefs.h <<_ACEOF
   2441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2442 _ACEOF
   2443 
   2444 cat >>confdefs.h <<_ACEOF
   2445 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2446 _ACEOF
   2447 
   2448 cat >>confdefs.h <<_ACEOF
   2449 #define PACKAGE_STRING "$PACKAGE_STRING"
   2450 _ACEOF
   2451 
   2452 cat >>confdefs.h <<_ACEOF
   2453 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2454 _ACEOF
   2455 
   2456 cat >>confdefs.h <<_ACEOF
   2457 #define PACKAGE_URL "$PACKAGE_URL"
   2458 _ACEOF
   2459 
   2460 
   2461 # Let the site file select an alternate cache file if it wants to.
   2462 # Prefer an explicitly selected file to automatically selected ones.
   2463 ac_site_file1=NONE
   2464 ac_site_file2=NONE
   2465 if test -n "$CONFIG_SITE"; then
   2466   # We do not want a PATH search for config.site.
   2467   case $CONFIG_SITE in #((
   2468     -*)  ac_site_file1=./$CONFIG_SITE;;
   2469     */*) ac_site_file1=$CONFIG_SITE;;
   2470     *)   ac_site_file1=./$CONFIG_SITE;;
   2471   esac
   2472 elif test "x$prefix" != xNONE; then
   2473   ac_site_file1=$prefix/share/config.site
   2474   ac_site_file2=$prefix/etc/config.site
   2475 else
   2476   ac_site_file1=$ac_default_prefix/share/config.site
   2477   ac_site_file2=$ac_default_prefix/etc/config.site
   2478 fi
   2479 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2480 do
   2481   test "x$ac_site_file" = xNONE && continue
   2482   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2483     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2484 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2485     sed 's/^/| /' "$ac_site_file" >&5
   2486     . "$ac_site_file" \
   2487       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2489 as_fn_error $? "failed to load site script $ac_site_file
   2490 See \`config.log' for more details" "$LINENO" 5; }
   2491   fi
   2492 done
   2493 
   2494 if test -r "$cache_file"; then
   2495   # Some versions of bash will fail to source /dev/null (special files
   2496   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2497   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2498     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2499 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2500     case $cache_file in
   2501       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2502       *)                      . "./$cache_file";;
   2503     esac
   2504   fi
   2505 else
   2506   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2507 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2508   >$cache_file
   2509 fi
   2510 
   2511 # Check that the precious variables saved in the cache have kept the same
   2512 # value.
   2513 ac_cache_corrupted=false
   2514 for ac_var in $ac_precious_vars; do
   2515   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2516   eval ac_new_set=\$ac_env_${ac_var}_set
   2517   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2518   eval ac_new_val=\$ac_env_${ac_var}_value
   2519   case $ac_old_set,$ac_new_set in
   2520     set,)
   2521       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2522 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2523       ac_cache_corrupted=: ;;
   2524     ,set)
   2525       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2526 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2527       ac_cache_corrupted=: ;;
   2528     ,);;
   2529     *)
   2530       if test "x$ac_old_val" != "x$ac_new_val"; then
   2531 	# differences in whitespace do not lead to failure.
   2532 	ac_old_val_w=`echo x $ac_old_val`
   2533 	ac_new_val_w=`echo x $ac_new_val`
   2534 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2535 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2536 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2537 	  ac_cache_corrupted=:
   2538 	else
   2539 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2540 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2541 	  eval $ac_var=\$ac_old_val
   2542 	fi
   2543 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2544 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2545 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2546 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2547       fi;;
   2548   esac
   2549   # Pass precious variables to config.status.
   2550   if test "$ac_new_set" = set; then
   2551     case $ac_new_val in
   2552     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2553     *) ac_arg=$ac_var=$ac_new_val ;;
   2554     esac
   2555     case " $ac_configure_args " in
   2556       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2557       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2558     esac
   2559   fi
   2560 done
   2561 if $ac_cache_corrupted; then
   2562   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2564   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2565 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2566   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2567 fi
   2568 ## -------------------- ##
   2569 ## Main body of script. ##
   2570 ## -------------------- ##
   2571 
   2572 ac_ext=c
   2573 ac_cpp='$CPP $CPPFLAGS'
   2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2577 
   2578 
   2579 
   2580 ac_aux_dir=
   2581 for ac_dir in build-aux "$srcdir"/build-aux; do
   2582   if test -f "$ac_dir/install-sh"; then
   2583     ac_aux_dir=$ac_dir
   2584     ac_install_sh="$ac_aux_dir/install-sh -c"
   2585     break
   2586   elif test -f "$ac_dir/install.sh"; then
   2587     ac_aux_dir=$ac_dir
   2588     ac_install_sh="$ac_aux_dir/install.sh -c"
   2589     break
   2590   elif test -f "$ac_dir/shtool"; then
   2591     ac_aux_dir=$ac_dir
   2592     ac_install_sh="$ac_aux_dir/shtool install -c"
   2593     break
   2594   fi
   2595 done
   2596 if test -z "$ac_aux_dir"; then
   2597   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
   2598 fi
   2599 
   2600 # These three variables are undocumented and unsupported,
   2601 # and are intended to be withdrawn in a future Autoconf release.
   2602 # They can cause serious problems if a builder's source tree is in a directory
   2603 # whose full name contains unusual characters.
   2604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2606 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2607 
   2608 
   2609 
   2610 
   2611 
   2612 
   2613 
   2614 
   2615 CONFIGURE_CFLAGS=
   2616 SPECIFIED_CFLAGS="${CFLAGS}"
   2617 
   2618 
   2619 
   2620 
   2621 
   2622 CONFIGURE_CXXFLAGS=
   2623 SPECIFIED_CXXFLAGS="${CXXFLAGS}"
   2624 
   2625 
   2626 
   2627 
   2628 
   2629 CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
   2630 
   2631 
   2632 rev=2
   2633 
   2634 
   2635 srcroot=$srcdir
   2636 if test "x${srcroot}" = "x." ; then
   2637   srcroot=""
   2638 else
   2639   srcroot="${srcroot}/"
   2640 fi
   2641 
   2642 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
   2643 
   2644 
   2645 objroot=""
   2646 
   2647 abs_objroot="`pwd`/"
   2648 
   2649 
   2650 case "$prefix" in
   2651    *\ * ) as_fn_error $? "Prefix should not contain spaces" "$LINENO" 5 ;;
   2652    "NONE" ) prefix="/usr/local" ;;
   2653 esac
   2654 case "$exec_prefix" in
   2655    *\ * ) as_fn_error $? "Exec prefix should not contain spaces" "$LINENO" 5 ;;
   2656    "NONE" ) exec_prefix=$prefix ;;
   2657 esac
   2658 PREFIX=$prefix
   2659 
   2660 BINDIR=`eval echo $bindir`
   2661 BINDIR=`eval echo $BINDIR`
   2662 
   2663 INCLUDEDIR=`eval echo $includedir`
   2664 INCLUDEDIR=`eval echo $INCLUDEDIR`
   2665 
   2666 LIBDIR=`eval echo $libdir`
   2667 LIBDIR=`eval echo $LIBDIR`
   2668 
   2669 DATADIR=`eval echo $datadir`
   2670 DATADIR=`eval echo $DATADIR`
   2671 
   2672 MANDIR=`eval echo $mandir`
   2673 MANDIR=`eval echo $MANDIR`
   2674 
   2675 
   2676 # Extract the first word of "xsltproc", so it can be a program name with args.
   2677 set dummy xsltproc; ac_word=$2
   2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2679 $as_echo_n "checking for $ac_word... " >&6; }
   2680 if ${ac_cv_path_XSLTPROC+:} false; then :
   2681   $as_echo_n "(cached) " >&6
   2682 else
   2683   case $XSLTPROC in
   2684   [\\/]* | ?:[\\/]*)
   2685   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   2686   ;;
   2687   *)
   2688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2689 for as_dir in $PATH
   2690 do
   2691   IFS=$as_save_IFS
   2692   test -z "$as_dir" && as_dir=.
   2693     for ac_exec_ext in '' $ac_executable_extensions; do
   2694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2695     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   2696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2697     break 2
   2698   fi
   2699 done
   2700   done
   2701 IFS=$as_save_IFS
   2702 
   2703   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
   2704   ;;
   2705 esac
   2706 fi
   2707 XSLTPROC=$ac_cv_path_XSLTPROC
   2708 if test -n "$XSLTPROC"; then
   2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   2710 $as_echo "$XSLTPROC" >&6; }
   2711 else
   2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2713 $as_echo "no" >&6; }
   2714 fi
   2715 
   2716 
   2717 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
   2718   DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
   2719 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
   2720   DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
   2721 else
   2722     DEFAULT_XSLROOT=""
   2723 fi
   2724 
   2725 # Check whether --with-xslroot was given.
   2726 if test "${with_xslroot+set}" = set; then :
   2727   withval=$with_xslroot;
   2728 if test "x$with_xslroot" = "xno" ; then
   2729   XSLROOT="${DEFAULT_XSLROOT}"
   2730 else
   2731   XSLROOT="${with_xslroot}"
   2732 fi
   2733 
   2734 else
   2735   XSLROOT="${DEFAULT_XSLROOT}"
   2736 
   2737 fi
   2738 
   2739 if test "x$XSLTPROC" = "xfalse" ; then
   2740   XSLROOT=""
   2741 fi
   2742 
   2743 
   2744 CFLAGS=$CFLAGS
   2745 ac_ext=c
   2746 ac_cpp='$CPP $CPPFLAGS'
   2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2750 if test -n "$ac_tool_prefix"; then
   2751   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2754 $as_echo_n "checking for $ac_word... " >&6; }
   2755 if ${ac_cv_prog_CC+:} false; then :
   2756   $as_echo_n "(cached) " >&6
   2757 else
   2758   if test -n "$CC"; then
   2759   ac_cv_prog_CC="$CC" # Let the user override the test.
   2760 else
   2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2762 for as_dir in $PATH
   2763 do
   2764   IFS=$as_save_IFS
   2765   test -z "$as_dir" && as_dir=.
   2766     for ac_exec_ext in '' $ac_executable_extensions; do
   2767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2768     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2770     break 2
   2771   fi
   2772 done
   2773   done
   2774 IFS=$as_save_IFS
   2775 
   2776 fi
   2777 fi
   2778 CC=$ac_cv_prog_CC
   2779 if test -n "$CC"; then
   2780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2781 $as_echo "$CC" >&6; }
   2782 else
   2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2784 $as_echo "no" >&6; }
   2785 fi
   2786 
   2787 
   2788 fi
   2789 if test -z "$ac_cv_prog_CC"; then
   2790   ac_ct_CC=$CC
   2791   # Extract the first word of "gcc", so it can be a program name with args.
   2792 set dummy gcc; ac_word=$2
   2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2794 $as_echo_n "checking for $ac_word... " >&6; }
   2795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2796   $as_echo_n "(cached) " >&6
   2797 else
   2798   if test -n "$ac_ct_CC"; then
   2799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2800 else
   2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2802 for as_dir in $PATH
   2803 do
   2804   IFS=$as_save_IFS
   2805   test -z "$as_dir" && as_dir=.
   2806     for ac_exec_ext in '' $ac_executable_extensions; do
   2807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2808     ac_cv_prog_ac_ct_CC="gcc"
   2809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2810     break 2
   2811   fi
   2812 done
   2813   done
   2814 IFS=$as_save_IFS
   2815 
   2816 fi
   2817 fi
   2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2819 if test -n "$ac_ct_CC"; then
   2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2821 $as_echo "$ac_ct_CC" >&6; }
   2822 else
   2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2824 $as_echo "no" >&6; }
   2825 fi
   2826 
   2827   if test "x$ac_ct_CC" = x; then
   2828     CC=""
   2829   else
   2830     case $cross_compiling:$ac_tool_warned in
   2831 yes:)
   2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2834 ac_tool_warned=yes ;;
   2835 esac
   2836     CC=$ac_ct_CC
   2837   fi
   2838 else
   2839   CC="$ac_cv_prog_CC"
   2840 fi
   2841 
   2842 if test -z "$CC"; then
   2843           if test -n "$ac_tool_prefix"; then
   2844     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2845 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2847 $as_echo_n "checking for $ac_word... " >&6; }
   2848 if ${ac_cv_prog_CC+:} false; then :
   2849   $as_echo_n "(cached) " >&6
   2850 else
   2851   if test -n "$CC"; then
   2852   ac_cv_prog_CC="$CC" # Let the user override the test.
   2853 else
   2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2855 for as_dir in $PATH
   2856 do
   2857   IFS=$as_save_IFS
   2858   test -z "$as_dir" && as_dir=.
   2859     for ac_exec_ext in '' $ac_executable_extensions; do
   2860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2861     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2863     break 2
   2864   fi
   2865 done
   2866   done
   2867 IFS=$as_save_IFS
   2868 
   2869 fi
   2870 fi
   2871 CC=$ac_cv_prog_CC
   2872 if test -n "$CC"; then
   2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2874 $as_echo "$CC" >&6; }
   2875 else
   2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2877 $as_echo "no" >&6; }
   2878 fi
   2879 
   2880 
   2881   fi
   2882 fi
   2883 if test -z "$CC"; then
   2884   # Extract the first word of "cc", so it can be a program name with args.
   2885 set dummy cc; ac_word=$2
   2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2887 $as_echo_n "checking for $ac_word... " >&6; }
   2888 if ${ac_cv_prog_CC+:} false; then :
   2889   $as_echo_n "(cached) " >&6
   2890 else
   2891   if test -n "$CC"; then
   2892   ac_cv_prog_CC="$CC" # Let the user override the test.
   2893 else
   2894   ac_prog_rejected=no
   2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2896 for as_dir in $PATH
   2897 do
   2898   IFS=$as_save_IFS
   2899   test -z "$as_dir" && as_dir=.
   2900     for ac_exec_ext in '' $ac_executable_extensions; do
   2901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2902     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2903        ac_prog_rejected=yes
   2904        continue
   2905      fi
   2906     ac_cv_prog_CC="cc"
   2907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2908     break 2
   2909   fi
   2910 done
   2911   done
   2912 IFS=$as_save_IFS
   2913 
   2914 if test $ac_prog_rejected = yes; then
   2915   # We found a bogon in the path, so make sure we never use it.
   2916   set dummy $ac_cv_prog_CC
   2917   shift
   2918   if test $# != 0; then
   2919     # We chose a different compiler from the bogus one.
   2920     # However, it has the same basename, so the bogon will be chosen
   2921     # first if we set CC to just the basename; use the full file name.
   2922     shift
   2923     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2924   fi
   2925 fi
   2926 fi
   2927 fi
   2928 CC=$ac_cv_prog_CC
   2929 if test -n "$CC"; then
   2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2931 $as_echo "$CC" >&6; }
   2932 else
   2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2934 $as_echo "no" >&6; }
   2935 fi
   2936 
   2937 
   2938 fi
   2939 if test -z "$CC"; then
   2940   if test -n "$ac_tool_prefix"; then
   2941   for ac_prog in cl.exe
   2942   do
   2943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2946 $as_echo_n "checking for $ac_word... " >&6; }
   2947 if ${ac_cv_prog_CC+:} false; then :
   2948   $as_echo_n "(cached) " >&6
   2949 else
   2950   if test -n "$CC"; then
   2951   ac_cv_prog_CC="$CC" # Let the user override the test.
   2952 else
   2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2954 for as_dir in $PATH
   2955 do
   2956   IFS=$as_save_IFS
   2957   test -z "$as_dir" && as_dir=.
   2958     for ac_exec_ext in '' $ac_executable_extensions; do
   2959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2960     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2962     break 2
   2963   fi
   2964 done
   2965   done
   2966 IFS=$as_save_IFS
   2967 
   2968 fi
   2969 fi
   2970 CC=$ac_cv_prog_CC
   2971 if test -n "$CC"; then
   2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2973 $as_echo "$CC" >&6; }
   2974 else
   2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2976 $as_echo "no" >&6; }
   2977 fi
   2978 
   2979 
   2980     test -n "$CC" && break
   2981   done
   2982 fi
   2983 if test -z "$CC"; then
   2984   ac_ct_CC=$CC
   2985   for ac_prog in cl.exe
   2986 do
   2987   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2988 set dummy $ac_prog; ac_word=$2
   2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2990 $as_echo_n "checking for $ac_word... " >&6; }
   2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2992   $as_echo_n "(cached) " >&6
   2993 else
   2994   if test -n "$ac_ct_CC"; then
   2995   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2996 else
   2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2998 for as_dir in $PATH
   2999 do
   3000   IFS=$as_save_IFS
   3001   test -z "$as_dir" && as_dir=.
   3002     for ac_exec_ext in '' $ac_executable_extensions; do
   3003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3004     ac_cv_prog_ac_ct_CC="$ac_prog"
   3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3006     break 2
   3007   fi
   3008 done
   3009   done
   3010 IFS=$as_save_IFS
   3011 
   3012 fi
   3013 fi
   3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3015 if test -n "$ac_ct_CC"; then
   3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3017 $as_echo "$ac_ct_CC" >&6; }
   3018 else
   3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3020 $as_echo "no" >&6; }
   3021 fi
   3022 
   3023 
   3024   test -n "$ac_ct_CC" && break
   3025 done
   3026 
   3027   if test "x$ac_ct_CC" = x; then
   3028     CC=""
   3029   else
   3030     case $cross_compiling:$ac_tool_warned in
   3031 yes:)
   3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3034 ac_tool_warned=yes ;;
   3035 esac
   3036     CC=$ac_ct_CC
   3037   fi
   3038 fi
   3039 
   3040 fi
   3041 
   3042 
   3043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3045 as_fn_error $? "no acceptable C compiler found in \$PATH
   3046 See \`config.log' for more details" "$LINENO" 5; }
   3047 
   3048 # Provide some information about the compiler.
   3049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3050 set X $ac_compile
   3051 ac_compiler=$2
   3052 for ac_option in --version -v -V -qversion; do
   3053   { { ac_try="$ac_compiler $ac_option >&5"
   3054 case "(($ac_try" in
   3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3056   *) ac_try_echo=$ac_try;;
   3057 esac
   3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3059 $as_echo "$ac_try_echo"; } >&5
   3060   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3061   ac_status=$?
   3062   if test -s conftest.err; then
   3063     sed '10a\
   3064 ... rest of stderr output deleted ...
   3065          10q' conftest.err >conftest.er1
   3066     cat conftest.er1 >&5
   3067   fi
   3068   rm -f conftest.er1 conftest.err
   3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3070   test $ac_status = 0; }
   3071 done
   3072 
   3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3074 /* end confdefs.h.  */
   3075 
   3076 int
   3077 main ()
   3078 {
   3079 
   3080   ;
   3081   return 0;
   3082 }
   3083 _ACEOF
   3084 ac_clean_files_save=$ac_clean_files
   3085 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3086 # Try to create an executable without -o first, disregard a.out.
   3087 # It will help us diagnose broken compilers, and finding out an intuition
   3088 # of exeext.
   3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3090 $as_echo_n "checking whether the C compiler works... " >&6; }
   3091 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3092 
   3093 # The possible output files:
   3094 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3095 
   3096 ac_rmfiles=
   3097 for ac_file in $ac_files
   3098 do
   3099   case $ac_file in
   3100     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3101     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3102   esac
   3103 done
   3104 rm -f $ac_rmfiles
   3105 
   3106 if { { ac_try="$ac_link_default"
   3107 case "(($ac_try" in
   3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3109   *) ac_try_echo=$ac_try;;
   3110 esac
   3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3112 $as_echo "$ac_try_echo"; } >&5
   3113   (eval "$ac_link_default") 2>&5
   3114   ac_status=$?
   3115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3116   test $ac_status = 0; }; then :
   3117   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3119 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3120 # so that the user can short-circuit this test for compilers unknown to
   3121 # Autoconf.
   3122 for ac_file in $ac_files ''
   3123 do
   3124   test -f "$ac_file" || continue
   3125   case $ac_file in
   3126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3127 	;;
   3128     [ab].out )
   3129 	# We found the default executable, but exeext='' is most
   3130 	# certainly right.
   3131 	break;;
   3132     *.* )
   3133 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3134 	then :; else
   3135 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3136 	fi
   3137 	# We set ac_cv_exeext here because the later test for it is not
   3138 	# safe: cross compilers may not add the suffix if given an `-o'
   3139 	# argument, so we may need to know it at that point already.
   3140 	# Even if this section looks crufty: it has the advantage of
   3141 	# actually working.
   3142 	break;;
   3143     * )
   3144 	break;;
   3145   esac
   3146 done
   3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3148 
   3149 else
   3150   ac_file=''
   3151 fi
   3152 if test -z "$ac_file"; then :
   3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3154 $as_echo "no" >&6; }
   3155 $as_echo "$as_me: failed program was:" >&5
   3156 sed 's/^/| /' conftest.$ac_ext >&5
   3157 
   3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3160 as_fn_error 77 "C compiler cannot create executables
   3161 See \`config.log' for more details" "$LINENO" 5; }
   3162 else
   3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3164 $as_echo "yes" >&6; }
   3165 fi
   3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3167 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3169 $as_echo "$ac_file" >&6; }
   3170 ac_exeext=$ac_cv_exeext
   3171 
   3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3173 ac_clean_files=$ac_clean_files_save
   3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3175 $as_echo_n "checking for suffix of executables... " >&6; }
   3176 if { { ac_try="$ac_link"
   3177 case "(($ac_try" in
   3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3179   *) ac_try_echo=$ac_try;;
   3180 esac
   3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3182 $as_echo "$ac_try_echo"; } >&5
   3183   (eval "$ac_link") 2>&5
   3184   ac_status=$?
   3185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3186   test $ac_status = 0; }; then :
   3187   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3188 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3189 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3190 # `rm'.
   3191 for ac_file in conftest.exe conftest conftest.*; do
   3192   test -f "$ac_file" || continue
   3193   case $ac_file in
   3194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3195     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3196 	  break;;
   3197     * ) break;;
   3198   esac
   3199 done
   3200 else
   3201   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3204 See \`config.log' for more details" "$LINENO" 5; }
   3205 fi
   3206 rm -f conftest conftest$ac_cv_exeext
   3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3208 $as_echo "$ac_cv_exeext" >&6; }
   3209 
   3210 rm -f conftest.$ac_ext
   3211 EXEEXT=$ac_cv_exeext
   3212 ac_exeext=$EXEEXT
   3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3214 /* end confdefs.h.  */
   3215 #include <stdio.h>
   3216 int
   3217 main ()
   3218 {
   3219 FILE *f = fopen ("conftest.out", "w");
   3220  return ferror (f) || fclose (f) != 0;
   3221 
   3222   ;
   3223   return 0;
   3224 }
   3225 _ACEOF
   3226 ac_clean_files="$ac_clean_files conftest.out"
   3227 # Check that the compiler produces executables we can run.  If not, either
   3228 # the compiler is broken, or we cross compile.
   3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3230 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3231 if test "$cross_compiling" != yes; then
   3232   { { ac_try="$ac_link"
   3233 case "(($ac_try" in
   3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3235   *) ac_try_echo=$ac_try;;
   3236 esac
   3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3238 $as_echo "$ac_try_echo"; } >&5
   3239   (eval "$ac_link") 2>&5
   3240   ac_status=$?
   3241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3242   test $ac_status = 0; }
   3243   if { ac_try='./conftest$ac_cv_exeext'
   3244   { { case "(($ac_try" in
   3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3246   *) ac_try_echo=$ac_try;;
   3247 esac
   3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3249 $as_echo "$ac_try_echo"; } >&5
   3250   (eval "$ac_try") 2>&5
   3251   ac_status=$?
   3252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3253   test $ac_status = 0; }; }; then
   3254     cross_compiling=no
   3255   else
   3256     if test "$cross_compiling" = maybe; then
   3257 	cross_compiling=yes
   3258     else
   3259 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3261 as_fn_error $? "cannot run C compiled programs.
   3262 If you meant to cross compile, use \`--host'.
   3263 See \`config.log' for more details" "$LINENO" 5; }
   3264     fi
   3265   fi
   3266 fi
   3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3268 $as_echo "$cross_compiling" >&6; }
   3269 
   3270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3271 ac_clean_files=$ac_clean_files_save
   3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3273 $as_echo_n "checking for suffix of object files... " >&6; }
   3274 if ${ac_cv_objext+:} false; then :
   3275   $as_echo_n "(cached) " >&6
   3276 else
   3277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3278 /* end confdefs.h.  */
   3279 
   3280 int
   3281 main ()
   3282 {
   3283 
   3284   ;
   3285   return 0;
   3286 }
   3287 _ACEOF
   3288 rm -f conftest.o conftest.obj
   3289 if { { ac_try="$ac_compile"
   3290 case "(($ac_try" in
   3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3292   *) ac_try_echo=$ac_try;;
   3293 esac
   3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3295 $as_echo "$ac_try_echo"; } >&5
   3296   (eval "$ac_compile") 2>&5
   3297   ac_status=$?
   3298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3299   test $ac_status = 0; }; then :
   3300   for ac_file in conftest.o conftest.obj conftest.*; do
   3301   test -f "$ac_file" || continue;
   3302   case $ac_file in
   3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3304     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3305        break;;
   3306   esac
   3307 done
   3308 else
   3309   $as_echo "$as_me: failed program was:" >&5
   3310 sed 's/^/| /' conftest.$ac_ext >&5
   3311 
   3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3314 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3315 See \`config.log' for more details" "$LINENO" 5; }
   3316 fi
   3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3318 fi
   3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3320 $as_echo "$ac_cv_objext" >&6; }
   3321 OBJEXT=$ac_cv_objext
   3322 ac_objext=$OBJEXT
   3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3325 if ${ac_cv_c_compiler_gnu+:} false; then :
   3326   $as_echo_n "(cached) " >&6
   3327 else
   3328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3329 /* end confdefs.h.  */
   3330 
   3331 int
   3332 main ()
   3333 {
   3334 #ifndef __GNUC__
   3335        choke me
   3336 #endif
   3337 
   3338   ;
   3339   return 0;
   3340 }
   3341 _ACEOF
   3342 if ac_fn_c_try_compile "$LINENO"; then :
   3343   ac_compiler_gnu=yes
   3344 else
   3345   ac_compiler_gnu=no
   3346 fi
   3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3349 
   3350 fi
   3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3353 if test $ac_compiler_gnu = yes; then
   3354   GCC=yes
   3355 else
   3356   GCC=
   3357 fi
   3358 ac_test_CFLAGS=${CFLAGS+set}
   3359 ac_save_CFLAGS=$CFLAGS
   3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3362 if ${ac_cv_prog_cc_g+:} false; then :
   3363   $as_echo_n "(cached) " >&6
   3364 else
   3365   ac_save_c_werror_flag=$ac_c_werror_flag
   3366    ac_c_werror_flag=yes
   3367    ac_cv_prog_cc_g=no
   3368    CFLAGS="-g"
   3369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3370 /* end confdefs.h.  */
   3371 
   3372 int
   3373 main ()
   3374 {
   3375 
   3376   ;
   3377   return 0;
   3378 }
   3379 _ACEOF
   3380 if ac_fn_c_try_compile "$LINENO"; then :
   3381   ac_cv_prog_cc_g=yes
   3382 else
   3383   CFLAGS=""
   3384       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3385 /* end confdefs.h.  */
   3386 
   3387 int
   3388 main ()
   3389 {
   3390 
   3391   ;
   3392   return 0;
   3393 }
   3394 _ACEOF
   3395 if ac_fn_c_try_compile "$LINENO"; then :
   3396 
   3397 else
   3398   ac_c_werror_flag=$ac_save_c_werror_flag
   3399 	 CFLAGS="-g"
   3400 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3401 /* end confdefs.h.  */
   3402 
   3403 int
   3404 main ()
   3405 {
   3406 
   3407   ;
   3408   return 0;
   3409 }
   3410 _ACEOF
   3411 if ac_fn_c_try_compile "$LINENO"; then :
   3412   ac_cv_prog_cc_g=yes
   3413 fi
   3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3415 fi
   3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3417 fi
   3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3419    ac_c_werror_flag=$ac_save_c_werror_flag
   3420 fi
   3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3423 if test "$ac_test_CFLAGS" = set; then
   3424   CFLAGS=$ac_save_CFLAGS
   3425 elif test $ac_cv_prog_cc_g = yes; then
   3426   if test "$GCC" = yes; then
   3427     CFLAGS="-g -O2"
   3428   else
   3429     CFLAGS="-g"
   3430   fi
   3431 else
   3432   if test "$GCC" = yes; then
   3433     CFLAGS="-O2"
   3434   else
   3435     CFLAGS=
   3436   fi
   3437 fi
   3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3440 if ${ac_cv_prog_cc_c89+:} false; then :
   3441   $as_echo_n "(cached) " >&6
   3442 else
   3443   ac_cv_prog_cc_c89=no
   3444 ac_save_CC=$CC
   3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3446 /* end confdefs.h.  */
   3447 #include <stdarg.h>
   3448 #include <stdio.h>
   3449 struct stat;
   3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3451 struct buf { int x; };
   3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3453 static char *e (p, i)
   3454      char **p;
   3455      int i;
   3456 {
   3457   return p[i];
   3458 }
   3459 static char *f (char * (*g) (char **, int), char **p, ...)
   3460 {
   3461   char *s;
   3462   va_list v;
   3463   va_start (v,p);
   3464   s = g (p, va_arg (v,int));
   3465   va_end (v);
   3466   return s;
   3467 }
   3468 
   3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3470    function prototypes and stuff, but not '\xHH' hex character constants.
   3471    These don't provoke an error unfortunately, instead are silently treated
   3472    as 'x'.  The following induces an error, until -std is added to get
   3473    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3474    array size at least.  It's necessary to write '\x00'==0 to get something
   3475    that's true only with -std.  */
   3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3477 
   3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3479    inside strings and character constants.  */
   3480 #define FOO(x) 'x'
   3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3482 
   3483 int test (int i, double x);
   3484 struct s1 {int (*f) (int a);};
   3485 struct s2 {int (*f) (double a);};
   3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3487 int argc;
   3488 char **argv;
   3489 int
   3490 main ()
   3491 {
   3492 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3493   ;
   3494   return 0;
   3495 }
   3496 _ACEOF
   3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3498 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3499 do
   3500   CC="$ac_save_CC $ac_arg"
   3501   if ac_fn_c_try_compile "$LINENO"; then :
   3502   ac_cv_prog_cc_c89=$ac_arg
   3503 fi
   3504 rm -f core conftest.err conftest.$ac_objext
   3505   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3506 done
   3507 rm -f conftest.$ac_ext
   3508 CC=$ac_save_CC
   3509 
   3510 fi
   3511 # AC_CACHE_VAL
   3512 case "x$ac_cv_prog_cc_c89" in
   3513   x)
   3514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3515 $as_echo "none needed" >&6; } ;;
   3516   xno)
   3517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3518 $as_echo "unsupported" >&6; } ;;
   3519   *)
   3520     CC="$CC $ac_cv_prog_cc_c89"
   3521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3523 esac
   3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3525 
   3526 fi
   3527 
   3528 ac_ext=c
   3529 ac_cpp='$CPP $CPPFLAGS'
   3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3533 
   3534 
   3535 if test "x$GCC" != "xyes" ; then
   3536 
   3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
   3538 $as_echo_n "checking whether compiler is MSVC... " >&6; }
   3539 if ${je_cv_msvc+:} false; then :
   3540   $as_echo_n "(cached) " >&6
   3541 else
   3542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3543 /* end confdefs.h.  */
   3544 
   3545 int
   3546 main ()
   3547 {
   3548 
   3549 #ifndef _MSC_VER
   3550   int fail-1;
   3551 #endif
   3552 
   3553   ;
   3554   return 0;
   3555 }
   3556 _ACEOF
   3557 if ac_fn_c_try_compile "$LINENO"; then :
   3558   je_cv_msvc=yes
   3559 else
   3560   je_cv_msvc=no
   3561 fi
   3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3563 fi
   3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
   3565 $as_echo "$je_cv_msvc" >&6; }
   3566 fi
   3567 
   3568 je_cv_cray_prgenv_wrapper=""
   3569 if test "x${PE_ENV}" != "x" ; then
   3570   case "${CC}" in
   3571     CC|cc)
   3572 	je_cv_cray_prgenv_wrapper="yes"
   3573 	;;
   3574     *)
   3575        ;;
   3576   esac
   3577 fi
   3578 
   3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
   3580 $as_echo_n "checking whether compiler is cray... " >&6; }
   3581 if ${je_cv_cray+:} false; then :
   3582   $as_echo_n "(cached) " >&6
   3583 else
   3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3585 /* end confdefs.h.  */
   3586 
   3587 int
   3588 main ()
   3589 {
   3590 
   3591 #ifndef _CRAYC
   3592   int fail-1;
   3593 #endif
   3594 
   3595   ;
   3596   return 0;
   3597 }
   3598 _ACEOF
   3599 if ac_fn_c_try_compile "$LINENO"; then :
   3600   je_cv_cray=yes
   3601 else
   3602   je_cv_cray=no
   3603 fi
   3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3605 fi
   3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
   3607 $as_echo "$je_cv_cray" >&6; }
   3608 
   3609 if test "x${je_cv_cray}" = "xyes" ; then
   3610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
   3611 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
   3612 if ${je_cv_cray_84+:} false; then :
   3613   $as_echo_n "(cached) " >&6
   3614 else
   3615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3616 /* end confdefs.h.  */
   3617 
   3618 int
   3619 main ()
   3620 {
   3621 
   3622 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
   3623   int fail-1;
   3624 #endif
   3625 
   3626   ;
   3627   return 0;
   3628 }
   3629 _ACEOF
   3630 if ac_fn_c_try_compile "$LINENO"; then :
   3631   je_cv_cray_84=yes
   3632 else
   3633   je_cv_cray_84=no
   3634 fi
   3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3636 fi
   3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
   3638 $as_echo "$je_cv_cray_84" >&6; }
   3639 fi
   3640 
   3641 if test "x$GCC" = "xyes" ; then
   3642 
   3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
   3644 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
   3645 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3646 T_APPEND_V=-std=gnu11
   3647   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3648   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3649 else
   3650   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3651 fi
   3652 
   3653 
   3654 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3655   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3656 else
   3657   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3658 fi
   3659 
   3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3661 /* end confdefs.h.  */
   3662 
   3663 
   3664 int
   3665 main ()
   3666 {
   3667 
   3668     return 0;
   3669 
   3670   ;
   3671   return 0;
   3672 }
   3673 _ACEOF
   3674 if ac_fn_c_try_compile "$LINENO"; then :
   3675   je_cv_cflags_added=-std=gnu11
   3676               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3677 $as_echo "yes" >&6; }
   3678 else
   3679   je_cv_cflags_added=
   3680               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3681 $as_echo "no" >&6; }
   3682               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3683 
   3684 fi
   3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3686 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3687   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3688 else
   3689   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3690 fi
   3691 
   3692 
   3693   if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
   3694 
   3695 cat >>confdefs.h <<_ACEOF
   3696 #define JEMALLOC_HAS_RESTRICT
   3697 _ACEOF
   3698 
   3699   else
   3700 
   3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
   3702 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
   3703 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3704 T_APPEND_V=-std=gnu99
   3705   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3706   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3707 else
   3708   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3709 fi
   3710 
   3711 
   3712 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3713   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3714 else
   3715   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3716 fi
   3717 
   3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3719 /* end confdefs.h.  */
   3720 
   3721 
   3722 int
   3723 main ()
   3724 {
   3725 
   3726     return 0;
   3727 
   3728   ;
   3729   return 0;
   3730 }
   3731 _ACEOF
   3732 if ac_fn_c_try_compile "$LINENO"; then :
   3733   je_cv_cflags_added=-std=gnu99
   3734               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3735 $as_echo "yes" >&6; }
   3736 else
   3737   je_cv_cflags_added=
   3738               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3739 $as_echo "no" >&6; }
   3740               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3741 
   3742 fi
   3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3744 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3745   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3746 else
   3747   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3748 fi
   3749 
   3750 
   3751     if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
   3752 
   3753 cat >>confdefs.h <<_ACEOF
   3754 #define JEMALLOC_HAS_RESTRICT
   3755 _ACEOF
   3756 
   3757     fi
   3758   fi
   3759 
   3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=unknown-warning-option" >&5
   3761 $as_echo_n "checking whether compiler supports -Werror=unknown-warning-option... " >&6; }
   3762 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3763 T_APPEND_V=-Werror=unknown-warning-option
   3764   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3765   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3766 else
   3767   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3768 fi
   3769 
   3770 
   3771 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3772   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3773 else
   3774   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3775 fi
   3776 
   3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3778 /* end confdefs.h.  */
   3779 
   3780 
   3781 int
   3782 main ()
   3783 {
   3784 
   3785     return 0;
   3786 
   3787   ;
   3788   return 0;
   3789 }
   3790 _ACEOF
   3791 if ac_fn_c_try_compile "$LINENO"; then :
   3792   je_cv_cflags_added=-Werror=unknown-warning-option
   3793               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3794 $as_echo "yes" >&6; }
   3795 else
   3796   je_cv_cflags_added=
   3797               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3798 $as_echo "no" >&6; }
   3799               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3800 
   3801 fi
   3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3803 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3804   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3805 else
   3806   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3807 fi
   3808 
   3809 
   3810 
   3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
   3812 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
   3813 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3814 T_APPEND_V=-Wall
   3815   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3816   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3817 else
   3818   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3819 fi
   3820 
   3821 
   3822 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3823   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3824 else
   3825   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3826 fi
   3827 
   3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3829 /* end confdefs.h.  */
   3830 
   3831 
   3832 int
   3833 main ()
   3834 {
   3835 
   3836     return 0;
   3837 
   3838   ;
   3839   return 0;
   3840 }
   3841 _ACEOF
   3842 if ac_fn_c_try_compile "$LINENO"; then :
   3843   je_cv_cflags_added=-Wall
   3844               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3845 $as_echo "yes" >&6; }
   3846 else
   3847   je_cv_cflags_added=
   3848               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3849 $as_echo "no" >&6; }
   3850               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3851 
   3852 fi
   3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3854 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3855   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3856 else
   3857   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3858 fi
   3859 
   3860 
   3861 
   3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
   3863 $as_echo_n "checking whether compiler supports -Wextra... " >&6; }
   3864 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3865 T_APPEND_V=-Wextra
   3866   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3867   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3868 else
   3869   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3870 fi
   3871 
   3872 
   3873 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3874   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3875 else
   3876   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3877 fi
   3878 
   3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3880 /* end confdefs.h.  */
   3881 
   3882 
   3883 int
   3884 main ()
   3885 {
   3886 
   3887     return 0;
   3888 
   3889   ;
   3890   return 0;
   3891 }
   3892 _ACEOF
   3893 if ac_fn_c_try_compile "$LINENO"; then :
   3894   je_cv_cflags_added=-Wextra
   3895               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3896 $as_echo "yes" >&6; }
   3897 else
   3898   je_cv_cflags_added=
   3899               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3900 $as_echo "no" >&6; }
   3901               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3902 
   3903 fi
   3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3905 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3906   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3907 else
   3908   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3909 fi
   3910 
   3911 
   3912 
   3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
   3914 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
   3915 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3916 T_APPEND_V=-Wshorten-64-to-32
   3917   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3918   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3919 else
   3920   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3921 fi
   3922 
   3923 
   3924 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3925   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3926 else
   3927   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3928 fi
   3929 
   3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3931 /* end confdefs.h.  */
   3932 
   3933 
   3934 int
   3935 main ()
   3936 {
   3937 
   3938     return 0;
   3939 
   3940   ;
   3941   return 0;
   3942 }
   3943 _ACEOF
   3944 if ac_fn_c_try_compile "$LINENO"; then :
   3945   je_cv_cflags_added=-Wshorten-64-to-32
   3946               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3947 $as_echo "yes" >&6; }
   3948 else
   3949   je_cv_cflags_added=
   3950               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3951 $as_echo "no" >&6; }
   3952               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3953 
   3954 fi
   3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3956 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3957   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3958 else
   3959   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3960 fi
   3961 
   3962 
   3963 
   3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
   3965 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
   3966 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3967 T_APPEND_V=-Wsign-compare
   3968   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3969   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3970 else
   3971   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3972 fi
   3973 
   3974 
   3975 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3976   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3977 else
   3978   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3979 fi
   3980 
   3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3982 /* end confdefs.h.  */
   3983 
   3984 
   3985 int
   3986 main ()
   3987 {
   3988 
   3989     return 0;
   3990 
   3991   ;
   3992   return 0;
   3993 }
   3994 _ACEOF
   3995 if ac_fn_c_try_compile "$LINENO"; then :
   3996   je_cv_cflags_added=-Wsign-compare
   3997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3998 $as_echo "yes" >&6; }
   3999 else
   4000   je_cv_cflags_added=
   4001               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4002 $as_echo "no" >&6; }
   4003               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4004 
   4005 fi
   4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4007 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4008   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4009 else
   4010   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4011 fi
   4012 
   4013 
   4014 
   4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
   4016 $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
   4017 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4018 T_APPEND_V=-Wundef
   4019   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4020   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4021 else
   4022   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4023 fi
   4024 
   4025 
   4026 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4027   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4028 else
   4029   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4030 fi
   4031 
   4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4033 /* end confdefs.h.  */
   4034 
   4035 
   4036 int
   4037 main ()
   4038 {
   4039 
   4040     return 0;
   4041 
   4042   ;
   4043   return 0;
   4044 }
   4045 _ACEOF
   4046 if ac_fn_c_try_compile "$LINENO"; then :
   4047   je_cv_cflags_added=-Wundef
   4048               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4049 $as_echo "yes" >&6; }
   4050 else
   4051   je_cv_cflags_added=
   4052               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4053 $as_echo "no" >&6; }
   4054               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4055 
   4056 fi
   4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4058 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4059   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4060 else
   4061   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4062 fi
   4063 
   4064 
   4065 
   4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
   4067 $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
   4068 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4069 T_APPEND_V=-Wno-format-zero-length
   4070   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4071   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4072 else
   4073   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4074 fi
   4075 
   4076 
   4077 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4078   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4079 else
   4080   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4081 fi
   4082 
   4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4084 /* end confdefs.h.  */
   4085 
   4086 
   4087 int
   4088 main ()
   4089 {
   4090 
   4091     return 0;
   4092 
   4093   ;
   4094   return 0;
   4095 }
   4096 _ACEOF
   4097 if ac_fn_c_try_compile "$LINENO"; then :
   4098   je_cv_cflags_added=-Wno-format-zero-length
   4099               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4100 $as_echo "yes" >&6; }
   4101 else
   4102   je_cv_cflags_added=
   4103               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4104 $as_echo "no" >&6; }
   4105               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4106 
   4107 fi
   4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4109 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4110   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4111 else
   4112   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4113 fi
   4114 
   4115 
   4116 
   4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpointer-arith" >&5
   4118 $as_echo_n "checking whether compiler supports -Wpointer-arith... " >&6; }
   4119 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4120 T_APPEND_V=-Wpointer-arith
   4121   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4122   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4123 else
   4124   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4125 fi
   4126 
   4127 
   4128 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4129   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4130 else
   4131   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4132 fi
   4133 
   4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4135 /* end confdefs.h.  */
   4136 
   4137 
   4138 int
   4139 main ()
   4140 {
   4141 
   4142     return 0;
   4143 
   4144   ;
   4145   return 0;
   4146 }
   4147 _ACEOF
   4148 if ac_fn_c_try_compile "$LINENO"; then :
   4149   je_cv_cflags_added=-Wpointer-arith
   4150               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4151 $as_echo "yes" >&6; }
   4152 else
   4153   je_cv_cflags_added=
   4154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4155 $as_echo "no" >&6; }
   4156               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4157 
   4158 fi
   4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4160 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4161   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4162 else
   4163   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4164 fi
   4165 
   4166 
   4167 
   4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-braces" >&5
   4169 $as_echo_n "checking whether compiler supports -Wno-missing-braces... " >&6; }
   4170 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4171 T_APPEND_V=-Wno-missing-braces
   4172   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4173   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4174 else
   4175   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4176 fi
   4177 
   4178 
   4179 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4180   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4181 else
   4182   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4183 fi
   4184 
   4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4186 /* end confdefs.h.  */
   4187 
   4188 
   4189 int
   4190 main ()
   4191 {
   4192 
   4193     return 0;
   4194 
   4195   ;
   4196   return 0;
   4197 }
   4198 _ACEOF
   4199 if ac_fn_c_try_compile "$LINENO"; then :
   4200   je_cv_cflags_added=-Wno-missing-braces
   4201               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4202 $as_echo "yes" >&6; }
   4203 else
   4204   je_cv_cflags_added=
   4205               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4206 $as_echo "no" >&6; }
   4207               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4208 
   4209 fi
   4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4211 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4212   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4213 else
   4214   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4215 fi
   4216 
   4217 
   4218 
   4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-field-initializers" >&5
   4220 $as_echo_n "checking whether compiler supports -Wno-missing-field-initializers... " >&6; }
   4221 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4222 T_APPEND_V=-Wno-missing-field-initializers
   4223   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4224   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4225 else
   4226   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4227 fi
   4228 
   4229 
   4230 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4231   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4232 else
   4233   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4234 fi
   4235 
   4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4237 /* end confdefs.h.  */
   4238 
   4239 
   4240 int
   4241 main ()
   4242 {
   4243 
   4244     return 0;
   4245 
   4246   ;
   4247   return 0;
   4248 }
   4249 _ACEOF
   4250 if ac_fn_c_try_compile "$LINENO"; then :
   4251   je_cv_cflags_added=-Wno-missing-field-initializers
   4252               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4253 $as_echo "yes" >&6; }
   4254 else
   4255   je_cv_cflags_added=
   4256               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4257 $as_echo "no" >&6; }
   4258               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4259 
   4260 fi
   4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4262 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4263   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4264 else
   4265   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4266 fi
   4267 
   4268 
   4269 
   4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-attributes" >&5
   4271 $as_echo_n "checking whether compiler supports -Wno-missing-attributes... " >&6; }
   4272 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4273 T_APPEND_V=-Wno-missing-attributes
   4274   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4275   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4276 else
   4277   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4278 fi
   4279 
   4280 
   4281 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4282   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4283 else
   4284   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4285 fi
   4286 
   4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4288 /* end confdefs.h.  */
   4289 
   4290 
   4291 int
   4292 main ()
   4293 {
   4294 
   4295     return 0;
   4296 
   4297   ;
   4298   return 0;
   4299 }
   4300 _ACEOF
   4301 if ac_fn_c_try_compile "$LINENO"; then :
   4302   je_cv_cflags_added=-Wno-missing-attributes
   4303               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4304 $as_echo "yes" >&6; }
   4305 else
   4306   je_cv_cflags_added=
   4307               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4308 $as_echo "no" >&6; }
   4309               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4310 
   4311 fi
   4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4313 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4314   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4315 else
   4316   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4317 fi
   4318 
   4319 
   4320 
   4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
   4322 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
   4323 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4324 T_APPEND_V=-pipe
   4325   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4326   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4327 else
   4328   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4329 fi
   4330 
   4331 
   4332 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4333   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4334 else
   4335   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4336 fi
   4337 
   4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4339 /* end confdefs.h.  */
   4340 
   4341 
   4342 int
   4343 main ()
   4344 {
   4345 
   4346     return 0;
   4347 
   4348   ;
   4349   return 0;
   4350 }
   4351 _ACEOF
   4352 if ac_fn_c_try_compile "$LINENO"; then :
   4353   je_cv_cflags_added=-pipe
   4354               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4355 $as_echo "yes" >&6; }
   4356 else
   4357   je_cv_cflags_added=
   4358               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4359 $as_echo "no" >&6; }
   4360               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4361 
   4362 fi
   4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4364 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4365   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4366 else
   4367   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4368 fi
   4369 
   4370 
   4371 
   4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
   4373 $as_echo_n "checking whether compiler supports -g3... " >&6; }
   4374 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4375 T_APPEND_V=-g3
   4376   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4377   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4378 else
   4379   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4380 fi
   4381 
   4382 
   4383 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4384   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4385 else
   4386   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4387 fi
   4388 
   4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4390 /* end confdefs.h.  */
   4391 
   4392 
   4393 int
   4394 main ()
   4395 {
   4396 
   4397     return 0;
   4398 
   4399   ;
   4400   return 0;
   4401 }
   4402 _ACEOF
   4403 if ac_fn_c_try_compile "$LINENO"; then :
   4404   je_cv_cflags_added=-g3
   4405               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4406 $as_echo "yes" >&6; }
   4407 else
   4408   je_cv_cflags_added=
   4409               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4410 $as_echo "no" >&6; }
   4411               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4412 
   4413 fi
   4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4415 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4416   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4417 else
   4418   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4419 fi
   4420 
   4421 
   4422 elif test "x$je_cv_msvc" = "xyes" ; then
   4423   CC="$CC -nologo"
   4424 
   4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
   4426 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
   4427 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4428 T_APPEND_V=-Zi
   4429   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4430   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4431 else
   4432   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4433 fi
   4434 
   4435 
   4436 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4437   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4438 else
   4439   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4440 fi
   4441 
   4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4443 /* end confdefs.h.  */
   4444 
   4445 
   4446 int
   4447 main ()
   4448 {
   4449 
   4450     return 0;
   4451 
   4452   ;
   4453   return 0;
   4454 }
   4455 _ACEOF
   4456 if ac_fn_c_try_compile "$LINENO"; then :
   4457   je_cv_cflags_added=-Zi
   4458               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4459 $as_echo "yes" >&6; }
   4460 else
   4461   je_cv_cflags_added=
   4462               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4463 $as_echo "no" >&6; }
   4464               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4465 
   4466 fi
   4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4468 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4469   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4470 else
   4471   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4472 fi
   4473 
   4474 
   4475 
   4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
   4477 $as_echo_n "checking whether compiler supports -MT... " >&6; }
   4478 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4479 T_APPEND_V=-MT
   4480   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4481   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4482 else
   4483   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4484 fi
   4485 
   4486 
   4487 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4488   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4489 else
   4490   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4491 fi
   4492 
   4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4494 /* end confdefs.h.  */
   4495 
   4496 
   4497 int
   4498 main ()
   4499 {
   4500 
   4501     return 0;
   4502 
   4503   ;
   4504   return 0;
   4505 }
   4506 _ACEOF
   4507 if ac_fn_c_try_compile "$LINENO"; then :
   4508   je_cv_cflags_added=-MT
   4509               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4510 $as_echo "yes" >&6; }
   4511 else
   4512   je_cv_cflags_added=
   4513               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4514 $as_echo "no" >&6; }
   4515               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4516 
   4517 fi
   4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4519 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4520   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4521 else
   4522   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4523 fi
   4524 
   4525 
   4526 
   4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
   4528 $as_echo_n "checking whether compiler supports -W3... " >&6; }
   4529 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4530 T_APPEND_V=-W3
   4531   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4532   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4533 else
   4534   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4535 fi
   4536 
   4537 
   4538 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4539   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4540 else
   4541   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4542 fi
   4543 
   4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4545 /* end confdefs.h.  */
   4546 
   4547 
   4548 int
   4549 main ()
   4550 {
   4551 
   4552     return 0;
   4553 
   4554   ;
   4555   return 0;
   4556 }
   4557 _ACEOF
   4558 if ac_fn_c_try_compile "$LINENO"; then :
   4559   je_cv_cflags_added=-W3
   4560               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4561 $as_echo "yes" >&6; }
   4562 else
   4563   je_cv_cflags_added=
   4564               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4565 $as_echo "no" >&6; }
   4566               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4567 
   4568 fi
   4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4570 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4571   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4572 else
   4573   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4574 fi
   4575 
   4576 
   4577 
   4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
   4579 $as_echo_n "checking whether compiler supports -FS... " >&6; }
   4580 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4581 T_APPEND_V=-FS
   4582   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4583   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4584 else
   4585   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4586 fi
   4587 
   4588 
   4589 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4590   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4591 else
   4592   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4593 fi
   4594 
   4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4596 /* end confdefs.h.  */
   4597 
   4598 
   4599 int
   4600 main ()
   4601 {
   4602 
   4603     return 0;
   4604 
   4605   ;
   4606   return 0;
   4607 }
   4608 _ACEOF
   4609 if ac_fn_c_try_compile "$LINENO"; then :
   4610   je_cv_cflags_added=-FS
   4611               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4612 $as_echo "yes" >&6; }
   4613 else
   4614   je_cv_cflags_added=
   4615               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4616 $as_echo "no" >&6; }
   4617               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4618 
   4619 fi
   4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4621 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4622   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4623 else
   4624   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4625 fi
   4626 
   4627 
   4628   T_APPEND_V=-I${srcdir}/include/msvc_compat
   4629   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4630   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   4631 else
   4632   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   4633 fi
   4634 
   4635 
   4636 fi
   4637 if test "x$je_cv_cray" = "xyes" ; then
   4638     if test "x$je_cv_cray_84" = "xyes" ; then
   4639 
   4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
   4641 $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
   4642 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4643 T_APPEND_V=-hipa2
   4644   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4645   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4646 else
   4647   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4648 fi
   4649 
   4650 
   4651 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4652   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4653 else
   4654   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4655 fi
   4656 
   4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4658 /* end confdefs.h.  */
   4659 
   4660 
   4661 int
   4662 main ()
   4663 {
   4664 
   4665     return 0;
   4666 
   4667   ;
   4668   return 0;
   4669 }
   4670 _ACEOF
   4671 if ac_fn_c_try_compile "$LINENO"; then :
   4672   je_cv_cflags_added=-hipa2
   4673               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4674 $as_echo "yes" >&6; }
   4675 else
   4676   je_cv_cflags_added=
   4677               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4678 $as_echo "no" >&6; }
   4679               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4680 
   4681 fi
   4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4683 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4684   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4685 else
   4686   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4687 fi
   4688 
   4689 
   4690 
   4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
   4692 $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
   4693 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4694 T_APPEND_V=-hnognu
   4695   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4696   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4697 else
   4698   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4699 fi
   4700 
   4701 
   4702 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4703   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4704 else
   4705   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4706 fi
   4707 
   4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4709 /* end confdefs.h.  */
   4710 
   4711 
   4712 int
   4713 main ()
   4714 {
   4715 
   4716     return 0;
   4717 
   4718   ;
   4719   return 0;
   4720 }
   4721 _ACEOF
   4722 if ac_fn_c_try_compile "$LINENO"; then :
   4723   je_cv_cflags_added=-hnognu
   4724               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4725 $as_echo "yes" >&6; }
   4726 else
   4727   je_cv_cflags_added=
   4728               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4729 $as_echo "no" >&6; }
   4730               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4731 
   4732 fi
   4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4734 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4735   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4736 else
   4737   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4738 fi
   4739 
   4740 
   4741   fi
   4742 
   4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
   4744 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
   4745 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4746 T_APPEND_V=-hnomessage=128
   4747   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4748   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4749 else
   4750   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4751 fi
   4752 
   4753 
   4754 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4755   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4756 else
   4757   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4758 fi
   4759 
   4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4761 /* end confdefs.h.  */
   4762 
   4763 
   4764 int
   4765 main ()
   4766 {
   4767 
   4768     return 0;
   4769 
   4770   ;
   4771   return 0;
   4772 }
   4773 _ACEOF
   4774 if ac_fn_c_try_compile "$LINENO"; then :
   4775   je_cv_cflags_added=-hnomessage=128
   4776               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4777 $as_echo "yes" >&6; }
   4778 else
   4779   je_cv_cflags_added=
   4780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4781 $as_echo "no" >&6; }
   4782               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4783 
   4784 fi
   4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4786 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4787   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4788 else
   4789   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4790 fi
   4791 
   4792 
   4793 
   4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
   4795 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
   4796 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4797 T_APPEND_V=-hnomessage=1357
   4798   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4799   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4800 else
   4801   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4802 fi
   4803 
   4804 
   4805 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4806   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4807 else
   4808   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4809 fi
   4810 
   4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4812 /* end confdefs.h.  */
   4813 
   4814 
   4815 int
   4816 main ()
   4817 {
   4818 
   4819     return 0;
   4820 
   4821   ;
   4822   return 0;
   4823 }
   4824 _ACEOF
   4825 if ac_fn_c_try_compile "$LINENO"; then :
   4826   je_cv_cflags_added=-hnomessage=1357
   4827               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4828 $as_echo "yes" >&6; }
   4829 else
   4830   je_cv_cflags_added=
   4831               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4832 $as_echo "no" >&6; }
   4833               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4834 
   4835 fi
   4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4837 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4838   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4839 else
   4840   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4841 fi
   4842 
   4843 
   4844 fi
   4845 
   4846 
   4847 
   4848 ac_ext=c
   4849 ac_cpp='$CPP $CPPFLAGS'
   4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4854 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4855 # On Suns, sometimes $CPP names a directory.
   4856 if test -n "$CPP" && test -d "$CPP"; then
   4857   CPP=
   4858 fi
   4859 if test -z "$CPP"; then
   4860   if ${ac_cv_prog_CPP+:} false; then :
   4861   $as_echo_n "(cached) " >&6
   4862 else
   4863       # Double quotes because CPP needs to be expanded
   4864     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4865     do
   4866       ac_preproc_ok=false
   4867 for ac_c_preproc_warn_flag in '' yes
   4868 do
   4869   # Use a header file that comes with gcc, so configuring glibc
   4870   # with a fresh cross-compiler works.
   4871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4872   # <limits.h> exists even on freestanding compilers.
   4873   # On the NeXT, cc -E runs the code through the compiler's parser,
   4874   # not just through cpp. "Syntax error" is here to catch this case.
   4875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4876 /* end confdefs.h.  */
   4877 #ifdef __STDC__
   4878 # include <limits.h>
   4879 #else
   4880 # include <assert.h>
   4881 #endif
   4882 		     Syntax error
   4883 _ACEOF
   4884 if ac_fn_c_try_cpp "$LINENO"; then :
   4885 
   4886 else
   4887   # Broken: fails on valid input.
   4888 continue
   4889 fi
   4890 rm -f conftest.err conftest.i conftest.$ac_ext
   4891 
   4892   # OK, works on sane cases.  Now check whether nonexistent headers
   4893   # can be detected and how.
   4894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4895 /* end confdefs.h.  */
   4896 #include <ac_nonexistent.h>
   4897 _ACEOF
   4898 if ac_fn_c_try_cpp "$LINENO"; then :
   4899   # Broken: success on invalid input.
   4900 continue
   4901 else
   4902   # Passes both tests.
   4903 ac_preproc_ok=:
   4904 break
   4905 fi
   4906 rm -f conftest.err conftest.i conftest.$ac_ext
   4907 
   4908 done
   4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4910 rm -f conftest.i conftest.err conftest.$ac_ext
   4911 if $ac_preproc_ok; then :
   4912   break
   4913 fi
   4914 
   4915     done
   4916     ac_cv_prog_CPP=$CPP
   4917 
   4918 fi
   4919   CPP=$ac_cv_prog_CPP
   4920 else
   4921   ac_cv_prog_CPP=$CPP
   4922 fi
   4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4924 $as_echo "$CPP" >&6; }
   4925 ac_preproc_ok=false
   4926 for ac_c_preproc_warn_flag in '' yes
   4927 do
   4928   # Use a header file that comes with gcc, so configuring glibc
   4929   # with a fresh cross-compiler works.
   4930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4931   # <limits.h> exists even on freestanding compilers.
   4932   # On the NeXT, cc -E runs the code through the compiler's parser,
   4933   # not just through cpp. "Syntax error" is here to catch this case.
   4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4935 /* end confdefs.h.  */
   4936 #ifdef __STDC__
   4937 # include <limits.h>
   4938 #else
   4939 # include <assert.h>
   4940 #endif
   4941 		     Syntax error
   4942 _ACEOF
   4943 if ac_fn_c_try_cpp "$LINENO"; then :
   4944 
   4945 else
   4946   # Broken: fails on valid input.
   4947 continue
   4948 fi
   4949 rm -f conftest.err conftest.i conftest.$ac_ext
   4950 
   4951   # OK, works on sane cases.  Now check whether nonexistent headers
   4952   # can be detected and how.
   4953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4954 /* end confdefs.h.  */
   4955 #include <ac_nonexistent.h>
   4956 _ACEOF
   4957 if ac_fn_c_try_cpp "$LINENO"; then :
   4958   # Broken: success on invalid input.
   4959 continue
   4960 else
   4961   # Passes both tests.
   4962 ac_preproc_ok=:
   4963 break
   4964 fi
   4965 rm -f conftest.err conftest.i conftest.$ac_ext
   4966 
   4967 done
   4968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4969 rm -f conftest.i conftest.err conftest.$ac_ext
   4970 if $ac_preproc_ok; then :
   4971 
   4972 else
   4973   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4975 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4976 See \`config.log' for more details" "$LINENO" 5; }
   4977 fi
   4978 
   4979 ac_ext=c
   4980 ac_cpp='$CPP $CPPFLAGS'
   4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4984 
   4985 
   4986 # Check whether --enable-cxx was given.
   4987 if test "${enable_cxx+set}" = set; then :
   4988   enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
   4989   enable_cxx="0"
   4990 else
   4991   enable_cxx="1"
   4992 fi
   4993 
   4994 else
   4995   enable_cxx="1"
   4996 
   4997 fi
   4998 
   4999 if test "x$enable_cxx" = "x1" ; then
   5000       # ===========================================================================
   5001 #  https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
   5002 # ===========================================================================
   5003 #
   5004 # SYNOPSIS
   5005 #
   5006 #   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
   5007 #
   5008 # DESCRIPTION
   5009 #
   5010 #   Check for baseline language coverage in the compiler for the specified
   5011 #   version of the C++ standard.  If necessary, add switches to CXX and
   5012 #   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
   5013 #   or '14' (for the C++14 standard).
   5014 #
   5015 #   The second argument, if specified, indicates whether you insist on an
   5016 #   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
   5017 #   -std=c++11).  If neither is specified, you get whatever works, with
   5018 #   preference for an extended mode.
   5019 #
   5020 #   The third argument, if specified 'mandatory' or if left unspecified,
   5021 #   indicates that baseline support for the specified C++ standard is
   5022 #   required and that the macro should error out if no mode with that
   5023 #   support is found.  If specified 'optional', then configuration proceeds
   5024 #   regardless, after defining HAVE_CXX${VERSION} if and only if a
   5025 #   supporting mode is found.
   5026 #
   5027 # LICENSE
   5028 #
   5029 #   Copyright (c) 2008 Benjamin Kosnik <bkoz (at] redhat.com>
   5030 #   Copyright (c) 2012 Zack Weinberg <zackw (at] panix.com>
   5031 #   Copyright (c) 2013 Roy Stogner <roystgnr (at] ices.utexas.edu>
   5032 #   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov (at] google.com>
   5033 #   Copyright (c) 2015 Paul Norman <penorman (at] mac.com>
   5034 #   Copyright (c) 2015 Moritz Klammler <moritz (at] klammler.eu>
   5035 #   Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz (at] gmail.com>
   5036 #   Copyright (c) 2019 Enji Cooper <yaneurabeya (at] gmail.com>
   5037 #
   5038 #   Copying and distribution of this file, with or without modification, are
   5039 #   permitted in any medium without royalty provided the copyright notice
   5040 #   and this notice are preserved.  This file is offered as-is, without any
   5041 #   warranty.
   5042 
   5043 #serial 11
   5044 
   5045 
   5046 
   5047 
   5048 
   5049 
   5050 
   5051 
   5052 
   5053 
   5054 
   5055 
   5056 
   5057 
   5058 
   5059 
   5060 
   5061 
   5062 
   5063 
   5064 
   5065 
   5066 
   5067 
   5068 
   5069   ac_ext=cpp
   5070 ac_cpp='$CXXCPP $CPPFLAGS'
   5071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5074 if test -z "$CXX"; then
   5075   if test -n "$CCC"; then
   5076     CXX=$CCC
   5077   else
   5078     if test -n "$ac_tool_prefix"; then
   5079   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5080   do
   5081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5084 $as_echo_n "checking for $ac_word... " >&6; }
   5085 if ${ac_cv_prog_CXX+:} false; then :
   5086   $as_echo_n "(cached) " >&6
   5087 else
   5088   if test -n "$CXX"; then
   5089   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   5090 else
   5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5092 for as_dir in $PATH
   5093 do
   5094   IFS=$as_save_IFS
   5095   test -z "$as_dir" && as_dir=.
   5096     for ac_exec_ext in '' $ac_executable_extensions; do
   5097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5098     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   5099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5100     break 2
   5101   fi
   5102 done
   5103   done
   5104 IFS=$as_save_IFS
   5105 
   5106 fi
   5107 fi
   5108 CXX=$ac_cv_prog_CXX
   5109 if test -n "$CXX"; then
   5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5111 $as_echo "$CXX" >&6; }
   5112 else
   5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5114 $as_echo "no" >&6; }
   5115 fi
   5116 
   5117 
   5118     test -n "$CXX" && break
   5119   done
   5120 fi
   5121 if test -z "$CXX"; then
   5122   ac_ct_CXX=$CXX
   5123   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   5124 do
   5125   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5126 set dummy $ac_prog; ac_word=$2
   5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5128 $as_echo_n "checking for $ac_word... " >&6; }
   5129 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   5130   $as_echo_n "(cached) " >&6
   5131 else
   5132   if test -n "$ac_ct_CXX"; then
   5133   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   5134 else
   5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5136 for as_dir in $PATH
   5137 do
   5138   IFS=$as_save_IFS
   5139   test -z "$as_dir" && as_dir=.
   5140     for ac_exec_ext in '' $ac_executable_extensions; do
   5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5142     ac_cv_prog_ac_ct_CXX="$ac_prog"
   5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5144     break 2
   5145   fi
   5146 done
   5147   done
   5148 IFS=$as_save_IFS
   5149 
   5150 fi
   5151 fi
   5152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   5153 if test -n "$ac_ct_CXX"; then
   5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   5155 $as_echo "$ac_ct_CXX" >&6; }
   5156 else
   5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5158 $as_echo "no" >&6; }
   5159 fi
   5160 
   5161 
   5162   test -n "$ac_ct_CXX" && break
   5163 done
   5164 
   5165   if test "x$ac_ct_CXX" = x; then
   5166     CXX="g++"
   5167   else
   5168     case $cross_compiling:$ac_tool_warned in
   5169 yes:)
   5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5172 ac_tool_warned=yes ;;
   5173 esac
   5174     CXX=$ac_ct_CXX
   5175   fi
   5176 fi
   5177 
   5178   fi
   5179 fi
   5180 # Provide some information about the compiler.
   5181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   5182 set X $ac_compile
   5183 ac_compiler=$2
   5184 for ac_option in --version -v -V -qversion; do
   5185   { { ac_try="$ac_compiler $ac_option >&5"
   5186 case "(($ac_try" in
   5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5188   *) ac_try_echo=$ac_try;;
   5189 esac
   5190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   5191 $as_echo "$ac_try_echo"; } >&5
   5192   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   5193   ac_status=$?
   5194   if test -s conftest.err; then
   5195     sed '10a\
   5196 ... rest of stderr output deleted ...
   5197          10q' conftest.err >conftest.er1
   5198     cat conftest.er1 >&5
   5199   fi
   5200   rm -f conftest.er1 conftest.err
   5201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5202   test $ac_status = 0; }
   5203 done
   5204 
   5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   5206 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   5207 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   5208   $as_echo_n "(cached) " >&6
   5209 else
   5210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5211 /* end confdefs.h.  */
   5212 
   5213 int
   5214 main ()
   5215 {
   5216 #ifndef __GNUC__
   5217        choke me
   5218 #endif
   5219 
   5220   ;
   5221   return 0;
   5222 }
   5223 _ACEOF
   5224 if ac_fn_cxx_try_compile "$LINENO"; then :
   5225   ac_compiler_gnu=yes
   5226 else
   5227   ac_compiler_gnu=no
   5228 fi
   5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   5231 
   5232 fi
   5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   5234 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   5235 if test $ac_compiler_gnu = yes; then
   5236   GXX=yes
   5237 else
   5238   GXX=
   5239 fi
   5240 ac_test_CXXFLAGS=${CXXFLAGS+set}
   5241 ac_save_CXXFLAGS=$CXXFLAGS
   5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   5243 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   5244 if ${ac_cv_prog_cxx_g+:} false; then :
   5245   $as_echo_n "(cached) " >&6
   5246 else
   5247   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   5248    ac_cxx_werror_flag=yes
   5249    ac_cv_prog_cxx_g=no
   5250    CXXFLAGS="-g"
   5251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5252 /* end confdefs.h.  */
   5253 
   5254 int
   5255 main ()
   5256 {
   5257 
   5258   ;
   5259   return 0;
   5260 }
   5261 _ACEOF
   5262 if ac_fn_cxx_try_compile "$LINENO"; then :
   5263   ac_cv_prog_cxx_g=yes
   5264 else
   5265   CXXFLAGS=""
   5266       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5267 /* end confdefs.h.  */
   5268 
   5269 int
   5270 main ()
   5271 {
   5272 
   5273   ;
   5274   return 0;
   5275 }
   5276 _ACEOF
   5277 if ac_fn_cxx_try_compile "$LINENO"; then :
   5278 
   5279 else
   5280   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5281 	 CXXFLAGS="-g"
   5282 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5283 /* end confdefs.h.  */
   5284 
   5285 int
   5286 main ()
   5287 {
   5288 
   5289   ;
   5290   return 0;
   5291 }
   5292 _ACEOF
   5293 if ac_fn_cxx_try_compile "$LINENO"; then :
   5294   ac_cv_prog_cxx_g=yes
   5295 fi
   5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5297 fi
   5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5299 fi
   5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5301    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   5302 fi
   5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   5304 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   5305 if test "$ac_test_CXXFLAGS" = set; then
   5306   CXXFLAGS=$ac_save_CXXFLAGS
   5307 elif test $ac_cv_prog_cxx_g = yes; then
   5308   if test "$GXX" = yes; then
   5309     CXXFLAGS="-g -O2"
   5310   else
   5311     CXXFLAGS="-g"
   5312   fi
   5313 else
   5314   if test "$GXX" = yes; then
   5315     CXXFLAGS="-O2"
   5316   else
   5317     CXXFLAGS=
   5318   fi
   5319 fi
   5320 ac_ext=cpp
   5321 ac_cpp='$CXXCPP $CPPFLAGS'
   5322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5325 
   5326 
   5327   ax_cxx_compile_alternatives="17 1z"    ax_cxx_compile_cxx17_required=false
   5328   ac_ext=cpp
   5329 ac_cpp='$CXXCPP $CPPFLAGS'
   5330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5333   ac_success=no
   5334 
   5335 
   5336 
   5337     if test x$ac_success = xno; then
   5338                 for alternative in ${ax_cxx_compile_alternatives}; do
   5339       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   5340         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
   5341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
   5342 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
   5343 if eval \${$cachevar+:} false; then :
   5344   $as_echo_n "(cached) " >&6
   5345 else
   5346   ac_save_CXX="$CXX"
   5347            CXX="$CXX $switch"
   5348            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5349 /* end confdefs.h.  */
   5350 
   5351 
   5352 // If the compiler admits that it is not ready for C++11, why torture it?
   5353 // Hopefully, this will speed up the test.
   5354 
   5355 #ifndef __cplusplus
   5356 
   5357 #error "This is not a C++ compiler"
   5358 
   5359 #elif __cplusplus < 201103L
   5360 
   5361 #error "This is not a C++11 compiler"
   5362 
   5363 #else
   5364 
   5365 namespace cxx11
   5366 {
   5367 
   5368   namespace test_static_assert
   5369   {
   5370 
   5371     template <typename T>
   5372     struct check
   5373     {
   5374       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5375     };
   5376 
   5377   }
   5378 
   5379   namespace test_final_override
   5380   {
   5381 
   5382     struct Base
   5383     {
   5384       virtual ~Base() {}
   5385       virtual void f() {}
   5386     };
   5387 
   5388     struct Derived : public Base
   5389     {
   5390       virtual ~Derived() override {}
   5391       virtual void f() override {}
   5392     };
   5393 
   5394   }
   5395 
   5396   namespace test_double_right_angle_brackets
   5397   {
   5398 
   5399     template < typename T >
   5400     struct check {};
   5401 
   5402     typedef check<void> single_type;
   5403     typedef check<check<void>> double_type;
   5404     typedef check<check<check<void>>> triple_type;
   5405     typedef check<check<check<check<void>>>> quadruple_type;
   5406 
   5407   }
   5408 
   5409   namespace test_decltype
   5410   {
   5411 
   5412     int
   5413     f()
   5414     {
   5415       int a = 1;
   5416       decltype(a) b = 2;
   5417       return a + b;
   5418     }
   5419 
   5420   }
   5421 
   5422   namespace test_type_deduction
   5423   {
   5424 
   5425     template < typename T1, typename T2 >
   5426     struct is_same
   5427     {
   5428       static const bool value = false;
   5429     };
   5430 
   5431     template < typename T >
   5432     struct is_same<T, T>
   5433     {
   5434       static const bool value = true;
   5435     };
   5436 
   5437     template < typename T1, typename T2 >
   5438     auto
   5439     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5440     {
   5441       return a1 + a2;
   5442     }
   5443 
   5444     int
   5445     test(const int c, volatile int v)
   5446     {
   5447       static_assert(is_same<int, decltype(0)>::value == true, "");
   5448       static_assert(is_same<int, decltype(c)>::value == false, "");
   5449       static_assert(is_same<int, decltype(v)>::value == false, "");
   5450       auto ac = c;
   5451       auto av = v;
   5452       auto sumi = ac + av + 'x';
   5453       auto sumf = ac + av + 1.0;
   5454       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5455       static_assert(is_same<int, decltype(av)>::value == true, "");
   5456       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5457       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5458       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5459       return (sumf > 0.0) ? sumi : add(c, v);
   5460     }
   5461 
   5462   }
   5463 
   5464   namespace test_noexcept
   5465   {
   5466 
   5467     int f() { return 0; }
   5468     int g() noexcept { return 0; }
   5469 
   5470     static_assert(noexcept(f()) == false, "");
   5471     static_assert(noexcept(g()) == true, "");
   5472 
   5473   }
   5474 
   5475   namespace test_constexpr
   5476   {
   5477 
   5478     template < typename CharT >
   5479     unsigned long constexpr
   5480     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5481     {
   5482       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5483     }
   5484 
   5485     template < typename CharT >
   5486     unsigned long constexpr
   5487     strlen_c(const CharT *const s) noexcept
   5488     {
   5489       return strlen_c_r(s, 0UL);
   5490     }
   5491 
   5492     static_assert(strlen_c("") == 0UL, "");
   5493     static_assert(strlen_c("1") == 1UL, "");
   5494     static_assert(strlen_c("example") == 7UL, "");
   5495     static_assert(strlen_c("another\0example") == 7UL, "");
   5496 
   5497   }
   5498 
   5499   namespace test_rvalue_references
   5500   {
   5501 
   5502     template < int N >
   5503     struct answer
   5504     {
   5505       static constexpr int value = N;
   5506     };
   5507 
   5508     answer<1> f(int&)       { return answer<1>(); }
   5509     answer<2> f(const int&) { return answer<2>(); }
   5510     answer<3> f(int&&)      { return answer<3>(); }
   5511 
   5512     void
   5513     test()
   5514     {
   5515       int i = 0;
   5516       const int c = 0;
   5517       static_assert(decltype(f(i))::value == 1, "");
   5518       static_assert(decltype(f(c))::value == 2, "");
   5519       static_assert(decltype(f(0))::value == 3, "");
   5520     }
   5521 
   5522   }
   5523 
   5524   namespace test_uniform_initialization
   5525   {
   5526 
   5527     struct test
   5528     {
   5529       static const int zero {};
   5530       static const int one {1};
   5531     };
   5532 
   5533     static_assert(test::zero == 0, "");
   5534     static_assert(test::one == 1, "");
   5535 
   5536   }
   5537 
   5538   namespace test_lambdas
   5539   {
   5540 
   5541     void
   5542     test1()
   5543     {
   5544       auto lambda1 = [](){};
   5545       auto lambda2 = lambda1;
   5546       lambda1();
   5547       lambda2();
   5548     }
   5549 
   5550     int
   5551     test2()
   5552     {
   5553       auto a = [](int i, int j){ return i + j; }(1, 2);
   5554       auto b = []() -> int { return '0'; }();
   5555       auto c = [=](){ return a + b; }();
   5556       auto d = [&](){ return c; }();
   5557       auto e = [a, &b](int x) mutable {
   5558         const auto identity = [](int y){ return y; };
   5559         for (auto i = 0; i < a; ++i)
   5560           a += b--;
   5561         return x + identity(a + b);
   5562       }(0);
   5563       return a + b + c + d + e;
   5564     }
   5565 
   5566     int
   5567     test3()
   5568     {
   5569       const auto nullary = [](){ return 0; };
   5570       const auto unary = [](int x){ return x; };
   5571       using nullary_t = decltype(nullary);
   5572       using unary_t = decltype(unary);
   5573       const auto higher1st = [](nullary_t f){ return f(); };
   5574       const auto higher2nd = [unary](nullary_t f1){
   5575         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5576       };
   5577       return higher1st(nullary) + higher2nd(nullary)(unary);
   5578     }
   5579 
   5580   }
   5581 
   5582   namespace test_variadic_templates
   5583   {
   5584 
   5585     template <int...>
   5586     struct sum;
   5587 
   5588     template <int N0, int... N1toN>
   5589     struct sum<N0, N1toN...>
   5590     {
   5591       static constexpr auto value = N0 + sum<N1toN...>::value;
   5592     };
   5593 
   5594     template <>
   5595     struct sum<>
   5596     {
   5597       static constexpr auto value = 0;
   5598     };
   5599 
   5600     static_assert(sum<>::value == 0, "");
   5601     static_assert(sum<1>::value == 1, "");
   5602     static_assert(sum<23>::value == 23, "");
   5603     static_assert(sum<1, 2>::value == 3, "");
   5604     static_assert(sum<5, 5, 11>::value == 21, "");
   5605     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5606 
   5607   }
   5608 
   5609   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5610   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5611   // because of this.
   5612   namespace test_template_alias_sfinae
   5613   {
   5614 
   5615     struct foo {};
   5616 
   5617     template<typename T>
   5618     using member = typename T::member_type;
   5619 
   5620     template<typename T>
   5621     void func(...) {}
   5622 
   5623     template<typename T>
   5624     void func(member<T>*) {}
   5625 
   5626     void test();
   5627 
   5628     void test() { func<foo>(0); }
   5629 
   5630   }
   5631 
   5632 }  // namespace cxx11
   5633 
   5634 #endif  // __cplusplus >= 201103L
   5635 
   5636 
   5637 
   5638 
   5639 // If the compiler admits that it is not ready for C++14, why torture it?
   5640 // Hopefully, this will speed up the test.
   5641 
   5642 #ifndef __cplusplus
   5643 
   5644 #error "This is not a C++ compiler"
   5645 
   5646 #elif __cplusplus < 201402L
   5647 
   5648 #error "This is not a C++14 compiler"
   5649 
   5650 #else
   5651 
   5652 namespace cxx14
   5653 {
   5654 
   5655   namespace test_polymorphic_lambdas
   5656   {
   5657 
   5658     int
   5659     test()
   5660     {
   5661       const auto lambda = [](auto&&... args){
   5662         const auto istiny = [](auto x){
   5663           return (sizeof(x) == 1UL) ? 1 : 0;
   5664         };
   5665         const int aretiny[] = { istiny(args)... };
   5666         return aretiny[0];
   5667       };
   5668       return lambda(1, 1L, 1.0f, '1');
   5669     }
   5670 
   5671   }
   5672 
   5673   namespace test_binary_literals
   5674   {
   5675 
   5676     constexpr auto ivii = 0b0000000000101010;
   5677     static_assert(ivii == 42, "wrong value");
   5678 
   5679   }
   5680 
   5681   namespace test_generalized_constexpr
   5682   {
   5683 
   5684     template < typename CharT >
   5685     constexpr unsigned long
   5686     strlen_c(const CharT *const s) noexcept
   5687     {
   5688       auto length = 0UL;
   5689       for (auto p = s; *p; ++p)
   5690         ++length;
   5691       return length;
   5692     }
   5693 
   5694     static_assert(strlen_c("") == 0UL, "");
   5695     static_assert(strlen_c("x") == 1UL, "");
   5696     static_assert(strlen_c("test") == 4UL, "");
   5697     static_assert(strlen_c("another\0test") == 7UL, "");
   5698 
   5699   }
   5700 
   5701   namespace test_lambda_init_capture
   5702   {
   5703 
   5704     int
   5705     test()
   5706     {
   5707       auto x = 0;
   5708       const auto lambda1 = [a = x](int b){ return a + b; };
   5709       const auto lambda2 = [a = lambda1(x)](){ return a; };
   5710       return lambda2();
   5711     }
   5712 
   5713   }
   5714 
   5715   namespace test_digit_separators
   5716   {
   5717 
   5718     constexpr auto ten_million = 100'000'000;
   5719     static_assert(ten_million == 100000000, "");
   5720 
   5721   }
   5722 
   5723   namespace test_return_type_deduction
   5724   {
   5725 
   5726     auto f(int& x) { return x; }
   5727     decltype(auto) g(int& x) { return x; }
   5728 
   5729     template < typename T1, typename T2 >
   5730     struct is_same
   5731     {
   5732       static constexpr auto value = false;
   5733     };
   5734 
   5735     template < typename T >
   5736     struct is_same<T, T>
   5737     {
   5738       static constexpr auto value = true;
   5739     };
   5740 
   5741     int
   5742     test()
   5743     {
   5744       auto x = 0;
   5745       static_assert(is_same<int, decltype(f(x))>::value, "");
   5746       static_assert(is_same<int&, decltype(g(x))>::value, "");
   5747       return x;
   5748     }
   5749 
   5750   }
   5751 
   5752 }  // namespace cxx14
   5753 
   5754 #endif  // __cplusplus >= 201402L
   5755 
   5756 
   5757 
   5758 
   5759 // If the compiler admits that it is not ready for C++17, why torture it?
   5760 // Hopefully, this will speed up the test.
   5761 
   5762 #ifndef __cplusplus
   5763 
   5764 #error "This is not a C++ compiler"
   5765 
   5766 #elif __cplusplus < 201703L
   5767 
   5768 #error "This is not a C++17 compiler"
   5769 
   5770 #else
   5771 
   5772 #include <initializer_list>
   5773 #include <utility>
   5774 #include <type_traits>
   5775 
   5776 namespace cxx17
   5777 {
   5778 
   5779   namespace test_constexpr_lambdas
   5780   {
   5781 
   5782     constexpr int foo = [](){return 42;}();
   5783 
   5784   }
   5785 
   5786   namespace test::nested_namespace::definitions
   5787   {
   5788 
   5789   }
   5790 
   5791   namespace test_fold_expression
   5792   {
   5793 
   5794     template<typename... Args>
   5795     int multiply(Args... args)
   5796     {
   5797       return (args * ... * 1);
   5798     }
   5799 
   5800     template<typename... Args>
   5801     bool all(Args... args)
   5802     {
   5803       return (args && ...);
   5804     }
   5805 
   5806   }
   5807 
   5808   namespace test_extended_static_assert
   5809   {
   5810 
   5811     static_assert (true);
   5812 
   5813   }
   5814 
   5815   namespace test_auto_brace_init_list
   5816   {
   5817 
   5818     auto foo = {5};
   5819     auto bar {5};
   5820 
   5821     static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
   5822     static_assert(std::is_same<int, decltype(bar)>::value);
   5823   }
   5824 
   5825   namespace test_typename_in_template_template_parameter
   5826   {
   5827 
   5828     template<template<typename> typename X> struct D;
   5829 
   5830   }
   5831 
   5832   namespace test_fallthrough_nodiscard_maybe_unused_attributes
   5833   {
   5834 
   5835     int f1()
   5836     {
   5837       return 42;
   5838     }
   5839 
   5840     [[nodiscard]] int f2()
   5841     {
   5842       [[maybe_unused]] auto unused = f1();
   5843 
   5844       switch (f1())
   5845       {
   5846       case 17:
   5847         f1();
   5848         [[fallthrough]];
   5849       case 42:
   5850         f1();
   5851       }
   5852       return f1();
   5853     }
   5854 
   5855   }
   5856 
   5857   namespace test_extended_aggregate_initialization
   5858   {
   5859 
   5860     struct base1
   5861     {
   5862       int b1, b2 = 42;
   5863     };
   5864 
   5865     struct base2
   5866     {
   5867       base2() {
   5868         b3 = 42;
   5869       }
   5870       int b3;
   5871     };
   5872 
   5873     struct derived : base1, base2
   5874     {
   5875         int d;
   5876     };
   5877 
   5878     derived d1 {{1, 2}, {}, 4};  // full initialization
   5879     derived d2 {{}, {}, 4};      // value-initialized bases
   5880 
   5881   }
   5882 
   5883   namespace test_general_range_based_for_loop
   5884   {
   5885 
   5886     struct iter
   5887     {
   5888       int i;
   5889 
   5890       int& operator* ()
   5891       {
   5892         return i;
   5893       }
   5894 
   5895       const int& operator* () const
   5896       {
   5897         return i;
   5898       }
   5899 
   5900       iter& operator++()
   5901       {
   5902         ++i;
   5903         return *this;
   5904       }
   5905     };
   5906 
   5907     struct sentinel
   5908     {
   5909       int i;
   5910     };
   5911 
   5912     bool operator== (const iter& i, const sentinel& s)
   5913     {
   5914       return i.i == s.i;
   5915     }
   5916 
   5917     bool operator!= (const iter& i, const sentinel& s)
   5918     {
   5919       return !(i == s);
   5920     }
   5921 
   5922     struct range
   5923     {
   5924       iter begin() const
   5925       {
   5926         return {0};
   5927       }
   5928 
   5929       sentinel end() const
   5930       {
   5931         return {5};
   5932       }
   5933     };
   5934 
   5935     void f()
   5936     {
   5937       range r {};
   5938 
   5939       for (auto i : r)
   5940       {
   5941         [[maybe_unused]] auto v = i;
   5942       }
   5943     }
   5944 
   5945   }
   5946 
   5947   namespace test_lambda_capture_asterisk_this_by_value
   5948   {
   5949 
   5950     struct t
   5951     {
   5952       int i;
   5953       int foo()
   5954       {
   5955         return [*this]()
   5956         {
   5957           return i;
   5958         }();
   5959       }
   5960     };
   5961 
   5962   }
   5963 
   5964   namespace test_enum_class_construction
   5965   {
   5966 
   5967     enum class byte : unsigned char
   5968     {};
   5969 
   5970     byte foo {42};
   5971 
   5972   }
   5973 
   5974   namespace test_constexpr_if
   5975   {
   5976 
   5977     template <bool cond>
   5978     int f ()
   5979     {
   5980       if constexpr(cond)
   5981       {
   5982         return 13;
   5983       }
   5984       else
   5985       {
   5986         return 42;
   5987       }
   5988     }
   5989 
   5990   }
   5991 
   5992   namespace test_selection_statement_with_initializer
   5993   {
   5994 
   5995     int f()
   5996     {
   5997       return 13;
   5998     }
   5999 
   6000     int f2()
   6001     {
   6002       if (auto i = f(); i > 0)
   6003       {
   6004         return 3;
   6005       }
   6006 
   6007       switch (auto i = f(); i + 4)
   6008       {
   6009       case 17:
   6010         return 2;
   6011 
   6012       default:
   6013         return 1;
   6014       }
   6015     }
   6016 
   6017   }
   6018 
   6019   namespace test_template_argument_deduction_for_class_templates
   6020   {
   6021 
   6022     template <typename T1, typename T2>
   6023     struct pair
   6024     {
   6025       pair (T1 p1, T2 p2)
   6026         : m1 {p1},
   6027           m2 {p2}
   6028       {}
   6029 
   6030       T1 m1;
   6031       T2 m2;
   6032     };
   6033 
   6034     void f()
   6035     {
   6036       [[maybe_unused]] auto p = pair{13, 42u};
   6037     }
   6038 
   6039   }
   6040 
   6041   namespace test_non_type_auto_template_parameters
   6042   {
   6043 
   6044     template <auto n>
   6045     struct B
   6046     {};
   6047 
   6048     B<5> b1;
   6049     B<'a'> b2;
   6050 
   6051   }
   6052 
   6053   namespace test_structured_bindings
   6054   {
   6055 
   6056     int arr[2] = { 1, 2 };
   6057     std::pair<int, int> pr = { 1, 2 };
   6058 
   6059     auto f1() -> int(&)[2]
   6060     {
   6061       return arr;
   6062     }
   6063 
   6064     auto f2() -> std::pair<int, int>&
   6065     {
   6066       return pr;
   6067     }
   6068 
   6069     struct S
   6070     {
   6071       int x1 : 2;
   6072       volatile double y1;
   6073     };
   6074 
   6075     S f3()
   6076     {
   6077       return {};
   6078     }
   6079 
   6080     auto [ x1, y1 ] = f1();
   6081     auto& [ xr1, yr1 ] = f1();
   6082     auto [ x2, y2 ] = f2();
   6083     auto& [ xr2, yr2 ] = f2();
   6084     const auto [ x3, y3 ] = f3();
   6085 
   6086   }
   6087 
   6088   namespace test_exception_spec_type_system
   6089   {
   6090 
   6091     struct Good {};
   6092     struct Bad {};
   6093 
   6094     void g1() noexcept;
   6095     void g2();
   6096 
   6097     template<typename T>
   6098     Bad
   6099     f(T*, T*);
   6100 
   6101     template<typename T1, typename T2>
   6102     Good
   6103     f(T1*, T2*);
   6104 
   6105     static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
   6106 
   6107   }
   6108 
   6109   namespace test_inline_variables
   6110   {
   6111 
   6112     template<class T> void f(T)
   6113     {}
   6114 
   6115     template<class T> inline T g(T)
   6116     {
   6117       return T{};
   6118     }
   6119 
   6120     template<> inline void f<>(int)
   6121     {}
   6122 
   6123     template<> int g<>(int)
   6124     {
   6125       return 5;
   6126     }
   6127 
   6128   }
   6129 
   6130 }  // namespace cxx17
   6131 
   6132 #endif  // __cplusplus < 201703L
   6133 
   6134 
   6135 
   6136 _ACEOF
   6137 if ac_fn_cxx_try_compile "$LINENO"; then :
   6138   eval $cachevar=yes
   6139 else
   6140   eval $cachevar=no
   6141 fi
   6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6143            CXX="$ac_save_CXX"
   6144 fi
   6145 eval ac_res=\$$cachevar
   6146 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6147 $as_echo "$ac_res" >&6; }
   6148         if eval test x\$$cachevar = xyes; then
   6149           CXX="$CXX $switch"
   6150           if test -n "$CXXCPP" ; then
   6151             CXXCPP="$CXXCPP $switch"
   6152           fi
   6153           ac_success=yes
   6154           break
   6155         fi
   6156       done
   6157       if test x$ac_success = xyes; then
   6158         break
   6159       fi
   6160     done
   6161   fi
   6162   ac_ext=c
   6163 ac_cpp='$CPP $CPPFLAGS'
   6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6167 
   6168   if test x$ax_cxx_compile_cxx17_required = xtrue; then
   6169     if test x$ac_success = xno; then
   6170       as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
   6171     fi
   6172   fi
   6173   if test x$ac_success = xno; then
   6174     HAVE_CXX17=0
   6175     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
   6176 $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
   6177   else
   6178     HAVE_CXX17=1
   6179 
   6180 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
   6181 
   6182   fi
   6183 
   6184 
   6185   if test "x${HAVE_CXX17}" != "x1"; then
   6186       ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=false
   6187   ac_ext=cpp
   6188 ac_cpp='$CXXCPP $CPPFLAGS'
   6189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6192   ac_success=no
   6193 
   6194 
   6195 
   6196     if test x$ac_success = xno; then
   6197                 for alternative in ${ax_cxx_compile_alternatives}; do
   6198       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   6199         cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   6200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   6201 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   6202 if eval \${$cachevar+:} false; then :
   6203   $as_echo_n "(cached) " >&6
   6204 else
   6205   ac_save_CXX="$CXX"
   6206            CXX="$CXX $switch"
   6207            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6208 /* end confdefs.h.  */
   6209 
   6210 
   6211 // If the compiler admits that it is not ready for C++11, why torture it?
   6212 // Hopefully, this will speed up the test.
   6213 
   6214 #ifndef __cplusplus
   6215 
   6216 #error "This is not a C++ compiler"
   6217 
   6218 #elif __cplusplus < 201103L
   6219 
   6220 #error "This is not a C++11 compiler"
   6221 
   6222 #else
   6223 
   6224 namespace cxx11
   6225 {
   6226 
   6227   namespace test_static_assert
   6228   {
   6229 
   6230     template <typename T>
   6231     struct check
   6232     {
   6233       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6234     };
   6235 
   6236   }
   6237 
   6238   namespace test_final_override
   6239   {
   6240 
   6241     struct Base
   6242     {
   6243       virtual ~Base() {}
   6244       virtual void f() {}
   6245     };
   6246 
   6247     struct Derived : public Base
   6248     {
   6249       virtual ~Derived() override {}
   6250       virtual void f() override {}
   6251     };
   6252 
   6253   }
   6254 
   6255   namespace test_double_right_angle_brackets
   6256   {
   6257 
   6258     template < typename T >
   6259     struct check {};
   6260 
   6261     typedef check<void> single_type;
   6262     typedef check<check<void>> double_type;
   6263     typedef check<check<check<void>>> triple_type;
   6264     typedef check<check<check<check<void>>>> quadruple_type;
   6265 
   6266   }
   6267 
   6268   namespace test_decltype
   6269   {
   6270 
   6271     int
   6272     f()
   6273     {
   6274       int a = 1;
   6275       decltype(a) b = 2;
   6276       return a + b;
   6277     }
   6278 
   6279   }
   6280 
   6281   namespace test_type_deduction
   6282   {
   6283 
   6284     template < typename T1, typename T2 >
   6285     struct is_same
   6286     {
   6287       static const bool value = false;
   6288     };
   6289 
   6290     template < typename T >
   6291     struct is_same<T, T>
   6292     {
   6293       static const bool value = true;
   6294     };
   6295 
   6296     template < typename T1, typename T2 >
   6297     auto
   6298     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6299     {
   6300       return a1 + a2;
   6301     }
   6302 
   6303     int
   6304     test(const int c, volatile int v)
   6305     {
   6306       static_assert(is_same<int, decltype(0)>::value == true, "");
   6307       static_assert(is_same<int, decltype(c)>::value == false, "");
   6308       static_assert(is_same<int, decltype(v)>::value == false, "");
   6309       auto ac = c;
   6310       auto av = v;
   6311       auto sumi = ac + av + 'x';
   6312       auto sumf = ac + av + 1.0;
   6313       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6314       static_assert(is_same<int, decltype(av)>::value == true, "");
   6315       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6316       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6317       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6318       return (sumf > 0.0) ? sumi : add(c, v);
   6319     }
   6320 
   6321   }
   6322 
   6323   namespace test_noexcept
   6324   {
   6325 
   6326     int f() { return 0; }
   6327     int g() noexcept { return 0; }
   6328 
   6329     static_assert(noexcept(f()) == false, "");
   6330     static_assert(noexcept(g()) == true, "");
   6331 
   6332   }
   6333 
   6334   namespace test_constexpr
   6335   {
   6336 
   6337     template < typename CharT >
   6338     unsigned long constexpr
   6339     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6340     {
   6341       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6342     }
   6343 
   6344     template < typename CharT >
   6345     unsigned long constexpr
   6346     strlen_c(const CharT *const s) noexcept
   6347     {
   6348       return strlen_c_r(s, 0UL);
   6349     }
   6350 
   6351     static_assert(strlen_c("") == 0UL, "");
   6352     static_assert(strlen_c("1") == 1UL, "");
   6353     static_assert(strlen_c("example") == 7UL, "");
   6354     static_assert(strlen_c("another\0example") == 7UL, "");
   6355 
   6356   }
   6357 
   6358   namespace test_rvalue_references
   6359   {
   6360 
   6361     template < int N >
   6362     struct answer
   6363     {
   6364       static constexpr int value = N;
   6365     };
   6366 
   6367     answer<1> f(int&)       { return answer<1>(); }
   6368     answer<2> f(const int&) { return answer<2>(); }
   6369     answer<3> f(int&&)      { return answer<3>(); }
   6370 
   6371     void
   6372     test()
   6373     {
   6374       int i = 0;
   6375       const int c = 0;
   6376       static_assert(decltype(f(i))::value == 1, "");
   6377       static_assert(decltype(f(c))::value == 2, "");
   6378       static_assert(decltype(f(0))::value == 3, "");
   6379     }
   6380 
   6381   }
   6382 
   6383   namespace test_uniform_initialization
   6384   {
   6385 
   6386     struct test
   6387     {
   6388       static const int zero {};
   6389       static const int one {1};
   6390     };
   6391 
   6392     static_assert(test::zero == 0, "");
   6393     static_assert(test::one == 1, "");
   6394 
   6395   }
   6396 
   6397   namespace test_lambdas
   6398   {
   6399 
   6400     void
   6401     test1()
   6402     {
   6403       auto lambda1 = [](){};
   6404       auto lambda2 = lambda1;
   6405       lambda1();
   6406       lambda2();
   6407     }
   6408 
   6409     int
   6410     test2()
   6411     {
   6412       auto a = [](int i, int j){ return i + j; }(1, 2);
   6413       auto b = []() -> int { return '0'; }();
   6414       auto c = [=](){ return a + b; }();
   6415       auto d = [&](){ return c; }();
   6416       auto e = [a, &b](int x) mutable {
   6417         const auto identity = [](int y){ return y; };
   6418         for (auto i = 0; i < a; ++i)
   6419           a += b--;
   6420         return x + identity(a + b);
   6421       }(0);
   6422       return a + b + c + d + e;
   6423     }
   6424 
   6425     int
   6426     test3()
   6427     {
   6428       const auto nullary = [](){ return 0; };
   6429       const auto unary = [](int x){ return x; };
   6430       using nullary_t = decltype(nullary);
   6431       using unary_t = decltype(unary);
   6432       const auto higher1st = [](nullary_t f){ return f(); };
   6433       const auto higher2nd = [unary](nullary_t f1){
   6434         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6435       };
   6436       return higher1st(nullary) + higher2nd(nullary)(unary);
   6437     }
   6438 
   6439   }
   6440 
   6441   namespace test_variadic_templates
   6442   {
   6443 
   6444     template <int...>
   6445     struct sum;
   6446 
   6447     template <int N0, int... N1toN>
   6448     struct sum<N0, N1toN...>
   6449     {
   6450       static constexpr auto value = N0 + sum<N1toN...>::value;
   6451     };
   6452 
   6453     template <>
   6454     struct sum<>
   6455     {
   6456       static constexpr auto value = 0;
   6457     };
   6458 
   6459     static_assert(sum<>::value == 0, "");
   6460     static_assert(sum<1>::value == 1, "");
   6461     static_assert(sum<23>::value == 23, "");
   6462     static_assert(sum<1, 2>::value == 3, "");
   6463     static_assert(sum<5, 5, 11>::value == 21, "");
   6464     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6465 
   6466   }
   6467 
   6468   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6469   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6470   // because of this.
   6471   namespace test_template_alias_sfinae
   6472   {
   6473 
   6474     struct foo {};
   6475 
   6476     template<typename T>
   6477     using member = typename T::member_type;
   6478 
   6479     template<typename T>
   6480     void func(...) {}
   6481 
   6482     template<typename T>
   6483     void func(member<T>*) {}
   6484 
   6485     void test();
   6486 
   6487     void test() { func<foo>(0); }
   6488 
   6489   }
   6490 
   6491 }  // namespace cxx11
   6492 
   6493 #endif  // __cplusplus >= 201103L
   6494 
   6495 
   6496 
   6497 
   6498 // If the compiler admits that it is not ready for C++14, why torture it?
   6499 // Hopefully, this will speed up the test.
   6500 
   6501 #ifndef __cplusplus
   6502 
   6503 #error "This is not a C++ compiler"
   6504 
   6505 #elif __cplusplus < 201402L
   6506 
   6507 #error "This is not a C++14 compiler"
   6508 
   6509 #else
   6510 
   6511 namespace cxx14
   6512 {
   6513 
   6514   namespace test_polymorphic_lambdas
   6515   {
   6516 
   6517     int
   6518     test()
   6519     {
   6520       const auto lambda = [](auto&&... args){
   6521         const auto istiny = [](auto x){
   6522           return (sizeof(x) == 1UL) ? 1 : 0;
   6523         };
   6524         const int aretiny[] = { istiny(args)... };
   6525         return aretiny[0];
   6526       };
   6527       return lambda(1, 1L, 1.0f, '1');
   6528     }
   6529 
   6530   }
   6531 
   6532   namespace test_binary_literals
   6533   {
   6534 
   6535     constexpr auto ivii = 0b0000000000101010;
   6536     static_assert(ivii == 42, "wrong value");
   6537 
   6538   }
   6539 
   6540   namespace test_generalized_constexpr
   6541   {
   6542 
   6543     template < typename CharT >
   6544     constexpr unsigned long
   6545     strlen_c(const CharT *const s) noexcept
   6546     {
   6547       auto length = 0UL;
   6548       for (auto p = s; *p; ++p)
   6549         ++length;
   6550       return length;
   6551     }
   6552 
   6553     static_assert(strlen_c("") == 0UL, "");
   6554     static_assert(strlen_c("x") == 1UL, "");
   6555     static_assert(strlen_c("test") == 4UL, "");
   6556     static_assert(strlen_c("another\0test") == 7UL, "");
   6557 
   6558   }
   6559 
   6560   namespace test_lambda_init_capture
   6561   {
   6562 
   6563     int
   6564     test()
   6565     {
   6566       auto x = 0;
   6567       const auto lambda1 = [a = x](int b){ return a + b; };
   6568       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6569       return lambda2();
   6570     }
   6571 
   6572   }
   6573 
   6574   namespace test_digit_separators
   6575   {
   6576 
   6577     constexpr auto ten_million = 100'000'000;
   6578     static_assert(ten_million == 100000000, "");
   6579 
   6580   }
   6581 
   6582   namespace test_return_type_deduction
   6583   {
   6584 
   6585     auto f(int& x) { return x; }
   6586     decltype(auto) g(int& x) { return x; }
   6587 
   6588     template < typename T1, typename T2 >
   6589     struct is_same
   6590     {
   6591       static constexpr auto value = false;
   6592     };
   6593 
   6594     template < typename T >
   6595     struct is_same<T, T>
   6596     {
   6597       static constexpr auto value = true;
   6598     };
   6599 
   6600     int
   6601     test()
   6602     {
   6603       auto x = 0;
   6604       static_assert(is_same<int, decltype(f(x))>::value, "");
   6605       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6606       return x;
   6607     }
   6608 
   6609   }
   6610 
   6611 }  // namespace cxx14
   6612 
   6613 #endif  // __cplusplus >= 201402L
   6614 
   6615 
   6616 
   6617 _ACEOF
   6618 if ac_fn_cxx_try_compile "$LINENO"; then :
   6619   eval $cachevar=yes
   6620 else
   6621   eval $cachevar=no
   6622 fi
   6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6624            CXX="$ac_save_CXX"
   6625 fi
   6626 eval ac_res=\$$cachevar
   6627 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6628 $as_echo "$ac_res" >&6; }
   6629         if eval test x\$$cachevar = xyes; then
   6630           CXX="$CXX $switch"
   6631           if test -n "$CXXCPP" ; then
   6632             CXXCPP="$CXXCPP $switch"
   6633           fi
   6634           ac_success=yes
   6635           break
   6636         fi
   6637       done
   6638       if test x$ac_success = xyes; then
   6639         break
   6640       fi
   6641     done
   6642   fi
   6643   ac_ext=c
   6644 ac_cpp='$CPP $CPPFLAGS'
   6645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6648 
   6649   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   6650     if test x$ac_success = xno; then
   6651       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   6652     fi
   6653   fi
   6654   if test x$ac_success = xno; then
   6655     HAVE_CXX14=0
   6656     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   6657 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   6658   else
   6659     HAVE_CXX14=1
   6660 
   6661 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
   6662 
   6663   fi
   6664 
   6665 
   6666   fi
   6667   if test "x${HAVE_CXX14}" = "x1" -o "x${HAVE_CXX17}" = "x1"; then
   6668 
   6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
   6670 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
   6671 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   6672 T_APPEND_V=-Wall
   6673   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6674   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   6675 else
   6676   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   6677 fi
   6678 
   6679 
   6680 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6681   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6682 else
   6683   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6684 fi
   6685 
   6686 ac_ext=cpp
   6687 ac_cpp='$CXXCPP $CPPFLAGS'
   6688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6691 
   6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6693 /* end confdefs.h.  */
   6694 
   6695 
   6696 int
   6697 main ()
   6698 {
   6699 
   6700     return 0;
   6701 
   6702   ;
   6703   return 0;
   6704 }
   6705 _ACEOF
   6706 if ac_fn_cxx_try_compile "$LINENO"; then :
   6707   je_cv_cxxflags_added=-Wall
   6708               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6709 $as_echo "yes" >&6; }
   6710 else
   6711   je_cv_cxxflags_added=
   6712               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6713 $as_echo "no" >&6; }
   6714               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   6715 
   6716 fi
   6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6718 ac_ext=c
   6719 ac_cpp='$CPP $CPPFLAGS'
   6720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6723 
   6724 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6725   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6726 else
   6727   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6728 fi
   6729 
   6730 
   6731 
   6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
   6733 $as_echo_n "checking whether compiler supports -Wextra... " >&6; }
   6734 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   6735 T_APPEND_V=-Wextra
   6736   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6737   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   6738 else
   6739   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   6740 fi
   6741 
   6742 
   6743 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6744   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6745 else
   6746   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6747 fi
   6748 
   6749 ac_ext=cpp
   6750 ac_cpp='$CXXCPP $CPPFLAGS'
   6751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6754 
   6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6756 /* end confdefs.h.  */
   6757 
   6758 
   6759 int
   6760 main ()
   6761 {
   6762 
   6763     return 0;
   6764 
   6765   ;
   6766   return 0;
   6767 }
   6768 _ACEOF
   6769 if ac_fn_cxx_try_compile "$LINENO"; then :
   6770   je_cv_cxxflags_added=-Wextra
   6771               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6772 $as_echo "yes" >&6; }
   6773 else
   6774   je_cv_cxxflags_added=
   6775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6776 $as_echo "no" >&6; }
   6777               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   6778 
   6779 fi
   6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6781 ac_ext=c
   6782 ac_cpp='$CPP $CPPFLAGS'
   6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6786 
   6787 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6788   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6789 else
   6790   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6791 fi
   6792 
   6793 
   6794 
   6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
   6796 $as_echo_n "checking whether compiler supports -g3... " >&6; }
   6797 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   6798 T_APPEND_V=-g3
   6799   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6800   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   6801 else
   6802   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   6803 fi
   6804 
   6805 
   6806 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6807   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6808 else
   6809   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6810 fi
   6811 
   6812 ac_ext=cpp
   6813 ac_cpp='$CXXCPP $CPPFLAGS'
   6814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6817 
   6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6819 /* end confdefs.h.  */
   6820 
   6821 
   6822 int
   6823 main ()
   6824 {
   6825 
   6826     return 0;
   6827 
   6828   ;
   6829   return 0;
   6830 }
   6831 _ACEOF
   6832 if ac_fn_cxx_try_compile "$LINENO"; then :
   6833   je_cv_cxxflags_added=-g3
   6834               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6835 $as_echo "yes" >&6; }
   6836 else
   6837   je_cv_cxxflags_added=
   6838               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6839 $as_echo "no" >&6; }
   6840               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   6841 
   6842 fi
   6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6844 ac_ext=c
   6845 ac_cpp='$CPP $CPPFLAGS'
   6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6849 
   6850 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6851   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6852 else
   6853   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6854 fi
   6855 
   6856 
   6857 
   6858     SAVED_LIBS="${LIBS}"
   6859     T_APPEND_V=-lstdc++
   6860   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6861   LIBS="${LIBS}${T_APPEND_V}"
   6862 else
   6863   LIBS="${LIBS} ${T_APPEND_V}"
   6864 fi
   6865 
   6866 
   6867 
   6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
   6869 $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
   6870 if ${je_cv_libstdcxx+:} false; then :
   6871   $as_echo_n "(cached) " >&6
   6872 else
   6873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6874 /* end confdefs.h.  */
   6875 
   6876 #include <stdlib.h>
   6877 
   6878 int
   6879 main ()
   6880 {
   6881 
   6882 	int *arr = (int *)malloc(sizeof(int) * 42);
   6883 	if (arr == NULL)
   6884 		return 1;
   6885 
   6886   ;
   6887   return 0;
   6888 }
   6889 _ACEOF
   6890 if ac_fn_c_try_link "$LINENO"; then :
   6891   je_cv_libstdcxx=yes
   6892 else
   6893   je_cv_libstdcxx=no
   6894 fi
   6895 rm -f core conftest.err conftest.$ac_objext \
   6896     conftest$ac_exeext conftest.$ac_ext
   6897 fi
   6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
   6899 $as_echo "$je_cv_libstdcxx" >&6; }
   6900 
   6901     if test "x${je_cv_libstdcxx}" = "xno" ; then
   6902       LIBS="${SAVED_LIBS}"
   6903     fi
   6904   else
   6905     enable_cxx="0"
   6906   fi
   6907 fi
   6908 if test "x$enable_cxx" = "x1"; then
   6909 
   6910 $as_echo "#define JEMALLOC_ENABLE_CXX  " >>confdefs.h
   6911 
   6912 fi
   6913 
   6914 
   6915 
   6916 
   6917 
   6918 
   6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   6920 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   6921 if ${ac_cv_path_GREP+:} false; then :
   6922   $as_echo_n "(cached) " >&6
   6923 else
   6924   if test -z "$GREP"; then
   6925   ac_path_GREP_found=false
   6926   # Loop through the user's path and test for each of PROGNAME-LIST
   6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6929 do
   6930   IFS=$as_save_IFS
   6931   test -z "$as_dir" && as_dir=.
   6932     for ac_prog in grep ggrep; do
   6933     for ac_exec_ext in '' $ac_executable_extensions; do
   6934       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   6935       as_fn_executable_p "$ac_path_GREP" || continue
   6936 # Check for GNU ac_path_GREP and select it if it is found.
   6937   # Check for GNU $ac_path_GREP
   6938 case `"$ac_path_GREP" --version 2>&1` in
   6939 *GNU*)
   6940   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   6941 *)
   6942   ac_count=0
   6943   $as_echo_n 0123456789 >"conftest.in"
   6944   while :
   6945   do
   6946     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6947     mv "conftest.tmp" "conftest.in"
   6948     cp "conftest.in" "conftest.nl"
   6949     $as_echo 'GREP' >> "conftest.nl"
   6950     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6952     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6953     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   6954       # Best one so far, save it but keep looking for a better one
   6955       ac_cv_path_GREP="$ac_path_GREP"
   6956       ac_path_GREP_max=$ac_count
   6957     fi
   6958     # 10*(2^10) chars as input seems more than enough
   6959     test $ac_count -gt 10 && break
   6960   done
   6961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6962 esac
   6963 
   6964       $ac_path_GREP_found && break 3
   6965     done
   6966   done
   6967   done
   6968 IFS=$as_save_IFS
   6969   if test -z "$ac_cv_path_GREP"; then
   6970     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6971   fi
   6972 else
   6973   ac_cv_path_GREP=$GREP
   6974 fi
   6975 
   6976 fi
   6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   6978 $as_echo "$ac_cv_path_GREP" >&6; }
   6979  GREP="$ac_cv_path_GREP"
   6980 
   6981 
   6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   6983 $as_echo_n "checking for egrep... " >&6; }
   6984 if ${ac_cv_path_EGREP+:} false; then :
   6985   $as_echo_n "(cached) " >&6
   6986 else
   6987   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   6988    then ac_cv_path_EGREP="$GREP -E"
   6989    else
   6990      if test -z "$EGREP"; then
   6991   ac_path_EGREP_found=false
   6992   # Loop through the user's path and test for each of PROGNAME-LIST
   6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6995 do
   6996   IFS=$as_save_IFS
   6997   test -z "$as_dir" && as_dir=.
   6998     for ac_prog in egrep; do
   6999     for ac_exec_ext in '' $ac_executable_extensions; do
   7000       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   7001       as_fn_executable_p "$ac_path_EGREP" || continue
   7002 # Check for GNU ac_path_EGREP and select it if it is found.
   7003   # Check for GNU $ac_path_EGREP
   7004 case `"$ac_path_EGREP" --version 2>&1` in
   7005 *GNU*)
   7006   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   7007 *)
   7008   ac_count=0
   7009   $as_echo_n 0123456789 >"conftest.in"
   7010   while :
   7011   do
   7012     cat "conftest.in" "conftest.in" >"conftest.tmp"
   7013     mv "conftest.tmp" "conftest.in"
   7014     cp "conftest.in" "conftest.nl"
   7015     $as_echo 'EGREP' >> "conftest.nl"
   7016     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   7017     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   7018     as_fn_arith $ac_count + 1 && ac_count=$as_val
   7019     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   7020       # Best one so far, save it but keep looking for a better one
   7021       ac_cv_path_EGREP="$ac_path_EGREP"
   7022       ac_path_EGREP_max=$ac_count
   7023     fi
   7024     # 10*(2^10) chars as input seems more than enough
   7025     test $ac_count -gt 10 && break
   7026   done
   7027   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   7028 esac
   7029 
   7030       $ac_path_EGREP_found && break 3
   7031     done
   7032   done
   7033   done
   7034 IFS=$as_save_IFS
   7035   if test -z "$ac_cv_path_EGREP"; then
   7036     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   7037   fi
   7038 else
   7039   ac_cv_path_EGREP=$EGREP
   7040 fi
   7041 
   7042    fi
   7043 fi
   7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   7045 $as_echo "$ac_cv_path_EGREP" >&6; }
   7046  EGREP="$ac_cv_path_EGREP"
   7047 
   7048 
   7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   7050 $as_echo_n "checking for ANSI C header files... " >&6; }
   7051 if ${ac_cv_header_stdc+:} false; then :
   7052   $as_echo_n "(cached) " >&6
   7053 else
   7054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7055 /* end confdefs.h.  */
   7056 #include <stdlib.h>
   7057 #include <stdarg.h>
   7058 #include <string.h>
   7059 #include <float.h>
   7060 
   7061 int
   7062 main ()
   7063 {
   7064 
   7065   ;
   7066   return 0;
   7067 }
   7068 _ACEOF
   7069 if ac_fn_c_try_compile "$LINENO"; then :
   7070   ac_cv_header_stdc=yes
   7071 else
   7072   ac_cv_header_stdc=no
   7073 fi
   7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7075 
   7076 if test $ac_cv_header_stdc = yes; then
   7077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   7078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7079 /* end confdefs.h.  */
   7080 #include <string.h>
   7081 
   7082 _ACEOF
   7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7084   $EGREP "memchr" >/dev/null 2>&1; then :
   7085 
   7086 else
   7087   ac_cv_header_stdc=no
   7088 fi
   7089 rm -f conftest*
   7090 
   7091 fi
   7092 
   7093 if test $ac_cv_header_stdc = yes; then
   7094   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7096 /* end confdefs.h.  */
   7097 #include <stdlib.h>
   7098 
   7099 _ACEOF
   7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7101   $EGREP "free" >/dev/null 2>&1; then :
   7102 
   7103 else
   7104   ac_cv_header_stdc=no
   7105 fi
   7106 rm -f conftest*
   7107 
   7108 fi
   7109 
   7110 if test $ac_cv_header_stdc = yes; then
   7111   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   7112   if test "$cross_compiling" = yes; then :
   7113   :
   7114 else
   7115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7116 /* end confdefs.h.  */
   7117 #include <ctype.h>
   7118 #include <stdlib.h>
   7119 #if ((' ' & 0x0FF) == 0x020)
   7120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   7121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   7122 #else
   7123 # define ISLOWER(c) \
   7124 		   (('a' <= (c) && (c) <= 'i') \
   7125 		     || ('j' <= (c) && (c) <= 'r') \
   7126 		     || ('s' <= (c) && (c) <= 'z'))
   7127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   7128 #endif
   7129 
   7130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   7131 int
   7132 main ()
   7133 {
   7134   int i;
   7135   for (i = 0; i < 256; i++)
   7136     if (XOR (islower (i), ISLOWER (i))
   7137 	|| toupper (i) != TOUPPER (i))
   7138       return 2;
   7139   return 0;
   7140 }
   7141 _ACEOF
   7142 if ac_fn_c_try_run "$LINENO"; then :
   7143 
   7144 else
   7145   ac_cv_header_stdc=no
   7146 fi
   7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7148   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7149 fi
   7150 
   7151 fi
   7152 fi
   7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   7154 $as_echo "$ac_cv_header_stdc" >&6; }
   7155 if test $ac_cv_header_stdc = yes; then
   7156 
   7157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   7158 
   7159 fi
   7160 
   7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   7162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   7163 		  inttypes.h stdint.h unistd.h
   7164 do :
   7165   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   7167 "
   7168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   7169   cat >>confdefs.h <<_ACEOF
   7170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7171 _ACEOF
   7172 
   7173 fi
   7174 
   7175 done
   7176 
   7177 
   7178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   7179 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   7180 if ${ac_cv_c_bigendian+:} false; then :
   7181   $as_echo_n "(cached) " >&6
   7182 else
   7183   ac_cv_c_bigendian=unknown
   7184     # See if we're dealing with a universal compiler.
   7185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7186 /* end confdefs.h.  */
   7187 #ifndef __APPLE_CC__
   7188 	       not a universal capable compiler
   7189 	     #endif
   7190 	     typedef int dummy;
   7191 
   7192 _ACEOF
   7193 if ac_fn_c_try_compile "$LINENO"; then :
   7194 
   7195 	# Check for potential -arch flags.  It is not universal unless
   7196 	# there are at least two -arch flags with different values.
   7197 	ac_arch=
   7198 	ac_prev=
   7199 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   7200 	 if test -n "$ac_prev"; then
   7201 	   case $ac_word in
   7202 	     i?86 | x86_64 | ppc | ppc64)
   7203 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   7204 		 ac_arch=$ac_word
   7205 	       else
   7206 		 ac_cv_c_bigendian=universal
   7207 		 break
   7208 	       fi
   7209 	       ;;
   7210 	   esac
   7211 	   ac_prev=
   7212 	 elif test "x$ac_word" = "x-arch"; then
   7213 	   ac_prev=arch
   7214 	 fi
   7215        done
   7216 fi
   7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7218     if test $ac_cv_c_bigendian = unknown; then
   7219       # See if sys/param.h defines the BYTE_ORDER macro.
   7220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7221 /* end confdefs.h.  */
   7222 #include <sys/types.h>
   7223 	     #include <sys/param.h>
   7224 
   7225 int
   7226 main ()
   7227 {
   7228 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   7229 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   7230 		     && LITTLE_ENDIAN)
   7231 	      bogus endian macros
   7232 	     #endif
   7233 
   7234   ;
   7235   return 0;
   7236 }
   7237 _ACEOF
   7238 if ac_fn_c_try_compile "$LINENO"; then :
   7239   # It does; now see whether it defined to BIG_ENDIAN or not.
   7240 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7241 /* end confdefs.h.  */
   7242 #include <sys/types.h>
   7243 		#include <sys/param.h>
   7244 
   7245 int
   7246 main ()
   7247 {
   7248 #if BYTE_ORDER != BIG_ENDIAN
   7249 		 not big endian
   7250 		#endif
   7251 
   7252   ;
   7253   return 0;
   7254 }
   7255 _ACEOF
   7256 if ac_fn_c_try_compile "$LINENO"; then :
   7257   ac_cv_c_bigendian=yes
   7258 else
   7259   ac_cv_c_bigendian=no
   7260 fi
   7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7262 fi
   7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7264     fi
   7265     if test $ac_cv_c_bigendian = unknown; then
   7266       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   7267       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7268 /* end confdefs.h.  */
   7269 #include <limits.h>
   7270 
   7271 int
   7272 main ()
   7273 {
   7274 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   7275 	      bogus endian macros
   7276 	     #endif
   7277 
   7278   ;
   7279   return 0;
   7280 }
   7281 _ACEOF
   7282 if ac_fn_c_try_compile "$LINENO"; then :
   7283   # It does; now see whether it defined to _BIG_ENDIAN or not.
   7284 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7285 /* end confdefs.h.  */
   7286 #include <limits.h>
   7287 
   7288 int
   7289 main ()
   7290 {
   7291 #ifndef _BIG_ENDIAN
   7292 		 not big endian
   7293 		#endif
   7294 
   7295   ;
   7296   return 0;
   7297 }
   7298 _ACEOF
   7299 if ac_fn_c_try_compile "$LINENO"; then :
   7300   ac_cv_c_bigendian=yes
   7301 else
   7302   ac_cv_c_bigendian=no
   7303 fi
   7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7305 fi
   7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7307     fi
   7308     if test $ac_cv_c_bigendian = unknown; then
   7309       # Compile a test program.
   7310       if test "$cross_compiling" = yes; then :
   7311   # Try to guess by grepping values from an object file.
   7312 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7313 /* end confdefs.h.  */
   7314 short int ascii_mm[] =
   7315 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   7316 		short int ascii_ii[] =
   7317 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   7318 		int use_ascii (int i) {
   7319 		  return ascii_mm[i] + ascii_ii[i];
   7320 		}
   7321 		short int ebcdic_ii[] =
   7322 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   7323 		short int ebcdic_mm[] =
   7324 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   7325 		int use_ebcdic (int i) {
   7326 		  return ebcdic_mm[i] + ebcdic_ii[i];
   7327 		}
   7328 		extern int foo;
   7329 
   7330 int
   7331 main ()
   7332 {
   7333 return use_ascii (foo) == use_ebcdic (foo);
   7334   ;
   7335   return 0;
   7336 }
   7337 _ACEOF
   7338 if ac_fn_c_try_compile "$LINENO"; then :
   7339   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   7340 	      ac_cv_c_bigendian=yes
   7341 	    fi
   7342 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   7343 	      if test "$ac_cv_c_bigendian" = unknown; then
   7344 		ac_cv_c_bigendian=no
   7345 	      else
   7346 		# finding both strings is unlikely to happen, but who knows?
   7347 		ac_cv_c_bigendian=unknown
   7348 	      fi
   7349 	    fi
   7350 fi
   7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7352 else
   7353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7354 /* end confdefs.h.  */
   7355 $ac_includes_default
   7356 int
   7357 main ()
   7358 {
   7359 
   7360 	     /* Are we little or big endian?  From Harbison&Steele.  */
   7361 	     union
   7362 	     {
   7363 	       long int l;
   7364 	       char c[sizeof (long int)];
   7365 	     } u;
   7366 	     u.l = 1;
   7367 	     return u.c[sizeof (long int) - 1] == 1;
   7368 
   7369   ;
   7370   return 0;
   7371 }
   7372 _ACEOF
   7373 if ac_fn_c_try_run "$LINENO"; then :
   7374   ac_cv_c_bigendian=no
   7375 else
   7376   ac_cv_c_bigendian=yes
   7377 fi
   7378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7379   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7380 fi
   7381 
   7382     fi
   7383 fi
   7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   7385 $as_echo "$ac_cv_c_bigendian" >&6; }
   7386  case $ac_cv_c_bigendian in #(
   7387    yes)
   7388      ac_cv_big_endian=1;; #(
   7389    no)
   7390      ac_cv_big_endian=0 ;; #(
   7391    universal)
   7392 
   7393 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   7394 
   7395      ;; #(
   7396    *)
   7397      as_fn_error $? "unknown endianness
   7398  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   7399  esac
   7400 
   7401 if test "x${ac_cv_big_endian}" = "x1" ; then
   7402 
   7403 cat >>confdefs.h <<_ACEOF
   7404 #define JEMALLOC_BIG_ENDIAN
   7405 _ACEOF
   7406 
   7407 fi
   7408 
   7409 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
   7410   T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
   7411   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7412   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   7413 else
   7414   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   7415 fi
   7416 
   7417 
   7418 fi
   7419 
   7420 if test "x${je_cv_msvc}" = "xyes" ; then
   7421   LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
   7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
   7423 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
   7424 else
   7425   # The cast to long int works around a bug in the HP C Compiler
   7426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7428 # This bug is HP SR number 8606223364.
   7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   7430 $as_echo_n "checking size of void *... " >&6; }
   7431 if ${ac_cv_sizeof_void_p+:} false; then :
   7432   $as_echo_n "(cached) " >&6
   7433 else
   7434   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   7435 
   7436 else
   7437   if test "$ac_cv_type_void_p" = yes; then
   7438      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7440 as_fn_error 77 "cannot compute sizeof (void *)
   7441 See \`config.log' for more details" "$LINENO" 5; }
   7442    else
   7443      ac_cv_sizeof_void_p=0
   7444    fi
   7445 fi
   7446 
   7447 fi
   7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   7449 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   7450 
   7451 
   7452 
   7453 cat >>confdefs.h <<_ACEOF
   7454 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   7455 _ACEOF
   7456 
   7457 
   7458   if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
   7459     LG_SIZEOF_PTR=3
   7460   elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
   7461     LG_SIZEOF_PTR=2
   7462   else
   7463     as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
   7464   fi
   7465 fi
   7466 
   7467 cat >>confdefs.h <<_ACEOF
   7468 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
   7469 _ACEOF
   7470 
   7471 
   7472 # The cast to long int works around a bug in the HP C Compiler
   7473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7475 # This bug is HP SR number 8606223364.
   7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   7477 $as_echo_n "checking size of int... " >&6; }
   7478 if ${ac_cv_sizeof_int+:} false; then :
   7479   $as_echo_n "(cached) " >&6
   7480 else
   7481   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   7482 
   7483 else
   7484   if test "$ac_cv_type_int" = yes; then
   7485      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7487 as_fn_error 77 "cannot compute sizeof (int)
   7488 See \`config.log' for more details" "$LINENO" 5; }
   7489    else
   7490      ac_cv_sizeof_int=0
   7491    fi
   7492 fi
   7493 
   7494 fi
   7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   7496 $as_echo "$ac_cv_sizeof_int" >&6; }
   7497 
   7498 
   7499 
   7500 cat >>confdefs.h <<_ACEOF
   7501 #define SIZEOF_INT $ac_cv_sizeof_int
   7502 _ACEOF
   7503 
   7504 
   7505 if test "x${ac_cv_sizeof_int}" = "x8" ; then
   7506   LG_SIZEOF_INT=3
   7507 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
   7508   LG_SIZEOF_INT=2
   7509 else
   7510   as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
   7511 fi
   7512 
   7513 cat >>confdefs.h <<_ACEOF
   7514 #define LG_SIZEOF_INT $LG_SIZEOF_INT
   7515 _ACEOF
   7516 
   7517 
   7518 # The cast to long int works around a bug in the HP C Compiler
   7519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7521 # This bug is HP SR number 8606223364.
   7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   7523 $as_echo_n "checking size of long... " >&6; }
   7524 if ${ac_cv_sizeof_long+:} false; then :
   7525   $as_echo_n "(cached) " >&6
   7526 else
   7527   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   7528 
   7529 else
   7530   if test "$ac_cv_type_long" = yes; then
   7531      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7533 as_fn_error 77 "cannot compute sizeof (long)
   7534 See \`config.log' for more details" "$LINENO" 5; }
   7535    else
   7536      ac_cv_sizeof_long=0
   7537    fi
   7538 fi
   7539 
   7540 fi
   7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   7542 $as_echo "$ac_cv_sizeof_long" >&6; }
   7543 
   7544 
   7545 
   7546 cat >>confdefs.h <<_ACEOF
   7547 #define SIZEOF_LONG $ac_cv_sizeof_long
   7548 _ACEOF
   7549 
   7550 
   7551 if test "x${ac_cv_sizeof_long}" = "x8" ; then
   7552   LG_SIZEOF_LONG=3
   7553 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
   7554   LG_SIZEOF_LONG=2
   7555 else
   7556   as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
   7557 fi
   7558 
   7559 cat >>confdefs.h <<_ACEOF
   7560 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
   7561 _ACEOF
   7562 
   7563 
   7564 # The cast to long int works around a bug in the HP C Compiler
   7565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7567 # This bug is HP SR number 8606223364.
   7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   7569 $as_echo_n "checking size of long long... " >&6; }
   7570 if ${ac_cv_sizeof_long_long+:} false; then :
   7571   $as_echo_n "(cached) " >&6
   7572 else
   7573   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   7574 
   7575 else
   7576   if test "$ac_cv_type_long_long" = yes; then
   7577      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7579 as_fn_error 77 "cannot compute sizeof (long long)
   7580 See \`config.log' for more details" "$LINENO" 5; }
   7581    else
   7582      ac_cv_sizeof_long_long=0
   7583    fi
   7584 fi
   7585 
   7586 fi
   7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   7588 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   7589 
   7590 
   7591 
   7592 cat >>confdefs.h <<_ACEOF
   7593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   7594 _ACEOF
   7595 
   7596 
   7597 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
   7598   LG_SIZEOF_LONG_LONG=3
   7599 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
   7600   LG_SIZEOF_LONG_LONG=2
   7601 else
   7602   as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
   7603 fi
   7604 
   7605 cat >>confdefs.h <<_ACEOF
   7606 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
   7607 _ACEOF
   7608 
   7609 
   7610 # The cast to long int works around a bug in the HP C Compiler
   7611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7613 # This bug is HP SR number 8606223364.
   7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
   7615 $as_echo_n "checking size of intmax_t... " >&6; }
   7616 if ${ac_cv_sizeof_intmax_t+:} false; then :
   7617   $as_echo_n "(cached) " >&6
   7618 else
   7619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
   7620 
   7621 else
   7622   if test "$ac_cv_type_intmax_t" = yes; then
   7623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7625 as_fn_error 77 "cannot compute sizeof (intmax_t)
   7626 See \`config.log' for more details" "$LINENO" 5; }
   7627    else
   7628      ac_cv_sizeof_intmax_t=0
   7629    fi
   7630 fi
   7631 
   7632 fi
   7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
   7634 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
   7635 
   7636 
   7637 
   7638 cat >>confdefs.h <<_ACEOF
   7639 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
   7640 _ACEOF
   7641 
   7642 
   7643 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
   7644   LG_SIZEOF_INTMAX_T=4
   7645 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
   7646   LG_SIZEOF_INTMAX_T=3
   7647 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
   7648   LG_SIZEOF_INTMAX_T=2
   7649 else
   7650   as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
   7651 fi
   7652 
   7653 cat >>confdefs.h <<_ACEOF
   7654 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
   7655 _ACEOF
   7656 
   7657 
   7658 # Make sure we can run config.sub.
   7659 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   7660   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   7661 
   7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   7663 $as_echo_n "checking build system type... " >&6; }
   7664 if ${ac_cv_build+:} false; then :
   7665   $as_echo_n "(cached) " >&6
   7666 else
   7667   ac_build_alias=$build_alias
   7668 test "x$ac_build_alias" = x &&
   7669   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   7670 test "x$ac_build_alias" = x &&
   7671   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   7672 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   7673   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   7674 
   7675 fi
   7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   7677 $as_echo "$ac_cv_build" >&6; }
   7678 case $ac_cv_build in
   7679 *-*-*) ;;
   7680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   7681 esac
   7682 build=$ac_cv_build
   7683 ac_save_IFS=$IFS; IFS='-'
   7684 set x $ac_cv_build
   7685 shift
   7686 build_cpu=$1
   7687 build_vendor=$2
   7688 shift; shift
   7689 # Remember, the first character of IFS is used to create $*,
   7690 # except with old shells:
   7691 build_os=$*
   7692 IFS=$ac_save_IFS
   7693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   7694 
   7695 
   7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   7697 $as_echo_n "checking host system type... " >&6; }
   7698 if ${ac_cv_host+:} false; then :
   7699   $as_echo_n "(cached) " >&6
   7700 else
   7701   if test "x$host_alias" = x; then
   7702   ac_cv_host=$ac_cv_build
   7703 else
   7704   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   7705     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   7706 fi
   7707 
   7708 fi
   7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   7710 $as_echo "$ac_cv_host" >&6; }
   7711 case $ac_cv_host in
   7712 *-*-*) ;;
   7713 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   7714 esac
   7715 host=$ac_cv_host
   7716 ac_save_IFS=$IFS; IFS='-'
   7717 set x $ac_cv_host
   7718 shift
   7719 host_cpu=$1
   7720 host_vendor=$2
   7721 shift; shift
   7722 # Remember, the first character of IFS is used to create $*,
   7723 # except with old shells:
   7724 host_os=$*
   7725 IFS=$ac_save_IFS
   7726 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   7727 
   7728 
   7729 CPU_SPINWAIT=""
   7730 case "${host_cpu}" in
   7731   i686|x86_64)
   7732 	HAVE_CPU_SPINWAIT=1
   7733 	if test "x${je_cv_msvc}" = "xyes" ; then
   7734 	    if ${je_cv_pause_msvc+:} false; then :
   7735   $as_echo_n "(cached) " >&6
   7736 else
   7737 
   7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
   7739 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
   7740 if ${je_cv_pause_msvc+:} false; then :
   7741   $as_echo_n "(cached) " >&6
   7742 else
   7743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7744 /* end confdefs.h.  */
   7745 
   7746 int
   7747 main ()
   7748 {
   7749 _mm_pause(); return 0;
   7750   ;
   7751   return 0;
   7752 }
   7753 _ACEOF
   7754 if ac_fn_c_try_link "$LINENO"; then :
   7755   je_cv_pause_msvc=yes
   7756 else
   7757   je_cv_pause_msvc=no
   7758 fi
   7759 rm -f core conftest.err conftest.$ac_objext \
   7760     conftest$ac_exeext conftest.$ac_ext
   7761 fi
   7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
   7763 $as_echo "$je_cv_pause_msvc" >&6; }
   7764 
   7765 fi
   7766 
   7767 	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
   7768 		CPU_SPINWAIT='_mm_pause()'
   7769 	    fi
   7770 	else
   7771 	    if ${je_cv_pause+:} false; then :
   7772   $as_echo_n "(cached) " >&6
   7773 else
   7774 
   7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
   7776 $as_echo_n "checking whether pause instruction is compilable... " >&6; }
   7777 if ${je_cv_pause+:} false; then :
   7778   $as_echo_n "(cached) " >&6
   7779 else
   7780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7781 /* end confdefs.h.  */
   7782 
   7783 int
   7784 main ()
   7785 {
   7786 __asm__ volatile("pause"); return 0;
   7787   ;
   7788   return 0;
   7789 }
   7790 _ACEOF
   7791 if ac_fn_c_try_link "$LINENO"; then :
   7792   je_cv_pause=yes
   7793 else
   7794   je_cv_pause=no
   7795 fi
   7796 rm -f core conftest.err conftest.$ac_objext \
   7797     conftest$ac_exeext conftest.$ac_ext
   7798 fi
   7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
   7800 $as_echo "$je_cv_pause" >&6; }
   7801 
   7802 fi
   7803 
   7804 	    if test "x${je_cv_pause}" = "xyes" ; then
   7805 		CPU_SPINWAIT='__asm__ volatile("pause")'
   7806 	    fi
   7807 	fi
   7808 	;;
   7809   aarch64|arm*)
   7810 	HAVE_CPU_SPINWAIT=1
   7811 		if ${je_cv_isb+:} false; then :
   7812   $as_echo_n "(cached) " >&6
   7813 else
   7814 
   7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isb instruction is compilable" >&5
   7816 $as_echo_n "checking whether isb instruction is compilable... " >&6; }
   7817 if ${je_cv_isb+:} false; then :
   7818   $as_echo_n "(cached) " >&6
   7819 else
   7820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7821 /* end confdefs.h.  */
   7822 
   7823 int
   7824 main ()
   7825 {
   7826 __asm__ volatile("isb"); return 0;
   7827   ;
   7828   return 0;
   7829 }
   7830 _ACEOF
   7831 if ac_fn_c_try_link "$LINENO"; then :
   7832   je_cv_isb=yes
   7833 else
   7834   je_cv_isb=no
   7835 fi
   7836 rm -f core conftest.err conftest.$ac_objext \
   7837     conftest$ac_exeext conftest.$ac_ext
   7838 fi
   7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_isb" >&5
   7840 $as_echo "$je_cv_isb" >&6; }
   7841 
   7842 fi
   7843 
   7844 	if test "x${je_cv_isb}" = "xyes" ; then
   7845 	    CPU_SPINWAIT='__asm__ volatile("isb")'
   7846 	fi
   7847 	;;
   7848   *)
   7849 	HAVE_CPU_SPINWAIT=0
   7850 	;;
   7851 esac
   7852 
   7853 cat >>confdefs.h <<_ACEOF
   7854 #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
   7855 _ACEOF
   7856 
   7857 
   7858 cat >>confdefs.h <<_ACEOF
   7859 #define CPU_SPINWAIT $CPU_SPINWAIT
   7860 _ACEOF
   7861 
   7862 
   7863 
   7864 # Check whether --with-lg_vaddr was given.
   7865 if test "${with_lg_vaddr+set}" = set; then :
   7866   withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
   7867 else
   7868   LG_VADDR="detect"
   7869 fi
   7870 
   7871 
   7872 case "${host_cpu}" in
   7873   aarch64)
   7874     if test "x$LG_VADDR" = "xdetect"; then
   7875       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   7876 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   7877       if test "x${LG_SIZEOF_PTR}" = "x2" ; then
   7878         #aarch64 ILP32
   7879         LG_VADDR=32
   7880       else
   7881         #aarch64 LP64
   7882         LG_VADDR=48
   7883       fi
   7884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
   7885 $as_echo "$LG_VADDR" >&6; }
   7886     fi
   7887     ;;
   7888   x86_64)
   7889     if test "x$LG_VADDR" = "xdetect"; then
   7890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   7891 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   7892 if ${je_cv_lg_vaddr+:} false; then :
   7893   $as_echo_n "(cached) " >&6
   7894 else
   7895   if test "$cross_compiling" = yes; then :
   7896   je_cv_lg_vaddr=57
   7897 else
   7898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7899 /* end confdefs.h.  */
   7900 
   7901 #include <stdio.h>
   7902 #ifdef _WIN32
   7903 #include <limits.h>
   7904 #include <intrin.h>
   7905 typedef unsigned __int32 uint32_t;
   7906 #else
   7907 #include <stdint.h>
   7908 #endif
   7909 
   7910 int
   7911 main ()
   7912 {
   7913 
   7914 	uint32_t r[4];
   7915 	uint32_t eax_in = 0x80000008U;
   7916 #ifdef _WIN32
   7917 	__cpuid((int *)r, (int)eax_in);
   7918 #else
   7919 	asm volatile ("cpuid"
   7920 	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
   7921 	    : "a" (eax_in), "c" (0)
   7922 	);
   7923 #endif
   7924 	uint32_t eax_out = r[0];
   7925 	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
   7926 	FILE *f = fopen("conftest.out", "w");
   7927 	if (f == NULL) {
   7928 		return 1;
   7929 	}
   7930 	if (vaddr > (sizeof(void *) << 3)) {
   7931 		vaddr = sizeof(void *) << 3;
   7932 	}
   7933 	fprintf(f, "%u", vaddr);
   7934 	fclose(f);
   7935 	return 0;
   7936 
   7937   ;
   7938   return 0;
   7939 }
   7940 _ACEOF
   7941 if ac_fn_c_try_run "$LINENO"; then :
   7942   je_cv_lg_vaddr=`cat conftest.out`
   7943 else
   7944   je_cv_lg_vaddr=error
   7945 fi
   7946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7947   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7948 fi
   7949 
   7950 fi
   7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
   7952 $as_echo "$je_cv_lg_vaddr" >&6; }
   7953       if test "x${je_cv_lg_vaddr}" != "x" ; then
   7954         LG_VADDR="${je_cv_lg_vaddr}"
   7955       fi
   7956       if test "x${LG_VADDR}" != "xerror" ; then
   7957 
   7958 cat >>confdefs.h <<_ACEOF
   7959 #define LG_VADDR $LG_VADDR
   7960 _ACEOF
   7961 
   7962       else
   7963         as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
   7964       fi
   7965     fi
   7966     ;;
   7967   *)
   7968     if test "x$LG_VADDR" = "xdetect"; then
   7969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   7970 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   7971       if test "x${LG_SIZEOF_PTR}" = "x3" ; then
   7972         LG_VADDR=64
   7973       elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
   7974         LG_VADDR=32
   7975       elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
   7976         LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
   7977       else
   7978         as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
   7979       fi
   7980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
   7981 $as_echo "$LG_VADDR" >&6; }
   7982     fi
   7983     ;;
   7984 esac
   7985 
   7986 cat >>confdefs.h <<_ACEOF
   7987 #define LG_VADDR $LG_VADDR
   7988 _ACEOF
   7989 
   7990 
   7991 LD_PRELOAD_VAR="LD_PRELOAD"
   7992 so="so"
   7993 importlib="${so}"
   7994 o="$ac_objext"
   7995 a="a"
   7996 exe="$ac_exeext"
   7997 libprefix="lib"
   7998 link_whole_archive="0"
   7999 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
   8000 RPATH='-Wl,-rpath,$(1)'
   8001 SOREV="${so}.${rev}"
   8002 PIC_CFLAGS='-fPIC -DPIC'
   8003 CTARGET='-o $@'
   8004 LDTARGET='-o $@'
   8005 TEST_LD_MODE=
   8006 EXTRA_LDFLAGS=
   8007 ARFLAGS='crus'
   8008 AROUT=' $@'
   8009 CC_MM=1
   8010 
   8011 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
   8012   TEST_LD_MODE='-dynamic'
   8013 fi
   8014 
   8015 if test "x${je_cv_cray}" = "xyes" ; then
   8016   CC_MM=
   8017 fi
   8018 
   8019 
   8020 
   8021 
   8022 if test -n "$ac_tool_prefix"; then
   8023   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   8024 set dummy ${ac_tool_prefix}ar; ac_word=$2
   8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8026 $as_echo_n "checking for $ac_word... " >&6; }
   8027 if ${ac_cv_prog_AR+:} false; then :
   8028   $as_echo_n "(cached) " >&6
   8029 else
   8030   if test -n "$AR"; then
   8031   ac_cv_prog_AR="$AR" # Let the user override the test.
   8032 else
   8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8034 for as_dir in $PATH
   8035 do
   8036   IFS=$as_save_IFS
   8037   test -z "$as_dir" && as_dir=.
   8038     for ac_exec_ext in '' $ac_executable_extensions; do
   8039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8040     ac_cv_prog_AR="${ac_tool_prefix}ar"
   8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8042     break 2
   8043   fi
   8044 done
   8045   done
   8046 IFS=$as_save_IFS
   8047 
   8048 fi
   8049 fi
   8050 AR=$ac_cv_prog_AR
   8051 if test -n "$AR"; then
   8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   8053 $as_echo "$AR" >&6; }
   8054 else
   8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8056 $as_echo "no" >&6; }
   8057 fi
   8058 
   8059 
   8060 fi
   8061 if test -z "$ac_cv_prog_AR"; then
   8062   ac_ct_AR=$AR
   8063   # Extract the first word of "ar", so it can be a program name with args.
   8064 set dummy ar; ac_word=$2
   8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8066 $as_echo_n "checking for $ac_word... " >&6; }
   8067 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   8068   $as_echo_n "(cached) " >&6
   8069 else
   8070   if test -n "$ac_ct_AR"; then
   8071   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   8072 else
   8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8074 for as_dir in $PATH
   8075 do
   8076   IFS=$as_save_IFS
   8077   test -z "$as_dir" && as_dir=.
   8078     for ac_exec_ext in '' $ac_executable_extensions; do
   8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8080     ac_cv_prog_ac_ct_AR="ar"
   8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8082     break 2
   8083   fi
   8084 done
   8085   done
   8086 IFS=$as_save_IFS
   8087 
   8088 fi
   8089 fi
   8090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   8091 if test -n "$ac_ct_AR"; then
   8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   8093 $as_echo "$ac_ct_AR" >&6; }
   8094 else
   8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8096 $as_echo "no" >&6; }
   8097 fi
   8098 
   8099   if test "x$ac_ct_AR" = x; then
   8100     AR=":"
   8101   else
   8102     case $cross_compiling:$ac_tool_warned in
   8103 yes:)
   8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8106 ac_tool_warned=yes ;;
   8107 esac
   8108     AR=$ac_ct_AR
   8109   fi
   8110 else
   8111   AR="$ac_cv_prog_AR"
   8112 fi
   8113 
   8114 
   8115 
   8116 
   8117 
   8118 if test -n "$ac_tool_prefix"; then
   8119   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
   8120 set dummy ${ac_tool_prefix}nm; ac_word=$2
   8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8122 $as_echo_n "checking for $ac_word... " >&6; }
   8123 if ${ac_cv_prog_NM+:} false; then :
   8124   $as_echo_n "(cached) " >&6
   8125 else
   8126   if test -n "$NM"; then
   8127   ac_cv_prog_NM="$NM" # Let the user override the test.
   8128 else
   8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8130 for as_dir in $PATH
   8131 do
   8132   IFS=$as_save_IFS
   8133   test -z "$as_dir" && as_dir=.
   8134     for ac_exec_ext in '' $ac_executable_extensions; do
   8135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8136     ac_cv_prog_NM="${ac_tool_prefix}nm"
   8137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8138     break 2
   8139   fi
   8140 done
   8141   done
   8142 IFS=$as_save_IFS
   8143 
   8144 fi
   8145 fi
   8146 NM=$ac_cv_prog_NM
   8147 if test -n "$NM"; then
   8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   8149 $as_echo "$NM" >&6; }
   8150 else
   8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8152 $as_echo "no" >&6; }
   8153 fi
   8154 
   8155 
   8156 fi
   8157 if test -z "$ac_cv_prog_NM"; then
   8158   ac_ct_NM=$NM
   8159   # Extract the first word of "nm", so it can be a program name with args.
   8160 set dummy nm; ac_word=$2
   8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8162 $as_echo_n "checking for $ac_word... " >&6; }
   8163 if ${ac_cv_prog_ac_ct_NM+:} false; then :
   8164   $as_echo_n "(cached) " >&6
   8165 else
   8166   if test -n "$ac_ct_NM"; then
   8167   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
   8168 else
   8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8170 for as_dir in $PATH
   8171 do
   8172   IFS=$as_save_IFS
   8173   test -z "$as_dir" && as_dir=.
   8174     for ac_exec_ext in '' $ac_executable_extensions; do
   8175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8176     ac_cv_prog_ac_ct_NM="nm"
   8177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8178     break 2
   8179   fi
   8180 done
   8181   done
   8182 IFS=$as_save_IFS
   8183 
   8184 fi
   8185 fi
   8186 ac_ct_NM=$ac_cv_prog_ac_ct_NM
   8187 if test -n "$ac_ct_NM"; then
   8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
   8189 $as_echo "$ac_ct_NM" >&6; }
   8190 else
   8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8192 $as_echo "no" >&6; }
   8193 fi
   8194 
   8195   if test "x$ac_ct_NM" = x; then
   8196     NM=":"
   8197   else
   8198     case $cross_compiling:$ac_tool_warned in
   8199 yes:)
   8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8202 ac_tool_warned=yes ;;
   8203 esac
   8204     NM=$ac_ct_NM
   8205   fi
   8206 else
   8207   NM="$ac_cv_prog_NM"
   8208 fi
   8209 
   8210 
   8211 for ac_prog in gawk mawk nawk awk
   8212 do
   8213   # Extract the first word of "$ac_prog", so it can be a program name with args.
   8214 set dummy $ac_prog; ac_word=$2
   8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8216 $as_echo_n "checking for $ac_word... " >&6; }
   8217 if ${ac_cv_prog_AWK+:} false; then :
   8218   $as_echo_n "(cached) " >&6
   8219 else
   8220   if test -n "$AWK"; then
   8221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   8222 else
   8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8224 for as_dir in $PATH
   8225 do
   8226   IFS=$as_save_IFS
   8227   test -z "$as_dir" && as_dir=.
   8228     for ac_exec_ext in '' $ac_executable_extensions; do
   8229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8230     ac_cv_prog_AWK="$ac_prog"
   8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8232     break 2
   8233   fi
   8234 done
   8235   done
   8236 IFS=$as_save_IFS
   8237 
   8238 fi
   8239 fi
   8240 AWK=$ac_cv_prog_AWK
   8241 if test -n "$AWK"; then
   8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   8243 $as_echo "$AWK" >&6; }
   8244 else
   8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8246 $as_echo "no" >&6; }
   8247 fi
   8248 
   8249 
   8250   test -n "$AWK" && break
   8251 done
   8252 
   8253 
   8254 
   8255 
   8256 # Check whether --with-version was given.
   8257 if test "${with_version+set}" = set; then :
   8258   withval=$with_version;
   8259     echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
   8260     if test $? -eq 0 ; then
   8261       echo "$with_version" > "${objroot}VERSION"
   8262     else
   8263       echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
   8264       if test $? -ne 0 ; then
   8265         as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
   8266       fi
   8267     fi
   8268 
   8269 else
   8270 
   8271         if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
   8272                         for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
   8273                      '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
   8274                      '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
   8275                      '[0-9][0-9].[0-9][0-9].[0-9]' \
   8276                      '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
   8277         (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
   8278         if test $? -eq 0 ; then
   8279           mv "${objroot}VERSION.tmp" "${objroot}VERSION"
   8280           break
   8281         fi
   8282       done
   8283     fi
   8284     rm -f "${objroot}VERSION.tmp"
   8285 
   8286 fi
   8287 
   8288 
   8289 if test ! -e "${objroot}VERSION" ; then
   8290   if test ! -e "${srcroot}VERSION" ; then
   8291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
   8292 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
   8293     echo "0.0.0-0-g000000missing_version_try_git_fetch_tags" > "${objroot}VERSION"
   8294   else
   8295     cp ${srcroot}VERSION ${objroot}VERSION
   8296   fi
   8297 fi
   8298 jemalloc_version=`cat "${objroot}VERSION"`
   8299 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
   8300 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
   8301 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
   8302 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
   8303 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
   8304 
   8305 
   8306 
   8307 
   8308 
   8309 
   8310 
   8311 default_retain="0"
   8312 zero_realloc_default_free="0"
   8313 maps_coalesce="1"
   8314 DUMP_SYMS="${NM} -a"
   8315 SYM_PREFIX=""
   8316 case "${host}" in
   8317   *-*-darwin* | *-*-ios*)
   8318 	abi="macho"
   8319 	RPATH=""
   8320 	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
   8321 	so="dylib"
   8322 	importlib="${so}"
   8323 	force_tls="0"
   8324 	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
   8325 	SOREV="${rev}.${so}"
   8326 	sbrk_deprecated="1"
   8327 	SYM_PREFIX="_"
   8328 	;;
   8329   *-*-freebsd*)
   8330 	T_APPEND_V=-D_BSD_SOURCE
   8331   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8332   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   8333 else
   8334   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   8335 fi
   8336 
   8337 
   8338 	abi="elf"
   8339 
   8340 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
   8341 
   8342 	force_lazy_lock="1"
   8343 	;;
   8344   *-*-dragonfly*)
   8345 	abi="elf"
   8346 	;;
   8347   *-*-openbsd*)
   8348 	abi="elf"
   8349 	force_tls="0"
   8350 	;;
   8351   *-*-bitrig*)
   8352 	abi="elf"
   8353 	;;
   8354   *-*-linux-android*)
   8355 		T_APPEND_V=-D_GNU_SOURCE
   8356   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8357   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   8358 else
   8359   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   8360 fi
   8361 
   8362 
   8363 	abi="elf"
   8364 	glibc="0"
   8365 
   8366 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
   8367 
   8368 
   8369 $as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
   8370 
   8371 
   8372 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
   8373 
   8374 
   8375 $as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   8376 
   8377 
   8378 $as_echo "#define JEMALLOC_C11_ATOMICS  " >>confdefs.h
   8379 
   8380 	force_tls="0"
   8381 	if test "${LG_SIZEOF_PTR}" = "3"; then
   8382 	  default_retain="1"
   8383 	fi
   8384 	zero_realloc_default_free="1"
   8385 	;;
   8386   *-*-linux*)
   8387 		T_APPEND_V=-D_GNU_SOURCE
   8388   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8389   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   8390 else
   8391   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   8392 fi
   8393 
   8394 
   8395 	abi="elf"
   8396 	glibc="1"
   8397 
   8398 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
   8399 
   8400 
   8401 $as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
   8402 
   8403 
   8404 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
   8405 
   8406 
   8407 $as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   8408 
   8409 
   8410 $as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
   8411 
   8412 	if test "${LG_SIZEOF_PTR}" = "3"; then
   8413 	  default_retain="1"
   8414 	fi
   8415 	zero_realloc_default_free="1"
   8416 	;;
   8417   *-*-kfreebsd*)
   8418 		T_APPEND_V=-D_GNU_SOURCE
   8419   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8420   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   8421 else
   8422   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   8423 fi
   8424 
   8425 
   8426 	abi="elf"
   8427 
   8428 $as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
   8429 
   8430 
   8431 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
   8432 
   8433 
   8434 $as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   8435 
   8436 
   8437 $as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
   8438 
   8439 	;;
   8440   *-*-netbsd*)
   8441 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
   8442 $as_echo_n "checking ABI... " >&6; }
   8443         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8444 /* end confdefs.h.  */
   8445 #ifdef __ELF__
   8446 /* ELF */
   8447 #else
   8448 #error aout
   8449 #endif
   8450 
   8451 int
   8452 main ()
   8453 {
   8454 
   8455   ;
   8456   return 0;
   8457 }
   8458 _ACEOF
   8459 if ac_fn_c_try_compile "$LINENO"; then :
   8460   abi="elf"
   8461 else
   8462   abi="aout"
   8463 fi
   8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8465 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
   8466 $as_echo "$abi" >&6; }
   8467 	;;
   8468   *-*-solaris2*)
   8469 	abi="elf"
   8470 	RPATH='-Wl,-R,$(1)'
   8471 		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
   8472   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8473   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   8474 else
   8475   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   8476 fi
   8477 
   8478 
   8479 	T_APPEND_V=-lposix4 -lsocket -lnsl
   8480   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8481   LIBS="${LIBS}${T_APPEND_V}"
   8482 else
   8483   LIBS="${LIBS} ${T_APPEND_V}"
   8484 fi
   8485 
   8486 
   8487 	;;
   8488   *-ibm-aix*)
   8489 	if test "${LG_SIZEOF_PTR}" = "3"; then
   8490 	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
   8491 	else
   8492 	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
   8493 	fi
   8494 	abi="xcoff"
   8495 	;;
   8496   *-*-mingw* | *-*-cygwin*)
   8497 	abi="pecoff"
   8498 	force_tls="0"
   8499 	maps_coalesce="0"
   8500 	RPATH=""
   8501 	so="dll"
   8502 	if test "x$je_cv_msvc" = "xyes" ; then
   8503 	  importlib="lib"
   8504 	  DSO_LDFLAGS="-LD"
   8505 	  EXTRA_LDFLAGS="-link -DEBUG"
   8506 	  CTARGET='-Fo$@'
   8507 	  LDTARGET='-Fe$@'
   8508 	  AR='lib'
   8509 	  ARFLAGS='-nologo -out:'
   8510 	  AROUT='$@'
   8511 	  CC_MM=
   8512         else
   8513 	  importlib="${so}"
   8514 	  DSO_LDFLAGS="-shared"
   8515 	  link_whole_archive="1"
   8516 	fi
   8517 	case "${host}" in
   8518 	  *-*-cygwin*)
   8519 	    DUMP_SYMS="dumpbin /SYMBOLS"
   8520 	    ;;
   8521 	  *)
   8522 	    ;;
   8523 	esac
   8524 	a="lib"
   8525 	libprefix=""
   8526 	SOREV="${so}"
   8527 	PIC_CFLAGS=""
   8528 	if test "${LG_SIZEOF_PTR}" = "3"; then
   8529 	  default_retain="1"
   8530 	fi
   8531 	zero_realloc_default_free="1"
   8532 	;;
   8533   *-*-nto-qnx)
   8534 	abi="elf"
   8535   force_tls="0"
   8536 
   8537 $as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
   8538 
   8539 	;;
   8540   *)
   8541 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
   8542 $as_echo "Unsupported operating system: ${host}" >&6; }
   8543 	abi="elf"
   8544 	;;
   8545 esac
   8546 
   8547 JEMALLOC_USABLE_SIZE_CONST=const
   8548 for ac_header in malloc.h
   8549 do :
   8550   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
   8551 if test "x$ac_cv_header_malloc_h" = xyes; then :
   8552   cat >>confdefs.h <<_ACEOF
   8553 #define HAVE_MALLOC_H 1
   8554 _ACEOF
   8555 
   8556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
   8557 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
   8558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8559 /* end confdefs.h.  */
   8560 #include <malloc.h>
   8561      #include <stddef.h>
   8562     size_t malloc_usable_size(const void *ptr);
   8563 
   8564 int
   8565 main ()
   8566 {
   8567 
   8568   ;
   8569   return 0;
   8570 }
   8571 _ACEOF
   8572 if ac_fn_c_try_compile "$LINENO"; then :
   8573 
   8574                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8575 $as_echo "yes" >&6; }
   8576 
   8577 else
   8578 
   8579                 JEMALLOC_USABLE_SIZE_CONST=
   8580                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8581 $as_echo "no" >&6; }
   8582 
   8583 fi
   8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8585 
   8586 fi
   8587 
   8588 done
   8589 
   8590 
   8591 cat >>confdefs.h <<_ACEOF
   8592 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
   8593 _ACEOF
   8594 
   8595 
   8596 
   8597 
   8598 
   8599 
   8600 
   8601 
   8602 
   8603 
   8604 
   8605 
   8606 
   8607 
   8608 
   8609 
   8610 
   8611 
   8612 
   8613 
   8614 
   8615 
   8616 
   8617 
   8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
   8619 $as_echo_n "checking for library containing log... " >&6; }
   8620 if ${ac_cv_search_log+:} false; then :
   8621   $as_echo_n "(cached) " >&6
   8622 else
   8623   ac_func_search_save_LIBS=$LIBS
   8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8625 /* end confdefs.h.  */
   8626 
   8627 /* Override any GCC internal prototype to avoid an error.
   8628    Use char because int might match the return type of a GCC
   8629    builtin and then its argument prototype would still apply.  */
   8630 #ifdef __cplusplus
   8631 extern "C"
   8632 #endif
   8633 char log ();
   8634 int
   8635 main ()
   8636 {
   8637 return log ();
   8638   ;
   8639   return 0;
   8640 }
   8641 _ACEOF
   8642 for ac_lib in '' m; do
   8643   if test -z "$ac_lib"; then
   8644     ac_res="none required"
   8645   else
   8646     ac_res=-l$ac_lib
   8647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8648   fi
   8649   if ac_fn_c_try_link "$LINENO"; then :
   8650   ac_cv_search_log=$ac_res
   8651 fi
   8652 rm -f core conftest.err conftest.$ac_objext \
   8653     conftest$ac_exeext
   8654   if ${ac_cv_search_log+:} false; then :
   8655   break
   8656 fi
   8657 done
   8658 if ${ac_cv_search_log+:} false; then :
   8659 
   8660 else
   8661   ac_cv_search_log=no
   8662 fi
   8663 rm conftest.$ac_ext
   8664 LIBS=$ac_func_search_save_LIBS
   8665 fi
   8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
   8667 $as_echo "$ac_cv_search_log" >&6; }
   8668 ac_res=$ac_cv_search_log
   8669 if test "$ac_res" != no; then :
   8670   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8671 
   8672 else
   8673   as_fn_error $? "Missing math functions" "$LINENO" 5
   8674 fi
   8675 
   8676 if test "x$ac_cv_search_log" != "xnone required" ; then
   8677   LM="$ac_cv_search_log"
   8678 else
   8679   LM=
   8680 fi
   8681 
   8682 
   8683 
   8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
   8685 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
   8686 if ${je_cv_attribute+:} false; then :
   8687   $as_echo_n "(cached) " >&6
   8688 else
   8689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8690 /* end confdefs.h.  */
   8691 static __attribute__((unused)) void foo(void){}
   8692 int
   8693 main ()
   8694 {
   8695 
   8696   ;
   8697   return 0;
   8698 }
   8699 _ACEOF
   8700 if ac_fn_c_try_link "$LINENO"; then :
   8701   je_cv_attribute=yes
   8702 else
   8703   je_cv_attribute=no
   8704 fi
   8705 rm -f core conftest.err conftest.$ac_objext \
   8706     conftest$ac_exeext conftest.$ac_ext
   8707 fi
   8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
   8709 $as_echo "$je_cv_attribute" >&6; }
   8710 
   8711 if test "x${je_cv_attribute}" = "xyes" ; then
   8712 
   8713 $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
   8714 
   8715   if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
   8716 
   8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
   8718 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
   8719 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8720 T_APPEND_V=-fvisibility=hidden
   8721   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8722   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8723 else
   8724   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8725 fi
   8726 
   8727 
   8728 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8729   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8730 else
   8731   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8732 fi
   8733 
   8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8735 /* end confdefs.h.  */
   8736 
   8737 
   8738 int
   8739 main ()
   8740 {
   8741 
   8742     return 0;
   8743 
   8744   ;
   8745   return 0;
   8746 }
   8747 _ACEOF
   8748 if ac_fn_c_try_compile "$LINENO"; then :
   8749   je_cv_cflags_added=-fvisibility=hidden
   8750               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8751 $as_echo "yes" >&6; }
   8752 else
   8753   je_cv_cflags_added=
   8754               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8755 $as_echo "no" >&6; }
   8756               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8757 
   8758 fi
   8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8760 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8761   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8762 else
   8763   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8764 fi
   8765 
   8766 
   8767 
   8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
   8769 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
   8770 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   8771 T_APPEND_V=-fvisibility=hidden
   8772   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8773   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   8774 else
   8775   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   8776 fi
   8777 
   8778 
   8779 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   8780   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   8781 else
   8782   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   8783 fi
   8784 
   8785 ac_ext=cpp
   8786 ac_cpp='$CXXCPP $CPPFLAGS'
   8787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8790 
   8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8792 /* end confdefs.h.  */
   8793 
   8794 
   8795 int
   8796 main ()
   8797 {
   8798 
   8799     return 0;
   8800 
   8801   ;
   8802   return 0;
   8803 }
   8804 _ACEOF
   8805 if ac_fn_cxx_try_compile "$LINENO"; then :
   8806   je_cv_cxxflags_added=-fvisibility=hidden
   8807               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8808 $as_echo "yes" >&6; }
   8809 else
   8810   je_cv_cxxflags_added=
   8811               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8812 $as_echo "no" >&6; }
   8813               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   8814 
   8815 fi
   8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8817 ac_ext=c
   8818 ac_cpp='$CPP $CPPFLAGS'
   8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8822 
   8823 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   8824   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   8825 else
   8826   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   8827 fi
   8828 
   8829 
   8830   fi
   8831 fi
   8832 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8833 
   8834 
   8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   8836 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   8837 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8838 T_APPEND_V=-Werror
   8839   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8840   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8841 else
   8842   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8843 fi
   8844 
   8845 
   8846 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8847   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8848 else
   8849   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8850 fi
   8851 
   8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8853 /* end confdefs.h.  */
   8854 
   8855 
   8856 int
   8857 main ()
   8858 {
   8859 
   8860     return 0;
   8861 
   8862   ;
   8863   return 0;
   8864 }
   8865 _ACEOF
   8866 if ac_fn_c_try_compile "$LINENO"; then :
   8867   je_cv_cflags_added=-Werror
   8868               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8869 $as_echo "yes" >&6; }
   8870 else
   8871   je_cv_cflags_added=
   8872               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8873 $as_echo "no" >&6; }
   8874               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8875 
   8876 fi
   8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8878 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8879   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8880 else
   8881   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8882 fi
   8883 
   8884 
   8885 
   8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   8887 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   8888 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8889 T_APPEND_V=-herror_on_warning
   8890   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8891   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8892 else
   8893   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8894 fi
   8895 
   8896 
   8897 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8898   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8899 else
   8900   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8901 fi
   8902 
   8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8904 /* end confdefs.h.  */
   8905 
   8906 
   8907 int
   8908 main ()
   8909 {
   8910 
   8911     return 0;
   8912 
   8913   ;
   8914   return 0;
   8915 }
   8916 _ACEOF
   8917 if ac_fn_c_try_compile "$LINENO"; then :
   8918   je_cv_cflags_added=-herror_on_warning
   8919               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8920 $as_echo "yes" >&6; }
   8921 else
   8922   je_cv_cflags_added=
   8923               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8924 $as_echo "no" >&6; }
   8925               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8926 
   8927 fi
   8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8929 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8930   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8931 else
   8932   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8933 fi
   8934 
   8935 
   8936 
   8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
   8938 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
   8939 if ${je_cv_tls_model+:} false; then :
   8940   $as_echo_n "(cached) " >&6
   8941 else
   8942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8943 /* end confdefs.h.  */
   8944 
   8945 int
   8946 main ()
   8947 {
   8948 static __thread int
   8949                __attribute__((tls_model("initial-exec"), unused)) foo;
   8950                foo = 0;
   8951   ;
   8952   return 0;
   8953 }
   8954 _ACEOF
   8955 if ac_fn_c_try_link "$LINENO"; then :
   8956   je_cv_tls_model=yes
   8957 else
   8958   je_cv_tls_model=no
   8959 fi
   8960 rm -f core conftest.err conftest.$ac_objext \
   8961     conftest$ac_exeext conftest.$ac_ext
   8962 fi
   8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
   8964 $as_echo "$je_cv_tls_model" >&6; }
   8965 
   8966 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   8967 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8968   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8969 else
   8970   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8971 fi
   8972 
   8973 
   8974 
   8975 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8976 
   8977 
   8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   8979 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   8980 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8981 T_APPEND_V=-Werror
   8982   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8983   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8984 else
   8985   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8986 fi
   8987 
   8988 
   8989 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8990   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8991 else
   8992   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8993 fi
   8994 
   8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8996 /* end confdefs.h.  */
   8997 
   8998 
   8999 int
   9000 main ()
   9001 {
   9002 
   9003     return 0;
   9004 
   9005   ;
   9006   return 0;
   9007 }
   9008 _ACEOF
   9009 if ac_fn_c_try_compile "$LINENO"; then :
   9010   je_cv_cflags_added=-Werror
   9011               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9012 $as_echo "yes" >&6; }
   9013 else
   9014   je_cv_cflags_added=
   9015               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9016 $as_echo "no" >&6; }
   9017               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9018 
   9019 fi
   9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9021 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9022   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9023 else
   9024   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9025 fi
   9026 
   9027 
   9028 
   9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   9030 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   9031 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9032 T_APPEND_V=-herror_on_warning
   9033   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9034   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9035 else
   9036   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9037 fi
   9038 
   9039 
   9040 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9041   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9042 else
   9043   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9044 fi
   9045 
   9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9047 /* end confdefs.h.  */
   9048 
   9049 
   9050 int
   9051 main ()
   9052 {
   9053 
   9054     return 0;
   9055 
   9056   ;
   9057   return 0;
   9058 }
   9059 _ACEOF
   9060 if ac_fn_c_try_compile "$LINENO"; then :
   9061   je_cv_cflags_added=-herror_on_warning
   9062               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9063 $as_echo "yes" >&6; }
   9064 else
   9065   je_cv_cflags_added=
   9066               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9067 $as_echo "no" >&6; }
   9068               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9069 
   9070 fi
   9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9072 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9073   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9074 else
   9075   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9076 fi
   9077 
   9078 
   9079 
   9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
   9081 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
   9082 if ${je_cv_alloc_size+:} false; then :
   9083   $as_echo_n "(cached) " >&6
   9084 else
   9085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9086 /* end confdefs.h.  */
   9087 #include <stdlib.h>
   9088 int
   9089 main ()
   9090 {
   9091 void *foo(size_t size) __attribute__((alloc_size(1)));
   9092   ;
   9093   return 0;
   9094 }
   9095 _ACEOF
   9096 if ac_fn_c_try_link "$LINENO"; then :
   9097   je_cv_alloc_size=yes
   9098 else
   9099   je_cv_alloc_size=no
   9100 fi
   9101 rm -f core conftest.err conftest.$ac_objext \
   9102     conftest$ac_exeext conftest.$ac_ext
   9103 fi
   9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
   9105 $as_echo "$je_cv_alloc_size" >&6; }
   9106 
   9107 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9108 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9109   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9110 else
   9111   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9112 fi
   9113 
   9114 
   9115 if test "x${je_cv_alloc_size}" = "xyes" ; then
   9116 
   9117 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
   9118 
   9119 fi
   9120 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9121 
   9122 
   9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   9124 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   9125 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9126 T_APPEND_V=-Werror
   9127   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9128   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9129 else
   9130   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9131 fi
   9132 
   9133 
   9134 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9135   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9136 else
   9137   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9138 fi
   9139 
   9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9141 /* end confdefs.h.  */
   9142 
   9143 
   9144 int
   9145 main ()
   9146 {
   9147 
   9148     return 0;
   9149 
   9150   ;
   9151   return 0;
   9152 }
   9153 _ACEOF
   9154 if ac_fn_c_try_compile "$LINENO"; then :
   9155   je_cv_cflags_added=-Werror
   9156               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9157 $as_echo "yes" >&6; }
   9158 else
   9159   je_cv_cflags_added=
   9160               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9161 $as_echo "no" >&6; }
   9162               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9163 
   9164 fi
   9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9166 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9167   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9168 else
   9169   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9170 fi
   9171 
   9172 
   9173 
   9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   9175 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   9176 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9177 T_APPEND_V=-herror_on_warning
   9178   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9179   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9180 else
   9181   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9182 fi
   9183 
   9184 
   9185 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9186   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9187 else
   9188   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9189 fi
   9190 
   9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9192 /* end confdefs.h.  */
   9193 
   9194 
   9195 int
   9196 main ()
   9197 {
   9198 
   9199     return 0;
   9200 
   9201   ;
   9202   return 0;
   9203 }
   9204 _ACEOF
   9205 if ac_fn_c_try_compile "$LINENO"; then :
   9206   je_cv_cflags_added=-herror_on_warning
   9207               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9208 $as_echo "yes" >&6; }
   9209 else
   9210   je_cv_cflags_added=
   9211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9212 $as_echo "no" >&6; }
   9213               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9214 
   9215 fi
   9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9217 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9218   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9219 else
   9220   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9221 fi
   9222 
   9223 
   9224 
   9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
   9226 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
   9227 if ${je_cv_format_gnu_printf+:} false; then :
   9228   $as_echo_n "(cached) " >&6
   9229 else
   9230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9231 /* end confdefs.h.  */
   9232 #include <stdlib.h>
   9233 int
   9234 main ()
   9235 {
   9236 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
   9237   ;
   9238   return 0;
   9239 }
   9240 _ACEOF
   9241 if ac_fn_c_try_link "$LINENO"; then :
   9242   je_cv_format_gnu_printf=yes
   9243 else
   9244   je_cv_format_gnu_printf=no
   9245 fi
   9246 rm -f core conftest.err conftest.$ac_objext \
   9247     conftest$ac_exeext conftest.$ac_ext
   9248 fi
   9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
   9250 $as_echo "$je_cv_format_gnu_printf" >&6; }
   9251 
   9252 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9253 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9254   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9255 else
   9256   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9257 fi
   9258 
   9259 
   9260 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
   9261 
   9262 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
   9263 
   9264 fi
   9265 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9266 
   9267 
   9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   9269 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   9270 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9271 T_APPEND_V=-Werror
   9272   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9273   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9274 else
   9275   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9276 fi
   9277 
   9278 
   9279 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9280   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9281 else
   9282   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9283 fi
   9284 
   9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9286 /* end confdefs.h.  */
   9287 
   9288 
   9289 int
   9290 main ()
   9291 {
   9292 
   9293     return 0;
   9294 
   9295   ;
   9296   return 0;
   9297 }
   9298 _ACEOF
   9299 if ac_fn_c_try_compile "$LINENO"; then :
   9300   je_cv_cflags_added=-Werror
   9301               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9302 $as_echo "yes" >&6; }
   9303 else
   9304   je_cv_cflags_added=
   9305               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9306 $as_echo "no" >&6; }
   9307               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9308 
   9309 fi
   9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9311 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9312   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9313 else
   9314   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9315 fi
   9316 
   9317 
   9318 
   9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   9320 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   9321 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9322 T_APPEND_V=-herror_on_warning
   9323   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9324   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9325 else
   9326   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9327 fi
   9328 
   9329 
   9330 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9331   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9332 else
   9333   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9334 fi
   9335 
   9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9337 /* end confdefs.h.  */
   9338 
   9339 
   9340 int
   9341 main ()
   9342 {
   9343 
   9344     return 0;
   9345 
   9346   ;
   9347   return 0;
   9348 }
   9349 _ACEOF
   9350 if ac_fn_c_try_compile "$LINENO"; then :
   9351   je_cv_cflags_added=-herror_on_warning
   9352               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9353 $as_echo "yes" >&6; }
   9354 else
   9355   je_cv_cflags_added=
   9356               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9357 $as_echo "no" >&6; }
   9358               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9359 
   9360 fi
   9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9362 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9363   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9364 else
   9365   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9366 fi
   9367 
   9368 
   9369 
   9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
   9371 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
   9372 if ${je_cv_format_printf+:} false; then :
   9373   $as_echo_n "(cached) " >&6
   9374 else
   9375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9376 /* end confdefs.h.  */
   9377 #include <stdlib.h>
   9378 int
   9379 main ()
   9380 {
   9381 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
   9382   ;
   9383   return 0;
   9384 }
   9385 _ACEOF
   9386 if ac_fn_c_try_link "$LINENO"; then :
   9387   je_cv_format_printf=yes
   9388 else
   9389   je_cv_format_printf=no
   9390 fi
   9391 rm -f core conftest.err conftest.$ac_objext \
   9392     conftest$ac_exeext conftest.$ac_ext
   9393 fi
   9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
   9395 $as_echo "$je_cv_format_printf" >&6; }
   9396 
   9397 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9398 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9399   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9400 else
   9401   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9402 fi
   9403 
   9404 
   9405 if test "x${je_cv_format_printf}" = "xyes" ; then
   9406 
   9407 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
   9408 
   9409 fi
   9410 
   9411 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9412 
   9413 
   9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   9415 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   9416 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9417 T_APPEND_V=-Werror
   9418   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9419   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9420 else
   9421   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9422 fi
   9423 
   9424 
   9425 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9426   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9427 else
   9428   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9429 fi
   9430 
   9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9432 /* end confdefs.h.  */
   9433 
   9434 
   9435 int
   9436 main ()
   9437 {
   9438 
   9439     return 0;
   9440 
   9441   ;
   9442   return 0;
   9443 }
   9444 _ACEOF
   9445 if ac_fn_c_try_compile "$LINENO"; then :
   9446   je_cv_cflags_added=-Werror
   9447               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9448 $as_echo "yes" >&6; }
   9449 else
   9450   je_cv_cflags_added=
   9451               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9452 $as_echo "no" >&6; }
   9453               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9454 
   9455 fi
   9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9457 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9458   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9459 else
   9460   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9461 fi
   9462 
   9463 
   9464 
   9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   9466 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   9467 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9468 T_APPEND_V=-herror_on_warning
   9469   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9470   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9471 else
   9472   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9473 fi
   9474 
   9475 
   9476 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9477   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9478 else
   9479   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9480 fi
   9481 
   9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9483 /* end confdefs.h.  */
   9484 
   9485 
   9486 int
   9487 main ()
   9488 {
   9489 
   9490     return 0;
   9491 
   9492   ;
   9493   return 0;
   9494 }
   9495 _ACEOF
   9496 if ac_fn_c_try_compile "$LINENO"; then :
   9497   je_cv_cflags_added=-herror_on_warning
   9498               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9499 $as_echo "yes" >&6; }
   9500 else
   9501   je_cv_cflags_added=
   9502               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9503 $as_echo "no" >&6; }
   9504               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9505 
   9506 fi
   9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9508 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9509   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9510 else
   9511   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9512 fi
   9513 
   9514 
   9515 
   9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
   9517 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
   9518 if ${je_cv_format_arg+:} false; then :
   9519   $as_echo_n "(cached) " >&6
   9520 else
   9521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9522 /* end confdefs.h.  */
   9523 #include <stdlib.h>
   9524 int
   9525 main ()
   9526 {
   9527 const char * __attribute__((__format_arg__(1))) foo(const char *format);
   9528   ;
   9529   return 0;
   9530 }
   9531 _ACEOF
   9532 if ac_fn_c_try_link "$LINENO"; then :
   9533   je_cv_format_arg=yes
   9534 else
   9535   je_cv_format_arg=no
   9536 fi
   9537 rm -f core conftest.err conftest.$ac_objext \
   9538     conftest$ac_exeext conftest.$ac_ext
   9539 fi
   9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5
   9541 $as_echo "$je_cv_format_arg" >&6; }
   9542 
   9543 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9544 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9545   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9546 else
   9547   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9548 fi
   9549 
   9550 
   9551 if test "x${je_cv_format_arg}" = "xyes" ; then
   9552 
   9553 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG  " >>confdefs.h
   9554 
   9555 fi
   9556 
   9557 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9558 
   9559 
   9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
   9561 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
   9562 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9563 T_APPEND_V=-Wimplicit-fallthrough
   9564   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9565   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9566 else
   9567   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9568 fi
   9569 
   9570 
   9571 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9572   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9573 else
   9574   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9575 fi
   9576 
   9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9578 /* end confdefs.h.  */
   9579 
   9580 
   9581 int
   9582 main ()
   9583 {
   9584 
   9585     return 0;
   9586 
   9587   ;
   9588   return 0;
   9589 }
   9590 _ACEOF
   9591 if ac_fn_c_try_compile "$LINENO"; then :
   9592   je_cv_cflags_added=-Wimplicit-fallthrough
   9593               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9594 $as_echo "yes" >&6; }
   9595 else
   9596   je_cv_cflags_added=
   9597               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9598 $as_echo "no" >&6; }
   9599               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9600 
   9601 fi
   9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9603 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9604   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9605 else
   9606   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9607 fi
   9608 
   9609 
   9610 
   9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fallthrough attribute is compilable" >&5
   9612 $as_echo_n "checking whether fallthrough attribute is compilable... " >&6; }
   9613 if ${je_cv_fallthrough+:} false; then :
   9614   $as_echo_n "(cached) " >&6
   9615 else
   9616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9617 /* end confdefs.h.  */
   9618 #if !__has_attribute(fallthrough)
   9619                #error "foo"
   9620                #endif
   9621 int
   9622 main ()
   9623 {
   9624 int x = 0;
   9625                switch (x) {
   9626                case 0: __attribute__((__fallthrough__));
   9627                case 1: return 1;
   9628                }
   9629   ;
   9630   return 0;
   9631 }
   9632 _ACEOF
   9633 if ac_fn_c_try_link "$LINENO"; then :
   9634   je_cv_fallthrough=yes
   9635 else
   9636   je_cv_fallthrough=no
   9637 fi
   9638 rm -f core conftest.err conftest.$ac_objext \
   9639     conftest$ac_exeext conftest.$ac_ext
   9640 fi
   9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_fallthrough" >&5
   9642 $as_echo "$je_cv_fallthrough" >&6; }
   9643 
   9644 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9645 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9646   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9647 else
   9648   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9649 fi
   9650 
   9651 
   9652 if test "x${je_cv_fallthrough}" = "xyes" ; then
   9653 
   9654 $as_echo "#define JEMALLOC_HAVE_ATTR_FALLTHROUGH  " >>confdefs.h
   9655 
   9656 
   9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
   9658 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
   9659 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9660 T_APPEND_V=-Wimplicit-fallthrough
   9661   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9662   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9663 else
   9664   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9665 fi
   9666 
   9667 
   9668 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9669   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9670 else
   9671   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9672 fi
   9673 
   9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9675 /* end confdefs.h.  */
   9676 
   9677 
   9678 int
   9679 main ()
   9680 {
   9681 
   9682     return 0;
   9683 
   9684   ;
   9685   return 0;
   9686 }
   9687 _ACEOF
   9688 if ac_fn_c_try_compile "$LINENO"; then :
   9689   je_cv_cflags_added=-Wimplicit-fallthrough
   9690               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9691 $as_echo "yes" >&6; }
   9692 else
   9693   je_cv_cflags_added=
   9694               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9695 $as_echo "no" >&6; }
   9696               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9697 
   9698 fi
   9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9700 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9701   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9702 else
   9703   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9704 fi
   9705 
   9706 
   9707 
   9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
   9709 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
   9710 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   9711 T_APPEND_V=-Wimplicit-fallthrough
   9712   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9713   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   9714 else
   9715   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   9716 fi
   9717 
   9718 
   9719 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9720   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9721 else
   9722   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9723 fi
   9724 
   9725 ac_ext=cpp
   9726 ac_cpp='$CXXCPP $CPPFLAGS'
   9727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9730 
   9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9732 /* end confdefs.h.  */
   9733 
   9734 
   9735 int
   9736 main ()
   9737 {
   9738 
   9739     return 0;
   9740 
   9741   ;
   9742   return 0;
   9743 }
   9744 _ACEOF
   9745 if ac_fn_cxx_try_compile "$LINENO"; then :
   9746   je_cv_cxxflags_added=-Wimplicit-fallthrough
   9747               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9748 $as_echo "yes" >&6; }
   9749 else
   9750   je_cv_cxxflags_added=
   9751               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9752 $as_echo "no" >&6; }
   9753               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   9754 
   9755 fi
   9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9757 ac_ext=c
   9758 ac_cpp='$CPP $CPPFLAGS'
   9759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9762 
   9763 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9764   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9765 else
   9766   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9767 fi
   9768 
   9769 
   9770 fi
   9771 
   9772 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9773 
   9774 
   9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   9776 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   9777 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9778 T_APPEND_V=-Werror
   9779   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9780   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9781 else
   9782   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9783 fi
   9784 
   9785 
   9786 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9787   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9788 else
   9789   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9790 fi
   9791 
   9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9793 /* end confdefs.h.  */
   9794 
   9795 
   9796 int
   9797 main ()
   9798 {
   9799 
   9800     return 0;
   9801 
   9802   ;
   9803   return 0;
   9804 }
   9805 _ACEOF
   9806 if ac_fn_c_try_compile "$LINENO"; then :
   9807   je_cv_cflags_added=-Werror
   9808               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9809 $as_echo "yes" >&6; }
   9810 else
   9811   je_cv_cflags_added=
   9812               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9813 $as_echo "no" >&6; }
   9814               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9815 
   9816 fi
   9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9818 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9819   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9820 else
   9821   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9822 fi
   9823 
   9824 
   9825 
   9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   9827 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   9828 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9829 T_APPEND_V=-herror_on_warning
   9830   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9831   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9832 else
   9833   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9834 fi
   9835 
   9836 
   9837 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9838   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9839 else
   9840   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9841 fi
   9842 
   9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9844 /* end confdefs.h.  */
   9845 
   9846 
   9847 int
   9848 main ()
   9849 {
   9850 
   9851     return 0;
   9852 
   9853   ;
   9854   return 0;
   9855 }
   9856 _ACEOF
   9857 if ac_fn_c_try_compile "$LINENO"; then :
   9858   je_cv_cflags_added=-herror_on_warning
   9859               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9860 $as_echo "yes" >&6; }
   9861 else
   9862   je_cv_cflags_added=
   9863               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9864 $as_echo "no" >&6; }
   9865               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9866 
   9867 fi
   9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9869 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9870   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9871 else
   9872   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9873 fi
   9874 
   9875 
   9876 
   9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cold attribute is compilable" >&5
   9878 $as_echo_n "checking whether cold attribute is compilable... " >&6; }
   9879 if ${je_cv_cold+:} false; then :
   9880   $as_echo_n "(cached) " >&6
   9881 else
   9882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9883 /* end confdefs.h.  */
   9884 
   9885 int
   9886 main ()
   9887 {
   9888 __attribute__((__cold__)) void foo();
   9889   ;
   9890   return 0;
   9891 }
   9892 _ACEOF
   9893 if ac_fn_c_try_link "$LINENO"; then :
   9894   je_cv_cold=yes
   9895 else
   9896   je_cv_cold=no
   9897 fi
   9898 rm -f core conftest.err conftest.$ac_objext \
   9899     conftest$ac_exeext conftest.$ac_ext
   9900 fi
   9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cold" >&5
   9902 $as_echo "$je_cv_cold" >&6; }
   9903 
   9904 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   9905 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9906   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9907 else
   9908   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9909 fi
   9910 
   9911 
   9912 if test "x${je_cv_cold}" = "xyes" ; then
   9913 
   9914 $as_echo "#define JEMALLOC_HAVE_ATTR_COLD  " >>confdefs.h
   9915 
   9916 fi
   9917 
   9918 
   9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vm_make_tag is compilable" >&5
   9920 $as_echo_n "checking whether vm_make_tag is compilable... " >&6; }
   9921 if ${je_cv_vm_make_tag+:} false; then :
   9922   $as_echo_n "(cached) " >&6
   9923 else
   9924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9925 /* end confdefs.h.  */
   9926 #include <sys/mman.h>
   9927 	       #include <mach/vm_statistics.h>
   9928 int
   9929 main ()
   9930 {
   9931 void *p;
   9932 	       p = mmap(0, 16, PROT_READ, MAP_ANON|MAP_PRIVATE, VM_MAKE_TAG(1), 0);
   9933 	       munmap(p, 16);
   9934   ;
   9935   return 0;
   9936 }
   9937 _ACEOF
   9938 if ac_fn_c_try_link "$LINENO"; then :
   9939   je_cv_vm_make_tag=yes
   9940 else
   9941   je_cv_vm_make_tag=no
   9942 fi
   9943 rm -f core conftest.err conftest.$ac_objext \
   9944     conftest$ac_exeext conftest.$ac_ext
   9945 fi
   9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_vm_make_tag" >&5
   9947 $as_echo "$je_cv_vm_make_tag" >&6; }
   9948 
   9949 if test "x${je_cv_vm_make_tag}" = "xyes" ; then
   9950 
   9951 $as_echo "#define JEMALLOC_HAVE_VM_MAKE_TAG  " >>confdefs.h
   9952 
   9953 fi
   9954 
   9955 
   9956 # Check whether --with-rpath was given.
   9957 if test "${with_rpath+set}" = set; then :
   9958   withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
   9959   RPATH_EXTRA=
   9960 else
   9961   RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
   9962 fi
   9963 else
   9964   RPATH_EXTRA=
   9965 
   9966 fi
   9967 
   9968 
   9969 
   9970 # Check whether --enable-autogen was given.
   9971 if test "${enable_autogen+set}" = set; then :
   9972   enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
   9973   enable_autogen="0"
   9974 else
   9975   enable_autogen="1"
   9976 fi
   9977 
   9978 else
   9979   enable_autogen="0"
   9980 
   9981 fi
   9982 
   9983 
   9984 
   9985 # Find a good install program.  We prefer a C program (faster),
   9986 # so one script is as good as another.  But avoid the broken or
   9987 # incompatible versions:
   9988 # SysV /etc/install, /usr/sbin/install
   9989 # SunOS /usr/etc/install
   9990 # IRIX /sbin/install
   9991 # AIX /bin/install
   9992 # AmigaOS /C/install, which installs bootblocks on floppy discs
   9993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   9994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   9995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   9996 # OS/2's system install, which has a completely different semantic
   9997 # ./install, which can be erroneously created by make from ./install.sh.
   9998 # Reject install programs that cannot install multiple files.
   9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   10000 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   10001 if test -z "$INSTALL"; then
   10002 if ${ac_cv_path_install+:} false; then :
   10003   $as_echo_n "(cached) " >&6
   10004 else
   10005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10006 for as_dir in $PATH
   10007 do
   10008   IFS=$as_save_IFS
   10009   test -z "$as_dir" && as_dir=.
   10010     # Account for people who put trailing slashes in PATH elements.
   10011 case $as_dir/ in #((
   10012   ./ | .// | /[cC]/* | \
   10013   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   10014   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   10015   /usr/ucb/* ) ;;
   10016   *)
   10017     # OSF1 and SCO ODT 3.0 have their own names for install.
   10018     # Don't use installbsd from OSF since it installs stuff as root
   10019     # by default.
   10020     for ac_prog in ginstall scoinst install; do
   10021       for ac_exec_ext in '' $ac_executable_extensions; do
   10022 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   10023 	  if test $ac_prog = install &&
   10024 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   10025 	    # AIX install.  It has an incompatible calling convention.
   10026 	    :
   10027 	  elif test $ac_prog = install &&
   10028 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   10029 	    # program-specific install script used by HP pwplus--don't use.
   10030 	    :
   10031 	  else
   10032 	    rm -rf conftest.one conftest.two conftest.dir
   10033 	    echo one > conftest.one
   10034 	    echo two > conftest.two
   10035 	    mkdir conftest.dir
   10036 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   10037 	      test -s conftest.one && test -s conftest.two &&
   10038 	      test -s conftest.dir/conftest.one &&
   10039 	      test -s conftest.dir/conftest.two
   10040 	    then
   10041 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   10042 	      break 3
   10043 	    fi
   10044 	  fi
   10045 	fi
   10046       done
   10047     done
   10048     ;;
   10049 esac
   10050 
   10051   done
   10052 IFS=$as_save_IFS
   10053 
   10054 rm -rf conftest.one conftest.two conftest.dir
   10055 
   10056 fi
   10057   if test "${ac_cv_path_install+set}" = set; then
   10058     INSTALL=$ac_cv_path_install
   10059   else
   10060     # As a last resort, use the slow shell script.  Don't cache a
   10061     # value for INSTALL within a source directory, because that will
   10062     # break other packages using the cache if that directory is
   10063     # removed, or if the value is a relative name.
   10064     INSTALL=$ac_install_sh
   10065   fi
   10066 fi
   10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   10068 $as_echo "$INSTALL" >&6; }
   10069 
   10070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   10071 # It thinks the first close brace ends the variable substitution.
   10072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   10073 
   10074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   10075 
   10076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   10077 
   10078 if test -n "$ac_tool_prefix"; then
   10079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   10080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10082 $as_echo_n "checking for $ac_word... " >&6; }
   10083 if ${ac_cv_prog_RANLIB+:} false; then :
   10084   $as_echo_n "(cached) " >&6
   10085 else
   10086   if test -n "$RANLIB"; then
   10087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   10088 else
   10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10090 for as_dir in $PATH
   10091 do
   10092   IFS=$as_save_IFS
   10093   test -z "$as_dir" && as_dir=.
   10094     for ac_exec_ext in '' $ac_executable_extensions; do
   10095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   10097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10098     break 2
   10099   fi
   10100 done
   10101   done
   10102 IFS=$as_save_IFS
   10103 
   10104 fi
   10105 fi
   10106 RANLIB=$ac_cv_prog_RANLIB
   10107 if test -n "$RANLIB"; then
   10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   10109 $as_echo "$RANLIB" >&6; }
   10110 else
   10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10112 $as_echo "no" >&6; }
   10113 fi
   10114 
   10115 
   10116 fi
   10117 if test -z "$ac_cv_prog_RANLIB"; then
   10118   ac_ct_RANLIB=$RANLIB
   10119   # Extract the first word of "ranlib", so it can be a program name with args.
   10120 set dummy ranlib; ac_word=$2
   10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10122 $as_echo_n "checking for $ac_word... " >&6; }
   10123 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   10124   $as_echo_n "(cached) " >&6
   10125 else
   10126   if test -n "$ac_ct_RANLIB"; then
   10127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   10128 else
   10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10130 for as_dir in $PATH
   10131 do
   10132   IFS=$as_save_IFS
   10133   test -z "$as_dir" && as_dir=.
   10134     for ac_exec_ext in '' $ac_executable_extensions; do
   10135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10136     ac_cv_prog_ac_ct_RANLIB="ranlib"
   10137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10138     break 2
   10139   fi
   10140 done
   10141   done
   10142 IFS=$as_save_IFS
   10143 
   10144 fi
   10145 fi
   10146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   10147 if test -n "$ac_ct_RANLIB"; then
   10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   10149 $as_echo "$ac_ct_RANLIB" >&6; }
   10150 else
   10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10152 $as_echo "no" >&6; }
   10153 fi
   10154 
   10155   if test "x$ac_ct_RANLIB" = x; then
   10156     RANLIB=":"
   10157   else
   10158     case $cross_compiling:$ac_tool_warned in
   10159 yes:)
   10160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   10161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   10162 ac_tool_warned=yes ;;
   10163 esac
   10164     RANLIB=$ac_ct_RANLIB
   10165   fi
   10166 else
   10167   RANLIB="$ac_cv_prog_RANLIB"
   10168 fi
   10169 
   10170 # Extract the first word of "ld", so it can be a program name with args.
   10171 set dummy ld; ac_word=$2
   10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10173 $as_echo_n "checking for $ac_word... " >&6; }
   10174 if ${ac_cv_path_LD+:} false; then :
   10175   $as_echo_n "(cached) " >&6
   10176 else
   10177   case $LD in
   10178   [\\/]* | ?:[\\/]*)
   10179   ac_cv_path_LD="$LD" # Let the user override the test with a path.
   10180   ;;
   10181   *)
   10182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10183 for as_dir in $PATH
   10184 do
   10185   IFS=$as_save_IFS
   10186   test -z "$as_dir" && as_dir=.
   10187     for ac_exec_ext in '' $ac_executable_extensions; do
   10188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10189     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
   10190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10191     break 2
   10192   fi
   10193 done
   10194   done
   10195 IFS=$as_save_IFS
   10196 
   10197   test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
   10198   ;;
   10199 esac
   10200 fi
   10201 LD=$ac_cv_path_LD
   10202 if test -n "$LD"; then
   10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   10204 $as_echo "$LD" >&6; }
   10205 else
   10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10207 $as_echo "no" >&6; }
   10208 fi
   10209 
   10210 
   10211 # Extract the first word of "autoconf", so it can be a program name with args.
   10212 set dummy autoconf; ac_word=$2
   10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10214 $as_echo_n "checking for $ac_word... " >&6; }
   10215 if ${ac_cv_path_AUTOCONF+:} false; then :
   10216   $as_echo_n "(cached) " >&6
   10217 else
   10218   case $AUTOCONF in
   10219   [\\/]* | ?:[\\/]*)
   10220   ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
   10221   ;;
   10222   *)
   10223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10224 for as_dir in $PATH
   10225 do
   10226   IFS=$as_save_IFS
   10227   test -z "$as_dir" && as_dir=.
   10228     for ac_exec_ext in '' $ac_executable_extensions; do
   10229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10230     ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
   10231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10232     break 2
   10233   fi
   10234 done
   10235   done
   10236 IFS=$as_save_IFS
   10237 
   10238   test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
   10239   ;;
   10240 esac
   10241 fi
   10242 AUTOCONF=$ac_cv_path_AUTOCONF
   10243 if test -n "$AUTOCONF"; then
   10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
   10245 $as_echo "$AUTOCONF" >&6; }
   10246 else
   10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10248 $as_echo "no" >&6; }
   10249 fi
   10250 
   10251 
   10252 
   10253 # Check whether --enable-doc was given.
   10254 if test "${enable_doc+set}" = set; then :
   10255   enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then
   10256   enable_doc="0"
   10257 else
   10258   enable_doc="1"
   10259 fi
   10260 
   10261 else
   10262   enable_doc="1"
   10263 
   10264 fi
   10265 
   10266 
   10267 
   10268 # Check whether --enable-shared was given.
   10269 if test "${enable_shared+set}" = set; then :
   10270   enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
   10271   enable_shared="0"
   10272 else
   10273   enable_shared="1"
   10274 fi
   10275 
   10276 else
   10277   enable_shared="1"
   10278 
   10279 fi
   10280 
   10281 
   10282 
   10283 # Check whether --enable-static was given.
   10284 if test "${enable_static+set}" = set; then :
   10285   enableval=$enable_static; if test "x$enable_static" = "xno" ; then
   10286   enable_static="0"
   10287 else
   10288   enable_static="1"
   10289 fi
   10290 
   10291 else
   10292   enable_static="1"
   10293 
   10294 fi
   10295 
   10296 
   10297 
   10298 if test "$enable_shared$enable_static" = "00" ; then
   10299   as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
   10300 fi
   10301 
   10302 
   10303 # Check whether --with-mangling was given.
   10304 if test "${with_mangling+set}" = set; then :
   10305   withval=$with_mangling; mangling_map="$with_mangling"
   10306 else
   10307   mangling_map=""
   10308 fi
   10309 
   10310 
   10311 
   10312 # Check whether --with-jemalloc_prefix was given.
   10313 if test "${with_jemalloc_prefix+set}" = set; then :
   10314   withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
   10315 else
   10316   if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
   10317   JEMALLOC_PREFIX=""
   10318 else
   10319   JEMALLOC_PREFIX="je_"
   10320 fi
   10321 
   10322 fi
   10323 
   10324 if test "x$JEMALLOC_PREFIX" = "x" ; then
   10325 
   10326 $as_echo "#define JEMALLOC_IS_MALLOC  " >>confdefs.h
   10327 
   10328 else
   10329   JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
   10330 
   10331 cat >>confdefs.h <<_ACEOF
   10332 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
   10333 _ACEOF
   10334 
   10335 
   10336 cat >>confdefs.h <<_ACEOF
   10337 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
   10338 _ACEOF
   10339 
   10340 fi
   10341 
   10342 
   10343 
   10344 
   10345 # Check whether --with-export was given.
   10346 if test "${with_export+set}" = set; then :
   10347   withval=$with_export; if test "x$with_export" = "xno"; then
   10348 
   10349 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
   10350 
   10351 fi
   10352 
   10353 fi
   10354 
   10355 
   10356 public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_conf_2_conf_harder malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
   10357 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
   10358 if test "x$ac_cv_func_memalign" = xyes; then :
   10359 
   10360 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
   10361 
   10362 	       public_syms="${public_syms} memalign"
   10363 fi
   10364 
   10365 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
   10366 if test "x$ac_cv_func_valloc" = xyes; then :
   10367 
   10368 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
   10369 
   10370 	       public_syms="${public_syms} valloc"
   10371 fi
   10372 
   10373 ac_fn_c_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
   10374 if test "x$ac_cv_func_malloc_size" = xyes; then :
   10375 
   10376 $as_echo "#define JEMALLOC_HAVE_MALLOC_SIZE  " >>confdefs.h
   10377 
   10378 	       public_syms="${public_syms} malloc_size"
   10379 fi
   10380 
   10381 
   10382 wrap_syms=
   10383 if test "x${JEMALLOC_PREFIX}" = "x" ; then
   10384   ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
   10385 if test "x$ac_cv_func___libc_calloc" = xyes; then :
   10386 
   10387 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
   10388 
   10389 		 wrap_syms="${wrap_syms} __libc_calloc"
   10390 fi
   10391 
   10392   ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
   10393 if test "x$ac_cv_func___libc_free" = xyes; then :
   10394 
   10395 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
   10396 
   10397 		 wrap_syms="${wrap_syms} __libc_free"
   10398 fi
   10399 
   10400   ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
   10401 if test "x$ac_cv_func___libc_malloc" = xyes; then :
   10402 
   10403 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
   10404 
   10405 		 wrap_syms="${wrap_syms} __libc_malloc"
   10406 fi
   10407 
   10408   ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
   10409 if test "x$ac_cv_func___libc_memalign" = xyes; then :
   10410 
   10411 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
   10412 
   10413 		 wrap_syms="${wrap_syms} __libc_memalign"
   10414 fi
   10415 
   10416   ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
   10417 if test "x$ac_cv_func___libc_realloc" = xyes; then :
   10418 
   10419 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
   10420 
   10421 		 wrap_syms="${wrap_syms} __libc_realloc"
   10422 fi
   10423 
   10424   ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
   10425 if test "x$ac_cv_func___libc_valloc" = xyes; then :
   10426 
   10427 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
   10428 
   10429 		 wrap_syms="${wrap_syms} __libc_valloc"
   10430 fi
   10431 
   10432   ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
   10433 if test "x$ac_cv_func___posix_memalign" = xyes; then :
   10434 
   10435 $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
   10436 
   10437 		 wrap_syms="${wrap_syms} __posix_memalign"
   10438 fi
   10439 
   10440 fi
   10441 
   10442 case "${host}" in
   10443   *-*-mingw* | *-*-cygwin*)
   10444     wrap_syms="${wrap_syms} tls_callback"
   10445     ;;
   10446   *)
   10447     ;;
   10448 esac
   10449 
   10450 
   10451 # Check whether --with-private_namespace was given.
   10452 if test "${with_private_namespace+set}" = set; then :
   10453   withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
   10454 else
   10455   JEMALLOC_PRIVATE_NAMESPACE="je_"
   10456 
   10457 fi
   10458 
   10459 
   10460 cat >>confdefs.h <<_ACEOF
   10461 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
   10462 _ACEOF
   10463 
   10464 private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
   10465 
   10466 
   10467 
   10468 # Check whether --with-install_suffix was given.
   10469 if test "${with_install_suffix+set}" = set; then :
   10470   withval=$with_install_suffix; case "$with_install_suffix" in
   10471    *\ * ) as_fn_error $? "Install suffix should not contain spaces" "$LINENO" 5 ;;
   10472    * ) INSTALL_SUFFIX="$with_install_suffix" ;;
   10473 esac
   10474 else
   10475   INSTALL_SUFFIX=
   10476 
   10477 fi
   10478 
   10479 install_suffix="$INSTALL_SUFFIX"
   10480 
   10481 
   10482 
   10483 # Check whether --with-malloc_conf was given.
   10484 if test "${with_malloc_conf+set}" = set; then :
   10485   withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
   10486 else
   10487   JEMALLOC_CONFIG_MALLOC_CONF=""
   10488 
   10489 fi
   10490 
   10491 config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
   10492 
   10493 cat >>confdefs.h <<_ACEOF
   10494 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
   10495 _ACEOF
   10496 
   10497 
   10498 je_="je_"
   10499 
   10500 
   10501 cfgoutputs_in="Makefile.in"
   10502 cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
   10503 cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
   10504 cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
   10505 cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
   10506 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
   10507 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
   10508 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
   10509 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
   10510 cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
   10511 cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
   10512 
   10513 cfgoutputs_out="Makefile"
   10514 cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
   10515 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
   10516 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
   10517 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
   10518 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
   10519 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
   10520 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
   10521 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
   10522 cfgoutputs_out="${cfgoutputs_out} test/test.sh"
   10523 cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
   10524 
   10525 cfgoutputs_tup="Makefile"
   10526 cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
   10527 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
   10528 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
   10529 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
   10530 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
   10531 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
   10532 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
   10533 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
   10534 cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
   10535 cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
   10536 
   10537 cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
   10538 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
   10539 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
   10540 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
   10541 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
   10542 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
   10543 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
   10544 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
   10545 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
   10546 cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
   10547 
   10548 cfghdrs_out="include/jemalloc/jemalloc_defs.h"
   10549 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
   10550 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
   10551 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
   10552 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
   10553 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
   10554 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
   10555 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
   10556 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
   10557 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
   10558 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
   10559 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
   10560 cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
   10561 
   10562 cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
   10563 cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
   10564 cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
   10565 
   10566 
   10567 # Check whether --enable-debug was given.
   10568 if test "${enable_debug+set}" = set; then :
   10569   enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
   10570   enable_debug="0"
   10571 else
   10572   enable_debug="1"
   10573 fi
   10574 
   10575 else
   10576   enable_debug="0"
   10577 
   10578 fi
   10579 
   10580 if test "x$enable_debug" = "x1" ; then
   10581 
   10582 $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
   10583 
   10584 fi
   10585 
   10586 
   10587 if test "x$enable_debug" = "x0" ; then
   10588   if test "x$GCC" = "xyes" ; then
   10589 
   10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
   10591 $as_echo_n "checking whether compiler supports -O3... " >&6; }
   10592 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10593 T_APPEND_V=-O3
   10594   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10595   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10596 else
   10597   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10598 fi
   10599 
   10600 
   10601 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10602   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10603 else
   10604   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10605 fi
   10606 
   10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10608 /* end confdefs.h.  */
   10609 
   10610 
   10611 int
   10612 main ()
   10613 {
   10614 
   10615     return 0;
   10616 
   10617   ;
   10618   return 0;
   10619 }
   10620 _ACEOF
   10621 if ac_fn_c_try_compile "$LINENO"; then :
   10622   je_cv_cflags_added=-O3
   10623               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10624 $as_echo "yes" >&6; }
   10625 else
   10626   je_cv_cflags_added=
   10627               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10628 $as_echo "no" >&6; }
   10629               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10630 
   10631 fi
   10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10633 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10634   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10635 else
   10636   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10637 fi
   10638 
   10639 
   10640 
   10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
   10642 $as_echo_n "checking whether compiler supports -O3... " >&6; }
   10643 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   10644 T_APPEND_V=-O3
   10645   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10646   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   10647 else
   10648   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   10649 fi
   10650 
   10651 
   10652 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10653   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10654 else
   10655   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10656 fi
   10657 
   10658 ac_ext=cpp
   10659 ac_cpp='$CXXCPP $CPPFLAGS'
   10660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   10663 
   10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10665 /* end confdefs.h.  */
   10666 
   10667 
   10668 int
   10669 main ()
   10670 {
   10671 
   10672     return 0;
   10673 
   10674   ;
   10675   return 0;
   10676 }
   10677 _ACEOF
   10678 if ac_fn_cxx_try_compile "$LINENO"; then :
   10679   je_cv_cxxflags_added=-O3
   10680               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10681 $as_echo "yes" >&6; }
   10682 else
   10683   je_cv_cxxflags_added=
   10684               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10685 $as_echo "no" >&6; }
   10686               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   10687 
   10688 fi
   10689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10690 ac_ext=c
   10691 ac_cpp='$CPP $CPPFLAGS'
   10692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10695 
   10696 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10697   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10698 else
   10699   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10700 fi
   10701 
   10702 
   10703 
   10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
   10705 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
   10706 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10707 T_APPEND_V=-funroll-loops
   10708   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10709   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10710 else
   10711   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10712 fi
   10713 
   10714 
   10715 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10716   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10717 else
   10718   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10719 fi
   10720 
   10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10722 /* end confdefs.h.  */
   10723 
   10724 
   10725 int
   10726 main ()
   10727 {
   10728 
   10729     return 0;
   10730 
   10731   ;
   10732   return 0;
   10733 }
   10734 _ACEOF
   10735 if ac_fn_c_try_compile "$LINENO"; then :
   10736   je_cv_cflags_added=-funroll-loops
   10737               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10738 $as_echo "yes" >&6; }
   10739 else
   10740   je_cv_cflags_added=
   10741               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10742 $as_echo "no" >&6; }
   10743               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10744 
   10745 fi
   10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10747 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10748   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10749 else
   10750   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10751 fi
   10752 
   10753 
   10754   elif test "x$je_cv_msvc" = "xyes" ; then
   10755 
   10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
   10757 $as_echo_n "checking whether compiler supports -O2... " >&6; }
   10758 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10759 T_APPEND_V=-O2
   10760   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10761   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10762 else
   10763   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10764 fi
   10765 
   10766 
   10767 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10768   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10769 else
   10770   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10771 fi
   10772 
   10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10774 /* end confdefs.h.  */
   10775 
   10776 
   10777 int
   10778 main ()
   10779 {
   10780 
   10781     return 0;
   10782 
   10783   ;
   10784   return 0;
   10785 }
   10786 _ACEOF
   10787 if ac_fn_c_try_compile "$LINENO"; then :
   10788   je_cv_cflags_added=-O2
   10789               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10790 $as_echo "yes" >&6; }
   10791 else
   10792   je_cv_cflags_added=
   10793               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10794 $as_echo "no" >&6; }
   10795               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10796 
   10797 fi
   10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10799 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10800   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10801 else
   10802   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10803 fi
   10804 
   10805 
   10806 
   10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
   10808 $as_echo_n "checking whether compiler supports -O2... " >&6; }
   10809 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   10810 T_APPEND_V=-O2
   10811   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10812   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   10813 else
   10814   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   10815 fi
   10816 
   10817 
   10818 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10819   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10820 else
   10821   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10822 fi
   10823 
   10824 ac_ext=cpp
   10825 ac_cpp='$CXXCPP $CPPFLAGS'
   10826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   10829 
   10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10831 /* end confdefs.h.  */
   10832 
   10833 
   10834 int
   10835 main ()
   10836 {
   10837 
   10838     return 0;
   10839 
   10840   ;
   10841   return 0;
   10842 }
   10843 _ACEOF
   10844 if ac_fn_cxx_try_compile "$LINENO"; then :
   10845   je_cv_cxxflags_added=-O2
   10846               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10847 $as_echo "yes" >&6; }
   10848 else
   10849   je_cv_cxxflags_added=
   10850               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10851 $as_echo "no" >&6; }
   10852               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   10853 
   10854 fi
   10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10856 ac_ext=c
   10857 ac_cpp='$CPP $CPPFLAGS'
   10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10861 
   10862 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10863   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10864 else
   10865   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10866 fi
   10867 
   10868 
   10869   else
   10870 
   10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
   10872 $as_echo_n "checking whether compiler supports -O... " >&6; }
   10873 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10874 T_APPEND_V=-O
   10875   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10876   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10877 else
   10878   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10879 fi
   10880 
   10881 
   10882 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10883   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10884 else
   10885   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10886 fi
   10887 
   10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10889 /* end confdefs.h.  */
   10890 
   10891 
   10892 int
   10893 main ()
   10894 {
   10895 
   10896     return 0;
   10897 
   10898   ;
   10899   return 0;
   10900 }
   10901 _ACEOF
   10902 if ac_fn_c_try_compile "$LINENO"; then :
   10903   je_cv_cflags_added=-O
   10904               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10905 $as_echo "yes" >&6; }
   10906 else
   10907   je_cv_cflags_added=
   10908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10909 $as_echo "no" >&6; }
   10910               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10911 
   10912 fi
   10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10914 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10915   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10916 else
   10917   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10918 fi
   10919 
   10920 
   10921 
   10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
   10923 $as_echo_n "checking whether compiler supports -O... " >&6; }
   10924 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   10925 T_APPEND_V=-O
   10926   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10927   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   10928 else
   10929   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   10930 fi
   10931 
   10932 
   10933 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10934   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10935 else
   10936   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10937 fi
   10938 
   10939 ac_ext=cpp
   10940 ac_cpp='$CXXCPP $CPPFLAGS'
   10941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   10944 
   10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10946 /* end confdefs.h.  */
   10947 
   10948 
   10949 int
   10950 main ()
   10951 {
   10952 
   10953     return 0;
   10954 
   10955   ;
   10956   return 0;
   10957 }
   10958 _ACEOF
   10959 if ac_fn_cxx_try_compile "$LINENO"; then :
   10960   je_cv_cxxflags_added=-O
   10961               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10962 $as_echo "yes" >&6; }
   10963 else
   10964   je_cv_cxxflags_added=
   10965               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10966 $as_echo "no" >&6; }
   10967               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   10968 
   10969 fi
   10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10971 ac_ext=c
   10972 ac_cpp='$CPP $CPPFLAGS'
   10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   10976 
   10977 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   10978   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   10979 else
   10980   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   10981 fi
   10982 
   10983 
   10984   fi
   10985 fi
   10986 
   10987 # Check whether --enable-stats was given.
   10988 if test "${enable_stats+set}" = set; then :
   10989   enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
   10990   enable_stats="0"
   10991 else
   10992   enable_stats="1"
   10993 fi
   10994 
   10995 else
   10996   enable_stats="1"
   10997 
   10998 fi
   10999 
   11000 if test "x$enable_stats" = "x1" ; then
   11001 
   11002 $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
   11003 
   11004 fi
   11005 
   11006 
   11007 # Check whether --enable-experimental_smallocx was given.
   11008 if test "${enable_experimental_smallocx+set}" = set; then :
   11009   enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
   11010 enable_experimental_smallocx="0"
   11011 else
   11012 enable_experimental_smallocx="1"
   11013 fi
   11014 
   11015 else
   11016   enable_experimental_smallocx="0"
   11017 
   11018 fi
   11019 
   11020 if test "x$enable_experimental_smallocx" = "x1" ; then
   11021 
   11022 $as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API  " >>confdefs.h
   11023 
   11024 fi
   11025 
   11026 
   11027 # Check whether --enable-prof was given.
   11028 if test "${enable_prof+set}" = set; then :
   11029   enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
   11030   enable_prof="0"
   11031 else
   11032   enable_prof="1"
   11033 fi
   11034 
   11035 else
   11036   enable_prof="0"
   11037 
   11038 fi
   11039 
   11040 if test "x$enable_prof" = "x1" ; then
   11041   backtrace_method=""
   11042 else
   11043   backtrace_method="N/A"
   11044 fi
   11045 
   11046 # Check whether --enable-prof-libunwind was given.
   11047 if test "${enable_prof_libunwind+set}" = set; then :
   11048   enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
   11049   enable_prof_libunwind="0"
   11050 else
   11051   enable_prof_libunwind="1"
   11052   if test "x$enable_prof" = "x0" ; then
   11053     as_fn_error $? "--enable-prof-libunwind should only be used with --enable-prof" "$LINENO" 5
   11054   fi
   11055 fi
   11056 
   11057 else
   11058   enable_prof_libunwind="0"
   11059 
   11060 fi
   11061 
   11062 
   11063 # Check whether --with-static_libunwind was given.
   11064 if test "${with_static_libunwind+set}" = set; then :
   11065   withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
   11066   LUNWIND="-lunwind"
   11067 else
   11068   if test ! -f "$with_static_libunwind" ; then
   11069     as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
   11070   fi
   11071   LUNWIND="$with_static_libunwind"
   11072 fi
   11073 else
   11074   LUNWIND="-lunwind"
   11075 
   11076 fi
   11077 
   11078 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
   11079   for ac_header in libunwind.h
   11080 do :
   11081   ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
   11082 if test "x$ac_cv_header_libunwind_h" = xyes; then :
   11083   cat >>confdefs.h <<_ACEOF
   11084 #define HAVE_LIBUNWIND_H 1
   11085 _ACEOF
   11086 
   11087 else
   11088   enable_prof_libunwind="0"
   11089 fi
   11090 
   11091 done
   11092 
   11093   if test "x$LUNWIND" = "x-lunwind" ; then
   11094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
   11095 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
   11096 if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
   11097   $as_echo_n "(cached) " >&6
   11098 else
   11099   ac_check_lib_save_LIBS=$LIBS
   11100 LIBS="-lunwind  $LIBS"
   11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11102 /* end confdefs.h.  */
   11103 
   11104 /* Override any GCC internal prototype to avoid an error.
   11105    Use char because int might match the return type of a GCC
   11106    builtin and then its argument prototype would still apply.  */
   11107 #ifdef __cplusplus
   11108 extern "C"
   11109 #endif
   11110 char unw_backtrace ();
   11111 int
   11112 main ()
   11113 {
   11114 return unw_backtrace ();
   11115   ;
   11116   return 0;
   11117 }
   11118 _ACEOF
   11119 if ac_fn_c_try_link "$LINENO"; then :
   11120   ac_cv_lib_unwind_unw_backtrace=yes
   11121 else
   11122   ac_cv_lib_unwind_unw_backtrace=no
   11123 fi
   11124 rm -f core conftest.err conftest.$ac_objext \
   11125     conftest$ac_exeext conftest.$ac_ext
   11126 LIBS=$ac_check_lib_save_LIBS
   11127 fi
   11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
   11129 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
   11130 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
   11131   T_APPEND_V=$LUNWIND
   11132   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11133   LIBS="${LIBS}${T_APPEND_V}"
   11134 else
   11135   LIBS="${LIBS} ${T_APPEND_V}"
   11136 fi
   11137 
   11138 
   11139 else
   11140   enable_prof_libunwind="0"
   11141 fi
   11142 
   11143   else
   11144     T_APPEND_V=$LUNWIND
   11145   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11146   LIBS="${LIBS}${T_APPEND_V}"
   11147 else
   11148   LIBS="${LIBS} ${T_APPEND_V}"
   11149 fi
   11150 
   11151 
   11152   fi
   11153   if test "x${enable_prof_libunwind}" = "x1" ; then
   11154     backtrace_method="libunwind"
   11155 
   11156 $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
   11157 
   11158   fi
   11159 fi
   11160 
   11161 # Check whether --enable-prof-libgcc was given.
   11162 if test "${enable_prof_libgcc+set}" = set; then :
   11163   enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
   11164   enable_prof_libgcc="0"
   11165 else
   11166   enable_prof_libgcc="1"
   11167 fi
   11168 
   11169 else
   11170   enable_prof_libgcc="1"
   11171 
   11172 fi
   11173 
   11174 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
   11175      -a "x$GCC" = "xyes" ; then
   11176   for ac_header in unwind.h
   11177 do :
   11178   ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
   11179 if test "x$ac_cv_header_unwind_h" = xyes; then :
   11180   cat >>confdefs.h <<_ACEOF
   11181 #define HAVE_UNWIND_H 1
   11182 _ACEOF
   11183 
   11184 else
   11185   enable_prof_libgcc="0"
   11186 fi
   11187 
   11188 done
   11189 
   11190   if test "x${enable_prof_libgcc}" = "x1" ; then
   11191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
   11192 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
   11193 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
   11194   $as_echo_n "(cached) " >&6
   11195 else
   11196   ac_check_lib_save_LIBS=$LIBS
   11197 LIBS="-lgcc  $LIBS"
   11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11199 /* end confdefs.h.  */
   11200 
   11201 /* Override any GCC internal prototype to avoid an error.
   11202    Use char because int might match the return type of a GCC
   11203    builtin and then its argument prototype would still apply.  */
   11204 #ifdef __cplusplus
   11205 extern "C"
   11206 #endif
   11207 char _Unwind_Backtrace ();
   11208 int
   11209 main ()
   11210 {
   11211 return _Unwind_Backtrace ();
   11212   ;
   11213   return 0;
   11214 }
   11215 _ACEOF
   11216 if ac_fn_c_try_link "$LINENO"; then :
   11217   ac_cv_lib_gcc__Unwind_Backtrace=yes
   11218 else
   11219   ac_cv_lib_gcc__Unwind_Backtrace=no
   11220 fi
   11221 rm -f core conftest.err conftest.$ac_objext \
   11222     conftest$ac_exeext conftest.$ac_ext
   11223 LIBS=$ac_check_lib_save_LIBS
   11224 fi
   11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
   11226 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
   11227 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
   11228   T_APPEND_V=-lgcc
   11229   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11230   LIBS="${LIBS}${T_APPEND_V}"
   11231 else
   11232   LIBS="${LIBS} ${T_APPEND_V}"
   11233 fi
   11234 
   11235 
   11236 else
   11237   enable_prof_libgcc="0"
   11238 fi
   11239 
   11240   fi
   11241   if test "x${enable_prof_libgcc}" = "x1" ; then
   11242     backtrace_method="libgcc"
   11243 
   11244 $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
   11245 
   11246   fi
   11247 else
   11248   enable_prof_libgcc="0"
   11249 fi
   11250 
   11251 # Check whether --enable-prof-gcc was given.
   11252 if test "${enable_prof_gcc+set}" = set; then :
   11253   enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
   11254   enable_prof_gcc="0"
   11255 else
   11256   enable_prof_gcc="1"
   11257 fi
   11258 
   11259 else
   11260   enable_prof_gcc="1"
   11261 
   11262 fi
   11263 
   11264 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
   11265      -a "x$GCC" = "xyes" ; then
   11266 
   11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
   11268 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
   11269 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   11270 T_APPEND_V=-fno-omit-frame-pointer
   11271   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11272   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   11273 else
   11274   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   11275 fi
   11276 
   11277 
   11278 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11279   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11280 else
   11281   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11282 fi
   11283 
   11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11285 /* end confdefs.h.  */
   11286 
   11287 
   11288 int
   11289 main ()
   11290 {
   11291 
   11292     return 0;
   11293 
   11294   ;
   11295   return 0;
   11296 }
   11297 _ACEOF
   11298 if ac_fn_c_try_compile "$LINENO"; then :
   11299   je_cv_cflags_added=-fno-omit-frame-pointer
   11300               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11301 $as_echo "yes" >&6; }
   11302 else
   11303   je_cv_cflags_added=
   11304               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11305 $as_echo "no" >&6; }
   11306               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   11307 
   11308 fi
   11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11311   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11312 else
   11313   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11314 fi
   11315 
   11316 
   11317   backtrace_method="gcc intrinsics"
   11318 
   11319 $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
   11320 
   11321 else
   11322   enable_prof_gcc="0"
   11323 fi
   11324 
   11325 if test "x$backtrace_method" = "x" ; then
   11326   backtrace_method="none (disabling profiling)"
   11327   enable_prof="0"
   11328 fi
   11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
   11330 $as_echo_n "checking configured backtracing method... " >&6; }
   11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
   11332 $as_echo "$backtrace_method" >&6; }
   11333 if test "x$enable_prof" = "x1" ; then
   11334     T_APPEND_V=$LM
   11335   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11336   LIBS="${LIBS}${T_APPEND_V}"
   11337 else
   11338   LIBS="${LIBS} ${T_APPEND_V}"
   11339 fi
   11340 
   11341 
   11342 
   11343 
   11344 $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
   11345 
   11346 fi
   11347 
   11348 
   11349 if test "x${maps_coalesce}" = "x1" ; then
   11350 
   11351 $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
   11352 
   11353 fi
   11354 
   11355 if test "x$default_retain" = "x1" ; then
   11356 
   11357 $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
   11358 
   11359 fi
   11360 
   11361 if test "x$zero_realloc_default_free" = "x1" ; then
   11362 
   11363 $as_echo "#define JEMALLOC_ZERO_REALLOC_DEFAULT_FREE  " >>confdefs.h
   11364 
   11365 fi
   11366 
   11367 have_dss="1"
   11368 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
   11369 if test "x$ac_cv_func_sbrk" = xyes; then :
   11370   have_sbrk="1"
   11371 else
   11372   have_sbrk="0"
   11373 fi
   11374 
   11375 if test "x$have_sbrk" = "x1" ; then
   11376   if test "x$sbrk_deprecated" = "x1" ; then
   11377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
   11378 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
   11379     have_dss="0"
   11380   fi
   11381 else
   11382   have_dss="0"
   11383 fi
   11384 
   11385 if test "x$have_dss" = "x1" ; then
   11386 
   11387 $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
   11388 
   11389 fi
   11390 
   11391 # Check whether --enable-fill was given.
   11392 if test "${enable_fill+set}" = set; then :
   11393   enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
   11394   enable_fill="0"
   11395 else
   11396   enable_fill="1"
   11397 fi
   11398 
   11399 else
   11400   enable_fill="1"
   11401 
   11402 fi
   11403 
   11404 if test "x$enable_fill" = "x1" ; then
   11405 
   11406 $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
   11407 
   11408 fi
   11409 
   11410 
   11411 # Check whether --enable-utrace was given.
   11412 if test "${enable_utrace+set}" = set; then :
   11413   enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
   11414   enable_utrace="0"
   11415 else
   11416   enable_utrace="1"
   11417 fi
   11418 
   11419 else
   11420   enable_utrace="0"
   11421 
   11422 fi
   11423 
   11424 
   11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
   11426 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
   11427 if ${je_cv_utrace+:} false; then :
   11428   $as_echo_n "(cached) " >&6
   11429 else
   11430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11431 /* end confdefs.h.  */
   11432 
   11433 #include <sys/types.h>
   11434 #include <sys/param.h>
   11435 #include <sys/time.h>
   11436 #include <sys/uio.h>
   11437 #include <sys/ktrace.h>
   11438 
   11439 int
   11440 main ()
   11441 {
   11442 
   11443 	utrace((void *)0, 0);
   11444 
   11445   ;
   11446   return 0;
   11447 }
   11448 _ACEOF
   11449 if ac_fn_c_try_link "$LINENO"; then :
   11450   je_cv_utrace=yes
   11451 else
   11452   je_cv_utrace=no
   11453 fi
   11454 rm -f core conftest.err conftest.$ac_objext \
   11455     conftest$ac_exeext conftest.$ac_ext
   11456 fi
   11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
   11458 $as_echo "$je_cv_utrace" >&6; }
   11459 
   11460 if test "x${je_cv_utrace}" = "xno" ; then
   11461 
   11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) with label is compilable" >&5
   11463 $as_echo_n "checking whether utrace(2) with label is compilable... " >&6; }
   11464 if ${je_cv_utrace_label+:} false; then :
   11465   $as_echo_n "(cached) " >&6
   11466 else
   11467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11468 /* end confdefs.h.  */
   11469 
   11470   #include <sys/types.h>
   11471   #include <sys/param.h>
   11472   #include <sys/time.h>
   11473   #include <sys/uio.h>
   11474   #include <sys/ktrace.h>
   11475 
   11476 int
   11477 main ()
   11478 {
   11479 
   11480 	  utrace((void *)0, (void *)0, 0);
   11481 
   11482   ;
   11483   return 0;
   11484 }
   11485 _ACEOF
   11486 if ac_fn_c_try_link "$LINENO"; then :
   11487   je_cv_utrace_label=yes
   11488 else
   11489   je_cv_utrace_label=no
   11490 fi
   11491 rm -f core conftest.err conftest.$ac_objext \
   11492     conftest$ac_exeext conftest.$ac_ext
   11493 fi
   11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace_label" >&5
   11495 $as_echo "$je_cv_utrace_label" >&6; }
   11496 
   11497   if test "x${je_cv_utrace_label}" = "xno"; then
   11498     enable_utrace="0"
   11499   fi
   11500   if test "x$enable_utrace" = "x1" ; then
   11501 
   11502 $as_echo "#define JEMALLOC_UTRACE_LABEL  " >>confdefs.h
   11503 
   11504   fi
   11505 else
   11506   if test "x$enable_utrace" = "x1" ; then
   11507 
   11508 $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
   11509 
   11510   fi
   11511 fi
   11512 
   11513 
   11514 # Check whether --enable-xmalloc was given.
   11515 if test "${enable_xmalloc+set}" = set; then :
   11516   enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
   11517   enable_xmalloc="0"
   11518 else
   11519   enable_xmalloc="1"
   11520 fi
   11521 
   11522 else
   11523   enable_xmalloc="0"
   11524 
   11525 fi
   11526 
   11527 if test "x$enable_xmalloc" = "x1" ; then
   11528 
   11529 $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
   11530 
   11531 fi
   11532 
   11533 
   11534 # Check whether --enable-cache-oblivious was given.
   11535 if test "${enable_cache_oblivious+set}" = set; then :
   11536   enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
   11537   enable_cache_oblivious="0"
   11538 else
   11539   enable_cache_oblivious="1"
   11540 fi
   11541 
   11542 else
   11543   enable_cache_oblivious="1"
   11544 
   11545 fi
   11546 
   11547 if test "x$enable_cache_oblivious" = "x1" ; then
   11548 
   11549 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
   11550 
   11551 fi
   11552 
   11553 
   11554 # Check whether --enable-log was given.
   11555 if test "${enable_log+set}" = set; then :
   11556   enableval=$enable_log; if test "x$enable_log" = "xno" ; then
   11557   enable_log="0"
   11558 else
   11559   enable_log="1"
   11560 fi
   11561 
   11562 else
   11563   enable_log="0"
   11564 
   11565 fi
   11566 
   11567 if test "x$enable_log" = "x1" ; then
   11568 
   11569 $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
   11570 
   11571 fi
   11572 
   11573 
   11574 # Check whether --enable-readlinkat was given.
   11575 if test "${enable_readlinkat+set}" = set; then :
   11576   enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
   11577   enable_readlinkat="0"
   11578 else
   11579   enable_readlinkat="1"
   11580 fi
   11581 
   11582 else
   11583   enable_readlinkat="0"
   11584 
   11585 fi
   11586 
   11587 if test "x$enable_readlinkat" = "x1" ; then
   11588 
   11589 $as_echo "#define JEMALLOC_READLINKAT  " >>confdefs.h
   11590 
   11591 fi
   11592 
   11593 
   11594 # Check whether --enable-opt-safety-checks was given.
   11595 if test "${enable_opt_safety_checks+set}" = set; then :
   11596   enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then
   11597   enable_opt_safety_checks="0"
   11598 else
   11599   enable_opt_safety_checks="1"
   11600 fi
   11601 
   11602 else
   11603   enable_opt_safety_checks="0"
   11604 
   11605 fi
   11606 
   11607 if test "x$enable_opt_safety_checks" = "x1" ; then
   11608 
   11609 $as_echo "#define JEMALLOC_OPT_SAFETY_CHECKS  " >>confdefs.h
   11610 
   11611 fi
   11612 
   11613 
   11614 # Check whether --enable-opt-size-checks was given.
   11615 if test "${enable_opt_size_checks+set}" = set; then :
   11616   enableval=$enable_opt_size_checks; if test "x$enable_opt_size_checks" = "xno" ; then
   11617   enable_opt_size_checks="0"
   11618 else
   11619   enable_opt_size_checks="1"
   11620 fi
   11621 
   11622 else
   11623   enable_opt_size_checks="0"
   11624 
   11625 fi
   11626 
   11627 if test "x$enable_opt_size_checks" = "x1" ; then
   11628 
   11629 $as_echo "#define JEMALLOC_OPT_SIZE_CHECKS  " >>confdefs.h
   11630 
   11631 fi
   11632 
   11633 
   11634 # Check whether --enable-uaf-detection was given.
   11635 if test "${enable_uaf_detection+set}" = set; then :
   11636   enableval=$enable_uaf_detection; if test "x$enable_uaf_detection" = "xno" ; then
   11637   enable_uaf_detection="0"
   11638 else
   11639   enable_uaf_detection="1"
   11640 fi
   11641 
   11642 else
   11643   enable_uaf_detection="0"
   11644 
   11645 fi
   11646 
   11647 if test "x$enable_uaf_detection" = "x1" ; then
   11648   $as_echo "#define JEMALLOC_UAF_DETECTION  " >>confdefs.h
   11649 
   11650 fi
   11651 
   11652 
   11653 
   11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
   11655 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
   11656 if ${je_cv_gcc_builtin_unreachable+:} false; then :
   11657   $as_echo_n "(cached) " >&6
   11658 else
   11659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11660 /* end confdefs.h.  */
   11661 
   11662 void foo (void) {
   11663   __builtin_unreachable();
   11664 }
   11665 
   11666 int
   11667 main ()
   11668 {
   11669 
   11670 	{
   11671 		foo();
   11672 	}
   11673 
   11674   ;
   11675   return 0;
   11676 }
   11677 _ACEOF
   11678 if ac_fn_c_try_link "$LINENO"; then :
   11679   je_cv_gcc_builtin_unreachable=yes
   11680 else
   11681   je_cv_gcc_builtin_unreachable=no
   11682 fi
   11683 rm -f core conftest.err conftest.$ac_objext \
   11684     conftest$ac_exeext conftest.$ac_ext
   11685 fi
   11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
   11687 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
   11688 
   11689 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
   11690 
   11691 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
   11692 
   11693 else
   11694 
   11695 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
   11696 
   11697 fi
   11698 
   11699 
   11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
   11701 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
   11702 if ${je_cv_gcc_builtin_ffsl+:} false; then :
   11703   $as_echo_n "(cached) " >&6
   11704 else
   11705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11706 /* end confdefs.h.  */
   11707 
   11708 #include <stdio.h>
   11709 #include <strings.h>
   11710 #include <string.h>
   11711 
   11712 int
   11713 main ()
   11714 {
   11715 
   11716 	{
   11717 		int rv = __builtin_ffsl(0x08);
   11718 		printf("%d\n", rv);
   11719 	}
   11720 
   11721   ;
   11722   return 0;
   11723 }
   11724 _ACEOF
   11725 if ac_fn_c_try_link "$LINENO"; then :
   11726   je_cv_gcc_builtin_ffsl=yes
   11727 else
   11728   je_cv_gcc_builtin_ffsl=no
   11729 fi
   11730 rm -f core conftest.err conftest.$ac_objext \
   11731     conftest$ac_exeext conftest.$ac_ext
   11732 fi
   11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
   11734 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
   11735 
   11736 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
   11737 
   11738 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
   11739 
   11740 
   11741 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
   11742 
   11743 
   11744 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
   11745 
   11746 else
   11747 
   11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
   11749 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
   11750 if ${je_cv_function_ffsl+:} false; then :
   11751   $as_echo_n "(cached) " >&6
   11752 else
   11753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11754 /* end confdefs.h.  */
   11755 
   11756   #include <stdio.h>
   11757   #include <strings.h>
   11758   #include <string.h>
   11759 
   11760 int
   11761 main ()
   11762 {
   11763 
   11764 	{
   11765 		int rv = ffsl(0x08);
   11766 		printf("%d\n", rv);
   11767 	}
   11768 
   11769   ;
   11770   return 0;
   11771 }
   11772 _ACEOF
   11773 if ac_fn_c_try_link "$LINENO"; then :
   11774   je_cv_function_ffsl=yes
   11775 else
   11776   je_cv_function_ffsl=no
   11777 fi
   11778 rm -f core conftest.err conftest.$ac_objext \
   11779     conftest$ac_exeext conftest.$ac_ext
   11780 fi
   11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
   11782 $as_echo "$je_cv_function_ffsl" >&6; }
   11783 
   11784   if test "x${je_cv_function_ffsl}" = "xyes" ; then
   11785 
   11786 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
   11787 
   11788 
   11789 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
   11790 
   11791 
   11792 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
   11793 
   11794   else
   11795     as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
   11796   fi
   11797 fi
   11798 
   11799 
   11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
   11801 $as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; }
   11802 if ${je_cv_gcc_builtin_popcountl+:} false; then :
   11803   $as_echo_n "(cached) " >&6
   11804 else
   11805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11806 /* end confdefs.h.  */
   11807 
   11808 #include <stdio.h>
   11809 #include <strings.h>
   11810 #include <string.h>
   11811 
   11812 int
   11813 main ()
   11814 {
   11815 
   11816 	{
   11817 		int rv = __builtin_popcountl(0x08);
   11818 		printf("%d\n", rv);
   11819 	}
   11820 
   11821   ;
   11822   return 0;
   11823 }
   11824 _ACEOF
   11825 if ac_fn_c_try_link "$LINENO"; then :
   11826   je_cv_gcc_builtin_popcountl=yes
   11827 else
   11828   je_cv_gcc_builtin_popcountl=no
   11829 fi
   11830 rm -f core conftest.err conftest.$ac_objext \
   11831     conftest$ac_exeext conftest.$ac_ext
   11832 fi
   11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
   11834 $as_echo "$je_cv_gcc_builtin_popcountl" >&6; }
   11835 
   11836 if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
   11837 
   11838 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
   11839 
   11840 
   11841 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
   11842 
   11843 
   11844 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTLL __builtin_popcountll" >>confdefs.h
   11845 
   11846 fi
   11847 
   11848 
   11849 # Check whether --with-lg_quantum was given.
   11850 if test "${with_lg_quantum+set}" = set; then :
   11851   withval=$with_lg_quantum;
   11852 fi
   11853 
   11854 if test "x$with_lg_quantum" != "x" ; then
   11855 
   11856 cat >>confdefs.h <<_ACEOF
   11857 #define LG_QUANTUM $with_lg_quantum
   11858 _ACEOF
   11859 
   11860 fi
   11861 
   11862 
   11863 # Check whether --with-lg_slab_maxregs was given.
   11864 if test "${with_lg_slab_maxregs+set}" = set; then :
   11865   withval=$with_lg_slab_maxregs; CONFIG_LG_SLAB_MAXREGS="with_lg_slab_maxregs"
   11866 else
   11867   CONFIG_LG_SLAB_MAXREGS=""
   11868 fi
   11869 
   11870 if test "x$with_lg_slab_maxregs" != "x" ; then
   11871 
   11872 cat >>confdefs.h <<_ACEOF
   11873 #define CONFIG_LG_SLAB_MAXREGS $with_lg_slab_maxregs
   11874 _ACEOF
   11875 
   11876 fi
   11877 
   11878 
   11879 # Check whether --with-lg_page was given.
   11880 if test "${with_lg_page+set}" = set; then :
   11881   withval=$with_lg_page; LG_PAGE="$with_lg_page"
   11882 else
   11883   LG_PAGE="detect"
   11884 fi
   11885 
   11886 case "${host}" in
   11887   aarch64-apple-darwin*)
   11888                   if test "x${host}" != "x${build}" -a "x$LG_PAGE" = "xdetect"; then
   11889         LG_PAGE=14
   11890       fi
   11891       ;;
   11892 esac
   11893 if test "x$LG_PAGE" = "xdetect"; then
   11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
   11895 $as_echo_n "checking LG_PAGE... " >&6; }
   11896 if ${je_cv_lg_page+:} false; then :
   11897   $as_echo_n "(cached) " >&6
   11898 else
   11899   if test "$cross_compiling" = yes; then :
   11900   je_cv_lg_page=12
   11901 else
   11902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11903 /* end confdefs.h.  */
   11904 
   11905 #include <strings.h>
   11906 #ifdef _WIN32
   11907 #include <windows.h>
   11908 #else
   11909 #include <unistd.h>
   11910 #endif
   11911 #include <stdio.h>
   11912 
   11913 int
   11914 main ()
   11915 {
   11916 
   11917     int result;
   11918     FILE *f;
   11919 
   11920 #ifdef _WIN32
   11921     SYSTEM_INFO si;
   11922     GetSystemInfo(&si);
   11923     result = si.dwPageSize;
   11924 #else
   11925     result = sysconf(_SC_PAGESIZE);
   11926 #endif
   11927     if (result == -1) {
   11928 	return 1;
   11929     }
   11930     result = JEMALLOC_INTERNAL_FFSL(result) - 1;
   11931 
   11932     f = fopen("conftest.out", "w");
   11933     if (f == NULL) {
   11934 	return 1;
   11935     }
   11936     fprintf(f, "%d", result);
   11937     fclose(f);
   11938 
   11939     return 0;
   11940 
   11941   ;
   11942   return 0;
   11943 }
   11944 _ACEOF
   11945 if ac_fn_c_try_run "$LINENO"; then :
   11946   je_cv_lg_page=`cat conftest.out`
   11947 else
   11948   je_cv_lg_page=undefined
   11949 fi
   11950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11951   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11952 fi
   11953 
   11954 fi
   11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
   11956 $as_echo "$je_cv_lg_page" >&6; }
   11957 fi
   11958 if test "x${je_cv_lg_page}" != "x" ; then
   11959   LG_PAGE="${je_cv_lg_page}"
   11960 fi
   11961 if test "x${LG_PAGE}" != "xundefined" ; then
   11962 
   11963 cat >>confdefs.h <<_ACEOF
   11964 #define LG_PAGE $LG_PAGE
   11965 _ACEOF
   11966 
   11967 else
   11968    as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
   11969 fi
   11970 
   11971 
   11972 # Check whether --with-lg_hugepage was given.
   11973 if test "${with_lg_hugepage+set}" = set; then :
   11974   withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
   11975 else
   11976   je_cv_lg_hugepage=""
   11977 fi
   11978 
   11979 if test "x${je_cv_lg_hugepage}" = "x" ; then
   11980           if test -e "/proc/meminfo" ; then
   11981     hpsk=`cat /proc/meminfo 2>/dev/null | \
   11982           grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
   11983           awk '{print $2}'`
   11984     if test "x${hpsk}" != "x" ; then
   11985       je_cv_lg_hugepage=10
   11986       while test "${hpsk}" -gt 1 ; do
   11987         hpsk="$((hpsk / 2))"
   11988         je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
   11989       done
   11990     fi
   11991   fi
   11992 
   11993     if test "x${je_cv_lg_hugepage}" = "x" ; then
   11994     je_cv_lg_hugepage=21
   11995   fi
   11996 fi
   11997 if test "x${LG_PAGE}" != "xundefined" -a \
   11998         "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
   11999   as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
   12000 fi
   12001 
   12002 cat >>confdefs.h <<_ACEOF
   12003 #define LG_HUGEPAGE ${je_cv_lg_hugepage}
   12004 _ACEOF
   12005 
   12006 
   12007 # Check whether --enable-libdl was given.
   12008 if test "${enable_libdl+set}" = set; then :
   12009   enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
   12010   enable_libdl="0"
   12011 else
   12012   enable_libdl="1"
   12013 fi
   12014 
   12015 else
   12016   enable_libdl="1"
   12017 
   12018 fi
   12019 
   12020 
   12021 
   12022 
   12023 if test "x$abi" != "xpecoff" ; then
   12024 
   12025 $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
   12026 
   12027   for ac_header in pthread.h
   12028 do :
   12029   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   12030 if test "x$ac_cv_header_pthread_h" = xyes; then :
   12031   cat >>confdefs.h <<_ACEOF
   12032 #define HAVE_PTHREAD_H 1
   12033 _ACEOF
   12034 
   12035 else
   12036   as_fn_error $? "pthread.h is missing" "$LINENO" 5
   12037 fi
   12038 
   12039 done
   12040 
   12041       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
   12042 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
   12043 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
   12044   $as_echo_n "(cached) " >&6
   12045 else
   12046   ac_check_lib_save_LIBS=$LIBS
   12047 LIBS="-lpthread  $LIBS"
   12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12049 /* end confdefs.h.  */
   12050 
   12051 /* Override any GCC internal prototype to avoid an error.
   12052    Use char because int might match the return type of a GCC
   12053    builtin and then its argument prototype would still apply.  */
   12054 #ifdef __cplusplus
   12055 extern "C"
   12056 #endif
   12057 char pthread_create ();
   12058 int
   12059 main ()
   12060 {
   12061 return pthread_create ();
   12062   ;
   12063   return 0;
   12064 }
   12065 _ACEOF
   12066 if ac_fn_c_try_link "$LINENO"; then :
   12067   ac_cv_lib_pthread_pthread_create=yes
   12068 else
   12069   ac_cv_lib_pthread_pthread_create=no
   12070 fi
   12071 rm -f core conftest.err conftest.$ac_objext \
   12072     conftest$ac_exeext conftest.$ac_ext
   12073 LIBS=$ac_check_lib_save_LIBS
   12074 fi
   12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
   12076 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
   12077 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
   12078   T_APPEND_V=-pthread
   12079   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   12080   LIBS="${LIBS}${T_APPEND_V}"
   12081 else
   12082   LIBS="${LIBS} ${T_APPEND_V}"
   12083 fi
   12084 
   12085 
   12086 else
   12087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
   12088 $as_echo_n "checking for library containing pthread_create... " >&6; }
   12089 if ${ac_cv_search_pthread_create+:} false; then :
   12090   $as_echo_n "(cached) " >&6
   12091 else
   12092   ac_func_search_save_LIBS=$LIBS
   12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12094 /* end confdefs.h.  */
   12095 
   12096 /* Override any GCC internal prototype to avoid an error.
   12097    Use char because int might match the return type of a GCC
   12098    builtin and then its argument prototype would still apply.  */
   12099 #ifdef __cplusplus
   12100 extern "C"
   12101 #endif
   12102 char pthread_create ();
   12103 int
   12104 main ()
   12105 {
   12106 return pthread_create ();
   12107   ;
   12108   return 0;
   12109 }
   12110 _ACEOF
   12111 for ac_lib in '' ; do
   12112   if test -z "$ac_lib"; then
   12113     ac_res="none required"
   12114   else
   12115     ac_res=-l$ac_lib
   12116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12117   fi
   12118   if ac_fn_c_try_link "$LINENO"; then :
   12119   ac_cv_search_pthread_create=$ac_res
   12120 fi
   12121 rm -f core conftest.err conftest.$ac_objext \
   12122     conftest$ac_exeext
   12123   if ${ac_cv_search_pthread_create+:} false; then :
   12124   break
   12125 fi
   12126 done
   12127 if ${ac_cv_search_pthread_create+:} false; then :
   12128 
   12129 else
   12130   ac_cv_search_pthread_create=no
   12131 fi
   12132 rm conftest.$ac_ext
   12133 LIBS=$ac_func_search_save_LIBS
   12134 fi
   12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
   12136 $as_echo "$ac_cv_search_pthread_create" >&6; }
   12137 ac_res=$ac_cv_search_pthread_create
   12138 if test "$ac_res" != no; then :
   12139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12140 
   12141 else
   12142   as_fn_error $? "libpthread is missing" "$LINENO" 5
   12143 fi
   12144 
   12145 fi
   12146 
   12147   wrap_syms="${wrap_syms} pthread_create"
   12148   have_pthread="1"
   12149 
   12150   if test "x$enable_libdl" = "x1" ; then
   12151     have_dlsym="1"
   12152     for ac_header in dlfcn.h
   12153 do :
   12154   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
   12155 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   12156   cat >>confdefs.h <<_ACEOF
   12157 #define HAVE_DLFCN_H 1
   12158 _ACEOF
   12159  ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
   12160 if test "x$ac_cv_func_dlsym" = xyes; then :
   12161 
   12162 else
   12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
   12164 $as_echo_n "checking for dlsym in -ldl... " >&6; }
   12165 if ${ac_cv_lib_dl_dlsym+:} false; then :
   12166   $as_echo_n "(cached) " >&6
   12167 else
   12168   ac_check_lib_save_LIBS=$LIBS
   12169 LIBS="-ldl  $LIBS"
   12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12171 /* end confdefs.h.  */
   12172 
   12173 /* Override any GCC internal prototype to avoid an error.
   12174    Use char because int might match the return type of a GCC
   12175    builtin and then its argument prototype would still apply.  */
   12176 #ifdef __cplusplus
   12177 extern "C"
   12178 #endif
   12179 char dlsym ();
   12180 int
   12181 main ()
   12182 {
   12183 return dlsym ();
   12184   ;
   12185   return 0;
   12186 }
   12187 _ACEOF
   12188 if ac_fn_c_try_link "$LINENO"; then :
   12189   ac_cv_lib_dl_dlsym=yes
   12190 else
   12191   ac_cv_lib_dl_dlsym=no
   12192 fi
   12193 rm -f core conftest.err conftest.$ac_objext \
   12194     conftest$ac_exeext conftest.$ac_ext
   12195 LIBS=$ac_check_lib_save_LIBS
   12196 fi
   12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
   12198 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
   12199 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
   12200   LIBS="$LIBS -ldl"
   12201 else
   12202   have_dlsym="0"
   12203 fi
   12204 
   12205 fi
   12206 
   12207 else
   12208   have_dlsym="0"
   12209 fi
   12210 
   12211 done
   12212 
   12213     if test "x$have_dlsym" = "x1" ; then
   12214 
   12215 $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
   12216 
   12217     fi
   12218   else
   12219     have_dlsym="0"
   12220   fi
   12221 
   12222 
   12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
   12224 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
   12225 if ${je_cv_pthread_atfork+:} false; then :
   12226   $as_echo_n "(cached) " >&6
   12227 else
   12228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12229 /* end confdefs.h.  */
   12230 
   12231 #include <pthread.h>
   12232 
   12233 int
   12234 main ()
   12235 {
   12236 
   12237   pthread_atfork((void *)0, (void *)0, (void *)0);
   12238 
   12239   ;
   12240   return 0;
   12241 }
   12242 _ACEOF
   12243 if ac_fn_c_try_link "$LINENO"; then :
   12244   je_cv_pthread_atfork=yes
   12245 else
   12246   je_cv_pthread_atfork=no
   12247 fi
   12248 rm -f core conftest.err conftest.$ac_objext \
   12249     conftest$ac_exeext conftest.$ac_ext
   12250 fi
   12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
   12252 $as_echo "$je_cv_pthread_atfork" >&6; }
   12253 
   12254   if test "x${je_cv_pthread_atfork}" = "xyes" ; then
   12255 
   12256 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
   12257 
   12258   fi
   12259 
   12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
   12261 $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
   12262 if ${je_cv_pthread_setname_np+:} false; then :
   12263   $as_echo_n "(cached) " >&6
   12264 else
   12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12266 /* end confdefs.h.  */
   12267 
   12268 #include <pthread.h>
   12269 
   12270 int
   12271 main ()
   12272 {
   12273 
   12274   pthread_setname_np(pthread_self(), "setname_test");
   12275 
   12276   ;
   12277   return 0;
   12278 }
   12279 _ACEOF
   12280 if ac_fn_c_try_link "$LINENO"; then :
   12281   je_cv_pthread_setname_np=yes
   12282 else
   12283   je_cv_pthread_setname_np=no
   12284 fi
   12285 rm -f core conftest.err conftest.$ac_objext \
   12286     conftest$ac_exeext conftest.$ac_ext
   12287 fi
   12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
   12289 $as_echo "$je_cv_pthread_setname_np" >&6; }
   12290 
   12291   if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
   12292 
   12293 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
   12294 
   12295   fi
   12296 
   12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getname_np(3) is compilable" >&5
   12298 $as_echo_n "checking whether pthread_getname_np(3) is compilable... " >&6; }
   12299 if ${je_cv_pthread_getname_np+:} false; then :
   12300   $as_echo_n "(cached) " >&6
   12301 else
   12302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12303 /* end confdefs.h.  */
   12304 
   12305 #include <pthread.h>
   12306 #include <stdlib.h>
   12307 
   12308 int
   12309 main ()
   12310 {
   12311 
   12312   {
   12313   	char *name = malloc(16);
   12314   	pthread_getname_np(pthread_self(), name, 16);
   12315 	free(name);
   12316   }
   12317 
   12318   ;
   12319   return 0;
   12320 }
   12321 _ACEOF
   12322 if ac_fn_c_try_link "$LINENO"; then :
   12323   je_cv_pthread_getname_np=yes
   12324 else
   12325   je_cv_pthread_getname_np=no
   12326 fi
   12327 rm -f core conftest.err conftest.$ac_objext \
   12328     conftest$ac_exeext conftest.$ac_ext
   12329 fi
   12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_getname_np" >&5
   12331 $as_echo "$je_cv_pthread_getname_np" >&6; }
   12332 
   12333   if test "x${je_cv_pthread_getname_np}" = "xyes" ; then
   12334 
   12335 $as_echo "#define JEMALLOC_HAVE_PTHREAD_GETNAME_NP  " >>confdefs.h
   12336 
   12337   fi
   12338 
   12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_get_name_np(3) is compilable" >&5
   12340 $as_echo_n "checking whether pthread_get_name_np(3) is compilable... " >&6; }
   12341 if ${je_cv_pthread_get_name_np+:} false; then :
   12342   $as_echo_n "(cached) " >&6
   12343 else
   12344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12345 /* end confdefs.h.  */
   12346 
   12347 #include <pthread.h>
   12348 #include <pthread_np.h>
   12349 #include <stdlib.h>
   12350 
   12351 int
   12352 main ()
   12353 {
   12354 
   12355   {
   12356   	char *name = malloc(16);
   12357   	pthread_get_name_np(pthread_self(), name, 16);
   12358 	free(name);
   12359   }
   12360 
   12361   ;
   12362   return 0;
   12363 }
   12364 _ACEOF
   12365 if ac_fn_c_try_link "$LINENO"; then :
   12366   je_cv_pthread_get_name_np=yes
   12367 else
   12368   je_cv_pthread_get_name_np=no
   12369 fi
   12370 rm -f core conftest.err conftest.$ac_objext \
   12371     conftest$ac_exeext conftest.$ac_ext
   12372 fi
   12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_get_name_np" >&5
   12374 $as_echo "$je_cv_pthread_get_name_np" >&6; }
   12375 
   12376   if test "x${je_cv_pthread_get_name_np}" = "xyes" ; then
   12377 
   12378 $as_echo "#define JEMALLOC_HAVE_PTHREAD_GET_NAME_NP  " >>confdefs.h
   12379 
   12380   fi
   12381 fi
   12382 
   12383 T_APPEND_V=-D_REENTRANT
   12384   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   12385   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   12386 else
   12387   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   12388 fi
   12389 
   12390 
   12391 
   12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   12393 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   12394 if ${ac_cv_search_clock_gettime+:} false; then :
   12395   $as_echo_n "(cached) " >&6
   12396 else
   12397   ac_func_search_save_LIBS=$LIBS
   12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12399 /* end confdefs.h.  */
   12400 
   12401 /* Override any GCC internal prototype to avoid an error.
   12402    Use char because int might match the return type of a GCC
   12403    builtin and then its argument prototype would still apply.  */
   12404 #ifdef __cplusplus
   12405 extern "C"
   12406 #endif
   12407 char clock_gettime ();
   12408 int
   12409 main ()
   12410 {
   12411 return clock_gettime ();
   12412   ;
   12413   return 0;
   12414 }
   12415 _ACEOF
   12416 for ac_lib in '' rt; do
   12417   if test -z "$ac_lib"; then
   12418     ac_res="none required"
   12419   else
   12420     ac_res=-l$ac_lib
   12421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12422   fi
   12423   if ac_fn_c_try_link "$LINENO"; then :
   12424   ac_cv_search_clock_gettime=$ac_res
   12425 fi
   12426 rm -f core conftest.err conftest.$ac_objext \
   12427     conftest$ac_exeext
   12428   if ${ac_cv_search_clock_gettime+:} false; then :
   12429   break
   12430 fi
   12431 done
   12432 if ${ac_cv_search_clock_gettime+:} false; then :
   12433 
   12434 else
   12435   ac_cv_search_clock_gettime=no
   12436 fi
   12437 rm conftest.$ac_ext
   12438 LIBS=$ac_func_search_save_LIBS
   12439 fi
   12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   12441 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   12442 ac_res=$ac_cv_search_clock_gettime
   12443 if test "$ac_res" != no; then :
   12444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12445 
   12446 fi
   12447 
   12448 
   12449 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
   12450   if test "$ac_cv_search_clock_gettime" != "-lrt"; then
   12451     SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   12452 
   12453 
   12454     unset ac_cv_search_clock_gettime
   12455 
   12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
   12457 $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
   12458 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   12459 T_APPEND_V=-dynamic
   12460   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   12461   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   12462 else
   12463   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   12464 fi
   12465 
   12466 
   12467 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12468   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12469 else
   12470   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12471 fi
   12472 
   12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12474 /* end confdefs.h.  */
   12475 
   12476 
   12477 int
   12478 main ()
   12479 {
   12480 
   12481     return 0;
   12482 
   12483   ;
   12484   return 0;
   12485 }
   12486 _ACEOF
   12487 if ac_fn_c_try_compile "$LINENO"; then :
   12488   je_cv_cflags_added=-dynamic
   12489               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12490 $as_echo "yes" >&6; }
   12491 else
   12492   je_cv_cflags_added=
   12493               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12494 $as_echo "no" >&6; }
   12495               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   12496 
   12497 fi
   12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12499 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12500   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12501 else
   12502   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12503 fi
   12504 
   12505 
   12506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   12507 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   12508 if ${ac_cv_search_clock_gettime+:} false; then :
   12509   $as_echo_n "(cached) " >&6
   12510 else
   12511   ac_func_search_save_LIBS=$LIBS
   12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12513 /* end confdefs.h.  */
   12514 
   12515 /* Override any GCC internal prototype to avoid an error.
   12516    Use char because int might match the return type of a GCC
   12517    builtin and then its argument prototype would still apply.  */
   12518 #ifdef __cplusplus
   12519 extern "C"
   12520 #endif
   12521 char clock_gettime ();
   12522 int
   12523 main ()
   12524 {
   12525 return clock_gettime ();
   12526   ;
   12527   return 0;
   12528 }
   12529 _ACEOF
   12530 for ac_lib in '' rt; do
   12531   if test -z "$ac_lib"; then
   12532     ac_res="none required"
   12533   else
   12534     ac_res=-l$ac_lib
   12535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12536   fi
   12537   if ac_fn_c_try_link "$LINENO"; then :
   12538   ac_cv_search_clock_gettime=$ac_res
   12539 fi
   12540 rm -f core conftest.err conftest.$ac_objext \
   12541     conftest$ac_exeext
   12542   if ${ac_cv_search_clock_gettime+:} false; then :
   12543   break
   12544 fi
   12545 done
   12546 if ${ac_cv_search_clock_gettime+:} false; then :
   12547 
   12548 else
   12549   ac_cv_search_clock_gettime=no
   12550 fi
   12551 rm conftest.$ac_ext
   12552 LIBS=$ac_func_search_save_LIBS
   12553 fi
   12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   12555 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   12556 ac_res=$ac_cv_search_clock_gettime
   12557 if test "$ac_res" != no; then :
   12558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12559 
   12560 fi
   12561 
   12562 
   12563     CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   12564 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12565   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12566 else
   12567   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12568 fi
   12569 
   12570 
   12571   fi
   12572 fi
   12573 
   12574 
   12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
   12576 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
   12577 if ${je_cv_clock_monotonic_coarse+:} false; then :
   12578   $as_echo_n "(cached) " >&6
   12579 else
   12580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12581 /* end confdefs.h.  */
   12582 
   12583 #include <time.h>
   12584 
   12585 int
   12586 main ()
   12587 {
   12588 
   12589 	struct timespec ts;
   12590 
   12591 	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
   12592 
   12593   ;
   12594   return 0;
   12595 }
   12596 _ACEOF
   12597 if ac_fn_c_try_link "$LINENO"; then :
   12598   je_cv_clock_monotonic_coarse=yes
   12599 else
   12600   je_cv_clock_monotonic_coarse=no
   12601 fi
   12602 rm -f core conftest.err conftest.$ac_objext \
   12603     conftest$ac_exeext conftest.$ac_ext
   12604 fi
   12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
   12606 $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
   12607 
   12608 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
   12609 
   12610 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE  " >>confdefs.h
   12611 
   12612 fi
   12613 
   12614 
   12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
   12616 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
   12617 if ${je_cv_clock_monotonic+:} false; then :
   12618   $as_echo_n "(cached) " >&6
   12619 else
   12620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12621 /* end confdefs.h.  */
   12622 
   12623 #include <unistd.h>
   12624 #include <time.h>
   12625 
   12626 int
   12627 main ()
   12628 {
   12629 
   12630 	struct timespec ts;
   12631 
   12632 	clock_gettime(CLOCK_MONOTONIC, &ts);
   12633 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
   12634 #  error _POSIX_MONOTONIC_CLOCK missing/invalid
   12635 #endif
   12636 
   12637   ;
   12638   return 0;
   12639 }
   12640 _ACEOF
   12641 if ac_fn_c_try_link "$LINENO"; then :
   12642   je_cv_clock_monotonic=yes
   12643 else
   12644   je_cv_clock_monotonic=no
   12645 fi
   12646 rm -f core conftest.err conftest.$ac_objext \
   12647     conftest$ac_exeext conftest.$ac_ext
   12648 fi
   12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
   12650 $as_echo "$je_cv_clock_monotonic" >&6; }
   12651 
   12652 if test "x${je_cv_clock_monotonic}" = "xyes" ; then
   12653 
   12654 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC  " >>confdefs.h
   12655 
   12656 fi
   12657 
   12658 
   12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
   12660 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
   12661 if ${je_cv_mach_absolute_time+:} false; then :
   12662   $as_echo_n "(cached) " >&6
   12663 else
   12664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12665 /* end confdefs.h.  */
   12666 
   12667 #include <mach/mach_time.h>
   12668 
   12669 int
   12670 main ()
   12671 {
   12672 
   12673 	mach_absolute_time();
   12674 
   12675   ;
   12676   return 0;
   12677 }
   12678 _ACEOF
   12679 if ac_fn_c_try_link "$LINENO"; then :
   12680   je_cv_mach_absolute_time=yes
   12681 else
   12682   je_cv_mach_absolute_time=no
   12683 fi
   12684 rm -f core conftest.err conftest.$ac_objext \
   12685     conftest$ac_exeext conftest.$ac_ext
   12686 fi
   12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
   12688 $as_echo "$je_cv_mach_absolute_time" >&6; }
   12689 
   12690 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
   12691 
   12692 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME  " >>confdefs.h
   12693 
   12694 fi
   12695 
   12696 
   12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable" >&5
   12698 $as_echo_n "checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable... " >&6; }
   12699 if ${je_cv_clock_realtime+:} false; then :
   12700   $as_echo_n "(cached) " >&6
   12701 else
   12702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12703 /* end confdefs.h.  */
   12704 
   12705 #include <time.h>
   12706 
   12707 int
   12708 main ()
   12709 {
   12710 
   12711 	struct timespec ts;
   12712 
   12713 	clock_gettime(CLOCK_REALTIME, &ts);
   12714 
   12715   ;
   12716   return 0;
   12717 }
   12718 _ACEOF
   12719 if ac_fn_c_try_link "$LINENO"; then :
   12720   je_cv_clock_realtime=yes
   12721 else
   12722   je_cv_clock_realtime=no
   12723 fi
   12724 rm -f core conftest.err conftest.$ac_objext \
   12725     conftest$ac_exeext conftest.$ac_ext
   12726 fi
   12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_realtime" >&5
   12728 $as_echo "$je_cv_clock_realtime" >&6; }
   12729 
   12730 if test "x${je_cv_clock_realtime}" = "xyes" ; then
   12731 
   12732 $as_echo "#define JEMALLOC_HAVE_CLOCK_REALTIME  " >>confdefs.h
   12733 
   12734 fi
   12735 
   12736 # Check whether --enable-syscall was given.
   12737 if test "${enable_syscall+set}" = set; then :
   12738   enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
   12739   enable_syscall="0"
   12740 else
   12741   enable_syscall="1"
   12742 fi
   12743 
   12744 else
   12745   enable_syscall="1"
   12746 
   12747 fi
   12748 
   12749 if test "x$enable_syscall" = "x1" ; then
   12750       SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   12751 
   12752 
   12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   12754 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   12755 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   12756 T_APPEND_V=-Werror
   12757   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   12758   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   12759 else
   12760   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   12761 fi
   12762 
   12763 
   12764 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12765   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12766 else
   12767   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12768 fi
   12769 
   12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12771 /* end confdefs.h.  */
   12772 
   12773 
   12774 int
   12775 main ()
   12776 {
   12777 
   12778     return 0;
   12779 
   12780   ;
   12781   return 0;
   12782 }
   12783 _ACEOF
   12784 if ac_fn_c_try_compile "$LINENO"; then :
   12785   je_cv_cflags_added=-Werror
   12786               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12787 $as_echo "yes" >&6; }
   12788 else
   12789   je_cv_cflags_added=
   12790               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12791 $as_echo "no" >&6; }
   12792               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   12793 
   12794 fi
   12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12796 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12797   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12798 else
   12799   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12800 fi
   12801 
   12802 
   12803 
   12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
   12805 $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
   12806 if ${je_cv_syscall+:} false; then :
   12807   $as_echo_n "(cached) " >&6
   12808 else
   12809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12810 /* end confdefs.h.  */
   12811 
   12812 #include <sys/syscall.h>
   12813 #include <unistd.h>
   12814 
   12815 int
   12816 main ()
   12817 {
   12818 
   12819 	syscall(SYS_write, 2, "hello", 5);
   12820 
   12821   ;
   12822   return 0;
   12823 }
   12824 _ACEOF
   12825 if ac_fn_c_try_link "$LINENO"; then :
   12826   je_cv_syscall=yes
   12827 else
   12828   je_cv_syscall=no
   12829 fi
   12830 rm -f core conftest.err conftest.$ac_objext \
   12831     conftest$ac_exeext conftest.$ac_ext
   12832 fi
   12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
   12834 $as_echo "$je_cv_syscall" >&6; }
   12835 
   12836   CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   12837 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12838   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12839 else
   12840   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12841 fi
   12842 
   12843 
   12844   if test "x$je_cv_syscall" = "xyes" ; then
   12845 
   12846 $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
   12847 
   12848   fi
   12849 fi
   12850 
   12851 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
   12852 if test "x$ac_cv_func_secure_getenv" = xyes; then :
   12853   have_secure_getenv="1"
   12854 else
   12855   have_secure_getenv="0"
   12856 
   12857 fi
   12858 
   12859 if test "x$have_secure_getenv" = "x1" ; then
   12860 
   12861 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
   12862 
   12863 fi
   12864 
   12865 ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
   12866 if test "x$ac_cv_func_sched_getcpu" = xyes; then :
   12867   have_sched_getcpu="1"
   12868 else
   12869   have_sched_getcpu="0"
   12870 
   12871 fi
   12872 
   12873 if test "x$have_sched_getcpu" = "x1" ; then
   12874 
   12875 $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
   12876 
   12877 fi
   12878 
   12879 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
   12880 if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
   12881   have_sched_setaffinity="1"
   12882 else
   12883   have_sched_setaffinity="0"
   12884 
   12885 fi
   12886 
   12887 if test "x$have_sched_setaffinity" = "x1" ; then
   12888 
   12889 $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
   12890 
   12891 fi
   12892 
   12893 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
   12894 if test "x$ac_cv_func_issetugid" = xyes; then :
   12895   have_issetugid="1"
   12896 else
   12897   have_issetugid="0"
   12898 
   12899 fi
   12900 
   12901 if test "x$have_issetugid" = "x1" ; then
   12902 
   12903 $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
   12904 
   12905 fi
   12906 
   12907 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
   12908 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
   12909   have__malloc_thread_cleanup="1"
   12910 else
   12911   have__malloc_thread_cleanup="0"
   12912 
   12913 fi
   12914 
   12915 if test "x$have__malloc_thread_cleanup" = "x1" ; then
   12916 
   12917 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
   12918 
   12919   wrap_syms="${wrap_syms} _malloc_thread_cleanup _malloc_tsd_cleanup_register"
   12920   force_tls="1"
   12921 fi
   12922 
   12923 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
   12924 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
   12925   have__pthread_mutex_init_calloc_cb="1"
   12926 else
   12927   have__pthread_mutex_init_calloc_cb="0"
   12928 
   12929 fi
   12930 
   12931 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
   12932 
   12933 $as_echo "#define JEMALLOC_MUTEX_INIT_CB  " >>confdefs.h
   12934 
   12935   wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
   12936 fi
   12937 
   12938 ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl"
   12939 if test "x$ac_cv_func_memcntl" = xyes; then :
   12940   have_memcntl="1"
   12941 else
   12942   have_memcntl="0"
   12943 fi
   12944 
   12945 if test "x$have_memcntl" = "x1" ; then
   12946 
   12947 $as_echo "#define JEMALLOC_HAVE_MEMCNTL  " >>confdefs.h
   12948 
   12949 fi
   12950 
   12951 # Check whether --enable-lazy_lock was given.
   12952 if test "${enable_lazy_lock+set}" = set; then :
   12953   enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
   12954   enable_lazy_lock="0"
   12955 else
   12956   enable_lazy_lock="1"
   12957 fi
   12958 
   12959 else
   12960   enable_lazy_lock=""
   12961 
   12962 fi
   12963 
   12964 if test "x${enable_lazy_lock}" = "x" ; then
   12965   if test "x${force_lazy_lock}" = "x1" ; then
   12966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
   12967 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
   12968     enable_lazy_lock="1"
   12969   else
   12970     enable_lazy_lock="0"
   12971   fi
   12972 fi
   12973 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
   12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
   12975 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
   12976   enable_lazy_lock="0"
   12977 fi
   12978 if test "x$enable_lazy_lock" = "x1" ; then
   12979   if test "x$have_dlsym" = "x1" ; then
   12980 
   12981 $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
   12982 
   12983   else
   12984     as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
   12985   fi
   12986 fi
   12987 
   12988 
   12989 if test "x${force_tls}" = "x1" ; then
   12990   enable_tls="1"
   12991 elif test "x${force_tls}" = "x0" ; then
   12992   enable_tls="0"
   12993 else
   12994   enable_tls="1"
   12995 fi
   12996 if test "x${enable_tls}" = "x1" ; then
   12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
   12998 $as_echo_n "checking for TLS... " >&6; }
   12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13000 /* end confdefs.h.  */
   13001 
   13002     __thread int x;
   13003 
   13004 int
   13005 main ()
   13006 {
   13007 
   13008     x = 42;
   13009 
   13010     return 0;
   13011 
   13012   ;
   13013   return 0;
   13014 }
   13015 _ACEOF
   13016 if ac_fn_c_try_compile "$LINENO"; then :
   13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13018 $as_echo "yes" >&6; }
   13019 else
   13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13021 $as_echo "no" >&6; }
   13022               enable_tls="0"
   13023 fi
   13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13025 else
   13026   enable_tls="0"
   13027 fi
   13028 
   13029 if test "x${enable_tls}" = "x1" ; then
   13030 
   13031 cat >>confdefs.h <<_ACEOF
   13032 #define JEMALLOC_TLS
   13033 _ACEOF
   13034 
   13035 fi
   13036 
   13037 
   13038 
   13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
   13040 $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
   13041 if ${je_cv_c11_atomics+:} false; then :
   13042   $as_echo_n "(cached) " >&6
   13043 else
   13044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13045 /* end confdefs.h.  */
   13046 
   13047 #include <stdint.h>
   13048 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
   13049 #include <stdatomic.h>
   13050 #else
   13051 #error Atomics not available
   13052 #endif
   13053 
   13054 int
   13055 main ()
   13056 {
   13057 
   13058     uint64_t *p = (uint64_t *)0;
   13059     uint64_t x = 1;
   13060     volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
   13061     uint64_t r = atomic_fetch_add(a, x) + x;
   13062     return r == 0;
   13063 
   13064   ;
   13065   return 0;
   13066 }
   13067 _ACEOF
   13068 if ac_fn_c_try_link "$LINENO"; then :
   13069   je_cv_c11_atomics=yes
   13070 else
   13071   je_cv_c11_atomics=no
   13072 fi
   13073 rm -f core conftest.err conftest.$ac_objext \
   13074     conftest$ac_exeext conftest.$ac_ext
   13075 fi
   13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
   13077 $as_echo "$je_cv_c11_atomics" >&6; }
   13078 
   13079 if test "x${je_cv_c11_atomics}" = "xyes" ; then
   13080 
   13081 $as_echo "#define JEMALLOC_C11_ATOMICS  " >>confdefs.h
   13082 
   13083 fi
   13084 
   13085 
   13086 
   13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
   13088 $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
   13089 if ${je_cv_gcc_atomic_atomics+:} false; then :
   13090   $as_echo_n "(cached) " >&6
   13091 else
   13092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13093 /* end confdefs.h.  */
   13094 
   13095 
   13096 int
   13097 main ()
   13098 {
   13099 
   13100     int x = 0;
   13101     int val = 1;
   13102     int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
   13103     int after_add = x;
   13104     return after_add == 1;
   13105 
   13106   ;
   13107   return 0;
   13108 }
   13109 _ACEOF
   13110 if ac_fn_c_try_link "$LINENO"; then :
   13111   je_cv_gcc_atomic_atomics=yes
   13112 else
   13113   je_cv_gcc_atomic_atomics=no
   13114 fi
   13115 rm -f core conftest.err conftest.$ac_objext \
   13116     conftest$ac_exeext conftest.$ac_ext
   13117 fi
   13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
   13119 $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
   13120 
   13121 if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
   13122 
   13123 $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS  " >>confdefs.h
   13124 
   13125 
   13126 
   13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
   13128 $as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
   13129 if ${je_cv_gcc_u8_atomic_atomics+:} false; then :
   13130   $as_echo_n "(cached) " >&6
   13131 else
   13132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13133 /* end confdefs.h.  */
   13134 
   13135 
   13136 int
   13137 main ()
   13138 {
   13139 
   13140       unsigned char x = 0;
   13141       int val = 1;
   13142       int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
   13143       int after_add = (int)x;
   13144       return after_add == 1;
   13145 
   13146   ;
   13147   return 0;
   13148 }
   13149 _ACEOF
   13150 if ac_fn_c_try_link "$LINENO"; then :
   13151   je_cv_gcc_u8_atomic_atomics=yes
   13152 else
   13153   je_cv_gcc_u8_atomic_atomics=no
   13154 fi
   13155 rm -f core conftest.err conftest.$ac_objext \
   13156     conftest$ac_exeext conftest.$ac_ext
   13157 fi
   13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
   13159 $as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; }
   13160 
   13161   if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
   13162 
   13163 $as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS  " >>confdefs.h
   13164 
   13165   fi
   13166 fi
   13167 
   13168 
   13169 
   13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
   13171 $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
   13172 if ${je_cv_gcc_sync_atomics+:} false; then :
   13173   $as_echo_n "(cached) " >&6
   13174 else
   13175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13176 /* end confdefs.h.  */
   13177 
   13178 
   13179 int
   13180 main ()
   13181 {
   13182 
   13183     int x = 0;
   13184     int before_add = __sync_fetch_and_add(&x, 1);
   13185     int after_add = x;
   13186     return (before_add == 0) && (after_add == 1);
   13187 
   13188   ;
   13189   return 0;
   13190 }
   13191 _ACEOF
   13192 if ac_fn_c_try_link "$LINENO"; then :
   13193   je_cv_gcc_sync_atomics=yes
   13194 else
   13195   je_cv_gcc_sync_atomics=no
   13196 fi
   13197 rm -f core conftest.err conftest.$ac_objext \
   13198     conftest$ac_exeext conftest.$ac_ext
   13199 fi
   13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
   13201 $as_echo "$je_cv_gcc_sync_atomics" >&6; }
   13202 
   13203 if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
   13204 
   13205 $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS  " >>confdefs.h
   13206 
   13207 
   13208 
   13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
   13210 $as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
   13211 if ${je_cv_gcc_u8_sync_atomics+:} false; then :
   13212   $as_echo_n "(cached) " >&6
   13213 else
   13214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13215 /* end confdefs.h.  */
   13216 
   13217 
   13218 int
   13219 main ()
   13220 {
   13221 
   13222       unsigned char x = 0;
   13223       int before_add = __sync_fetch_and_add(&x, 1);
   13224       int after_add = (int)x;
   13225       return (before_add == 0) && (after_add == 1);
   13226 
   13227   ;
   13228   return 0;
   13229 }
   13230 _ACEOF
   13231 if ac_fn_c_try_link "$LINENO"; then :
   13232   je_cv_gcc_u8_sync_atomics=yes
   13233 else
   13234   je_cv_gcc_u8_sync_atomics=no
   13235 fi
   13236 rm -f core conftest.err conftest.$ac_objext \
   13237     conftest$ac_exeext conftest.$ac_ext
   13238 fi
   13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
   13240 $as_echo "$je_cv_gcc_u8_sync_atomics" >&6; }
   13241 
   13242   if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
   13243 
   13244 $as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS  " >>confdefs.h
   13245 
   13246   fi
   13247 fi
   13248 
   13249 
   13250 
   13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
   13252 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
   13253 if ${je_cv_osatomic+:} false; then :
   13254   $as_echo_n "(cached) " >&6
   13255 else
   13256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13257 /* end confdefs.h.  */
   13258 
   13259 #include <libkern/OSAtomic.h>
   13260 #include <inttypes.h>
   13261 
   13262 int
   13263 main ()
   13264 {
   13265 
   13266 	{
   13267 		int32_t x32 = 0;
   13268 		volatile int32_t *x32p = &x32;
   13269 		OSAtomicAdd32(1, x32p);
   13270 	}
   13271 	{
   13272 		int64_t x64 = 0;
   13273 		volatile int64_t *x64p = &x64;
   13274 		OSAtomicAdd64(1, x64p);
   13275 	}
   13276 
   13277   ;
   13278   return 0;
   13279 }
   13280 _ACEOF
   13281 if ac_fn_c_try_link "$LINENO"; then :
   13282   je_cv_osatomic=yes
   13283 else
   13284   je_cv_osatomic=no
   13285 fi
   13286 rm -f core conftest.err conftest.$ac_objext \
   13287     conftest$ac_exeext conftest.$ac_ext
   13288 fi
   13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
   13290 $as_echo "$je_cv_osatomic" >&6; }
   13291 
   13292 if test "x${je_cv_osatomic}" = "xyes" ; then
   13293 
   13294 $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
   13295 
   13296 fi
   13297 
   13298 
   13299 
   13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
   13301 $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
   13302 if ${je_cv_madvise+:} false; then :
   13303   $as_echo_n "(cached) " >&6
   13304 else
   13305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13306 /* end confdefs.h.  */
   13307 
   13308 #include <sys/mman.h>
   13309 
   13310 int
   13311 main ()
   13312 {
   13313 
   13314 	madvise((void *)0, 0, 0);
   13315 
   13316   ;
   13317   return 0;
   13318 }
   13319 _ACEOF
   13320 if ac_fn_c_try_link "$LINENO"; then :
   13321   je_cv_madvise=yes
   13322 else
   13323   je_cv_madvise=no
   13324 fi
   13325 rm -f core conftest.err conftest.$ac_objext \
   13326     conftest$ac_exeext conftest.$ac_ext
   13327 fi
   13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
   13329 $as_echo "$je_cv_madvise" >&6; }
   13330 
   13331 if test "x${je_cv_madvise}" = "xyes" ; then
   13332 
   13333 $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
   13334 
   13335 
   13336 
   13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
   13338 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
   13339 if ${je_cv_madv_free+:} false; then :
   13340   $as_echo_n "(cached) " >&6
   13341 else
   13342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13343 /* end confdefs.h.  */
   13344 
   13345 #include <sys/mman.h>
   13346 
   13347 int
   13348 main ()
   13349 {
   13350 
   13351 	madvise((void *)0, 0, MADV_FREE);
   13352 
   13353   ;
   13354   return 0;
   13355 }
   13356 _ACEOF
   13357 if ac_fn_c_try_link "$LINENO"; then :
   13358   je_cv_madv_free=yes
   13359 else
   13360   je_cv_madv_free=no
   13361 fi
   13362 rm -f core conftest.err conftest.$ac_objext \
   13363     conftest$ac_exeext conftest.$ac_ext
   13364 fi
   13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
   13366 $as_echo "$je_cv_madv_free" >&6; }
   13367 
   13368   if test "x${je_cv_madv_free}" = "xyes" ; then
   13369 
   13370 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
   13371 
   13372   elif test "x${je_cv_madvise}" = "xyes" ; then
   13373     case "${host_cpu}" in i686|x86_64)
   13374         case "${host}" in *-*-linux*)
   13375 
   13376 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
   13377 
   13378 
   13379 $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
   13380 
   13381 	    ;;
   13382         esac
   13383         ;;
   13384     esac
   13385   fi
   13386 
   13387 
   13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
   13389 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
   13390 if ${je_cv_madv_dontneed+:} false; then :
   13391   $as_echo_n "(cached) " >&6
   13392 else
   13393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13394 /* end confdefs.h.  */
   13395 
   13396 #include <sys/mman.h>
   13397 
   13398 int
   13399 main ()
   13400 {
   13401 
   13402 	madvise((void *)0, 0, MADV_DONTNEED);
   13403 
   13404   ;
   13405   return 0;
   13406 }
   13407 _ACEOF
   13408 if ac_fn_c_try_link "$LINENO"; then :
   13409   je_cv_madv_dontneed=yes
   13410 else
   13411   je_cv_madv_dontneed=no
   13412 fi
   13413 rm -f core conftest.err conftest.$ac_objext \
   13414     conftest$ac_exeext conftest.$ac_ext
   13415 fi
   13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
   13417 $as_echo "$je_cv_madv_dontneed" >&6; }
   13418 
   13419   if test "x${je_cv_madv_dontneed}" = "xyes" ; then
   13420 
   13421 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
   13422 
   13423   fi
   13424 
   13425 
   13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
   13427 $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
   13428 if ${je_cv_madv_dontdump+:} false; then :
   13429   $as_echo_n "(cached) " >&6
   13430 else
   13431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13432 /* end confdefs.h.  */
   13433 
   13434 #include <sys/mman.h>
   13435 
   13436 int
   13437 main ()
   13438 {
   13439 
   13440 	madvise((void *)0, 0, MADV_DONTDUMP);
   13441 	madvise((void *)0, 0, MADV_DODUMP);
   13442 
   13443   ;
   13444   return 0;
   13445 }
   13446 _ACEOF
   13447 if ac_fn_c_try_link "$LINENO"; then :
   13448   je_cv_madv_dontdump=yes
   13449 else
   13450   je_cv_madv_dontdump=no
   13451 fi
   13452 rm -f core conftest.err conftest.$ac_objext \
   13453     conftest$ac_exeext conftest.$ac_ext
   13454 fi
   13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
   13456 $as_echo "$je_cv_madv_dontdump" >&6; }
   13457 
   13458   if test "x${je_cv_madv_dontdump}" = "xyes" ; then
   13459 
   13460 $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
   13461 
   13462   fi
   13463 
   13464 
   13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
   13466 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
   13467 if ${je_cv_thp+:} false; then :
   13468   $as_echo_n "(cached) " >&6
   13469 else
   13470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13471 /* end confdefs.h.  */
   13472 
   13473 #include <sys/mman.h>
   13474 
   13475 int
   13476 main ()
   13477 {
   13478 
   13479 	madvise((void *)0, 0, MADV_HUGEPAGE);
   13480 	madvise((void *)0, 0, MADV_NOHUGEPAGE);
   13481 
   13482   ;
   13483   return 0;
   13484 }
   13485 _ACEOF
   13486 if ac_fn_c_try_link "$LINENO"; then :
   13487   je_cv_thp=yes
   13488 else
   13489   je_cv_thp=no
   13490 fi
   13491 rm -f core conftest.err conftest.$ac_objext \
   13492     conftest$ac_exeext conftest.$ac_ext
   13493 fi
   13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
   13495 $as_echo "$je_cv_thp" >&6; }
   13496 
   13497 
   13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]CORE) is compilable" >&5
   13499 $as_echo_n "checking whether madvise(..., MADV_[NO]CORE) is compilable... " >&6; }
   13500 if ${je_cv_madv_nocore+:} false; then :
   13501   $as_echo_n "(cached) " >&6
   13502 else
   13503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13504 /* end confdefs.h.  */
   13505 
   13506 #include <sys/mman.h>
   13507 
   13508 int
   13509 main ()
   13510 {
   13511 
   13512 	madvise((void *)0, 0, MADV_NOCORE);
   13513 	madvise((void *)0, 0, MADV_CORE);
   13514 
   13515   ;
   13516   return 0;
   13517 }
   13518 _ACEOF
   13519 if ac_fn_c_try_link "$LINENO"; then :
   13520   je_cv_madv_nocore=yes
   13521 else
   13522   je_cv_madv_nocore=no
   13523 fi
   13524 rm -f core conftest.err conftest.$ac_objext \
   13525     conftest$ac_exeext conftest.$ac_ext
   13526 fi
   13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_nocore" >&5
   13528 $as_echo "$je_cv_madv_nocore" >&6; }
   13529 
   13530   if test "x${je_cv_madv_nocore}" = "xyes" ; then
   13531 
   13532 $as_echo "#define JEMALLOC_MADVISE_NOCORE  " >>confdefs.h
   13533 
   13534   fi
   13535 case "${host_cpu}" in
   13536   arm*)
   13537     ;;
   13538   *)
   13539   if test "x${je_cv_thp}" = "xyes" ; then
   13540 
   13541 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
   13542 
   13543   fi
   13544   ;;
   13545 esac
   13546 else
   13547 
   13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise is compilable" >&5
   13549 $as_echo_n "checking whether posix_madvise is compilable... " >&6; }
   13550 if ${je_cv_posix_madvise+:} false; then :
   13551   $as_echo_n "(cached) " >&6
   13552 else
   13553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13554 /* end confdefs.h.  */
   13555 
   13556   #include <sys/mman.h>
   13557 
   13558 int
   13559 main ()
   13560 {
   13561 
   13562     posix_madvise((void *)0, 0, 0);
   13563 
   13564   ;
   13565   return 0;
   13566 }
   13567 _ACEOF
   13568 if ac_fn_c_try_link "$LINENO"; then :
   13569   je_cv_posix_madvise=yes
   13570 else
   13571   je_cv_posix_madvise=no
   13572 fi
   13573 rm -f core conftest.err conftest.$ac_objext \
   13574     conftest$ac_exeext conftest.$ac_ext
   13575 fi
   13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madvise" >&5
   13577 $as_echo "$je_cv_posix_madvise" >&6; }
   13578 
   13579   if test "x${je_cv_posix_madvise}" = "xyes" ; then
   13580 
   13581 $as_echo "#define JEMALLOC_HAVE_POSIX_MADVISE  " >>confdefs.h
   13582 
   13583 
   13584 
   13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable" >&5
   13586 $as_echo_n "checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable... " >&6; }
   13587 if ${je_cv_posix_madv_dontneed+:} false; then :
   13588   $as_echo_n "(cached) " >&6
   13589 else
   13590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13591 /* end confdefs.h.  */
   13592 
   13593   #include <sys/mman.h>
   13594 
   13595 int
   13596 main ()
   13597 {
   13598 
   13599     posix_madvise((void *)0, 0, POSIX_MADV_DONTNEED);
   13600 
   13601   ;
   13602   return 0;
   13603 }
   13604 _ACEOF
   13605 if ac_fn_c_try_link "$LINENO"; then :
   13606   je_cv_posix_madv_dontneed=yes
   13607 else
   13608   je_cv_posix_madv_dontneed=no
   13609 fi
   13610 rm -f core conftest.err conftest.$ac_objext \
   13611     conftest$ac_exeext conftest.$ac_ext
   13612 fi
   13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madv_dontneed" >&5
   13614 $as_echo "$je_cv_posix_madv_dontneed" >&6; }
   13615 
   13616     if test "x${je_cv_posix_madv_dontneed}" = "xyes" ; then
   13617 
   13618 $as_echo "#define JEMALLOC_PURGE_POSIX_MADVISE_DONTNEED  " >>confdefs.h
   13619 
   13620     fi
   13621   fi
   13622 fi
   13623 
   13624 
   13625 
   13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mprotect(2) is compilable" >&5
   13627 $as_echo_n "checking whether mprotect(2) is compilable... " >&6; }
   13628 if ${je_cv_mprotect+:} false; then :
   13629   $as_echo_n "(cached) " >&6
   13630 else
   13631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13632 /* end confdefs.h.  */
   13633 
   13634 #include <sys/mman.h>
   13635 
   13636 int
   13637 main ()
   13638 {
   13639 
   13640 	mprotect((void *)0, 0, PROT_NONE);
   13641 
   13642   ;
   13643   return 0;
   13644 }
   13645 _ACEOF
   13646 if ac_fn_c_try_link "$LINENO"; then :
   13647   je_cv_mprotect=yes
   13648 else
   13649   je_cv_mprotect=no
   13650 fi
   13651 rm -f core conftest.err conftest.$ac_objext \
   13652     conftest$ac_exeext conftest.$ac_ext
   13653 fi
   13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mprotect" >&5
   13655 $as_echo "$je_cv_mprotect" >&6; }
   13656 
   13657 if test "x${je_cv_mprotect}" = "xyes" ; then
   13658 
   13659 $as_echo "#define JEMALLOC_HAVE_MPROTECT  " >>confdefs.h
   13660 
   13661 fi
   13662 
   13663 
   13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
   13665 $as_echo_n "checking for __builtin_clz... " >&6; }
   13666 if ${je_cv_builtin_clz+:} false; then :
   13667   $as_echo_n "(cached) " >&6
   13668 else
   13669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13670 /* end confdefs.h.  */
   13671 
   13672 int
   13673 main ()
   13674 {
   13675 
   13676                                                 {
   13677                                                         unsigned x = 0;
   13678                                                         int y = __builtin_clz(x);
   13679                                                 }
   13680                                                 {
   13681                                                         unsigned long x = 0;
   13682                                                         int y = __builtin_clzl(x);
   13683                                                 }
   13684                                                 {
   13685                                                         unsigned long long x = 0;
   13686                                                         int y = __builtin_clzll(x);
   13687                                                 }
   13688 
   13689   ;
   13690   return 0;
   13691 }
   13692 _ACEOF
   13693 if ac_fn_c_try_link "$LINENO"; then :
   13694   je_cv_builtin_clz=yes
   13695 else
   13696   je_cv_builtin_clz=no
   13697 fi
   13698 rm -f core conftest.err conftest.$ac_objext \
   13699     conftest$ac_exeext conftest.$ac_ext
   13700 fi
   13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
   13702 $as_echo "$je_cv_builtin_clz" >&6; }
   13703 
   13704 if test "x${je_cv_builtin_clz}" = "xyes" ; then
   13705 
   13706 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
   13707 
   13708 fi
   13709 
   13710 
   13711 
   13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
   13713 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
   13714 if ${je_cv_os_unfair_lock+:} false; then :
   13715   $as_echo_n "(cached) " >&6
   13716 else
   13717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13718 /* end confdefs.h.  */
   13719 
   13720 #include <os/lock.h>
   13721 #include <AvailabilityMacros.h>
   13722 
   13723 int
   13724 main ()
   13725 {
   13726 
   13727 	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
   13728 	#error "os_unfair_lock is not supported"
   13729 	#else
   13730 	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
   13731 	os_unfair_lock_lock(&lock);
   13732 	os_unfair_lock_unlock(&lock);
   13733 	#endif
   13734 
   13735   ;
   13736   return 0;
   13737 }
   13738 _ACEOF
   13739 if ac_fn_c_try_link "$LINENO"; then :
   13740   je_cv_os_unfair_lock=yes
   13741 else
   13742   je_cv_os_unfair_lock=no
   13743 fi
   13744 rm -f core conftest.err conftest.$ac_objext \
   13745     conftest$ac_exeext conftest.$ac_ext
   13746 fi
   13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
   13748 $as_echo "$je_cv_os_unfair_lock" >&6; }
   13749 
   13750 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
   13751 
   13752 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
   13753 
   13754 fi
   13755 
   13756 
   13757 # Check whether --enable-zone-allocator was given.
   13758 if test "${enable_zone_allocator+set}" = set; then :
   13759   enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
   13760   enable_zone_allocator="0"
   13761 else
   13762   enable_zone_allocator="1"
   13763 fi
   13764 
   13765 else
   13766   if test "x${abi}" = "xmacho"; then
   13767   enable_zone_allocator="1"
   13768 fi
   13769 
   13770 
   13771 fi
   13772 
   13773 
   13774 
   13775 if test "x${enable_zone_allocator}" = "x1" ; then
   13776   if test "x${abi}" != "xmacho"; then
   13777     as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
   13778   fi
   13779 
   13780 $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
   13781 
   13782 fi
   13783 
   13784 # Check whether --enable-initial-exec-tls was given.
   13785 if test "${enable_initial_exec_tls+set}" = set; then :
   13786   enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
   13787   enable_initial_exec_tls="0"
   13788 else
   13789   enable_initial_exec_tls="1"
   13790 fi
   13791 
   13792 else
   13793   enable_initial_exec_tls="1"
   13794 
   13795 fi
   13796 
   13797 
   13798 
   13799 if test "x${je_cv_tls_model}" = "xyes" -a \
   13800        "x${enable_initial_exec_tls}" = "x1" ; then
   13801 
   13802 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
   13803 
   13804 else
   13805 
   13806 $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
   13807 
   13808 fi
   13809 
   13810 
   13811 if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" -a \
   13812        "x${abi}" != "xmacho" ; then
   13813 
   13814 $as_echo "#define JEMALLOC_BACKGROUND_THREAD  " >>confdefs.h
   13815 
   13816 fi
   13817 
   13818 
   13819 if test "x$glibc" = "x1" ; then
   13820 
   13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
   13822 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
   13823 if ${je_cv_glibc_malloc_hook+:} false; then :
   13824   $as_echo_n "(cached) " >&6
   13825 else
   13826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13827 /* end confdefs.h.  */
   13828 
   13829   #include <stddef.h>
   13830 
   13831   extern void (* __free_hook)(void *ptr);
   13832   extern void *(* __malloc_hook)(size_t size);
   13833   extern void *(* __realloc_hook)(void *ptr, size_t size);
   13834 
   13835 int
   13836 main ()
   13837 {
   13838 
   13839     void *ptr = 0L;
   13840     if (__malloc_hook) ptr = __malloc_hook(1);
   13841     if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
   13842     if (__free_hook && ptr) __free_hook(ptr);
   13843 
   13844   ;
   13845   return 0;
   13846 }
   13847 _ACEOF
   13848 if ac_fn_c_try_link "$LINENO"; then :
   13849   je_cv_glibc_malloc_hook=yes
   13850 else
   13851   je_cv_glibc_malloc_hook=no
   13852 fi
   13853 rm -f core conftest.err conftest.$ac_objext \
   13854     conftest$ac_exeext conftest.$ac_ext
   13855 fi
   13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
   13857 $as_echo "$je_cv_glibc_malloc_hook" >&6; }
   13858 
   13859   if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
   13860     if test "x${JEMALLOC_PREFIX}" = "x" ; then
   13861 
   13862 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
   13863 
   13864       wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
   13865     fi
   13866   fi
   13867 
   13868 
   13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
   13870 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
   13871 if ${je_cv_glibc_memalign_hook+:} false; then :
   13872   $as_echo_n "(cached) " >&6
   13873 else
   13874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13875 /* end confdefs.h.  */
   13876 
   13877   #include <stddef.h>
   13878 
   13879   extern void *(* __memalign_hook)(size_t alignment, size_t size);
   13880 
   13881 int
   13882 main ()
   13883 {
   13884 
   13885     void *ptr = 0L;
   13886     if (__memalign_hook) ptr = __memalign_hook(16, 7);
   13887 
   13888   ;
   13889   return 0;
   13890 }
   13891 _ACEOF
   13892 if ac_fn_c_try_link "$LINENO"; then :
   13893   je_cv_glibc_memalign_hook=yes
   13894 else
   13895   je_cv_glibc_memalign_hook=no
   13896 fi
   13897 rm -f core conftest.err conftest.$ac_objext \
   13898     conftest$ac_exeext conftest.$ac_ext
   13899 fi
   13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
   13901 $as_echo "$je_cv_glibc_memalign_hook" >&6; }
   13902 
   13903   if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
   13904     if test "x${JEMALLOC_PREFIX}" = "x" ; then
   13905 
   13906 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
   13907 
   13908       wrap_syms="${wrap_syms} __memalign_hook"
   13909     fi
   13910   fi
   13911 fi
   13912 
   13913 
   13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
   13915 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
   13916 if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
   13917   $as_echo_n "(cached) " >&6
   13918 else
   13919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13920 /* end confdefs.h.  */
   13921 
   13922 #include <pthread.h>
   13923 
   13924 int
   13925 main ()
   13926 {
   13927 
   13928   pthread_mutexattr_t attr;
   13929   pthread_mutexattr_init(&attr);
   13930   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
   13931   pthread_mutexattr_destroy(&attr);
   13932 
   13933   ;
   13934   return 0;
   13935 }
   13936 _ACEOF
   13937 if ac_fn_c_try_link "$LINENO"; then :
   13938   je_cv_pthread_mutex_adaptive_np=yes
   13939 else
   13940   je_cv_pthread_mutex_adaptive_np=no
   13941 fi
   13942 rm -f core conftest.err conftest.$ac_objext \
   13943     conftest$ac_exeext conftest.$ac_ext
   13944 fi
   13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
   13946 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
   13947 
   13948 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
   13949 
   13950 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
   13951 
   13952 fi
   13953 
   13954 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   13955 
   13956 
   13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
   13958 $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
   13959 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   13960 T_APPEND_V=-D_GNU_SOURCE
   13961   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   13962   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   13963 else
   13964   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   13965 fi
   13966 
   13967 
   13968 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   13969   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   13970 else
   13971   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   13972 fi
   13973 
   13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13975 /* end confdefs.h.  */
   13976 
   13977 
   13978 int
   13979 main ()
   13980 {
   13981 
   13982     return 0;
   13983 
   13984   ;
   13985   return 0;
   13986 }
   13987 _ACEOF
   13988 if ac_fn_c_try_compile "$LINENO"; then :
   13989   je_cv_cflags_added=-D_GNU_SOURCE
   13990               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13991 $as_echo "yes" >&6; }
   13992 else
   13993   je_cv_cflags_added=
   13994               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13995 $as_echo "no" >&6; }
   13996               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   13997 
   13998 fi
   13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14000 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14001   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14002 else
   14003   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14004 fi
   14005 
   14006 
   14007 
   14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   14009 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   14010 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   14011 T_APPEND_V=-Werror
   14012   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   14013   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   14014 else
   14015   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   14016 fi
   14017 
   14018 
   14019 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14020   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14021 else
   14022   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14023 fi
   14024 
   14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14026 /* end confdefs.h.  */
   14027 
   14028 
   14029 int
   14030 main ()
   14031 {
   14032 
   14033     return 0;
   14034 
   14035   ;
   14036   return 0;
   14037 }
   14038 _ACEOF
   14039 if ac_fn_c_try_compile "$LINENO"; then :
   14040   je_cv_cflags_added=-Werror
   14041               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14042 $as_echo "yes" >&6; }
   14043 else
   14044   je_cv_cflags_added=
   14045               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14046 $as_echo "no" >&6; }
   14047               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   14048 
   14049 fi
   14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14051 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14052   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14053 else
   14054   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14055 fi
   14056 
   14057 
   14058 
   14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   14060 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   14061 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   14062 T_APPEND_V=-herror_on_warning
   14063   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   14064   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   14065 else
   14066   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   14067 fi
   14068 
   14069 
   14070 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14071   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14072 else
   14073   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14074 fi
   14075 
   14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14077 /* end confdefs.h.  */
   14078 
   14079 
   14080 int
   14081 main ()
   14082 {
   14083 
   14084     return 0;
   14085 
   14086   ;
   14087   return 0;
   14088 }
   14089 _ACEOF
   14090 if ac_fn_c_try_compile "$LINENO"; then :
   14091   je_cv_cflags_added=-herror_on_warning
   14092               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14093 $as_echo "yes" >&6; }
   14094 else
   14095   je_cv_cflags_added=
   14096               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14097 $as_echo "no" >&6; }
   14098               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   14099 
   14100 fi
   14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14102 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14103   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14104 else
   14105   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14106 fi
   14107 
   14108 
   14109 
   14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
   14111 $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
   14112 if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
   14113   $as_echo_n "(cached) " >&6
   14114 else
   14115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14116 /* end confdefs.h.  */
   14117 
   14118 #include <errno.h>
   14119 #include <stdio.h>
   14120 #include <stdlib.h>
   14121 #include <string.h>
   14122 
   14123 int
   14124 main ()
   14125 {
   14126 
   14127   char *buffer = (char *) malloc(100);
   14128   char *error = strerror_r(EINVAL, buffer, 100);
   14129   printf("%s\n", error);
   14130 
   14131   ;
   14132   return 0;
   14133 }
   14134 _ACEOF
   14135 if ac_fn_c_try_link "$LINENO"; then :
   14136   je_cv_strerror_r_returns_char_with_gnu_source=yes
   14137 else
   14138   je_cv_strerror_r_returns_char_with_gnu_source=no
   14139 fi
   14140 rm -f core conftest.err conftest.$ac_objext \
   14141     conftest$ac_exeext conftest.$ac_ext
   14142 fi
   14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
   14144 $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
   14145 
   14146 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   14147 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   14148   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   14149 else
   14150   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   14151 fi
   14152 
   14153 
   14154 if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
   14155 
   14156 $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
   14157 
   14158 fi
   14159 
   14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
   14161 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   14162 if ${ac_cv_header_stdbool_h+:} false; then :
   14163   $as_echo_n "(cached) " >&6
   14164 else
   14165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14166 /* end confdefs.h.  */
   14167 
   14168              #include <stdbool.h>
   14169              #ifndef bool
   14170               "error: bool is not defined"
   14171              #endif
   14172              #ifndef false
   14173               "error: false is not defined"
   14174              #endif
   14175              #if false
   14176               "error: false is not 0"
   14177              #endif
   14178              #ifndef true
   14179               "error: true is not defined"
   14180              #endif
   14181              #if true != 1
   14182               "error: true is not 1"
   14183              #endif
   14184              #ifndef __bool_true_false_are_defined
   14185               "error: __bool_true_false_are_defined is not defined"
   14186              #endif
   14187 
   14188              struct s { _Bool s: 1; _Bool t; } s;
   14189 
   14190              char a[true == 1 ? 1 : -1];
   14191              char b[false == 0 ? 1 : -1];
   14192              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   14193              char d[(bool) 0.5 == true ? 1 : -1];
   14194              /* See body of main program for 'e'.  */
   14195              char f[(_Bool) 0.0 == false ? 1 : -1];
   14196              char g[true];
   14197              char h[sizeof (_Bool)];
   14198              char i[sizeof s.t];
   14199              enum { j = false, k = true, l = false * true, m = true * 256 };
   14200              /* The following fails for
   14201                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
   14202              _Bool n[m];
   14203              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   14204              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
   14205              /* Catch a bug in an HP-UX C compiler.  See
   14206                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
   14207                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
   14208               */
   14209              _Bool q = true;
   14210              _Bool *pq = &q;
   14211 
   14212 int
   14213 main ()
   14214 {
   14215 
   14216              bool e = &s;
   14217              *pq |= q;
   14218              *pq |= ! q;
   14219              /* Refer to every declared value, to avoid compiler optimizations.  */
   14220              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
   14221                      + !m + !n + !o + !p + !q + !pq);
   14222 
   14223   ;
   14224   return 0;
   14225 }
   14226 _ACEOF
   14227 if ac_fn_c_try_compile "$LINENO"; then :
   14228   ac_cv_header_stdbool_h=yes
   14229 else
   14230   ac_cv_header_stdbool_h=no
   14231 fi
   14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14233 fi
   14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
   14235 $as_echo "$ac_cv_header_stdbool_h" >&6; }
   14236    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
   14237 if test "x$ac_cv_type__Bool" = xyes; then :
   14238 
   14239 cat >>confdefs.h <<_ACEOF
   14240 #define HAVE__BOOL 1
   14241 _ACEOF
   14242 
   14243 
   14244 fi
   14245 
   14246 
   14247 if test $ac_cv_header_stdbool_h = yes; then
   14248 
   14249 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
   14250 
   14251 fi
   14252 
   14253 
   14254 
   14255 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
   14256 
   14257 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
   14258 
   14259 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
   14260 
   14261 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
   14262 
   14263 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
   14264 
   14265 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
   14266 
   14267 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
   14268 
   14269 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
   14270 
   14271 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
   14272 
   14273 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
   14274 
   14275 
   14276 
   14277 
   14278 ac_config_headers="$ac_config_headers $cfghdrs_tup"
   14279 
   14280 
   14281 
   14282 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
   14283 
   14284 
   14285 
   14286 cat >confcache <<\_ACEOF
   14287 # This file is a shell script that caches the results of configure
   14288 # tests run on this system so they can be shared between configure
   14289 # scripts and configure runs, see configure's option --config-cache.
   14290 # It is not useful on other systems.  If it contains results you don't
   14291 # want to keep, you may remove or edit it.
   14292 #
   14293 # config.status only pays attention to the cache file if you give it
   14294 # the --recheck option to rerun configure.
   14295 #
   14296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   14297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   14298 # following values.
   14299 
   14300 _ACEOF
   14301 
   14302 # The following way of writing the cache mishandles newlines in values,
   14303 # but we know of no workaround that is simple, portable, and efficient.
   14304 # So, we kill variables containing newlines.
   14305 # Ultrix sh set writes to stderr and can't be redirected directly,
   14306 # and sets the high bit in the cache file unless we assign to the vars.
   14307 (
   14308   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   14309     eval ac_val=\$$ac_var
   14310     case $ac_val in #(
   14311     *${as_nl}*)
   14312       case $ac_var in #(
   14313       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   14314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   14315       esac
   14316       case $ac_var in #(
   14317       _ | IFS | as_nl) ;; #(
   14318       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   14319       *) { eval $ac_var=; unset $ac_var;} ;;
   14320       esac ;;
   14321     esac
   14322   done
   14323 
   14324   (set) 2>&1 |
   14325     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   14326     *${as_nl}ac_space=\ *)
   14327       # `set' does not quote correctly, so add quotes: double-quote
   14328       # substitution turns \\\\ into \\, and sed turns \\ into \.
   14329       sed -n \
   14330 	"s/'/'\\\\''/g;
   14331 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   14332       ;; #(
   14333     *)
   14334       # `set' quotes correctly as required by POSIX, so do not add quotes.
   14335       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   14336       ;;
   14337     esac |
   14338     sort
   14339 ) |
   14340   sed '
   14341      /^ac_cv_env_/b end
   14342      t clear
   14343      :clear
   14344      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   14345      t end
   14346      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   14347      :end' >>confcache
   14348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   14349   if test -w "$cache_file"; then
   14350     if test "x$cache_file" != "x/dev/null"; then
   14351       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   14352 $as_echo "$as_me: updating cache $cache_file" >&6;}
   14353       if test ! -f "$cache_file" || test -h "$cache_file"; then
   14354 	cat confcache >"$cache_file"
   14355       else
   14356         case $cache_file in #(
   14357         */* | ?:*)
   14358 	  mv -f confcache "$cache_file"$$ &&
   14359 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   14360         *)
   14361 	  mv -f confcache "$cache_file" ;;
   14362 	esac
   14363       fi
   14364     fi
   14365   else
   14366     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   14367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   14368   fi
   14369 fi
   14370 rm -f confcache
   14371 
   14372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   14373 # Let make expand exec_prefix.
   14374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   14375 
   14376 DEFS=-DHAVE_CONFIG_H
   14377 
   14378 ac_libobjs=
   14379 ac_ltlibobjs=
   14380 U=
   14381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   14382   # 1. Remove the extension, and $U if already installed.
   14383   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   14384   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   14385   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   14386   #    will be set to the directory where LIBOBJS objects are built.
   14387   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   14388   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   14389 done
   14390 LIBOBJS=$ac_libobjs
   14391 
   14392 LTLIBOBJS=$ac_ltlibobjs
   14393 
   14394 
   14395 
   14396 
   14397 : "${CONFIG_STATUS=./config.status}"
   14398 ac_write_fail=0
   14399 ac_clean_files_save=$ac_clean_files
   14400 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   14401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   14402 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   14403 as_write_fail=0
   14404 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   14405 #! $SHELL
   14406 # Generated by $as_me.
   14407 # Run this file to recreate the current configuration.
   14408 # Compiler output produced by configure, useful for debugging
   14409 # configure, is in config.log if it exists.
   14410 
   14411 debug=false
   14412 ac_cs_recheck=false
   14413 ac_cs_silent=false
   14414 
   14415 SHELL=\${CONFIG_SHELL-$SHELL}
   14416 export SHELL
   14417 _ASEOF
   14418 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   14419 ## -------------------- ##
   14420 ## M4sh Initialization. ##
   14421 ## -------------------- ##
   14422 
   14423 # Be more Bourne compatible
   14424 DUALCASE=1; export DUALCASE # for MKS sh
   14425 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   14426   emulate sh
   14427   NULLCMD=:
   14428   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   14429   # is contrary to our usage.  Disable this feature.
   14430   alias -g '${1+"$@"}'='"$@"'
   14431   setopt NO_GLOB_SUBST
   14432 else
   14433   case `(set -o) 2>/dev/null` in #(
   14434   *posix*) :
   14435     set -o posix ;; #(
   14436   *) :
   14437      ;;
   14438 esac
   14439 fi
   14440 
   14441 
   14442 as_nl='
   14443 '
   14444 export as_nl
   14445 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   14446 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   14447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   14448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   14449 # Prefer a ksh shell builtin over an external printf program on Solaris,
   14450 # but without wasting forks for bash or zsh.
   14451 if test -z "$BASH_VERSION$ZSH_VERSION" \
   14452     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   14453   as_echo='print -r --'
   14454   as_echo_n='print -rn --'
   14455 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   14456   as_echo='printf %s\n'
   14457   as_echo_n='printf %s'
   14458 else
   14459   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   14460     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   14461     as_echo_n='/usr/ucb/echo -n'
   14462   else
   14463     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   14464     as_echo_n_body='eval
   14465       arg=$1;
   14466       case $arg in #(
   14467       *"$as_nl"*)
   14468 	expr "X$arg" : "X\\(.*\\)$as_nl";
   14469 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   14470       esac;
   14471       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   14472     '
   14473     export as_echo_n_body
   14474     as_echo_n='sh -c $as_echo_n_body as_echo'
   14475   fi
   14476   export as_echo_body
   14477   as_echo='sh -c $as_echo_body as_echo'
   14478 fi
   14479 
   14480 # The user is always right.
   14481 if test "${PATH_SEPARATOR+set}" != set; then
   14482   PATH_SEPARATOR=:
   14483   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   14484     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   14485       PATH_SEPARATOR=';'
   14486   }
   14487 fi
   14488 
   14489 
   14490 # IFS
   14491 # We need space, tab and new line, in precisely that order.  Quoting is
   14492 # there to prevent editors from complaining about space-tab.
   14493 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   14494 # splitting by setting IFS to empty value.)
   14495 IFS=" ""	$as_nl"
   14496 
   14497 # Find who we are.  Look in the path if we contain no directory separator.
   14498 as_myself=
   14499 case $0 in #((
   14500   *[\\/]* ) as_myself=$0 ;;
   14501   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14502 for as_dir in $PATH
   14503 do
   14504   IFS=$as_save_IFS
   14505   test -z "$as_dir" && as_dir=.
   14506     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   14507   done
   14508 IFS=$as_save_IFS
   14509 
   14510      ;;
   14511 esac
   14512 # We did not find ourselves, most probably we were run as `sh COMMAND'
   14513 # in which case we are not to be found in the path.
   14514 if test "x$as_myself" = x; then
   14515   as_myself=$0
   14516 fi
   14517 if test ! -f "$as_myself"; then
   14518   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   14519   exit 1
   14520 fi
   14521 
   14522 # Unset variables that we do not need and which cause bugs (e.g. in
   14523 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   14524 # suppresses any "Segmentation fault" message there.  '((' could
   14525 # trigger a bug in pdksh 5.2.14.
   14526 for as_var in BASH_ENV ENV MAIL MAILPATH
   14527 do eval test x\${$as_var+set} = xset \
   14528   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   14529 done
   14530 PS1='$ '
   14531 PS2='> '
   14532 PS4='+ '
   14533 
   14534 # NLS nuisances.
   14535 LC_ALL=C
   14536 export LC_ALL
   14537 LANGUAGE=C
   14538 export LANGUAGE
   14539 
   14540 # CDPATH.
   14541 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   14542 
   14543 
   14544 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   14545 # ----------------------------------------
   14546 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   14547 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   14548 # script with STATUS, using 1 if that was 0.
   14549 as_fn_error ()
   14550 {
   14551   as_status=$1; test $as_status -eq 0 && as_status=1
   14552   if test "$4"; then
   14553     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   14554     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   14555   fi
   14556   $as_echo "$as_me: error: $2" >&2
   14557   as_fn_exit $as_status
   14558 } # as_fn_error
   14559 
   14560 
   14561 # as_fn_set_status STATUS
   14562 # -----------------------
   14563 # Set $? to STATUS, without forking.
   14564 as_fn_set_status ()
   14565 {
   14566   return $1
   14567 } # as_fn_set_status
   14568 
   14569 # as_fn_exit STATUS
   14570 # -----------------
   14571 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   14572 as_fn_exit ()
   14573 {
   14574   set +e
   14575   as_fn_set_status $1
   14576   exit $1
   14577 } # as_fn_exit
   14578 
   14579 # as_fn_unset VAR
   14580 # ---------------
   14581 # Portably unset VAR.
   14582 as_fn_unset ()
   14583 {
   14584   { eval $1=; unset $1;}
   14585 }
   14586 as_unset=as_fn_unset
   14587 # as_fn_append VAR VALUE
   14588 # ----------------------
   14589 # Append the text in VALUE to the end of the definition contained in VAR. Take
   14590 # advantage of any shell optimizations that allow amortized linear growth over
   14591 # repeated appends, instead of the typical quadratic growth present in naive
   14592 # implementations.
   14593 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   14594   eval 'as_fn_append ()
   14595   {
   14596     eval $1+=\$2
   14597   }'
   14598 else
   14599   as_fn_append ()
   14600   {
   14601     eval $1=\$$1\$2
   14602   }
   14603 fi # as_fn_append
   14604 
   14605 # as_fn_arith ARG...
   14606 # ------------------
   14607 # Perform arithmetic evaluation on the ARGs, and store the result in the
   14608 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   14609 # must be portable across $(()) and expr.
   14610 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   14611   eval 'as_fn_arith ()
   14612   {
   14613     as_val=$(( $* ))
   14614   }'
   14615 else
   14616   as_fn_arith ()
   14617   {
   14618     as_val=`expr "$@" || test $? -eq 1`
   14619   }
   14620 fi # as_fn_arith
   14621 
   14622 
   14623 if expr a : '\(a\)' >/dev/null 2>&1 &&
   14624    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   14625   as_expr=expr
   14626 else
   14627   as_expr=false
   14628 fi
   14629 
   14630 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   14631   as_basename=basename
   14632 else
   14633   as_basename=false
   14634 fi
   14635 
   14636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   14637   as_dirname=dirname
   14638 else
   14639   as_dirname=false
   14640 fi
   14641 
   14642 as_me=`$as_basename -- "$0" ||
   14643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   14644 	 X"$0" : 'X\(//\)$' \| \
   14645 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   14646 $as_echo X/"$0" |
   14647     sed '/^.*\/\([^/][^/]*\)\/*$/{
   14648 	    s//\1/
   14649 	    q
   14650 	  }
   14651 	  /^X\/\(\/\/\)$/{
   14652 	    s//\1/
   14653 	    q
   14654 	  }
   14655 	  /^X\/\(\/\).*/{
   14656 	    s//\1/
   14657 	    q
   14658 	  }
   14659 	  s/.*/./; q'`
   14660 
   14661 # Avoid depending upon Character Ranges.
   14662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   14663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   14664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   14665 as_cr_digits='0123456789'
   14666 as_cr_alnum=$as_cr_Letters$as_cr_digits
   14667 
   14668 ECHO_C= ECHO_N= ECHO_T=
   14669 case `echo -n x` in #(((((
   14670 -n*)
   14671   case `echo 'xy\c'` in
   14672   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   14673   xy)  ECHO_C='\c';;
   14674   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   14675        ECHO_T='	';;
   14676   esac;;
   14677 *)
   14678   ECHO_N='-n';;
   14679 esac
   14680 
   14681 rm -f conf$$ conf$$.exe conf$$.file
   14682 if test -d conf$$.dir; then
   14683   rm -f conf$$.dir/conf$$.file
   14684 else
   14685   rm -f conf$$.dir
   14686   mkdir conf$$.dir 2>/dev/null
   14687 fi
   14688 if (echo >conf$$.file) 2>/dev/null; then
   14689   if ln -s conf$$.file conf$$ 2>/dev/null; then
   14690     as_ln_s='ln -s'
   14691     # ... but there are two gotchas:
   14692     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   14693     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   14694     # In both cases, we have to default to `cp -pR'.
   14695     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   14696       as_ln_s='cp -pR'
   14697   elif ln conf$$.file conf$$ 2>/dev/null; then
   14698     as_ln_s=ln
   14699   else
   14700     as_ln_s='cp -pR'
   14701   fi
   14702 else
   14703   as_ln_s='cp -pR'
   14704 fi
   14705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   14706 rmdir conf$$.dir 2>/dev/null
   14707 
   14708 
   14709 # as_fn_mkdir_p
   14710 # -------------
   14711 # Create "$as_dir" as a directory, including parents if necessary.
   14712 as_fn_mkdir_p ()
   14713 {
   14714 
   14715   case $as_dir in #(
   14716   -*) as_dir=./$as_dir;;
   14717   esac
   14718   test -d "$as_dir" || eval $as_mkdir_p || {
   14719     as_dirs=
   14720     while :; do
   14721       case $as_dir in #(
   14722       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   14723       *) as_qdir=$as_dir;;
   14724       esac
   14725       as_dirs="'$as_qdir' $as_dirs"
   14726       as_dir=`$as_dirname -- "$as_dir" ||
   14727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14728 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   14729 	 X"$as_dir" : 'X\(//\)$' \| \
   14730 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   14731 $as_echo X"$as_dir" |
   14732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   14733 	    s//\1/
   14734 	    q
   14735 	  }
   14736 	  /^X\(\/\/\)[^/].*/{
   14737 	    s//\1/
   14738 	    q
   14739 	  }
   14740 	  /^X\(\/\/\)$/{
   14741 	    s//\1/
   14742 	    q
   14743 	  }
   14744 	  /^X\(\/\).*/{
   14745 	    s//\1/
   14746 	    q
   14747 	  }
   14748 	  s/.*/./; q'`
   14749       test -d "$as_dir" && break
   14750     done
   14751     test -z "$as_dirs" || eval "mkdir $as_dirs"
   14752   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   14753 
   14754 
   14755 } # as_fn_mkdir_p
   14756 if mkdir -p . 2>/dev/null; then
   14757   as_mkdir_p='mkdir -p "$as_dir"'
   14758 else
   14759   test -d ./-p && rmdir ./-p
   14760   as_mkdir_p=false
   14761 fi
   14762 
   14763 
   14764 # as_fn_executable_p FILE
   14765 # -----------------------
   14766 # Test if FILE is an executable regular file.
   14767 as_fn_executable_p ()
   14768 {
   14769   test -f "$1" && test -x "$1"
   14770 } # as_fn_executable_p
   14771 as_test_x='test -x'
   14772 as_executable_p=as_fn_executable_p
   14773 
   14774 # Sed expression to map a string onto a valid CPP name.
   14775 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   14776 
   14777 # Sed expression to map a string onto a valid variable name.
   14778 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   14779 
   14780 
   14781 exec 6>&1
   14782 ## ----------------------------------- ##
   14783 ## Main body of $CONFIG_STATUS script. ##
   14784 ## ----------------------------------- ##
   14785 _ASEOF
   14786 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   14787 
   14788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14789 # Save the log message, to keep $0 and so on meaningful, and to
   14790 # report actual input values of CONFIG_FILES etc. instead of their
   14791 # values after options handling.
   14792 ac_log="
   14793 This file was extended by $as_me, which was
   14794 generated by GNU Autoconf 2.69.  Invocation command line was
   14795 
   14796   CONFIG_FILES    = $CONFIG_FILES
   14797   CONFIG_HEADERS  = $CONFIG_HEADERS
   14798   CONFIG_LINKS    = $CONFIG_LINKS
   14799   CONFIG_COMMANDS = $CONFIG_COMMANDS
   14800   $ $0 $@
   14801 
   14802 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   14803 "
   14804 
   14805 _ACEOF
   14806 
   14807 case $ac_config_files in *"
   14808 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   14809 esac
   14810 
   14811 case $ac_config_headers in *"
   14812 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   14813 esac
   14814 
   14815 
   14816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14817 # Files that config.status was made for.
   14818 config_files="$ac_config_files"
   14819 config_headers="$ac_config_headers"
   14820 config_commands="$ac_config_commands"
   14821 
   14822 _ACEOF
   14823 
   14824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14825 ac_cs_usage="\
   14826 \`$as_me' instantiates files and other configuration actions
   14827 from templates according to the current configuration.  Unless the files
   14828 and actions are specified as TAGs, all are instantiated by default.
   14829 
   14830 Usage: $0 [OPTION]... [TAG]...
   14831 
   14832   -h, --help       print this help, then exit
   14833   -V, --version    print version number and configuration settings, then exit
   14834       --config     print configuration, then exit
   14835   -q, --quiet, --silent
   14836                    do not print progress messages
   14837   -d, --debug      don't remove temporary files
   14838       --recheck    update $as_me by reconfiguring in the same conditions
   14839       --file=FILE[:TEMPLATE]
   14840                    instantiate the configuration file FILE
   14841       --header=FILE[:TEMPLATE]
   14842                    instantiate the configuration header FILE
   14843 
   14844 Configuration files:
   14845 $config_files
   14846 
   14847 Configuration headers:
   14848 $config_headers
   14849 
   14850 Configuration commands:
   14851 $config_commands
   14852 
   14853 Report bugs to the package provider."
   14854 
   14855 _ACEOF
   14856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14857 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   14858 ac_cs_version="\\
   14859 config.status
   14860 configured by $0, generated by GNU Autoconf 2.69,
   14861   with options \\"\$ac_cs_config\\"
   14862 
   14863 Copyright (C) 2012 Free Software Foundation, Inc.
   14864 This config.status script is free software; the Free Software Foundation
   14865 gives unlimited permission to copy, distribute and modify it."
   14866 
   14867 ac_pwd='$ac_pwd'
   14868 srcdir='$srcdir'
   14869 INSTALL='$INSTALL'
   14870 AWK='$AWK'
   14871 test -n "\$AWK" || AWK=awk
   14872 _ACEOF
   14873 
   14874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14875 # The default lists apply if the user does not specify any file.
   14876 ac_need_defaults=:
   14877 while test $# != 0
   14878 do
   14879   case $1 in
   14880   --*=?*)
   14881     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   14882     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   14883     ac_shift=:
   14884     ;;
   14885   --*=)
   14886     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   14887     ac_optarg=
   14888     ac_shift=:
   14889     ;;
   14890   *)
   14891     ac_option=$1
   14892     ac_optarg=$2
   14893     ac_shift=shift
   14894     ;;
   14895   esac
   14896 
   14897   case $ac_option in
   14898   # Handling of the options.
   14899   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   14900     ac_cs_recheck=: ;;
   14901   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   14902     $as_echo "$ac_cs_version"; exit ;;
   14903   --config | --confi | --conf | --con | --co | --c )
   14904     $as_echo "$ac_cs_config"; exit ;;
   14905   --debug | --debu | --deb | --de | --d | -d )
   14906     debug=: ;;
   14907   --file | --fil | --fi | --f )
   14908     $ac_shift
   14909     case $ac_optarg in
   14910     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   14911     '') as_fn_error $? "missing file argument" ;;
   14912     esac
   14913     as_fn_append CONFIG_FILES " '$ac_optarg'"
   14914     ac_need_defaults=false;;
   14915   --header | --heade | --head | --hea )
   14916     $ac_shift
   14917     case $ac_optarg in
   14918     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   14919     esac
   14920     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   14921     ac_need_defaults=false;;
   14922   --he | --h)
   14923     # Conflict between --help and --header
   14924     as_fn_error $? "ambiguous option: \`$1'
   14925 Try \`$0 --help' for more information.";;
   14926   --help | --hel | -h )
   14927     $as_echo "$ac_cs_usage"; exit ;;
   14928   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   14929   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   14930     ac_cs_silent=: ;;
   14931 
   14932   # This is an error.
   14933   -*) as_fn_error $? "unrecognized option: \`$1'
   14934 Try \`$0 --help' for more information." ;;
   14935 
   14936   *) as_fn_append ac_config_targets " $1"
   14937      ac_need_defaults=false ;;
   14938 
   14939   esac
   14940   shift
   14941 done
   14942 
   14943 ac_configure_extra_args=
   14944 
   14945 if $ac_cs_silent; then
   14946   exec 6>/dev/null
   14947   ac_configure_extra_args="$ac_configure_extra_args --silent"
   14948 fi
   14949 
   14950 _ACEOF
   14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14952 if \$ac_cs_recheck; then
   14953   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   14954   shift
   14955   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   14956   CONFIG_SHELL='$SHELL'
   14957   export CONFIG_SHELL
   14958   exec "\$@"
   14959 fi
   14960 
   14961 _ACEOF
   14962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14963 exec 5>>config.log
   14964 {
   14965   echo
   14966   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   14967 ## Running $as_me. ##
   14968 _ASBOX
   14969   $as_echo "$ac_log"
   14970 } >&5
   14971 
   14972 _ACEOF
   14973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14974 #
   14975 # INIT-COMMANDS
   14976 #
   14977 
   14978   srcdir="${srcdir}"
   14979   objroot="${objroot}"
   14980   mangling_map="${mangling_map}"
   14981   public_syms="${public_syms}"
   14982   JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
   14983 
   14984 
   14985   srcdir="${srcdir}"
   14986   objroot="${objroot}"
   14987   public_syms="${public_syms}"
   14988   wrap_syms="${wrap_syms}"
   14989   SYM_PREFIX="${SYM_PREFIX}"
   14990   JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
   14991 
   14992 
   14993   srcdir="${srcdir}"
   14994   objroot="${objroot}"
   14995   public_syms="${public_syms}"
   14996   wrap_syms="${wrap_syms}"
   14997   SYM_PREFIX="${SYM_PREFIX}"
   14998 
   14999 
   15000   srcdir="${srcdir}"
   15001   objroot="${objroot}"
   15002 
   15003 
   15004   srcdir="${srcdir}"
   15005   objroot="${objroot}"
   15006 
   15007 
   15008   srcdir="${srcdir}"
   15009   objroot="${objroot}"
   15010 
   15011 
   15012   srcdir="${srcdir}"
   15013   objroot="${objroot}"
   15014 
   15015 
   15016   srcdir="${srcdir}"
   15017   objroot="${objroot}"
   15018 
   15019 
   15020   srcdir="${srcdir}"
   15021   objroot="${objroot}"
   15022 
   15023 
   15024   srcdir="${srcdir}"
   15025   objroot="${objroot}"
   15026   install_suffix="${install_suffix}"
   15027 
   15028 
   15029 _ACEOF
   15030 
   15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15032 
   15033 # Handling of arguments.
   15034 for ac_config_target in $ac_config_targets
   15035 do
   15036   case $ac_config_target in
   15037     "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
   15038     "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
   15039     "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
   15040     "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
   15041     "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
   15042     "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
   15043     "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
   15044     "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
   15045     "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
   15046     "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
   15047     "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
   15048     "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
   15049     "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
   15050     "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
   15051     "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
   15052     "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
   15053 
   15054   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   15055   esac
   15056 done
   15057 
   15058 
   15059 # If the user did not use the arguments to specify the items to instantiate,
   15060 # then the envvar interface is used.  Set only those that are not.
   15061 # We use the long form for the default assignment because of an extremely
   15062 # bizarre bug on SunOS 4.1.3.
   15063 if $ac_need_defaults; then
   15064   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   15065   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   15066   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   15067 fi
   15068 
   15069 # Have a temporary directory for convenience.  Make it in the build tree
   15070 # simply because there is no reason against having it here, and in addition,
   15071 # creating and moving files from /tmp can sometimes cause problems.
   15072 # Hook for its removal unless debugging.
   15073 # Note that there is a small window in which the directory will not be cleaned:
   15074 # after its creation but before its name has been assigned to `$tmp'.
   15075 $debug ||
   15076 {
   15077   tmp= ac_tmp=
   15078   trap 'exit_status=$?
   15079   : "${ac_tmp:=$tmp}"
   15080   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   15081 ' 0
   15082   trap 'as_fn_exit 1' 1 2 13 15
   15083 }
   15084 # Create a (secure) tmp directory for tmp files.
   15085 
   15086 {
   15087   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   15088   test -d "$tmp"
   15089 }  ||
   15090 {
   15091   tmp=./conf$$-$RANDOM
   15092   (umask 077 && mkdir "$tmp")
   15093 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   15094 ac_tmp=$tmp
   15095 
   15096 # Set up the scripts for CONFIG_FILES section.
   15097 # No need to generate them if there are no CONFIG_FILES.
   15098 # This happens for instance with `./config.status config.h'.
   15099 if test -n "$CONFIG_FILES"; then
   15100 
   15101 
   15102 ac_cr=`echo X | tr X '\015'`
   15103 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   15104 # But we know of no other shell where ac_cr would be empty at this
   15105 # point, so we can use a bashism as a fallback.
   15106 if test "x$ac_cr" = x; then
   15107   eval ac_cr=\$\'\\r\'
   15108 fi
   15109 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   15110 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   15111   ac_cs_awk_cr='\\r'
   15112 else
   15113   ac_cs_awk_cr=$ac_cr
   15114 fi
   15115 
   15116 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   15117 _ACEOF
   15118 
   15119 
   15120 {
   15121   echo "cat >conf$$subs.awk <<_ACEOF" &&
   15122   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   15123   echo "_ACEOF"
   15124 } >conf$$subs.sh ||
   15125   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15126 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   15127 ac_delim='%!_!# '
   15128 for ac_last_try in false false false false false :; do
   15129   . ./conf$$subs.sh ||
   15130     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15131 
   15132   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   15133   if test $ac_delim_n = $ac_delim_num; then
   15134     break
   15135   elif $ac_last_try; then
   15136     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15137   else
   15138     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15139   fi
   15140 done
   15141 rm -f conf$$subs.sh
   15142 
   15143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15144 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   15145 _ACEOF
   15146 sed -n '
   15147 h
   15148 s/^/S["/; s/!.*/"]=/
   15149 p
   15150 g
   15151 s/^[^!]*!//
   15152 :repl
   15153 t repl
   15154 s/'"$ac_delim"'$//
   15155 t delim
   15156 :nl
   15157 h
   15158 s/\(.\{148\}\)..*/\1/
   15159 t more1
   15160 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   15161 p
   15162 n
   15163 b repl
   15164 :more1
   15165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15166 p
   15167 g
   15168 s/.\{148\}//
   15169 t nl
   15170 :delim
   15171 h
   15172 s/\(.\{148\}\)..*/\1/
   15173 t more2
   15174 s/["\\]/\\&/g; s/^/"/; s/$/"/
   15175 p
   15176 b
   15177 :more2
   15178 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15179 p
   15180 g
   15181 s/.\{148\}//
   15182 t delim
   15183 ' <conf$$subs.awk | sed '
   15184 /^[^""]/{
   15185   N
   15186   s/\n//
   15187 }
   15188 ' >>$CONFIG_STATUS || ac_write_fail=1
   15189 rm -f conf$$subs.awk
   15190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15191 _ACAWK
   15192 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   15193   for (key in S) S_is_set[key] = 1
   15194   FS = ""
   15195 
   15196 }
   15197 {
   15198   line = $ 0
   15199   nfields = split(line, field, "@")
   15200   substed = 0
   15201   len = length(field[1])
   15202   for (i = 2; i < nfields; i++) {
   15203     key = field[i]
   15204     keylen = length(key)
   15205     if (S_is_set[key]) {
   15206       value = S[key]
   15207       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   15208       len += length(value) + length(field[++i])
   15209       substed = 1
   15210     } else
   15211       len += 1 + keylen
   15212   }
   15213 
   15214   print line
   15215 }
   15216 
   15217 _ACAWK
   15218 _ACEOF
   15219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15220 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   15221   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   15222 else
   15223   cat
   15224 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   15225   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   15226 _ACEOF
   15227 
   15228 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   15229 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   15230 # trailing colons and then remove the whole line if VPATH becomes empty
   15231 # (actually we leave an empty line to preserve line numbers).
   15232 if test "x$srcdir" = x.; then
   15233   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   15234 h
   15235 s///
   15236 s/^/:/
   15237 s/[	 ]*$/:/
   15238 s/:\$(srcdir):/:/g
   15239 s/:\${srcdir}:/:/g
   15240 s/:@srcdir@:/:/g
   15241 s/^:*//
   15242 s/:*$//
   15243 x
   15244 s/\(=[	 ]*\).*/\1/
   15245 G
   15246 s/\n//
   15247 s/^[^=]*=[	 ]*$//
   15248 }'
   15249 fi
   15250 
   15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15252 fi # test -n "$CONFIG_FILES"
   15253 
   15254 # Set up the scripts for CONFIG_HEADERS section.
   15255 # No need to generate them if there are no CONFIG_HEADERS.
   15256 # This happens for instance with `./config.status Makefile'.
   15257 if test -n "$CONFIG_HEADERS"; then
   15258 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   15259 BEGIN {
   15260 _ACEOF
   15261 
   15262 # Transform confdefs.h into an awk script `defines.awk', embedded as
   15263 # here-document in config.status, that substitutes the proper values into
   15264 # config.h.in to produce config.h.
   15265 
   15266 # Create a delimiter string that does not exist in confdefs.h, to ease
   15267 # handling of long lines.
   15268 ac_delim='%!_!# '
   15269 for ac_last_try in false false :; do
   15270   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   15271   if test -z "$ac_tt"; then
   15272     break
   15273   elif $ac_last_try; then
   15274     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   15275   else
   15276     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15277   fi
   15278 done
   15279 
   15280 # For the awk script, D is an array of macro values keyed by name,
   15281 # likewise P contains macro parameters if any.  Preserve backslash
   15282 # newline sequences.
   15283 
   15284 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   15285 sed -n '
   15286 s/.\{148\}/&'"$ac_delim"'/g
   15287 t rset
   15288 :rset
   15289 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   15290 t def
   15291 d
   15292 :def
   15293 s/\\$//
   15294 t bsnl
   15295 s/["\\]/\\&/g
   15296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15297 D["\1"]=" \3"/p
   15298 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   15299 d
   15300 :bsnl
   15301 s/["\\]/\\&/g
   15302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15303 D["\1"]=" \3\\\\\\n"\\/p
   15304 t cont
   15305 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   15306 t cont
   15307 d
   15308 :cont
   15309 n
   15310 s/.\{148\}/&'"$ac_delim"'/g
   15311 t clear
   15312 :clear
   15313 s/\\$//
   15314 t bsnlc
   15315 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   15316 d
   15317 :bsnlc
   15318 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   15319 b cont
   15320 ' <confdefs.h | sed '
   15321 s/'"$ac_delim"'/"\\\
   15322 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   15323 
   15324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15325   for (key in D) D_is_set[key] = 1
   15326   FS = ""
   15327 }
   15328 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   15329   line = \$ 0
   15330   split(line, arg, " ")
   15331   if (arg[1] == "#") {
   15332     defundef = arg[2]
   15333     mac1 = arg[3]
   15334   } else {
   15335     defundef = substr(arg[1], 2)
   15336     mac1 = arg[2]
   15337   }
   15338   split(mac1, mac2, "(") #)
   15339   macro = mac2[1]
   15340   prefix = substr(line, 1, index(line, defundef) - 1)
   15341   if (D_is_set[macro]) {
   15342     # Preserve the white space surrounding the "#".
   15343     print prefix "define", macro P[macro] D[macro]
   15344     next
   15345   } else {
   15346     # Replace #undef with comments.  This is necessary, for example,
   15347     # in the case of _POSIX_SOURCE, which is predefined and required
   15348     # on some systems where configure will not decide to define it.
   15349     if (defundef == "undef") {
   15350       print "/*", prefix defundef, macro, "*/"
   15351       next
   15352     }
   15353   }
   15354 }
   15355 { print }
   15356 _ACAWK
   15357 _ACEOF
   15358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15359   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   15360 fi # test -n "$CONFIG_HEADERS"
   15361 
   15362 
   15363 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   15364 shift
   15365 for ac_tag
   15366 do
   15367   case $ac_tag in
   15368   :[FHLC]) ac_mode=$ac_tag; continue;;
   15369   esac
   15370   case $ac_mode$ac_tag in
   15371   :[FHL]*:*);;
   15372   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   15373   :[FH]-) ac_tag=-:-;;
   15374   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   15375   esac
   15376   ac_save_IFS=$IFS
   15377   IFS=:
   15378   set x $ac_tag
   15379   IFS=$ac_save_IFS
   15380   shift
   15381   ac_file=$1
   15382   shift
   15383 
   15384   case $ac_mode in
   15385   :L) ac_source=$1;;
   15386   :[FH])
   15387     ac_file_inputs=
   15388     for ac_f
   15389     do
   15390       case $ac_f in
   15391       -) ac_f="$ac_tmp/stdin";;
   15392       *) # Look for the file first in the build tree, then in the source tree
   15393 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   15394 	 # because $ac_f cannot contain `:'.
   15395 	 test -f "$ac_f" ||
   15396 	   case $ac_f in
   15397 	   [\\/$]*) false;;
   15398 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   15399 	   esac ||
   15400 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   15401       esac
   15402       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   15403       as_fn_append ac_file_inputs " '$ac_f'"
   15404     done
   15405 
   15406     # Let's still pretend it is `configure' which instantiates (i.e., don't
   15407     # use $as_me), people would be surprised to read:
   15408     #    /* config.h.  Generated by config.status.  */
   15409     configure_input='Generated from '`
   15410 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   15411 	`' by configure.'
   15412     if test x"$ac_file" != x-; then
   15413       configure_input="$ac_file.  $configure_input"
   15414       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   15415 $as_echo "$as_me: creating $ac_file" >&6;}
   15416     fi
   15417     # Neutralize special characters interpreted by sed in replacement strings.
   15418     case $configure_input in #(
   15419     *\&* | *\|* | *\\* )
   15420        ac_sed_conf_input=`$as_echo "$configure_input" |
   15421        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   15422     *) ac_sed_conf_input=$configure_input;;
   15423     esac
   15424 
   15425     case $ac_tag in
   15426     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   15427       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   15428     esac
   15429     ;;
   15430   esac
   15431 
   15432   ac_dir=`$as_dirname -- "$ac_file" ||
   15433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15434 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   15435 	 X"$ac_file" : 'X\(//\)$' \| \
   15436 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   15437 $as_echo X"$ac_file" |
   15438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15439 	    s//\1/
   15440 	    q
   15441 	  }
   15442 	  /^X\(\/\/\)[^/].*/{
   15443 	    s//\1/
   15444 	    q
   15445 	  }
   15446 	  /^X\(\/\/\)$/{
   15447 	    s//\1/
   15448 	    q
   15449 	  }
   15450 	  /^X\(\/\).*/{
   15451 	    s//\1/
   15452 	    q
   15453 	  }
   15454 	  s/.*/./; q'`
   15455   as_dir="$ac_dir"; as_fn_mkdir_p
   15456   ac_builddir=.
   15457 
   15458 case "$ac_dir" in
   15459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   15460 *)
   15461   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   15462   # A ".." for each directory in $ac_dir_suffix.
   15463   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   15464   case $ac_top_builddir_sub in
   15465   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   15466   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   15467   esac ;;
   15468 esac
   15469 ac_abs_top_builddir=$ac_pwd
   15470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   15471 # for backward compatibility:
   15472 ac_top_builddir=$ac_top_build_prefix
   15473 
   15474 case $srcdir in
   15475   .)  # We are building in place.
   15476     ac_srcdir=.
   15477     ac_top_srcdir=$ac_top_builddir_sub
   15478     ac_abs_top_srcdir=$ac_pwd ;;
   15479   [\\/]* | ?:[\\/]* )  # Absolute name.
   15480     ac_srcdir=$srcdir$ac_dir_suffix;
   15481     ac_top_srcdir=$srcdir
   15482     ac_abs_top_srcdir=$srcdir ;;
   15483   *) # Relative name.
   15484     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   15485     ac_top_srcdir=$ac_top_build_prefix$srcdir
   15486     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   15487 esac
   15488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   15489 
   15490 
   15491   case $ac_mode in
   15492   :F)
   15493   #
   15494   # CONFIG_FILE
   15495   #
   15496 
   15497   case $INSTALL in
   15498   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   15499   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   15500   esac
   15501 _ACEOF
   15502 
   15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15504 # If the template does not know about datarootdir, expand it.
   15505 # FIXME: This hack should be removed a few years after 2.60.
   15506 ac_datarootdir_hack=; ac_datarootdir_seen=
   15507 ac_sed_dataroot='
   15508 /datarootdir/ {
   15509   p
   15510   q
   15511 }
   15512 /@datadir@/p
   15513 /@docdir@/p
   15514 /@infodir@/p
   15515 /@localedir@/p
   15516 /@mandir@/p'
   15517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   15518 *datarootdir*) ac_datarootdir_seen=yes;;
   15519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   15520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   15521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   15522 _ACEOF
   15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15524   ac_datarootdir_hack='
   15525   s&@datadir@&$datadir&g
   15526   s&@docdir@&$docdir&g
   15527   s&@infodir@&$infodir&g
   15528   s&@localedir@&$localedir&g
   15529   s&@mandir@&$mandir&g
   15530   s&\\\${datarootdir}&$datarootdir&g' ;;
   15531 esac
   15532 _ACEOF
   15533 
   15534 # Neutralize VPATH when `$srcdir' = `.'.
   15535 # Shell code in configure.ac might set extrasub.
   15536 # FIXME: do we really want to maintain this feature?
   15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15538 ac_sed_extra="$ac_vpsub
   15539 $extrasub
   15540 _ACEOF
   15541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15542 :t
   15543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   15544 s|@configure_input@|$ac_sed_conf_input|;t t
   15545 s&@top_builddir@&$ac_top_builddir_sub&;t t
   15546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   15547 s&@srcdir@&$ac_srcdir&;t t
   15548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   15549 s&@top_srcdir@&$ac_top_srcdir&;t t
   15550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   15551 s&@builddir@&$ac_builddir&;t t
   15552 s&@abs_builddir@&$ac_abs_builddir&;t t
   15553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   15554 s&@INSTALL@&$ac_INSTALL&;t t
   15555 $ac_datarootdir_hack
   15556 "
   15557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   15558   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15559 
   15560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   15561   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   15562   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   15563       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   15564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   15565 which seems to be undefined.  Please make sure it is defined" >&5
   15566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   15567 which seems to be undefined.  Please make sure it is defined" >&2;}
   15568 
   15569   rm -f "$ac_tmp/stdin"
   15570   case $ac_file in
   15571   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   15572   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   15573   esac \
   15574   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15575  ;;
   15576   :H)
   15577   #
   15578   # CONFIG_HEADER
   15579   #
   15580   if test x"$ac_file" != x-; then
   15581     {
   15582       $as_echo "/* $configure_input  */" \
   15583       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   15584     } >"$ac_tmp/config.h" \
   15585       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15586     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   15587       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   15588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   15589     else
   15590       rm -f "$ac_file"
   15591       mv "$ac_tmp/config.h" "$ac_file" \
   15592 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15593     fi
   15594   else
   15595     $as_echo "/* $configure_input  */" \
   15596       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   15597       || as_fn_error $? "could not create -" "$LINENO" 5
   15598   fi
   15599  ;;
   15600 
   15601   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   15602 $as_echo "$as_me: executing $ac_file commands" >&6;}
   15603  ;;
   15604   esac
   15605 
   15606 
   15607   case $ac_file$ac_mode in
   15608     "include/jemalloc/internal/public_symbols.txt":C)
   15609   f="${objroot}include/jemalloc/internal/public_symbols.txt"
   15610   mkdir -p "${objroot}include/jemalloc/internal"
   15611   cp /dev/null "${f}"
   15612   for nm in `echo ${mangling_map} |tr ',' ' '` ; do
   15613     n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
   15614     m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
   15615     echo "${n}:${m}" >> "${f}"
   15616         public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
   15617   done
   15618   for sym in ${public_syms} ; do
   15619     n="${sym}"
   15620     m="${JEMALLOC_PREFIX}${sym}"
   15621     echo "${n}:${m}" >> "${f}"
   15622   done
   15623  ;;
   15624     "include/jemalloc/internal/private_symbols.awk":C)
   15625   f="${objroot}include/jemalloc/internal/private_symbols.awk"
   15626   mkdir -p "${objroot}include/jemalloc/internal"
   15627   export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
   15628   "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
   15629  ;;
   15630     "include/jemalloc/internal/private_symbols_jet.awk":C)
   15631   f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
   15632   mkdir -p "${objroot}include/jemalloc/internal"
   15633   export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
   15634   "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
   15635  ;;
   15636     "include/jemalloc/internal/public_namespace.h":C)
   15637   mkdir -p "${objroot}include/jemalloc/internal"
   15638   "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
   15639  ;;
   15640     "include/jemalloc/internal/public_unnamespace.h":C)
   15641   mkdir -p "${objroot}include/jemalloc/internal"
   15642   "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
   15643  ;;
   15644     "include/jemalloc/jemalloc_protos_jet.h":C)
   15645   mkdir -p "${objroot}include/jemalloc"
   15646   cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
   15647  ;;
   15648     "include/jemalloc/jemalloc_rename.h":C)
   15649   mkdir -p "${objroot}include/jemalloc"
   15650   "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
   15651  ;;
   15652     "include/jemalloc/jemalloc_mangle.h":C)
   15653   mkdir -p "${objroot}include/jemalloc"
   15654   "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
   15655  ;;
   15656     "include/jemalloc/jemalloc_mangle_jet.h":C)
   15657   mkdir -p "${objroot}include/jemalloc"
   15658   "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
   15659  ;;
   15660     "include/jemalloc/jemalloc.h":C)
   15661   mkdir -p "${objroot}include/jemalloc"
   15662   "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
   15663  ;;
   15664 
   15665   esac
   15666 done # for ac_tag
   15667 
   15668 
   15669 as_fn_exit 0
   15670 _ACEOF
   15671 ac_clean_files=$ac_clean_files_save
   15672 
   15673 test $ac_write_fail = 0 ||
   15674   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   15675 
   15676 
   15677 # configure is writing to config.log, and then calls config.status.
   15678 # config.status does its own redirection, appending to config.log.
   15679 # Unfortunately, on DOS this fails, as config.log is still kept open
   15680 # by configure, so config.status won't be able to write to it; its
   15681 # output is simply discarded.  So we exec the FD to /dev/null,
   15682 # effectively closing config.log, so it can be properly (re)opened and
   15683 # appended to by config.status.  When coming back to configure, we
   15684 # need to make the FD available again.
   15685 if test "$no_create" != yes; then
   15686   ac_cs_success=:
   15687   ac_config_status_args=
   15688   test "$silent" = yes &&
   15689     ac_config_status_args="$ac_config_status_args --quiet"
   15690   exec 5>/dev/null
   15691   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   15692   exec 5>>config.log
   15693   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   15694   # would make configure fail if this is the last instruction.
   15695   $ac_cs_success || as_fn_exit 1
   15696 fi
   15697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   15698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   15699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   15700 fi
   15701 
   15702 
   15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
   15704 $as_echo "===============================================================================" >&6; }
   15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
   15706 $as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
   15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
   15708 $as_echo "library revision   : ${rev}" >&6; }
   15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   15710 $as_echo "" >&6; }
   15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
   15712 $as_echo "CONFIG             : ${CONFIG}" >&6; }
   15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
   15714 $as_echo "CC                 : ${CC}" >&6; }
   15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
   15716 $as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
   15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
   15718 $as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
   15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
   15720 $as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
   15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
   15722 $as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
   15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
   15724 $as_echo "CXX                : ${CXX}" >&6; }
   15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
   15726 $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
   15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
   15728 $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
   15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
   15730 $as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
   15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
   15732 $as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
   15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
   15734 $as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
   15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
   15736 $as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
   15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
   15738 $as_echo "LIBS               : ${LIBS}" >&6; }
   15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
   15740 $as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
   15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   15742 $as_echo "" >&6; }
   15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
   15744 $as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
   15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
   15746 $as_echo "XSLROOT            : ${XSLROOT}" >&6; }
   15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   15748 $as_echo "" >&6; }
   15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
   15750 $as_echo "PREFIX             : ${PREFIX}" >&6; }
   15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
   15752 $as_echo "BINDIR             : ${BINDIR}" >&6; }
   15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
   15754 $as_echo "DATADIR            : ${DATADIR}" >&6; }
   15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
   15756 $as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
   15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
   15758 $as_echo "LIBDIR             : ${LIBDIR}" >&6; }
   15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
   15760 $as_echo "MANDIR             : ${MANDIR}" >&6; }
   15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   15762 $as_echo "" >&6; }
   15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
   15764 $as_echo "srcroot            : ${srcroot}" >&6; }
   15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
   15766 $as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
   15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
   15768 $as_echo "objroot            : ${objroot}" >&6; }
   15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
   15770 $as_echo "abs_objroot        : ${abs_objroot}" >&6; }
   15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   15772 $as_echo "" >&6; }
   15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
   15774 $as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
   15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
   15776 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
   15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
   15778 $as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
   15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
   15780 $as_echo "install_suffix     : ${install_suffix}" >&6; }
   15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
   15782 $as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
   15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: documentation      : ${enable_doc}" >&5
   15784 $as_echo "documentation      : ${enable_doc}" >&6; }
   15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs        : ${enable_shared}" >&5
   15786 $as_echo "shared libs        : ${enable_shared}" >&6; }
   15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs        : ${enable_static}" >&5
   15788 $as_echo "static libs        : ${enable_static}" >&6; }
   15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
   15790 $as_echo "autogen            : ${enable_autogen}" >&6; }
   15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
   15792 $as_echo "debug              : ${enable_debug}" >&6; }
   15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
   15794 $as_echo "stats              : ${enable_stats}" >&6; }
   15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental_smallocx : ${enable_experimental_smallocx}" >&5
   15796 $as_echo "experimental_smallocx : ${enable_experimental_smallocx}" >&6; }
   15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
   15798 $as_echo "prof               : ${enable_prof}" >&6; }
   15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
   15800 $as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
   15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
   15802 $as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
   15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
   15804 $as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
   15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
   15806 $as_echo "fill               : ${enable_fill}" >&6; }
   15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
   15808 $as_echo "utrace             : ${enable_utrace}" >&6; }
   15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
   15810 $as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
   15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
   15812 $as_echo "log                : ${enable_log}" >&6; }
   15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
   15814 $as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
   15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
   15816 $as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
   15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
   15818 $as_echo "cxx                : ${enable_cxx}" >&6; }
   15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
   15820 $as_echo "===============================================================================" >&6; }
   15821