1a78e148bSantirez#! /bin/sh 2a78e148bSantirez# Guess values for system-dependent variables and create Makefiles. 3fceef8e0Santirez# Generated by GNU Autoconf 2.69. 4a78e148bSantirez# 5a78e148bSantirez# 6fceef8e0Santirez# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7a78e148bSantirez# 8a78e148bSantirez# 9a78e148bSantirez# This configure script is free software; the Free Software Foundation 10a78e148bSantirez# gives unlimited permission to copy, distribute and modify it. 11a78e148bSantirez## -------------------- ## 12a78e148bSantirez## M4sh Initialization. ## 13a78e148bSantirez## -------------------- ## 14a78e148bSantirez 15a78e148bSantirez# Be more Bourne compatible 16a78e148bSantirezDUALCASE=1; export DUALCASE # for MKS sh 17a78e148bSantirezif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18a78e148bSantirez emulate sh 19a78e148bSantirez NULLCMD=: 20a78e148bSantirez # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21a78e148bSantirez # is contrary to our usage. Disable this feature. 22a78e148bSantirez alias -g '${1+"$@"}'='"$@"' 23a78e148bSantirez setopt NO_GLOB_SUBST 24a78e148bSantirezelse 25a78e148bSantirez case `(set -o) 2>/dev/null` in #( 26a78e148bSantirez *posix*) : 27a78e148bSantirez set -o posix ;; #( 28a78e148bSantirez *) : 29a78e148bSantirez ;; 30a78e148bSantirezesac 31a78e148bSantirezfi 32a78e148bSantirez 33a78e148bSantirez 34a78e148bSantirezas_nl=' 35a78e148bSantirez' 36a78e148bSantirezexport as_nl 37a78e148bSantirez# Printing a long string crashes Solaris 7 /usr/bin/printf. 38a78e148bSantirezas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39a78e148bSantirezas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40a78e148bSantirezas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41a78e148bSantirez# Prefer a ksh shell builtin over an external printf program on Solaris, 42a78e148bSantirez# but without wasting forks for bash or zsh. 43a78e148bSantirezif test -z "$BASH_VERSION$ZSH_VERSION" \ 44a78e148bSantirez && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45a78e148bSantirez as_echo='print -r --' 46a78e148bSantirez as_echo_n='print -rn --' 47a78e148bSantirezelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48a78e148bSantirez as_echo='printf %s\n' 49a78e148bSantirez as_echo_n='printf %s' 50a78e148bSantirezelse 51a78e148bSantirez if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52a78e148bSantirez as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53a78e148bSantirez as_echo_n='/usr/ucb/echo -n' 54a78e148bSantirez else 55a78e148bSantirez as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56a78e148bSantirez as_echo_n_body='eval 57a78e148bSantirez arg=$1; 58a78e148bSantirez case $arg in #( 59a78e148bSantirez *"$as_nl"*) 60a78e148bSantirez expr "X$arg" : "X\\(.*\\)$as_nl"; 61a78e148bSantirez arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62a78e148bSantirez esac; 63a78e148bSantirez expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64a78e148bSantirez ' 65a78e148bSantirez export as_echo_n_body 66a78e148bSantirez as_echo_n='sh -c $as_echo_n_body as_echo' 67a78e148bSantirez fi 68a78e148bSantirez export as_echo_body 69a78e148bSantirez as_echo='sh -c $as_echo_body as_echo' 70a78e148bSantirezfi 71a78e148bSantirez 72a78e148bSantirez# The user is always right. 73a78e148bSantirezif test "${PATH_SEPARATOR+set}" != set; then 74a78e148bSantirez PATH_SEPARATOR=: 75a78e148bSantirez (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76a78e148bSantirez (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77a78e148bSantirez PATH_SEPARATOR=';' 78a78e148bSantirez } 79a78e148bSantirezfi 80a78e148bSantirez 81a78e148bSantirez 82a78e148bSantirez# IFS 83a78e148bSantirez# We need space, tab and new line, in precisely that order. Quoting is 84a78e148bSantirez# there to prevent editors from complaining about space-tab. 85a78e148bSantirez# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86a78e148bSantirez# splitting by setting IFS to empty value.) 87a78e148bSantirezIFS=" "" $as_nl" 88a78e148bSantirez 89a78e148bSantirez# Find who we are. Look in the path if we contain no directory separator. 90ad4c0b41Santirezas_myself= 91a78e148bSantirezcase $0 in #(( 92a78e148bSantirez *[\\/]* ) as_myself=$0 ;; 93a78e148bSantirez *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94a78e148bSantirezfor as_dir in $PATH 95a78e148bSantirezdo 96a78e148bSantirez IFS=$as_save_IFS 97a78e148bSantirez test -z "$as_dir" && as_dir=. 98a78e148bSantirez test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99a78e148bSantirez done 100a78e148bSantirezIFS=$as_save_IFS 101a78e148bSantirez 102a78e148bSantirez ;; 103a78e148bSantirezesac 104a78e148bSantirez# We did not find ourselves, most probably we were run as `sh COMMAND' 105a78e148bSantirez# in which case we are not to be found in the path. 106a78e148bSantirezif test "x$as_myself" = x; then 107a78e148bSantirez as_myself=$0 108a78e148bSantirezfi 109a78e148bSantirezif test ! -f "$as_myself"; then 110a78e148bSantirez $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111a78e148bSantirez exit 1 112a78e148bSantirezfi 113a78e148bSantirez 114a78e148bSantirez# Unset variables that we do not need and which cause bugs (e.g. in 115a78e148bSantirez# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116a78e148bSantirez# suppresses any "Segmentation fault" message there. '((' could 117a78e148bSantirez# trigger a bug in pdksh 5.2.14. 118a78e148bSantirezfor as_var in BASH_ENV ENV MAIL MAILPATH 119a78e148bSantirezdo eval test x\${$as_var+set} = xset \ 120a78e148bSantirez && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121a78e148bSantirezdone 122a78e148bSantirezPS1='$ ' 123a78e148bSantirezPS2='> ' 124a78e148bSantirezPS4='+ ' 125a78e148bSantirez 126a78e148bSantirez# NLS nuisances. 127a78e148bSantirezLC_ALL=C 128a78e148bSantirezexport LC_ALL 129a78e148bSantirezLANGUAGE=C 130a78e148bSantirezexport LANGUAGE 131a78e148bSantirez 132a78e148bSantirez# CDPATH. 133a78e148bSantirez(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134a78e148bSantirez 135fceef8e0Santirez# Use a proper internal environment variable to ensure we don't fall 136fceef8e0Santirez # into an infinite loop, continuously re-executing ourselves. 137fceef8e0Santirez if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138fceef8e0Santirez _as_can_reexec=no; export _as_can_reexec; 139fceef8e0Santirez # We cannot yet assume a decent shell, so we have to provide a 140fceef8e0Santirez# neutralization value for shells without unset; and this also 141fceef8e0Santirez# works around shells that cannot unset nonexistent variables. 142fceef8e0Santirez# Preserve -v and -x to the replacement shell. 143fceef8e0SantirezBASH_ENV=/dev/null 144fceef8e0SantirezENV=/dev/null 145fceef8e0Santirez(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146fceef8e0Santirezcase $- in # (((( 147fceef8e0Santirez *v*x* | *x*v* ) as_opts=-vx ;; 148fceef8e0Santirez *v* ) as_opts=-v ;; 149fceef8e0Santirez *x* ) as_opts=-x ;; 150fceef8e0Santirez * ) as_opts= ;; 151fceef8e0Santirezesac 152fceef8e0Santirezexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153fceef8e0Santirez# Admittedly, this is quite paranoid, since all the known shells bail 154fceef8e0Santirez# out after a failed `exec'. 155fceef8e0Santirez$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156fceef8e0Santirezas_fn_exit 255 157fceef8e0Santirez fi 158fceef8e0Santirez # We don't want this to propagate to other subprocesses. 159fceef8e0Santirez { _as_can_reexec=; unset _as_can_reexec;} 160a78e148bSantirezif test "x$CONFIG_SHELL" = x; then 161a78e148bSantirez as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162a78e148bSantirez emulate sh 163a78e148bSantirez NULLCMD=: 164a78e148bSantirez # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165a78e148bSantirez # is contrary to our usage. Disable this feature. 166a78e148bSantirez alias -g '\${1+\"\$@\"}'='\"\$@\"' 167a78e148bSantirez setopt NO_GLOB_SUBST 168a78e148bSantirezelse 169a78e148bSantirez case \`(set -o) 2>/dev/null\` in #( 170a78e148bSantirez *posix*) : 171a78e148bSantirez set -o posix ;; #( 172a78e148bSantirez *) : 173a78e148bSantirez ;; 174a78e148bSantirezesac 175a78e148bSantirezfi 176a78e148bSantirez" 177a78e148bSantirez as_required="as_fn_return () { (exit \$1); } 178a78e148bSantirezas_fn_success () { as_fn_return 0; } 179a78e148bSantirezas_fn_failure () { as_fn_return 1; } 180a78e148bSantirezas_fn_ret_success () { return 0; } 181a78e148bSantirezas_fn_ret_failure () { return 1; } 182a78e148bSantirez 183a78e148bSantirezexitcode=0 184a78e148bSantirezas_fn_success || { exitcode=1; echo as_fn_success failed.; } 185a78e148bSantirezas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186a78e148bSantirezas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187a78e148bSantirezas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188a78e148bSantirezif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189a78e148bSantirez 190a78e148bSantirezelse 191a78e148bSantirez exitcode=1; echo positional parameters were not saved. 192a78e148bSantirezfi 193fceef8e0Santireztest x\$exitcode = x0 || exit 1 194fceef8e0Santireztest -x / || exit 1" 195a78e148bSantirez as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196a78e148bSantirez as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197a78e148bSantirez eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198a78e148bSantirez test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199a78e148bSantireztest \$(( 1 + 1 )) = 2 || exit 1" 200a78e148bSantirez if (eval "$as_required") 2>/dev/null; then : 201a78e148bSantirez as_have_required=yes 202a78e148bSantirezelse 203a78e148bSantirez as_have_required=no 204a78e148bSantirezfi 205a78e148bSantirez if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206a78e148bSantirez 207a78e148bSantirezelse 208a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209a78e148bSantirezas_found=false 210a78e148bSantirezfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211a78e148bSantirezdo 212a78e148bSantirez IFS=$as_save_IFS 213a78e148bSantirez test -z "$as_dir" && as_dir=. 214a78e148bSantirez as_found=: 215a78e148bSantirez case $as_dir in #( 216a78e148bSantirez /*) 217a78e148bSantirez for as_base in sh bash ksh sh5; do 218a78e148bSantirez # Try only shells that exist, to save several forks. 219a78e148bSantirez as_shell=$as_dir/$as_base 220a78e148bSantirez if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221a78e148bSantirez { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222a78e148bSantirez CONFIG_SHELL=$as_shell as_have_required=yes 223a78e148bSantirez if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224a78e148bSantirez break 2 225a78e148bSantirezfi 226a78e148bSantirezfi 227a78e148bSantirez done;; 228a78e148bSantirez esac 229a78e148bSantirez as_found=false 230a78e148bSantirezdone 231a78e148bSantirez$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232a78e148bSantirez { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233a78e148bSantirez CONFIG_SHELL=$SHELL as_have_required=yes 234a78e148bSantirezfi; } 235a78e148bSantirezIFS=$as_save_IFS 236a78e148bSantirez 237a78e148bSantirez 238a78e148bSantirez if test "x$CONFIG_SHELL" != x; then : 239fceef8e0Santirez export CONFIG_SHELL 240a78e148bSantirez # We cannot yet assume a decent shell, so we have to provide a 241a78e148bSantirez# neutralization value for shells without unset; and this also 242a78e148bSantirez# works around shells that cannot unset nonexistent variables. 243ad4c0b41Santirez# Preserve -v and -x to the replacement shell. 244a78e148bSantirezBASH_ENV=/dev/null 245a78e148bSantirezENV=/dev/null 246a78e148bSantirez(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247ad4c0b41Santirezcase $- in # (((( 248ad4c0b41Santirez *v*x* | *x*v* ) as_opts=-vx ;; 249ad4c0b41Santirez *v* ) as_opts=-v ;; 250ad4c0b41Santirez *x* ) as_opts=-x ;; 251ad4c0b41Santirez * ) as_opts= ;; 252ad4c0b41Santirezesac 253fceef8e0Santirezexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254fceef8e0Santirez# Admittedly, this is quite paranoid, since all the known shells bail 255fceef8e0Santirez# out after a failed `exec'. 256fceef8e0Santirez$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257fceef8e0Santirezexit 255 258a78e148bSantirezfi 259a78e148bSantirez 260a78e148bSantirez if test x$as_have_required = xno; then : 261a78e148bSantirez $as_echo "$0: This script requires a shell more modern than all" 262a78e148bSantirez $as_echo "$0: the shells that I found on your system." 263a78e148bSantirez if test x${ZSH_VERSION+set} = xset ; then 264a78e148bSantirez $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265a78e148bSantirez $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266a78e148bSantirez else 267a78e148bSantirez $as_echo "$0: Please tell [email protected] about your system, 268a78e148bSantirez$0: including any error possibly output before this 269a78e148bSantirez$0: message. Then install a modern shell, or manually run 270a78e148bSantirez$0: the script under such a shell if you do have one." 271a78e148bSantirez fi 272a78e148bSantirez exit 1 273a78e148bSantirezfi 274a78e148bSantirezfi 275a78e148bSantirezfi 276a78e148bSantirezSHELL=${CONFIG_SHELL-/bin/sh} 277a78e148bSantirezexport SHELL 278a78e148bSantirez# Unset more variables known to interfere with behavior of common tools. 279a78e148bSantirezCLICOLOR_FORCE= GREP_OPTIONS= 280a78e148bSantirezunset CLICOLOR_FORCE GREP_OPTIONS 281a78e148bSantirez 282a78e148bSantirez## --------------------- ## 283a78e148bSantirez## M4sh Shell Functions. ## 284a78e148bSantirez## --------------------- ## 285a78e148bSantirez# as_fn_unset VAR 286a78e148bSantirez# --------------- 287a78e148bSantirez# Portably unset VAR. 288a78e148bSantirezas_fn_unset () 289a78e148bSantirez{ 290a78e148bSantirez { eval $1=; unset $1;} 291a78e148bSantirez} 292a78e148bSantirezas_unset=as_fn_unset 293a78e148bSantirez 294a78e148bSantirez# as_fn_set_status STATUS 295a78e148bSantirez# ----------------------- 296a78e148bSantirez# Set $? to STATUS, without forking. 297a78e148bSantirezas_fn_set_status () 298a78e148bSantirez{ 299a78e148bSantirez return $1 300a78e148bSantirez} # as_fn_set_status 301a78e148bSantirez 302a78e148bSantirez# as_fn_exit STATUS 303a78e148bSantirez# ----------------- 304a78e148bSantirez# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305a78e148bSantirezas_fn_exit () 306a78e148bSantirez{ 307a78e148bSantirez set +e 308a78e148bSantirez as_fn_set_status $1 309a78e148bSantirez exit $1 310a78e148bSantirez} # as_fn_exit 311a78e148bSantirez 312a78e148bSantirez# as_fn_mkdir_p 313a78e148bSantirez# ------------- 314a78e148bSantirez# Create "$as_dir" as a directory, including parents if necessary. 315a78e148bSantirezas_fn_mkdir_p () 316a78e148bSantirez{ 317a78e148bSantirez 318a78e148bSantirez case $as_dir in #( 319a78e148bSantirez -*) as_dir=./$as_dir;; 320a78e148bSantirez esac 321a78e148bSantirez test -d "$as_dir" || eval $as_mkdir_p || { 322a78e148bSantirez as_dirs= 323a78e148bSantirez while :; do 324a78e148bSantirez case $as_dir in #( 325a78e148bSantirez *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326a78e148bSantirez *) as_qdir=$as_dir;; 327a78e148bSantirez esac 328a78e148bSantirez as_dirs="'$as_qdir' $as_dirs" 329a78e148bSantirez as_dir=`$as_dirname -- "$as_dir" || 330a78e148bSantirez$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331a78e148bSantirez X"$as_dir" : 'X\(//\)[^/]' \| \ 332a78e148bSantirez X"$as_dir" : 'X\(//\)$' \| \ 333a78e148bSantirez X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334a78e148bSantirez$as_echo X"$as_dir" | 335a78e148bSantirez sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336a78e148bSantirez s//\1/ 337a78e148bSantirez q 338a78e148bSantirez } 339a78e148bSantirez /^X\(\/\/\)[^/].*/{ 340a78e148bSantirez s//\1/ 341a78e148bSantirez q 342a78e148bSantirez } 343a78e148bSantirez /^X\(\/\/\)$/{ 344a78e148bSantirez s//\1/ 345a78e148bSantirez q 346a78e148bSantirez } 347a78e148bSantirez /^X\(\/\).*/{ 348a78e148bSantirez s//\1/ 349a78e148bSantirez q 350a78e148bSantirez } 351a78e148bSantirez s/.*/./; q'` 352a78e148bSantirez test -d "$as_dir" && break 353a78e148bSantirez done 354a78e148bSantirez test -z "$as_dirs" || eval "mkdir $as_dirs" 355ad4c0b41Santirez } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356a78e148bSantirez 357a78e148bSantirez 358a78e148bSantirez} # as_fn_mkdir_p 359fceef8e0Santirez 360fceef8e0Santirez# as_fn_executable_p FILE 361fceef8e0Santirez# ----------------------- 362fceef8e0Santirez# Test if FILE is an executable regular file. 363fceef8e0Santirezas_fn_executable_p () 364fceef8e0Santirez{ 365fceef8e0Santirez test -f "$1" && test -x "$1" 366fceef8e0Santirez} # as_fn_executable_p 367a78e148bSantirez# as_fn_append VAR VALUE 368a78e148bSantirez# ---------------------- 369a78e148bSantirez# Append the text in VALUE to the end of the definition contained in VAR. Take 370a78e148bSantirez# advantage of any shell optimizations that allow amortized linear growth over 371a78e148bSantirez# repeated appends, instead of the typical quadratic growth present in naive 372a78e148bSantirez# implementations. 373a78e148bSantirezif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374a78e148bSantirez eval 'as_fn_append () 375a78e148bSantirez { 376a78e148bSantirez eval $1+=\$2 377a78e148bSantirez }' 378a78e148bSantirezelse 379a78e148bSantirez as_fn_append () 380a78e148bSantirez { 381a78e148bSantirez eval $1=\$$1\$2 382a78e148bSantirez } 383a78e148bSantirezfi # as_fn_append 384a78e148bSantirez 385a78e148bSantirez# as_fn_arith ARG... 386a78e148bSantirez# ------------------ 387a78e148bSantirez# Perform arithmetic evaluation on the ARGs, and store the result in the 388a78e148bSantirez# global $as_val. Take advantage of shells that can avoid forks. The arguments 389a78e148bSantirez# must be portable across $(()) and expr. 390a78e148bSantirezif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391a78e148bSantirez eval 'as_fn_arith () 392a78e148bSantirez { 393a78e148bSantirez as_val=$(( $* )) 394a78e148bSantirez }' 395a78e148bSantirezelse 396a78e148bSantirez as_fn_arith () 397a78e148bSantirez { 398a78e148bSantirez as_val=`expr "$@" || test $? -eq 1` 399a78e148bSantirez } 400a78e148bSantirezfi # as_fn_arith 401a78e148bSantirez 402a78e148bSantirez 403ad4c0b41Santirez# as_fn_error STATUS ERROR [LINENO LOG_FD] 404ad4c0b41Santirez# ---------------------------------------- 405a78e148bSantirez# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406a78e148bSantirez# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407ad4c0b41Santirez# script with STATUS, using 1 if that was 0. 408a78e148bSantirezas_fn_error () 409a78e148bSantirez{ 410ad4c0b41Santirez as_status=$1; test $as_status -eq 0 && as_status=1 411ad4c0b41Santirez if test "$4"; then 412ad4c0b41Santirez as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413ad4c0b41Santirez $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414a78e148bSantirez fi 415ad4c0b41Santirez $as_echo "$as_me: error: $2" >&2 416a78e148bSantirez as_fn_exit $as_status 417a78e148bSantirez} # as_fn_error 418a78e148bSantirez 419a78e148bSantirezif expr a : '\(a\)' >/dev/null 2>&1 && 420a78e148bSantirez test "X`expr 00001 : '.*\(...\)'`" = X001; then 421a78e148bSantirez as_expr=expr 422a78e148bSantirezelse 423a78e148bSantirez as_expr=false 424a78e148bSantirezfi 425a78e148bSantirez 426a78e148bSantirezif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427a78e148bSantirez as_basename=basename 428a78e148bSantirezelse 429a78e148bSantirez as_basename=false 430a78e148bSantirezfi 431a78e148bSantirez 432a78e148bSantirezif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433a78e148bSantirez as_dirname=dirname 434a78e148bSantirezelse 435a78e148bSantirez as_dirname=false 436a78e148bSantirezfi 437a78e148bSantirez 438a78e148bSantirezas_me=`$as_basename -- "$0" || 439a78e148bSantirez$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440a78e148bSantirez X"$0" : 'X\(//\)$' \| \ 441a78e148bSantirez X"$0" : 'X\(/\)' \| . 2>/dev/null || 442a78e148bSantirez$as_echo X/"$0" | 443a78e148bSantirez sed '/^.*\/\([^/][^/]*\)\/*$/{ 444a78e148bSantirez s//\1/ 445a78e148bSantirez q 446a78e148bSantirez } 447a78e148bSantirez /^X\/\(\/\/\)$/{ 448a78e148bSantirez s//\1/ 449a78e148bSantirez q 450a78e148bSantirez } 451a78e148bSantirez /^X\/\(\/\).*/{ 452a78e148bSantirez s//\1/ 453a78e148bSantirez q 454a78e148bSantirez } 455a78e148bSantirez s/.*/./; q'` 456a78e148bSantirez 457a78e148bSantirez# Avoid depending upon Character Ranges. 458a78e148bSantirezas_cr_letters='abcdefghijklmnopqrstuvwxyz' 459a78e148bSantirezas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460a78e148bSantirezas_cr_Letters=$as_cr_letters$as_cr_LETTERS 461a78e148bSantirezas_cr_digits='0123456789' 462a78e148bSantirezas_cr_alnum=$as_cr_Letters$as_cr_digits 463a78e148bSantirez 464a78e148bSantirez 465a78e148bSantirez as_lineno_1=$LINENO as_lineno_1a=$LINENO 466a78e148bSantirez as_lineno_2=$LINENO as_lineno_2a=$LINENO 467a78e148bSantirez eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468a78e148bSantirez test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469a78e148bSantirez # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470a78e148bSantirez sed -n ' 471a78e148bSantirez p 472a78e148bSantirez /[$]LINENO/= 473a78e148bSantirez ' <$as_myself | 474a78e148bSantirez sed ' 475a78e148bSantirez s/[$]LINENO.*/&-/ 476a78e148bSantirez t lineno 477a78e148bSantirez b 478a78e148bSantirez :lineno 479a78e148bSantirez N 480a78e148bSantirez :loop 481a78e148bSantirez s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482a78e148bSantirez t loop 483a78e148bSantirez s/-\n.*// 484a78e148bSantirez ' >$as_me.lineno && 485a78e148bSantirez chmod +x "$as_me.lineno" || 486a78e148bSantirez { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487a78e148bSantirez 488fceef8e0Santirez # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489fceef8e0Santirez # already done that, so ensure we don't try to do so again and fall 490fceef8e0Santirez # in an infinite loop. This has already happened in practice. 491fceef8e0Santirez _as_can_reexec=no; export _as_can_reexec 492a78e148bSantirez # Don't try to exec as it changes $[0], causing all sort of problems 493a78e148bSantirez # (the dirname of $[0] is not the place where we might find the 494a78e148bSantirez # original and so on. Autoconf is especially sensitive to this). 495a78e148bSantirez . "./$as_me.lineno" 496a78e148bSantirez # Exit status is that of the last command. 497a78e148bSantirez exit 498a78e148bSantirez} 499a78e148bSantirez 500a78e148bSantirezECHO_C= ECHO_N= ECHO_T= 501a78e148bSantirezcase `echo -n x` in #((((( 502a78e148bSantirez-n*) 503a78e148bSantirez case `echo 'xy\c'` in 504a78e148bSantirez *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505a78e148bSantirez xy) ECHO_C='\c';; 506a78e148bSantirez *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507a78e148bSantirez ECHO_T=' ';; 508a78e148bSantirez esac;; 509a78e148bSantirez*) 510a78e148bSantirez ECHO_N='-n';; 511a78e148bSantirezesac 512a78e148bSantirez 513a78e148bSantirezrm -f conf$$ conf$$.exe conf$$.file 514a78e148bSantirezif test -d conf$$.dir; then 515a78e148bSantirez rm -f conf$$.dir/conf$$.file 516a78e148bSantirezelse 517a78e148bSantirez rm -f conf$$.dir 518a78e148bSantirez mkdir conf$$.dir 2>/dev/null 519a78e148bSantirezfi 520a78e148bSantirezif (echo >conf$$.file) 2>/dev/null; then 521a78e148bSantirez if ln -s conf$$.file conf$$ 2>/dev/null; then 522a78e148bSantirez as_ln_s='ln -s' 523a78e148bSantirez # ... but there are two gotchas: 524a78e148bSantirez # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525a78e148bSantirez # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526fceef8e0Santirez # In both cases, we have to default to `cp -pR'. 527a78e148bSantirez ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528fceef8e0Santirez as_ln_s='cp -pR' 529a78e148bSantirez elif ln conf$$.file conf$$ 2>/dev/null; then 530a78e148bSantirez as_ln_s=ln 531a78e148bSantirez else 532fceef8e0Santirez as_ln_s='cp -pR' 533a78e148bSantirez fi 534a78e148bSantirezelse 535fceef8e0Santirez as_ln_s='cp -pR' 536a78e148bSantirezfi 537a78e148bSantirezrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538a78e148bSantirezrmdir conf$$.dir 2>/dev/null 539a78e148bSantirez 540a78e148bSantirezif mkdir -p . 2>/dev/null; then 541a78e148bSantirez as_mkdir_p='mkdir -p "$as_dir"' 542a78e148bSantirezelse 543a78e148bSantirez test -d ./-p && rmdir ./-p 544a78e148bSantirez as_mkdir_p=false 545a78e148bSantirezfi 546a78e148bSantirez 547a78e148bSantirezas_test_x='test -x' 548fceef8e0Santirezas_executable_p=as_fn_executable_p 549a78e148bSantirez 550a78e148bSantirez# Sed expression to map a string onto a valid CPP name. 551a78e148bSantirezas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552a78e148bSantirez 553a78e148bSantirez# Sed expression to map a string onto a valid variable name. 554a78e148bSantirezas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555a78e148bSantirez 556a78e148bSantirez 557a78e148bSantireztest -n "$DJDIR" || exec 7<&0 </dev/null 558a78e148bSantirezexec 6>&1 559a78e148bSantirez 560a78e148bSantirez# Name of the host. 561ad4c0b41Santirez# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562a78e148bSantirez# so uname gets run too. 563a78e148bSantirezac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564a78e148bSantirez 565a78e148bSantirez# 566a78e148bSantirez# Initializations. 567a78e148bSantirez# 568a78e148bSantirezac_default_prefix=/usr/local 569a78e148bSantirezac_clean_files= 570a78e148bSantirezac_config_libobj_dir=. 571a78e148bSantirezLIBOBJS= 572a78e148bSantirezcross_compiling=no 573a78e148bSantirezsubdirs= 574a78e148bSantirezMFLAGS= 575a78e148bSantirezMAKEFLAGS= 576a78e148bSantirez 577a78e148bSantirez# Identity of this package. 578a78e148bSantirezPACKAGE_NAME= 579a78e148bSantirezPACKAGE_TARNAME= 580a78e148bSantirezPACKAGE_VERSION= 581a78e148bSantirezPACKAGE_STRING= 582a78e148bSantirezPACKAGE_BUGREPORT= 583a78e148bSantirezPACKAGE_URL= 584a78e148bSantirez 585a78e148bSantirezac_unique_file="Makefile.in" 586a78e148bSantirez# Factoring default headers for most tests. 587a78e148bSantirezac_includes_default="\ 588a78e148bSantirez#include <stdio.h> 589a78e148bSantirez#ifdef HAVE_SYS_TYPES_H 590a78e148bSantirez# include <sys/types.h> 591a78e148bSantirez#endif 592a78e148bSantirez#ifdef HAVE_SYS_STAT_H 593a78e148bSantirez# include <sys/stat.h> 594a78e148bSantirez#endif 595a78e148bSantirez#ifdef STDC_HEADERS 596a78e148bSantirez# include <stdlib.h> 597a78e148bSantirez# include <stddef.h> 598a78e148bSantirez#else 599a78e148bSantirez# ifdef HAVE_STDLIB_H 600a78e148bSantirez# include <stdlib.h> 601a78e148bSantirez# endif 602a78e148bSantirez#endif 603a78e148bSantirez#ifdef HAVE_STRING_H 604a78e148bSantirez# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605a78e148bSantirez# include <memory.h> 606a78e148bSantirez# endif 607a78e148bSantirez# include <string.h> 608a78e148bSantirez#endif 609a78e148bSantirez#ifdef HAVE_STRINGS_H 610a78e148bSantirez# include <strings.h> 611a78e148bSantirez#endif 612a78e148bSantirez#ifdef HAVE_INTTYPES_H 613a78e148bSantirez# include <inttypes.h> 614a78e148bSantirez#endif 615a78e148bSantirez#ifdef HAVE_STDINT_H 616a78e148bSantirez# include <stdint.h> 617a78e148bSantirez#endif 618a78e148bSantirez#ifdef HAVE_UNISTD_H 619a78e148bSantirez# include <unistd.h> 620a78e148bSantirez#endif" 621a78e148bSantirez 622a78e148bSantirezac_subst_vars='LTLIBOBJS 623a78e148bSantirezLIBOBJS 624a78e148bSantirezcfgoutputs_out 625a78e148bSantirezcfgoutputs_in 626a78e148bSantirezcfghdrs_out 627a78e148bSantirezcfghdrs_in 628fceef8e0Santirezenable_zone_allocator 629a78e148bSantirezenable_tls 630a78e148bSantirezenable_lazy_lock 631*5268379eSantirezTESTLIBS 632a78e148bSantirezjemalloc_version_gid 633a78e148bSantirezjemalloc_version_nrev 634a78e148bSantirezjemalloc_version_bugfix 635a78e148bSantirezjemalloc_version_minor 636a78e148bSantirezjemalloc_version_major 637a78e148bSantirezjemalloc_version 638*5268379eSantirezenable_cache_oblivious 639a78e148bSantirezenable_xmalloc 640ad4c0b41Santirezenable_valgrind 641ad4c0b41Santirezenable_utrace 642a78e148bSantirezenable_fill 643ad4c0b41Santirezenable_munmap 644a78e148bSantirezenable_tcache 645a78e148bSantirezenable_prof 646a78e148bSantirezenable_stats 647a78e148bSantirezenable_debug 648fceef8e0Santirezje_ 649a78e148bSantirezinstall_suffix 650fceef8e0Santirezprivate_namespace 651*5268379eSantirezJEMALLOC_CPREFIX 652fceef8e0Santirezenable_code_coverage 653a78e148bSantirezAUTOCONF 654a78e148bSantirezLD 655a78e148bSantirezRANLIB 656a78e148bSantirezINSTALL_DATA 657a78e148bSantirezINSTALL_SCRIPT 658a78e148bSantirezINSTALL_PROGRAM 659a78e148bSantirezenable_autogen 660a78e148bSantirezRPATH_EXTRA 661ad4c0b41SantirezCC_MM 662fceef8e0SantirezAROUT 663fceef8e0SantirezARFLAGS 664ad4c0b41SantirezMKLIB 665ad4c0b41SantirezLDTARGET 666ad4c0b41SantirezCTARGET 667ad4c0b41SantirezPIC_CFLAGS 668ad4c0b41SantirezSOREV 669ad4c0b41SantirezEXTRA_LDFLAGS 670ad4c0b41SantirezDSO_LDFLAGS 671ad4c0b41Santirezlibprefix 672ad4c0b41Santirezexe 673ad4c0b41Santireza 674ad4c0b41Santirezo 675ad4c0b41Santirezimportlib 676ad4c0b41Santirezso 677ad4c0b41SantirezLD_PRELOAD_VAR 678a78e148bSantirezRPATH 679a78e148bSantirezabi 680fceef8e0SantirezAR 681a78e148bSantirezhost_os 682a78e148bSantirezhost_vendor 683a78e148bSantirezhost_cpu 684a78e148bSantirezhost 685a78e148bSantirezbuild_os 686a78e148bSantirezbuild_vendor 687a78e148bSantirezbuild_cpu 688a78e148bSantirezbuild 689a78e148bSantirezEGREP 690a78e148bSantirezGREP 691a78e148bSantirezCPP 692a78e148bSantirezOBJEXT 693a78e148bSantirezEXEEXT 694a78e148bSantirezac_ct_CC 695a78e148bSantirezCPPFLAGS 696a78e148bSantirezLDFLAGS 697a78e148bSantirezCFLAGS 698a78e148bSantirezCC 699a78e148bSantirezXSLROOT 700a78e148bSantirezXSLTPROC 701a78e148bSantirezMANDIR 702a78e148bSantirezDATADIR 703a78e148bSantirezLIBDIR 704a78e148bSantirezINCLUDEDIR 705a78e148bSantirezBINDIR 706a78e148bSantirezPREFIX 707a78e148bSantirezabs_objroot 708a78e148bSantirezobjroot 709a78e148bSantirezabs_srcroot 710a78e148bSantirezsrcroot 711ad4c0b41Santirezrev 712*5268379eSantirezCONFIG 713a78e148bSantireztarget_alias 714a78e148bSantirezhost_alias 715a78e148bSantirezbuild_alias 716a78e148bSantirezLIBS 717a78e148bSantirezECHO_T 718a78e148bSantirezECHO_N 719a78e148bSantirezECHO_C 720a78e148bSantirezDEFS 721a78e148bSantirezmandir 722a78e148bSantirezlocaledir 723a78e148bSantirezlibdir 724a78e148bSantirezpsdir 725a78e148bSantirezpdfdir 726a78e148bSantirezdvidir 727a78e148bSantirezhtmldir 728a78e148bSantirezinfodir 729a78e148bSantirezdocdir 730a78e148bSantirezoldincludedir 731a78e148bSantirezincludedir 732a78e148bSantirezlocalstatedir 733a78e148bSantirezsharedstatedir 734a78e148bSantirezsysconfdir 735a78e148bSantirezdatadir 736a78e148bSantirezdatarootdir 737a78e148bSantirezlibexecdir 738a78e148bSantirezsbindir 739a78e148bSantirezbindir 740a78e148bSantirezprogram_transform_name 741a78e148bSantirezprefix 742a78e148bSantirezexec_prefix 743a78e148bSantirezPACKAGE_URL 744a78e148bSantirezPACKAGE_BUGREPORT 745a78e148bSantirezPACKAGE_STRING 746a78e148bSantirezPACKAGE_VERSION 747a78e148bSantirezPACKAGE_TARNAME 748a78e148bSantirezPACKAGE_NAME 749a78e148bSantirezPATH_SEPARATOR 750a78e148bSantirezSHELL' 751a78e148bSantirezac_subst_files='' 752a78e148bSantirezac_user_opts=' 753a78e148bSantirezenable_option_checking 754a78e148bSantirezwith_xslroot 755a78e148bSantirezwith_rpath 756a78e148bSantirezenable_autogen 757fceef8e0Santirezenable_code_coverage 758ad4c0b41Santirezwith_mangling 759a78e148bSantirezwith_jemalloc_prefix 760fceef8e0Santirezwith_export 7611d03c1c9Sjbergstroemwith_private_namespace 762a78e148bSantirezwith_install_suffix 763a78e148bSantirezenable_cc_silence 764a78e148bSantirezenable_debug 765fceef8e0Santirezenable_ivsalloc 766a78e148bSantirezenable_stats 767a78e148bSantirezenable_prof 768a78e148bSantirezenable_prof_libunwind 769a78e148bSantirezwith_static_libunwind 770a78e148bSantirezenable_prof_libgcc 771a78e148bSantirezenable_prof_gcc 772a78e148bSantirezenable_tcache 773ad4c0b41Santirezenable_munmap 774a78e148bSantirezenable_fill 775ad4c0b41Santirezenable_utrace 776ad4c0b41Santirezenable_valgrind 777a78e148bSantirezenable_xmalloc 778*5268379eSantirezenable_cache_oblivious 779*5268379eSantirezwith_lg_tiny_min 780*5268379eSantirezwith_lg_quantum 781*5268379eSantirezwith_lg_page 782*5268379eSantirezwith_lg_page_sizes 783*5268379eSantirezwith_lg_size_class_group 784a78e148bSantirezenable_lazy_lock 785a78e148bSantirezenable_tls 786fceef8e0Santirezenable_zone_allocator 787a78e148bSantirez' 788a78e148bSantirez ac_precious_vars='build_alias 789a78e148bSantirezhost_alias 790a78e148bSantireztarget_alias 791a78e148bSantirezCC 792a78e148bSantirezCFLAGS 793a78e148bSantirezLDFLAGS 794a78e148bSantirezLIBS 795a78e148bSantirezCPPFLAGS 796a78e148bSantirezCPP' 797a78e148bSantirez 798a78e148bSantirez 799a78e148bSantirez# Initialize some variables set by options. 800a78e148bSantirezac_init_help= 801a78e148bSantirezac_init_version=false 802a78e148bSantirezac_unrecognized_opts= 803a78e148bSantirezac_unrecognized_sep= 804a78e148bSantirez# The variables have the same names as the options, with 805a78e148bSantirez# dashes changed to underlines. 806a78e148bSantirezcache_file=/dev/null 807a78e148bSantirezexec_prefix=NONE 808a78e148bSantirezno_create= 809a78e148bSantirezno_recursion= 810a78e148bSantirezprefix=NONE 811a78e148bSantirezprogram_prefix=NONE 812a78e148bSantirezprogram_suffix=NONE 813a78e148bSantirezprogram_transform_name=s,x,x, 814a78e148bSantirezsilent= 815a78e148bSantirezsite= 816a78e148bSantirezsrcdir= 817a78e148bSantirezverbose= 818a78e148bSantirezx_includes=NONE 819a78e148bSantirezx_libraries=NONE 820a78e148bSantirez 821a78e148bSantirez# Installation directory options. 822a78e148bSantirez# These are left unexpanded so users can "make install exec_prefix=/foo" 823a78e148bSantirez# and all the variables that are supposed to be based on exec_prefix 824a78e148bSantirez# by default will actually change. 825a78e148bSantirez# Use braces instead of parens because sh, perl, etc. also accept them. 826a78e148bSantirez# (The list follows the same order as the GNU Coding Standards.) 827a78e148bSantirezbindir='${exec_prefix}/bin' 828a78e148bSantirezsbindir='${exec_prefix}/sbin' 829a78e148bSantirezlibexecdir='${exec_prefix}/libexec' 830a78e148bSantirezdatarootdir='${prefix}/share' 831a78e148bSantirezdatadir='${datarootdir}' 832a78e148bSantirezsysconfdir='${prefix}/etc' 833a78e148bSantirezsharedstatedir='${prefix}/com' 834a78e148bSantirezlocalstatedir='${prefix}/var' 835a78e148bSantirezincludedir='${prefix}/include' 836a78e148bSantirezoldincludedir='/usr/include' 837a78e148bSantirezdocdir='${datarootdir}/doc/${PACKAGE}' 838a78e148bSantirezinfodir='${datarootdir}/info' 839a78e148bSantirezhtmldir='${docdir}' 840a78e148bSantirezdvidir='${docdir}' 841a78e148bSantirezpdfdir='${docdir}' 842a78e148bSantirezpsdir='${docdir}' 843a78e148bSantirezlibdir='${exec_prefix}/lib' 844a78e148bSantirezlocaledir='${datarootdir}/locale' 845a78e148bSantirezmandir='${datarootdir}/man' 846a78e148bSantirez 847a78e148bSantirezac_prev= 848a78e148bSantirezac_dashdash= 849a78e148bSantirezfor ac_option 850a78e148bSantirezdo 851a78e148bSantirez # If the previous option needs an argument, assign it. 852a78e148bSantirez if test -n "$ac_prev"; then 853a78e148bSantirez eval $ac_prev=\$ac_option 854a78e148bSantirez ac_prev= 855a78e148bSantirez continue 856a78e148bSantirez fi 857a78e148bSantirez 858a78e148bSantirez case $ac_option in 859ad4c0b41Santirez *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860ad4c0b41Santirez *=) ac_optarg= ;; 861a78e148bSantirez *) ac_optarg=yes ;; 862a78e148bSantirez esac 863a78e148bSantirez 864a78e148bSantirez # Accept the important Cygnus configure options, so we can diagnose typos. 865a78e148bSantirez 866a78e148bSantirez case $ac_dashdash$ac_option in 867a78e148bSantirez --) 868a78e148bSantirez ac_dashdash=yes ;; 869a78e148bSantirez 870a78e148bSantirez -bindir | --bindir | --bindi | --bind | --bin | --bi) 871a78e148bSantirez ac_prev=bindir ;; 872a78e148bSantirez -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873a78e148bSantirez bindir=$ac_optarg ;; 874a78e148bSantirez 875a78e148bSantirez -build | --build | --buil | --bui | --bu) 876a78e148bSantirez ac_prev=build_alias ;; 877a78e148bSantirez -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878a78e148bSantirez build_alias=$ac_optarg ;; 879a78e148bSantirez 880a78e148bSantirez -cache-file | --cache-file | --cache-fil | --cache-fi \ 881a78e148bSantirez | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882a78e148bSantirez ac_prev=cache_file ;; 883a78e148bSantirez -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884a78e148bSantirez | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885a78e148bSantirez cache_file=$ac_optarg ;; 886a78e148bSantirez 887a78e148bSantirez --config-cache | -C) 888a78e148bSantirez cache_file=config.cache ;; 889a78e148bSantirez 890a78e148bSantirez -datadir | --datadir | --datadi | --datad) 891a78e148bSantirez ac_prev=datadir ;; 892a78e148bSantirez -datadir=* | --datadir=* | --datadi=* | --datad=*) 893a78e148bSantirez datadir=$ac_optarg ;; 894a78e148bSantirez 895a78e148bSantirez -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896a78e148bSantirez | --dataroo | --dataro | --datar) 897a78e148bSantirez ac_prev=datarootdir ;; 898a78e148bSantirez -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899a78e148bSantirez | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900a78e148bSantirez datarootdir=$ac_optarg ;; 901a78e148bSantirez 902a78e148bSantirez -disable-* | --disable-*) 903a78e148bSantirez ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904a78e148bSantirez # Reject names that are not valid shell variable names. 905a78e148bSantirez expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906ad4c0b41Santirez as_fn_error $? "invalid feature name: $ac_useropt" 907a78e148bSantirez ac_useropt_orig=$ac_useropt 908a78e148bSantirez ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909a78e148bSantirez case $ac_user_opts in 910a78e148bSantirez *" 911a78e148bSantirez"enable_$ac_useropt" 912a78e148bSantirez"*) ;; 913a78e148bSantirez *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914a78e148bSantirez ac_unrecognized_sep=', ';; 915a78e148bSantirez esac 916a78e148bSantirez eval enable_$ac_useropt=no ;; 917a78e148bSantirez 918a78e148bSantirez -docdir | --docdir | --docdi | --doc | --do) 919a78e148bSantirez ac_prev=docdir ;; 920a78e148bSantirez -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921a78e148bSantirez docdir=$ac_optarg ;; 922a78e148bSantirez 923a78e148bSantirez -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924a78e148bSantirez ac_prev=dvidir ;; 925a78e148bSantirez -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926a78e148bSantirez dvidir=$ac_optarg ;; 927a78e148bSantirez 928a78e148bSantirez -enable-* | --enable-*) 929a78e148bSantirez ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930a78e148bSantirez # Reject names that are not valid shell variable names. 931a78e148bSantirez expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932ad4c0b41Santirez as_fn_error $? "invalid feature name: $ac_useropt" 933a78e148bSantirez ac_useropt_orig=$ac_useropt 934a78e148bSantirez ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935a78e148bSantirez case $ac_user_opts in 936a78e148bSantirez *" 937a78e148bSantirez"enable_$ac_useropt" 938a78e148bSantirez"*) ;; 939a78e148bSantirez *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940a78e148bSantirez ac_unrecognized_sep=', ';; 941a78e148bSantirez esac 942a78e148bSantirez eval enable_$ac_useropt=\$ac_optarg ;; 943a78e148bSantirez 944a78e148bSantirez -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945a78e148bSantirez | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946a78e148bSantirez | --exec | --exe | --ex) 947a78e148bSantirez ac_prev=exec_prefix ;; 948a78e148bSantirez -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949a78e148bSantirez | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950a78e148bSantirez | --exec=* | --exe=* | --ex=*) 951a78e148bSantirez exec_prefix=$ac_optarg ;; 952a78e148bSantirez 953a78e148bSantirez -gas | --gas | --ga | --g) 954a78e148bSantirez # Obsolete; use --with-gas. 955a78e148bSantirez with_gas=yes ;; 956a78e148bSantirez 957a78e148bSantirez -help | --help | --hel | --he | -h) 958a78e148bSantirez ac_init_help=long ;; 959a78e148bSantirez -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960a78e148bSantirez ac_init_help=recursive ;; 961a78e148bSantirez -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962a78e148bSantirez ac_init_help=short ;; 963a78e148bSantirez 964a78e148bSantirez -host | --host | --hos | --ho) 965a78e148bSantirez ac_prev=host_alias ;; 966a78e148bSantirez -host=* | --host=* | --hos=* | --ho=*) 967a78e148bSantirez host_alias=$ac_optarg ;; 968a78e148bSantirez 969a78e148bSantirez -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970a78e148bSantirez ac_prev=htmldir ;; 971a78e148bSantirez -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972a78e148bSantirez | --ht=*) 973a78e148bSantirez htmldir=$ac_optarg ;; 974a78e148bSantirez 975a78e148bSantirez -includedir | --includedir | --includedi | --included | --include \ 976a78e148bSantirez | --includ | --inclu | --incl | --inc) 977a78e148bSantirez ac_prev=includedir ;; 978a78e148bSantirez -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979a78e148bSantirez | --includ=* | --inclu=* | --incl=* | --inc=*) 980a78e148bSantirez includedir=$ac_optarg ;; 981a78e148bSantirez 982a78e148bSantirez -infodir | --infodir | --infodi | --infod | --info | --inf) 983a78e148bSantirez ac_prev=infodir ;; 984a78e148bSantirez -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985a78e148bSantirez infodir=$ac_optarg ;; 986a78e148bSantirez 987a78e148bSantirez -libdir | --libdir | --libdi | --libd) 988a78e148bSantirez ac_prev=libdir ;; 989a78e148bSantirez -libdir=* | --libdir=* | --libdi=* | --libd=*) 990a78e148bSantirez libdir=$ac_optarg ;; 991a78e148bSantirez 992a78e148bSantirez -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993a78e148bSantirez | --libexe | --libex | --libe) 994a78e148bSantirez ac_prev=libexecdir ;; 995a78e148bSantirez -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996a78e148bSantirez | --libexe=* | --libex=* | --libe=*) 997a78e148bSantirez libexecdir=$ac_optarg ;; 998a78e148bSantirez 999a78e148bSantirez -localedir | --localedir | --localedi | --localed | --locale) 1000a78e148bSantirez ac_prev=localedir ;; 1001a78e148bSantirez -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002a78e148bSantirez localedir=$ac_optarg ;; 1003a78e148bSantirez 1004a78e148bSantirez -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005a78e148bSantirez | --localstate | --localstat | --localsta | --localst | --locals) 1006a78e148bSantirez ac_prev=localstatedir ;; 1007a78e148bSantirez -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008a78e148bSantirez | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009a78e148bSantirez localstatedir=$ac_optarg ;; 1010a78e148bSantirez 1011a78e148bSantirez -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012a78e148bSantirez ac_prev=mandir ;; 1013a78e148bSantirez -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014a78e148bSantirez mandir=$ac_optarg ;; 1015a78e148bSantirez 1016a78e148bSantirez -nfp | --nfp | --nf) 1017a78e148bSantirez # Obsolete; use --without-fp. 1018a78e148bSantirez with_fp=no ;; 1019a78e148bSantirez 1020a78e148bSantirez -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021a78e148bSantirez | --no-cr | --no-c | -n) 1022a78e148bSantirez no_create=yes ;; 1023a78e148bSantirez 1024a78e148bSantirez -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025a78e148bSantirez | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026a78e148bSantirez no_recursion=yes ;; 1027a78e148bSantirez 1028a78e148bSantirez -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029a78e148bSantirez | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030a78e148bSantirez | --oldin | --oldi | --old | --ol | --o) 1031a78e148bSantirez ac_prev=oldincludedir ;; 1032a78e148bSantirez -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033a78e148bSantirez | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034a78e148bSantirez | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035a78e148bSantirez oldincludedir=$ac_optarg ;; 1036a78e148bSantirez 1037a78e148bSantirez -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038a78e148bSantirez ac_prev=prefix ;; 1039a78e148bSantirez -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040a78e148bSantirez prefix=$ac_optarg ;; 1041a78e148bSantirez 1042a78e148bSantirez -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043a78e148bSantirez | --program-pre | --program-pr | --program-p) 1044a78e148bSantirez ac_prev=program_prefix ;; 1045a78e148bSantirez -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046a78e148bSantirez | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047a78e148bSantirez program_prefix=$ac_optarg ;; 1048a78e148bSantirez 1049a78e148bSantirez -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050a78e148bSantirez | --program-suf | --program-su | --program-s) 1051a78e148bSantirez ac_prev=program_suffix ;; 1052a78e148bSantirez -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053a78e148bSantirez | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054a78e148bSantirez program_suffix=$ac_optarg ;; 1055a78e148bSantirez 1056a78e148bSantirez -program-transform-name | --program-transform-name \ 1057a78e148bSantirez | --program-transform-nam | --program-transform-na \ 1058a78e148bSantirez | --program-transform-n | --program-transform- \ 1059a78e148bSantirez | --program-transform | --program-transfor \ 1060a78e148bSantirez | --program-transfo | --program-transf \ 1061a78e148bSantirez | --program-trans | --program-tran \ 1062a78e148bSantirez | --progr-tra | --program-tr | --program-t) 1063a78e148bSantirez ac_prev=program_transform_name ;; 1064a78e148bSantirez -program-transform-name=* | --program-transform-name=* \ 1065a78e148bSantirez | --program-transform-nam=* | --program-transform-na=* \ 1066a78e148bSantirez | --program-transform-n=* | --program-transform-=* \ 1067a78e148bSantirez | --program-transform=* | --program-transfor=* \ 1068a78e148bSantirez | --program-transfo=* | --program-transf=* \ 1069a78e148bSantirez | --program-trans=* | --program-tran=* \ 1070a78e148bSantirez | --progr-tra=* | --program-tr=* | --program-t=*) 1071a78e148bSantirez program_transform_name=$ac_optarg ;; 1072a78e148bSantirez 1073a78e148bSantirez -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074a78e148bSantirez ac_prev=pdfdir ;; 1075a78e148bSantirez -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076a78e148bSantirez pdfdir=$ac_optarg ;; 1077a78e148bSantirez 1078a78e148bSantirez -psdir | --psdir | --psdi | --psd | --ps) 1079a78e148bSantirez ac_prev=psdir ;; 1080a78e148bSantirez -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081a78e148bSantirez psdir=$ac_optarg ;; 1082a78e148bSantirez 1083a78e148bSantirez -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084a78e148bSantirez | -silent | --silent | --silen | --sile | --sil) 1085a78e148bSantirez silent=yes ;; 1086a78e148bSantirez 1087a78e148bSantirez -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088a78e148bSantirez ac_prev=sbindir ;; 1089a78e148bSantirez -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090a78e148bSantirez | --sbi=* | --sb=*) 1091a78e148bSantirez sbindir=$ac_optarg ;; 1092a78e148bSantirez 1093a78e148bSantirez -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094a78e148bSantirez | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095a78e148bSantirez | --sharedst | --shareds | --shared | --share | --shar \ 1096a78e148bSantirez | --sha | --sh) 1097a78e148bSantirez ac_prev=sharedstatedir ;; 1098a78e148bSantirez -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099a78e148bSantirez | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100a78e148bSantirez | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101a78e148bSantirez | --sha=* | --sh=*) 1102a78e148bSantirez sharedstatedir=$ac_optarg ;; 1103a78e148bSantirez 1104a78e148bSantirez -site | --site | --sit) 1105a78e148bSantirez ac_prev=site ;; 1106a78e148bSantirez -site=* | --site=* | --sit=*) 1107a78e148bSantirez site=$ac_optarg ;; 1108a78e148bSantirez 1109a78e148bSantirez -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110a78e148bSantirez ac_prev=srcdir ;; 1111a78e148bSantirez -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112a78e148bSantirez srcdir=$ac_optarg ;; 1113a78e148bSantirez 1114a78e148bSantirez -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115a78e148bSantirez | --syscon | --sysco | --sysc | --sys | --sy) 1116a78e148bSantirez ac_prev=sysconfdir ;; 1117a78e148bSantirez -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118a78e148bSantirez | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119a78e148bSantirez sysconfdir=$ac_optarg ;; 1120a78e148bSantirez 1121a78e148bSantirez -target | --target | --targe | --targ | --tar | --ta | --t) 1122a78e148bSantirez ac_prev=target_alias ;; 1123a78e148bSantirez -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124a78e148bSantirez target_alias=$ac_optarg ;; 1125a78e148bSantirez 1126a78e148bSantirez -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127a78e148bSantirez verbose=yes ;; 1128a78e148bSantirez 1129a78e148bSantirez -version | --version | --versio | --versi | --vers | -V) 1130a78e148bSantirez ac_init_version=: ;; 1131a78e148bSantirez 1132a78e148bSantirez -with-* | --with-*) 1133a78e148bSantirez ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134a78e148bSantirez # Reject names that are not valid shell variable names. 1135a78e148bSantirez expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136ad4c0b41Santirez as_fn_error $? "invalid package name: $ac_useropt" 1137a78e148bSantirez ac_useropt_orig=$ac_useropt 1138a78e148bSantirez ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139a78e148bSantirez case $ac_user_opts in 1140a78e148bSantirez *" 1141a78e148bSantirez"with_$ac_useropt" 1142a78e148bSantirez"*) ;; 1143a78e148bSantirez *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144a78e148bSantirez ac_unrecognized_sep=', ';; 1145a78e148bSantirez esac 1146a78e148bSantirez eval with_$ac_useropt=\$ac_optarg ;; 1147a78e148bSantirez 1148a78e148bSantirez -without-* | --without-*) 1149a78e148bSantirez ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150a78e148bSantirez # Reject names that are not valid shell variable names. 1151a78e148bSantirez expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152ad4c0b41Santirez as_fn_error $? "invalid package name: $ac_useropt" 1153a78e148bSantirez ac_useropt_orig=$ac_useropt 1154a78e148bSantirez ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155a78e148bSantirez case $ac_user_opts in 1156a78e148bSantirez *" 1157a78e148bSantirez"with_$ac_useropt" 1158a78e148bSantirez"*) ;; 1159a78e148bSantirez *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160a78e148bSantirez ac_unrecognized_sep=', ';; 1161a78e148bSantirez esac 1162a78e148bSantirez eval with_$ac_useropt=no ;; 1163a78e148bSantirez 1164a78e148bSantirez --x) 1165a78e148bSantirez # Obsolete; use --with-x. 1166a78e148bSantirez with_x=yes ;; 1167a78e148bSantirez 1168a78e148bSantirez -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169a78e148bSantirez | --x-incl | --x-inc | --x-in | --x-i) 1170a78e148bSantirez ac_prev=x_includes ;; 1171a78e148bSantirez -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172a78e148bSantirez | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173a78e148bSantirez x_includes=$ac_optarg ;; 1174a78e148bSantirez 1175a78e148bSantirez -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176a78e148bSantirez | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177a78e148bSantirez ac_prev=x_libraries ;; 1178a78e148bSantirez -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179a78e148bSantirez | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180a78e148bSantirez x_libraries=$ac_optarg ;; 1181a78e148bSantirez 1182ad4c0b41Santirez -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183ad4c0b41SantirezTry \`$0 --help' for more information" 1184a78e148bSantirez ;; 1185a78e148bSantirez 1186a78e148bSantirez *=*) 1187a78e148bSantirez ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188a78e148bSantirez # Reject names that are not valid shell variable names. 1189a78e148bSantirez case $ac_envvar in #( 1190a78e148bSantirez '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191ad4c0b41Santirez as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192a78e148bSantirez esac 1193a78e148bSantirez eval $ac_envvar=\$ac_optarg 1194a78e148bSantirez export $ac_envvar ;; 1195a78e148bSantirez 1196a78e148bSantirez *) 1197a78e148bSantirez # FIXME: should be removed in autoconf 3.0. 1198a78e148bSantirez $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199a78e148bSantirez expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200a78e148bSantirez $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201ad4c0b41Santirez : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202a78e148bSantirez ;; 1203a78e148bSantirez 1204a78e148bSantirez esac 1205a78e148bSantirezdone 1206a78e148bSantirez 1207a78e148bSantirezif test -n "$ac_prev"; then 1208a78e148bSantirez ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209ad4c0b41Santirez as_fn_error $? "missing argument to $ac_option" 1210a78e148bSantirezfi 1211a78e148bSantirez 1212a78e148bSantirezif test -n "$ac_unrecognized_opts"; then 1213a78e148bSantirez case $enable_option_checking in 1214a78e148bSantirez no) ;; 1215ad4c0b41Santirez fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216a78e148bSantirez *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217a78e148bSantirez esac 1218a78e148bSantirezfi 1219a78e148bSantirez 1220a78e148bSantirez# Check all directory arguments for consistency. 1221a78e148bSantirezfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222a78e148bSantirez datadir sysconfdir sharedstatedir localstatedir includedir \ 1223a78e148bSantirez oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224a78e148bSantirez libdir localedir mandir 1225a78e148bSantirezdo 1226a78e148bSantirez eval ac_val=\$$ac_var 1227a78e148bSantirez # Remove trailing slashes. 1228a78e148bSantirez case $ac_val in 1229a78e148bSantirez */ ) 1230a78e148bSantirez ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231a78e148bSantirez eval $ac_var=\$ac_val;; 1232a78e148bSantirez esac 1233a78e148bSantirez # Be sure to have absolute directory names. 1234a78e148bSantirez case $ac_val in 1235a78e148bSantirez [\\/$]* | ?:[\\/]* ) continue;; 1236a78e148bSantirez NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237a78e148bSantirez esac 1238ad4c0b41Santirez as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239a78e148bSantirezdone 1240a78e148bSantirez 1241a78e148bSantirez# There might be people who depend on the old broken behavior: `$host' 1242a78e148bSantirez# used to hold the argument of --host etc. 1243a78e148bSantirez# FIXME: To remove some day. 1244a78e148bSantirezbuild=$build_alias 1245a78e148bSantirezhost=$host_alias 1246a78e148bSantireztarget=$target_alias 1247a78e148bSantirez 1248a78e148bSantirez# FIXME: To remove some day. 1249a78e148bSantirezif test "x$host_alias" != x; then 1250a78e148bSantirez if test "x$build_alias" = x; then 1251a78e148bSantirez cross_compiling=maybe 1252a78e148bSantirez elif test "x$build_alias" != "x$host_alias"; then 1253a78e148bSantirez cross_compiling=yes 1254a78e148bSantirez fi 1255a78e148bSantirezfi 1256a78e148bSantirez 1257a78e148bSantirezac_tool_prefix= 1258a78e148bSantireztest -n "$host_alias" && ac_tool_prefix=$host_alias- 1259a78e148bSantirez 1260a78e148bSantireztest "$silent" = yes && exec 6>/dev/null 1261a78e148bSantirez 1262a78e148bSantirez 1263a78e148bSantirezac_pwd=`pwd` && test -n "$ac_pwd" && 1264a78e148bSantirezac_ls_di=`ls -di .` && 1265a78e148bSantirezac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1266ad4c0b41Santirez as_fn_error $? "working directory cannot be determined" 1267a78e148bSantireztest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1268ad4c0b41Santirez as_fn_error $? "pwd does not report name of working directory" 1269a78e148bSantirez 1270a78e148bSantirez 1271a78e148bSantirez# Find the source files, if location was not specified. 1272a78e148bSantirezif test -z "$srcdir"; then 1273a78e148bSantirez ac_srcdir_defaulted=yes 1274a78e148bSantirez # Try the directory containing this script, then the parent directory. 1275a78e148bSantirez ac_confdir=`$as_dirname -- "$as_myself" || 1276a78e148bSantirez$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1277a78e148bSantirez X"$as_myself" : 'X\(//\)[^/]' \| \ 1278a78e148bSantirez X"$as_myself" : 'X\(//\)$' \| \ 1279a78e148bSantirez X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1280a78e148bSantirez$as_echo X"$as_myself" | 1281a78e148bSantirez sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1282a78e148bSantirez s//\1/ 1283a78e148bSantirez q 1284a78e148bSantirez } 1285a78e148bSantirez /^X\(\/\/\)[^/].*/{ 1286a78e148bSantirez s//\1/ 1287a78e148bSantirez q 1288a78e148bSantirez } 1289a78e148bSantirez /^X\(\/\/\)$/{ 1290a78e148bSantirez s//\1/ 1291a78e148bSantirez q 1292a78e148bSantirez } 1293a78e148bSantirez /^X\(\/\).*/{ 1294a78e148bSantirez s//\1/ 1295a78e148bSantirez q 1296a78e148bSantirez } 1297a78e148bSantirez s/.*/./; q'` 1298a78e148bSantirez srcdir=$ac_confdir 1299a78e148bSantirez if test ! -r "$srcdir/$ac_unique_file"; then 1300a78e148bSantirez srcdir=.. 1301a78e148bSantirez fi 1302a78e148bSantirezelse 1303a78e148bSantirez ac_srcdir_defaulted=no 1304a78e148bSantirezfi 1305a78e148bSantirezif test ! -r "$srcdir/$ac_unique_file"; then 1306a78e148bSantirez test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1307ad4c0b41Santirez as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1308a78e148bSantirezfi 1309a78e148bSantirezac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310a78e148bSantirezac_abs_confdir=`( 1311ad4c0b41Santirez cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1312a78e148bSantirez pwd)` 1313a78e148bSantirez# When building in place, set srcdir=. 1314a78e148bSantirezif test "$ac_abs_confdir" = "$ac_pwd"; then 1315a78e148bSantirez srcdir=. 1316a78e148bSantirezfi 1317a78e148bSantirez# Remove unnecessary trailing slashes from srcdir. 1318a78e148bSantirez# Double slashes in file names in object file debugging info 1319a78e148bSantirez# mess up M-x gdb in Emacs. 1320a78e148bSantirezcase $srcdir in 1321a78e148bSantirez*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1322a78e148bSantirezesac 1323a78e148bSantirezfor ac_var in $ac_precious_vars; do 1324a78e148bSantirez eval ac_env_${ac_var}_set=\${${ac_var}+set} 1325a78e148bSantirez eval ac_env_${ac_var}_value=\$${ac_var} 1326a78e148bSantirez eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1327a78e148bSantirez eval ac_cv_env_${ac_var}_value=\$${ac_var} 1328a78e148bSantirezdone 1329a78e148bSantirez 1330a78e148bSantirez# 1331a78e148bSantirez# Report the --help message. 1332a78e148bSantirez# 1333a78e148bSantirezif test "$ac_init_help" = "long"; then 1334a78e148bSantirez # Omit some internal or obsolete options to make the list less imposing. 1335a78e148bSantirez # This message is too long to be a string in the A/UX 3.1 sh. 1336a78e148bSantirez cat <<_ACEOF 1337a78e148bSantirez\`configure' configures this package to adapt to many kinds of systems. 1338a78e148bSantirez 1339a78e148bSantirezUsage: $0 [OPTION]... [VAR=VALUE]... 1340a78e148bSantirez 1341a78e148bSantirezTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1342a78e148bSantirezVAR=VALUE. See below for descriptions of some of the useful variables. 1343a78e148bSantirez 1344a78e148bSantirezDefaults for the options are specified in brackets. 1345a78e148bSantirez 1346a78e148bSantirezConfiguration: 1347a78e148bSantirez -h, --help display this help and exit 1348a78e148bSantirez --help=short display options specific to this package 1349a78e148bSantirez --help=recursive display the short help of all the included packages 1350a78e148bSantirez -V, --version display version information and exit 1351a78e148bSantirez -q, --quiet, --silent do not print \`checking ...' messages 1352a78e148bSantirez --cache-file=FILE cache test results in FILE [disabled] 1353a78e148bSantirez -C, --config-cache alias for \`--cache-file=config.cache' 1354a78e148bSantirez -n, --no-create do not create output files 1355a78e148bSantirez --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1356a78e148bSantirez 1357a78e148bSantirezInstallation directories: 1358a78e148bSantirez --prefix=PREFIX install architecture-independent files in PREFIX 1359a78e148bSantirez [$ac_default_prefix] 1360a78e148bSantirez --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1361a78e148bSantirez [PREFIX] 1362a78e148bSantirez 1363a78e148bSantirezBy default, \`make install' will install all the files in 1364a78e148bSantirez\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1365a78e148bSantirezan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1366a78e148bSantirezfor instance \`--prefix=\$HOME'. 1367a78e148bSantirez 1368a78e148bSantirezFor better control, use the options below. 1369a78e148bSantirez 1370a78e148bSantirezFine tuning of the installation directories: 1371a78e148bSantirez --bindir=DIR user executables [EPREFIX/bin] 1372a78e148bSantirez --sbindir=DIR system admin executables [EPREFIX/sbin] 1373a78e148bSantirez --libexecdir=DIR program executables [EPREFIX/libexec] 1374a78e148bSantirez --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1375a78e148bSantirez --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1376a78e148bSantirez --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1377a78e148bSantirez --libdir=DIR object code libraries [EPREFIX/lib] 1378a78e148bSantirez --includedir=DIR C header files [PREFIX/include] 1379a78e148bSantirez --oldincludedir=DIR C header files for non-gcc [/usr/include] 1380a78e148bSantirez --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1381a78e148bSantirez --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1382a78e148bSantirez --infodir=DIR info documentation [DATAROOTDIR/info] 1383a78e148bSantirez --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1384a78e148bSantirez --mandir=DIR man documentation [DATAROOTDIR/man] 1385a78e148bSantirez --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1386a78e148bSantirez --htmldir=DIR html documentation [DOCDIR] 1387a78e148bSantirez --dvidir=DIR dvi documentation [DOCDIR] 1388a78e148bSantirez --pdfdir=DIR pdf documentation [DOCDIR] 1389a78e148bSantirez --psdir=DIR ps documentation [DOCDIR] 1390a78e148bSantirez_ACEOF 1391a78e148bSantirez 1392a78e148bSantirez cat <<\_ACEOF 1393a78e148bSantirez 1394a78e148bSantirezSystem types: 1395a78e148bSantirez --build=BUILD configure for building on BUILD [guessed] 1396a78e148bSantirez --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397a78e148bSantirez_ACEOF 1398a78e148bSantirezfi 1399a78e148bSantirez 1400a78e148bSantirezif test -n "$ac_init_help"; then 1401a78e148bSantirez 1402a78e148bSantirez cat <<\_ACEOF 1403a78e148bSantirez 1404a78e148bSantirezOptional Features: 1405a78e148bSantirez --disable-option-checking ignore unrecognized --enable/--with options 1406a78e148bSantirez --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407a78e148bSantirez --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408a78e148bSantirez --enable-autogen Automatically regenerate configure output 1409fceef8e0Santirez --enable-code-coverage Enable code coverage 1410*5268379eSantirez --disable-cc-silence Do not silence irrelevant compiler warnings 1411fceef8e0Santirez --enable-debug Build debugging code (implies --enable-ivsalloc) 1412fceef8e0Santirez --enable-ivsalloc Validate pointers passed through the public API 1413ad4c0b41Santirez --disable-stats Disable statistics calculation/reporting 1414a78e148bSantirez --enable-prof Enable allocation profiling 1415a78e148bSantirez --enable-prof-libunwind Use libunwind for backtracing 1416a78e148bSantirez --disable-prof-libgcc Do not use libgcc for backtracing 1417a78e148bSantirez --disable-prof-gcc Do not use gcc intrinsics for backtracing 1418a78e148bSantirez --disable-tcache Disable per thread caches 1419ad4c0b41Santirez --disable-munmap Disable VM deallocation via munmap(2) 1420ad4c0b41Santirez --disable-fill Disable support for junk/zero filling, quarantine, 1421ad4c0b41Santirez and redzones 1422ad4c0b41Santirez --enable-utrace Enable utrace(2)-based tracing 1423ad4c0b41Santirez --disable-valgrind Disable support for Valgrind 1424a78e148bSantirez --enable-xmalloc Support xmalloc option 1425*5268379eSantirez --disable-cache-oblivious 1426*5268379eSantirez Disable support for cache-oblivious allocation 1427*5268379eSantirez alignment 1428ad4c0b41Santirez --enable-lazy-lock Enable lazy locking (only lock when multi-threaded) 1429a78e148bSantirez --disable-tls Disable thread-local storage (__thread keyword) 1430fceef8e0Santirez --disable-zone-allocator 1431fceef8e0Santirez Disable zone allocator for Darwin 1432a78e148bSantirez 1433a78e148bSantirezOptional Packages: 1434a78e148bSantirez --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435a78e148bSantirez --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436a78e148bSantirez --with-xslroot=<path> XSL stylesheet root path 1437a78e148bSantirez --with-rpath=<rpath> Colon-separated rpath (ELF systems only) 1438ad4c0b41Santirez --with-mangling=<map> Mangle symbols in <map> 1439a78e148bSantirez --with-jemalloc-prefix=<prefix> 1440a78e148bSantirez Prefix to prepend to all public APIs 1441fceef8e0Santirez --without-export disable exporting jemalloc public APIs 14421d03c1c9Sjbergstroem --with-private-namespace=<prefix> 14431d03c1c9Sjbergstroem Prefix to prepend to all library-private APIs 1444a78e148bSantirez --with-install-suffix=<suffix> 1445a78e148bSantirez Suffix to append to all installed files 1446a78e148bSantirez --with-static-libunwind=<libunwind.a> 1447a78e148bSantirez Path to static libunwind library; use rather than 1448a78e148bSantirez dynamically linking 1449*5268379eSantirez --with-lg-tiny-min=<lg-tiny-min> 1450*5268379eSantirez Base 2 log of minimum tiny size class to support 1451*5268379eSantirez --with-lg-quantum=<lg-quantum> 1452*5268379eSantirez Base 2 log of minimum allocation alignment 1453*5268379eSantirez --with-lg-page=<lg-page> 1454*5268379eSantirez Base 2 log of system page size 1455*5268379eSantirez --with-lg-page-sizes=<lg-page-sizes> 1456*5268379eSantirez Base 2 logs of system page sizes to support 1457*5268379eSantirez --with-lg-size-class-group=<lg-size-class-group> 1458*5268379eSantirez Base 2 log of size classes per doubling 1459a78e148bSantirez 1460a78e148bSantirezSome influential environment variables: 1461a78e148bSantirez CC C compiler command 1462a78e148bSantirez CFLAGS C compiler flags 1463a78e148bSantirez LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464a78e148bSantirez nonstandard directory <lib dir> 1465a78e148bSantirez LIBS libraries to pass to the linker, e.g. -l<library> 1466a78e148bSantirez CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467a78e148bSantirez you have headers in a nonstandard directory <include dir> 1468a78e148bSantirez CPP C preprocessor 1469a78e148bSantirez 1470a78e148bSantirezUse these variables to override the choices made by `configure' or to help 1471a78e148bSantirezit to find libraries and programs with nonstandard names/locations. 1472a78e148bSantirez 1473a78e148bSantirezReport bugs to the package provider. 1474a78e148bSantirez_ACEOF 1475a78e148bSantirezac_status=$? 1476a78e148bSantirezfi 1477a78e148bSantirez 1478a78e148bSantirezif test "$ac_init_help" = "recursive"; then 1479a78e148bSantirez # If there are subdirs, report their specific --help. 1480a78e148bSantirez for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481a78e148bSantirez test -d "$ac_dir" || 1482a78e148bSantirez { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483a78e148bSantirez continue 1484a78e148bSantirez ac_builddir=. 1485a78e148bSantirez 1486a78e148bSantirezcase "$ac_dir" in 1487a78e148bSantirez.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488a78e148bSantirez*) 1489a78e148bSantirez ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1490a78e148bSantirez # A ".." for each directory in $ac_dir_suffix. 1491a78e148bSantirez ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492a78e148bSantirez case $ac_top_builddir_sub in 1493a78e148bSantirez "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494a78e148bSantirez *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495a78e148bSantirez esac ;; 1496a78e148bSantirezesac 1497a78e148bSantirezac_abs_top_builddir=$ac_pwd 1498a78e148bSantirezac_abs_builddir=$ac_pwd$ac_dir_suffix 1499a78e148bSantirez# for backward compatibility: 1500a78e148bSantirezac_top_builddir=$ac_top_build_prefix 1501a78e148bSantirez 1502a78e148bSantirezcase $srcdir in 1503a78e148bSantirez .) # We are building in place. 1504a78e148bSantirez ac_srcdir=. 1505a78e148bSantirez ac_top_srcdir=$ac_top_builddir_sub 1506a78e148bSantirez ac_abs_top_srcdir=$ac_pwd ;; 1507a78e148bSantirez [\\/]* | ?:[\\/]* ) # Absolute name. 1508a78e148bSantirez ac_srcdir=$srcdir$ac_dir_suffix; 1509a78e148bSantirez ac_top_srcdir=$srcdir 1510a78e148bSantirez ac_abs_top_srcdir=$srcdir ;; 1511a78e148bSantirez *) # Relative name. 1512a78e148bSantirez ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513a78e148bSantirez ac_top_srcdir=$ac_top_build_prefix$srcdir 1514a78e148bSantirez ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515a78e148bSantirezesac 1516a78e148bSantirezac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517a78e148bSantirez 1518a78e148bSantirez cd "$ac_dir" || { ac_status=$?; continue; } 1519a78e148bSantirez # Check for guested configure. 1520a78e148bSantirez if test -f "$ac_srcdir/configure.gnu"; then 1521a78e148bSantirez echo && 1522a78e148bSantirez $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1523a78e148bSantirez elif test -f "$ac_srcdir/configure"; then 1524a78e148bSantirez echo && 1525a78e148bSantirez $SHELL "$ac_srcdir/configure" --help=recursive 1526a78e148bSantirez else 1527a78e148bSantirez $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1528a78e148bSantirez fi || ac_status=$? 1529a78e148bSantirez cd "$ac_pwd" || { ac_status=$?; break; } 1530a78e148bSantirez done 1531a78e148bSantirezfi 1532a78e148bSantirez 1533a78e148bSantireztest -n "$ac_init_help" && exit $ac_status 1534a78e148bSantirezif $ac_init_version; then 1535a78e148bSantirez cat <<\_ACEOF 1536a78e148bSantirezconfigure 1537fceef8e0Santirezgenerated by GNU Autoconf 2.69 1538a78e148bSantirez 1539fceef8e0SantirezCopyright (C) 2012 Free Software Foundation, Inc. 1540a78e148bSantirezThis configure script is free software; the Free Software Foundation 1541a78e148bSantirezgives unlimited permission to copy, distribute and modify it. 1542a78e148bSantirez_ACEOF 1543a78e148bSantirez exit 1544a78e148bSantirezfi 1545a78e148bSantirez 1546a78e148bSantirez## ------------------------ ## 1547a78e148bSantirez## Autoconf initialization. ## 1548a78e148bSantirez## ------------------------ ## 1549a78e148bSantirez 1550a78e148bSantirez# ac_fn_c_try_compile LINENO 1551a78e148bSantirez# -------------------------- 1552a78e148bSantirez# Try to compile conftest.$ac_ext, and return whether this succeeded. 1553a78e148bSantirezac_fn_c_try_compile () 1554a78e148bSantirez{ 1555a78e148bSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556a78e148bSantirez rm -f conftest.$ac_objext 1557a78e148bSantirez if { { ac_try="$ac_compile" 1558a78e148bSantirezcase "(($ac_try" in 1559a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560a78e148bSantirez *) ac_try_echo=$ac_try;; 1561a78e148bSantirezesac 1562a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 1564a78e148bSantirez (eval "$ac_compile") 2>conftest.err 1565a78e148bSantirez ac_status=$? 1566a78e148bSantirez if test -s conftest.err; then 1567a78e148bSantirez grep -v '^ *+' conftest.err >conftest.er1 1568a78e148bSantirez cat conftest.er1 >&5 1569a78e148bSantirez mv -f conftest.er1 conftest.err 1570a78e148bSantirez fi 1571a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572a78e148bSantirez test $ac_status = 0; } && { 1573a78e148bSantirez test -z "$ac_c_werror_flag" || 1574a78e148bSantirez test ! -s conftest.err 1575a78e148bSantirez } && test -s conftest.$ac_objext; then : 1576a78e148bSantirez ac_retval=0 1577a78e148bSantirezelse 1578a78e148bSantirez $as_echo "$as_me: failed program was:" >&5 1579a78e148bSantirezsed 's/^/| /' conftest.$ac_ext >&5 1580a78e148bSantirez 1581a78e148bSantirez ac_retval=1 1582a78e148bSantirezfi 1583ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584a78e148bSantirez as_fn_set_status $ac_retval 1585a78e148bSantirez 1586a78e148bSantirez} # ac_fn_c_try_compile 1587a78e148bSantirez 1588ad4c0b41Santirez# ac_fn_c_try_cpp LINENO 1589ad4c0b41Santirez# ---------------------- 1590ad4c0b41Santirez# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1591ad4c0b41Santirezac_fn_c_try_cpp () 1592ad4c0b41Santirez{ 1593ad4c0b41Santirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594ad4c0b41Santirez if { { ac_try="$ac_cpp conftest.$ac_ext" 1595ad4c0b41Santirezcase "(($ac_try" in 1596ad4c0b41Santirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597ad4c0b41Santirez *) ac_try_echo=$ac_try;; 1598ad4c0b41Santirezesac 1599ad4c0b41Santirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600ad4c0b41Santirez$as_echo "$ac_try_echo"; } >&5 1601ad4c0b41Santirez (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1602ad4c0b41Santirez ac_status=$? 1603ad4c0b41Santirez if test -s conftest.err; then 1604ad4c0b41Santirez grep -v '^ *+' conftest.err >conftest.er1 1605ad4c0b41Santirez cat conftest.er1 >&5 1606ad4c0b41Santirez mv -f conftest.er1 conftest.err 1607ad4c0b41Santirez fi 1608ad4c0b41Santirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609ad4c0b41Santirez test $ac_status = 0; } > conftest.i && { 1610ad4c0b41Santirez test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1611ad4c0b41Santirez test ! -s conftest.err 1612ad4c0b41Santirez }; then : 1613ad4c0b41Santirez ac_retval=0 1614ad4c0b41Santirezelse 1615ad4c0b41Santirez $as_echo "$as_me: failed program was:" >&5 1616ad4c0b41Santirezsed 's/^/| /' conftest.$ac_ext >&5 1617ad4c0b41Santirez 1618ad4c0b41Santirez ac_retval=1 1619ad4c0b41Santirezfi 1620ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621ad4c0b41Santirez as_fn_set_status $ac_retval 1622ad4c0b41Santirez 1623ad4c0b41Santirez} # ac_fn_c_try_cpp 1624ad4c0b41Santirez 1625a78e148bSantirez# ac_fn_c_try_run LINENO 1626a78e148bSantirez# ---------------------- 1627a78e148bSantirez# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1628a78e148bSantirez# that executables *can* be run. 1629a78e148bSantirezac_fn_c_try_run () 1630a78e148bSantirez{ 1631a78e148bSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632a78e148bSantirez if { { ac_try="$ac_link" 1633a78e148bSantirezcase "(($ac_try" in 1634a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635a78e148bSantirez *) ac_try_echo=$ac_try;; 1636a78e148bSantirezesac 1637a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 1639a78e148bSantirez (eval "$ac_link") 2>&5 1640a78e148bSantirez ac_status=$? 1641a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642a78e148bSantirez test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1643a78e148bSantirez { { case "(($ac_try" in 1644a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645a78e148bSantirez *) ac_try_echo=$ac_try;; 1646a78e148bSantirezesac 1647a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 1649a78e148bSantirez (eval "$ac_try") 2>&5 1650a78e148bSantirez ac_status=$? 1651a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652a78e148bSantirez test $ac_status = 0; }; }; then : 1653a78e148bSantirez ac_retval=0 1654a78e148bSantirezelse 1655a78e148bSantirez $as_echo "$as_me: program exited with status $ac_status" >&5 1656a78e148bSantirez $as_echo "$as_me: failed program was:" >&5 1657a78e148bSantirezsed 's/^/| /' conftest.$ac_ext >&5 1658a78e148bSantirez 1659a78e148bSantirez ac_retval=$ac_status 1660a78e148bSantirezfi 1661a78e148bSantirez rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1662ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663a78e148bSantirez as_fn_set_status $ac_retval 1664a78e148bSantirez 1665a78e148bSantirez} # ac_fn_c_try_run 1666a78e148bSantirez 1667fceef8e0Santirez# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1668fceef8e0Santirez# ------------------------------------------------------- 1669fceef8e0Santirez# Tests whether HEADER exists and can be compiled using the include files in 1670fceef8e0Santirez# INCLUDES, setting the cache variable VAR accordingly. 1671fceef8e0Santirezac_fn_c_check_header_compile () 1672fceef8e0Santirez{ 1673fceef8e0Santirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1675fceef8e0Santirez$as_echo_n "checking for $2... " >&6; } 1676fceef8e0Santirezif eval \${$3+:} false; then : 1677fceef8e0Santirez $as_echo_n "(cached) " >&6 1678fceef8e0Santirezelse 1679fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1680fceef8e0Santirez/* end confdefs.h. */ 1681fceef8e0Santirez$4 1682fceef8e0Santirez#include <$2> 1683fceef8e0Santirez_ACEOF 1684fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 1685fceef8e0Santirez eval "$3=yes" 1686fceef8e0Santirezelse 1687fceef8e0Santirez eval "$3=no" 1688fceef8e0Santirezfi 1689fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1690fceef8e0Santirezfi 1691fceef8e0Santirezeval ac_res=\$$3 1692fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1693fceef8e0Santirez$as_echo "$ac_res" >&6; } 1694fceef8e0Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695fceef8e0Santirez 1696fceef8e0Santirez} # ac_fn_c_check_header_compile 1697fceef8e0Santirez 1698a78e148bSantirez# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1699a78e148bSantirez# -------------------------------------------- 1700a78e148bSantirez# Tries to find the compile-time value of EXPR in a program that includes 1701a78e148bSantirez# INCLUDES, setting VAR accordingly. Returns whether the value could be 1702a78e148bSantirez# computed 1703a78e148bSantirezac_fn_c_compute_int () 1704a78e148bSantirez{ 1705a78e148bSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706a78e148bSantirez if test "$cross_compiling" = yes; then 1707a78e148bSantirez # Depending upon the size, compute the lo and hi bounds. 1708a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1709a78e148bSantirez/* end confdefs.h. */ 1710a78e148bSantirez$4 1711a78e148bSantirezint 1712a78e148bSantirezmain () 1713a78e148bSantirez{ 1714a78e148bSantirezstatic int test_array [1 - 2 * !(($2) >= 0)]; 1715fceef8e0Santireztest_array [0] = 0; 1716fceef8e0Santirezreturn test_array [0]; 1717a78e148bSantirez 1718a78e148bSantirez ; 1719a78e148bSantirez return 0; 1720a78e148bSantirez} 1721a78e148bSantirez_ACEOF 1722a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 1723a78e148bSantirez ac_lo=0 ac_mid=0 1724a78e148bSantirez while :; do 1725a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726a78e148bSantirez/* end confdefs.h. */ 1727a78e148bSantirez$4 1728a78e148bSantirezint 1729a78e148bSantirezmain () 1730a78e148bSantirez{ 1731a78e148bSantirezstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1732fceef8e0Santireztest_array [0] = 0; 1733fceef8e0Santirezreturn test_array [0]; 1734a78e148bSantirez 1735a78e148bSantirez ; 1736a78e148bSantirez return 0; 1737a78e148bSantirez} 1738a78e148bSantirez_ACEOF 1739a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 1740a78e148bSantirez ac_hi=$ac_mid; break 1741a78e148bSantirezelse 1742a78e148bSantirez as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1743a78e148bSantirez if test $ac_lo -le $ac_mid; then 1744a78e148bSantirez ac_lo= ac_hi= 1745a78e148bSantirez break 1746a78e148bSantirez fi 1747a78e148bSantirez as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1748a78e148bSantirezfi 1749a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750a78e148bSantirez done 1751a78e148bSantirezelse 1752a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753a78e148bSantirez/* end confdefs.h. */ 1754a78e148bSantirez$4 1755a78e148bSantirezint 1756a78e148bSantirezmain () 1757a78e148bSantirez{ 1758a78e148bSantirezstatic int test_array [1 - 2 * !(($2) < 0)]; 1759fceef8e0Santireztest_array [0] = 0; 1760fceef8e0Santirezreturn test_array [0]; 1761a78e148bSantirez 1762a78e148bSantirez ; 1763a78e148bSantirez return 0; 1764a78e148bSantirez} 1765a78e148bSantirez_ACEOF 1766a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 1767a78e148bSantirez ac_hi=-1 ac_mid=-1 1768a78e148bSantirez while :; do 1769a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770a78e148bSantirez/* end confdefs.h. */ 1771a78e148bSantirez$4 1772a78e148bSantirezint 1773a78e148bSantirezmain () 1774a78e148bSantirez{ 1775a78e148bSantirezstatic int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1776fceef8e0Santireztest_array [0] = 0; 1777fceef8e0Santirezreturn test_array [0]; 1778a78e148bSantirez 1779a78e148bSantirez ; 1780a78e148bSantirez return 0; 1781a78e148bSantirez} 1782a78e148bSantirez_ACEOF 1783a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 1784a78e148bSantirez ac_lo=$ac_mid; break 1785a78e148bSantirezelse 1786a78e148bSantirez as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1787a78e148bSantirez if test $ac_mid -le $ac_hi; then 1788a78e148bSantirez ac_lo= ac_hi= 1789a78e148bSantirez break 1790a78e148bSantirez fi 1791a78e148bSantirez as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1792a78e148bSantirezfi 1793a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794a78e148bSantirez done 1795a78e148bSantirezelse 1796a78e148bSantirez ac_lo= ac_hi= 1797a78e148bSantirezfi 1798a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1799a78e148bSantirezfi 1800a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801a78e148bSantirez# Binary search between lo and hi bounds. 1802a78e148bSantirezwhile test "x$ac_lo" != "x$ac_hi"; do 1803a78e148bSantirez as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1804a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805a78e148bSantirez/* end confdefs.h. */ 1806a78e148bSantirez$4 1807a78e148bSantirezint 1808a78e148bSantirezmain () 1809a78e148bSantirez{ 1810a78e148bSantirezstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1811fceef8e0Santireztest_array [0] = 0; 1812fceef8e0Santirezreturn test_array [0]; 1813a78e148bSantirez 1814a78e148bSantirez ; 1815a78e148bSantirez return 0; 1816a78e148bSantirez} 1817a78e148bSantirez_ACEOF 1818a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 1819a78e148bSantirez ac_hi=$ac_mid 1820a78e148bSantirezelse 1821a78e148bSantirez as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1822a78e148bSantirezfi 1823a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1824a78e148bSantirezdone 1825a78e148bSantirezcase $ac_lo in #(( 1826a78e148bSantirez?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1827a78e148bSantirez'') ac_retval=1 ;; 1828a78e148bSantirezesac 1829a78e148bSantirez else 1830a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831a78e148bSantirez/* end confdefs.h. */ 1832a78e148bSantirez$4 1833a78e148bSantirezstatic long int longval () { return $2; } 1834a78e148bSantirezstatic unsigned long int ulongval () { return $2; } 1835a78e148bSantirez#include <stdio.h> 1836a78e148bSantirez#include <stdlib.h> 1837a78e148bSantirezint 1838a78e148bSantirezmain () 1839a78e148bSantirez{ 1840a78e148bSantirez 1841a78e148bSantirez FILE *f = fopen ("conftest.val", "w"); 1842a78e148bSantirez if (! f) 1843a78e148bSantirez return 1; 1844a78e148bSantirez if (($2) < 0) 1845a78e148bSantirez { 1846a78e148bSantirez long int i = longval (); 1847a78e148bSantirez if (i != ($2)) 1848a78e148bSantirez return 1; 1849a78e148bSantirez fprintf (f, "%ld", i); 1850a78e148bSantirez } 1851a78e148bSantirez else 1852a78e148bSantirez { 1853a78e148bSantirez unsigned long int i = ulongval (); 1854a78e148bSantirez if (i != ($2)) 1855a78e148bSantirez return 1; 1856a78e148bSantirez fprintf (f, "%lu", i); 1857a78e148bSantirez } 1858a78e148bSantirez /* Do not output a trailing newline, as this causes \r\n confusion 1859a78e148bSantirez on some platforms. */ 1860a78e148bSantirez return ferror (f) || fclose (f) != 0; 1861a78e148bSantirez 1862a78e148bSantirez ; 1863a78e148bSantirez return 0; 1864a78e148bSantirez} 1865a78e148bSantirez_ACEOF 1866a78e148bSantirezif ac_fn_c_try_run "$LINENO"; then : 1867a78e148bSantirez echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1868a78e148bSantirezelse 1869a78e148bSantirez ac_retval=1 1870a78e148bSantirezfi 1871a78e148bSantirezrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1872a78e148bSantirez conftest.$ac_objext conftest.beam conftest.$ac_ext 1873a78e148bSantirezrm -f conftest.val 1874a78e148bSantirez 1875a78e148bSantirez fi 1876ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877a78e148bSantirez as_fn_set_status $ac_retval 1878a78e148bSantirez 1879a78e148bSantirez} # ac_fn_c_compute_int 1880a78e148bSantirez 1881a78e148bSantirez# ac_fn_c_try_link LINENO 1882a78e148bSantirez# ----------------------- 1883a78e148bSantirez# Try to link conftest.$ac_ext, and return whether this succeeded. 1884a78e148bSantirezac_fn_c_try_link () 1885a78e148bSantirez{ 1886a78e148bSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887a78e148bSantirez rm -f conftest.$ac_objext conftest$ac_exeext 1888a78e148bSantirez if { { ac_try="$ac_link" 1889a78e148bSantirezcase "(($ac_try" in 1890a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891a78e148bSantirez *) ac_try_echo=$ac_try;; 1892a78e148bSantirezesac 1893a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 1895a78e148bSantirez (eval "$ac_link") 2>conftest.err 1896a78e148bSantirez ac_status=$? 1897a78e148bSantirez if test -s conftest.err; then 1898a78e148bSantirez grep -v '^ *+' conftest.err >conftest.er1 1899a78e148bSantirez cat conftest.er1 >&5 1900a78e148bSantirez mv -f conftest.er1 conftest.err 1901a78e148bSantirez fi 1902a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903a78e148bSantirez test $ac_status = 0; } && { 1904a78e148bSantirez test -z "$ac_c_werror_flag" || 1905a78e148bSantirez test ! -s conftest.err 1906a78e148bSantirez } && test -s conftest$ac_exeext && { 1907a78e148bSantirez test "$cross_compiling" = yes || 1908fceef8e0Santirez test -x conftest$ac_exeext 1909a78e148bSantirez }; then : 1910a78e148bSantirez ac_retval=0 1911a78e148bSantirezelse 1912a78e148bSantirez $as_echo "$as_me: failed program was:" >&5 1913a78e148bSantirezsed 's/^/| /' conftest.$ac_ext >&5 1914a78e148bSantirez 1915a78e148bSantirez ac_retval=1 1916a78e148bSantirezfi 1917a78e148bSantirez # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1918a78e148bSantirez # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1919a78e148bSantirez # interfere with the next link command; also delete a directory that is 1920a78e148bSantirez # left behind by Apple's compiler. We do this before executing the actions. 1921a78e148bSantirez rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1922ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923a78e148bSantirez as_fn_set_status $ac_retval 1924a78e148bSantirez 1925a78e148bSantirez} # ac_fn_c_try_link 1926a78e148bSantirez 1927ad4c0b41Santirez# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1928ad4c0b41Santirez# ------------------------------------------------------- 1929ad4c0b41Santirez# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1930ad4c0b41Santirez# the include files in INCLUDES and setting the cache variable VAR 1931ad4c0b41Santirez# accordingly. 1932ad4c0b41Santirezac_fn_c_check_header_mongrel () 1933ad4c0b41Santirez{ 1934ad4c0b41Santirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935ad4c0b41Santirez if eval \${$3+:} false; then : 1936ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937ad4c0b41Santirez$as_echo_n "checking for $2... " >&6; } 1938ad4c0b41Santirezif eval \${$3+:} false; then : 1939ad4c0b41Santirez $as_echo_n "(cached) " >&6 1940ad4c0b41Santirezfi 1941ad4c0b41Santirezeval ac_res=\$$3 1942ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1943ad4c0b41Santirez$as_echo "$ac_res" >&6; } 1944ad4c0b41Santirezelse 1945ad4c0b41Santirez # Is the header compilable? 1946ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1947ad4c0b41Santirez$as_echo_n "checking $2 usability... " >&6; } 1948ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949ad4c0b41Santirez/* end confdefs.h. */ 1950ad4c0b41Santirez$4 1951ad4c0b41Santirez#include <$2> 1952ad4c0b41Santirez_ACEOF 1953ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 1954ad4c0b41Santirez ac_header_compiler=yes 1955ad4c0b41Santirezelse 1956ad4c0b41Santirez ac_header_compiler=no 1957ad4c0b41Santirezfi 1958ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1959ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1960ad4c0b41Santirez$as_echo "$ac_header_compiler" >&6; } 1961ad4c0b41Santirez 1962ad4c0b41Santirez# Is the header present? 1963ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1964ad4c0b41Santirez$as_echo_n "checking $2 presence... " >&6; } 1965ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966ad4c0b41Santirez/* end confdefs.h. */ 1967ad4c0b41Santirez#include <$2> 1968ad4c0b41Santirez_ACEOF 1969ad4c0b41Santirezif ac_fn_c_try_cpp "$LINENO"; then : 1970ad4c0b41Santirez ac_header_preproc=yes 1971ad4c0b41Santirezelse 1972ad4c0b41Santirez ac_header_preproc=no 1973ad4c0b41Santirezfi 1974ad4c0b41Santirezrm -f conftest.err conftest.i conftest.$ac_ext 1975ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1976ad4c0b41Santirez$as_echo "$ac_header_preproc" >&6; } 1977ad4c0b41Santirez 1978ad4c0b41Santirez# So? What about this header? 1979ad4c0b41Santirezcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1980ad4c0b41Santirez yes:no: ) 1981ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1982ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1983ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1984ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1985ad4c0b41Santirez ;; 1986ad4c0b41Santirez no:yes:* ) 1987ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1988ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1989ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1990ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1991ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1992ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1993ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1994ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1995ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1996ad4c0b41Santirez$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1997ad4c0b41Santirez ;; 1998ad4c0b41Santirezesac 1999ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000ad4c0b41Santirez$as_echo_n "checking for $2... " >&6; } 2001ad4c0b41Santirezif eval \${$3+:} false; then : 2002ad4c0b41Santirez $as_echo_n "(cached) " >&6 2003ad4c0b41Santirezelse 2004ad4c0b41Santirez eval "$3=\$ac_header_compiler" 2005ad4c0b41Santirezfi 2006ad4c0b41Santirezeval ac_res=\$$3 2007ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008ad4c0b41Santirez$as_echo "$ac_res" >&6; } 2009ad4c0b41Santirezfi 2010ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011ad4c0b41Santirez 2012ad4c0b41Santirez} # ac_fn_c_check_header_mongrel 2013ad4c0b41Santirez 2014*5268379eSantirez# ac_fn_c_check_func LINENO FUNC VAR 2015*5268379eSantirez# ---------------------------------- 2016*5268379eSantirez# Tests whether FUNC exists, setting the cache variable VAR accordingly 2017*5268379eSantirezac_fn_c_check_func () 2018*5268379eSantirez{ 2019*5268379eSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2021*5268379eSantirez$as_echo_n "checking for $2... " >&6; } 2022*5268379eSantirezif eval \${$3+:} false; then : 2023*5268379eSantirez $as_echo_n "(cached) " >&6 2024*5268379eSantirezelse 2025*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026*5268379eSantirez/* end confdefs.h. */ 2027*5268379eSantirez/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2028*5268379eSantirez For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2029*5268379eSantirez#define $2 innocuous_$2 2030*5268379eSantirez 2031*5268379eSantirez/* System header to define __stub macros and hopefully few prototypes, 2032*5268379eSantirez which can conflict with char $2 (); below. 2033*5268379eSantirez Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2034*5268379eSantirez <limits.h> exists even on freestanding compilers. */ 2035*5268379eSantirez 2036*5268379eSantirez#ifdef __STDC__ 2037*5268379eSantirez# include <limits.h> 2038*5268379eSantirez#else 2039*5268379eSantirez# include <assert.h> 2040*5268379eSantirez#endif 2041*5268379eSantirez 2042*5268379eSantirez#undef $2 2043*5268379eSantirez 2044*5268379eSantirez/* Override any GCC internal prototype to avoid an error. 2045*5268379eSantirez Use char because int might match the return type of a GCC 2046*5268379eSantirez builtin and then its argument prototype would still apply. */ 2047*5268379eSantirez#ifdef __cplusplus 2048*5268379eSantirezextern "C" 2049*5268379eSantirez#endif 2050*5268379eSantirezchar $2 (); 2051*5268379eSantirez/* The GNU C library defines this for functions which it implements 2052*5268379eSantirez to always fail with ENOSYS. Some functions are actually named 2053*5268379eSantirez something starting with __ and the normal name is an alias. */ 2054*5268379eSantirez#if defined __stub_$2 || defined __stub___$2 2055*5268379eSantirezchoke me 2056*5268379eSantirez#endif 2057*5268379eSantirez 2058*5268379eSantirezint 2059*5268379eSantirezmain () 2060*5268379eSantirez{ 2061*5268379eSantirezreturn $2 (); 2062*5268379eSantirez ; 2063*5268379eSantirez return 0; 2064*5268379eSantirez} 2065*5268379eSantirez_ACEOF 2066*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 2067*5268379eSantirez eval "$3=yes" 2068*5268379eSantirezelse 2069*5268379eSantirez eval "$3=no" 2070*5268379eSantirezfi 2071*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 2072*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 2073*5268379eSantirezfi 2074*5268379eSantirezeval ac_res=\$$3 2075*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2076*5268379eSantirez$as_echo "$ac_res" >&6; } 2077*5268379eSantirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078*5268379eSantirez 2079*5268379eSantirez} # ac_fn_c_check_func 2080*5268379eSantirez 2081a78e148bSantirez# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2082a78e148bSantirez# ------------------------------------------- 2083a78e148bSantirez# Tests whether TYPE exists after having included INCLUDES, setting cache 2084a78e148bSantirez# variable VAR accordingly. 2085a78e148bSantirezac_fn_c_check_type () 2086a78e148bSantirez{ 2087a78e148bSantirez as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2088a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2089a78e148bSantirez$as_echo_n "checking for $2... " >&6; } 2090ad4c0b41Santirezif eval \${$3+:} false; then : 2091a78e148bSantirez $as_echo_n "(cached) " >&6 2092a78e148bSantirezelse 2093a78e148bSantirez eval "$3=no" 2094a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095a78e148bSantirez/* end confdefs.h. */ 2096a78e148bSantirez$4 2097a78e148bSantirezint 2098a78e148bSantirezmain () 2099a78e148bSantirez{ 2100a78e148bSantirezif (sizeof ($2)) 2101a78e148bSantirez return 0; 2102a78e148bSantirez ; 2103a78e148bSantirez return 0; 2104a78e148bSantirez} 2105a78e148bSantirez_ACEOF 2106a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 2107a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108a78e148bSantirez/* end confdefs.h. */ 2109a78e148bSantirez$4 2110a78e148bSantirezint 2111a78e148bSantirezmain () 2112a78e148bSantirez{ 2113a78e148bSantirezif (sizeof (($2))) 2114a78e148bSantirez return 0; 2115a78e148bSantirez ; 2116a78e148bSantirez return 0; 2117a78e148bSantirez} 2118a78e148bSantirez_ACEOF 2119a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 2120a78e148bSantirez 2121a78e148bSantirezelse 2122a78e148bSantirez eval "$3=yes" 2123a78e148bSantirezfi 2124a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125a78e148bSantirezfi 2126a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127a78e148bSantirezfi 2128a78e148bSantirezeval ac_res=\$$3 2129a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2130a78e148bSantirez$as_echo "$ac_res" >&6; } 2131ad4c0b41Santirez eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2132a78e148bSantirez 2133a78e148bSantirez} # ac_fn_c_check_type 2134a78e148bSantirezcat >config.log <<_ACEOF 2135a78e148bSantirezThis file contains any messages produced by compilers while 2136a78e148bSantirezrunning configure, to aid debugging if configure makes a mistake. 2137a78e148bSantirez 2138a78e148bSantirezIt was created by $as_me, which was 2139fceef8e0Santirezgenerated by GNU Autoconf 2.69. Invocation command line was 2140a78e148bSantirez 2141a78e148bSantirez $ $0 $@ 2142a78e148bSantirez 2143a78e148bSantirez_ACEOF 2144a78e148bSantirezexec 5>>config.log 2145a78e148bSantirez{ 2146a78e148bSantirezcat <<_ASUNAME 2147a78e148bSantirez## --------- ## 2148a78e148bSantirez## Platform. ## 2149a78e148bSantirez## --------- ## 2150a78e148bSantirez 2151a78e148bSantirezhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2152a78e148bSantirezuname -m = `(uname -m) 2>/dev/null || echo unknown` 2153a78e148bSantirezuname -r = `(uname -r) 2>/dev/null || echo unknown` 2154a78e148bSantirezuname -s = `(uname -s) 2>/dev/null || echo unknown` 2155a78e148bSantirezuname -v = `(uname -v) 2>/dev/null || echo unknown` 2156a78e148bSantirez 2157a78e148bSantirez/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2158a78e148bSantirez/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2159a78e148bSantirez 2160a78e148bSantirez/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2161a78e148bSantirez/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2162a78e148bSantirez/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2163a78e148bSantirez/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2164a78e148bSantirez/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2165a78e148bSantirez/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2166a78e148bSantirez/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2167a78e148bSantirez 2168a78e148bSantirez_ASUNAME 2169a78e148bSantirez 2170a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2171a78e148bSantirezfor as_dir in $PATH 2172a78e148bSantirezdo 2173a78e148bSantirez IFS=$as_save_IFS 2174a78e148bSantirez test -z "$as_dir" && as_dir=. 2175a78e148bSantirez $as_echo "PATH: $as_dir" 2176a78e148bSantirez done 2177a78e148bSantirezIFS=$as_save_IFS 2178a78e148bSantirez 2179a78e148bSantirez} >&5 2180a78e148bSantirez 2181a78e148bSantirezcat >&5 <<_ACEOF 2182a78e148bSantirez 2183a78e148bSantirez 2184a78e148bSantirez## ----------- ## 2185a78e148bSantirez## Core tests. ## 2186a78e148bSantirez## ----------- ## 2187a78e148bSantirez 2188a78e148bSantirez_ACEOF 2189a78e148bSantirez 2190a78e148bSantirez 2191a78e148bSantirez# Keep a trace of the command line. 2192a78e148bSantirez# Strip out --no-create and --no-recursion so they do not pile up. 2193a78e148bSantirez# Strip out --silent because we don't want to record it for future runs. 2194a78e148bSantirez# Also quote any args containing shell meta-characters. 2195a78e148bSantirez# Make two passes to allow for proper duplicate-argument suppression. 2196a78e148bSantirezac_configure_args= 2197a78e148bSantirezac_configure_args0= 2198a78e148bSantirezac_configure_args1= 2199a78e148bSantirezac_must_keep_next=false 2200a78e148bSantirezfor ac_pass in 1 2 2201a78e148bSantirezdo 2202a78e148bSantirez for ac_arg 2203a78e148bSantirez do 2204a78e148bSantirez case $ac_arg in 2205a78e148bSantirez -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2206a78e148bSantirez -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2207a78e148bSantirez | -silent | --silent | --silen | --sile | --sil) 2208a78e148bSantirez continue ;; 2209a78e148bSantirez *\'*) 2210a78e148bSantirez ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2211a78e148bSantirez esac 2212a78e148bSantirez case $ac_pass in 2213a78e148bSantirez 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2214a78e148bSantirez 2) 2215a78e148bSantirez as_fn_append ac_configure_args1 " '$ac_arg'" 2216a78e148bSantirez if test $ac_must_keep_next = true; then 2217a78e148bSantirez ac_must_keep_next=false # Got value, back to normal. 2218a78e148bSantirez else 2219a78e148bSantirez case $ac_arg in 2220a78e148bSantirez *=* | --config-cache | -C | -disable-* | --disable-* \ 2221a78e148bSantirez | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2222a78e148bSantirez | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2223a78e148bSantirez | -with-* | --with-* | -without-* | --without-* | --x) 2224a78e148bSantirez case "$ac_configure_args0 " in 2225a78e148bSantirez "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2226a78e148bSantirez esac 2227a78e148bSantirez ;; 2228a78e148bSantirez -* ) ac_must_keep_next=true ;; 2229a78e148bSantirez esac 2230a78e148bSantirez fi 2231a78e148bSantirez as_fn_append ac_configure_args " '$ac_arg'" 2232a78e148bSantirez ;; 2233a78e148bSantirez esac 2234a78e148bSantirez done 2235a78e148bSantirezdone 2236a78e148bSantirez{ ac_configure_args0=; unset ac_configure_args0;} 2237a78e148bSantirez{ ac_configure_args1=; unset ac_configure_args1;} 2238a78e148bSantirez 2239a78e148bSantirez# When interrupted or exit'd, cleanup temporary files, and complete 2240a78e148bSantirez# config.log. We remove comments because anyway the quotes in there 2241a78e148bSantirez# would cause problems or look ugly. 2242a78e148bSantirez# WARNING: Use '\'' to represent an apostrophe within the trap. 2243a78e148bSantirez# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2244a78e148bSantireztrap 'exit_status=$? 2245a78e148bSantirez # Save into config.log some information that might help in debugging. 2246a78e148bSantirez { 2247a78e148bSantirez echo 2248a78e148bSantirez 2249ad4c0b41Santirez $as_echo "## ---------------- ## 2250a78e148bSantirez## Cache variables. ## 2251ad4c0b41Santirez## ---------------- ##" 2252a78e148bSantirez echo 2253a78e148bSantirez # The following way of writing the cache mishandles newlines in values, 2254a78e148bSantirez( 2255a78e148bSantirez for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2256a78e148bSantirez eval ac_val=\$$ac_var 2257a78e148bSantirez case $ac_val in #( 2258a78e148bSantirez *${as_nl}*) 2259a78e148bSantirez case $ac_var in #( 2260a78e148bSantirez *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2261a78e148bSantirez$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2262a78e148bSantirez esac 2263a78e148bSantirez case $ac_var in #( 2264a78e148bSantirez _ | IFS | as_nl) ;; #( 2265a78e148bSantirez BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2266a78e148bSantirez *) { eval $ac_var=; unset $ac_var;} ;; 2267a78e148bSantirez esac ;; 2268a78e148bSantirez esac 2269a78e148bSantirez done 2270a78e148bSantirez (set) 2>&1 | 2271a78e148bSantirez case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2272a78e148bSantirez *${as_nl}ac_space=\ *) 2273a78e148bSantirez sed -n \ 2274a78e148bSantirez "s/'\''/'\''\\\\'\'''\''/g; 2275a78e148bSantirez s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2276a78e148bSantirez ;; #( 2277a78e148bSantirez *) 2278a78e148bSantirez sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2279a78e148bSantirez ;; 2280a78e148bSantirez esac | 2281a78e148bSantirez sort 2282a78e148bSantirez) 2283a78e148bSantirez echo 2284a78e148bSantirez 2285ad4c0b41Santirez $as_echo "## ----------------- ## 2286a78e148bSantirez## Output variables. ## 2287ad4c0b41Santirez## ----------------- ##" 2288a78e148bSantirez echo 2289a78e148bSantirez for ac_var in $ac_subst_vars 2290a78e148bSantirez do 2291a78e148bSantirez eval ac_val=\$$ac_var 2292a78e148bSantirez case $ac_val in 2293a78e148bSantirez *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2294a78e148bSantirez esac 2295a78e148bSantirez $as_echo "$ac_var='\''$ac_val'\''" 2296a78e148bSantirez done | sort 2297a78e148bSantirez echo 2298a78e148bSantirez 2299a78e148bSantirez if test -n "$ac_subst_files"; then 2300ad4c0b41Santirez $as_echo "## ------------------- ## 2301a78e148bSantirez## File substitutions. ## 2302ad4c0b41Santirez## ------------------- ##" 2303a78e148bSantirez echo 2304a78e148bSantirez for ac_var in $ac_subst_files 2305a78e148bSantirez do 2306a78e148bSantirez eval ac_val=\$$ac_var 2307a78e148bSantirez case $ac_val in 2308a78e148bSantirez *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2309a78e148bSantirez esac 2310a78e148bSantirez $as_echo "$ac_var='\''$ac_val'\''" 2311a78e148bSantirez done | sort 2312a78e148bSantirez echo 2313a78e148bSantirez fi 2314a78e148bSantirez 2315a78e148bSantirez if test -s confdefs.h; then 2316ad4c0b41Santirez $as_echo "## ----------- ## 2317a78e148bSantirez## confdefs.h. ## 2318ad4c0b41Santirez## ----------- ##" 2319a78e148bSantirez echo 2320a78e148bSantirez cat confdefs.h 2321a78e148bSantirez echo 2322a78e148bSantirez fi 2323a78e148bSantirez test "$ac_signal" != 0 && 2324a78e148bSantirez $as_echo "$as_me: caught signal $ac_signal" 2325a78e148bSantirez $as_echo "$as_me: exit $exit_status" 2326a78e148bSantirez } >&5 2327a78e148bSantirez rm -f core *.core core.conftest.* && 2328a78e148bSantirez rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2329a78e148bSantirez exit $exit_status 2330a78e148bSantirez' 0 2331a78e148bSantirezfor ac_signal in 1 2 13 15; do 2332a78e148bSantirez trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2333a78e148bSantirezdone 2334a78e148bSantirezac_signal=0 2335a78e148bSantirez 2336a78e148bSantirez# confdefs.h avoids OS command line length limits that DEFS can exceed. 2337a78e148bSantirezrm -f -r conftest* confdefs.h 2338a78e148bSantirez 2339a78e148bSantirez$as_echo "/* confdefs.h */" > confdefs.h 2340a78e148bSantirez 2341a78e148bSantirez# Predefined preprocessor variables. 2342a78e148bSantirez 2343a78e148bSantirezcat >>confdefs.h <<_ACEOF 2344a78e148bSantirez#define PACKAGE_NAME "$PACKAGE_NAME" 2345a78e148bSantirez_ACEOF 2346a78e148bSantirez 2347a78e148bSantirezcat >>confdefs.h <<_ACEOF 2348a78e148bSantirez#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2349a78e148bSantirez_ACEOF 2350a78e148bSantirez 2351a78e148bSantirezcat >>confdefs.h <<_ACEOF 2352a78e148bSantirez#define PACKAGE_VERSION "$PACKAGE_VERSION" 2353a78e148bSantirez_ACEOF 2354a78e148bSantirez 2355a78e148bSantirezcat >>confdefs.h <<_ACEOF 2356a78e148bSantirez#define PACKAGE_STRING "$PACKAGE_STRING" 2357a78e148bSantirez_ACEOF 2358a78e148bSantirez 2359a78e148bSantirezcat >>confdefs.h <<_ACEOF 2360a78e148bSantirez#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2361a78e148bSantirez_ACEOF 2362a78e148bSantirez 2363a78e148bSantirezcat >>confdefs.h <<_ACEOF 2364a78e148bSantirez#define PACKAGE_URL "$PACKAGE_URL" 2365a78e148bSantirez_ACEOF 2366a78e148bSantirez 2367a78e148bSantirez 2368a78e148bSantirez# Let the site file select an alternate cache file if it wants to. 2369a78e148bSantirez# Prefer an explicitly selected file to automatically selected ones. 2370a78e148bSantirezac_site_file1=NONE 2371a78e148bSantirezac_site_file2=NONE 2372a78e148bSantirezif test -n "$CONFIG_SITE"; then 2373ad4c0b41Santirez # We do not want a PATH search for config.site. 2374ad4c0b41Santirez case $CONFIG_SITE in #(( 2375ad4c0b41Santirez -*) ac_site_file1=./$CONFIG_SITE;; 2376ad4c0b41Santirez */*) ac_site_file1=$CONFIG_SITE;; 2377ad4c0b41Santirez *) ac_site_file1=./$CONFIG_SITE;; 2378ad4c0b41Santirez esac 2379a78e148bSantirezelif test "x$prefix" != xNONE; then 2380a78e148bSantirez ac_site_file1=$prefix/share/config.site 2381a78e148bSantirez ac_site_file2=$prefix/etc/config.site 2382a78e148bSantirezelse 2383a78e148bSantirez ac_site_file1=$ac_default_prefix/share/config.site 2384a78e148bSantirez ac_site_file2=$ac_default_prefix/etc/config.site 2385a78e148bSantirezfi 2386a78e148bSantirezfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2387a78e148bSantirezdo 2388a78e148bSantirez test "x$ac_site_file" = xNONE && continue 2389a78e148bSantirez if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2390a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2391a78e148bSantirez$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2392a78e148bSantirez sed 's/^/| /' "$ac_site_file" >&5 2393ad4c0b41Santirez . "$ac_site_file" \ 2394ad4c0b41Santirez || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2395ad4c0b41Santirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2396ad4c0b41Santirezas_fn_error $? "failed to load site script $ac_site_file 2397ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 2398a78e148bSantirez fi 2399a78e148bSantirezdone 2400a78e148bSantirez 2401a78e148bSantirezif test -r "$cache_file"; then 2402a78e148bSantirez # Some versions of bash will fail to source /dev/null (special files 2403a78e148bSantirez # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2404a78e148bSantirez if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2405a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2406a78e148bSantirez$as_echo "$as_me: loading cache $cache_file" >&6;} 2407a78e148bSantirez case $cache_file in 2408a78e148bSantirez [\\/]* | ?:[\\/]* ) . "$cache_file";; 2409a78e148bSantirez *) . "./$cache_file";; 2410a78e148bSantirez esac 2411a78e148bSantirez fi 2412a78e148bSantirezelse 2413a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2414a78e148bSantirez$as_echo "$as_me: creating cache $cache_file" >&6;} 2415a78e148bSantirez >$cache_file 2416a78e148bSantirezfi 2417a78e148bSantirez 2418a78e148bSantirez# Check that the precious variables saved in the cache have kept the same 2419a78e148bSantirez# value. 2420a78e148bSantirezac_cache_corrupted=false 2421a78e148bSantirezfor ac_var in $ac_precious_vars; do 2422a78e148bSantirez eval ac_old_set=\$ac_cv_env_${ac_var}_set 2423a78e148bSantirez eval ac_new_set=\$ac_env_${ac_var}_set 2424a78e148bSantirez eval ac_old_val=\$ac_cv_env_${ac_var}_value 2425a78e148bSantirez eval ac_new_val=\$ac_env_${ac_var}_value 2426a78e148bSantirez case $ac_old_set,$ac_new_set in 2427a78e148bSantirez set,) 2428a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2429a78e148bSantirez$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2430a78e148bSantirez ac_cache_corrupted=: ;; 2431a78e148bSantirez ,set) 2432a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2433a78e148bSantirez$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2434a78e148bSantirez ac_cache_corrupted=: ;; 2435a78e148bSantirez ,);; 2436a78e148bSantirez *) 2437a78e148bSantirez if test "x$ac_old_val" != "x$ac_new_val"; then 2438a78e148bSantirez # differences in whitespace do not lead to failure. 2439a78e148bSantirez ac_old_val_w=`echo x $ac_old_val` 2440a78e148bSantirez ac_new_val_w=`echo x $ac_new_val` 2441a78e148bSantirez if test "$ac_old_val_w" != "$ac_new_val_w"; then 2442a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2443a78e148bSantirez$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2444a78e148bSantirez ac_cache_corrupted=: 2445a78e148bSantirez else 2446a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2447a78e148bSantirez$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2448a78e148bSantirez eval $ac_var=\$ac_old_val 2449a78e148bSantirez fi 2450a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2451a78e148bSantirez$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2452a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2453a78e148bSantirez$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2454a78e148bSantirez fi;; 2455a78e148bSantirez esac 2456a78e148bSantirez # Pass precious variables to config.status. 2457a78e148bSantirez if test "$ac_new_set" = set; then 2458a78e148bSantirez case $ac_new_val in 2459a78e148bSantirez *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2460a78e148bSantirez *) ac_arg=$ac_var=$ac_new_val ;; 2461a78e148bSantirez esac 2462a78e148bSantirez case " $ac_configure_args " in 2463a78e148bSantirez *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2464a78e148bSantirez *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2465a78e148bSantirez esac 2466a78e148bSantirez fi 2467a78e148bSantirezdone 2468a78e148bSantirezif $ac_cache_corrupted; then 2469a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2470a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2471a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2472a78e148bSantirez$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2473ad4c0b41Santirez as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2474a78e148bSantirezfi 2475a78e148bSantirez## -------------------- ## 2476a78e148bSantirez## Main body of script. ## 2477a78e148bSantirez## -------------------- ## 2478a78e148bSantirez 2479a78e148bSantirezac_ext=c 2480a78e148bSantirezac_cpp='$CPP $CPPFLAGS' 2481a78e148bSantirezac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482a78e148bSantirezac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483a78e148bSantirezac_compiler_gnu=$ac_cv_c_compiler_gnu 2484a78e148bSantirez 2485a78e148bSantirez 2486a78e148bSantirez 2487a78e148bSantirez 2488a78e148bSantirez 2489a78e148bSantirez 2490a78e148bSantirez 2491a78e148bSantirez 2492a78e148bSantirez 2493*5268379eSantirezCONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'` 2494*5268379eSantirez 2495*5268379eSantirez 2496*5268379eSantirezrev=2 2497ad4c0b41Santirez 2498ad4c0b41Santirez 2499a78e148bSantirezsrcroot=$srcdir 2500a78e148bSantirezif test "x${srcroot}" = "x." ; then 2501a78e148bSantirez srcroot="" 2502a78e148bSantirezelse 2503a78e148bSantirez srcroot="${srcroot}/" 2504a78e148bSantirezfi 2505a78e148bSantirez 2506a78e148bSantirezabs_srcroot="`cd \"${srcdir}\"; pwd`/" 2507a78e148bSantirez 2508a78e148bSantirez 2509a78e148bSantirezobjroot="" 2510a78e148bSantirez 2511a78e148bSantirezabs_objroot="`pwd`/" 2512a78e148bSantirez 2513a78e148bSantirez 2514a78e148bSantirezif test "x$prefix" = "xNONE" ; then 2515a78e148bSantirez prefix="/usr/local" 2516a78e148bSantirezfi 2517a78e148bSantirezif test "x$exec_prefix" = "xNONE" ; then 2518a78e148bSantirez exec_prefix=$prefix 2519a78e148bSantirezfi 2520a78e148bSantirezPREFIX=$prefix 2521a78e148bSantirez 2522a78e148bSantirezBINDIR=`eval echo $bindir` 2523a78e148bSantirezBINDIR=`eval echo $BINDIR` 2524a78e148bSantirez 2525a78e148bSantirezINCLUDEDIR=`eval echo $includedir` 2526a78e148bSantirezINCLUDEDIR=`eval echo $INCLUDEDIR` 2527a78e148bSantirez 2528a78e148bSantirezLIBDIR=`eval echo $libdir` 2529a78e148bSantirezLIBDIR=`eval echo $LIBDIR` 2530a78e148bSantirez 2531a78e148bSantirezDATADIR=`eval echo $datadir` 2532a78e148bSantirezDATADIR=`eval echo $DATADIR` 2533a78e148bSantirez 2534a78e148bSantirezMANDIR=`eval echo $mandir` 2535a78e148bSantirezMANDIR=`eval echo $MANDIR` 2536a78e148bSantirez 2537a78e148bSantirez 2538a78e148bSantirez# Extract the first word of "xsltproc", so it can be a program name with args. 2539a78e148bSantirezset dummy xsltproc; ac_word=$2 2540a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2542ad4c0b41Santirezif ${ac_cv_path_XSLTPROC+:} false; then : 2543a78e148bSantirez $as_echo_n "(cached) " >&6 2544a78e148bSantirezelse 2545a78e148bSantirez case $XSLTPROC in 2546a78e148bSantirez [\\/]* | ?:[\\/]*) 2547a78e148bSantirez ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 2548a78e148bSantirez ;; 2549a78e148bSantirez *) 2550a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551a78e148bSantirezfor as_dir in $PATH 2552a78e148bSantirezdo 2553a78e148bSantirez IFS=$as_save_IFS 2554a78e148bSantirez test -z "$as_dir" && as_dir=. 2555a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2556fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2557a78e148bSantirez ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 2558a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2559a78e148bSantirez break 2 2560a78e148bSantirez fi 2561a78e148bSantirezdone 2562a78e148bSantirez done 2563a78e148bSantirezIFS=$as_save_IFS 2564a78e148bSantirez 2565fceef8e0Santirez test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false" 2566a78e148bSantirez ;; 2567a78e148bSantirezesac 2568a78e148bSantirezfi 2569a78e148bSantirezXSLTPROC=$ac_cv_path_XSLTPROC 2570a78e148bSantirezif test -n "$XSLTPROC"; then 2571a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 2572a78e148bSantirez$as_echo "$XSLTPROC" >&6; } 2573a78e148bSantirezelse 2574a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2575a78e148bSantirez$as_echo "no" >&6; } 2576a78e148bSantirezfi 2577a78e148bSantirez 2578a78e148bSantirez 2579ad4c0b41Santirezif test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then 2580ad4c0b41Santirez DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" 2581ad4c0b41Santirezelif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then 2582ad4c0b41Santirez DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" 2583ad4c0b41Santirezelse 2584ad4c0b41Santirez DEFAULT_XSLROOT="" 2585ad4c0b41Santirezfi 2586a78e148bSantirez 2587a78e148bSantirez# Check whether --with-xslroot was given. 2588a78e148bSantirezif test "${with_xslroot+set}" = set; then : 2589ad4c0b41Santirez withval=$with_xslroot; 2590ad4c0b41Santirezif test "x$with_xslroot" = "xno" ; then 2591ad4c0b41Santirez XSLROOT="${DEFAULT_XSLROOT}" 2592a78e148bSantirezelse 2593a78e148bSantirez XSLROOT="${with_xslroot}" 2594a78e148bSantirezfi 2595ad4c0b41Santirez 2596a78e148bSantirezelse 2597ad4c0b41Santirez XSLROOT="${DEFAULT_XSLROOT}" 2598a78e148bSantirez 2599a78e148bSantirezfi 2600a78e148bSantirez 2601a78e148bSantirez 2602a78e148bSantirez 2603a78e148bSantirezCFLAGS=$CFLAGS 2604a78e148bSantirezac_ext=c 2605a78e148bSantirezac_cpp='$CPP $CPPFLAGS' 2606a78e148bSantirezac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2607a78e148bSantirezac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2608a78e148bSantirezac_compiler_gnu=$ac_cv_c_compiler_gnu 2609a78e148bSantirezif test -n "$ac_tool_prefix"; then 2610a78e148bSantirez # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2611a78e148bSantirezset dummy ${ac_tool_prefix}gcc; ac_word=$2 2612a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2613a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2614ad4c0b41Santirezif ${ac_cv_prog_CC+:} false; then : 2615a78e148bSantirez $as_echo_n "(cached) " >&6 2616a78e148bSantirezelse 2617a78e148bSantirez if test -n "$CC"; then 2618a78e148bSantirez ac_cv_prog_CC="$CC" # Let the user override the test. 2619a78e148bSantirezelse 2620a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621a78e148bSantirezfor as_dir in $PATH 2622a78e148bSantirezdo 2623a78e148bSantirez IFS=$as_save_IFS 2624a78e148bSantirez test -z "$as_dir" && as_dir=. 2625a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2626fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2627a78e148bSantirez ac_cv_prog_CC="${ac_tool_prefix}gcc" 2628a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2629a78e148bSantirez break 2 2630a78e148bSantirez fi 2631a78e148bSantirezdone 2632a78e148bSantirez done 2633a78e148bSantirezIFS=$as_save_IFS 2634a78e148bSantirez 2635a78e148bSantirezfi 2636a78e148bSantirezfi 2637a78e148bSantirezCC=$ac_cv_prog_CC 2638a78e148bSantirezif test -n "$CC"; then 2639a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2640a78e148bSantirez$as_echo "$CC" >&6; } 2641a78e148bSantirezelse 2642a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643a78e148bSantirez$as_echo "no" >&6; } 2644a78e148bSantirezfi 2645a78e148bSantirez 2646a78e148bSantirez 2647a78e148bSantirezfi 2648a78e148bSantirezif test -z "$ac_cv_prog_CC"; then 2649a78e148bSantirez ac_ct_CC=$CC 2650a78e148bSantirez # Extract the first word of "gcc", so it can be a program name with args. 2651a78e148bSantirezset dummy gcc; ac_word=$2 2652a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2653a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2654ad4c0b41Santirezif ${ac_cv_prog_ac_ct_CC+:} false; then : 2655a78e148bSantirez $as_echo_n "(cached) " >&6 2656a78e148bSantirezelse 2657a78e148bSantirez if test -n "$ac_ct_CC"; then 2658a78e148bSantirez ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2659a78e148bSantirezelse 2660a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661a78e148bSantirezfor as_dir in $PATH 2662a78e148bSantirezdo 2663a78e148bSantirez IFS=$as_save_IFS 2664a78e148bSantirez test -z "$as_dir" && as_dir=. 2665a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2666fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2667a78e148bSantirez ac_cv_prog_ac_ct_CC="gcc" 2668a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2669a78e148bSantirez break 2 2670a78e148bSantirez fi 2671a78e148bSantirezdone 2672a78e148bSantirez done 2673a78e148bSantirezIFS=$as_save_IFS 2674a78e148bSantirez 2675a78e148bSantirezfi 2676a78e148bSantirezfi 2677a78e148bSantirezac_ct_CC=$ac_cv_prog_ac_ct_CC 2678a78e148bSantirezif test -n "$ac_ct_CC"; then 2679a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2680a78e148bSantirez$as_echo "$ac_ct_CC" >&6; } 2681a78e148bSantirezelse 2682a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683a78e148bSantirez$as_echo "no" >&6; } 2684a78e148bSantirezfi 2685a78e148bSantirez 2686a78e148bSantirez if test "x$ac_ct_CC" = x; then 2687a78e148bSantirez CC="" 2688a78e148bSantirez else 2689a78e148bSantirez case $cross_compiling:$ac_tool_warned in 2690a78e148bSantirezyes:) 2691a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2692a78e148bSantirez$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2693a78e148bSantirezac_tool_warned=yes ;; 2694a78e148bSantirezesac 2695a78e148bSantirez CC=$ac_ct_CC 2696a78e148bSantirez fi 2697a78e148bSantirezelse 2698a78e148bSantirez CC="$ac_cv_prog_CC" 2699a78e148bSantirezfi 2700a78e148bSantirez 2701a78e148bSantirezif test -z "$CC"; then 2702a78e148bSantirez if test -n "$ac_tool_prefix"; then 2703a78e148bSantirez # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2704a78e148bSantirezset dummy ${ac_tool_prefix}cc; ac_word=$2 2705a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2707ad4c0b41Santirezif ${ac_cv_prog_CC+:} false; then : 2708a78e148bSantirez $as_echo_n "(cached) " >&6 2709a78e148bSantirezelse 2710a78e148bSantirez if test -n "$CC"; then 2711a78e148bSantirez ac_cv_prog_CC="$CC" # Let the user override the test. 2712a78e148bSantirezelse 2713a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714a78e148bSantirezfor as_dir in $PATH 2715a78e148bSantirezdo 2716a78e148bSantirez IFS=$as_save_IFS 2717a78e148bSantirez test -z "$as_dir" && as_dir=. 2718a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2719fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2720a78e148bSantirez ac_cv_prog_CC="${ac_tool_prefix}cc" 2721a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2722a78e148bSantirez break 2 2723a78e148bSantirez fi 2724a78e148bSantirezdone 2725a78e148bSantirez done 2726a78e148bSantirezIFS=$as_save_IFS 2727a78e148bSantirez 2728a78e148bSantirezfi 2729a78e148bSantirezfi 2730a78e148bSantirezCC=$ac_cv_prog_CC 2731a78e148bSantirezif test -n "$CC"; then 2732a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2733a78e148bSantirez$as_echo "$CC" >&6; } 2734a78e148bSantirezelse 2735a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736a78e148bSantirez$as_echo "no" >&6; } 2737a78e148bSantirezfi 2738a78e148bSantirez 2739a78e148bSantirez 2740a78e148bSantirez fi 2741a78e148bSantirezfi 2742a78e148bSantirezif test -z "$CC"; then 2743a78e148bSantirez # Extract the first word of "cc", so it can be a program name with args. 2744a78e148bSantirezset dummy cc; ac_word=$2 2745a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2746a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2747ad4c0b41Santirezif ${ac_cv_prog_CC+:} false; then : 2748a78e148bSantirez $as_echo_n "(cached) " >&6 2749a78e148bSantirezelse 2750a78e148bSantirez if test -n "$CC"; then 2751a78e148bSantirez ac_cv_prog_CC="$CC" # Let the user override the test. 2752a78e148bSantirezelse 2753a78e148bSantirez ac_prog_rejected=no 2754a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755a78e148bSantirezfor as_dir in $PATH 2756a78e148bSantirezdo 2757a78e148bSantirez IFS=$as_save_IFS 2758a78e148bSantirez test -z "$as_dir" && as_dir=. 2759a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2760fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2761a78e148bSantirez if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2762a78e148bSantirez ac_prog_rejected=yes 2763a78e148bSantirez continue 2764a78e148bSantirez fi 2765a78e148bSantirez ac_cv_prog_CC="cc" 2766a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767a78e148bSantirez break 2 2768a78e148bSantirez fi 2769a78e148bSantirezdone 2770a78e148bSantirez done 2771a78e148bSantirezIFS=$as_save_IFS 2772a78e148bSantirez 2773a78e148bSantirezif test $ac_prog_rejected = yes; then 2774a78e148bSantirez # We found a bogon in the path, so make sure we never use it. 2775a78e148bSantirez set dummy $ac_cv_prog_CC 2776a78e148bSantirez shift 2777a78e148bSantirez if test $# != 0; then 2778a78e148bSantirez # We chose a different compiler from the bogus one. 2779a78e148bSantirez # However, it has the same basename, so the bogon will be chosen 2780a78e148bSantirez # first if we set CC to just the basename; use the full file name. 2781a78e148bSantirez shift 2782a78e148bSantirez ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2783a78e148bSantirez fi 2784a78e148bSantirezfi 2785a78e148bSantirezfi 2786a78e148bSantirezfi 2787a78e148bSantirezCC=$ac_cv_prog_CC 2788a78e148bSantirezif test -n "$CC"; then 2789a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2790a78e148bSantirez$as_echo "$CC" >&6; } 2791a78e148bSantirezelse 2792a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793a78e148bSantirez$as_echo "no" >&6; } 2794a78e148bSantirezfi 2795a78e148bSantirez 2796a78e148bSantirez 2797a78e148bSantirezfi 2798a78e148bSantirezif test -z "$CC"; then 2799a78e148bSantirez if test -n "$ac_tool_prefix"; then 2800a78e148bSantirez for ac_prog in cl.exe 2801a78e148bSantirez do 2802a78e148bSantirez # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2803a78e148bSantirezset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2804a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2805a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2806ad4c0b41Santirezif ${ac_cv_prog_CC+:} false; then : 2807a78e148bSantirez $as_echo_n "(cached) " >&6 2808a78e148bSantirezelse 2809a78e148bSantirez if test -n "$CC"; then 2810a78e148bSantirez ac_cv_prog_CC="$CC" # Let the user override the test. 2811a78e148bSantirezelse 2812a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813a78e148bSantirezfor as_dir in $PATH 2814a78e148bSantirezdo 2815a78e148bSantirez IFS=$as_save_IFS 2816a78e148bSantirez test -z "$as_dir" && as_dir=. 2817a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2818fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2819a78e148bSantirez ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2820a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821a78e148bSantirez break 2 2822a78e148bSantirez fi 2823a78e148bSantirezdone 2824a78e148bSantirez done 2825a78e148bSantirezIFS=$as_save_IFS 2826a78e148bSantirez 2827a78e148bSantirezfi 2828a78e148bSantirezfi 2829a78e148bSantirezCC=$ac_cv_prog_CC 2830a78e148bSantirezif test -n "$CC"; then 2831a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2832a78e148bSantirez$as_echo "$CC" >&6; } 2833a78e148bSantirezelse 2834a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835a78e148bSantirez$as_echo "no" >&6; } 2836a78e148bSantirezfi 2837a78e148bSantirez 2838a78e148bSantirez 2839a78e148bSantirez test -n "$CC" && break 2840a78e148bSantirez done 2841a78e148bSantirezfi 2842a78e148bSantirezif test -z "$CC"; then 2843a78e148bSantirez ac_ct_CC=$CC 2844a78e148bSantirez for ac_prog in cl.exe 2845a78e148bSantirezdo 2846a78e148bSantirez # Extract the first word of "$ac_prog", so it can be a program name with args. 2847a78e148bSantirezset dummy $ac_prog; ac_word=$2 2848a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 2850ad4c0b41Santirezif ${ac_cv_prog_ac_ct_CC+:} false; then : 2851a78e148bSantirez $as_echo_n "(cached) " >&6 2852a78e148bSantirezelse 2853a78e148bSantirez if test -n "$ac_ct_CC"; then 2854a78e148bSantirez ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2855a78e148bSantirezelse 2856a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857a78e148bSantirezfor as_dir in $PATH 2858a78e148bSantirezdo 2859a78e148bSantirez IFS=$as_save_IFS 2860a78e148bSantirez test -z "$as_dir" && as_dir=. 2861a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 2862fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863a78e148bSantirez ac_cv_prog_ac_ct_CC="$ac_prog" 2864a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865a78e148bSantirez break 2 2866a78e148bSantirez fi 2867a78e148bSantirezdone 2868a78e148bSantirez done 2869a78e148bSantirezIFS=$as_save_IFS 2870a78e148bSantirez 2871a78e148bSantirezfi 2872a78e148bSantirezfi 2873a78e148bSantirezac_ct_CC=$ac_cv_prog_ac_ct_CC 2874a78e148bSantirezif test -n "$ac_ct_CC"; then 2875a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876a78e148bSantirez$as_echo "$ac_ct_CC" >&6; } 2877a78e148bSantirezelse 2878a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879a78e148bSantirez$as_echo "no" >&6; } 2880a78e148bSantirezfi 2881a78e148bSantirez 2882a78e148bSantirez 2883a78e148bSantirez test -n "$ac_ct_CC" && break 2884a78e148bSantirezdone 2885a78e148bSantirez 2886a78e148bSantirez if test "x$ac_ct_CC" = x; then 2887a78e148bSantirez CC="" 2888a78e148bSantirez else 2889a78e148bSantirez case $cross_compiling:$ac_tool_warned in 2890a78e148bSantirezyes:) 2891a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892a78e148bSantirez$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893a78e148bSantirezac_tool_warned=yes ;; 2894a78e148bSantirezesac 2895a78e148bSantirez CC=$ac_ct_CC 2896a78e148bSantirez fi 2897a78e148bSantirezfi 2898a78e148bSantirez 2899a78e148bSantirezfi 2900a78e148bSantirez 2901a78e148bSantirez 2902a78e148bSantireztest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2903a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2904ad4c0b41Santirezas_fn_error $? "no acceptable C compiler found in \$PATH 2905ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 2906a78e148bSantirez 2907a78e148bSantirez# Provide some information about the compiler. 2908a78e148bSantirez$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2909a78e148bSantirezset X $ac_compile 2910a78e148bSantirezac_compiler=$2 2911a78e148bSantirezfor ac_option in --version -v -V -qversion; do 2912a78e148bSantirez { { ac_try="$ac_compiler $ac_option >&5" 2913a78e148bSantirezcase "(($ac_try" in 2914a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915a78e148bSantirez *) ac_try_echo=$ac_try;; 2916a78e148bSantirezesac 2917a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2918a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 2919a78e148bSantirez (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2920a78e148bSantirez ac_status=$? 2921a78e148bSantirez if test -s conftest.err; then 2922a78e148bSantirez sed '10a\ 2923a78e148bSantirez... rest of stderr output deleted ... 2924a78e148bSantirez 10q' conftest.err >conftest.er1 2925a78e148bSantirez cat conftest.er1 >&5 2926a78e148bSantirez fi 2927a78e148bSantirez rm -f conftest.er1 conftest.err 2928a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2929a78e148bSantirez test $ac_status = 0; } 2930a78e148bSantirezdone 2931a78e148bSantirez 2932a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2933a78e148bSantirez/* end confdefs.h. */ 2934a78e148bSantirez 2935a78e148bSantirezint 2936a78e148bSantirezmain () 2937a78e148bSantirez{ 2938a78e148bSantirez 2939a78e148bSantirez ; 2940a78e148bSantirez return 0; 2941a78e148bSantirez} 2942a78e148bSantirez_ACEOF 2943a78e148bSantirezac_clean_files_save=$ac_clean_files 2944a78e148bSantirezac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2945a78e148bSantirez# Try to create an executable without -o first, disregard a.out. 2946a78e148bSantirez# It will help us diagnose broken compilers, and finding out an intuition 2947a78e148bSantirez# of exeext. 2948a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2949a78e148bSantirez$as_echo_n "checking whether the C compiler works... " >&6; } 2950a78e148bSantirezac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2951a78e148bSantirez 2952a78e148bSantirez# The possible output files: 2953a78e148bSantirezac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2954a78e148bSantirez 2955a78e148bSantirezac_rmfiles= 2956a78e148bSantirezfor ac_file in $ac_files 2957a78e148bSantirezdo 2958a78e148bSantirez case $ac_file in 2959a78e148bSantirez *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2960a78e148bSantirez * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2961a78e148bSantirez esac 2962a78e148bSantirezdone 2963a78e148bSantirezrm -f $ac_rmfiles 2964a78e148bSantirez 2965a78e148bSantirezif { { ac_try="$ac_link_default" 2966a78e148bSantirezcase "(($ac_try" in 2967a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968a78e148bSantirez *) ac_try_echo=$ac_try;; 2969a78e148bSantirezesac 2970a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2971a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 2972a78e148bSantirez (eval "$ac_link_default") 2>&5 2973a78e148bSantirez ac_status=$? 2974a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2975a78e148bSantirez test $ac_status = 0; }; then : 2976a78e148bSantirez # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2977a78e148bSantirez# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2978a78e148bSantirez# in a Makefile. We should not override ac_cv_exeext if it was cached, 2979a78e148bSantirez# so that the user can short-circuit this test for compilers unknown to 2980a78e148bSantirez# Autoconf. 2981a78e148bSantirezfor ac_file in $ac_files '' 2982a78e148bSantirezdo 2983a78e148bSantirez test -f "$ac_file" || continue 2984a78e148bSantirez case $ac_file in 2985a78e148bSantirez *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2986a78e148bSantirez ;; 2987a78e148bSantirez [ab].out ) 2988a78e148bSantirez # We found the default executable, but exeext='' is most 2989a78e148bSantirez # certainly right. 2990a78e148bSantirez break;; 2991a78e148bSantirez *.* ) 2992a78e148bSantirez if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2993a78e148bSantirez then :; else 2994a78e148bSantirez ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2995a78e148bSantirez fi 2996a78e148bSantirez # We set ac_cv_exeext here because the later test for it is not 2997a78e148bSantirez # safe: cross compilers may not add the suffix if given an `-o' 2998a78e148bSantirez # argument, so we may need to know it at that point already. 2999a78e148bSantirez # Even if this section looks crufty: it has the advantage of 3000a78e148bSantirez # actually working. 3001a78e148bSantirez break;; 3002a78e148bSantirez * ) 3003a78e148bSantirez break;; 3004a78e148bSantirez esac 3005a78e148bSantirezdone 3006a78e148bSantireztest "$ac_cv_exeext" = no && ac_cv_exeext= 3007a78e148bSantirez 3008a78e148bSantirezelse 3009a78e148bSantirez ac_file='' 3010a78e148bSantirezfi 3011a78e148bSantirezif test -z "$ac_file"; then : 3012a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013a78e148bSantirez$as_echo "no" >&6; } 3014a78e148bSantirez$as_echo "$as_me: failed program was:" >&5 3015a78e148bSantirezsed 's/^/| /' conftest.$ac_ext >&5 3016a78e148bSantirez 3017a78e148bSantirez{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3018a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3019ad4c0b41Santirezas_fn_error 77 "C compiler cannot create executables 3020ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 3021a78e148bSantirezelse 3022a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3023a78e148bSantirez$as_echo "yes" >&6; } 3024a78e148bSantirezfi 3025a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3026a78e148bSantirez$as_echo_n "checking for C compiler default output file name... " >&6; } 3027a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3028a78e148bSantirez$as_echo "$ac_file" >&6; } 3029a78e148bSantirezac_exeext=$ac_cv_exeext 3030a78e148bSantirez 3031a78e148bSantirezrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3032a78e148bSantirezac_clean_files=$ac_clean_files_save 3033a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3034a78e148bSantirez$as_echo_n "checking for suffix of executables... " >&6; } 3035a78e148bSantirezif { { ac_try="$ac_link" 3036a78e148bSantirezcase "(($ac_try" in 3037a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038a78e148bSantirez *) ac_try_echo=$ac_try;; 3039a78e148bSantirezesac 3040a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 3042a78e148bSantirez (eval "$ac_link") 2>&5 3043a78e148bSantirez ac_status=$? 3044a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3045a78e148bSantirez test $ac_status = 0; }; then : 3046a78e148bSantirez # If both `conftest.exe' and `conftest' are `present' (well, observable) 3047a78e148bSantirez# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3048a78e148bSantirez# work properly (i.e., refer to `conftest.exe'), while it won't with 3049a78e148bSantirez# `rm'. 3050a78e148bSantirezfor ac_file in conftest.exe conftest conftest.*; do 3051a78e148bSantirez test -f "$ac_file" || continue 3052a78e148bSantirez case $ac_file in 3053a78e148bSantirez *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3054a78e148bSantirez *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3055a78e148bSantirez break;; 3056a78e148bSantirez * ) break;; 3057a78e148bSantirez esac 3058a78e148bSantirezdone 3059a78e148bSantirezelse 3060a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3061a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3062ad4c0b41Santirezas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3063ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 3064a78e148bSantirezfi 3065a78e148bSantirezrm -f conftest conftest$ac_cv_exeext 3066a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3067a78e148bSantirez$as_echo "$ac_cv_exeext" >&6; } 3068a78e148bSantirez 3069a78e148bSantirezrm -f conftest.$ac_ext 3070a78e148bSantirezEXEEXT=$ac_cv_exeext 3071a78e148bSantirezac_exeext=$EXEEXT 3072a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3073a78e148bSantirez/* end confdefs.h. */ 3074a78e148bSantirez#include <stdio.h> 3075a78e148bSantirezint 3076a78e148bSantirezmain () 3077a78e148bSantirez{ 3078a78e148bSantirezFILE *f = fopen ("conftest.out", "w"); 3079a78e148bSantirez return ferror (f) || fclose (f) != 0; 3080a78e148bSantirez 3081a78e148bSantirez ; 3082a78e148bSantirez return 0; 3083a78e148bSantirez} 3084a78e148bSantirez_ACEOF 3085a78e148bSantirezac_clean_files="$ac_clean_files conftest.out" 3086a78e148bSantirez# Check that the compiler produces executables we can run. If not, either 3087a78e148bSantirez# the compiler is broken, or we cross compile. 3088a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3089a78e148bSantirez$as_echo_n "checking whether we are cross compiling... " >&6; } 3090a78e148bSantirezif test "$cross_compiling" != yes; then 3091a78e148bSantirez { { ac_try="$ac_link" 3092a78e148bSantirezcase "(($ac_try" in 3093a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094a78e148bSantirez *) ac_try_echo=$ac_try;; 3095a78e148bSantirezesac 3096a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 3098a78e148bSantirez (eval "$ac_link") 2>&5 3099a78e148bSantirez ac_status=$? 3100a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101a78e148bSantirez test $ac_status = 0; } 3102a78e148bSantirez if { ac_try='./conftest$ac_cv_exeext' 3103a78e148bSantirez { { case "(($ac_try" in 3104a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3105a78e148bSantirez *) ac_try_echo=$ac_try;; 3106a78e148bSantirezesac 3107a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3108a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 3109a78e148bSantirez (eval "$ac_try") 2>&5 3110a78e148bSantirez ac_status=$? 3111a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3112a78e148bSantirez test $ac_status = 0; }; }; then 3113a78e148bSantirez cross_compiling=no 3114a78e148bSantirez else 3115a78e148bSantirez if test "$cross_compiling" = maybe; then 3116a78e148bSantirez cross_compiling=yes 3117a78e148bSantirez else 3118a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3119a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3120ad4c0b41Santirezas_fn_error $? "cannot run C compiled programs. 3121a78e148bSantirezIf you meant to cross compile, use \`--host'. 3122ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 3123a78e148bSantirez fi 3124a78e148bSantirez fi 3125a78e148bSantirezfi 3126a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3127a78e148bSantirez$as_echo "$cross_compiling" >&6; } 3128a78e148bSantirez 3129a78e148bSantirezrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3130a78e148bSantirezac_clean_files=$ac_clean_files_save 3131a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3132a78e148bSantirez$as_echo_n "checking for suffix of object files... " >&6; } 3133ad4c0b41Santirezif ${ac_cv_objext+:} false; then : 3134a78e148bSantirez $as_echo_n "(cached) " >&6 3135a78e148bSantirezelse 3136a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3137a78e148bSantirez/* end confdefs.h. */ 3138a78e148bSantirez 3139a78e148bSantirezint 3140a78e148bSantirezmain () 3141a78e148bSantirez{ 3142a78e148bSantirez 3143a78e148bSantirez ; 3144a78e148bSantirez return 0; 3145a78e148bSantirez} 3146a78e148bSantirez_ACEOF 3147a78e148bSantirezrm -f conftest.o conftest.obj 3148a78e148bSantirezif { { ac_try="$ac_compile" 3149a78e148bSantirezcase "(($ac_try" in 3150a78e148bSantirez *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151a78e148bSantirez *) ac_try_echo=$ac_try;; 3152a78e148bSantirezesac 3153a78e148bSantirezeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154a78e148bSantirez$as_echo "$ac_try_echo"; } >&5 3155a78e148bSantirez (eval "$ac_compile") 2>&5 3156a78e148bSantirez ac_status=$? 3157a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3158a78e148bSantirez test $ac_status = 0; }; then : 3159a78e148bSantirez for ac_file in conftest.o conftest.obj conftest.*; do 3160a78e148bSantirez test -f "$ac_file" || continue; 3161a78e148bSantirez case $ac_file in 3162a78e148bSantirez *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3163a78e148bSantirez *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3164a78e148bSantirez break;; 3165a78e148bSantirez esac 3166a78e148bSantirezdone 3167a78e148bSantirezelse 3168a78e148bSantirez $as_echo "$as_me: failed program was:" >&5 3169a78e148bSantirezsed 's/^/| /' conftest.$ac_ext >&5 3170a78e148bSantirez 3171a78e148bSantirez{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173ad4c0b41Santirezas_fn_error $? "cannot compute suffix of object files: cannot compile 3174ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 3175a78e148bSantirezfi 3176a78e148bSantirezrm -f conftest.$ac_cv_objext conftest.$ac_ext 3177a78e148bSantirezfi 3178a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3179a78e148bSantirez$as_echo "$ac_cv_objext" >&6; } 3180a78e148bSantirezOBJEXT=$ac_cv_objext 3181a78e148bSantirezac_objext=$OBJEXT 3182a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3183a78e148bSantirez$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3184ad4c0b41Santirezif ${ac_cv_c_compiler_gnu+:} false; then : 3185a78e148bSantirez $as_echo_n "(cached) " >&6 3186a78e148bSantirezelse 3187a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188a78e148bSantirez/* end confdefs.h. */ 3189a78e148bSantirez 3190a78e148bSantirezint 3191a78e148bSantirezmain () 3192a78e148bSantirez{ 3193a78e148bSantirez#ifndef __GNUC__ 3194a78e148bSantirez choke me 3195a78e148bSantirez#endif 3196a78e148bSantirez 3197a78e148bSantirez ; 3198a78e148bSantirez return 0; 3199a78e148bSantirez} 3200a78e148bSantirez_ACEOF 3201a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 3202a78e148bSantirez ac_compiler_gnu=yes 3203a78e148bSantirezelse 3204a78e148bSantirez ac_compiler_gnu=no 3205a78e148bSantirezfi 3206a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3207a78e148bSantirezac_cv_c_compiler_gnu=$ac_compiler_gnu 3208a78e148bSantirez 3209a78e148bSantirezfi 3210a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3211a78e148bSantirez$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3212a78e148bSantirezif test $ac_compiler_gnu = yes; then 3213a78e148bSantirez GCC=yes 3214a78e148bSantirezelse 3215a78e148bSantirez GCC= 3216a78e148bSantirezfi 3217a78e148bSantirezac_test_CFLAGS=${CFLAGS+set} 3218a78e148bSantirezac_save_CFLAGS=$CFLAGS 3219a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3220a78e148bSantirez$as_echo_n "checking whether $CC accepts -g... " >&6; } 3221ad4c0b41Santirezif ${ac_cv_prog_cc_g+:} false; then : 3222a78e148bSantirez $as_echo_n "(cached) " >&6 3223a78e148bSantirezelse 3224a78e148bSantirez ac_save_c_werror_flag=$ac_c_werror_flag 3225a78e148bSantirez ac_c_werror_flag=yes 3226a78e148bSantirez ac_cv_prog_cc_g=no 3227a78e148bSantirez CFLAGS="-g" 3228a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3229a78e148bSantirez/* end confdefs.h. */ 3230a78e148bSantirez 3231a78e148bSantirezint 3232a78e148bSantirezmain () 3233a78e148bSantirez{ 3234a78e148bSantirez 3235a78e148bSantirez ; 3236a78e148bSantirez return 0; 3237a78e148bSantirez} 3238a78e148bSantirez_ACEOF 3239a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 3240a78e148bSantirez ac_cv_prog_cc_g=yes 3241a78e148bSantirezelse 3242a78e148bSantirez CFLAGS="" 3243a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244a78e148bSantirez/* end confdefs.h. */ 3245a78e148bSantirez 3246a78e148bSantirezint 3247a78e148bSantirezmain () 3248a78e148bSantirez{ 3249a78e148bSantirez 3250a78e148bSantirez ; 3251a78e148bSantirez return 0; 3252a78e148bSantirez} 3253a78e148bSantirez_ACEOF 3254a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 3255a78e148bSantirez 3256a78e148bSantirezelse 3257a78e148bSantirez ac_c_werror_flag=$ac_save_c_werror_flag 3258a78e148bSantirez CFLAGS="-g" 3259a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3260a78e148bSantirez/* end confdefs.h. */ 3261a78e148bSantirez 3262a78e148bSantirezint 3263a78e148bSantirezmain () 3264a78e148bSantirez{ 3265a78e148bSantirez 3266a78e148bSantirez ; 3267a78e148bSantirez return 0; 3268a78e148bSantirez} 3269a78e148bSantirez_ACEOF 3270a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 3271a78e148bSantirez ac_cv_prog_cc_g=yes 3272a78e148bSantirezfi 3273a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274a78e148bSantirezfi 3275a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3276a78e148bSantirezfi 3277a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3278a78e148bSantirez ac_c_werror_flag=$ac_save_c_werror_flag 3279a78e148bSantirezfi 3280a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3281a78e148bSantirez$as_echo "$ac_cv_prog_cc_g" >&6; } 3282a78e148bSantirezif test "$ac_test_CFLAGS" = set; then 3283a78e148bSantirez CFLAGS=$ac_save_CFLAGS 3284a78e148bSantirezelif test $ac_cv_prog_cc_g = yes; then 3285a78e148bSantirez if test "$GCC" = yes; then 3286a78e148bSantirez CFLAGS="-g -O2" 3287a78e148bSantirez else 3288a78e148bSantirez CFLAGS="-g" 3289a78e148bSantirez fi 3290a78e148bSantirezelse 3291a78e148bSantirez if test "$GCC" = yes; then 3292a78e148bSantirez CFLAGS="-O2" 3293a78e148bSantirez else 3294a78e148bSantirez CFLAGS= 3295a78e148bSantirez fi 3296a78e148bSantirezfi 3297a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3298a78e148bSantirez$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3299ad4c0b41Santirezif ${ac_cv_prog_cc_c89+:} false; then : 3300a78e148bSantirez $as_echo_n "(cached) " >&6 3301a78e148bSantirezelse 3302a78e148bSantirez ac_cv_prog_cc_c89=no 3303a78e148bSantirezac_save_CC=$CC 3304a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305a78e148bSantirez/* end confdefs.h. */ 3306a78e148bSantirez#include <stdarg.h> 3307a78e148bSantirez#include <stdio.h> 3308fceef8e0Santirezstruct stat; 3309a78e148bSantirez/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3310a78e148bSantirezstruct buf { int x; }; 3311a78e148bSantirezFILE * (*rcsopen) (struct buf *, struct stat *, int); 3312a78e148bSantirezstatic char *e (p, i) 3313a78e148bSantirez char **p; 3314a78e148bSantirez int i; 3315a78e148bSantirez{ 3316a78e148bSantirez return p[i]; 3317a78e148bSantirez} 3318a78e148bSantirezstatic char *f (char * (*g) (char **, int), char **p, ...) 3319a78e148bSantirez{ 3320a78e148bSantirez char *s; 3321a78e148bSantirez va_list v; 3322a78e148bSantirez va_start (v,p); 3323a78e148bSantirez s = g (p, va_arg (v,int)); 3324a78e148bSantirez va_end (v); 3325a78e148bSantirez return s; 3326a78e148bSantirez} 3327a78e148bSantirez 3328a78e148bSantirez/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3329a78e148bSantirez function prototypes and stuff, but not '\xHH' hex character constants. 3330a78e148bSantirez These don't provoke an error unfortunately, instead are silently treated 3331a78e148bSantirez as 'x'. The following induces an error, until -std is added to get 3332a78e148bSantirez proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3333a78e148bSantirez array size at least. It's necessary to write '\x00'==0 to get something 3334a78e148bSantirez that's true only with -std. */ 3335a78e148bSantirezint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3336a78e148bSantirez 3337a78e148bSantirez/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3338a78e148bSantirez inside strings and character constants. */ 3339a78e148bSantirez#define FOO(x) 'x' 3340a78e148bSantirezint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3341a78e148bSantirez 3342a78e148bSantirezint test (int i, double x); 3343a78e148bSantirezstruct s1 {int (*f) (int a);}; 3344a78e148bSantirezstruct s2 {int (*f) (double a);}; 3345a78e148bSantirezint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3346a78e148bSantirezint argc; 3347a78e148bSantirezchar **argv; 3348a78e148bSantirezint 3349a78e148bSantirezmain () 3350a78e148bSantirez{ 3351a78e148bSantirezreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3352a78e148bSantirez ; 3353a78e148bSantirez return 0; 3354a78e148bSantirez} 3355a78e148bSantirez_ACEOF 3356a78e148bSantirezfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3357a78e148bSantirez -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3358a78e148bSantirezdo 3359a78e148bSantirez CC="$ac_save_CC $ac_arg" 3360a78e148bSantirez if ac_fn_c_try_compile "$LINENO"; then : 3361a78e148bSantirez ac_cv_prog_cc_c89=$ac_arg 3362a78e148bSantirezfi 3363a78e148bSantirezrm -f core conftest.err conftest.$ac_objext 3364a78e148bSantirez test "x$ac_cv_prog_cc_c89" != "xno" && break 3365a78e148bSantirezdone 3366a78e148bSantirezrm -f conftest.$ac_ext 3367a78e148bSantirezCC=$ac_save_CC 3368a78e148bSantirez 3369a78e148bSantirezfi 3370a78e148bSantirez# AC_CACHE_VAL 3371a78e148bSantirezcase "x$ac_cv_prog_cc_c89" in 3372a78e148bSantirez x) 3373a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3374a78e148bSantirez$as_echo "none needed" >&6; } ;; 3375a78e148bSantirez xno) 3376a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3377a78e148bSantirez$as_echo "unsupported" >&6; } ;; 3378a78e148bSantirez *) 3379a78e148bSantirez CC="$CC $ac_cv_prog_cc_c89" 3380a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3381a78e148bSantirez$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3382a78e148bSantirezesac 3383a78e148bSantirezif test "x$ac_cv_prog_cc_c89" != xno; then : 3384a78e148bSantirez 3385a78e148bSantirezfi 3386a78e148bSantirez 3387a78e148bSantirezac_ext=c 3388a78e148bSantirezac_cpp='$CPP $CPPFLAGS' 3389a78e148bSantirezac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390a78e148bSantirezac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391a78e148bSantirezac_compiler_gnu=$ac_cv_c_compiler_gnu 3392a78e148bSantirez 3393ad4c0b41Santirezif test "x$GCC" != "xyes" ; then 3394ad4c0b41Santirez 3395ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5 3396ad4c0b41Santirez$as_echo_n "checking whether compiler is MSVC... " >&6; } 3397ad4c0b41Santirezif ${je_cv_msvc+:} false; then : 3398ad4c0b41Santirez $as_echo_n "(cached) " >&6 3399ad4c0b41Santirezelse 3400ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401ad4c0b41Santirez/* end confdefs.h. */ 3402ad4c0b41Santirez 3403ad4c0b41Santirezint 3404ad4c0b41Santirezmain () 3405ad4c0b41Santirez{ 3406ad4c0b41Santirez 3407ad4c0b41Santirez#ifndef _MSC_VER 3408ad4c0b41Santirez int fail-1; 3409ad4c0b41Santirez#endif 3410ad4c0b41Santirez 3411ad4c0b41Santirez ; 3412ad4c0b41Santirez return 0; 3413ad4c0b41Santirez} 3414ad4c0b41Santirez_ACEOF 3415ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3416ad4c0b41Santirez je_cv_msvc=yes 3417ad4c0b41Santirezelse 3418ad4c0b41Santirez je_cv_msvc=no 3419ad4c0b41Santirezfi 3420ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421ad4c0b41Santirezfi 3422ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5 3423ad4c0b41Santirez$as_echo "$je_cv_msvc" >&6; } 3424ad4c0b41Santirezfi 3425ad4c0b41Santirez 3426a78e148bSantirezif test "x$CFLAGS" = "x" ; then 3427a78e148bSantirez no_CFLAGS="yes" 3428a78e148bSantirez if test "x$GCC" = "xyes" ; then 3429a78e148bSantirez 3430a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5 3431a78e148bSantirez$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; } 3432a78e148bSantirezTCFLAGS="${CFLAGS}" 3433a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 3434a78e148bSantirez CFLAGS="-std=gnu99" 3435a78e148bSantirezelse 3436a78e148bSantirez CFLAGS="${CFLAGS} -std=gnu99" 3437a78e148bSantirezfi 3438a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439a78e148bSantirez/* end confdefs.h. */ 3440a78e148bSantirez 3441a78e148bSantirez 3442a78e148bSantirezint 3443a78e148bSantirezmain () 3444a78e148bSantirez{ 3445a78e148bSantirez 3446a78e148bSantirez return 0; 3447a78e148bSantirez 3448a78e148bSantirez ; 3449a78e148bSantirez return 0; 3450a78e148bSantirez} 3451a78e148bSantirez_ACEOF 3452ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3453fceef8e0Santirez je_cv_cflags_appended=-std=gnu99 3454a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3455a78e148bSantirez$as_echo "yes" >&6; } 3456a78e148bSantirezelse 3457fceef8e0Santirez je_cv_cflags_appended= 3458a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3459a78e148bSantirez$as_echo "no" >&6; } 3460a78e148bSantirez CFLAGS="${TCFLAGS}" 3461a78e148bSantirez 3462a78e148bSantirezfi 3463ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464a78e148bSantirez 3465fceef8e0Santirez if test "x$je_cv_cflags_appended" = "x-std=gnu99" ; then 3466fceef8e0Santirez cat >>confdefs.h <<_ACEOF 3467fceef8e0Santirez#define JEMALLOC_HAS_RESTRICT 1 3468fceef8e0Santirez_ACEOF 3469fceef8e0Santirez 3470fceef8e0Santirez fi 3471a78e148bSantirez 3472a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 3473a78e148bSantirez$as_echo_n "checking whether compiler supports -Wall... " >&6; } 3474a78e148bSantirezTCFLAGS="${CFLAGS}" 3475a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 3476a78e148bSantirez CFLAGS="-Wall" 3477a78e148bSantirezelse 3478a78e148bSantirez CFLAGS="${CFLAGS} -Wall" 3479a78e148bSantirezfi 3480a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481a78e148bSantirez/* end confdefs.h. */ 3482a78e148bSantirez 3483a78e148bSantirez 3484a78e148bSantirezint 3485a78e148bSantirezmain () 3486a78e148bSantirez{ 3487a78e148bSantirez 3488a78e148bSantirez return 0; 3489a78e148bSantirez 3490a78e148bSantirez ; 3491a78e148bSantirez return 0; 3492a78e148bSantirez} 3493a78e148bSantirez_ACEOF 3494ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3495fceef8e0Santirez je_cv_cflags_appended=-Wall 3496a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3497a78e148bSantirez$as_echo "yes" >&6; } 3498a78e148bSantirezelse 3499fceef8e0Santirez je_cv_cflags_appended= 3500a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501a78e148bSantirez$as_echo "no" >&6; } 3502a78e148bSantirez CFLAGS="${TCFLAGS}" 3503a78e148bSantirez 3504a78e148bSantirezfi 3505ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3506a78e148bSantirez 3507a78e148bSantirez 3508*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=declaration-after-statement" >&5 3509*5268379eSantirez$as_echo_n "checking whether compiler supports -Werror=declaration-after-statement... " >&6; } 3510*5268379eSantirezTCFLAGS="${CFLAGS}" 3511*5268379eSantirezif test "x${CFLAGS}" = "x" ; then 3512*5268379eSantirez CFLAGS="-Werror=declaration-after-statement" 3513*5268379eSantirezelse 3514*5268379eSantirez CFLAGS="${CFLAGS} -Werror=declaration-after-statement" 3515*5268379eSantirezfi 3516*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517*5268379eSantirez/* end confdefs.h. */ 3518*5268379eSantirez 3519*5268379eSantirez 3520*5268379eSantirezint 3521*5268379eSantirezmain () 3522*5268379eSantirez{ 3523*5268379eSantirez 3524*5268379eSantirez return 0; 3525*5268379eSantirez 3526*5268379eSantirez ; 3527*5268379eSantirez return 0; 3528*5268379eSantirez} 3529*5268379eSantirez_ACEOF 3530*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 3531*5268379eSantirez je_cv_cflags_appended=-Werror=declaration-after-statement 3532*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3533*5268379eSantirez$as_echo "yes" >&6; } 3534*5268379eSantirezelse 3535*5268379eSantirez je_cv_cflags_appended= 3536*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537*5268379eSantirez$as_echo "no" >&6; } 3538*5268379eSantirez CFLAGS="${TCFLAGS}" 3539*5268379eSantirez 3540*5268379eSantirezfi 3541*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542*5268379eSantirez 3543*5268379eSantirez 3544a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5 3545a78e148bSantirez$as_echo_n "checking whether compiler supports -pipe... " >&6; } 3546a78e148bSantirezTCFLAGS="${CFLAGS}" 3547a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 3548a78e148bSantirez CFLAGS="-pipe" 3549a78e148bSantirezelse 3550a78e148bSantirez CFLAGS="${CFLAGS} -pipe" 3551a78e148bSantirezfi 3552a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553a78e148bSantirez/* end confdefs.h. */ 3554a78e148bSantirez 3555a78e148bSantirez 3556a78e148bSantirezint 3557a78e148bSantirezmain () 3558a78e148bSantirez{ 3559a78e148bSantirez 3560a78e148bSantirez return 0; 3561a78e148bSantirez 3562a78e148bSantirez ; 3563a78e148bSantirez return 0; 3564a78e148bSantirez} 3565a78e148bSantirez_ACEOF 3566ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3567fceef8e0Santirez je_cv_cflags_appended=-pipe 3568a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3569a78e148bSantirez$as_echo "yes" >&6; } 3570a78e148bSantirezelse 3571fceef8e0Santirez je_cv_cflags_appended= 3572a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573a78e148bSantirez$as_echo "no" >&6; } 3574a78e148bSantirez CFLAGS="${TCFLAGS}" 3575a78e148bSantirez 3576a78e148bSantirezfi 3577ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3578a78e148bSantirez 3579a78e148bSantirez 3580a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 3581a78e148bSantirez$as_echo_n "checking whether compiler supports -g3... " >&6; } 3582a78e148bSantirezTCFLAGS="${CFLAGS}" 3583a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 3584a78e148bSantirez CFLAGS="-g3" 3585a78e148bSantirezelse 3586a78e148bSantirez CFLAGS="${CFLAGS} -g3" 3587a78e148bSantirezfi 3588a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589a78e148bSantirez/* end confdefs.h. */ 3590a78e148bSantirez 3591a78e148bSantirez 3592a78e148bSantirezint 3593a78e148bSantirezmain () 3594a78e148bSantirez{ 3595a78e148bSantirez 3596a78e148bSantirez return 0; 3597a78e148bSantirez 3598a78e148bSantirez ; 3599a78e148bSantirez return 0; 3600a78e148bSantirez} 3601a78e148bSantirez_ACEOF 3602ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3603fceef8e0Santirez je_cv_cflags_appended=-g3 3604a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3605a78e148bSantirez$as_echo "yes" >&6; } 3606a78e148bSantirezelse 3607fceef8e0Santirez je_cv_cflags_appended= 3608a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609a78e148bSantirez$as_echo "no" >&6; } 3610a78e148bSantirez CFLAGS="${TCFLAGS}" 3611a78e148bSantirez 3612a78e148bSantirezfi 3613ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3614ad4c0b41Santirez 3615ad4c0b41Santirez elif test "x$je_cv_msvc" = "xyes" ; then 3616ad4c0b41Santirez CC="$CC -nologo" 3617ad4c0b41Santirez 3618ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5 3619ad4c0b41Santirez$as_echo_n "checking whether compiler supports -Zi... " >&6; } 3620ad4c0b41SantirezTCFLAGS="${CFLAGS}" 3621ad4c0b41Santirezif test "x${CFLAGS}" = "x" ; then 3622ad4c0b41Santirez CFLAGS="-Zi" 3623ad4c0b41Santirezelse 3624ad4c0b41Santirez CFLAGS="${CFLAGS} -Zi" 3625a78e148bSantirezfi 3626ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627ad4c0b41Santirez/* end confdefs.h. */ 3628a78e148bSantirez 3629a78e148bSantirez 3630ad4c0b41Santirezint 3631ad4c0b41Santirezmain () 3632ad4c0b41Santirez{ 3633ad4c0b41Santirez 3634ad4c0b41Santirez return 0; 3635ad4c0b41Santirez 3636ad4c0b41Santirez ; 3637ad4c0b41Santirez return 0; 3638ad4c0b41Santirez} 3639ad4c0b41Santirez_ACEOF 3640ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3641fceef8e0Santirez je_cv_cflags_appended=-Zi 3642ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3643ad4c0b41Santirez$as_echo "yes" >&6; } 3644ad4c0b41Santirezelse 3645fceef8e0Santirez je_cv_cflags_appended= 3646ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647ad4c0b41Santirez$as_echo "no" >&6; } 3648ad4c0b41Santirez CFLAGS="${TCFLAGS}" 3649ad4c0b41Santirez 3650ad4c0b41Santirezfi 3651ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3652ad4c0b41Santirez 3653ad4c0b41Santirez 3654ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5 3655ad4c0b41Santirez$as_echo_n "checking whether compiler supports -MT... " >&6; } 3656ad4c0b41SantirezTCFLAGS="${CFLAGS}" 3657ad4c0b41Santirezif test "x${CFLAGS}" = "x" ; then 3658ad4c0b41Santirez CFLAGS="-MT" 3659ad4c0b41Santirezelse 3660ad4c0b41Santirez CFLAGS="${CFLAGS} -MT" 3661ad4c0b41Santirezfi 3662ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663ad4c0b41Santirez/* end confdefs.h. */ 3664ad4c0b41Santirez 3665ad4c0b41Santirez 3666ad4c0b41Santirezint 3667ad4c0b41Santirezmain () 3668ad4c0b41Santirez{ 3669ad4c0b41Santirez 3670ad4c0b41Santirez return 0; 3671ad4c0b41Santirez 3672ad4c0b41Santirez ; 3673ad4c0b41Santirez return 0; 3674ad4c0b41Santirez} 3675ad4c0b41Santirez_ACEOF 3676ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3677fceef8e0Santirez je_cv_cflags_appended=-MT 3678ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3679ad4c0b41Santirez$as_echo "yes" >&6; } 3680ad4c0b41Santirezelse 3681fceef8e0Santirez je_cv_cflags_appended= 3682ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683ad4c0b41Santirez$as_echo "no" >&6; } 3684ad4c0b41Santirez CFLAGS="${TCFLAGS}" 3685ad4c0b41Santirez 3686ad4c0b41Santirezfi 3687ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3688ad4c0b41Santirez 3689ad4c0b41Santirez 3690ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5 3691ad4c0b41Santirez$as_echo_n "checking whether compiler supports -W3... " >&6; } 3692ad4c0b41SantirezTCFLAGS="${CFLAGS}" 3693ad4c0b41Santirezif test "x${CFLAGS}" = "x" ; then 3694ad4c0b41Santirez CFLAGS="-W3" 3695ad4c0b41Santirezelse 3696ad4c0b41Santirez CFLAGS="${CFLAGS} -W3" 3697ad4c0b41Santirezfi 3698ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699ad4c0b41Santirez/* end confdefs.h. */ 3700ad4c0b41Santirez 3701ad4c0b41Santirez 3702ad4c0b41Santirezint 3703ad4c0b41Santirezmain () 3704ad4c0b41Santirez{ 3705ad4c0b41Santirez 3706ad4c0b41Santirez return 0; 3707ad4c0b41Santirez 3708ad4c0b41Santirez ; 3709ad4c0b41Santirez return 0; 3710ad4c0b41Santirez} 3711ad4c0b41Santirez_ACEOF 3712ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3713fceef8e0Santirez je_cv_cflags_appended=-W3 3714ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3715ad4c0b41Santirez$as_echo "yes" >&6; } 3716ad4c0b41Santirezelse 3717fceef8e0Santirez je_cv_cflags_appended= 3718ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719ad4c0b41Santirez$as_echo "no" >&6; } 3720ad4c0b41Santirez CFLAGS="${TCFLAGS}" 3721ad4c0b41Santirez 3722ad4c0b41Santirezfi 3723ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724ad4c0b41Santirez 3725*5268379eSantirez 3726*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5 3727*5268379eSantirez$as_echo_n "checking whether compiler supports -FS... " >&6; } 3728*5268379eSantirezTCFLAGS="${CFLAGS}" 3729*5268379eSantirezif test "x${CFLAGS}" = "x" ; then 3730*5268379eSantirez CFLAGS="-FS" 3731*5268379eSantirezelse 3732*5268379eSantirez CFLAGS="${CFLAGS} -FS" 3733*5268379eSantirezfi 3734*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735*5268379eSantirez/* end confdefs.h. */ 3736*5268379eSantirez 3737*5268379eSantirez 3738*5268379eSantirezint 3739*5268379eSantirezmain () 3740*5268379eSantirez{ 3741*5268379eSantirez 3742*5268379eSantirez return 0; 3743*5268379eSantirez 3744*5268379eSantirez ; 3745*5268379eSantirez return 0; 3746*5268379eSantirez} 3747*5268379eSantirez_ACEOF 3748*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 3749*5268379eSantirez je_cv_cflags_appended=-FS 3750*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3751*5268379eSantirez$as_echo "yes" >&6; } 3752*5268379eSantirezelse 3753*5268379eSantirez je_cv_cflags_appended= 3754*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755*5268379eSantirez$as_echo "no" >&6; } 3756*5268379eSantirez CFLAGS="${TCFLAGS}" 3757*5268379eSantirez 3758*5268379eSantirezfi 3759*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760*5268379eSantirez 3761*5268379eSantirez CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat" 3762a78e148bSantirez fi 3763a78e148bSantirezfi 3764a78e148bSantirezif test "x$EXTRA_CFLAGS" != "x" ; then 3765a78e148bSantirez 3766a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5 3767a78e148bSantirez$as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; } 3768a78e148bSantirezTCFLAGS="${CFLAGS}" 3769a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 3770a78e148bSantirez CFLAGS="$EXTRA_CFLAGS" 3771a78e148bSantirezelse 3772a78e148bSantirez CFLAGS="${CFLAGS} $EXTRA_CFLAGS" 3773a78e148bSantirezfi 3774a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775a78e148bSantirez/* end confdefs.h. */ 3776a78e148bSantirez 3777a78e148bSantirez 3778a78e148bSantirezint 3779a78e148bSantirezmain () 3780a78e148bSantirez{ 3781a78e148bSantirez 3782a78e148bSantirez return 0; 3783a78e148bSantirez 3784a78e148bSantirez ; 3785a78e148bSantirez return 0; 3786a78e148bSantirez} 3787a78e148bSantirez_ACEOF 3788ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 3789fceef8e0Santirez je_cv_cflags_appended=$EXTRA_CFLAGS 3790a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3791a78e148bSantirez$as_echo "yes" >&6; } 3792a78e148bSantirezelse 3793fceef8e0Santirez je_cv_cflags_appended= 3794a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795a78e148bSantirez$as_echo "no" >&6; } 3796a78e148bSantirez CFLAGS="${TCFLAGS}" 3797a78e148bSantirez 3798a78e148bSantirezfi 3799ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800a78e148bSantirez 3801a78e148bSantirezfi 3802a78e148bSantirezac_ext=c 3803a78e148bSantirezac_cpp='$CPP $CPPFLAGS' 3804a78e148bSantirezac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3805a78e148bSantirezac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3806a78e148bSantirezac_compiler_gnu=$ac_cv_c_compiler_gnu 3807a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3808a78e148bSantirez$as_echo_n "checking how to run the C preprocessor... " >&6; } 3809a78e148bSantirez# On Suns, sometimes $CPP names a directory. 3810a78e148bSantirezif test -n "$CPP" && test -d "$CPP"; then 3811a78e148bSantirez CPP= 3812a78e148bSantirezfi 3813a78e148bSantirezif test -z "$CPP"; then 3814ad4c0b41Santirez if ${ac_cv_prog_CPP+:} false; then : 3815a78e148bSantirez $as_echo_n "(cached) " >&6 3816a78e148bSantirezelse 3817a78e148bSantirez # Double quotes because CPP needs to be expanded 3818a78e148bSantirez for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3819a78e148bSantirez do 3820a78e148bSantirez ac_preproc_ok=false 3821a78e148bSantirezfor ac_c_preproc_warn_flag in '' yes 3822a78e148bSantirezdo 3823a78e148bSantirez # Use a header file that comes with gcc, so configuring glibc 3824a78e148bSantirez # with a fresh cross-compiler works. 3825a78e148bSantirez # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3826a78e148bSantirez # <limits.h> exists even on freestanding compilers. 3827a78e148bSantirez # On the NeXT, cc -E runs the code through the compiler's parser, 3828a78e148bSantirez # not just through cpp. "Syntax error" is here to catch this case. 3829a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830a78e148bSantirez/* end confdefs.h. */ 3831a78e148bSantirez#ifdef __STDC__ 3832a78e148bSantirez# include <limits.h> 3833a78e148bSantirez#else 3834a78e148bSantirez# include <assert.h> 3835a78e148bSantirez#endif 3836a78e148bSantirez Syntax error 3837a78e148bSantirez_ACEOF 3838a78e148bSantirezif ac_fn_c_try_cpp "$LINENO"; then : 3839a78e148bSantirez 3840a78e148bSantirezelse 3841a78e148bSantirez # Broken: fails on valid input. 3842a78e148bSantirezcontinue 3843a78e148bSantirezfi 3844ad4c0b41Santirezrm -f conftest.err conftest.i conftest.$ac_ext 3845a78e148bSantirez 3846a78e148bSantirez # OK, works on sane cases. Now check whether nonexistent headers 3847a78e148bSantirez # can be detected and how. 3848a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849a78e148bSantirez/* end confdefs.h. */ 3850a78e148bSantirez#include <ac_nonexistent.h> 3851a78e148bSantirez_ACEOF 3852a78e148bSantirezif ac_fn_c_try_cpp "$LINENO"; then : 3853a78e148bSantirez # Broken: success on invalid input. 3854a78e148bSantirezcontinue 3855a78e148bSantirezelse 3856a78e148bSantirez # Passes both tests. 3857a78e148bSantirezac_preproc_ok=: 3858a78e148bSantirezbreak 3859a78e148bSantirezfi 3860ad4c0b41Santirezrm -f conftest.err conftest.i conftest.$ac_ext 3861a78e148bSantirez 3862a78e148bSantirezdone 3863a78e148bSantirez# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3864ad4c0b41Santirezrm -f conftest.i conftest.err conftest.$ac_ext 3865a78e148bSantirezif $ac_preproc_ok; then : 3866a78e148bSantirez break 3867a78e148bSantirezfi 3868a78e148bSantirez 3869a78e148bSantirez done 3870a78e148bSantirez ac_cv_prog_CPP=$CPP 3871a78e148bSantirez 3872a78e148bSantirezfi 3873a78e148bSantirez CPP=$ac_cv_prog_CPP 3874a78e148bSantirezelse 3875a78e148bSantirez ac_cv_prog_CPP=$CPP 3876a78e148bSantirezfi 3877a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3878a78e148bSantirez$as_echo "$CPP" >&6; } 3879a78e148bSantirezac_preproc_ok=false 3880a78e148bSantirezfor ac_c_preproc_warn_flag in '' yes 3881a78e148bSantirezdo 3882a78e148bSantirez # Use a header file that comes with gcc, so configuring glibc 3883a78e148bSantirez # with a fresh cross-compiler works. 3884a78e148bSantirez # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3885a78e148bSantirez # <limits.h> exists even on freestanding compilers. 3886a78e148bSantirez # On the NeXT, cc -E runs the code through the compiler's parser, 3887a78e148bSantirez # not just through cpp. "Syntax error" is here to catch this case. 3888a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889a78e148bSantirez/* end confdefs.h. */ 3890a78e148bSantirez#ifdef __STDC__ 3891a78e148bSantirez# include <limits.h> 3892a78e148bSantirez#else 3893a78e148bSantirez# include <assert.h> 3894a78e148bSantirez#endif 3895a78e148bSantirez Syntax error 3896a78e148bSantirez_ACEOF 3897a78e148bSantirezif ac_fn_c_try_cpp "$LINENO"; then : 3898a78e148bSantirez 3899a78e148bSantirezelse 3900a78e148bSantirez # Broken: fails on valid input. 3901a78e148bSantirezcontinue 3902a78e148bSantirezfi 3903ad4c0b41Santirezrm -f conftest.err conftest.i conftest.$ac_ext 3904a78e148bSantirez 3905a78e148bSantirez # OK, works on sane cases. Now check whether nonexistent headers 3906a78e148bSantirez # can be detected and how. 3907a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3908a78e148bSantirez/* end confdefs.h. */ 3909a78e148bSantirez#include <ac_nonexistent.h> 3910a78e148bSantirez_ACEOF 3911a78e148bSantirezif ac_fn_c_try_cpp "$LINENO"; then : 3912a78e148bSantirez # Broken: success on invalid input. 3913a78e148bSantirezcontinue 3914a78e148bSantirezelse 3915a78e148bSantirez # Passes both tests. 3916a78e148bSantirezac_preproc_ok=: 3917a78e148bSantirezbreak 3918a78e148bSantirezfi 3919ad4c0b41Santirezrm -f conftest.err conftest.i conftest.$ac_ext 3920a78e148bSantirez 3921a78e148bSantirezdone 3922a78e148bSantirez# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3923ad4c0b41Santirezrm -f conftest.i conftest.err conftest.$ac_ext 3924a78e148bSantirezif $ac_preproc_ok; then : 3925a78e148bSantirez 3926a78e148bSantirezelse 3927a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3928a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929ad4c0b41Santirezas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3930ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 3931a78e148bSantirezfi 3932a78e148bSantirez 3933a78e148bSantirezac_ext=c 3934a78e148bSantirezac_cpp='$CPP $CPPFLAGS' 3935a78e148bSantirezac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3936a78e148bSantirezac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3937a78e148bSantirezac_compiler_gnu=$ac_cv_c_compiler_gnu 3938a78e148bSantirez 3939a78e148bSantirez 3940a78e148bSantirez 3941a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3942a78e148bSantirez$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3943ad4c0b41Santirezif ${ac_cv_path_GREP+:} false; then : 3944a78e148bSantirez $as_echo_n "(cached) " >&6 3945a78e148bSantirezelse 3946a78e148bSantirez if test -z "$GREP"; then 3947a78e148bSantirez ac_path_GREP_found=false 3948a78e148bSantirez # Loop through the user's path and test for each of PROGNAME-LIST 3949a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950a78e148bSantirezfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3951a78e148bSantirezdo 3952a78e148bSantirez IFS=$as_save_IFS 3953a78e148bSantirez test -z "$as_dir" && as_dir=. 3954a78e148bSantirez for ac_prog in grep ggrep; do 3955a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 3956a78e148bSantirez ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3957fceef8e0Santirez as_fn_executable_p "$ac_path_GREP" || continue 3958a78e148bSantirez# Check for GNU ac_path_GREP and select it if it is found. 3959a78e148bSantirez # Check for GNU $ac_path_GREP 3960a78e148bSantirezcase `"$ac_path_GREP" --version 2>&1` in 3961a78e148bSantirez*GNU*) 3962a78e148bSantirez ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3963a78e148bSantirez*) 3964a78e148bSantirez ac_count=0 3965a78e148bSantirez $as_echo_n 0123456789 >"conftest.in" 3966a78e148bSantirez while : 3967a78e148bSantirez do 3968a78e148bSantirez cat "conftest.in" "conftest.in" >"conftest.tmp" 3969a78e148bSantirez mv "conftest.tmp" "conftest.in" 3970a78e148bSantirez cp "conftest.in" "conftest.nl" 3971a78e148bSantirez $as_echo 'GREP' >> "conftest.nl" 3972a78e148bSantirez "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3973a78e148bSantirez diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3974a78e148bSantirez as_fn_arith $ac_count + 1 && ac_count=$as_val 3975a78e148bSantirez if test $ac_count -gt ${ac_path_GREP_max-0}; then 3976a78e148bSantirez # Best one so far, save it but keep looking for a better one 3977a78e148bSantirez ac_cv_path_GREP="$ac_path_GREP" 3978a78e148bSantirez ac_path_GREP_max=$ac_count 3979a78e148bSantirez fi 3980a78e148bSantirez # 10*(2^10) chars as input seems more than enough 3981a78e148bSantirez test $ac_count -gt 10 && break 3982a78e148bSantirez done 3983a78e148bSantirez rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3984a78e148bSantirezesac 3985a78e148bSantirez 3986a78e148bSantirez $ac_path_GREP_found && break 3 3987a78e148bSantirez done 3988a78e148bSantirez done 3989a78e148bSantirez done 3990a78e148bSantirezIFS=$as_save_IFS 3991a78e148bSantirez if test -z "$ac_cv_path_GREP"; then 3992ad4c0b41Santirez as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3993a78e148bSantirez fi 3994a78e148bSantirezelse 3995a78e148bSantirez ac_cv_path_GREP=$GREP 3996a78e148bSantirezfi 3997a78e148bSantirez 3998a78e148bSantirezfi 3999a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4000a78e148bSantirez$as_echo "$ac_cv_path_GREP" >&6; } 4001a78e148bSantirez GREP="$ac_cv_path_GREP" 4002a78e148bSantirez 4003a78e148bSantirez 4004a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4005a78e148bSantirez$as_echo_n "checking for egrep... " >&6; } 4006ad4c0b41Santirezif ${ac_cv_path_EGREP+:} false; then : 4007a78e148bSantirez $as_echo_n "(cached) " >&6 4008a78e148bSantirezelse 4009a78e148bSantirez if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4010a78e148bSantirez then ac_cv_path_EGREP="$GREP -E" 4011a78e148bSantirez else 4012a78e148bSantirez if test -z "$EGREP"; then 4013a78e148bSantirez ac_path_EGREP_found=false 4014a78e148bSantirez # Loop through the user's path and test for each of PROGNAME-LIST 4015a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016a78e148bSantirezfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4017a78e148bSantirezdo 4018a78e148bSantirez IFS=$as_save_IFS 4019a78e148bSantirez test -z "$as_dir" && as_dir=. 4020a78e148bSantirez for ac_prog in egrep; do 4021a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 4022a78e148bSantirez ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4023fceef8e0Santirez as_fn_executable_p "$ac_path_EGREP" || continue 4024a78e148bSantirez# Check for GNU ac_path_EGREP and select it if it is found. 4025a78e148bSantirez # Check for GNU $ac_path_EGREP 4026a78e148bSantirezcase `"$ac_path_EGREP" --version 2>&1` in 4027a78e148bSantirez*GNU*) 4028a78e148bSantirez ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4029a78e148bSantirez*) 4030a78e148bSantirez ac_count=0 4031a78e148bSantirez $as_echo_n 0123456789 >"conftest.in" 4032a78e148bSantirez while : 4033a78e148bSantirez do 4034a78e148bSantirez cat "conftest.in" "conftest.in" >"conftest.tmp" 4035a78e148bSantirez mv "conftest.tmp" "conftest.in" 4036a78e148bSantirez cp "conftest.in" "conftest.nl" 4037a78e148bSantirez $as_echo 'EGREP' >> "conftest.nl" 4038a78e148bSantirez "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4039a78e148bSantirez diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4040a78e148bSantirez as_fn_arith $ac_count + 1 && ac_count=$as_val 4041a78e148bSantirez if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4042a78e148bSantirez # Best one so far, save it but keep looking for a better one 4043a78e148bSantirez ac_cv_path_EGREP="$ac_path_EGREP" 4044a78e148bSantirez ac_path_EGREP_max=$ac_count 4045a78e148bSantirez fi 4046a78e148bSantirez # 10*(2^10) chars as input seems more than enough 4047a78e148bSantirez test $ac_count -gt 10 && break 4048a78e148bSantirez done 4049a78e148bSantirez rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4050a78e148bSantirezesac 4051a78e148bSantirez 4052a78e148bSantirez $ac_path_EGREP_found && break 3 4053a78e148bSantirez done 4054a78e148bSantirez done 4055a78e148bSantirez done 4056a78e148bSantirezIFS=$as_save_IFS 4057a78e148bSantirez if test -z "$ac_cv_path_EGREP"; then 4058ad4c0b41Santirez as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4059a78e148bSantirez fi 4060a78e148bSantirezelse 4061a78e148bSantirez ac_cv_path_EGREP=$EGREP 4062a78e148bSantirezfi 4063a78e148bSantirez 4064a78e148bSantirez fi 4065a78e148bSantirezfi 4066a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4067a78e148bSantirez$as_echo "$ac_cv_path_EGREP" >&6; } 4068a78e148bSantirez EGREP="$ac_cv_path_EGREP" 4069a78e148bSantirez 4070a78e148bSantirez 4071a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4072a78e148bSantirez$as_echo_n "checking for ANSI C header files... " >&6; } 4073ad4c0b41Santirezif ${ac_cv_header_stdc+:} false; then : 4074a78e148bSantirez $as_echo_n "(cached) " >&6 4075a78e148bSantirezelse 4076a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077a78e148bSantirez/* end confdefs.h. */ 4078a78e148bSantirez#include <stdlib.h> 4079a78e148bSantirez#include <stdarg.h> 4080a78e148bSantirez#include <string.h> 4081a78e148bSantirez#include <float.h> 4082a78e148bSantirez 4083a78e148bSantirezint 4084a78e148bSantirezmain () 4085a78e148bSantirez{ 4086a78e148bSantirez 4087a78e148bSantirez ; 4088a78e148bSantirez return 0; 4089a78e148bSantirez} 4090a78e148bSantirez_ACEOF 4091a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 4092a78e148bSantirez ac_cv_header_stdc=yes 4093a78e148bSantirezelse 4094a78e148bSantirez ac_cv_header_stdc=no 4095a78e148bSantirezfi 4096a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4097a78e148bSantirez 4098a78e148bSantirezif test $ac_cv_header_stdc = yes; then 4099a78e148bSantirez # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4100a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101a78e148bSantirez/* end confdefs.h. */ 4102a78e148bSantirez#include <string.h> 4103a78e148bSantirez 4104a78e148bSantirez_ACEOF 4105a78e148bSantirezif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4106a78e148bSantirez $EGREP "memchr" >/dev/null 2>&1; then : 4107a78e148bSantirez 4108a78e148bSantirezelse 4109a78e148bSantirez ac_cv_header_stdc=no 4110a78e148bSantirezfi 4111a78e148bSantirezrm -f conftest* 4112a78e148bSantirez 4113a78e148bSantirezfi 4114a78e148bSantirez 4115a78e148bSantirezif test $ac_cv_header_stdc = yes; then 4116a78e148bSantirez # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4117a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118a78e148bSantirez/* end confdefs.h. */ 4119a78e148bSantirez#include <stdlib.h> 4120a78e148bSantirez 4121a78e148bSantirez_ACEOF 4122a78e148bSantirezif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4123a78e148bSantirez $EGREP "free" >/dev/null 2>&1; then : 4124a78e148bSantirez 4125a78e148bSantirezelse 4126a78e148bSantirez ac_cv_header_stdc=no 4127a78e148bSantirezfi 4128a78e148bSantirezrm -f conftest* 4129a78e148bSantirez 4130a78e148bSantirezfi 4131a78e148bSantirez 4132a78e148bSantirezif test $ac_cv_header_stdc = yes; then 4133a78e148bSantirez # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4134a78e148bSantirez if test "$cross_compiling" = yes; then : 4135a78e148bSantirez : 4136a78e148bSantirezelse 4137a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138a78e148bSantirez/* end confdefs.h. */ 4139a78e148bSantirez#include <ctype.h> 4140a78e148bSantirez#include <stdlib.h> 4141a78e148bSantirez#if ((' ' & 0x0FF) == 0x020) 4142a78e148bSantirez# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4143a78e148bSantirez# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4144a78e148bSantirez#else 4145a78e148bSantirez# define ISLOWER(c) \ 4146a78e148bSantirez (('a' <= (c) && (c) <= 'i') \ 4147a78e148bSantirez || ('j' <= (c) && (c) <= 'r') \ 4148a78e148bSantirez || ('s' <= (c) && (c) <= 'z')) 4149a78e148bSantirez# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4150a78e148bSantirez#endif 4151a78e148bSantirez 4152a78e148bSantirez#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4153a78e148bSantirezint 4154a78e148bSantirezmain () 4155a78e148bSantirez{ 4156a78e148bSantirez int i; 4157a78e148bSantirez for (i = 0; i < 256; i++) 4158a78e148bSantirez if (XOR (islower (i), ISLOWER (i)) 4159a78e148bSantirez || toupper (i) != TOUPPER (i)) 4160a78e148bSantirez return 2; 4161a78e148bSantirez return 0; 4162a78e148bSantirez} 4163a78e148bSantirez_ACEOF 4164a78e148bSantirezif ac_fn_c_try_run "$LINENO"; then : 4165a78e148bSantirez 4166a78e148bSantirezelse 4167a78e148bSantirez ac_cv_header_stdc=no 4168a78e148bSantirezfi 4169a78e148bSantirezrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4170a78e148bSantirez conftest.$ac_objext conftest.beam conftest.$ac_ext 4171a78e148bSantirezfi 4172a78e148bSantirez 4173a78e148bSantirezfi 4174a78e148bSantirezfi 4175a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4176a78e148bSantirez$as_echo "$ac_cv_header_stdc" >&6; } 4177a78e148bSantirezif test $ac_cv_header_stdc = yes; then 4178a78e148bSantirez 4179a78e148bSantirez$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4180a78e148bSantirez 4181a78e148bSantirezfi 4182a78e148bSantirez 4183a78e148bSantirez# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4184a78e148bSantirezfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4185a78e148bSantirez inttypes.h stdint.h unistd.h 4186a78e148bSantirezdo : 4187a78e148bSantirez as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4188a78e148bSantirezac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4189a78e148bSantirez" 4190ad4c0b41Santirezif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4191a78e148bSantirez cat >>confdefs.h <<_ACEOF 4192a78e148bSantirez#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4193a78e148bSantirez_ACEOF 4194a78e148bSantirez 4195a78e148bSantirezfi 4196a78e148bSantirez 4197a78e148bSantirezdone 4198a78e148bSantirez 4199a78e148bSantirez 4200fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4201fceef8e0Santirez$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4202fceef8e0Santirezif ${ac_cv_c_bigendian+:} false; then : 4203fceef8e0Santirez $as_echo_n "(cached) " >&6 4204fceef8e0Santirezelse 4205fceef8e0Santirez ac_cv_c_bigendian=unknown 4206fceef8e0Santirez # See if we're dealing with a universal compiler. 4207fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208fceef8e0Santirez/* end confdefs.h. */ 4209fceef8e0Santirez#ifndef __APPLE_CC__ 4210fceef8e0Santirez not a universal capable compiler 4211fceef8e0Santirez #endif 4212fceef8e0Santirez typedef int dummy; 4213fceef8e0Santirez 4214fceef8e0Santirez_ACEOF 4215fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4216fceef8e0Santirez 4217fceef8e0Santirez # Check for potential -arch flags. It is not universal unless 4218fceef8e0Santirez # there are at least two -arch flags with different values. 4219fceef8e0Santirez ac_arch= 4220fceef8e0Santirez ac_prev= 4221fceef8e0Santirez for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4222fceef8e0Santirez if test -n "$ac_prev"; then 4223fceef8e0Santirez case $ac_word in 4224fceef8e0Santirez i?86 | x86_64 | ppc | ppc64) 4225fceef8e0Santirez if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4226fceef8e0Santirez ac_arch=$ac_word 4227fceef8e0Santirez else 4228fceef8e0Santirez ac_cv_c_bigendian=universal 4229fceef8e0Santirez break 4230fceef8e0Santirez fi 4231fceef8e0Santirez ;; 4232fceef8e0Santirez esac 4233fceef8e0Santirez ac_prev= 4234fceef8e0Santirez elif test "x$ac_word" = "x-arch"; then 4235fceef8e0Santirez ac_prev=arch 4236fceef8e0Santirez fi 4237fceef8e0Santirez done 4238fceef8e0Santirezfi 4239fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4240fceef8e0Santirez if test $ac_cv_c_bigendian = unknown; then 4241fceef8e0Santirez # See if sys/param.h defines the BYTE_ORDER macro. 4242fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243fceef8e0Santirez/* end confdefs.h. */ 4244fceef8e0Santirez#include <sys/types.h> 4245fceef8e0Santirez #include <sys/param.h> 4246fceef8e0Santirez 4247fceef8e0Santirezint 4248fceef8e0Santirezmain () 4249fceef8e0Santirez{ 4250fceef8e0Santirez#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4251fceef8e0Santirez && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4252fceef8e0Santirez && LITTLE_ENDIAN) 4253fceef8e0Santirez bogus endian macros 4254fceef8e0Santirez #endif 4255fceef8e0Santirez 4256fceef8e0Santirez ; 4257fceef8e0Santirez return 0; 4258fceef8e0Santirez} 4259fceef8e0Santirez_ACEOF 4260fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4261fceef8e0Santirez # It does; now see whether it defined to BIG_ENDIAN or not. 4262fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263fceef8e0Santirez/* end confdefs.h. */ 4264fceef8e0Santirez#include <sys/types.h> 4265fceef8e0Santirez #include <sys/param.h> 4266fceef8e0Santirez 4267fceef8e0Santirezint 4268fceef8e0Santirezmain () 4269fceef8e0Santirez{ 4270fceef8e0Santirez#if BYTE_ORDER != BIG_ENDIAN 4271fceef8e0Santirez not big endian 4272fceef8e0Santirez #endif 4273fceef8e0Santirez 4274fceef8e0Santirez ; 4275fceef8e0Santirez return 0; 4276fceef8e0Santirez} 4277fceef8e0Santirez_ACEOF 4278fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4279fceef8e0Santirez ac_cv_c_bigendian=yes 4280fceef8e0Santirezelse 4281fceef8e0Santirez ac_cv_c_bigendian=no 4282fceef8e0Santirezfi 4283fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4284fceef8e0Santirezfi 4285fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4286fceef8e0Santirez fi 4287fceef8e0Santirez if test $ac_cv_c_bigendian = unknown; then 4288fceef8e0Santirez # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4289fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290fceef8e0Santirez/* end confdefs.h. */ 4291fceef8e0Santirez#include <limits.h> 4292fceef8e0Santirez 4293fceef8e0Santirezint 4294fceef8e0Santirezmain () 4295fceef8e0Santirez{ 4296fceef8e0Santirez#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4297fceef8e0Santirez bogus endian macros 4298fceef8e0Santirez #endif 4299fceef8e0Santirez 4300fceef8e0Santirez ; 4301fceef8e0Santirez return 0; 4302fceef8e0Santirez} 4303fceef8e0Santirez_ACEOF 4304fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4305fceef8e0Santirez # It does; now see whether it defined to _BIG_ENDIAN or not. 4306fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307fceef8e0Santirez/* end confdefs.h. */ 4308fceef8e0Santirez#include <limits.h> 4309fceef8e0Santirez 4310fceef8e0Santirezint 4311fceef8e0Santirezmain () 4312fceef8e0Santirez{ 4313fceef8e0Santirez#ifndef _BIG_ENDIAN 4314fceef8e0Santirez not big endian 4315fceef8e0Santirez #endif 4316fceef8e0Santirez 4317fceef8e0Santirez ; 4318fceef8e0Santirez return 0; 4319fceef8e0Santirez} 4320fceef8e0Santirez_ACEOF 4321fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4322fceef8e0Santirez ac_cv_c_bigendian=yes 4323fceef8e0Santirezelse 4324fceef8e0Santirez ac_cv_c_bigendian=no 4325fceef8e0Santirezfi 4326fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327fceef8e0Santirezfi 4328fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4329fceef8e0Santirez fi 4330fceef8e0Santirez if test $ac_cv_c_bigendian = unknown; then 4331fceef8e0Santirez # Compile a test program. 4332fceef8e0Santirez if test "$cross_compiling" = yes; then : 4333fceef8e0Santirez # Try to guess by grepping values from an object file. 4334fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335fceef8e0Santirez/* end confdefs.h. */ 4336fceef8e0Santirezshort int ascii_mm[] = 4337fceef8e0Santirez { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4338fceef8e0Santirez short int ascii_ii[] = 4339fceef8e0Santirez { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4340fceef8e0Santirez int use_ascii (int i) { 4341fceef8e0Santirez return ascii_mm[i] + ascii_ii[i]; 4342fceef8e0Santirez } 4343fceef8e0Santirez short int ebcdic_ii[] = 4344fceef8e0Santirez { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4345fceef8e0Santirez short int ebcdic_mm[] = 4346fceef8e0Santirez { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4347fceef8e0Santirez int use_ebcdic (int i) { 4348fceef8e0Santirez return ebcdic_mm[i] + ebcdic_ii[i]; 4349fceef8e0Santirez } 4350fceef8e0Santirez extern int foo; 4351fceef8e0Santirez 4352fceef8e0Santirezint 4353fceef8e0Santirezmain () 4354fceef8e0Santirez{ 4355fceef8e0Santirezreturn use_ascii (foo) == use_ebcdic (foo); 4356fceef8e0Santirez ; 4357fceef8e0Santirez return 0; 4358fceef8e0Santirez} 4359fceef8e0Santirez_ACEOF 4360fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 4361fceef8e0Santirez if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4362fceef8e0Santirez ac_cv_c_bigendian=yes 4363fceef8e0Santirez fi 4364fceef8e0Santirez if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4365fceef8e0Santirez if test "$ac_cv_c_bigendian" = unknown; then 4366fceef8e0Santirez ac_cv_c_bigendian=no 4367fceef8e0Santirez else 4368fceef8e0Santirez # finding both strings is unlikely to happen, but who knows? 4369fceef8e0Santirez ac_cv_c_bigendian=unknown 4370fceef8e0Santirez fi 4371fceef8e0Santirez fi 4372fceef8e0Santirezfi 4373fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4374fceef8e0Santirezelse 4375fceef8e0Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376fceef8e0Santirez/* end confdefs.h. */ 4377fceef8e0Santirez$ac_includes_default 4378fceef8e0Santirezint 4379fceef8e0Santirezmain () 4380fceef8e0Santirez{ 4381fceef8e0Santirez 4382fceef8e0Santirez /* Are we little or big endian? From Harbison&Steele. */ 4383fceef8e0Santirez union 4384fceef8e0Santirez { 4385fceef8e0Santirez long int l; 4386fceef8e0Santirez char c[sizeof (long int)]; 4387fceef8e0Santirez } u; 4388fceef8e0Santirez u.l = 1; 4389fceef8e0Santirez return u.c[sizeof (long int) - 1] == 1; 4390fceef8e0Santirez 4391fceef8e0Santirez ; 4392fceef8e0Santirez return 0; 4393fceef8e0Santirez} 4394fceef8e0Santirez_ACEOF 4395fceef8e0Santirezif ac_fn_c_try_run "$LINENO"; then : 4396fceef8e0Santirez ac_cv_c_bigendian=no 4397fceef8e0Santirezelse 4398fceef8e0Santirez ac_cv_c_bigendian=yes 4399fceef8e0Santirezfi 4400fceef8e0Santirezrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4401fceef8e0Santirez conftest.$ac_objext conftest.beam conftest.$ac_ext 4402fceef8e0Santirezfi 4403fceef8e0Santirez 4404fceef8e0Santirez fi 4405fceef8e0Santirezfi 4406fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4407fceef8e0Santirez$as_echo "$ac_cv_c_bigendian" >&6; } 4408fceef8e0Santirez case $ac_cv_c_bigendian in #( 4409fceef8e0Santirez yes) 4410fceef8e0Santirez ac_cv_big_endian=1;; #( 4411fceef8e0Santirez no) 4412fceef8e0Santirez ac_cv_big_endian=0 ;; #( 4413fceef8e0Santirez universal) 4414fceef8e0Santirez 4415fceef8e0Santirez$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4416fceef8e0Santirez 4417fceef8e0Santirez ;; #( 4418fceef8e0Santirez *) 4419fceef8e0Santirez as_fn_error $? "unknown endianness 4420fceef8e0Santirez presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4421fceef8e0Santirez esac 4422fceef8e0Santirez 4423fceef8e0Santirezif test "x${ac_cv_big_endian}" = "x1" ; then 4424fceef8e0Santirez cat >>confdefs.h <<_ACEOF 4425fceef8e0Santirez#define JEMALLOC_BIG_ENDIAN 4426fceef8e0Santirez_ACEOF 4427fceef8e0Santirez 4428fceef8e0Santirezfi 4429fceef8e0Santirez 4430*5268379eSantirezif test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then 4431*5268379eSantirez CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat/C99" 4432*5268379eSantirezfi 4433*5268379eSantirez 4434a78e148bSantirez# The cast to long int works around a bug in the HP C Compiler 4435a78e148bSantirez# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4436a78e148bSantirez# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4437a78e148bSantirez# This bug is HP SR number 8606223364. 4438a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4439a78e148bSantirez$as_echo_n "checking size of void *... " >&6; } 4440ad4c0b41Santirezif ${ac_cv_sizeof_void_p+:} false; then : 4441a78e148bSantirez $as_echo_n "(cached) " >&6 4442a78e148bSantirezelse 4443a78e148bSantirez if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4444a78e148bSantirez 4445a78e148bSantirezelse 4446a78e148bSantirez if test "$ac_cv_type_void_p" = yes; then 4447a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4448a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4449ad4c0b41Santirezas_fn_error 77 "cannot compute sizeof (void *) 4450ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 4451a78e148bSantirez else 4452a78e148bSantirez ac_cv_sizeof_void_p=0 4453a78e148bSantirez fi 4454a78e148bSantirezfi 4455a78e148bSantirez 4456a78e148bSantirezfi 4457a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4458a78e148bSantirez$as_echo "$ac_cv_sizeof_void_p" >&6; } 4459a78e148bSantirez 4460a78e148bSantirez 4461a78e148bSantirez 4462a78e148bSantirezcat >>confdefs.h <<_ACEOF 4463a78e148bSantirez#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4464a78e148bSantirez_ACEOF 4465a78e148bSantirez 4466a78e148bSantirez 4467a78e148bSantirezif test "x${ac_cv_sizeof_void_p}" = "x8" ; then 4468a78e148bSantirez LG_SIZEOF_PTR=3 4469a78e148bSantirezelif test "x${ac_cv_sizeof_void_p}" = "x4" ; then 4470a78e148bSantirez LG_SIZEOF_PTR=2 4471a78e148bSantirezelse 4472ad4c0b41Santirez as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5 4473a78e148bSantirezfi 4474a78e148bSantirezcat >>confdefs.h <<_ACEOF 4475a78e148bSantirez#define LG_SIZEOF_PTR $LG_SIZEOF_PTR 4476a78e148bSantirez_ACEOF 4477a78e148bSantirez 4478a78e148bSantirez 4479a78e148bSantirez# The cast to long int works around a bug in the HP C Compiler 4480a78e148bSantirez# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4481a78e148bSantirez# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4482a78e148bSantirez# This bug is HP SR number 8606223364. 4483a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4484a78e148bSantirez$as_echo_n "checking size of int... " >&6; } 4485ad4c0b41Santirezif ${ac_cv_sizeof_int+:} false; then : 4486a78e148bSantirez $as_echo_n "(cached) " >&6 4487a78e148bSantirezelse 4488a78e148bSantirez if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4489a78e148bSantirez 4490a78e148bSantirezelse 4491a78e148bSantirez if test "$ac_cv_type_int" = yes; then 4492a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4493a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4494ad4c0b41Santirezas_fn_error 77 "cannot compute sizeof (int) 4495ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 4496a78e148bSantirez else 4497a78e148bSantirez ac_cv_sizeof_int=0 4498a78e148bSantirez fi 4499a78e148bSantirezfi 4500a78e148bSantirez 4501a78e148bSantirezfi 4502a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4503a78e148bSantirez$as_echo "$ac_cv_sizeof_int" >&6; } 4504a78e148bSantirez 4505a78e148bSantirez 4506a78e148bSantirez 4507a78e148bSantirezcat >>confdefs.h <<_ACEOF 4508a78e148bSantirez#define SIZEOF_INT $ac_cv_sizeof_int 4509a78e148bSantirez_ACEOF 4510a78e148bSantirez 4511a78e148bSantirez 4512a78e148bSantirezif test "x${ac_cv_sizeof_int}" = "x8" ; then 4513a78e148bSantirez LG_SIZEOF_INT=3 4514a78e148bSantirezelif test "x${ac_cv_sizeof_int}" = "x4" ; then 4515a78e148bSantirez LG_SIZEOF_INT=2 4516a78e148bSantirezelse 4517ad4c0b41Santirez as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5 4518a78e148bSantirezfi 4519a78e148bSantirezcat >>confdefs.h <<_ACEOF 4520a78e148bSantirez#define LG_SIZEOF_INT $LG_SIZEOF_INT 4521a78e148bSantirez_ACEOF 4522a78e148bSantirez 4523a78e148bSantirez 4524a78e148bSantirez# The cast to long int works around a bug in the HP C Compiler 4525a78e148bSantirez# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4526a78e148bSantirez# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4527a78e148bSantirez# This bug is HP SR number 8606223364. 4528a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4529a78e148bSantirez$as_echo_n "checking size of long... " >&6; } 4530ad4c0b41Santirezif ${ac_cv_sizeof_long+:} false; then : 4531a78e148bSantirez $as_echo_n "(cached) " >&6 4532a78e148bSantirezelse 4533a78e148bSantirez if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4534a78e148bSantirez 4535a78e148bSantirezelse 4536a78e148bSantirez if test "$ac_cv_type_long" = yes; then 4537a78e148bSantirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4538a78e148bSantirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4539ad4c0b41Santirezas_fn_error 77 "cannot compute sizeof (long) 4540ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 4541a78e148bSantirez else 4542a78e148bSantirez ac_cv_sizeof_long=0 4543a78e148bSantirez fi 4544a78e148bSantirezfi 4545a78e148bSantirez 4546a78e148bSantirezfi 4547a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4548a78e148bSantirez$as_echo "$ac_cv_sizeof_long" >&6; } 4549a78e148bSantirez 4550a78e148bSantirez 4551a78e148bSantirez 4552a78e148bSantirezcat >>confdefs.h <<_ACEOF 4553a78e148bSantirez#define SIZEOF_LONG $ac_cv_sizeof_long 4554a78e148bSantirez_ACEOF 4555a78e148bSantirez 4556a78e148bSantirez 4557a78e148bSantirezif test "x${ac_cv_sizeof_long}" = "x8" ; then 4558a78e148bSantirez LG_SIZEOF_LONG=3 4559a78e148bSantirezelif test "x${ac_cv_sizeof_long}" = "x4" ; then 4560a78e148bSantirez LG_SIZEOF_LONG=2 4561a78e148bSantirezelse 4562ad4c0b41Santirez as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5 4563a78e148bSantirezfi 4564a78e148bSantirezcat >>confdefs.h <<_ACEOF 4565a78e148bSantirez#define LG_SIZEOF_LONG $LG_SIZEOF_LONG 4566a78e148bSantirez_ACEOF 4567a78e148bSantirez 4568a78e148bSantirez 4569ad4c0b41Santirez# The cast to long int works around a bug in the HP C Compiler 4570ad4c0b41Santirez# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4571ad4c0b41Santirez# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4572ad4c0b41Santirez# This bug is HP SR number 8606223364. 4573ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 4574ad4c0b41Santirez$as_echo_n "checking size of intmax_t... " >&6; } 4575ad4c0b41Santirezif ${ac_cv_sizeof_intmax_t+:} false; then : 4576ad4c0b41Santirez $as_echo_n "(cached) " >&6 4577ad4c0b41Santirezelse 4578ad4c0b41Santirez if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : 4579ad4c0b41Santirez 4580ad4c0b41Santirezelse 4581ad4c0b41Santirez if test "$ac_cv_type_intmax_t" = yes; then 4582ad4c0b41Santirez { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4583ad4c0b41Santirez$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4584ad4c0b41Santirezas_fn_error 77 "cannot compute sizeof (intmax_t) 4585ad4c0b41SantirezSee \`config.log' for more details" "$LINENO" 5; } 4586ad4c0b41Santirez else 4587ad4c0b41Santirez ac_cv_sizeof_intmax_t=0 4588ad4c0b41Santirez fi 4589ad4c0b41Santirezfi 4590ad4c0b41Santirez 4591ad4c0b41Santirezfi 4592ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 4593ad4c0b41Santirez$as_echo "$ac_cv_sizeof_intmax_t" >&6; } 4594ad4c0b41Santirez 4595ad4c0b41Santirez 4596ad4c0b41Santirez 4597ad4c0b41Santirezcat >>confdefs.h <<_ACEOF 4598ad4c0b41Santirez#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 4599ad4c0b41Santirez_ACEOF 4600ad4c0b41Santirez 4601ad4c0b41Santirez 4602ad4c0b41Santirezif test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then 4603ad4c0b41Santirez LG_SIZEOF_INTMAX_T=4 4604ad4c0b41Santirezelif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then 4605ad4c0b41Santirez LG_SIZEOF_INTMAX_T=3 4606ad4c0b41Santirezelif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then 4607ad4c0b41Santirez LG_SIZEOF_INTMAX_T=2 4608ad4c0b41Santirezelse 4609ad4c0b41Santirez as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5 4610ad4c0b41Santirezfi 4611ad4c0b41Santirezcat >>confdefs.h <<_ACEOF 4612ad4c0b41Santirez#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T 4613ad4c0b41Santirez_ACEOF 4614ad4c0b41Santirez 4615ad4c0b41Santirez 4616a78e148bSantirezac_aux_dir= 4617a78e148bSantirezfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4618ad4c0b41Santirez if test -f "$ac_dir/install-sh"; then 4619a78e148bSantirez ac_aux_dir=$ac_dir 4620ad4c0b41Santirez ac_install_sh="$ac_aux_dir/install-sh -c" 4621ad4c0b41Santirez break 4622ad4c0b41Santirez elif test -f "$ac_dir/install.sh"; then 4623ad4c0b41Santirez ac_aux_dir=$ac_dir 4624ad4c0b41Santirez ac_install_sh="$ac_aux_dir/install.sh -c" 4625ad4c0b41Santirez break 4626ad4c0b41Santirez elif test -f "$ac_dir/shtool"; then 4627ad4c0b41Santirez ac_aux_dir=$ac_dir 4628ad4c0b41Santirez ac_install_sh="$ac_aux_dir/shtool install -c" 4629ad4c0b41Santirez break 4630a78e148bSantirez fi 4631a78e148bSantirezdone 4632a78e148bSantirezif test -z "$ac_aux_dir"; then 4633ad4c0b41Santirez as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4634a78e148bSantirezfi 4635a78e148bSantirez 4636a78e148bSantirez# These three variables are undocumented and unsupported, 4637a78e148bSantirez# and are intended to be withdrawn in a future Autoconf release. 4638a78e148bSantirez# They can cause serious problems if a builder's source tree is in a directory 4639a78e148bSantirez# whose full name contains unusual characters. 4640a78e148bSantirezac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4641a78e148bSantirezac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4642a78e148bSantirezac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4643a78e148bSantirez 4644a78e148bSantirez 4645a78e148bSantirez# Make sure we can run config.sub. 4646a78e148bSantirez$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4647ad4c0b41Santirez as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4648a78e148bSantirez 4649a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4650a78e148bSantirez$as_echo_n "checking build system type... " >&6; } 4651ad4c0b41Santirezif ${ac_cv_build+:} false; then : 4652a78e148bSantirez $as_echo_n "(cached) " >&6 4653a78e148bSantirezelse 4654a78e148bSantirez ac_build_alias=$build_alias 4655a78e148bSantireztest "x$ac_build_alias" = x && 4656a78e148bSantirez ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4657a78e148bSantireztest "x$ac_build_alias" = x && 4658ad4c0b41Santirez as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4659a78e148bSantirezac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4660ad4c0b41Santirez as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4661a78e148bSantirez 4662a78e148bSantirezfi 4663a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4664a78e148bSantirez$as_echo "$ac_cv_build" >&6; } 4665a78e148bSantirezcase $ac_cv_build in 4666a78e148bSantirez*-*-*) ;; 4667ad4c0b41Santirez*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4668a78e148bSantirezesac 4669a78e148bSantirezbuild=$ac_cv_build 4670a78e148bSantirezac_save_IFS=$IFS; IFS='-' 4671a78e148bSantirezset x $ac_cv_build 4672a78e148bSantirezshift 4673a78e148bSantirezbuild_cpu=$1 4674a78e148bSantirezbuild_vendor=$2 4675a78e148bSantirezshift; shift 4676a78e148bSantirez# Remember, the first character of IFS is used to create $*, 4677a78e148bSantirez# except with old shells: 4678a78e148bSantirezbuild_os=$* 4679a78e148bSantirezIFS=$ac_save_IFS 4680a78e148bSantirezcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4681a78e148bSantirez 4682a78e148bSantirez 4683a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4684a78e148bSantirez$as_echo_n "checking host system type... " >&6; } 4685ad4c0b41Santirezif ${ac_cv_host+:} false; then : 4686a78e148bSantirez $as_echo_n "(cached) " >&6 4687a78e148bSantirezelse 4688a78e148bSantirez if test "x$host_alias" = x; then 4689a78e148bSantirez ac_cv_host=$ac_cv_build 4690a78e148bSantirezelse 4691a78e148bSantirez ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4692ad4c0b41Santirez as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4693a78e148bSantirezfi 4694a78e148bSantirez 4695a78e148bSantirezfi 4696a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4697a78e148bSantirez$as_echo "$ac_cv_host" >&6; } 4698a78e148bSantirezcase $ac_cv_host in 4699a78e148bSantirez*-*-*) ;; 4700ad4c0b41Santirez*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4701a78e148bSantirezesac 4702a78e148bSantirezhost=$ac_cv_host 4703a78e148bSantirezac_save_IFS=$IFS; IFS='-' 4704a78e148bSantirezset x $ac_cv_host 4705a78e148bSantirezshift 4706a78e148bSantirezhost_cpu=$1 4707a78e148bSantirezhost_vendor=$2 4708a78e148bSantirezshift; shift 4709a78e148bSantirez# Remember, the first character of IFS is used to create $*, 4710a78e148bSantirez# except with old shells: 4711a78e148bSantirezhost_os=$* 4712a78e148bSantirezIFS=$ac_save_IFS 4713a78e148bSantirezcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4714a78e148bSantirez 4715a78e148bSantirez 4716a78e148bSantirezCPU_SPINWAIT="" 4717a78e148bSantirezcase "${host_cpu}" in 4718fceef8e0Santirez i686|x86_64) 4719*5268379eSantirez if ${je_cv_pause+:} false; then : 4720*5268379eSantirez $as_echo_n "(cached) " >&6 4721*5268379eSantirezelse 4722a78e148bSantirez 4723fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5 4724fceef8e0Santirez$as_echo_n "checking whether pause instruction is compilable... " >&6; } 4725fceef8e0Santirezif ${je_cv_pause+:} false; then : 4726ad4c0b41Santirez $as_echo_n "(cached) " >&6 4727a78e148bSantirezelse 4728a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729a78e148bSantirez/* end confdefs.h. */ 4730a78e148bSantirez 4731a78e148bSantirezint 4732a78e148bSantirezmain () 4733a78e148bSantirez{ 4734a78e148bSantirez__asm__ volatile("pause"); return 0; 4735a78e148bSantirez ; 4736a78e148bSantirez return 0; 4737a78e148bSantirez} 4738a78e148bSantirez_ACEOF 4739ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 4740fceef8e0Santirez je_cv_pause=yes 4741a78e148bSantirezelse 4742fceef8e0Santirez je_cv_pause=no 4743a78e148bSantirezfi 4744ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 4745ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 4746a78e148bSantirezfi 4747fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5 4748fceef8e0Santirez$as_echo "$je_cv_pause" >&6; } 4749a78e148bSantirez 4750*5268379eSantirezfi 4751*5268379eSantirez 4752fceef8e0Santirez if test "x${je_cv_pause}" = "xyes" ; then 4753a78e148bSantirez CPU_SPINWAIT='__asm__ volatile("pause")' 4754a78e148bSantirez fi 4755a78e148bSantirez ;; 4756fceef8e0Santirez powerpc) 4757fceef8e0Santirez cat >>confdefs.h <<_ACEOF 4758fceef8e0Santirez#define HAVE_ALTIVEC 4759a78e148bSantirez_ACEOF 4760a78e148bSantirez 4761a78e148bSantirez ;; 4762a78e148bSantirez *) 4763a78e148bSantirez ;; 4764a78e148bSantirezesac 4765a78e148bSantirezcat >>confdefs.h <<_ACEOF 4766a78e148bSantirez#define CPU_SPINWAIT $CPU_SPINWAIT 4767a78e148bSantirez_ACEOF 4768a78e148bSantirez 4769a78e148bSantirez 4770ad4c0b41SantirezLD_PRELOAD_VAR="LD_PRELOAD" 4771ad4c0b41Santirezso="so" 4772ad4c0b41Santirezimportlib="${so}" 4773ad4c0b41Santirezo="$ac_objext" 4774ad4c0b41Santireza="a" 4775ad4c0b41Santirezexe="$ac_exeext" 4776ad4c0b41Santirezlibprefix="lib" 4777ad4c0b41SantirezDSO_LDFLAGS='-shared -Wl,-soname,$(@F)' 4778ad4c0b41SantirezRPATH='-Wl,-rpath,$(1)' 4779ad4c0b41SantirezSOREV="${so}.${rev}" 4780ad4c0b41SantirezPIC_CFLAGS='-fPIC -DPIC' 4781ad4c0b41SantirezCTARGET='-o $@' 4782ad4c0b41SantirezLDTARGET='-o $@' 4783ad4c0b41SantirezEXTRA_LDFLAGS= 4784fceef8e0SantirezARFLAGS='crus' 4785fceef8e0SantirezAROUT=' $@' 4786ad4c0b41SantirezCC_MM=1 4787ad4c0b41Santirez 4788fceef8e0Santirez 4789fceef8e0Santirez 4790fceef8e0Santirez 4791fceef8e0Santirezif test -n "$ac_tool_prefix"; then 4792fceef8e0Santirez # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4793fceef8e0Santirezset dummy ${ac_tool_prefix}ar; ac_word=$2 4794fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4795fceef8e0Santirez$as_echo_n "checking for $ac_word... " >&6; } 4796fceef8e0Santirezif ${ac_cv_prog_AR+:} false; then : 4797fceef8e0Santirez $as_echo_n "(cached) " >&6 4798fceef8e0Santirezelse 4799fceef8e0Santirez if test -n "$AR"; then 4800fceef8e0Santirez ac_cv_prog_AR="$AR" # Let the user override the test. 4801fceef8e0Santirezelse 4802fceef8e0Santirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4803fceef8e0Santirezfor as_dir in $PATH 4804fceef8e0Santirezdo 4805fceef8e0Santirez IFS=$as_save_IFS 4806fceef8e0Santirez test -z "$as_dir" && as_dir=. 4807fceef8e0Santirez for ac_exec_ext in '' $ac_executable_extensions; do 4808fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4809fceef8e0Santirez ac_cv_prog_AR="${ac_tool_prefix}ar" 4810fceef8e0Santirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4811fceef8e0Santirez break 2 4812fceef8e0Santirez fi 4813fceef8e0Santirezdone 4814fceef8e0Santirez done 4815fceef8e0SantirezIFS=$as_save_IFS 4816fceef8e0Santirez 4817fceef8e0Santirezfi 4818fceef8e0Santirezfi 4819fceef8e0SantirezAR=$ac_cv_prog_AR 4820fceef8e0Santirezif test -n "$AR"; then 4821fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4822fceef8e0Santirez$as_echo "$AR" >&6; } 4823fceef8e0Santirezelse 4824fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825fceef8e0Santirez$as_echo "no" >&6; } 4826fceef8e0Santirezfi 4827fceef8e0Santirez 4828fceef8e0Santirez 4829fceef8e0Santirezfi 4830fceef8e0Santirezif test -z "$ac_cv_prog_AR"; then 4831fceef8e0Santirez ac_ct_AR=$AR 4832fceef8e0Santirez # Extract the first word of "ar", so it can be a program name with args. 4833fceef8e0Santirezset dummy ar; ac_word=$2 4834fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4835fceef8e0Santirez$as_echo_n "checking for $ac_word... " >&6; } 4836fceef8e0Santirezif ${ac_cv_prog_ac_ct_AR+:} false; then : 4837fceef8e0Santirez $as_echo_n "(cached) " >&6 4838fceef8e0Santirezelse 4839fceef8e0Santirez if test -n "$ac_ct_AR"; then 4840fceef8e0Santirez ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4841fceef8e0Santirezelse 4842fceef8e0Santirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4843fceef8e0Santirezfor as_dir in $PATH 4844fceef8e0Santirezdo 4845fceef8e0Santirez IFS=$as_save_IFS 4846fceef8e0Santirez test -z "$as_dir" && as_dir=. 4847fceef8e0Santirez for ac_exec_ext in '' $ac_executable_extensions; do 4848fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4849fceef8e0Santirez ac_cv_prog_ac_ct_AR="ar" 4850fceef8e0Santirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4851fceef8e0Santirez break 2 4852fceef8e0Santirez fi 4853fceef8e0Santirezdone 4854fceef8e0Santirez done 4855fceef8e0SantirezIFS=$as_save_IFS 4856fceef8e0Santirez 4857fceef8e0Santirezfi 4858fceef8e0Santirezfi 4859fceef8e0Santirezac_ct_AR=$ac_cv_prog_ac_ct_AR 4860fceef8e0Santirezif test -n "$ac_ct_AR"; then 4861fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4862fceef8e0Santirez$as_echo "$ac_ct_AR" >&6; } 4863fceef8e0Santirezelse 4864fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4865fceef8e0Santirez$as_echo "no" >&6; } 4866fceef8e0Santirezfi 4867fceef8e0Santirez 4868fceef8e0Santirez if test "x$ac_ct_AR" = x; then 4869fceef8e0Santirez AR=":" 4870fceef8e0Santirez else 4871fceef8e0Santirez case $cross_compiling:$ac_tool_warned in 4872fceef8e0Santirezyes:) 4873fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4874fceef8e0Santirez$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4875fceef8e0Santirezac_tool_warned=yes ;; 4876fceef8e0Santirezesac 4877fceef8e0Santirez AR=$ac_ct_AR 4878fceef8e0Santirez fi 4879fceef8e0Santirezelse 4880fceef8e0Santirez AR="$ac_cv_prog_AR" 4881fceef8e0Santirezfi 4882fceef8e0Santirez 4883fceef8e0Santirez 4884ad4c0b41Santirezdefault_munmap="1" 4885*5268379eSantirezmaps_coalesce="1" 4886a78e148bSantirezcase "${host}" in 4887*5268379eSantirez *-*-darwin* | *-*-ios*) 4888ad4c0b41Santirez CFLAGS="$CFLAGS" 4889a78e148bSantirez abi="macho" 4890ad4c0b41Santirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4891a78e148bSantirez 4892a78e148bSantirez RPATH="" 4893ad4c0b41Santirez LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" 4894ad4c0b41Santirez so="dylib" 4895ad4c0b41Santirez importlib="${so}" 4896ad4c0b41Santirez force_tls="0" 4897*5268379eSantirez DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)' 4898ad4c0b41Santirez SOREV="${rev}.${so}" 4899fceef8e0Santirez sbrk_deprecated="1" 4900a78e148bSantirez ;; 4901a78e148bSantirez *-*-freebsd*) 4902a78e148bSantirez CFLAGS="$CFLAGS" 4903a78e148bSantirez abi="elf" 4904ad4c0b41Santirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4905a78e148bSantirez 4906ad4c0b41Santirez force_lazy_lock="1" 4907a78e148bSantirez ;; 4908*5268379eSantirez *-*-dragonfly*) 4909*5268379eSantirez CFLAGS="$CFLAGS" 4910*5268379eSantirez abi="elf" 4911*5268379eSantirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4912*5268379eSantirez 4913*5268379eSantirez ;; 4914*5268379eSantirez *-*-openbsd*) 4915*5268379eSantirez CFLAGS="$CFLAGS" 4916*5268379eSantirez abi="elf" 4917*5268379eSantirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4918*5268379eSantirez 4919*5268379eSantirez force_tls="0" 4920*5268379eSantirez ;; 4921*5268379eSantirez *-*-bitrig*) 4922*5268379eSantirez CFLAGS="$CFLAGS" 4923*5268379eSantirez abi="elf" 4924*5268379eSantirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4925*5268379eSantirez 4926*5268379eSantirez ;; 4927a78e148bSantirez *-*-linux*) 4928a78e148bSantirez CFLAGS="$CFLAGS" 4929a78e148bSantirez CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 4930a78e148bSantirez abi="elf" 4931fceef8e0Santirez $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h 4932fceef8e0Santirez 4933ad4c0b41Santirez $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h 4934a78e148bSantirez 4935ad4c0b41Santirez $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 4936ad4c0b41Santirez 4937*5268379eSantirez $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 4938*5268379eSantirez 4939ad4c0b41Santirez default_munmap="0" 4940a78e148bSantirez ;; 4941a78e148bSantirez *-*-netbsd*) 4942a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5 4943a78e148bSantirez$as_echo_n "checking ABI... " >&6; } 4944a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945a78e148bSantirez/* end confdefs.h. */ 4946a78e148bSantirez#ifdef __ELF__ 4947a78e148bSantirez/* ELF */ 4948a78e148bSantirez#else 4949a78e148bSantirez#error aout 4950a78e148bSantirez#endif 4951a78e148bSantirez 4952a78e148bSantirezint 4953a78e148bSantirezmain () 4954a78e148bSantirez{ 4955a78e148bSantirez 4956a78e148bSantirez ; 4957a78e148bSantirez return 0; 4958a78e148bSantirez} 4959a78e148bSantirez_ACEOF 4960a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 4961a78e148bSantirez CFLAGS="$CFLAGS"; abi="elf" 4962a78e148bSantirezelse 4963a78e148bSantirez abi="aout" 4964a78e148bSantirezfi 4965a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4966a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5 4967a78e148bSantirez$as_echo "$abi" >&6; } 4968ad4c0b41Santirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4969a78e148bSantirez 4970a78e148bSantirez ;; 4971a78e148bSantirez *-*-solaris2*) 4972a78e148bSantirez CFLAGS="$CFLAGS" 4973a78e148bSantirez abi="elf" 4974fceef8e0Santirez $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4975fceef8e0Santirez 4976ad4c0b41Santirez RPATH='-Wl,-R,$(1)' 4977a78e148bSantirez CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 4978a78e148bSantirez LIBS="$LIBS -lposix4 -lsocket -lnsl" 4979a78e148bSantirez ;; 4980ad4c0b41Santirez *-ibm-aix*) 4981ad4c0b41Santirez if "$LG_SIZEOF_PTR" = "8"; then 4982ad4c0b41Santirez LD_PRELOAD_VAR="LDR_PRELOAD64" 4983ad4c0b41Santirez else 4984ad4c0b41Santirez LD_PRELOAD_VAR="LDR_PRELOAD" 4985ad4c0b41Santirez fi 4986ad4c0b41Santirez abi="xcoff" 4987ad4c0b41Santirez ;; 4988*5268379eSantirez *-*-mingw* | *-*-cygwin*) 4989ad4c0b41Santirez abi="pecoff" 4990ad4c0b41Santirez force_tls="0" 4991*5268379eSantirez force_lazy_lock="1" 4992*5268379eSantirez maps_coalesce="0" 4993ad4c0b41Santirez RPATH="" 4994ad4c0b41Santirez so="dll" 4995ad4c0b41Santirez if test "x$je_cv_msvc" = "xyes" ; then 4996ad4c0b41Santirez importlib="lib" 4997ad4c0b41Santirez DSO_LDFLAGS="-LD" 4998ad4c0b41Santirez EXTRA_LDFLAGS="-link -DEBUG" 4999ad4c0b41Santirez CTARGET='-Fo$@' 5000ad4c0b41Santirez LDTARGET='-Fe$@' 5001fceef8e0Santirez AR='lib' 5002fceef8e0Santirez ARFLAGS='-nologo -out:' 5003fceef8e0Santirez AROUT='$@' 5004ad4c0b41Santirez CC_MM= 5005ad4c0b41Santirez else 5006ad4c0b41Santirez importlib="${so}" 5007ad4c0b41Santirez DSO_LDFLAGS="-shared" 5008ad4c0b41Santirez fi 5009ad4c0b41Santirez a="lib" 5010ad4c0b41Santirez libprefix="" 5011ad4c0b41Santirez SOREV="${so}" 5012ad4c0b41Santirez PIC_CFLAGS="" 5013ad4c0b41Santirez ;; 5014a78e148bSantirez *) 5015a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5 5016a78e148bSantirez$as_echo "Unsupported operating system: ${host}" >&6; } 5017a78e148bSantirez abi="elf" 5018a78e148bSantirez ;; 5019a78e148bSantirezesac 5020*5268379eSantirez 5021*5268379eSantirezJEMALLOC_USABLE_SIZE_CONST=const 5022*5268379eSantirezfor ac_header in malloc.h 5023*5268379eSantirezdo : 5024*5268379eSantirez ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 5025*5268379eSantirezif test "x$ac_cv_header_malloc_h" = xyes; then : 5026*5268379eSantirez cat >>confdefs.h <<_ACEOF 5027*5268379eSantirez#define HAVE_MALLOC_H 1 5028*5268379eSantirez_ACEOF 5029*5268379eSantirez 5030*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5 5031*5268379eSantirez$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; } 5032*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033*5268379eSantirez/* end confdefs.h. */ 5034*5268379eSantirez#include <malloc.h> 5035*5268379eSantirez #include <stddef.h> 5036*5268379eSantirez size_t malloc_usable_size(const void *ptr); 5037*5268379eSantirez 5038*5268379eSantirezint 5039*5268379eSantirezmain () 5040*5268379eSantirez{ 5041*5268379eSantirez 5042*5268379eSantirez ; 5043*5268379eSantirez return 0; 5044*5268379eSantirez} 5045*5268379eSantirez_ACEOF 5046*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 5047*5268379eSantirez 5048*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5049*5268379eSantirez$as_echo "yes" >&6; } 5050*5268379eSantirez 5051*5268379eSantirezelse 5052*5268379eSantirez 5053*5268379eSantirez JEMALLOC_USABLE_SIZE_CONST= 5054*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5055*5268379eSantirez$as_echo "no" >&6; } 5056*5268379eSantirez 5057*5268379eSantirezfi 5058*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059*5268379eSantirez 5060*5268379eSantirezfi 5061*5268379eSantirez 5062*5268379eSantirezdone 5063*5268379eSantirez 50647383c3b1Santirezcat >>confdefs.h <<_ACEOF 50657383c3b1Santirez#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST 50667383c3b1Santirez_ACEOF 50677383c3b1Santirez 5068a78e148bSantirez 5069a78e148bSantirez 5070a78e148bSantirez 5071a78e148bSantirez 5072ad4c0b41Santirez 5073ad4c0b41Santirez 5074ad4c0b41Santirez 5075ad4c0b41Santirez 5076ad4c0b41Santirez 5077ad4c0b41Santirez 5078ad4c0b41Santirez 5079ad4c0b41Santirez 5080ad4c0b41Santirez 5081ad4c0b41Santirez 5082ad4c0b41Santirez 5083ad4c0b41Santirez 5084ad4c0b41Santirez 5085ad4c0b41Santirez 5086fceef8e0Santirez 5087ad4c0b41Santirez 5088ad4c0b41Santirez 5089a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5 5090a78e148bSantirez$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; } 5091ad4c0b41Santirezif ${je_cv_attribute+:} false; then : 5092ad4c0b41Santirez $as_echo_n "(cached) " >&6 5093a78e148bSantirezelse 5094a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095a78e148bSantirez/* end confdefs.h. */ 5096a78e148bSantirezstatic __attribute__((unused)) void foo(void){} 5097a78e148bSantirezint 5098a78e148bSantirezmain () 5099a78e148bSantirez{ 5100a78e148bSantirez 5101a78e148bSantirez ; 5102a78e148bSantirez return 0; 5103a78e148bSantirez} 5104a78e148bSantirez_ACEOF 5105ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 5106ad4c0b41Santirez je_cv_attribute=yes 5107a78e148bSantirezelse 5108ad4c0b41Santirez je_cv_attribute=no 5109a78e148bSantirezfi 5110ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 5111ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 5112a78e148bSantirezfi 5113ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5 5114ad4c0b41Santirez$as_echo "$je_cv_attribute" >&6; } 5115a78e148bSantirez 5116ad4c0b41Santirezif test "x${je_cv_attribute}" = "xyes" ; then 5117a78e148bSantirez $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h 5118a78e148bSantirez 5119a78e148bSantirez if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then 5120a78e148bSantirez 5121a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 5122a78e148bSantirez$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 5123a78e148bSantirezTCFLAGS="${CFLAGS}" 5124a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 5125a78e148bSantirez CFLAGS="-fvisibility=hidden" 5126a78e148bSantirezelse 5127a78e148bSantirez CFLAGS="${CFLAGS} -fvisibility=hidden" 5128a78e148bSantirezfi 5129a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5130a78e148bSantirez/* end confdefs.h. */ 5131a78e148bSantirez 5132a78e148bSantirez 5133a78e148bSantirezint 5134a78e148bSantirezmain () 5135a78e148bSantirez{ 5136a78e148bSantirez 5137a78e148bSantirez return 0; 5138a78e148bSantirez 5139a78e148bSantirez ; 5140a78e148bSantirez return 0; 5141a78e148bSantirez} 5142a78e148bSantirez_ACEOF 5143ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 5144fceef8e0Santirez je_cv_cflags_appended=-fvisibility=hidden 5145a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5146a78e148bSantirez$as_echo "yes" >&6; } 5147a78e148bSantirezelse 5148fceef8e0Santirez je_cv_cflags_appended= 5149a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5150a78e148bSantirez$as_echo "no" >&6; } 5151a78e148bSantirez CFLAGS="${TCFLAGS}" 5152a78e148bSantirez 5153a78e148bSantirezfi 5154ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5155a78e148bSantirez 5156a78e148bSantirez fi 5157a78e148bSantirezfi 5158ad4c0b41SantirezSAVED_CFLAGS="${CFLAGS}" 5159a78e148bSantirez 5160ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5161ad4c0b41Santirez$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5162ad4c0b41SantirezTCFLAGS="${CFLAGS}" 5163ad4c0b41Santirezif test "x${CFLAGS}" = "x" ; then 5164ad4c0b41Santirez CFLAGS="-Werror" 5165a78e148bSantirezelse 5166ad4c0b41Santirez CFLAGS="${CFLAGS} -Werror" 5167ad4c0b41Santirezfi 5168a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169a78e148bSantirez/* end confdefs.h. */ 5170a78e148bSantirez 5171a78e148bSantirez 5172a78e148bSantirezint 5173a78e148bSantirezmain () 5174a78e148bSantirez{ 5175a78e148bSantirez 5176ad4c0b41Santirez return 0; 5177a78e148bSantirez 5178a78e148bSantirez ; 5179a78e148bSantirez return 0; 5180a78e148bSantirez} 5181a78e148bSantirez_ACEOF 5182ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 5183fceef8e0Santirez je_cv_cflags_appended=-Werror 5184a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5185a78e148bSantirez$as_echo "yes" >&6; } 5186a78e148bSantirezelse 5187fceef8e0Santirez je_cv_cflags_appended= 5188a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5189a78e148bSantirez$as_echo "no" >&6; } 5190ad4c0b41Santirez CFLAGS="${TCFLAGS}" 5191a78e148bSantirez 5192a78e148bSantirezfi 5193ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5194ad4c0b41Santirez 5195ad4c0b41Santirez 5196ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5 5197ad4c0b41Santirez$as_echo_n "checking whether tls_model attribute is compilable... " >&6; } 5198ad4c0b41Santirezif ${je_cv_tls_model+:} false; then : 5199ad4c0b41Santirez $as_echo_n "(cached) " >&6 5200ad4c0b41Santirezelse 5201ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202ad4c0b41Santirez/* end confdefs.h. */ 5203ad4c0b41Santirez 5204ad4c0b41Santirezint 5205ad4c0b41Santirezmain () 5206ad4c0b41Santirez{ 5207ad4c0b41Santirezstatic __thread int 5208*5268379eSantirez __attribute__((tls_model("initial-exec"), unused)) foo; 5209ad4c0b41Santirez foo = 0; 5210ad4c0b41Santirez ; 5211ad4c0b41Santirez return 0; 5212ad4c0b41Santirez} 5213ad4c0b41Santirez_ACEOF 5214ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 5215ad4c0b41Santirez je_cv_tls_model=yes 5216ad4c0b41Santirezelse 5217ad4c0b41Santirez je_cv_tls_model=no 5218a78e148bSantirezfi 5219ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 5220ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 5221ad4c0b41Santirezfi 5222ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5 5223ad4c0b41Santirez$as_echo "$je_cv_tls_model" >&6; } 5224a78e148bSantirez 5225ad4c0b41SantirezCFLAGS="${SAVED_CFLAGS}" 5226ad4c0b41Santirezif test "x${je_cv_tls_model}" = "xyes" ; then 5227ad4c0b41Santirez $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h 5228a78e148bSantirez 5229ad4c0b41Santirezelse 5230ad4c0b41Santirez $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h 5231a78e148bSantirez 5232a78e148bSantirezfi 5233*5268379eSantirezSAVED_CFLAGS="${CFLAGS}" 5234*5268379eSantirez 5235*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5236*5268379eSantirez$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5237*5268379eSantirezTCFLAGS="${CFLAGS}" 5238*5268379eSantirezif test "x${CFLAGS}" = "x" ; then 5239*5268379eSantirez CFLAGS="-Werror" 5240*5268379eSantirezelse 5241*5268379eSantirez CFLAGS="${CFLAGS} -Werror" 5242*5268379eSantirezfi 5243*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244*5268379eSantirez/* end confdefs.h. */ 5245*5268379eSantirez 5246*5268379eSantirez 5247*5268379eSantirezint 5248*5268379eSantirezmain () 5249*5268379eSantirez{ 5250*5268379eSantirez 5251*5268379eSantirez return 0; 5252*5268379eSantirez 5253*5268379eSantirez ; 5254*5268379eSantirez return 0; 5255*5268379eSantirez} 5256*5268379eSantirez_ACEOF 5257*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 5258*5268379eSantirez je_cv_cflags_appended=-Werror 5259*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5260*5268379eSantirez$as_echo "yes" >&6; } 5261*5268379eSantirezelse 5262*5268379eSantirez je_cv_cflags_appended= 5263*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5264*5268379eSantirez$as_echo "no" >&6; } 5265*5268379eSantirez CFLAGS="${TCFLAGS}" 5266*5268379eSantirez 5267*5268379eSantirezfi 5268*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5269*5268379eSantirez 5270*5268379eSantirez 5271*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5 5272*5268379eSantirez$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; } 5273*5268379eSantirezif ${je_cv_alloc_size+:} false; then : 5274*5268379eSantirez $as_echo_n "(cached) " >&6 5275*5268379eSantirezelse 5276*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277*5268379eSantirez/* end confdefs.h. */ 5278*5268379eSantirez#include <stdlib.h> 5279*5268379eSantirezint 5280*5268379eSantirezmain () 5281*5268379eSantirez{ 5282*5268379eSantirezvoid *foo(size_t size) __attribute__((alloc_size(1))); 5283*5268379eSantirez ; 5284*5268379eSantirez return 0; 5285*5268379eSantirez} 5286*5268379eSantirez_ACEOF 5287*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 5288*5268379eSantirez je_cv_alloc_size=yes 5289*5268379eSantirezelse 5290*5268379eSantirez je_cv_alloc_size=no 5291*5268379eSantirezfi 5292*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 5293*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 5294*5268379eSantirezfi 5295*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5 5296*5268379eSantirez$as_echo "$je_cv_alloc_size" >&6; } 5297*5268379eSantirez 5298*5268379eSantirezCFLAGS="${SAVED_CFLAGS}" 5299*5268379eSantirezif test "x${je_cv_alloc_size}" = "xyes" ; then 5300*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h 5301*5268379eSantirez 5302*5268379eSantirezfi 5303*5268379eSantirezSAVED_CFLAGS="${CFLAGS}" 5304*5268379eSantirez 5305*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5306*5268379eSantirez$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5307*5268379eSantirezTCFLAGS="${CFLAGS}" 5308*5268379eSantirezif test "x${CFLAGS}" = "x" ; then 5309*5268379eSantirez CFLAGS="-Werror" 5310*5268379eSantirezelse 5311*5268379eSantirez CFLAGS="${CFLAGS} -Werror" 5312*5268379eSantirezfi 5313*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314*5268379eSantirez/* end confdefs.h. */ 5315*5268379eSantirez 5316*5268379eSantirez 5317*5268379eSantirezint 5318*5268379eSantirezmain () 5319*5268379eSantirez{ 5320*5268379eSantirez 5321*5268379eSantirez return 0; 5322*5268379eSantirez 5323*5268379eSantirez ; 5324*5268379eSantirez return 0; 5325*5268379eSantirez} 5326*5268379eSantirez_ACEOF 5327*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 5328*5268379eSantirez je_cv_cflags_appended=-Werror 5329*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5330*5268379eSantirez$as_echo "yes" >&6; } 5331*5268379eSantirezelse 5332*5268379eSantirez je_cv_cflags_appended= 5333*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334*5268379eSantirez$as_echo "no" >&6; } 5335*5268379eSantirez CFLAGS="${TCFLAGS}" 5336*5268379eSantirez 5337*5268379eSantirezfi 5338*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339*5268379eSantirez 5340*5268379eSantirez 5341*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5 5342*5268379eSantirez$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; } 5343*5268379eSantirezif ${je_cv_format_gnu_printf+:} false; then : 5344*5268379eSantirez $as_echo_n "(cached) " >&6 5345*5268379eSantirezelse 5346*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347*5268379eSantirez/* end confdefs.h. */ 5348*5268379eSantirez#include <stdlib.h> 5349*5268379eSantirezint 5350*5268379eSantirezmain () 5351*5268379eSantirez{ 5352*5268379eSantirezvoid *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2))); 5353*5268379eSantirez ; 5354*5268379eSantirez return 0; 5355*5268379eSantirez} 5356*5268379eSantirez_ACEOF 5357*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 5358*5268379eSantirez je_cv_format_gnu_printf=yes 5359*5268379eSantirezelse 5360*5268379eSantirez je_cv_format_gnu_printf=no 5361*5268379eSantirezfi 5362*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 5363*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 5364*5268379eSantirezfi 5365*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5 5366*5268379eSantirez$as_echo "$je_cv_format_gnu_printf" >&6; } 5367*5268379eSantirez 5368*5268379eSantirezCFLAGS="${SAVED_CFLAGS}" 5369*5268379eSantirezif test "x${je_cv_format_gnu_printf}" = "xyes" ; then 5370*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h 5371*5268379eSantirez 5372*5268379eSantirezfi 5373*5268379eSantirezSAVED_CFLAGS="${CFLAGS}" 5374*5268379eSantirez 5375*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5376*5268379eSantirez$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5377*5268379eSantirezTCFLAGS="${CFLAGS}" 5378*5268379eSantirezif test "x${CFLAGS}" = "x" ; then 5379*5268379eSantirez CFLAGS="-Werror" 5380*5268379eSantirezelse 5381*5268379eSantirez CFLAGS="${CFLAGS} -Werror" 5382*5268379eSantirezfi 5383*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384*5268379eSantirez/* end confdefs.h. */ 5385*5268379eSantirez 5386*5268379eSantirez 5387*5268379eSantirezint 5388*5268379eSantirezmain () 5389*5268379eSantirez{ 5390*5268379eSantirez 5391*5268379eSantirez return 0; 5392*5268379eSantirez 5393*5268379eSantirez ; 5394*5268379eSantirez return 0; 5395*5268379eSantirez} 5396*5268379eSantirez_ACEOF 5397*5268379eSantirezif ac_fn_c_try_compile "$LINENO"; then : 5398*5268379eSantirez je_cv_cflags_appended=-Werror 5399*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5400*5268379eSantirez$as_echo "yes" >&6; } 5401*5268379eSantirezelse 5402*5268379eSantirez je_cv_cflags_appended= 5403*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404*5268379eSantirez$as_echo "no" >&6; } 5405*5268379eSantirez CFLAGS="${TCFLAGS}" 5406*5268379eSantirez 5407*5268379eSantirezfi 5408*5268379eSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409*5268379eSantirez 5410*5268379eSantirez 5411*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5 5412*5268379eSantirez$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; } 5413*5268379eSantirezif ${je_cv_format_printf+:} false; then : 5414*5268379eSantirez $as_echo_n "(cached) " >&6 5415*5268379eSantirezelse 5416*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417*5268379eSantirez/* end confdefs.h. */ 5418*5268379eSantirez#include <stdlib.h> 5419*5268379eSantirezint 5420*5268379eSantirezmain () 5421*5268379eSantirez{ 5422*5268379eSantirezvoid *foo(const char *format, ...) __attribute__((format(printf, 1, 2))); 5423*5268379eSantirez ; 5424*5268379eSantirez return 0; 5425*5268379eSantirez} 5426*5268379eSantirez_ACEOF 5427*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 5428*5268379eSantirez je_cv_format_printf=yes 5429*5268379eSantirezelse 5430*5268379eSantirez je_cv_format_printf=no 5431*5268379eSantirezfi 5432*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 5433*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 5434*5268379eSantirezfi 5435*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5 5436*5268379eSantirez$as_echo "$je_cv_format_printf" >&6; } 5437*5268379eSantirez 5438*5268379eSantirezCFLAGS="${SAVED_CFLAGS}" 5439*5268379eSantirezif test "x${je_cv_format_printf}" = "xyes" ; then 5440*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h 5441*5268379eSantirez 5442*5268379eSantirezfi 5443a78e148bSantirez 5444a78e148bSantirez 5445a78e148bSantirez# Check whether --with-rpath was given. 5446a78e148bSantirezif test "${with_rpath+set}" = set; then : 5447a78e148bSantirez withval=$with_rpath; if test "x$with_rpath" = "xno" ; then 5448a78e148bSantirez RPATH_EXTRA= 5449a78e148bSantirezelse 5450a78e148bSantirez RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" 5451a78e148bSantirezfi 5452a78e148bSantirezelse 5453a78e148bSantirez RPATH_EXTRA= 5454a78e148bSantirez 5455a78e148bSantirezfi 5456a78e148bSantirez 5457a78e148bSantirez 5458a78e148bSantirez 5459a78e148bSantirez# Check whether --enable-autogen was given. 5460a78e148bSantirezif test "${enable_autogen+set}" = set; then : 5461a78e148bSantirez enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then 5462a78e148bSantirez enable_autogen="0" 5463a78e148bSantirezelse 5464a78e148bSantirez enable_autogen="1" 5465a78e148bSantirezfi 5466a78e148bSantirez 5467a78e148bSantirezelse 5468a78e148bSantirez enable_autogen="0" 5469a78e148bSantirez 5470a78e148bSantirezfi 5471a78e148bSantirez 5472a78e148bSantirez 5473a78e148bSantirez 5474a78e148bSantirez# Find a good install program. We prefer a C program (faster), 5475a78e148bSantirez# so one script is as good as another. But avoid the broken or 5476a78e148bSantirez# incompatible versions: 5477a78e148bSantirez# SysV /etc/install, /usr/sbin/install 5478a78e148bSantirez# SunOS /usr/etc/install 5479a78e148bSantirez# IRIX /sbin/install 5480a78e148bSantirez# AIX /bin/install 5481a78e148bSantirez# AmigaOS /C/install, which installs bootblocks on floppy discs 5482a78e148bSantirez# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5483a78e148bSantirez# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5484a78e148bSantirez# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5485a78e148bSantirez# OS/2's system install, which has a completely different semantic 5486a78e148bSantirez# ./install, which can be erroneously created by make from ./install.sh. 5487a78e148bSantirez# Reject install programs that cannot install multiple files. 5488a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5489a78e148bSantirez$as_echo_n "checking for a BSD-compatible install... " >&6; } 5490a78e148bSantirezif test -z "$INSTALL"; then 5491ad4c0b41Santirezif ${ac_cv_path_install+:} false; then : 5492a78e148bSantirez $as_echo_n "(cached) " >&6 5493a78e148bSantirezelse 5494a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495a78e148bSantirezfor as_dir in $PATH 5496a78e148bSantirezdo 5497a78e148bSantirez IFS=$as_save_IFS 5498a78e148bSantirez test -z "$as_dir" && as_dir=. 5499a78e148bSantirez # Account for people who put trailing slashes in PATH elements. 5500a78e148bSantirezcase $as_dir/ in #(( 5501a78e148bSantirez ./ | .// | /[cC]/* | \ 5502a78e148bSantirez /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5503a78e148bSantirez ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5504a78e148bSantirez /usr/ucb/* ) ;; 5505a78e148bSantirez *) 5506a78e148bSantirez # OSF1 and SCO ODT 3.0 have their own names for install. 5507a78e148bSantirez # Don't use installbsd from OSF since it installs stuff as root 5508a78e148bSantirez # by default. 5509a78e148bSantirez for ac_prog in ginstall scoinst install; do 5510a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 5511fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5512a78e148bSantirez if test $ac_prog = install && 5513a78e148bSantirez grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5514a78e148bSantirez # AIX install. It has an incompatible calling convention. 5515a78e148bSantirez : 5516a78e148bSantirez elif test $ac_prog = install && 5517a78e148bSantirez grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5518a78e148bSantirez # program-specific install script used by HP pwplus--don't use. 5519a78e148bSantirez : 5520a78e148bSantirez else 5521a78e148bSantirez rm -rf conftest.one conftest.two conftest.dir 5522a78e148bSantirez echo one > conftest.one 5523a78e148bSantirez echo two > conftest.two 5524a78e148bSantirez mkdir conftest.dir 5525a78e148bSantirez if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5526a78e148bSantirez test -s conftest.one && test -s conftest.two && 5527a78e148bSantirez test -s conftest.dir/conftest.one && 5528a78e148bSantirez test -s conftest.dir/conftest.two 5529a78e148bSantirez then 5530a78e148bSantirez ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5531a78e148bSantirez break 3 5532a78e148bSantirez fi 5533a78e148bSantirez fi 5534a78e148bSantirez fi 5535a78e148bSantirez done 5536a78e148bSantirez done 5537a78e148bSantirez ;; 5538a78e148bSantirezesac 5539a78e148bSantirez 5540a78e148bSantirez done 5541a78e148bSantirezIFS=$as_save_IFS 5542a78e148bSantirez 5543a78e148bSantirezrm -rf conftest.one conftest.two conftest.dir 5544a78e148bSantirez 5545a78e148bSantirezfi 5546a78e148bSantirez if test "${ac_cv_path_install+set}" = set; then 5547a78e148bSantirez INSTALL=$ac_cv_path_install 5548a78e148bSantirez else 5549a78e148bSantirez # As a last resort, use the slow shell script. Don't cache a 5550a78e148bSantirez # value for INSTALL within a source directory, because that will 5551a78e148bSantirez # break other packages using the cache if that directory is 5552a78e148bSantirez # removed, or if the value is a relative name. 5553a78e148bSantirez INSTALL=$ac_install_sh 5554a78e148bSantirez fi 5555a78e148bSantirezfi 5556a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5557a78e148bSantirez$as_echo "$INSTALL" >&6; } 5558a78e148bSantirez 5559a78e148bSantirez# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5560a78e148bSantirez# It thinks the first close brace ends the variable substitution. 5561a78e148bSantireztest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5562a78e148bSantirez 5563a78e148bSantireztest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5564a78e148bSantirez 5565a78e148bSantireztest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5566a78e148bSantirez 5567a78e148bSantirezif test -n "$ac_tool_prefix"; then 5568a78e148bSantirez # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5569a78e148bSantirezset dummy ${ac_tool_prefix}ranlib; ac_word=$2 5570a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5571a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 5572ad4c0b41Santirezif ${ac_cv_prog_RANLIB+:} false; then : 5573a78e148bSantirez $as_echo_n "(cached) " >&6 5574a78e148bSantirezelse 5575a78e148bSantirez if test -n "$RANLIB"; then 5576a78e148bSantirez ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5577a78e148bSantirezelse 5578a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579a78e148bSantirezfor as_dir in $PATH 5580a78e148bSantirezdo 5581a78e148bSantirez IFS=$as_save_IFS 5582a78e148bSantirez test -z "$as_dir" && as_dir=. 5583a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 5584fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5585a78e148bSantirez ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5586a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5587a78e148bSantirez break 2 5588a78e148bSantirez fi 5589a78e148bSantirezdone 5590a78e148bSantirez done 5591a78e148bSantirezIFS=$as_save_IFS 5592a78e148bSantirez 5593a78e148bSantirezfi 5594a78e148bSantirezfi 5595a78e148bSantirezRANLIB=$ac_cv_prog_RANLIB 5596a78e148bSantirezif test -n "$RANLIB"; then 5597a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5598a78e148bSantirez$as_echo "$RANLIB" >&6; } 5599a78e148bSantirezelse 5600a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5601a78e148bSantirez$as_echo "no" >&6; } 5602a78e148bSantirezfi 5603a78e148bSantirez 5604a78e148bSantirez 5605a78e148bSantirezfi 5606a78e148bSantirezif test -z "$ac_cv_prog_RANLIB"; then 5607a78e148bSantirez ac_ct_RANLIB=$RANLIB 5608a78e148bSantirez # Extract the first word of "ranlib", so it can be a program name with args. 5609a78e148bSantirezset dummy ranlib; ac_word=$2 5610a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5611a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 5612ad4c0b41Santirezif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5613a78e148bSantirez $as_echo_n "(cached) " >&6 5614a78e148bSantirezelse 5615a78e148bSantirez if test -n "$ac_ct_RANLIB"; then 5616a78e148bSantirez ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5617a78e148bSantirezelse 5618a78e148bSantirezas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5619a78e148bSantirezfor as_dir in $PATH 5620a78e148bSantirezdo 5621a78e148bSantirez IFS=$as_save_IFS 5622a78e148bSantirez test -z "$as_dir" && as_dir=. 5623a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 5624fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5625a78e148bSantirez ac_cv_prog_ac_ct_RANLIB="ranlib" 5626a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5627a78e148bSantirez break 2 5628a78e148bSantirez fi 5629a78e148bSantirezdone 5630a78e148bSantirez done 5631a78e148bSantirezIFS=$as_save_IFS 5632a78e148bSantirez 5633a78e148bSantirezfi 5634a78e148bSantirezfi 5635a78e148bSantirezac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5636a78e148bSantirezif test -n "$ac_ct_RANLIB"; then 5637a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5638a78e148bSantirez$as_echo "$ac_ct_RANLIB" >&6; } 5639a78e148bSantirezelse 5640a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641a78e148bSantirez$as_echo "no" >&6; } 5642a78e148bSantirezfi 5643a78e148bSantirez 5644a78e148bSantirez if test "x$ac_ct_RANLIB" = x; then 5645a78e148bSantirez RANLIB=":" 5646a78e148bSantirez else 5647a78e148bSantirez case $cross_compiling:$ac_tool_warned in 5648a78e148bSantirezyes:) 5649a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5650a78e148bSantirez$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5651a78e148bSantirezac_tool_warned=yes ;; 5652a78e148bSantirezesac 5653a78e148bSantirez RANLIB=$ac_ct_RANLIB 5654a78e148bSantirez fi 5655a78e148bSantirezelse 5656a78e148bSantirez RANLIB="$ac_cv_prog_RANLIB" 5657a78e148bSantirezfi 5658a78e148bSantirez 5659a78e148bSantirez# Extract the first word of "ld", so it can be a program name with args. 5660a78e148bSantirezset dummy ld; ac_word=$2 5661a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 5663ad4c0b41Santirezif ${ac_cv_path_LD+:} false; then : 5664a78e148bSantirez $as_echo_n "(cached) " >&6 5665a78e148bSantirezelse 5666a78e148bSantirez case $LD in 5667a78e148bSantirez [\\/]* | ?:[\\/]*) 5668a78e148bSantirez ac_cv_path_LD="$LD" # Let the user override the test with a path. 5669a78e148bSantirez ;; 5670a78e148bSantirez *) 5671a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672a78e148bSantirezfor as_dir in $PATH 5673a78e148bSantirezdo 5674a78e148bSantirez IFS=$as_save_IFS 5675a78e148bSantirez test -z "$as_dir" && as_dir=. 5676a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 5677fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678a78e148bSantirez ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 5679a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680a78e148bSantirez break 2 5681a78e148bSantirez fi 5682a78e148bSantirezdone 5683a78e148bSantirez done 5684a78e148bSantirezIFS=$as_save_IFS 5685a78e148bSantirez 5686fceef8e0Santirez test -z "$ac_cv_path_LD" && ac_cv_path_LD="false" 5687a78e148bSantirez ;; 5688a78e148bSantirezesac 5689a78e148bSantirezfi 5690a78e148bSantirezLD=$ac_cv_path_LD 5691a78e148bSantirezif test -n "$LD"; then 5692a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5693a78e148bSantirez$as_echo "$LD" >&6; } 5694a78e148bSantirezelse 5695a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5696a78e148bSantirez$as_echo "no" >&6; } 5697a78e148bSantirezfi 5698a78e148bSantirez 5699a78e148bSantirez 5700a78e148bSantirez# Extract the first word of "autoconf", so it can be a program name with args. 5701a78e148bSantirezset dummy autoconf; ac_word=$2 5702a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5703a78e148bSantirez$as_echo_n "checking for $ac_word... " >&6; } 5704ad4c0b41Santirezif ${ac_cv_path_AUTOCONF+:} false; then : 5705a78e148bSantirez $as_echo_n "(cached) " >&6 5706a78e148bSantirezelse 5707a78e148bSantirez case $AUTOCONF in 5708a78e148bSantirez [\\/]* | ?:[\\/]*) 5709a78e148bSantirez ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. 5710a78e148bSantirez ;; 5711a78e148bSantirez *) 5712a78e148bSantirez as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713a78e148bSantirezfor as_dir in $PATH 5714a78e148bSantirezdo 5715a78e148bSantirez IFS=$as_save_IFS 5716a78e148bSantirez test -z "$as_dir" && as_dir=. 5717a78e148bSantirez for ac_exec_ext in '' $ac_executable_extensions; do 5718fceef8e0Santirez if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5719a78e148bSantirez ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" 5720a78e148bSantirez $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721a78e148bSantirez break 2 5722a78e148bSantirez fi 5723a78e148bSantirezdone 5724a78e148bSantirez done 5725a78e148bSantirezIFS=$as_save_IFS 5726a78e148bSantirez 5727fceef8e0Santirez test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false" 5728a78e148bSantirez ;; 5729a78e148bSantirezesac 5730a78e148bSantirezfi 5731a78e148bSantirezAUTOCONF=$ac_cv_path_AUTOCONF 5732a78e148bSantirezif test -n "$AUTOCONF"; then 5733a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 5734a78e148bSantirez$as_echo "$AUTOCONF" >&6; } 5735a78e148bSantirezelse 5736a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737a78e148bSantirez$as_echo "no" >&6; } 5738a78e148bSantirezfi 5739a78e148bSantirez 5740a78e148bSantirez 5741a78e148bSantirez 5742*5268379eSantirezpublic_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free mallocx rallocx xallocx sallocx dallocx sdallocx nallocx mallctl mallctlnametomib mallctlbymib malloc_stats_print malloc_usable_size" 5743ad4c0b41Santirez 5744ad4c0b41Santirezac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" 5745ad4c0b41Santirezif test "x$ac_cv_func_memalign" = xyes; then : 5746ad4c0b41Santirez $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h 5747ad4c0b41Santirez 5748ad4c0b41Santirez public_syms="${public_syms} memalign" 5749ad4c0b41Santirezfi 5750ad4c0b41Santirez 5751ad4c0b41Santirezac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" 5752ad4c0b41Santirezif test "x$ac_cv_func_valloc" = xyes; then : 5753ad4c0b41Santirez $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h 5754ad4c0b41Santirez 5755ad4c0b41Santirez public_syms="${public_syms} valloc" 5756ad4c0b41Santirezfi 5757ad4c0b41Santirez 5758ad4c0b41Santirez 5759fceef8e0SantirezGCOV_FLAGS= 5760fceef8e0Santirez# Check whether --enable-code-coverage was given. 5761fceef8e0Santirezif test "${enable_code_coverage+set}" = set; then : 5762fceef8e0Santirez enableval=$enable_code_coverage; if test "x$enable_code_coverage" = "xno" ; then 5763fceef8e0Santirez enable_code_coverage="0" 5764fceef8e0Santirezelse 5765fceef8e0Santirez enable_code_coverage="1" 5766fceef8e0Santirezfi 5767fceef8e0Santirez 5768fceef8e0Santirezelse 5769fceef8e0Santirez enable_code_coverage="0" 5770fceef8e0Santirez 5771fceef8e0Santirezfi 5772fceef8e0Santirez 5773fceef8e0Santirezif test "x$enable_code_coverage" = "x1" ; then 5774fceef8e0Santirez deoptimize="no" 5775fceef8e0Santirez echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || deoptimize="yes" 5776fceef8e0Santirez if test "x${deoptimize}" = "xyes" ; then 5777fceef8e0Santirez 5778fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O0" >&5 5779fceef8e0Santirez$as_echo_n "checking whether compiler supports -O0... " >&6; } 5780fceef8e0SantirezTCFLAGS="${CFLAGS}" 5781fceef8e0Santirezif test "x${CFLAGS}" = "x" ; then 5782fceef8e0Santirez CFLAGS="-O0" 5783fceef8e0Santirezelse 5784fceef8e0Santirez CFLAGS="${CFLAGS} -O0" 5785fceef8e0Santirezfi 5786fceef8e0Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787fceef8e0Santirez/* end confdefs.h. */ 5788fceef8e0Santirez 5789fceef8e0Santirez 5790fceef8e0Santirezint 5791fceef8e0Santirezmain () 5792fceef8e0Santirez{ 5793fceef8e0Santirez 5794fceef8e0Santirez return 0; 5795fceef8e0Santirez 5796fceef8e0Santirez ; 5797fceef8e0Santirez return 0; 5798fceef8e0Santirez} 5799fceef8e0Santirez_ACEOF 5800fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 5801fceef8e0Santirez je_cv_cflags_appended=-O0 5802fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5803fceef8e0Santirez$as_echo "yes" >&6; } 5804fceef8e0Santirezelse 5805fceef8e0Santirez je_cv_cflags_appended= 5806fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807fceef8e0Santirez$as_echo "no" >&6; } 5808fceef8e0Santirez CFLAGS="${TCFLAGS}" 5809fceef8e0Santirez 5810fceef8e0Santirezfi 5811fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812fceef8e0Santirez 5813fceef8e0Santirez fi 5814fceef8e0Santirez 5815fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fprofile-arcs -ftest-coverage" >&5 5816fceef8e0Santirez$as_echo_n "checking whether compiler supports -fprofile-arcs -ftest-coverage... " >&6; } 5817fceef8e0SantirezTCFLAGS="${CFLAGS}" 5818fceef8e0Santirezif test "x${CFLAGS}" = "x" ; then 5819fceef8e0Santirez CFLAGS="-fprofile-arcs -ftest-coverage" 5820fceef8e0Santirezelse 5821fceef8e0Santirez CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" 5822fceef8e0Santirezfi 5823fceef8e0Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824fceef8e0Santirez/* end confdefs.h. */ 5825fceef8e0Santirez 5826fceef8e0Santirez 5827fceef8e0Santirezint 5828fceef8e0Santirezmain () 5829fceef8e0Santirez{ 5830fceef8e0Santirez 5831fceef8e0Santirez return 0; 5832fceef8e0Santirez 5833fceef8e0Santirez ; 5834fceef8e0Santirez return 0; 5835fceef8e0Santirez} 5836fceef8e0Santirez_ACEOF 5837fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 5838fceef8e0Santirez je_cv_cflags_appended=-fprofile-arcs -ftest-coverage 5839fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840fceef8e0Santirez$as_echo "yes" >&6; } 5841fceef8e0Santirezelse 5842fceef8e0Santirez je_cv_cflags_appended= 5843fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5844fceef8e0Santirez$as_echo "no" >&6; } 5845fceef8e0Santirez CFLAGS="${TCFLAGS}" 5846fceef8e0Santirez 5847fceef8e0Santirezfi 5848fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849fceef8e0Santirez 5850fceef8e0Santirez EXTRA_LDFLAGS="$EXTRA_LDFLAGS -fprofile-arcs -ftest-coverage" 5851fceef8e0Santirez $as_echo "#define JEMALLOC_CODE_COVERAGE " >>confdefs.h 5852fceef8e0Santirez 5853fceef8e0Santirezfi 5854fceef8e0Santirez 5855fceef8e0Santirez 5856ad4c0b41Santirez 5857ad4c0b41Santirez# Check whether --with-mangling was given. 5858ad4c0b41Santirezif test "${with_mangling+set}" = set; then : 5859ad4c0b41Santirez withval=$with_mangling; mangling_map="$with_mangling" 5860ad4c0b41Santirezelse 5861ad4c0b41Santirez mangling_map="" 5862ad4c0b41Santirezfi 5863ad4c0b41Santirez 5864ad4c0b41Santirez 5865a78e148bSantirez 5866a78e148bSantirez# Check whether --with-jemalloc_prefix was given. 5867a78e148bSantirezif test "${with_jemalloc_prefix+set}" = set; then : 5868a78e148bSantirez withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix" 5869a78e148bSantirezelse 5870ad4c0b41Santirez if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then 5871a78e148bSantirez JEMALLOC_PREFIX="" 5872a78e148bSantirezelse 5873a78e148bSantirez JEMALLOC_PREFIX="je_" 5874a78e148bSantirezfi 5875a78e148bSantirez 5876a78e148bSantirezfi 5877a78e148bSantirez 5878a78e148bSantirezif test "x$JEMALLOC_PREFIX" != "x" ; then 5879a78e148bSantirez JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` 5880a78e148bSantirez cat >>confdefs.h <<_ACEOF 5881a78e148bSantirez#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX" 5882a78e148bSantirez_ACEOF 5883a78e148bSantirez 5884a78e148bSantirez cat >>confdefs.h <<_ACEOF 5885a78e148bSantirez#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX" 5886a78e148bSantirez_ACEOF 5887a78e148bSantirez 5888ad4c0b41Santirezfi 5889a78e148bSantirez 5890fceef8e0Santirez 5891*5268379eSantirez 5892fceef8e0Santirez# Check whether --with-export was given. 5893fceef8e0Santirezif test "${with_export+set}" = set; then : 5894fceef8e0Santirez withval=$with_export; if test "x$with_export" = "xno"; then 5895fceef8e0Santirez $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h 5896fceef8e0Santirez 5897fceef8e0Santirezfi 5898fceef8e0Santirez 5899fceef8e0Santirezfi 5900fceef8e0Santirez 5901a78e148bSantirez 5902a78e148bSantirez 59031d03c1c9Sjbergstroem# Check whether --with-private_namespace was given. 59041d03c1c9Sjbergstroemif test "${with_private_namespace+set}" = set; then : 5905fceef8e0Santirez withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_" 59061d03c1c9Sjbergstroemelse 5907fceef8e0Santirez JEMALLOC_PRIVATE_NAMESPACE="je_" 59081d03c1c9Sjbergstroem 59091d03c1c9Sjbergstroemfi 59101d03c1c9Sjbergstroem 59111d03c1c9Sjbergstroemcat >>confdefs.h <<_ACEOF 5912fceef8e0Santirez#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE 59131d03c1c9Sjbergstroem_ACEOF 59141d03c1c9Sjbergstroem 5915fceef8e0Santirezprivate_namespace="$JEMALLOC_PRIVATE_NAMESPACE" 59161d03c1c9Sjbergstroem 59171d03c1c9Sjbergstroem 59181d03c1c9Sjbergstroem 5919a78e148bSantirez# Check whether --with-install_suffix was given. 5920a78e148bSantirezif test "${with_install_suffix+set}" = set; then : 5921a78e148bSantirez withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix" 5922a78e148bSantirezelse 5923a78e148bSantirez INSTALL_SUFFIX= 5924a78e148bSantirez 5925a78e148bSantirezfi 5926a78e148bSantirez 5927a78e148bSantirezinstall_suffix="$INSTALL_SUFFIX" 5928a78e148bSantirez 5929a78e148bSantirez 5930fceef8e0Santirezje_="je_" 5931fceef8e0Santirez 5932fceef8e0Santirez 5933*5268379eSantirezcfgoutputs_in="Makefile.in" 5934*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in" 5935*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in" 5936*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in" 5937*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in" 5938*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in" 5939*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in" 5940*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in" 5941*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_internal.h.in" 5942*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} test/test.sh.in" 5943*5268379eSantirezcfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in" 5944a78e148bSantirez 5945a78e148bSantirezcfgoutputs_out="Makefile" 5946*5268379eSantirezcfgoutputs_out="${cfgoutputs_out} jemalloc.pc" 5947a78e148bSantirezcfgoutputs_out="${cfgoutputs_out} doc/html.xsl" 5948a78e148bSantirezcfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" 5949fceef8e0Santirezcfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml" 5950fceef8e0Santirezcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h" 5951fceef8e0Santirezcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h" 5952*5268379eSantirezcfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h" 5953a78e148bSantirezcfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h" 5954fceef8e0Santirezcfgoutputs_out="${cfgoutputs_out} test/test.sh" 5955fceef8e0Santirezcfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h" 5956a78e148bSantirez 5957a78e148bSantirezcfgoutputs_tup="Makefile" 5958*5268379eSantirezcfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in" 5959a78e148bSantirezcfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" 5960a78e148bSantirezcfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" 5961fceef8e0Santirezcfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in" 5962fceef8e0Santirezcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in" 5963fceef8e0Santirezcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in" 5964*5268379eSantirezcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in" 5965a78e148bSantirezcfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h" 5966fceef8e0Santirezcfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in" 5967fceef8e0Santirezcfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in" 5968a78e148bSantirez 5969*5268379eSantirezcfghdrs_in="include/jemalloc/jemalloc_defs.h.in" 5970*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in" 5971*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh" 5972*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_unnamespace.sh" 5973*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.txt" 5974*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh" 5975*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh" 5976*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh" 5977*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh" 5978*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh" 5979*5268379eSantirezcfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh" 5980*5268379eSantirezcfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in" 5981a78e148bSantirez 5982fceef8e0Santirezcfghdrs_out="include/jemalloc/jemalloc_defs.h" 5983fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h" 5984fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_namespace.h" 5985fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_unnamespace.h" 5986fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt" 5987fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h" 5988fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h" 5989ad4c0b41Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h" 5990fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h" 5991fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h" 5992fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h" 5993fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h" 5994fceef8e0Santirezcfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h" 5995fceef8e0Santirezcfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h" 5996a78e148bSantirez 5997fceef8e0Santirezcfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in" 5998*5268379eSantirezcfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in" 5999*5268379eSantirezcfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in" 6000a78e148bSantirez 6001a78e148bSantirez# Check whether --enable-cc-silence was given. 6002a78e148bSantirezif test "${enable_cc_silence+set}" = set; then : 6003a78e148bSantirez enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then 6004a78e148bSantirez enable_cc_silence="0" 6005a78e148bSantirezelse 6006a78e148bSantirez enable_cc_silence="1" 6007a78e148bSantirezfi 6008a78e148bSantirez 6009a78e148bSantirezelse 6010*5268379eSantirez enable_cc_silence="1" 6011a78e148bSantirez 6012a78e148bSantirezfi 6013a78e148bSantirez 6014a78e148bSantirezif test "x$enable_cc_silence" = "x1" ; then 6015ad4c0b41Santirez $as_echo "#define JEMALLOC_CC_SILENCE " >>confdefs.h 6016a78e148bSantirez 6017a78e148bSantirezfi 6018a78e148bSantirez 6019a78e148bSantirez# Check whether --enable-debug was given. 6020a78e148bSantirezif test "${enable_debug+set}" = set; then : 6021a78e148bSantirez enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then 6022a78e148bSantirez enable_debug="0" 6023a78e148bSantirezelse 6024a78e148bSantirez enable_debug="1" 6025a78e148bSantirezfi 6026a78e148bSantirez 6027a78e148bSantirezelse 6028a78e148bSantirez enable_debug="0" 6029a78e148bSantirez 6030a78e148bSantirezfi 6031a78e148bSantirez 6032a78e148bSantirezif test "x$enable_debug" = "x1" ; then 6033a78e148bSantirez $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 6034a78e148bSantirez 6035*5268379eSantirezfi 6036*5268379eSantirezif test "x$enable_debug" = "x1" ; then 6037*5268379eSantirez $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 6038*5268379eSantirez 6039fceef8e0Santirez enable_ivsalloc="1" 6040fceef8e0Santirezfi 6041fceef8e0Santirez 6042fceef8e0Santirez 6043fceef8e0Santirez# Check whether --enable-ivsalloc was given. 6044fceef8e0Santirezif test "${enable_ivsalloc+set}" = set; then : 6045fceef8e0Santirez enableval=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then 6046fceef8e0Santirez enable_ivsalloc="0" 6047fceef8e0Santirezelse 6048fceef8e0Santirez enable_ivsalloc="1" 6049fceef8e0Santirezfi 6050fceef8e0Santirez 6051fceef8e0Santirezelse 6052fceef8e0Santirez enable_ivsalloc="0" 6053fceef8e0Santirez 6054fceef8e0Santirezfi 6055fceef8e0Santirez 6056fceef8e0Santirezif test "x$enable_ivsalloc" = "x1" ; then 6057a78e148bSantirez $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h 6058a78e148bSantirez 6059a78e148bSantirezfi 6060a78e148bSantirez 6061a78e148bSantirezif test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then 6062a78e148bSantirez optimize="no" 6063fceef8e0Santirez echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes" 6064a78e148bSantirez if test "x${optimize}" = "xyes" ; then 6065a78e148bSantirez if test "x$GCC" = "xyes" ; then 6066a78e148bSantirez 6067a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 6068a78e148bSantirez$as_echo_n "checking whether compiler supports -O3... " >&6; } 6069a78e148bSantirezTCFLAGS="${CFLAGS}" 6070a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 6071a78e148bSantirez CFLAGS="-O3" 6072a78e148bSantirezelse 6073a78e148bSantirez CFLAGS="${CFLAGS} -O3" 6074a78e148bSantirezfi 6075a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076a78e148bSantirez/* end confdefs.h. */ 6077a78e148bSantirez 6078a78e148bSantirez 6079a78e148bSantirezint 6080a78e148bSantirezmain () 6081a78e148bSantirez{ 6082a78e148bSantirez 6083a78e148bSantirez return 0; 6084a78e148bSantirez 6085a78e148bSantirez ; 6086a78e148bSantirez return 0; 6087a78e148bSantirez} 6088a78e148bSantirez_ACEOF 6089ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 6090fceef8e0Santirez je_cv_cflags_appended=-O3 6091a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6092a78e148bSantirez$as_echo "yes" >&6; } 6093a78e148bSantirezelse 6094fceef8e0Santirez je_cv_cflags_appended= 6095a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096a78e148bSantirez$as_echo "no" >&6; } 6097a78e148bSantirez CFLAGS="${TCFLAGS}" 6098a78e148bSantirez 6099a78e148bSantirezfi 6100ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101a78e148bSantirez 6102a78e148bSantirez 6103a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5 6104a78e148bSantirez$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; } 6105a78e148bSantirezTCFLAGS="${CFLAGS}" 6106a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 6107a78e148bSantirez CFLAGS="-funroll-loops" 6108a78e148bSantirezelse 6109a78e148bSantirez CFLAGS="${CFLAGS} -funroll-loops" 6110a78e148bSantirezfi 6111a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112a78e148bSantirez/* end confdefs.h. */ 6113a78e148bSantirez 6114a78e148bSantirez 6115a78e148bSantirezint 6116a78e148bSantirezmain () 6117a78e148bSantirez{ 6118a78e148bSantirez 6119a78e148bSantirez return 0; 6120a78e148bSantirez 6121a78e148bSantirez ; 6122a78e148bSantirez return 0; 6123a78e148bSantirez} 6124a78e148bSantirez_ACEOF 6125ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 6126fceef8e0Santirez je_cv_cflags_appended=-funroll-loops 6127a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128a78e148bSantirez$as_echo "yes" >&6; } 6129a78e148bSantirezelse 6130fceef8e0Santirez je_cv_cflags_appended= 6131a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132a78e148bSantirez$as_echo "no" >&6; } 6133a78e148bSantirez CFLAGS="${TCFLAGS}" 6134a78e148bSantirez 6135a78e148bSantirezfi 6136ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137a78e148bSantirez 6138ad4c0b41Santirez elif test "x$je_cv_msvc" = "xyes" ; then 6139ad4c0b41Santirez 6140ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 6141ad4c0b41Santirez$as_echo_n "checking whether compiler supports -O2... " >&6; } 6142ad4c0b41SantirezTCFLAGS="${CFLAGS}" 6143ad4c0b41Santirezif test "x${CFLAGS}" = "x" ; then 6144ad4c0b41Santirez CFLAGS="-O2" 6145ad4c0b41Santirezelse 6146ad4c0b41Santirez CFLAGS="${CFLAGS} -O2" 6147ad4c0b41Santirezfi 6148ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149ad4c0b41Santirez/* end confdefs.h. */ 6150ad4c0b41Santirez 6151ad4c0b41Santirez 6152ad4c0b41Santirezint 6153ad4c0b41Santirezmain () 6154ad4c0b41Santirez{ 6155ad4c0b41Santirez 6156ad4c0b41Santirez return 0; 6157ad4c0b41Santirez 6158ad4c0b41Santirez ; 6159ad4c0b41Santirez return 0; 6160ad4c0b41Santirez} 6161ad4c0b41Santirez_ACEOF 6162ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 6163fceef8e0Santirez je_cv_cflags_appended=-O2 6164ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6165ad4c0b41Santirez$as_echo "yes" >&6; } 6166ad4c0b41Santirezelse 6167fceef8e0Santirez je_cv_cflags_appended= 6168ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169ad4c0b41Santirez$as_echo "no" >&6; } 6170ad4c0b41Santirez CFLAGS="${TCFLAGS}" 6171ad4c0b41Santirez 6172ad4c0b41Santirezfi 6173ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6174a78e148bSantirez 6175a78e148bSantirez else 6176a78e148bSantirez 6177a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 6178a78e148bSantirez$as_echo_n "checking whether compiler supports -O... " >&6; } 6179a78e148bSantirezTCFLAGS="${CFLAGS}" 6180a78e148bSantirezif test "x${CFLAGS}" = "x" ; then 6181a78e148bSantirez CFLAGS="-O" 6182a78e148bSantirezelse 6183a78e148bSantirez CFLAGS="${CFLAGS} -O" 6184a78e148bSantirezfi 6185a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186a78e148bSantirez/* end confdefs.h. */ 6187a78e148bSantirez 6188a78e148bSantirez 6189a78e148bSantirezint 6190a78e148bSantirezmain () 6191a78e148bSantirez{ 6192a78e148bSantirez 6193a78e148bSantirez return 0; 6194a78e148bSantirez 6195a78e148bSantirez ; 6196a78e148bSantirez return 0; 6197a78e148bSantirez} 6198a78e148bSantirez_ACEOF 6199ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 6200fceef8e0Santirez je_cv_cflags_appended=-O 6201a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6202a78e148bSantirez$as_echo "yes" >&6; } 6203a78e148bSantirezelse 6204fceef8e0Santirez je_cv_cflags_appended= 6205a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206a78e148bSantirez$as_echo "no" >&6; } 6207a78e148bSantirez CFLAGS="${TCFLAGS}" 6208a78e148bSantirez 6209a78e148bSantirezfi 6210ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211a78e148bSantirez 6212a78e148bSantirez fi 6213a78e148bSantirez fi 6214a78e148bSantirezfi 6215a78e148bSantirez 6216a78e148bSantirez# Check whether --enable-stats was given. 6217a78e148bSantirezif test "${enable_stats+set}" = set; then : 6218a78e148bSantirez enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then 6219a78e148bSantirez enable_stats="0" 6220a78e148bSantirezelse 6221a78e148bSantirez enable_stats="1" 6222a78e148bSantirezfi 6223a78e148bSantirez 6224a78e148bSantirezelse 6225ad4c0b41Santirez enable_stats="1" 6226a78e148bSantirez 6227a78e148bSantirezfi 6228a78e148bSantirez 6229a78e148bSantirezif test "x$enable_stats" = "x1" ; then 6230a78e148bSantirez $as_echo "#define JEMALLOC_STATS " >>confdefs.h 6231a78e148bSantirez 6232a78e148bSantirezfi 6233a78e148bSantirez 6234a78e148bSantirez 6235a78e148bSantirez# Check whether --enable-prof was given. 6236a78e148bSantirezif test "${enable_prof+set}" = set; then : 6237a78e148bSantirez enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then 6238a78e148bSantirez enable_prof="0" 6239a78e148bSantirezelse 6240a78e148bSantirez enable_prof="1" 6241a78e148bSantirezfi 6242a78e148bSantirez 6243a78e148bSantirezelse 6244a78e148bSantirez enable_prof="0" 6245a78e148bSantirez 6246a78e148bSantirezfi 6247a78e148bSantirez 6248a78e148bSantirezif test "x$enable_prof" = "x1" ; then 6249a78e148bSantirez backtrace_method="" 6250a78e148bSantirezelse 6251a78e148bSantirez backtrace_method="N/A" 6252a78e148bSantirezfi 6253a78e148bSantirez 6254a78e148bSantirez# Check whether --enable-prof-libunwind was given. 6255a78e148bSantirezif test "${enable_prof_libunwind+set}" = set; then : 6256a78e148bSantirez enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then 6257a78e148bSantirez enable_prof_libunwind="0" 6258a78e148bSantirezelse 6259a78e148bSantirez enable_prof_libunwind="1" 6260a78e148bSantirezfi 6261a78e148bSantirez 6262a78e148bSantirezelse 6263a78e148bSantirez enable_prof_libunwind="0" 6264a78e148bSantirez 6265a78e148bSantirezfi 6266a78e148bSantirez 6267a78e148bSantirez 6268a78e148bSantirez# Check whether --with-static_libunwind was given. 6269a78e148bSantirezif test "${with_static_libunwind+set}" = set; then : 6270a78e148bSantirez withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then 6271a78e148bSantirez LUNWIND="-lunwind" 6272a78e148bSantirezelse 6273a78e148bSantirez if test ! -f "$with_static_libunwind" ; then 6274ad4c0b41Santirez as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5 6275a78e148bSantirez fi 6276a78e148bSantirez LUNWIND="$with_static_libunwind" 6277a78e148bSantirezfi 6278a78e148bSantirezelse 6279a78e148bSantirez LUNWIND="-lunwind" 6280a78e148bSantirez 6281a78e148bSantirezfi 6282a78e148bSantirez 6283a78e148bSantirezif test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then 6284a78e148bSantirez for ac_header in libunwind.h 6285a78e148bSantirezdo : 6286a78e148bSantirez ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 6287ad4c0b41Santirezif test "x$ac_cv_header_libunwind_h" = xyes; then : 6288a78e148bSantirez cat >>confdefs.h <<_ACEOF 6289a78e148bSantirez#define HAVE_LIBUNWIND_H 1 6290a78e148bSantirez_ACEOF 6291a78e148bSantirez 6292a78e148bSantirezelse 6293a78e148bSantirez enable_prof_libunwind="0" 6294a78e148bSantirezfi 6295a78e148bSantirez 6296a78e148bSantirezdone 6297a78e148bSantirez 6298a78e148bSantirez if test "x$LUNWIND" = "x-lunwind" ; then 6299*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5 6300*5268379eSantirez$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; } 6301*5268379eSantirezif ${ac_cv_lib_unwind_unw_backtrace+:} false; then : 6302a78e148bSantirez $as_echo_n "(cached) " >&6 6303a78e148bSantirezelse 6304a78e148bSantirez ac_check_lib_save_LIBS=$LIBS 6305a78e148bSantirezLIBS="-lunwind $LIBS" 6306a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307a78e148bSantirez/* end confdefs.h. */ 6308a78e148bSantirez 6309a78e148bSantirez/* Override any GCC internal prototype to avoid an error. 6310a78e148bSantirez Use char because int might match the return type of a GCC 6311a78e148bSantirez builtin and then its argument prototype would still apply. */ 6312a78e148bSantirez#ifdef __cplusplus 6313a78e148bSantirezextern "C" 6314a78e148bSantirez#endif 6315*5268379eSantirezchar unw_backtrace (); 6316a78e148bSantirezint 6317a78e148bSantirezmain () 6318a78e148bSantirez{ 6319*5268379eSantirezreturn unw_backtrace (); 6320a78e148bSantirez ; 6321a78e148bSantirez return 0; 6322a78e148bSantirez} 6323a78e148bSantirez_ACEOF 6324a78e148bSantirezif ac_fn_c_try_link "$LINENO"; then : 6325*5268379eSantirez ac_cv_lib_unwind_unw_backtrace=yes 6326a78e148bSantirezelse 6327*5268379eSantirez ac_cv_lib_unwind_unw_backtrace=no 6328a78e148bSantirezfi 6329a78e148bSantirezrm -f core conftest.err conftest.$ac_objext \ 6330a78e148bSantirez conftest$ac_exeext conftest.$ac_ext 6331a78e148bSantirezLIBS=$ac_check_lib_save_LIBS 6332a78e148bSantirezfi 6333*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 6334*5268379eSantirez$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; } 6335*5268379eSantirezif test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then : 6336a78e148bSantirez LIBS="$LIBS $LUNWIND" 6337a78e148bSantirezelse 6338a78e148bSantirez enable_prof_libunwind="0" 6339a78e148bSantirezfi 6340a78e148bSantirez 6341a78e148bSantirez else 6342a78e148bSantirez LIBS="$LIBS $LUNWIND" 6343a78e148bSantirez fi 6344a78e148bSantirez if test "x${enable_prof_libunwind}" = "x1" ; then 6345a78e148bSantirez backtrace_method="libunwind" 6346a78e148bSantirez $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h 6347a78e148bSantirez 6348a78e148bSantirez fi 6349a78e148bSantirezfi 6350a78e148bSantirez 6351a78e148bSantirez# Check whether --enable-prof-libgcc was given. 6352a78e148bSantirezif test "${enable_prof_libgcc+set}" = set; then : 6353a78e148bSantirez enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then 6354a78e148bSantirez enable_prof_libgcc="0" 6355a78e148bSantirezelse 6356a78e148bSantirez enable_prof_libgcc="1" 6357a78e148bSantirezfi 6358a78e148bSantirez 6359a78e148bSantirezelse 6360a78e148bSantirez enable_prof_libgcc="1" 6361a78e148bSantirez 6362a78e148bSantirezfi 6363a78e148bSantirez 6364a78e148bSantirezif test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ 6365a78e148bSantirez -a "x$GCC" = "xyes" ; then 6366a78e148bSantirez for ac_header in unwind.h 6367a78e148bSantirezdo : 6368a78e148bSantirez ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 6369ad4c0b41Santirezif test "x$ac_cv_header_unwind_h" = xyes; then : 6370a78e148bSantirez cat >>confdefs.h <<_ACEOF 6371a78e148bSantirez#define HAVE_UNWIND_H 1 6372a78e148bSantirez_ACEOF 6373a78e148bSantirez 6374a78e148bSantirezelse 6375a78e148bSantirez enable_prof_libgcc="0" 6376a78e148bSantirezfi 6377a78e148bSantirez 6378a78e148bSantirezdone 6379a78e148bSantirez 6380a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5 6381a78e148bSantirez$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; } 6382ad4c0b41Santirezif ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then : 6383a78e148bSantirez $as_echo_n "(cached) " >&6 6384a78e148bSantirezelse 6385a78e148bSantirez ac_check_lib_save_LIBS=$LIBS 6386a78e148bSantirezLIBS="-lgcc $LIBS" 6387a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388a78e148bSantirez/* end confdefs.h. */ 6389a78e148bSantirez 6390a78e148bSantirez/* Override any GCC internal prototype to avoid an error. 6391a78e148bSantirez Use char because int might match the return type of a GCC 6392a78e148bSantirez builtin and then its argument prototype would still apply. */ 6393a78e148bSantirez#ifdef __cplusplus 6394a78e148bSantirezextern "C" 6395a78e148bSantirez#endif 6396a78e148bSantirezchar _Unwind_Backtrace (); 6397a78e148bSantirezint 6398a78e148bSantirezmain () 6399a78e148bSantirez{ 6400a78e148bSantirezreturn _Unwind_Backtrace (); 6401a78e148bSantirez ; 6402a78e148bSantirez return 0; 6403a78e148bSantirez} 6404a78e148bSantirez_ACEOF 6405a78e148bSantirezif ac_fn_c_try_link "$LINENO"; then : 6406a78e148bSantirez ac_cv_lib_gcc__Unwind_Backtrace=yes 6407a78e148bSantirezelse 6408a78e148bSantirez ac_cv_lib_gcc__Unwind_Backtrace=no 6409a78e148bSantirezfi 6410a78e148bSantirezrm -f core conftest.err conftest.$ac_objext \ 6411a78e148bSantirez conftest$ac_exeext conftest.$ac_ext 6412a78e148bSantirezLIBS=$ac_check_lib_save_LIBS 6413a78e148bSantirezfi 6414a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5 6415a78e148bSantirez$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; } 6416ad4c0b41Santirezif test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then : 6417a78e148bSantirez LIBS="$LIBS -lgcc" 6418a78e148bSantirezelse 6419a78e148bSantirez enable_prof_libgcc="0" 6420a78e148bSantirezfi 6421a78e148bSantirez 6422a78e148bSantirez if test "x${enable_prof_libgcc}" = "x1" ; then 6423a78e148bSantirez backtrace_method="libgcc" 6424a78e148bSantirez $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h 6425a78e148bSantirez 6426a78e148bSantirez fi 6427a78e148bSantirezelse 6428a78e148bSantirez enable_prof_libgcc="0" 6429a78e148bSantirezfi 6430a78e148bSantirez 6431a78e148bSantirez# Check whether --enable-prof-gcc was given. 6432a78e148bSantirezif test "${enable_prof_gcc+set}" = set; then : 6433a78e148bSantirez enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then 6434a78e148bSantirez enable_prof_gcc="0" 6435a78e148bSantirezelse 6436a78e148bSantirez enable_prof_gcc="1" 6437a78e148bSantirezfi 6438a78e148bSantirez 6439a78e148bSantirezelse 6440a78e148bSantirez enable_prof_gcc="1" 6441a78e148bSantirez 6442a78e148bSantirezfi 6443a78e148bSantirez 6444a78e148bSantirezif test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ 6445a78e148bSantirez -a "x$GCC" = "xyes" ; then 6446fceef8e0Santirez 6447fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5 6448fceef8e0Santirez$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; } 6449fceef8e0SantirezTCFLAGS="${CFLAGS}" 6450fceef8e0Santirezif test "x${CFLAGS}" = "x" ; then 6451fceef8e0Santirez CFLAGS="-fno-omit-frame-pointer" 6452fceef8e0Santirezelse 6453fceef8e0Santirez CFLAGS="${CFLAGS} -fno-omit-frame-pointer" 6454fceef8e0Santirezfi 6455fceef8e0Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456fceef8e0Santirez/* end confdefs.h. */ 6457fceef8e0Santirez 6458fceef8e0Santirez 6459fceef8e0Santirezint 6460fceef8e0Santirezmain () 6461fceef8e0Santirez{ 6462fceef8e0Santirez 6463fceef8e0Santirez return 0; 6464fceef8e0Santirez 6465fceef8e0Santirez ; 6466fceef8e0Santirez return 0; 6467fceef8e0Santirez} 6468fceef8e0Santirez_ACEOF 6469fceef8e0Santirezif ac_fn_c_try_compile "$LINENO"; then : 6470fceef8e0Santirez je_cv_cflags_appended=-fno-omit-frame-pointer 6471fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6472fceef8e0Santirez$as_echo "yes" >&6; } 6473fceef8e0Santirezelse 6474fceef8e0Santirez je_cv_cflags_appended= 6475fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6476fceef8e0Santirez$as_echo "no" >&6; } 6477fceef8e0Santirez CFLAGS="${TCFLAGS}" 6478fceef8e0Santirez 6479fceef8e0Santirezfi 6480fceef8e0Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481fceef8e0Santirez 6482a78e148bSantirez backtrace_method="gcc intrinsics" 6483a78e148bSantirez $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h 6484a78e148bSantirez 6485a78e148bSantirezelse 6486a78e148bSantirez enable_prof_gcc="0" 6487a78e148bSantirezfi 6488a78e148bSantirez 6489a78e148bSantirezif test "x$backtrace_method" = "x" ; then 6490a78e148bSantirez backtrace_method="none (disabling profiling)" 6491a78e148bSantirez enable_prof="0" 6492a78e148bSantirezfi 6493a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5 6494a78e148bSantirez$as_echo_n "checking configured backtracing method... " >&6; } 6495a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5 6496a78e148bSantirez$as_echo "$backtrace_method" >&6; } 6497a78e148bSantirezif test "x$enable_prof" = "x1" ; then 6498fceef8e0Santirez if test "x$abi" != "xpecoff"; then 6499fceef8e0Santirez LIBS="$LIBS -lm" 6500fceef8e0Santirez fi 6501fceef8e0Santirez 6502a78e148bSantirez $as_echo "#define JEMALLOC_PROF " >>confdefs.h 6503a78e148bSantirez 6504a78e148bSantirezfi 6505a78e148bSantirez 6506a78e148bSantirez 6507a78e148bSantirez# Check whether --enable-tcache was given. 6508a78e148bSantirezif test "${enable_tcache+set}" = set; then : 6509a78e148bSantirez enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then 6510a78e148bSantirez enable_tcache="0" 6511a78e148bSantirezelse 6512a78e148bSantirez enable_tcache="1" 6513a78e148bSantirezfi 6514a78e148bSantirez 6515a78e148bSantirezelse 6516a78e148bSantirez enable_tcache="1" 6517a78e148bSantirez 6518a78e148bSantirezfi 6519a78e148bSantirez 6520a78e148bSantirezif test "x$enable_tcache" = "x1" ; then 6521a78e148bSantirez $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h 6522a78e148bSantirez 6523a78e148bSantirezfi 6524a78e148bSantirez 6525a78e148bSantirez 6526*5268379eSantirezif test "x${maps_coalesce}" = "x1" ; then 6527*5268379eSantirez $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h 6528a78e148bSantirez 6529a78e148bSantirezfi 6530a78e148bSantirez 6531ad4c0b41Santirez# Check whether --enable-munmap was given. 6532ad4c0b41Santirezif test "${enable_munmap+set}" = set; then : 6533ad4c0b41Santirez enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then 6534ad4c0b41Santirez enable_munmap="0" 6535ad4c0b41Santirezelse 6536ad4c0b41Santirez enable_munmap="1" 6537ad4c0b41Santirezfi 6538ad4c0b41Santirez 6539ad4c0b41Santirezelse 6540ad4c0b41Santirez enable_munmap="${default_munmap}" 6541ad4c0b41Santirez 6542ad4c0b41Santirezfi 6543ad4c0b41Santirez 6544ad4c0b41Santirezif test "x$enable_munmap" = "x1" ; then 6545ad4c0b41Santirez $as_echo "#define JEMALLOC_MUNMAP " >>confdefs.h 6546a78e148bSantirez 6547a78e148bSantirezfi 6548a78e148bSantirez 6549a78e148bSantirez 6550*5268379eSantirezhave_dss="1" 6551ad4c0b41Santirezac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" 6552ad4c0b41Santirezif test "x$ac_cv_func_sbrk" = xyes; then : 6553ad4c0b41Santirez have_sbrk="1" 6554ad4c0b41Santirezelse 6555ad4c0b41Santirez have_sbrk="0" 6556ad4c0b41Santirezfi 6557ad4c0b41Santirez 6558ad4c0b41Santirezif test "x$have_sbrk" = "x1" ; then 6559*5268379eSantirez if test "x$sbrk_deprecated" = "x1" ; then 6560fceef8e0Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5 6561fceef8e0Santirez$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; } 6562*5268379eSantirez have_dss="0" 6563fceef8e0Santirez fi 6564ad4c0b41Santirezelse 6565*5268379eSantirez have_dss="0" 6566ad4c0b41Santirezfi 6567ad4c0b41Santirez 6568*5268379eSantirezif test "x$have_dss" = "x1" ; then 6569a78e148bSantirez $as_echo "#define JEMALLOC_DSS " >>confdefs.h 6570a78e148bSantirez 6571a78e148bSantirezfi 6572a78e148bSantirez 6573a78e148bSantirez# Check whether --enable-fill was given. 6574a78e148bSantirezif test "${enable_fill+set}" = set; then : 6575a78e148bSantirez enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then 6576a78e148bSantirez enable_fill="0" 6577a78e148bSantirezelse 6578a78e148bSantirez enable_fill="1" 6579a78e148bSantirezfi 6580a78e148bSantirez 6581a78e148bSantirezelse 6582ad4c0b41Santirez enable_fill="1" 6583a78e148bSantirez 6584a78e148bSantirezfi 6585a78e148bSantirez 6586a78e148bSantirezif test "x$enable_fill" = "x1" ; then 6587a78e148bSantirez $as_echo "#define JEMALLOC_FILL " >>confdefs.h 6588a78e148bSantirez 6589a78e148bSantirezfi 6590a78e148bSantirez 6591a78e148bSantirez 6592ad4c0b41Santirez# Check whether --enable-utrace was given. 6593ad4c0b41Santirezif test "${enable_utrace+set}" = set; then : 6594ad4c0b41Santirez enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then 6595ad4c0b41Santirez enable_utrace="0" 6596ad4c0b41Santirezelse 6597ad4c0b41Santirez enable_utrace="1" 6598ad4c0b41Santirezfi 6599ad4c0b41Santirez 6600ad4c0b41Santirezelse 6601ad4c0b41Santirez enable_utrace="0" 6602ad4c0b41Santirez 6603ad4c0b41Santirezfi 6604ad4c0b41Santirez 6605ad4c0b41Santirez 6606ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5 6607ad4c0b41Santirez$as_echo_n "checking whether utrace(2) is compilable... " >&6; } 6608ad4c0b41Santirezif ${je_cv_utrace+:} false; then : 6609ad4c0b41Santirez $as_echo_n "(cached) " >&6 6610ad4c0b41Santirezelse 6611ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612ad4c0b41Santirez/* end confdefs.h. */ 6613ad4c0b41Santirez 6614ad4c0b41Santirez#include <sys/types.h> 6615ad4c0b41Santirez#include <sys/param.h> 6616ad4c0b41Santirez#include <sys/time.h> 6617ad4c0b41Santirez#include <sys/uio.h> 6618ad4c0b41Santirez#include <sys/ktrace.h> 6619ad4c0b41Santirez 6620ad4c0b41Santirezint 6621ad4c0b41Santirezmain () 6622ad4c0b41Santirez{ 6623ad4c0b41Santirez 6624ad4c0b41Santirez utrace((void *)0, 0); 6625ad4c0b41Santirez 6626ad4c0b41Santirez ; 6627ad4c0b41Santirez return 0; 6628ad4c0b41Santirez} 6629ad4c0b41Santirez_ACEOF 6630ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 6631ad4c0b41Santirez je_cv_utrace=yes 6632ad4c0b41Santirezelse 6633ad4c0b41Santirez je_cv_utrace=no 6634ad4c0b41Santirezfi 6635ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 6636ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 6637ad4c0b41Santirezfi 6638ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5 6639ad4c0b41Santirez$as_echo "$je_cv_utrace" >&6; } 6640ad4c0b41Santirez 6641ad4c0b41Santirezif test "x${je_cv_utrace}" = "xno" ; then 6642ad4c0b41Santirez enable_utrace="0" 6643ad4c0b41Santirezfi 6644ad4c0b41Santirezif test "x$enable_utrace" = "x1" ; then 6645ad4c0b41Santirez $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h 6646ad4c0b41Santirez 6647ad4c0b41Santirezfi 6648ad4c0b41Santirez 6649ad4c0b41Santirez 6650ad4c0b41Santirez# Check whether --enable-valgrind was given. 6651ad4c0b41Santirezif test "${enable_valgrind+set}" = set; then : 6652ad4c0b41Santirez enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then 6653ad4c0b41Santirez enable_valgrind="0" 6654ad4c0b41Santirezelse 6655ad4c0b41Santirez enable_valgrind="1" 6656ad4c0b41Santirezfi 6657ad4c0b41Santirez 6658ad4c0b41Santirezelse 6659ad4c0b41Santirez enable_valgrind="1" 6660ad4c0b41Santirez 6661ad4c0b41Santirezfi 6662ad4c0b41Santirez 6663ad4c0b41Santirezif test "x$enable_valgrind" = "x1" ; then 6664ad4c0b41Santirez 6665ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5 6666ad4c0b41Santirez$as_echo_n "checking whether valgrind is compilable... " >&6; } 6667ad4c0b41Santirezif ${je_cv_valgrind+:} false; then : 6668ad4c0b41Santirez $as_echo_n "(cached) " >&6 6669ad4c0b41Santirezelse 6670ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671ad4c0b41Santirez/* end confdefs.h. */ 6672ad4c0b41Santirez 6673ad4c0b41Santirez#include <valgrind/valgrind.h> 6674ad4c0b41Santirez#include <valgrind/memcheck.h> 6675ad4c0b41Santirez 6676ad4c0b41Santirez#if !defined(VALGRIND_RESIZEINPLACE_BLOCK) 6677ad4c0b41Santirez# error "Incompatible Valgrind version" 6678ad4c0b41Santirez#endif 6679ad4c0b41Santirez 6680ad4c0b41Santirezint 6681ad4c0b41Santirezmain () 6682ad4c0b41Santirez{ 6683ad4c0b41Santirez 6684ad4c0b41Santirez ; 6685ad4c0b41Santirez return 0; 6686ad4c0b41Santirez} 6687ad4c0b41Santirez_ACEOF 6688ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 6689ad4c0b41Santirez je_cv_valgrind=yes 6690ad4c0b41Santirezelse 6691ad4c0b41Santirez je_cv_valgrind=no 6692ad4c0b41Santirezfi 6693ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 6694ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 6695ad4c0b41Santirezfi 6696ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5 6697ad4c0b41Santirez$as_echo "$je_cv_valgrind" >&6; } 6698ad4c0b41Santirez 6699ad4c0b41Santirez if test "x${je_cv_valgrind}" = "xno" ; then 6700ad4c0b41Santirez enable_valgrind="0" 6701ad4c0b41Santirez fi 6702ad4c0b41Santirez if test "x$enable_valgrind" = "x1" ; then 6703ad4c0b41Santirez $as_echo "#define JEMALLOC_VALGRIND " >>confdefs.h 6704ad4c0b41Santirez 6705ad4c0b41Santirez fi 6706ad4c0b41Santirezfi 6707ad4c0b41Santirez 6708ad4c0b41Santirez 6709a78e148bSantirez# Check whether --enable-xmalloc was given. 6710a78e148bSantirezif test "${enable_xmalloc+set}" = set; then : 6711a78e148bSantirez enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then 6712a78e148bSantirez enable_xmalloc="0" 6713a78e148bSantirezelse 6714a78e148bSantirez enable_xmalloc="1" 6715a78e148bSantirezfi 6716a78e148bSantirez 6717a78e148bSantirezelse 6718a78e148bSantirez enable_xmalloc="0" 6719a78e148bSantirez 6720a78e148bSantirezfi 6721a78e148bSantirez 6722a78e148bSantirezif test "x$enable_xmalloc" = "x1" ; then 6723a78e148bSantirez $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h 6724a78e148bSantirez 6725a78e148bSantirezfi 6726a78e148bSantirez 6727a78e148bSantirez 6728*5268379eSantirez# Check whether --enable-cache-oblivious was given. 6729*5268379eSantirezif test "${enable_cache_oblivious+set}" = set; then : 6730*5268379eSantirez enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then 6731*5268379eSantirez enable_cache_oblivious="0" 6732*5268379eSantirezelse 6733*5268379eSantirez enable_cache_oblivious="1" 6734*5268379eSantirezfi 6735*5268379eSantirez 6736*5268379eSantirezelse 6737*5268379eSantirez enable_cache_oblivious="1" 6738*5268379eSantirez 6739*5268379eSantirezfi 6740*5268379eSantirez 6741*5268379eSantirezif test "x$enable_cache_oblivious" = "x1" ; then 6742*5268379eSantirez $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h 6743*5268379eSantirez 6744*5268379eSantirezfi 6745*5268379eSantirez 6746*5268379eSantirez 6747*5268379eSantirez 6748*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5 6749*5268379eSantirez$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; } 6750*5268379eSantirezif ${je_cv_gcc_builtin_ffsl+:} false; then : 6751*5268379eSantirez $as_echo_n "(cached) " >&6 6752*5268379eSantirezelse 6753*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754*5268379eSantirez/* end confdefs.h. */ 6755*5268379eSantirez 6756*5268379eSantirez#include <stdio.h> 6757*5268379eSantirez#include <strings.h> 6758*5268379eSantirez#include <string.h> 6759*5268379eSantirez 6760*5268379eSantirezint 6761*5268379eSantirezmain () 6762*5268379eSantirez{ 6763*5268379eSantirez 6764*5268379eSantirez { 6765*5268379eSantirez int rv = __builtin_ffsl(0x08); 6766*5268379eSantirez printf("%d\n", rv); 6767*5268379eSantirez } 6768*5268379eSantirez 6769*5268379eSantirez ; 6770*5268379eSantirez return 0; 6771*5268379eSantirez} 6772*5268379eSantirez_ACEOF 6773*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 6774*5268379eSantirez je_cv_gcc_builtin_ffsl=yes 6775*5268379eSantirezelse 6776*5268379eSantirez je_cv_gcc_builtin_ffsl=no 6777*5268379eSantirezfi 6778*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 6779*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 6780*5268379eSantirezfi 6781*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5 6782*5268379eSantirez$as_echo "$je_cv_gcc_builtin_ffsl" >&6; } 6783*5268379eSantirez 6784*5268379eSantirezif test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then 6785*5268379eSantirez $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h 6786*5268379eSantirez 6787*5268379eSantirez $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h 6788*5268379eSantirez 6789*5268379eSantirezelse 6790*5268379eSantirez 6791*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5 6792*5268379eSantirez$as_echo_n "checking whether a program using ffsl is compilable... " >&6; } 6793*5268379eSantirezif ${je_cv_function_ffsl+:} false; then : 6794*5268379eSantirez $as_echo_n "(cached) " >&6 6795*5268379eSantirezelse 6796*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797*5268379eSantirez/* end confdefs.h. */ 6798*5268379eSantirez 6799*5268379eSantirez #include <stdio.h> 6800*5268379eSantirez #include <strings.h> 6801*5268379eSantirez #include <string.h> 6802*5268379eSantirez 6803*5268379eSantirezint 6804*5268379eSantirezmain () 6805*5268379eSantirez{ 6806*5268379eSantirez 6807*5268379eSantirez { 6808*5268379eSantirez int rv = ffsl(0x08); 6809*5268379eSantirez printf("%d\n", rv); 6810*5268379eSantirez } 6811*5268379eSantirez 6812*5268379eSantirez ; 6813*5268379eSantirez return 0; 6814*5268379eSantirez} 6815*5268379eSantirez_ACEOF 6816*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 6817*5268379eSantirez je_cv_function_ffsl=yes 6818*5268379eSantirezelse 6819*5268379eSantirez je_cv_function_ffsl=no 6820*5268379eSantirezfi 6821*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 6822*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 6823*5268379eSantirezfi 6824*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5 6825*5268379eSantirez$as_echo "$je_cv_function_ffsl" >&6; } 6826*5268379eSantirez 6827*5268379eSantirez if test "x${je_cv_function_ffsl}" = "xyes" ; then 6828*5268379eSantirez $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h 6829*5268379eSantirez 6830*5268379eSantirez $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h 6831*5268379eSantirez 6832*5268379eSantirez else 6833*5268379eSantirez as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5 6834*5268379eSantirez fi 6835*5268379eSantirezfi 6836*5268379eSantirez 6837*5268379eSantirez 6838*5268379eSantirez# Check whether --with-lg_tiny_min was given. 6839*5268379eSantirezif test "${with_lg_tiny_min+set}" = set; then : 6840*5268379eSantirez withval=$with_lg_tiny_min; LG_TINY_MIN="$with_lg_tiny_min" 6841*5268379eSantirezelse 6842*5268379eSantirez LG_TINY_MIN="3" 6843*5268379eSantirezfi 6844*5268379eSantirez 6845*5268379eSantirezcat >>confdefs.h <<_ACEOF 6846*5268379eSantirez#define LG_TINY_MIN $LG_TINY_MIN 6847*5268379eSantirez_ACEOF 6848*5268379eSantirez 6849*5268379eSantirez 6850*5268379eSantirez 6851*5268379eSantirez# Check whether --with-lg_quantum was given. 6852*5268379eSantirezif test "${with_lg_quantum+set}" = set; then : 6853*5268379eSantirez withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum" 6854*5268379eSantirezelse 6855*5268379eSantirez LG_QUANTA="3 4" 6856*5268379eSantirezfi 6857*5268379eSantirez 6858*5268379eSantirezif test "x$with_lg_quantum" != "x" ; then 6859*5268379eSantirez cat >>confdefs.h <<_ACEOF 6860*5268379eSantirez#define LG_QUANTUM $with_lg_quantum 6861*5268379eSantirez_ACEOF 6862*5268379eSantirez 6863*5268379eSantirezfi 6864*5268379eSantirez 6865*5268379eSantirez 6866*5268379eSantirez# Check whether --with-lg_page was given. 6867*5268379eSantirezif test "${with_lg_page+set}" = set; then : 6868*5268379eSantirez withval=$with_lg_page; LG_PAGE="$with_lg_page" 6869*5268379eSantirezelse 6870*5268379eSantirez LG_PAGE="detect" 6871*5268379eSantirezfi 6872*5268379eSantirez 6873*5268379eSantirezif test "x$LG_PAGE" = "xdetect"; then 6874*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5 6875*5268379eSantirez$as_echo_n "checking LG_PAGE... " >&6; } 6876*5268379eSantirezif ${je_cv_lg_page+:} false; then : 6877ad4c0b41Santirez $as_echo_n "(cached) " >&6 6878ad4c0b41Santirezelse 6879a78e148bSantirez if test "$cross_compiling" = yes; then : 6880*5268379eSantirez je_cv_lg_page=12 6881a78e148bSantirezelse 6882a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883a78e148bSantirez/* end confdefs.h. */ 6884ad4c0b41Santirez 6885a78e148bSantirez#include <strings.h> 6886ad4c0b41Santirez#ifdef _WIN32 6887ad4c0b41Santirez#include <windows.h> 6888ad4c0b41Santirez#else 6889ad4c0b41Santirez#include <unistd.h> 6890ad4c0b41Santirez#endif 6891ad4c0b41Santirez#include <stdio.h> 6892a78e148bSantirez 6893a78e148bSantirezint 6894a78e148bSantirezmain () 6895a78e148bSantirez{ 6896a78e148bSantirez 6897fceef8e0Santirez int result; 6898a78e148bSantirez FILE *f; 6899a78e148bSantirez 6900ad4c0b41Santirez#ifdef _WIN32 6901ad4c0b41Santirez SYSTEM_INFO si; 6902ad4c0b41Santirez GetSystemInfo(&si); 6903ad4c0b41Santirez result = si.dwPageSize; 6904ad4c0b41Santirez#else 6905a78e148bSantirez result = sysconf(_SC_PAGESIZE); 6906ad4c0b41Santirez#endif 6907a78e148bSantirez if (result == -1) { 6908a78e148bSantirez return 1; 6909a78e148bSantirez } 6910*5268379eSantirez result = JEMALLOC_INTERNAL_FFSL(result) - 1; 6911ad4c0b41Santirez 6912a78e148bSantirez f = fopen("conftest.out", "w"); 6913a78e148bSantirez if (f == NULL) { 6914a78e148bSantirez return 1; 6915a78e148bSantirez } 6916fceef8e0Santirez fprintf(f, "%d\n", result); 6917ad4c0b41Santirez fclose(f); 6918a78e148bSantirez 6919a78e148bSantirez return 0; 6920a78e148bSantirez 6921a78e148bSantirez ; 6922a78e148bSantirez return 0; 6923a78e148bSantirez} 6924a78e148bSantirez_ACEOF 6925a78e148bSantirezif ac_fn_c_try_run "$LINENO"; then : 6926*5268379eSantirez je_cv_lg_page=`cat conftest.out` 6927a78e148bSantirezelse 6928*5268379eSantirez je_cv_lg_page=undefined 6929a78e148bSantirezfi 6930a78e148bSantirezrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6931a78e148bSantirez conftest.$ac_objext conftest.beam conftest.$ac_ext 6932a78e148bSantirezfi 6933a78e148bSantirez 6934ad4c0b41Santirezfi 6935*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5 6936*5268379eSantirez$as_echo "$je_cv_lg_page" >&6; } 6937*5268379eSantirezfi 6938*5268379eSantirezif test "x${je_cv_lg_page}" != "x" ; then 6939*5268379eSantirez LG_PAGE="${je_cv_lg_page}" 6940*5268379eSantirezfi 6941*5268379eSantirezif test "x${LG_PAGE}" != "xundefined" ; then 6942ad4c0b41Santirez cat >>confdefs.h <<_ACEOF 6943*5268379eSantirez#define LG_PAGE $LG_PAGE 6944ad4c0b41Santirez_ACEOF 6945ad4c0b41Santirez 6946ad4c0b41Santirezelse 6947*5268379eSantirez as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5 6948ad4c0b41Santirezfi 6949a78e148bSantirez 6950a78e148bSantirez 6951*5268379eSantirez# Check whether --with-lg_page_sizes was given. 6952*5268379eSantirezif test "${with_lg_page_sizes+set}" = set; then : 6953*5268379eSantirez withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes" 6954*5268379eSantirezelse 6955*5268379eSantirez LG_PAGE_SIZES="$LG_PAGE" 6956a78e148bSantirezfi 6957*5268379eSantirez 6958*5268379eSantirez 6959*5268379eSantirez 6960*5268379eSantirez# Check whether --with-lg_size_class_group was given. 6961*5268379eSantirezif test "${with_lg_size_class_group+set}" = set; then : 6962*5268379eSantirez withval=$with_lg_size_class_group; LG_SIZE_CLASS_GROUP="$with_lg_size_class_group" 6963*5268379eSantirezelse 6964*5268379eSantirez LG_SIZE_CLASS_GROUP="2" 6965*5268379eSantirezfi 6966*5268379eSantirez 6967*5268379eSantirez 6968*5268379eSantirezif test ! -e "${objroot}VERSION" ; then 6969*5268379eSantirez if test ! -e "${srcroot}VERSION" ; then 6970*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5 6971*5268379eSantirez$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; } 6972*5268379eSantirez echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION" 6973*5268379eSantirez else 6974*5268379eSantirez cp ${srcroot}VERSION ${objroot}VERSION 6975*5268379eSantirez fi 6976*5268379eSantirezfi 6977*5268379eSantirezjemalloc_version=`cat "${objroot}VERSION"` 6978a78e148bSantirezjemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'` 6979a78e148bSantirezjemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'` 6980a78e148bSantirezjemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'` 6981a78e148bSantirezjemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'` 6982a78e148bSantirezjemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'` 6983a78e148bSantirez 6984a78e148bSantirez 6985a78e148bSantirez 6986a78e148bSantirez 6987a78e148bSantirez 6988a78e148bSantirez 6989a78e148bSantirez 6990a78e148bSantirez 6991ad4c0b41Santirezif test "x$abi" != "xpecoff" ; then 6992a78e148bSantirez for ac_header in pthread.h 6993a78e148bSantirezdo : 6994a78e148bSantirez ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6995ad4c0b41Santirezif test "x$ac_cv_header_pthread_h" = xyes; then : 6996a78e148bSantirez cat >>confdefs.h <<_ACEOF 6997a78e148bSantirez#define HAVE_PTHREAD_H 1 6998a78e148bSantirez_ACEOF 6999a78e148bSantirez 7000a78e148bSantirezelse 7001ad4c0b41Santirez as_fn_error $? "pthread.h is missing" "$LINENO" 5 7002a78e148bSantirezfi 7003a78e148bSantirez 7004a78e148bSantirezdone 7005a78e148bSantirez 7006a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 7007a78e148bSantirez$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 7008ad4c0b41Santirezif ${ac_cv_lib_pthread_pthread_create+:} false; then : 7009a78e148bSantirez $as_echo_n "(cached) " >&6 7010a78e148bSantirezelse 7011a78e148bSantirez ac_check_lib_save_LIBS=$LIBS 7012a78e148bSantirezLIBS="-lpthread $LIBS" 7013a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014a78e148bSantirez/* end confdefs.h. */ 7015a78e148bSantirez 7016a78e148bSantirez/* Override any GCC internal prototype to avoid an error. 7017a78e148bSantirez Use char because int might match the return type of a GCC 7018a78e148bSantirez builtin and then its argument prototype would still apply. */ 7019a78e148bSantirez#ifdef __cplusplus 7020a78e148bSantirezextern "C" 7021a78e148bSantirez#endif 7022a78e148bSantirezchar pthread_create (); 7023a78e148bSantirezint 7024a78e148bSantirezmain () 7025a78e148bSantirez{ 7026a78e148bSantirezreturn pthread_create (); 7027a78e148bSantirez ; 7028a78e148bSantirez return 0; 7029a78e148bSantirez} 7030a78e148bSantirez_ACEOF 7031a78e148bSantirezif ac_fn_c_try_link "$LINENO"; then : 7032a78e148bSantirez ac_cv_lib_pthread_pthread_create=yes 7033a78e148bSantirezelse 7034a78e148bSantirez ac_cv_lib_pthread_pthread_create=no 7035a78e148bSantirezfi 7036a78e148bSantirezrm -f core conftest.err conftest.$ac_objext \ 7037a78e148bSantirez conftest$ac_exeext conftest.$ac_ext 7038a78e148bSantirezLIBS=$ac_check_lib_save_LIBS 7039a78e148bSantirezfi 7040a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 7041a78e148bSantirez$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 7042ad4c0b41Santirezif test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 7043a78e148bSantirez LIBS="$LIBS -lpthread" 7044a78e148bSantirezelse 7045ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 7046ad4c0b41Santirez$as_echo_n "checking for library containing pthread_create... " >&6; } 7047ad4c0b41Santirezif ${ac_cv_search_pthread_create+:} false; then : 7048ad4c0b41Santirez $as_echo_n "(cached) " >&6 7049ad4c0b41Santirezelse 7050ad4c0b41Santirez ac_func_search_save_LIBS=$LIBS 7051ad4c0b41Santirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052ad4c0b41Santirez/* end confdefs.h. */ 7053ad4c0b41Santirez 7054ad4c0b41Santirez/* Override any GCC internal prototype to avoid an error. 7055ad4c0b41Santirez Use char because int might match the return type of a GCC 7056ad4c0b41Santirez builtin and then its argument prototype would still apply. */ 7057ad4c0b41Santirez#ifdef __cplusplus 7058ad4c0b41Santirezextern "C" 7059ad4c0b41Santirez#endif 7060ad4c0b41Santirezchar pthread_create (); 7061ad4c0b41Santirezint 7062ad4c0b41Santirezmain () 7063ad4c0b41Santirez{ 7064ad4c0b41Santirezreturn pthread_create (); 7065ad4c0b41Santirez ; 7066ad4c0b41Santirez return 0; 7067ad4c0b41Santirez} 7068ad4c0b41Santirez_ACEOF 7069ad4c0b41Santirezfor ac_lib in '' ; do 7070ad4c0b41Santirez if test -z "$ac_lib"; then 7071ad4c0b41Santirez ac_res="none required" 7072ad4c0b41Santirez else 7073ad4c0b41Santirez ac_res=-l$ac_lib 7074ad4c0b41Santirez LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7075ad4c0b41Santirez fi 7076ad4c0b41Santirez if ac_fn_c_try_link "$LINENO"; then : 7077ad4c0b41Santirez ac_cv_search_pthread_create=$ac_res 7078ad4c0b41Santirezfi 7079ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7080ad4c0b41Santirez conftest$ac_exeext 7081ad4c0b41Santirez if ${ac_cv_search_pthread_create+:} false; then : 7082ad4c0b41Santirez break 7083ad4c0b41Santirezfi 7084ad4c0b41Santirezdone 7085ad4c0b41Santirezif ${ac_cv_search_pthread_create+:} false; then : 7086ad4c0b41Santirez 7087ad4c0b41Santirezelse 7088ad4c0b41Santirez ac_cv_search_pthread_create=no 7089ad4c0b41Santirezfi 7090ad4c0b41Santirezrm conftest.$ac_ext 7091ad4c0b41SantirezLIBS=$ac_func_search_save_LIBS 7092ad4c0b41Santirezfi 7093ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 7094ad4c0b41Santirez$as_echo "$ac_cv_search_pthread_create" >&6; } 7095ad4c0b41Santirezac_res=$ac_cv_search_pthread_create 7096ad4c0b41Santirezif test "$ac_res" != no; then : 7097ad4c0b41Santirez test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7098ad4c0b41Santirez 7099ad4c0b41Santirezelse 7100ad4c0b41Santirez as_fn_error $? "libpthread is missing" "$LINENO" 5 7101a78e148bSantirezfi 7102a78e148bSantirez 7103ad4c0b41Santirezfi 7104ad4c0b41Santirez 7105ad4c0b41Santirezfi 7106a78e148bSantirez 7107a78e148bSantirezCPPFLAGS="$CPPFLAGS -D_REENTRANT" 7108a78e148bSantirez 7109*5268379eSantirezSAVED_LIBS="${LIBS}" 7110*5268379eSantirezLIBS= 7111*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7112*5268379eSantirez$as_echo_n "checking for library containing clock_gettime... " >&6; } 7113*5268379eSantirezif ${ac_cv_search_clock_gettime+:} false; then : 7114*5268379eSantirez $as_echo_n "(cached) " >&6 7115*5268379eSantirezelse 7116*5268379eSantirez ac_func_search_save_LIBS=$LIBS 7117*5268379eSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118*5268379eSantirez/* end confdefs.h. */ 7119*5268379eSantirez 7120*5268379eSantirez/* Override any GCC internal prototype to avoid an error. 7121*5268379eSantirez Use char because int might match the return type of a GCC 7122*5268379eSantirez builtin and then its argument prototype would still apply. */ 7123*5268379eSantirez#ifdef __cplusplus 7124*5268379eSantirezextern "C" 7125*5268379eSantirez#endif 7126*5268379eSantirezchar clock_gettime (); 7127*5268379eSantirezint 7128*5268379eSantirezmain () 7129*5268379eSantirez{ 7130*5268379eSantirezreturn clock_gettime (); 7131*5268379eSantirez ; 7132*5268379eSantirez return 0; 7133*5268379eSantirez} 7134*5268379eSantirez_ACEOF 7135*5268379eSantirezfor ac_lib in '' rt; do 7136*5268379eSantirez if test -z "$ac_lib"; then 7137*5268379eSantirez ac_res="none required" 7138*5268379eSantirez else 7139*5268379eSantirez ac_res=-l$ac_lib 7140*5268379eSantirez LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7141*5268379eSantirez fi 7142*5268379eSantirez if ac_fn_c_try_link "$LINENO"; then : 7143*5268379eSantirez ac_cv_search_clock_gettime=$ac_res 7144*5268379eSantirezfi 7145*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 7146*5268379eSantirez conftest$ac_exeext 7147*5268379eSantirez if ${ac_cv_search_clock_gettime+:} false; then : 7148*5268379eSantirez break 7149*5268379eSantirezfi 7150*5268379eSantirezdone 7151*5268379eSantirezif ${ac_cv_search_clock_gettime+:} false; then : 7152*5268379eSantirez 7153*5268379eSantirezelse 7154*5268379eSantirez ac_cv_search_clock_gettime=no 7155*5268379eSantirezfi 7156*5268379eSantirezrm conftest.$ac_ext 7157*5268379eSantirezLIBS=$ac_func_search_save_LIBS 7158*5268379eSantirezfi 7159*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7160*5268379eSantirez$as_echo "$ac_cv_search_clock_gettime" >&6; } 7161*5268379eSantirezac_res=$ac_cv_search_clock_gettime 7162*5268379eSantirezif test "$ac_res" != no; then : 7163*5268379eSantirez test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7164*5268379eSantirez TESTLIBS="${LIBS}" 7165*5268379eSantirezfi 7166*5268379eSantirez 7167*5268379eSantirez 7168*5268379eSantirezLIBS="${SAVED_LIBS}" 7169*5268379eSantirez 7170*5268379eSantirezac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 7171*5268379eSantirezif test "x$ac_cv_func_secure_getenv" = xyes; then : 7172*5268379eSantirez have_secure_getenv="1" 7173*5268379eSantirezelse 7174*5268379eSantirez have_secure_getenv="0" 7175*5268379eSantirez 7176*5268379eSantirezfi 7177*5268379eSantirez 7178*5268379eSantirezif test "x$have_secure_getenv" = "x1" ; then 7179*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h 7180*5268379eSantirez 7181*5268379eSantirezfi 7182*5268379eSantirez 7183*5268379eSantirezac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 7184*5268379eSantirezif test "x$ac_cv_func_issetugid" = xyes; then : 7185*5268379eSantirez have_issetugid="1" 7186*5268379eSantirezelse 7187*5268379eSantirez have_issetugid="0" 7188*5268379eSantirez 7189*5268379eSantirezfi 7190*5268379eSantirez 7191*5268379eSantirezif test "x$have_issetugid" = "x1" ; then 7192*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h 7193*5268379eSantirez 7194*5268379eSantirezfi 7195*5268379eSantirez 7196ad4c0b41Santirezac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup" 7197ad4c0b41Santirezif test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then : 7198ad4c0b41Santirez have__malloc_thread_cleanup="1" 7199ad4c0b41Santirezelse 7200ad4c0b41Santirez have__malloc_thread_cleanup="0" 7201ad4c0b41Santirez 7202ad4c0b41Santirezfi 7203ad4c0b41Santirez 7204ad4c0b41Santirezif test "x$have__malloc_thread_cleanup" = "x1" ; then 7205ad4c0b41Santirez $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h 7206ad4c0b41Santirez 7207ad4c0b41Santirez force_tls="1" 7208ad4c0b41Santirezfi 7209ad4c0b41Santirez 7210ad4c0b41Santirezac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb" 7211ad4c0b41Santirezif test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then : 7212ad4c0b41Santirez have__pthread_mutex_init_calloc_cb="1" 7213ad4c0b41Santirezelse 7214ad4c0b41Santirez have__pthread_mutex_init_calloc_cb="0" 7215ad4c0b41Santirez 7216ad4c0b41Santirezfi 7217ad4c0b41Santirez 7218ad4c0b41Santirezif test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then 7219ad4c0b41Santirez $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h 7220ad4c0b41Santirez 7221ad4c0b41Santirezfi 7222ad4c0b41Santirez 7223a78e148bSantirez# Check whether --enable-lazy_lock was given. 7224a78e148bSantirezif test "${enable_lazy_lock+set}" = set; then : 7225a78e148bSantirez enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then 7226a78e148bSantirez enable_lazy_lock="0" 7227a78e148bSantirezelse 7228a78e148bSantirez enable_lazy_lock="1" 7229a78e148bSantirezfi 7230a78e148bSantirez 7231a78e148bSantirezelse 7232*5268379eSantirez enable_lazy_lock="" 7233a78e148bSantirez 7234a78e148bSantirezfi 7235a78e148bSantirez 7236*5268379eSantirezif test "x$enable_lazy_lock" = "x" -a "x${force_lazy_lock}" = "x1" ; then 7237ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5 7238ad4c0b41Santirez$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; } 7239ad4c0b41Santirez enable_lazy_lock="1" 7240ad4c0b41Santirezfi 7241a78e148bSantirezif test "x$enable_lazy_lock" = "x1" ; then 7242ad4c0b41Santirez if test "x$abi" != "xpecoff" ; then 7243a78e148bSantirez for ac_header in dlfcn.h 7244a78e148bSantirezdo : 7245a78e148bSantirez ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 7246ad4c0b41Santirezif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7247a78e148bSantirez cat >>confdefs.h <<_ACEOF 7248a78e148bSantirez#define HAVE_DLFCN_H 1 7249a78e148bSantirez_ACEOF 7250a78e148bSantirez 7251a78e148bSantirezelse 7252ad4c0b41Santirez as_fn_error $? "dlfcn.h is missing" "$LINENO" 5 7253a78e148bSantirezfi 7254a78e148bSantirez 7255a78e148bSantirezdone 7256a78e148bSantirez 7257ad4c0b41Santirez ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 7258ad4c0b41Santirezif test "x$ac_cv_func_dlsym" = xyes; then : 7259ad4c0b41Santirez 7260ad4c0b41Santirezelse 7261ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 7262ad4c0b41Santirez$as_echo_n "checking for dlsym in -ldl... " >&6; } 7263ad4c0b41Santirezif ${ac_cv_lib_dl_dlsym+:} false; then : 7264a78e148bSantirez $as_echo_n "(cached) " >&6 7265a78e148bSantirezelse 7266a78e148bSantirez ac_check_lib_save_LIBS=$LIBS 7267a78e148bSantirezLIBS="-ldl $LIBS" 7268a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269a78e148bSantirez/* end confdefs.h. */ 7270a78e148bSantirez 7271a78e148bSantirez/* Override any GCC internal prototype to avoid an error. 7272a78e148bSantirez Use char because int might match the return type of a GCC 7273a78e148bSantirez builtin and then its argument prototype would still apply. */ 7274a78e148bSantirez#ifdef __cplusplus 7275a78e148bSantirezextern "C" 7276a78e148bSantirez#endif 7277ad4c0b41Santirezchar dlsym (); 7278a78e148bSantirezint 7279a78e148bSantirezmain () 7280a78e148bSantirez{ 7281ad4c0b41Santirezreturn dlsym (); 7282a78e148bSantirez ; 7283a78e148bSantirez return 0; 7284a78e148bSantirez} 7285a78e148bSantirez_ACEOF 7286a78e148bSantirezif ac_fn_c_try_link "$LINENO"; then : 7287ad4c0b41Santirez ac_cv_lib_dl_dlsym=yes 7288a78e148bSantirezelse 7289ad4c0b41Santirez ac_cv_lib_dl_dlsym=no 7290a78e148bSantirezfi 7291a78e148bSantirezrm -f core conftest.err conftest.$ac_objext \ 7292a78e148bSantirez conftest$ac_exeext conftest.$ac_ext 7293a78e148bSantirezLIBS=$ac_check_lib_save_LIBS 7294a78e148bSantirezfi 7295ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 7296ad4c0b41Santirez$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 7297ad4c0b41Santirezif test "x$ac_cv_lib_dl_dlsym" = xyes; then : 7298a78e148bSantirez LIBS="$LIBS -ldl" 7299a78e148bSantirezelse 7300ad4c0b41Santirez as_fn_error $? "libdl is missing" "$LINENO" 5 7301a78e148bSantirezfi 7302a78e148bSantirez 7303ad4c0b41Santirez 7304ad4c0b41Santirezfi 7305ad4c0b41Santirez 7306ad4c0b41Santirez fi 7307a78e148bSantirez $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h 7308a78e148bSantirez 7309*5268379eSantirezelse 7310*5268379eSantirez enable_lazy_lock="0" 7311a78e148bSantirezfi 7312a78e148bSantirez 7313a78e148bSantirez 7314a78e148bSantirez# Check whether --enable-tls was given. 7315a78e148bSantirezif test "${enable_tls+set}" = set; then : 7316a78e148bSantirez enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then 7317a78e148bSantirez enable_tls="0" 7318a78e148bSantirezelse 7319a78e148bSantirez enable_tls="1" 7320a78e148bSantirezfi 7321a78e148bSantirez 7322a78e148bSantirezelse 7323*5268379eSantirez enable_tls="" 7324a78e148bSantirez 7325a78e148bSantirezfi 7326a78e148bSantirez 7327*5268379eSantirezif test "x${enable_tls}" = "x" ; then 7328*5268379eSantirez if test "x${force_tls}" = "x1" ; then 7329ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5 7330ad4c0b41Santirez$as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; } 7331ad4c0b41Santirez enable_tls="1" 7332*5268379eSantirez elif test "x${force_tls}" = "x0" ; then 7333ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5 7334ad4c0b41Santirez$as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; } 7335ad4c0b41Santirez enable_tls="0" 7336*5268379eSantirez else 7337*5268379eSantirez enable_tls="1" 7338*5268379eSantirez fi 7339ad4c0b41Santirezfi 7340a78e148bSantirezif test "x${enable_tls}" = "x1" ; then 7341a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 7342a78e148bSantirez$as_echo_n "checking for TLS... " >&6; } 7343a78e148bSantirezcat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344a78e148bSantirez/* end confdefs.h. */ 7345a78e148bSantirez 7346a78e148bSantirez __thread int x; 7347a78e148bSantirez 7348a78e148bSantirezint 7349a78e148bSantirezmain () 7350a78e148bSantirez{ 7351a78e148bSantirez 7352a78e148bSantirez x = 42; 7353a78e148bSantirez 7354a78e148bSantirez return 0; 7355a78e148bSantirez 7356a78e148bSantirez ; 7357a78e148bSantirez return 0; 7358a78e148bSantirez} 7359a78e148bSantirez_ACEOF 7360ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7361a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7362a78e148bSantirez$as_echo "yes" >&6; } 7363a78e148bSantirezelse 7364a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7365a78e148bSantirez$as_echo "no" >&6; } 7366a78e148bSantirez enable_tls="0" 7367a78e148bSantirezfi 7368ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7369*5268379eSantirezelse 7370*5268379eSantirez enable_tls="0" 7371a78e148bSantirezfi 7372a78e148bSantirez 7373ad4c0b41Santirezif test "x${enable_tls}" = "x1" ; then 7374*5268379eSantirez if test "x${force_tls}" = "x0" ; then 7375*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS enabled despite being marked unusable on this platform" >&5 7376*5268379eSantirez$as_echo "$as_me: WARNING: TLS enabled despite being marked unusable on this platform" >&2;} 7377*5268379eSantirez fi 7378a78e148bSantirez cat >>confdefs.h <<_ACEOF 7379ad4c0b41Santirez#define JEMALLOC_TLS 7380a78e148bSantirez_ACEOF 7381a78e148bSantirez 7382ad4c0b41Santirezelif test "x${force_tls}" = "x1" ; then 7383*5268379eSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled despite being marked critical on this platform" >&5 7384*5268379eSantirez$as_echo "$as_me: WARNING: TLS disabled despite being marked critical on this platform" >&2;} 7385a78e148bSantirezfi 7386a78e148bSantirez 7387a78e148bSantirez 7388*5268379eSantirez 7389*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5 7390*5268379eSantirez$as_echo_n "checking whether C11 atomics is compilable... " >&6; } 7391*5268379eSantirezif ${je_cv_c11atomics+:} false; then : 7392ad4c0b41Santirez $as_echo_n "(cached) " >&6 7393a78e148bSantirezelse 7394ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395ad4c0b41Santirez/* end confdefs.h. */ 7396ad4c0b41Santirez 7397*5268379eSantirez#include <stdint.h> 7398*5268379eSantirez#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) 7399*5268379eSantirez#include <stdatomic.h> 7400*5268379eSantirez#else 7401*5268379eSantirez#error Atomics not available 7402*5268379eSantirez#endif 7403ad4c0b41Santirez 7404ad4c0b41Santirezint 7405ad4c0b41Santirezmain () 7406ad4c0b41Santirez{ 7407ad4c0b41Santirez 7408*5268379eSantirez uint64_t *p = (uint64_t *)0; 7409*5268379eSantirez uint64_t x = 1; 7410*5268379eSantirez volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p; 7411*5268379eSantirez uint64_t r = atomic_fetch_add(a, x) + x; 7412*5268379eSantirez return (r == 0); 7413ad4c0b41Santirez 7414ad4c0b41Santirez ; 7415ad4c0b41Santirez return 0; 7416ad4c0b41Santirez} 7417ad4c0b41Santirez_ACEOF 7418ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7419*5268379eSantirez je_cv_c11atomics=yes 7420ad4c0b41Santirezelse 7421*5268379eSantirez je_cv_c11atomics=no 7422ad4c0b41Santirezfi 7423ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7424ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7425ad4c0b41Santirezfi 7426*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11atomics" >&5 7427*5268379eSantirez$as_echo "$je_cv_c11atomics" >&6; } 7428ad4c0b41Santirez 7429*5268379eSantirezif test "x${je_cv_c11atomics}" = "xyes" ; then 7430*5268379eSantirez $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h 7431*5268379eSantirez 7432a78e148bSantirezfi 7433a78e148bSantirez 7434a78e148bSantirez 7435a78e148bSantirez 7436ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5 7437ad4c0b41Santirez$as_echo_n "checking whether atomic(9) is compilable... " >&6; } 7438ad4c0b41Santirezif ${je_cv_atomic9+:} false; then : 7439ad4c0b41Santirez $as_echo_n "(cached) " >&6 7440ad4c0b41Santirezelse 7441ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442ad4c0b41Santirez/* end confdefs.h. */ 7443ad4c0b41Santirez 7444ad4c0b41Santirez#include <sys/types.h> 7445ad4c0b41Santirez#include <machine/atomic.h> 7446ad4c0b41Santirez#include <inttypes.h> 7447ad4c0b41Santirez 7448ad4c0b41Santirezint 7449ad4c0b41Santirezmain () 7450ad4c0b41Santirez{ 7451ad4c0b41Santirez 7452ad4c0b41Santirez { 7453ad4c0b41Santirez uint32_t x32 = 0; 7454ad4c0b41Santirez volatile uint32_t *x32p = &x32; 7455ad4c0b41Santirez atomic_fetchadd_32(x32p, 1); 7456ad4c0b41Santirez } 7457ad4c0b41Santirez { 7458ad4c0b41Santirez unsigned long xlong = 0; 7459ad4c0b41Santirez volatile unsigned long *xlongp = &xlong; 7460ad4c0b41Santirez atomic_fetchadd_long(xlongp, 1); 7461ad4c0b41Santirez } 7462ad4c0b41Santirez 7463ad4c0b41Santirez ; 7464ad4c0b41Santirez return 0; 7465ad4c0b41Santirez} 7466ad4c0b41Santirez_ACEOF 7467ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7468ad4c0b41Santirez je_cv_atomic9=yes 7469ad4c0b41Santirezelse 7470ad4c0b41Santirez je_cv_atomic9=no 7471ad4c0b41Santirezfi 7472ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7473ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7474ad4c0b41Santirezfi 7475ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5 7476ad4c0b41Santirez$as_echo "$je_cv_atomic9" >&6; } 7477ad4c0b41Santirez 7478ad4c0b41Santirezif test "x${je_cv_atomic9}" = "xyes" ; then 7479ad4c0b41Santirez $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h 7480ad4c0b41Santirez 7481ad4c0b41Santirezfi 7482ad4c0b41Santirez 7483ad4c0b41Santirez 7484a78e148bSantirez 7485a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5 7486a78e148bSantirez$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; } 7487ad4c0b41Santirezif ${je_cv_osatomic+:} false; then : 7488ad4c0b41Santirez $as_echo_n "(cached) " >&6 7489a78e148bSantirezelse 7490a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491a78e148bSantirez/* end confdefs.h. */ 7492a78e148bSantirez 7493a78e148bSantirez#include <libkern/OSAtomic.h> 7494a78e148bSantirez#include <inttypes.h> 7495a78e148bSantirez 7496a78e148bSantirezint 7497a78e148bSantirezmain () 7498a78e148bSantirez{ 7499a78e148bSantirez 7500a78e148bSantirez { 7501a78e148bSantirez int32_t x32 = 0; 7502a78e148bSantirez volatile int32_t *x32p = &x32; 7503a78e148bSantirez OSAtomicAdd32(1, x32p); 7504a78e148bSantirez } 7505a78e148bSantirez { 7506a78e148bSantirez int64_t x64 = 0; 7507a78e148bSantirez volatile int64_t *x64p = &x64; 7508a78e148bSantirez OSAtomicAdd64(1, x64p); 7509a78e148bSantirez } 7510a78e148bSantirez 7511a78e148bSantirez ; 7512a78e148bSantirez return 0; 7513a78e148bSantirez} 7514a78e148bSantirez_ACEOF 7515ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7516ad4c0b41Santirez je_cv_osatomic=yes 7517a78e148bSantirezelse 7518ad4c0b41Santirez je_cv_osatomic=no 7519a78e148bSantirezfi 7520ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7521ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7522ad4c0b41Santirezfi 7523ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5 7524ad4c0b41Santirez$as_echo "$je_cv_osatomic" >&6; } 7525ad4c0b41Santirez 7526ad4c0b41Santirezif test "x${je_cv_osatomic}" = "xyes" ; then 7527ad4c0b41Santirez $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h 7528ad4c0b41Santirez 7529a78e148bSantirezfi 7530a78e148bSantirez 7531a78e148bSantirez 7532ad4c0b41Santirez 7533*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5 7534*5268379eSantirez$as_echo_n "checking whether madvise(2) is compilable... " >&6; } 7535*5268379eSantirezif ${je_cv_madvise+:} false; then : 7536*5268379eSantirez $as_echo_n "(cached) " >&6 7537*5268379eSantirezelse 7538*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539*5268379eSantirez/* end confdefs.h. */ 7540*5268379eSantirez 7541*5268379eSantirez#include <sys/mman.h> 7542*5268379eSantirez 7543*5268379eSantirezint 7544*5268379eSantirezmain () 7545*5268379eSantirez{ 7546*5268379eSantirez 7547*5268379eSantirez { 7548*5268379eSantirez madvise((void *)0, 0, 0); 7549*5268379eSantirez } 7550*5268379eSantirez 7551*5268379eSantirez ; 7552*5268379eSantirez return 0; 7553*5268379eSantirez} 7554*5268379eSantirez_ACEOF 7555*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 7556*5268379eSantirez je_cv_madvise=yes 7557*5268379eSantirezelse 7558*5268379eSantirez je_cv_madvise=no 7559*5268379eSantirezfi 7560*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 7561*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 7562*5268379eSantirezfi 7563*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5 7564*5268379eSantirez$as_echo "$je_cv_madvise" >&6; } 7565*5268379eSantirez 7566*5268379eSantirezif test "x${je_cv_madvise}" = "xyes" ; then 7567*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h 7568*5268379eSantirez 7569*5268379eSantirezfi 7570*5268379eSantirez 7571*5268379eSantirez 7572*5268379eSantirez 7573ad4c0b41Santirez 7574ad4c0b41Santirezif test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then 7575ad4c0b41Santirez 7576ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5 7577ad4c0b41Santirez$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; } 7578ad4c0b41Santirezif ${je_cv_sync_compare_and_swap_4+:} false; then : 7579ad4c0b41Santirez $as_echo_n "(cached) " >&6 7580ad4c0b41Santirezelse 7581ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582ad4c0b41Santirez/* end confdefs.h. */ 7583ad4c0b41Santirez 7584ad4c0b41Santirez #include <stdint.h> 7585ad4c0b41Santirez 7586ad4c0b41Santirezint 7587ad4c0b41Santirezmain () 7588ad4c0b41Santirez{ 7589ad4c0b41Santirez 7590ad4c0b41Santirez #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 7591ad4c0b41Santirez { 7592ad4c0b41Santirez uint32_t x32 = 0; 7593ad4c0b41Santirez __sync_add_and_fetch(&x32, 42); 7594ad4c0b41Santirez __sync_sub_and_fetch(&x32, 1); 7595ad4c0b41Santirez } 7596ad4c0b41Santirez #else 7597ad4c0b41Santirez #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force 7598ad4c0b41Santirez #endif 7599ad4c0b41Santirez 7600ad4c0b41Santirez ; 7601ad4c0b41Santirez return 0; 7602ad4c0b41Santirez} 7603ad4c0b41Santirez_ACEOF 7604ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7605ad4c0b41Santirez je_cv_sync_compare_and_swap_4=yes 7606ad4c0b41Santirezelse 7607ad4c0b41Santirez je_cv_sync_compare_and_swap_4=no 7608ad4c0b41Santirezfi 7609ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7610ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7611ad4c0b41Santirezfi 7612ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5 7613ad4c0b41Santirez$as_echo "$je_cv_sync_compare_and_swap_4" >&6; } 7614ad4c0b41Santirez 7615ad4c0b41Santirez if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then 7616ad4c0b41Santirez $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h 7617ad4c0b41Santirez 7618ad4c0b41Santirez fi 7619ad4c0b41Santirez 7620ad4c0b41Santirez 7621ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5 7622ad4c0b41Santirez$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; } 7623ad4c0b41Santirezif ${je_cv_sync_compare_and_swap_8+:} false; then : 7624ad4c0b41Santirez $as_echo_n "(cached) " >&6 7625ad4c0b41Santirezelse 7626ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627ad4c0b41Santirez/* end confdefs.h. */ 7628ad4c0b41Santirez 7629ad4c0b41Santirez #include <stdint.h> 7630ad4c0b41Santirez 7631ad4c0b41Santirezint 7632ad4c0b41Santirezmain () 7633ad4c0b41Santirez{ 7634ad4c0b41Santirez 7635ad4c0b41Santirez #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 7636ad4c0b41Santirez { 7637ad4c0b41Santirez uint64_t x64 = 0; 7638ad4c0b41Santirez __sync_add_and_fetch(&x64, 42); 7639ad4c0b41Santirez __sync_sub_and_fetch(&x64, 1); 7640ad4c0b41Santirez } 7641ad4c0b41Santirez #else 7642ad4c0b41Santirez #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force 7643ad4c0b41Santirez #endif 7644ad4c0b41Santirez 7645ad4c0b41Santirez ; 7646ad4c0b41Santirez return 0; 7647ad4c0b41Santirez} 7648ad4c0b41Santirez_ACEOF 7649ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7650ad4c0b41Santirez je_cv_sync_compare_and_swap_8=yes 7651ad4c0b41Santirezelse 7652ad4c0b41Santirez je_cv_sync_compare_and_swap_8=no 7653ad4c0b41Santirezfi 7654ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7655ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7656ad4c0b41Santirezfi 7657ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5 7658ad4c0b41Santirez$as_echo "$je_cv_sync_compare_and_swap_8" >&6; } 7659ad4c0b41Santirez 7660ad4c0b41Santirez if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then 7661ad4c0b41Santirez $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h 7662ad4c0b41Santirez 7663ad4c0b41Santirez fi 7664a78e148bSantirez 7665a78e148bSantirezfi 7666a78e148bSantirez 7667a78e148bSantirez 7668*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 7669*5268379eSantirez$as_echo_n "checking for __builtin_clz... " >&6; } 7670*5268379eSantirezif ${je_cv_builtin_clz+:} false; then : 7671*5268379eSantirez $as_echo_n "(cached) " >&6 7672*5268379eSantirezelse 7673*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674*5268379eSantirez/* end confdefs.h. */ 7675*5268379eSantirez 7676*5268379eSantirezint 7677*5268379eSantirezmain () 7678*5268379eSantirez{ 7679*5268379eSantirez 7680*5268379eSantirez { 7681*5268379eSantirez unsigned x = 0; 7682*5268379eSantirez int y = __builtin_clz(x); 7683*5268379eSantirez } 7684*5268379eSantirez { 7685*5268379eSantirez unsigned long x = 0; 7686*5268379eSantirez int y = __builtin_clzl(x); 7687*5268379eSantirez } 7688*5268379eSantirez 7689*5268379eSantirez ; 7690*5268379eSantirez return 0; 7691*5268379eSantirez} 7692*5268379eSantirez_ACEOF 7693*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 7694*5268379eSantirez je_cv_builtin_clz=yes 7695*5268379eSantirezelse 7696*5268379eSantirez je_cv_builtin_clz=no 7697*5268379eSantirezfi 7698*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 7699*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 7700*5268379eSantirezfi 7701*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5 7702*5268379eSantirez$as_echo "$je_cv_builtin_clz" >&6; } 7703*5268379eSantirez 7704*5268379eSantirezif test "x${je_cv_builtin_clz}" = "xyes" ; then 7705*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h 7706*5268379eSantirez 7707*5268379eSantirezfi 7708*5268379eSantirez 7709*5268379eSantirez 7710a78e148bSantirez 7711a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5 7712a78e148bSantirez$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; } 7713ad4c0b41Santirezif ${je_cv_osspin+:} false; then : 7714ad4c0b41Santirez $as_echo_n "(cached) " >&6 7715a78e148bSantirezelse 7716a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717a78e148bSantirez/* end confdefs.h. */ 7718a78e148bSantirez 7719a78e148bSantirez#include <libkern/OSAtomic.h> 7720a78e148bSantirez#include <inttypes.h> 7721a78e148bSantirez 7722a78e148bSantirezint 7723a78e148bSantirezmain () 7724a78e148bSantirez{ 7725a78e148bSantirez 7726a78e148bSantirez OSSpinLock lock = 0; 7727a78e148bSantirez OSSpinLockLock(&lock); 7728a78e148bSantirez OSSpinLockUnlock(&lock); 7729a78e148bSantirez 7730a78e148bSantirez ; 7731a78e148bSantirez return 0; 7732a78e148bSantirez} 7733a78e148bSantirez_ACEOF 7734ad4c0b41Santirezif ac_fn_c_try_link "$LINENO"; then : 7735ad4c0b41Santirez je_cv_osspin=yes 7736a78e148bSantirezelse 7737ad4c0b41Santirez je_cv_osspin=no 7738ad4c0b41Santirezfi 7739ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext \ 7740ad4c0b41Santirez conftest$ac_exeext conftest.$ac_ext 7741ad4c0b41Santirezfi 7742ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5 7743ad4c0b41Santirez$as_echo "$je_cv_osspin" >&6; } 7744ad4c0b41Santirez 7745ad4c0b41Santirezif test "x${je_cv_osspin}" = "xyes" ; then 7746ad4c0b41Santirez $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h 7747a78e148bSantirez 7748a78e148bSantirezfi 7749a78e148bSantirez 7750a78e148bSantirez 7751fceef8e0Santirez# Check whether --enable-zone-allocator was given. 7752fceef8e0Santirezif test "${enable_zone_allocator+set}" = set; then : 7753fceef8e0Santirez enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then 7754fceef8e0Santirez enable_zone_allocator="0" 7755fceef8e0Santirezelse 7756fceef8e0Santirez enable_zone_allocator="1" 7757fceef8e0Santirezfi 7758fceef8e0Santirez 7759fceef8e0Santirezelse 7760a78e148bSantirez if test "x${abi}" = "xmacho"; then 7761fceef8e0Santirez enable_zone_allocator="1" 7762fceef8e0Santirezfi 7763fceef8e0Santirez 7764fceef8e0Santirez 7765fceef8e0Santirezfi 7766fceef8e0Santirez 7767fceef8e0Santirez 7768fceef8e0Santirez 7769fceef8e0Santirezif test "x${enable_zone_allocator}" = "x1" ; then 7770fceef8e0Santirez if test "x${abi}" != "xmacho"; then 7771fceef8e0Santirez as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5 7772fceef8e0Santirez fi 7773ad4c0b41Santirez $as_echo "#define JEMALLOC_ZONE " >>confdefs.h 7774a78e148bSantirez 7775a78e148bSantirez 7776a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5 7777a78e148bSantirez$as_echo_n "checking malloc zone version... " >&6; } 7778ad4c0b41Santirez 7779ad4c0b41Santirez 7780a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781a78e148bSantirez/* end confdefs.h. */ 7782a78e148bSantirez#include <malloc/malloc.h> 7783a78e148bSantirezint 7784a78e148bSantirezmain () 7785a78e148bSantirez{ 7786*5268379eSantirezstatic int foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1] 7787a78e148bSantirez 7788a78e148bSantirez ; 7789a78e148bSantirez return 0; 7790a78e148bSantirez} 7791a78e148bSantirez_ACEOF 7792a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 7793ad4c0b41Santirez JEMALLOC_ZONE_VERSION=3 7794a78e148bSantirezelse 7795a78e148bSantirez 7796ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797ad4c0b41Santirez/* end confdefs.h. */ 7798ad4c0b41Santirez#include <malloc/malloc.h> 7799ad4c0b41Santirezint 7800ad4c0b41Santirezmain () 7801ad4c0b41Santirez{ 7802*5268379eSantirezstatic int foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1] 7803ad4c0b41Santirez 7804ad4c0b41Santirez ; 7805ad4c0b41Santirez return 0; 7806ad4c0b41Santirez} 7807ad4c0b41Santirez_ACEOF 7808ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7809ad4c0b41Santirez JEMALLOC_ZONE_VERSION=5 7810ad4c0b41Santirezelse 7811ad4c0b41Santirez 7812ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813ad4c0b41Santirez/* end confdefs.h. */ 7814ad4c0b41Santirez#include <malloc/malloc.h> 7815ad4c0b41Santirezint 7816ad4c0b41Santirezmain () 7817ad4c0b41Santirez{ 7818*5268379eSantirezstatic int foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1] 7819ad4c0b41Santirez 7820ad4c0b41Santirez ; 7821ad4c0b41Santirez return 0; 7822ad4c0b41Santirez} 7823ad4c0b41Santirez_ACEOF 7824ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7825ad4c0b41Santirez 7826ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827ad4c0b41Santirez/* end confdefs.h. */ 7828ad4c0b41Santirez#include <malloc/malloc.h> 7829ad4c0b41Santirezint 7830ad4c0b41Santirezmain () 7831ad4c0b41Santirez{ 7832*5268379eSantirezstatic int foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1] 7833ad4c0b41Santirez 7834ad4c0b41Santirez ; 7835ad4c0b41Santirez return 0; 7836ad4c0b41Santirez} 7837ad4c0b41Santirez_ACEOF 7838ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7839ad4c0b41Santirez JEMALLOC_ZONE_VERSION=6 7840ad4c0b41Santirezelse 7841ad4c0b41Santirez 7842ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843ad4c0b41Santirez/* end confdefs.h. */ 7844ad4c0b41Santirez#include <malloc/malloc.h> 7845ad4c0b41Santirezint 7846ad4c0b41Santirezmain () 7847ad4c0b41Santirez{ 7848*5268379eSantirezstatic int foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1] 7849ad4c0b41Santirez 7850ad4c0b41Santirez ; 7851ad4c0b41Santirez return 0; 7852ad4c0b41Santirez} 7853ad4c0b41Santirez_ACEOF 7854ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7855ad4c0b41Santirez JEMALLOC_ZONE_VERSION=7 7856ad4c0b41Santirezelse 7857ad4c0b41Santirez JEMALLOC_ZONE_VERSION= 7858ad4c0b41Santirez 7859a78e148bSantirezfi 7860a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7861a78e148bSantirezfi 7862ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863ad4c0b41Santirezelse 7864ad4c0b41Santirez 7865ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866ad4c0b41Santirez/* end confdefs.h. */ 7867ad4c0b41Santirez#include <malloc/malloc.h> 7868ad4c0b41Santirezint 7869ad4c0b41Santirezmain () 7870ad4c0b41Santirez{ 7871*5268379eSantirezstatic int foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1] 7872ad4c0b41Santirez 7873ad4c0b41Santirez ; 7874ad4c0b41Santirez return 0; 7875ad4c0b41Santirez} 7876ad4c0b41Santirez_ACEOF 7877ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7878ad4c0b41Santirez JEMALLOC_ZONE_VERSION=8 7879ad4c0b41Santirezelse 7880ad4c0b41Santirez 7881ad4c0b41Santirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882ad4c0b41Santirez/* end confdefs.h. */ 7883ad4c0b41Santirez#include <malloc/malloc.h> 7884ad4c0b41Santirezint 7885ad4c0b41Santirezmain () 7886ad4c0b41Santirez{ 7887*5268379eSantirezstatic int foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1] 7888ad4c0b41Santirez 7889ad4c0b41Santirez ; 7890ad4c0b41Santirez return 0; 7891ad4c0b41Santirez} 7892ad4c0b41Santirez_ACEOF 7893ad4c0b41Santirezif ac_fn_c_try_compile "$LINENO"; then : 7894ad4c0b41Santirez JEMALLOC_ZONE_VERSION=9 7895ad4c0b41Santirezelse 7896ad4c0b41Santirez JEMALLOC_ZONE_VERSION= 7897ad4c0b41Santirez 7898ad4c0b41Santirezfi 7899ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7900ad4c0b41Santirezfi 7901ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902ad4c0b41Santirezfi 7903ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7904ad4c0b41Santirezfi 7905ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7906ad4c0b41Santirezfi 7907ad4c0b41Santirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7908ad4c0b41Santirez if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then 7909ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7910ad4c0b41Santirez$as_echo "unsupported" >&6; } 7911ad4c0b41Santirez as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5 7912ad4c0b41Santirez fi 7913ad4c0b41Santirez if test "${JEMALLOC_ZONE_VERSION}" = 9; then 7914ad4c0b41Santirez JEMALLOC_ZONE_VERSION=8 7915ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5 7916ad4c0b41Santirez$as_echo "> 8" >&6; } 7917ad4c0b41Santirez else 7918ad4c0b41Santirez { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5 7919ad4c0b41Santirez$as_echo "$JEMALLOC_ZONE_VERSION" >&6; } 7920ad4c0b41Santirez fi 7921ad4c0b41Santirez cat >>confdefs.h <<_ACEOF 7922ad4c0b41Santirez#define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION 7923ad4c0b41Santirez_ACEOF 7924ad4c0b41Santirez 7925ad4c0b41Santirezfi 7926a78e148bSantirez 7927*5268379eSantirez 7928*5268379eSantirez 7929*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5 7930*5268379eSantirez$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; } 7931*5268379eSantirezif ${je_cv_glibc_malloc_hook+:} false; then : 7932*5268379eSantirez $as_echo_n "(cached) " >&6 7933*5268379eSantirezelse 7934*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935*5268379eSantirez/* end confdefs.h. */ 7936*5268379eSantirez 7937*5268379eSantirez#include <stddef.h> 7938*5268379eSantirez 7939*5268379eSantirezextern void (* __free_hook)(void *ptr); 7940*5268379eSantirezextern void *(* __malloc_hook)(size_t size); 7941*5268379eSantirezextern void *(* __realloc_hook)(void *ptr, size_t size); 7942*5268379eSantirez 7943*5268379eSantirezint 7944*5268379eSantirezmain () 7945*5268379eSantirez{ 7946*5268379eSantirez 7947*5268379eSantirez void *ptr = 0L; 7948*5268379eSantirez if (__malloc_hook) ptr = __malloc_hook(1); 7949*5268379eSantirez if (__realloc_hook) ptr = __realloc_hook(ptr, 2); 7950*5268379eSantirez if (__free_hook && ptr) __free_hook(ptr); 7951*5268379eSantirez 7952*5268379eSantirez ; 7953*5268379eSantirez return 0; 7954*5268379eSantirez} 7955*5268379eSantirez_ACEOF 7956*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 7957*5268379eSantirez je_cv_glibc_malloc_hook=yes 7958*5268379eSantirezelse 7959*5268379eSantirez je_cv_glibc_malloc_hook=no 7960*5268379eSantirezfi 7961*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 7962*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 7963*5268379eSantirezfi 7964*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5 7965*5268379eSantirez$as_echo "$je_cv_glibc_malloc_hook" >&6; } 7966*5268379eSantirez 7967*5268379eSantirezif test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then 7968*5268379eSantirez $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h 7969*5268379eSantirez 7970*5268379eSantirezfi 7971*5268379eSantirez 7972*5268379eSantirez 7973*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5 7974*5268379eSantirez$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; } 7975*5268379eSantirezif ${je_cv_glibc_memalign_hook+:} false; then : 7976*5268379eSantirez $as_echo_n "(cached) " >&6 7977*5268379eSantirezelse 7978*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979*5268379eSantirez/* end confdefs.h. */ 7980*5268379eSantirez 7981*5268379eSantirez#include <stddef.h> 7982*5268379eSantirez 7983*5268379eSantirezextern void *(* __memalign_hook)(size_t alignment, size_t size); 7984*5268379eSantirez 7985*5268379eSantirezint 7986*5268379eSantirezmain () 7987*5268379eSantirez{ 7988*5268379eSantirez 7989*5268379eSantirez void *ptr = 0L; 7990*5268379eSantirez if (__memalign_hook) ptr = __memalign_hook(16, 7); 7991*5268379eSantirez 7992*5268379eSantirez ; 7993*5268379eSantirez return 0; 7994*5268379eSantirez} 7995*5268379eSantirez_ACEOF 7996*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 7997*5268379eSantirez je_cv_glibc_memalign_hook=yes 7998*5268379eSantirezelse 7999*5268379eSantirez je_cv_glibc_memalign_hook=no 8000*5268379eSantirezfi 8001*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 8002*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 8003*5268379eSantirezfi 8004*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5 8005*5268379eSantirez$as_echo "$je_cv_glibc_memalign_hook" >&6; } 8006*5268379eSantirez 8007*5268379eSantirezif test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then 8008*5268379eSantirez $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h 8009*5268379eSantirez 8010*5268379eSantirezfi 8011*5268379eSantirez 8012*5268379eSantirez 8013*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5 8014*5268379eSantirez$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; } 8015*5268379eSantirezif ${je_cv_pthread_mutex_adaptive_np+:} false; then : 8016*5268379eSantirez $as_echo_n "(cached) " >&6 8017*5268379eSantirezelse 8018*5268379eSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019*5268379eSantirez/* end confdefs.h. */ 8020*5268379eSantirez 8021*5268379eSantirez#include <pthread.h> 8022*5268379eSantirez 8023*5268379eSantirezint 8024*5268379eSantirezmain () 8025*5268379eSantirez{ 8026*5268379eSantirez 8027*5268379eSantirez pthread_mutexattr_t attr; 8028*5268379eSantirez pthread_mutexattr_init(&attr); 8029*5268379eSantirez pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); 8030*5268379eSantirez pthread_mutexattr_destroy(&attr); 8031*5268379eSantirez 8032*5268379eSantirez ; 8033*5268379eSantirez return 0; 8034*5268379eSantirez} 8035*5268379eSantirez_ACEOF 8036*5268379eSantirezif ac_fn_c_try_link "$LINENO"; then : 8037*5268379eSantirez je_cv_pthread_mutex_adaptive_np=yes 8038*5268379eSantirezelse 8039*5268379eSantirez je_cv_pthread_mutex_adaptive_np=no 8040*5268379eSantirezfi 8041*5268379eSantirezrm -f core conftest.err conftest.$ac_objext \ 8042*5268379eSantirez conftest$ac_exeext conftest.$ac_ext 8043*5268379eSantirezfi 8044*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5 8045*5268379eSantirez$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; } 8046*5268379eSantirez 8047*5268379eSantirezif test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then 8048*5268379eSantirez $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h 8049*5268379eSantirez 8050*5268379eSantirezfi 8051*5268379eSantirez 8052a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8053a78e148bSantirez$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8054ad4c0b41Santirezif ${ac_cv_header_stdbool_h+:} false; then : 8055a78e148bSantirez $as_echo_n "(cached) " >&6 8056a78e148bSantirezelse 8057a78e148bSantirez cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058a78e148bSantirez/* end confdefs.h. */ 8059a78e148bSantirez 8060a78e148bSantirez #include <stdbool.h> 8061a78e148bSantirez #ifndef bool 8062a78e148bSantirez "error: bool is not defined" 8063a78e148bSantirez #endif 8064a78e148bSantirez #ifndef false 8065a78e148bSantirez "error: false is not defined" 8066a78e148bSantirez #endif 8067a78e148bSantirez #if false 8068a78e148bSantirez "error: false is not 0" 8069a78e148bSantirez #endif 8070a78e148bSantirez #ifndef true 8071a78e148bSantirez "error: true is not defined" 8072a78e148bSantirez #endif 8073a78e148bSantirez #if true != 1 8074a78e148bSantirez "error: true is not 1" 8075a78e148bSantirez #endif 8076a78e148bSantirez #ifndef __bool_true_false_are_defined 8077a78e148bSantirez "error: __bool_true_false_are_defined is not defined" 8078a78e148bSantirez #endif 8079a78e148bSantirez 8080a78e148bSantirez struct s { _Bool s: 1; _Bool t; } s; 8081a78e148bSantirez 8082a78e148bSantirez char a[true == 1 ? 1 : -1]; 8083a78e148bSantirez char b[false == 0 ? 1 : -1]; 8084a78e148bSantirez char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8085a78e148bSantirez char d[(bool) 0.5 == true ? 1 : -1]; 8086ad4c0b41Santirez /* See body of main program for 'e'. */ 8087a78e148bSantirez char f[(_Bool) 0.0 == false ? 1 : -1]; 8088a78e148bSantirez char g[true]; 8089a78e148bSantirez char h[sizeof (_Bool)]; 8090a78e148bSantirez char i[sizeof s.t]; 8091a78e148bSantirez enum { j = false, k = true, l = false * true, m = true * 256 }; 8092a78e148bSantirez /* The following fails for 8093a78e148bSantirez HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8094a78e148bSantirez _Bool n[m]; 8095a78e148bSantirez char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8096a78e148bSantirez char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8097a78e148bSantirez /* Catch a bug in an HP-UX C compiler. See 8098a78e148bSantirez http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8099a78e148bSantirez http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8100a78e148bSantirez */ 8101a78e148bSantirez _Bool q = true; 8102a78e148bSantirez _Bool *pq = &q; 8103a78e148bSantirez 8104a78e148bSantirezint 8105a78e148bSantirezmain () 8106a78e148bSantirez{ 8107a78e148bSantirez 8108ad4c0b41Santirez bool e = &s; 8109a78e148bSantirez *pq |= q; 8110a78e148bSantirez *pq |= ! q; 8111a78e148bSantirez /* Refer to every declared value, to avoid compiler optimizations. */ 8112a78e148bSantirez return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8113a78e148bSantirez + !m + !n + !o + !p + !q + !pq); 8114a78e148bSantirez 8115a78e148bSantirez ; 8116a78e148bSantirez return 0; 8117a78e148bSantirez} 8118a78e148bSantirez_ACEOF 8119a78e148bSantirezif ac_fn_c_try_compile "$LINENO"; then : 8120a78e148bSantirez ac_cv_header_stdbool_h=yes 8121a78e148bSantirezelse 8122a78e148bSantirez ac_cv_header_stdbool_h=no 8123a78e148bSantirezfi 8124a78e148bSantirezrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125a78e148bSantirezfi 8126a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8127a78e148bSantirez$as_echo "$ac_cv_header_stdbool_h" >&6; } 8128a78e148bSantirez ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8129ad4c0b41Santirezif test "x$ac_cv_type__Bool" = xyes; then : 8130a78e148bSantirez 8131a78e148bSantirezcat >>confdefs.h <<_ACEOF 8132a78e148bSantirez#define HAVE__BOOL 1 8133a78e148bSantirez_ACEOF 8134a78e148bSantirez 8135a78e148bSantirez 8136a78e148bSantirezfi 8137a78e148bSantirez 8138fceef8e0Santirez 8139a78e148bSantirezif test $ac_cv_header_stdbool_h = yes; then 8140a78e148bSantirez 8141a78e148bSantirez$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 8142a78e148bSantirez 8143a78e148bSantirezfi 8144a78e148bSantirez 8145a78e148bSantirez 8146fceef8e0Santirez 8147fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/private_namespace.h" 8148fceef8e0Santirez 8149fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/private_unnamespace.h" 8150fceef8e0Santirez 8151fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt" 8152fceef8e0Santirez 8153fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h" 8154fceef8e0Santirez 8155fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h" 8156fceef8e0Santirez 8157ad4c0b41Santirezac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h" 8158ad4c0b41Santirez 8159fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h" 8160fceef8e0Santirez 8161fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h" 8162fceef8e0Santirez 8163fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h" 8164fceef8e0Santirez 8165fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h" 8166fceef8e0Santirez 8167fceef8e0Santirezac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h" 8168fceef8e0Santirez 8169ad4c0b41Santirez 8170a78e148bSantirez 8171a78e148bSantirez 8172a78e148bSantirezac_config_headers="$ac_config_headers $cfghdrs_tup" 8173a78e148bSantirez 8174a78e148bSantirez 8175fceef8e0Santirez 8176*5268379eSantirezac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof" 8177a78e148bSantirez 8178a78e148bSantirez 8179a78e148bSantirez 8180a78e148bSantirezcat >confcache <<\_ACEOF 8181a78e148bSantirez# This file is a shell script that caches the results of configure 8182a78e148bSantirez# tests run on this system so they can be shared between configure 8183a78e148bSantirez# scripts and configure runs, see configure's option --config-cache. 8184a78e148bSantirez# It is not useful on other systems. If it contains results you don't 8185a78e148bSantirez# want to keep, you may remove or edit it. 8186a78e148bSantirez# 8187a78e148bSantirez# config.status only pays attention to the cache file if you give it 8188a78e148bSantirez# the --recheck option to rerun configure. 8189a78e148bSantirez# 8190a78e148bSantirez# `ac_cv_env_foo' variables (set or unset) will be overridden when 8191a78e148bSantirez# loading this file, other *unset* `ac_cv_foo' will be assigned the 8192a78e148bSantirez# following values. 8193a78e148bSantirez 8194a78e148bSantirez_ACEOF 8195a78e148bSantirez 8196a78e148bSantirez# The following way of writing the cache mishandles newlines in values, 8197a78e148bSantirez# but we know of no workaround that is simple, portable, and efficient. 8198a78e148bSantirez# So, we kill variables containing newlines. 8199a78e148bSantirez# Ultrix sh set writes to stderr and can't be redirected directly, 8200a78e148bSantirez# and sets the high bit in the cache file unless we assign to the vars. 8201a78e148bSantirez( 8202a78e148bSantirez for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8203a78e148bSantirez eval ac_val=\$$ac_var 8204a78e148bSantirez case $ac_val in #( 8205a78e148bSantirez *${as_nl}*) 8206a78e148bSantirez case $ac_var in #( 8207a78e148bSantirez *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8208a78e148bSantirez$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8209a78e148bSantirez esac 8210a78e148bSantirez case $ac_var in #( 8211a78e148bSantirez _ | IFS | as_nl) ;; #( 8212a78e148bSantirez BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8213a78e148bSantirez *) { eval $ac_var=; unset $ac_var;} ;; 8214a78e148bSantirez esac ;; 8215a78e148bSantirez esac 8216a78e148bSantirez done 8217a78e148bSantirez 8218a78e148bSantirez (set) 2>&1 | 8219a78e148bSantirez case $as_nl`(ac_space=' '; set) 2>&1` in #( 8220a78e148bSantirez *${as_nl}ac_space=\ *) 8221a78e148bSantirez # `set' does not quote correctly, so add quotes: double-quote 8222a78e148bSantirez # substitution turns \\\\ into \\, and sed turns \\ into \. 8223a78e148bSantirez sed -n \ 8224a78e148bSantirez "s/'/'\\\\''/g; 8225a78e148bSantirez s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8226a78e148bSantirez ;; #( 8227a78e148bSantirez *) 8228a78e148bSantirez # `set' quotes correctly as required by POSIX, so do not add quotes. 8229a78e148bSantirez sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8230a78e148bSantirez ;; 8231a78e148bSantirez esac | 8232a78e148bSantirez sort 8233a78e148bSantirez) | 8234a78e148bSantirez sed ' 8235a78e148bSantirez /^ac_cv_env_/b end 8236a78e148bSantirez t clear 8237a78e148bSantirez :clear 8238a78e148bSantirez s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8239a78e148bSantirez t end 8240a78e148bSantirez s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8241a78e148bSantirez :end' >>confcache 8242a78e148bSantirezif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8243a78e148bSantirez if test -w "$cache_file"; then 8244ad4c0b41Santirez if test "x$cache_file" != "x/dev/null"; then 8245a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8246a78e148bSantirez$as_echo "$as_me: updating cache $cache_file" >&6;} 8247ad4c0b41Santirez if test ! -f "$cache_file" || test -h "$cache_file"; then 8248ad4c0b41Santirez cat confcache >"$cache_file" 8249ad4c0b41Santirez else 8250ad4c0b41Santirez case $cache_file in #( 8251ad4c0b41Santirez */* | ?:*) 8252ad4c0b41Santirez mv -f confcache "$cache_file"$$ && 8253ad4c0b41Santirez mv -f "$cache_file"$$ "$cache_file" ;; #( 8254ad4c0b41Santirez *) 8255ad4c0b41Santirez mv -f confcache "$cache_file" ;; 8256ad4c0b41Santirez esac 8257ad4c0b41Santirez fi 8258ad4c0b41Santirez fi 8259a78e148bSantirez else 8260a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8261a78e148bSantirez$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8262a78e148bSantirez fi 8263a78e148bSantirezfi 8264a78e148bSantirezrm -f confcache 8265a78e148bSantirez 8266a78e148bSantireztest "x$prefix" = xNONE && prefix=$ac_default_prefix 8267a78e148bSantirez# Let make expand exec_prefix. 8268a78e148bSantireztest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8269a78e148bSantirez 8270a78e148bSantirezDEFS=-DHAVE_CONFIG_H 8271a78e148bSantirez 8272a78e148bSantirezac_libobjs= 8273a78e148bSantirezac_ltlibobjs= 8274ad4c0b41SantirezU= 8275a78e148bSantirezfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8276a78e148bSantirez # 1. Remove the extension, and $U if already installed. 8277a78e148bSantirez ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8278a78e148bSantirez ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8279a78e148bSantirez # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8280a78e148bSantirez # will be set to the directory where LIBOBJS objects are built. 8281a78e148bSantirez as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8282a78e148bSantirez as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8283a78e148bSantirezdone 8284a78e148bSantirezLIBOBJS=$ac_libobjs 8285a78e148bSantirez 8286a78e148bSantirezLTLIBOBJS=$ac_ltlibobjs 8287a78e148bSantirez 8288a78e148bSantirez 8289a78e148bSantirez 8290fceef8e0Santirez 8291ad4c0b41Santirez: "${CONFIG_STATUS=./config.status}" 8292a78e148bSantirezac_write_fail=0 8293a78e148bSantirezac_clean_files_save=$ac_clean_files 8294a78e148bSantirezac_clean_files="$ac_clean_files $CONFIG_STATUS" 8295a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8296a78e148bSantirez$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8297a78e148bSantirezas_write_fail=0 8298a78e148bSantirezcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8299a78e148bSantirez#! $SHELL 8300a78e148bSantirez# Generated by $as_me. 8301a78e148bSantirez# Run this file to recreate the current configuration. 8302a78e148bSantirez# Compiler output produced by configure, useful for debugging 8303a78e148bSantirez# configure, is in config.log if it exists. 8304a78e148bSantirez 8305a78e148bSantirezdebug=false 8306a78e148bSantirezac_cs_recheck=false 8307a78e148bSantirezac_cs_silent=false 8308a78e148bSantirez 8309a78e148bSantirezSHELL=\${CONFIG_SHELL-$SHELL} 8310a78e148bSantirezexport SHELL 8311a78e148bSantirez_ASEOF 8312a78e148bSantirezcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8313a78e148bSantirez## -------------------- ## 8314a78e148bSantirez## M4sh Initialization. ## 8315a78e148bSantirez## -------------------- ## 8316a78e148bSantirez 8317a78e148bSantirez# Be more Bourne compatible 8318a78e148bSantirezDUALCASE=1; export DUALCASE # for MKS sh 8319a78e148bSantirezif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8320a78e148bSantirez emulate sh 8321a78e148bSantirez NULLCMD=: 8322a78e148bSantirez # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8323a78e148bSantirez # is contrary to our usage. Disable this feature. 8324a78e148bSantirez alias -g '${1+"$@"}'='"$@"' 8325a78e148bSantirez setopt NO_GLOB_SUBST 8326a78e148bSantirezelse 8327a78e148bSantirez case `(set -o) 2>/dev/null` in #( 8328a78e148bSantirez *posix*) : 8329a78e148bSantirez set -o posix ;; #( 8330a78e148bSantirez *) : 8331a78e148bSantirez ;; 8332a78e148bSantirezesac 8333a78e148bSantirezfi 8334a78e148bSantirez 8335a78e148bSantirez 8336a78e148bSantirezas_nl=' 8337a78e148bSantirez' 8338a78e148bSantirezexport as_nl 8339a78e148bSantirez# Printing a long string crashes Solaris 7 /usr/bin/printf. 8340a78e148bSantirezas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8341a78e148bSantirezas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8342a78e148bSantirezas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8343a78e148bSantirez# Prefer a ksh shell builtin over an external printf program on Solaris, 8344a78e148bSantirez# but without wasting forks for bash or zsh. 8345a78e148bSantirezif test -z "$BASH_VERSION$ZSH_VERSION" \ 8346a78e148bSantirez && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8347a78e148bSantirez as_echo='print -r --' 8348a78e148bSantirez as_echo_n='print -rn --' 8349a78e148bSantirezelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8350a78e148bSantirez as_echo='printf %s\n' 8351a78e148bSantirez as_echo_n='printf %s' 8352a78e148bSantirezelse 8353a78e148bSantirez if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8354a78e148bSantirez as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8355a78e148bSantirez as_echo_n='/usr/ucb/echo -n' 8356a78e148bSantirez else 8357a78e148bSantirez as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8358a78e148bSantirez as_echo_n_body='eval 8359a78e148bSantirez arg=$1; 8360a78e148bSantirez case $arg in #( 8361a78e148bSantirez *"$as_nl"*) 8362a78e148bSantirez expr "X$arg" : "X\\(.*\\)$as_nl"; 8363a78e148bSantirez arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8364a78e148bSantirez esac; 8365a78e148bSantirez expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8366a78e148bSantirez ' 8367a78e148bSantirez export as_echo_n_body 8368a78e148bSantirez as_echo_n='sh -c $as_echo_n_body as_echo' 8369a78e148bSantirez fi 8370a78e148bSantirez export as_echo_body 8371a78e148bSantirez as_echo='sh -c $as_echo_body as_echo' 8372a78e148bSantirezfi 8373a78e148bSantirez 8374a78e148bSantirez# The user is always right. 8375a78e148bSantirezif test "${PATH_SEPARATOR+set}" != set; then 8376a78e148bSantirez PATH_SEPARATOR=: 8377a78e148bSantirez (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8378a78e148bSantirez (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8379a78e148bSantirez PATH_SEPARATOR=';' 8380a78e148bSantirez } 8381a78e148bSantirezfi 8382a78e148bSantirez 8383a78e148bSantirez 8384a78e148bSantirez# IFS 8385a78e148bSantirez# We need space, tab and new line, in precisely that order. Quoting is 8386a78e148bSantirez# there to prevent editors from complaining about space-tab. 8387a78e148bSantirez# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8388a78e148bSantirez# splitting by setting IFS to empty value.) 8389a78e148bSantirezIFS=" "" $as_nl" 8390a78e148bSantirez 8391a78e148bSantirez# Find who we are. Look in the path if we contain no directory separator. 8392ad4c0b41Santirezas_myself= 8393a78e148bSantirezcase $0 in #(( 8394a78e148bSantirez *[\\/]* ) as_myself=$0 ;; 8395a78e148bSantirez *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396a78e148bSantirezfor as_dir in $PATH 8397a78e148bSantirezdo 8398a78e148bSantirez IFS=$as_save_IFS 8399a78e148bSantirez test -z "$as_dir" && as_dir=. 8400a78e148bSantirez test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8401a78e148bSantirez done 8402a78e148bSantirezIFS=$as_save_IFS 8403a78e148bSantirez 8404a78e148bSantirez ;; 8405a78e148bSantirezesac 8406a78e148bSantirez# We did not find ourselves, most probably we were run as `sh COMMAND' 8407a78e148bSantirez# in which case we are not to be found in the path. 8408a78e148bSantirezif test "x$as_myself" = x; then 8409a78e148bSantirez as_myself=$0 8410a78e148bSantirezfi 8411a78e148bSantirezif test ! -f "$as_myself"; then 8412a78e148bSantirez $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8413a78e148bSantirez exit 1 8414a78e148bSantirezfi 8415a78e148bSantirez 8416a78e148bSantirez# Unset variables that we do not need and which cause bugs (e.g. in 8417a78e148bSantirez# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8418a78e148bSantirez# suppresses any "Segmentation fault" message there. '((' could 8419a78e148bSantirez# trigger a bug in pdksh 5.2.14. 8420a78e148bSantirezfor as_var in BASH_ENV ENV MAIL MAILPATH 8421a78e148bSantirezdo eval test x\${$as_var+set} = xset \ 8422a78e148bSantirez && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8423a78e148bSantirezdone 8424a78e148bSantirezPS1='$ ' 8425a78e148bSantirezPS2='> ' 8426a78e148bSantirezPS4='+ ' 8427a78e148bSantirez 8428a78e148bSantirez# NLS nuisances. 8429a78e148bSantirezLC_ALL=C 8430a78e148bSantirezexport LC_ALL 8431a78e148bSantirezLANGUAGE=C 8432a78e148bSantirezexport LANGUAGE 8433a78e148bSantirez 8434a78e148bSantirez# CDPATH. 8435a78e148bSantirez(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8436a78e148bSantirez 8437a78e148bSantirez 8438ad4c0b41Santirez# as_fn_error STATUS ERROR [LINENO LOG_FD] 8439ad4c0b41Santirez# ---------------------------------------- 8440a78e148bSantirez# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8441a78e148bSantirez# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8442ad4c0b41Santirez# script with STATUS, using 1 if that was 0. 8443a78e148bSantirezas_fn_error () 8444a78e148bSantirez{ 8445ad4c0b41Santirez as_status=$1; test $as_status -eq 0 && as_status=1 8446ad4c0b41Santirez if test "$4"; then 8447ad4c0b41Santirez as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8448ad4c0b41Santirez $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8449a78e148bSantirez fi 8450ad4c0b41Santirez $as_echo "$as_me: error: $2" >&2 8451a78e148bSantirez as_fn_exit $as_status 8452a78e148bSantirez} # as_fn_error 8453a78e148bSantirez 8454a78e148bSantirez 8455a78e148bSantirez# as_fn_set_status STATUS 8456a78e148bSantirez# ----------------------- 8457a78e148bSantirez# Set $? to STATUS, without forking. 8458a78e148bSantirezas_fn_set_status () 8459a78e148bSantirez{ 8460a78e148bSantirez return $1 8461a78e148bSantirez} # as_fn_set_status 8462a78e148bSantirez 8463a78e148bSantirez# as_fn_exit STATUS 8464a78e148bSantirez# ----------------- 8465a78e148bSantirez# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8466a78e148bSantirezas_fn_exit () 8467a78e148bSantirez{ 8468a78e148bSantirez set +e 8469a78e148bSantirez as_fn_set_status $1 8470a78e148bSantirez exit $1 8471a78e148bSantirez} # as_fn_exit 8472a78e148bSantirez 8473a78e148bSantirez# as_fn_unset VAR 8474a78e148bSantirez# --------------- 8475a78e148bSantirez# Portably unset VAR. 8476a78e148bSantirezas_fn_unset () 8477a78e148bSantirez{ 8478a78e148bSantirez { eval $1=; unset $1;} 8479a78e148bSantirez} 8480a78e148bSantirezas_unset=as_fn_unset 8481a78e148bSantirez# as_fn_append VAR VALUE 8482a78e148bSantirez# ---------------------- 8483a78e148bSantirez# Append the text in VALUE to the end of the definition contained in VAR. Take 8484a78e148bSantirez# advantage of any shell optimizations that allow amortized linear growth over 8485a78e148bSantirez# repeated appends, instead of the typical quadratic growth present in naive 8486a78e148bSantirez# implementations. 8487a78e148bSantirezif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8488a78e148bSantirez eval 'as_fn_append () 8489a78e148bSantirez { 8490a78e148bSantirez eval $1+=\$2 8491a78e148bSantirez }' 8492a78e148bSantirezelse 8493a78e148bSantirez as_fn_append () 8494a78e148bSantirez { 8495a78e148bSantirez eval $1=\$$1\$2 8496a78e148bSantirez } 8497a78e148bSantirezfi # as_fn_append 8498a78e148bSantirez 8499a78e148bSantirez# as_fn_arith ARG... 8500a78e148bSantirez# ------------------ 8501a78e148bSantirez# Perform arithmetic evaluation on the ARGs, and store the result in the 8502a78e148bSantirez# global $as_val. Take advantage of shells that can avoid forks. The arguments 8503a78e148bSantirez# must be portable across $(()) and expr. 8504a78e148bSantirezif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8505a78e148bSantirez eval 'as_fn_arith () 8506a78e148bSantirez { 8507a78e148bSantirez as_val=$(( $* )) 8508a78e148bSantirez }' 8509a78e148bSantirezelse 8510a78e148bSantirez as_fn_arith () 8511a78e148bSantirez { 8512a78e148bSantirez as_val=`expr "$@" || test $? -eq 1` 8513a78e148bSantirez } 8514a78e148bSantirezfi # as_fn_arith 8515a78e148bSantirez 8516a78e148bSantirez 8517a78e148bSantirezif expr a : '\(a\)' >/dev/null 2>&1 && 8518a78e148bSantirez test "X`expr 00001 : '.*\(...\)'`" = X001; then 8519a78e148bSantirez as_expr=expr 8520a78e148bSantirezelse 8521a78e148bSantirez as_expr=false 8522a78e148bSantirezfi 8523a78e148bSantirez 8524a78e148bSantirezif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8525a78e148bSantirez as_basename=basename 8526a78e148bSantirezelse 8527a78e148bSantirez as_basename=false 8528a78e148bSantirezfi 8529a78e148bSantirez 8530a78e148bSantirezif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8531a78e148bSantirez as_dirname=dirname 8532a78e148bSantirezelse 8533a78e148bSantirez as_dirname=false 8534a78e148bSantirezfi 8535a78e148bSantirez 8536a78e148bSantirezas_me=`$as_basename -- "$0" || 8537a78e148bSantirez$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8538a78e148bSantirez X"$0" : 'X\(//\)$' \| \ 8539a78e148bSantirez X"$0" : 'X\(/\)' \| . 2>/dev/null || 8540a78e148bSantirez$as_echo X/"$0" | 8541a78e148bSantirez sed '/^.*\/\([^/][^/]*\)\/*$/{ 8542a78e148bSantirez s//\1/ 8543a78e148bSantirez q 8544a78e148bSantirez } 8545a78e148bSantirez /^X\/\(\/\/\)$/{ 8546a78e148bSantirez s//\1/ 8547a78e148bSantirez q 8548a78e148bSantirez } 8549a78e148bSantirez /^X\/\(\/\).*/{ 8550a78e148bSantirez s//\1/ 8551a78e148bSantirez q 8552a78e148bSantirez } 8553a78e148bSantirez s/.*/./; q'` 8554a78e148bSantirez 8555a78e148bSantirez# Avoid depending upon Character Ranges. 8556a78e148bSantirezas_cr_letters='abcdefghijklmnopqrstuvwxyz' 8557a78e148bSantirezas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8558a78e148bSantirezas_cr_Letters=$as_cr_letters$as_cr_LETTERS 8559a78e148bSantirezas_cr_digits='0123456789' 8560a78e148bSantirezas_cr_alnum=$as_cr_Letters$as_cr_digits 8561a78e148bSantirez 8562a78e148bSantirezECHO_C= ECHO_N= ECHO_T= 8563a78e148bSantirezcase `echo -n x` in #((((( 8564a78e148bSantirez-n*) 8565a78e148bSantirez case `echo 'xy\c'` in 8566a78e148bSantirez *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8567a78e148bSantirez xy) ECHO_C='\c';; 8568a78e148bSantirez *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8569a78e148bSantirez ECHO_T=' ';; 8570a78e148bSantirez esac;; 8571a78e148bSantirez*) 8572a78e148bSantirez ECHO_N='-n';; 8573a78e148bSantirezesac 8574a78e148bSantirez 8575a78e148bSantirezrm -f conf$$ conf$$.exe conf$$.file 8576a78e148bSantirezif test -d conf$$.dir; then 8577a78e148bSantirez rm -f conf$$.dir/conf$$.file 8578a78e148bSantirezelse 8579a78e148bSantirez rm -f conf$$.dir 8580a78e148bSantirez mkdir conf$$.dir 2>/dev/null 8581a78e148bSantirezfi 8582a78e148bSantirezif (echo >conf$$.file) 2>/dev/null; then 8583a78e148bSantirez if ln -s conf$$.file conf$$ 2>/dev/null; then 8584a78e148bSantirez as_ln_s='ln -s' 8585a78e148bSantirez # ... but there are two gotchas: 8586a78e148bSantirez # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8587a78e148bSantirez # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8588fceef8e0Santirez # In both cases, we have to default to `cp -pR'. 8589a78e148bSantirez ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8590fceef8e0Santirez as_ln_s='cp -pR' 8591a78e148bSantirez elif ln conf$$.file conf$$ 2>/dev/null; then 8592a78e148bSantirez as_ln_s=ln 8593a78e148bSantirez else 8594fceef8e0Santirez as_ln_s='cp -pR' 8595a78e148bSantirez fi 8596a78e148bSantirezelse 8597fceef8e0Santirez as_ln_s='cp -pR' 8598a78e148bSantirezfi 8599a78e148bSantirezrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8600a78e148bSantirezrmdir conf$$.dir 2>/dev/null 8601a78e148bSantirez 8602a78e148bSantirez 8603a78e148bSantirez# as_fn_mkdir_p 8604a78e148bSantirez# ------------- 8605a78e148bSantirez# Create "$as_dir" as a directory, including parents if necessary. 8606a78e148bSantirezas_fn_mkdir_p () 8607a78e148bSantirez{ 8608a78e148bSantirez 8609a78e148bSantirez case $as_dir in #( 8610a78e148bSantirez -*) as_dir=./$as_dir;; 8611a78e148bSantirez esac 8612a78e148bSantirez test -d "$as_dir" || eval $as_mkdir_p || { 8613a78e148bSantirez as_dirs= 8614a78e148bSantirez while :; do 8615a78e148bSantirez case $as_dir in #( 8616a78e148bSantirez *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8617a78e148bSantirez *) as_qdir=$as_dir;; 8618a78e148bSantirez esac 8619a78e148bSantirez as_dirs="'$as_qdir' $as_dirs" 8620a78e148bSantirez as_dir=`$as_dirname -- "$as_dir" || 8621a78e148bSantirez$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8622a78e148bSantirez X"$as_dir" : 'X\(//\)[^/]' \| \ 8623a78e148bSantirez X"$as_dir" : 'X\(//\)$' \| \ 8624a78e148bSantirez X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8625a78e148bSantirez$as_echo X"$as_dir" | 8626a78e148bSantirez sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8627a78e148bSantirez s//\1/ 8628a78e148bSantirez q 8629a78e148bSantirez } 8630a78e148bSantirez /^X\(\/\/\)[^/].*/{ 8631a78e148bSantirez s//\1/ 8632a78e148bSantirez q 8633a78e148bSantirez } 8634a78e148bSantirez /^X\(\/\/\)$/{ 8635a78e148bSantirez s//\1/ 8636a78e148bSantirez q 8637a78e148bSantirez } 8638a78e148bSantirez /^X\(\/\).*/{ 8639a78e148bSantirez s//\1/ 8640a78e148bSantirez q 8641a78e148bSantirez } 8642a78e148bSantirez s/.*/./; q'` 8643a78e148bSantirez test -d "$as_dir" && break 8644a78e148bSantirez done 8645a78e148bSantirez test -z "$as_dirs" || eval "mkdir $as_dirs" 8646ad4c0b41Santirez } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8647a78e148bSantirez 8648a78e148bSantirez 8649a78e148bSantirez} # as_fn_mkdir_p 8650a78e148bSantirezif mkdir -p . 2>/dev/null; then 8651a78e148bSantirez as_mkdir_p='mkdir -p "$as_dir"' 8652a78e148bSantirezelse 8653a78e148bSantirez test -d ./-p && rmdir ./-p 8654a78e148bSantirez as_mkdir_p=false 8655a78e148bSantirezfi 8656a78e148bSantirez 8657fceef8e0Santirez 8658fceef8e0Santirez# as_fn_executable_p FILE 8659fceef8e0Santirez# ----------------------- 8660fceef8e0Santirez# Test if FILE is an executable regular file. 8661fceef8e0Santirezas_fn_executable_p () 8662fceef8e0Santirez{ 8663fceef8e0Santirez test -f "$1" && test -x "$1" 8664fceef8e0Santirez} # as_fn_executable_p 8665a78e148bSantirezas_test_x='test -x' 8666fceef8e0Santirezas_executable_p=as_fn_executable_p 8667a78e148bSantirez 8668a78e148bSantirez# Sed expression to map a string onto a valid CPP name. 8669a78e148bSantirezas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8670a78e148bSantirez 8671a78e148bSantirez# Sed expression to map a string onto a valid variable name. 8672a78e148bSantirezas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8673a78e148bSantirez 8674a78e148bSantirez 8675a78e148bSantirezexec 6>&1 8676a78e148bSantirez## ----------------------------------- ## 8677a78e148bSantirez## Main body of $CONFIG_STATUS script. ## 8678a78e148bSantirez## ----------------------------------- ## 8679a78e148bSantirez_ASEOF 8680a78e148bSantireztest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8681a78e148bSantirez 8682a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8683a78e148bSantirez# Save the log message, to keep $0 and so on meaningful, and to 8684a78e148bSantirez# report actual input values of CONFIG_FILES etc. instead of their 8685a78e148bSantirez# values after options handling. 8686a78e148bSantirezac_log=" 8687a78e148bSantirezThis file was extended by $as_me, which was 8688fceef8e0Santirezgenerated by GNU Autoconf 2.69. Invocation command line was 8689a78e148bSantirez 8690a78e148bSantirez CONFIG_FILES = $CONFIG_FILES 8691a78e148bSantirez CONFIG_HEADERS = $CONFIG_HEADERS 8692a78e148bSantirez CONFIG_LINKS = $CONFIG_LINKS 8693a78e148bSantirez CONFIG_COMMANDS = $CONFIG_COMMANDS 8694a78e148bSantirez $ $0 $@ 8695a78e148bSantirez 8696a78e148bSantirezon `(hostname || uname -n) 2>/dev/null | sed 1q` 8697a78e148bSantirez" 8698a78e148bSantirez 8699a78e148bSantirez_ACEOF 8700a78e148bSantirez 8701a78e148bSantirezcase $ac_config_files in *" 8702a78e148bSantirez"*) set x $ac_config_files; shift; ac_config_files=$*;; 8703a78e148bSantirezesac 8704a78e148bSantirez 8705a78e148bSantirezcase $ac_config_headers in *" 8706a78e148bSantirez"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8707a78e148bSantirezesac 8708a78e148bSantirez 8709a78e148bSantirez 8710a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8711a78e148bSantirez# Files that config.status was made for. 8712a78e148bSantirezconfig_files="$ac_config_files" 8713a78e148bSantirezconfig_headers="$ac_config_headers" 8714ad4c0b41Santirezconfig_commands="$ac_config_commands" 8715a78e148bSantirez 8716a78e148bSantirez_ACEOF 8717a78e148bSantirez 8718a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8719a78e148bSantirezac_cs_usage="\ 8720a78e148bSantirez\`$as_me' instantiates files and other configuration actions 8721a78e148bSantirezfrom templates according to the current configuration. Unless the files 8722a78e148bSantirezand actions are specified as TAGs, all are instantiated by default. 8723a78e148bSantirez 8724a78e148bSantirezUsage: $0 [OPTION]... [TAG]... 8725a78e148bSantirez 8726a78e148bSantirez -h, --help print this help, then exit 8727a78e148bSantirez -V, --version print version number and configuration settings, then exit 8728a78e148bSantirez --config print configuration, then exit 8729a78e148bSantirez -q, --quiet, --silent 8730a78e148bSantirez do not print progress messages 8731a78e148bSantirez -d, --debug don't remove temporary files 8732a78e148bSantirez --recheck update $as_me by reconfiguring in the same conditions 8733a78e148bSantirez --file=FILE[:TEMPLATE] 8734a78e148bSantirez instantiate the configuration file FILE 8735a78e148bSantirez --header=FILE[:TEMPLATE] 8736a78e148bSantirez instantiate the configuration header FILE 8737a78e148bSantirez 8738a78e148bSantirezConfiguration files: 8739a78e148bSantirez$config_files 8740a78e148bSantirez 8741a78e148bSantirezConfiguration headers: 8742a78e148bSantirez$config_headers 8743a78e148bSantirez 8744ad4c0b41SantirezConfiguration commands: 8745ad4c0b41Santirez$config_commands 8746ad4c0b41Santirez 8747a78e148bSantirezReport bugs to the package provider." 8748a78e148bSantirez 8749a78e148bSantirez_ACEOF 8750a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8751a78e148bSantirezac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8752a78e148bSantirezac_cs_version="\\ 8753a78e148bSantirezconfig.status 8754fceef8e0Santirezconfigured by $0, generated by GNU Autoconf 2.69, 8755a78e148bSantirez with options \\"\$ac_cs_config\\" 8756a78e148bSantirez 8757fceef8e0SantirezCopyright (C) 2012 Free Software Foundation, Inc. 8758a78e148bSantirezThis config.status script is free software; the Free Software Foundation 8759a78e148bSantirezgives unlimited permission to copy, distribute and modify it." 8760a78e148bSantirez 8761a78e148bSantirezac_pwd='$ac_pwd' 8762a78e148bSantirezsrcdir='$srcdir' 8763a78e148bSantirezINSTALL='$INSTALL' 8764a78e148bSantireztest -n "\$AWK" || AWK=awk 8765a78e148bSantirez_ACEOF 8766a78e148bSantirez 8767a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8768a78e148bSantirez# The default lists apply if the user does not specify any file. 8769a78e148bSantirezac_need_defaults=: 8770a78e148bSantirezwhile test $# != 0 8771a78e148bSantirezdo 8772a78e148bSantirez case $1 in 8773ad4c0b41Santirez --*=?*) 8774a78e148bSantirez ac_option=`expr "X$1" : 'X\([^=]*\)='` 8775a78e148bSantirez ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8776a78e148bSantirez ac_shift=: 8777a78e148bSantirez ;; 8778ad4c0b41Santirez --*=) 8779ad4c0b41Santirez ac_option=`expr "X$1" : 'X\([^=]*\)='` 8780ad4c0b41Santirez ac_optarg= 8781ad4c0b41Santirez ac_shift=: 8782ad4c0b41Santirez ;; 8783a78e148bSantirez *) 8784a78e148bSantirez ac_option=$1 8785a78e148bSantirez ac_optarg=$2 8786a78e148bSantirez ac_shift=shift 8787a78e148bSantirez ;; 8788a78e148bSantirez esac 8789a78e148bSantirez 8790a78e148bSantirez case $ac_option in 8791a78e148bSantirez # Handling of the options. 8792a78e148bSantirez -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8793a78e148bSantirez ac_cs_recheck=: ;; 8794a78e148bSantirez --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8795a78e148bSantirez $as_echo "$ac_cs_version"; exit ;; 8796a78e148bSantirez --config | --confi | --conf | --con | --co | --c ) 8797a78e148bSantirez $as_echo "$ac_cs_config"; exit ;; 8798a78e148bSantirez --debug | --debu | --deb | --de | --d | -d ) 8799a78e148bSantirez debug=: ;; 8800a78e148bSantirez --file | --fil | --fi | --f ) 8801a78e148bSantirez $ac_shift 8802a78e148bSantirez case $ac_optarg in 8803a78e148bSantirez *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8804ad4c0b41Santirez '') as_fn_error $? "missing file argument" ;; 8805a78e148bSantirez esac 8806a78e148bSantirez as_fn_append CONFIG_FILES " '$ac_optarg'" 8807a78e148bSantirez ac_need_defaults=false;; 8808a78e148bSantirez --header | --heade | --head | --hea ) 8809a78e148bSantirez $ac_shift 8810a78e148bSantirez case $ac_optarg in 8811a78e148bSantirez *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8812a78e148bSantirez esac 8813a78e148bSantirez as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8814a78e148bSantirez ac_need_defaults=false;; 8815a78e148bSantirez --he | --h) 8816a78e148bSantirez # Conflict between --help and --header 8817ad4c0b41Santirez as_fn_error $? "ambiguous option: \`$1' 8818a78e148bSantirezTry \`$0 --help' for more information.";; 8819a78e148bSantirez --help | --hel | -h ) 8820a78e148bSantirez $as_echo "$ac_cs_usage"; exit ;; 8821a78e148bSantirez -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8822a78e148bSantirez | -silent | --silent | --silen | --sile | --sil | --si | --s) 8823a78e148bSantirez ac_cs_silent=: ;; 8824a78e148bSantirez 8825a78e148bSantirez # This is an error. 8826ad4c0b41Santirez -*) as_fn_error $? "unrecognized option: \`$1' 8827a78e148bSantirezTry \`$0 --help' for more information." ;; 8828a78e148bSantirez 8829a78e148bSantirez *) as_fn_append ac_config_targets " $1" 8830a78e148bSantirez ac_need_defaults=false ;; 8831a78e148bSantirez 8832a78e148bSantirez esac 8833a78e148bSantirez shift 8834a78e148bSantirezdone 8835a78e148bSantirez 8836a78e148bSantirezac_configure_extra_args= 8837a78e148bSantirez 8838a78e148bSantirezif $ac_cs_silent; then 8839a78e148bSantirez exec 6>/dev/null 8840a78e148bSantirez ac_configure_extra_args="$ac_configure_extra_args --silent" 8841a78e148bSantirezfi 8842a78e148bSantirez 8843a78e148bSantirez_ACEOF 8844a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8845a78e148bSantirezif \$ac_cs_recheck; then 8846fceef8e0Santirez set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8847a78e148bSantirez shift 8848a78e148bSantirez \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8849a78e148bSantirez CONFIG_SHELL='$SHELL' 8850a78e148bSantirez export CONFIG_SHELL 8851a78e148bSantirez exec "\$@" 8852a78e148bSantirezfi 8853a78e148bSantirez 8854a78e148bSantirez_ACEOF 8855a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8856a78e148bSantirezexec 5>>config.log 8857a78e148bSantirez{ 8858a78e148bSantirez echo 8859a78e148bSantirez sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8860a78e148bSantirez## Running $as_me. ## 8861a78e148bSantirez_ASBOX 8862a78e148bSantirez $as_echo "$ac_log" 8863a78e148bSantirez} >&5 8864a78e148bSantirez 8865a78e148bSantirez_ACEOF 8866a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8867fceef8e0Santirez# 8868fceef8e0Santirez# INIT-COMMANDS 8869fceef8e0Santirez# 8870fceef8e0Santirez 8871fceef8e0Santirez srcdir="${srcdir}" 8872fceef8e0Santirez objroot="${objroot}" 8873fceef8e0Santirez 8874fceef8e0Santirez 8875fceef8e0Santirez srcdir="${srcdir}" 8876fceef8e0Santirez objroot="${objroot}" 8877fceef8e0Santirez 8878fceef8e0Santirez 8879fceef8e0Santirez srcdir="${srcdir}" 8880fceef8e0Santirez objroot="${objroot}" 8881fceef8e0Santirez mangling_map="${mangling_map}" 8882fceef8e0Santirez public_syms="${public_syms}" 8883fceef8e0Santirez JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 8884fceef8e0Santirez 8885fceef8e0Santirez 8886fceef8e0Santirez srcdir="${srcdir}" 8887fceef8e0Santirez objroot="${objroot}" 8888fceef8e0Santirez 8889fceef8e0Santirez 8890fceef8e0Santirez srcdir="${srcdir}" 8891fceef8e0Santirez objroot="${objroot}" 8892fceef8e0Santirez 8893fceef8e0Santirez 8894*5268379eSantirez SHELL="${SHELL}" 8895fceef8e0Santirez srcdir="${srcdir}" 8896fceef8e0Santirez objroot="${objroot}" 8897*5268379eSantirez LG_QUANTA="${LG_QUANTA}" 8898*5268379eSantirez LG_TINY_MIN=${LG_TINY_MIN} 8899*5268379eSantirez LG_PAGE_SIZES="${LG_PAGE_SIZES}" 8900*5268379eSantirez LG_SIZE_CLASS_GROUP=${LG_SIZE_CLASS_GROUP} 8901fceef8e0Santirez 8902fceef8e0Santirez 8903fceef8e0Santirez srcdir="${srcdir}" 8904fceef8e0Santirez objroot="${objroot}" 8905fceef8e0Santirez 8906fceef8e0Santirez 8907fceef8e0Santirez srcdir="${srcdir}" 8908fceef8e0Santirez objroot="${objroot}" 8909fceef8e0Santirez 8910fceef8e0Santirez 8911fceef8e0Santirez srcdir="${srcdir}" 8912fceef8e0Santirez objroot="${objroot}" 8913fceef8e0Santirez 8914fceef8e0Santirez 8915fceef8e0Santirez srcdir="${srcdir}" 8916fceef8e0Santirez objroot="${objroot}" 8917fceef8e0Santirez 8918fceef8e0Santirez 8919fceef8e0Santirez srcdir="${srcdir}" 8920fceef8e0Santirez objroot="${objroot}" 8921fceef8e0Santirez install_suffix="${install_suffix}" 8922fceef8e0Santirez 8923fceef8e0Santirez 8924a78e148bSantirez_ACEOF 8925a78e148bSantirez 8926a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8927a78e148bSantirez 8928a78e148bSantirez# Handling of arguments. 8929a78e148bSantirezfor ac_config_target in $ac_config_targets 8930a78e148bSantirezdo 8931a78e148bSantirez case $ac_config_target in 8932fceef8e0Santirez "include/jemalloc/internal/private_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_namespace.h" ;; 8933fceef8e0Santirez "include/jemalloc/internal/private_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_unnamespace.h" ;; 8934fceef8e0Santirez "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;; 8935fceef8e0Santirez "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;; 8936fceef8e0Santirez "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;; 8937ad4c0b41Santirez "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;; 8938fceef8e0Santirez "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;; 8939fceef8e0Santirez "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;; 8940fceef8e0Santirez "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;; 8941fceef8e0Santirez "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;; 8942fceef8e0Santirez "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;; 8943a78e148bSantirez "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;; 8944a78e148bSantirez "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;; 8945a78e148bSantirez "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;; 8946*5268379eSantirez "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;; 8947ad4c0b41Santirez "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;; 8948*5268379eSantirez "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;; 8949a78e148bSantirez 8950ad4c0b41Santirez *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8951a78e148bSantirez esac 8952a78e148bSantirezdone 8953a78e148bSantirez 8954a78e148bSantirez 8955a78e148bSantirez# If the user did not use the arguments to specify the items to instantiate, 8956a78e148bSantirez# then the envvar interface is used. Set only those that are not. 8957a78e148bSantirez# We use the long form for the default assignment because of an extremely 8958a78e148bSantirez# bizarre bug on SunOS 4.1.3. 8959a78e148bSantirezif $ac_need_defaults; then 8960a78e148bSantirez test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8961a78e148bSantirez test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8962ad4c0b41Santirez test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8963a78e148bSantirezfi 8964a78e148bSantirez 8965a78e148bSantirez# Have a temporary directory for convenience. Make it in the build tree 8966a78e148bSantirez# simply because there is no reason against having it here, and in addition, 8967a78e148bSantirez# creating and moving files from /tmp can sometimes cause problems. 8968a78e148bSantirez# Hook for its removal unless debugging. 8969a78e148bSantirez# Note that there is a small window in which the directory will not be cleaned: 8970a78e148bSantirez# after its creation but before its name has been assigned to `$tmp'. 8971a78e148bSantirez$debug || 8972a78e148bSantirez{ 8973ad4c0b41Santirez tmp= ac_tmp= 8974a78e148bSantirez trap 'exit_status=$? 8975ad4c0b41Santirez : "${ac_tmp:=$tmp}" 8976ad4c0b41Santirez { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8977a78e148bSantirez' 0 8978a78e148bSantirez trap 'as_fn_exit 1' 1 2 13 15 8979a78e148bSantirez} 8980a78e148bSantirez# Create a (secure) tmp directory for tmp files. 8981a78e148bSantirez 8982a78e148bSantirez{ 8983a78e148bSantirez tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8984ad4c0b41Santirez test -d "$tmp" 8985a78e148bSantirez} || 8986a78e148bSantirez{ 8987a78e148bSantirez tmp=./conf$$-$RANDOM 8988a78e148bSantirez (umask 077 && mkdir "$tmp") 8989ad4c0b41Santirez} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8990ad4c0b41Santirezac_tmp=$tmp 8991a78e148bSantirez 8992a78e148bSantirez# Set up the scripts for CONFIG_FILES section. 8993a78e148bSantirez# No need to generate them if there are no CONFIG_FILES. 8994a78e148bSantirez# This happens for instance with `./config.status config.h'. 8995a78e148bSantirezif test -n "$CONFIG_FILES"; then 8996a78e148bSantirez 8997a78e148bSantirez 8998a78e148bSantirezac_cr=`echo X | tr X '\015'` 8999a78e148bSantirez# On cygwin, bash can eat \r inside `` if the user requested igncr. 9000a78e148bSantirez# But we know of no other shell where ac_cr would be empty at this 9001a78e148bSantirez# point, so we can use a bashism as a fallback. 9002a78e148bSantirezif test "x$ac_cr" = x; then 9003a78e148bSantirez eval ac_cr=\$\'\\r\' 9004a78e148bSantirezfi 9005a78e148bSantirezac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9006a78e148bSantirezif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9007ad4c0b41Santirez ac_cs_awk_cr='\\r' 9008a78e148bSantirezelse 9009a78e148bSantirez ac_cs_awk_cr=$ac_cr 9010a78e148bSantirezfi 9011a78e148bSantirez 9012ad4c0b41Santirezecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 9013a78e148bSantirez_ACEOF 9014a78e148bSantirez 9015a78e148bSantirez 9016a78e148bSantirez{ 9017a78e148bSantirez echo "cat >conf$$subs.awk <<_ACEOF" && 9018a78e148bSantirez echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9019a78e148bSantirez echo "_ACEOF" 9020a78e148bSantirez} >conf$$subs.sh || 9021ad4c0b41Santirez as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9022ad4c0b41Santirezac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9023a78e148bSantirezac_delim='%!_!# ' 9024a78e148bSantirezfor ac_last_try in false false false false false :; do 9025a78e148bSantirez . ./conf$$subs.sh || 9026ad4c0b41Santirez as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9027a78e148bSantirez 9028a78e148bSantirez ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9029a78e148bSantirez if test $ac_delim_n = $ac_delim_num; then 9030a78e148bSantirez break 9031a78e148bSantirez elif $ac_last_try; then 9032ad4c0b41Santirez as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9033a78e148bSantirez else 9034a78e148bSantirez ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9035a78e148bSantirez fi 9036a78e148bSantirezdone 9037a78e148bSantirezrm -f conf$$subs.sh 9038a78e148bSantirez 9039a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9040ad4c0b41Santirezcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9041a78e148bSantirez_ACEOF 9042a78e148bSantirezsed -n ' 9043a78e148bSantirezh 9044a78e148bSantirezs/^/S["/; s/!.*/"]=/ 9045a78e148bSantirezp 9046a78e148bSantirezg 9047a78e148bSantirezs/^[^!]*!// 9048a78e148bSantirez:repl 9049a78e148bSantirezt repl 9050a78e148bSantirezs/'"$ac_delim"'$// 9051a78e148bSantirezt delim 9052a78e148bSantirez:nl 9053a78e148bSantirezh 9054a78e148bSantirezs/\(.\{148\}\)..*/\1/ 9055a78e148bSantirezt more1 9056a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9057a78e148bSantirezp 9058a78e148bSantirezn 9059a78e148bSantirezb repl 9060a78e148bSantirez:more1 9061a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9062a78e148bSantirezp 9063a78e148bSantirezg 9064a78e148bSantirezs/.\{148\}// 9065a78e148bSantirezt nl 9066a78e148bSantirez:delim 9067a78e148bSantirezh 9068a78e148bSantirezs/\(.\{148\}\)..*/\1/ 9069a78e148bSantirezt more2 9070a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/"/ 9071a78e148bSantirezp 9072a78e148bSantirezb 9073a78e148bSantirez:more2 9074a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9075a78e148bSantirezp 9076a78e148bSantirezg 9077a78e148bSantirezs/.\{148\}// 9078a78e148bSantirezt delim 9079a78e148bSantirez' <conf$$subs.awk | sed ' 9080a78e148bSantirez/^[^""]/{ 9081a78e148bSantirez N 9082a78e148bSantirez s/\n// 9083a78e148bSantirez} 9084a78e148bSantirez' >>$CONFIG_STATUS || ac_write_fail=1 9085a78e148bSantirezrm -f conf$$subs.awk 9086a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9087a78e148bSantirez_ACAWK 9088ad4c0b41Santirezcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9089a78e148bSantirez for (key in S) S_is_set[key] = 1 9090a78e148bSantirez FS = "" 9091a78e148bSantirez 9092a78e148bSantirez} 9093a78e148bSantirez{ 9094a78e148bSantirez line = $ 0 9095a78e148bSantirez nfields = split(line, field, "@") 9096a78e148bSantirez substed = 0 9097a78e148bSantirez len = length(field[1]) 9098a78e148bSantirez for (i = 2; i < nfields; i++) { 9099a78e148bSantirez key = field[i] 9100a78e148bSantirez keylen = length(key) 9101a78e148bSantirez if (S_is_set[key]) { 9102a78e148bSantirez value = S[key] 9103a78e148bSantirez line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9104a78e148bSantirez len += length(value) + length(field[++i]) 9105a78e148bSantirez substed = 1 9106a78e148bSantirez } else 9107a78e148bSantirez len += 1 + keylen 9108a78e148bSantirez } 9109a78e148bSantirez 9110a78e148bSantirez print line 9111a78e148bSantirez} 9112a78e148bSantirez 9113a78e148bSantirez_ACAWK 9114a78e148bSantirez_ACEOF 9115a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9116a78e148bSantirezif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9117a78e148bSantirez sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9118a78e148bSantirezelse 9119a78e148bSantirez cat 9120ad4c0b41Santirezfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9121ad4c0b41Santirez || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9122a78e148bSantirez_ACEOF 9123a78e148bSantirez 9124ad4c0b41Santirez# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9125ad4c0b41Santirez# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9126a78e148bSantirez# trailing colons and then remove the whole line if VPATH becomes empty 9127a78e148bSantirez# (actually we leave an empty line to preserve line numbers). 9128a78e148bSantirezif test "x$srcdir" = x.; then 9129ad4c0b41Santirez ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9130ad4c0b41Santirezh 9131ad4c0b41Santirezs/// 9132ad4c0b41Santirezs/^/:/ 9133ad4c0b41Santirezs/[ ]*$/:/ 9134ad4c0b41Santirezs/:\$(srcdir):/:/g 9135ad4c0b41Santirezs/:\${srcdir}:/:/g 9136ad4c0b41Santirezs/:@srcdir@:/:/g 9137ad4c0b41Santirezs/^:*// 9138a78e148bSantirezs/:*$// 9139ad4c0b41Santirezx 9140ad4c0b41Santirezs/\(=[ ]*\).*/\1/ 9141ad4c0b41SantirezG 9142ad4c0b41Santirezs/\n// 9143a78e148bSantirezs/^[^=]*=[ ]*$// 9144a78e148bSantirez}' 9145a78e148bSantirezfi 9146a78e148bSantirez 9147a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9148a78e148bSantirezfi # test -n "$CONFIG_FILES" 9149a78e148bSantirez 9150a78e148bSantirez# Set up the scripts for CONFIG_HEADERS section. 9151a78e148bSantirez# No need to generate them if there are no CONFIG_HEADERS. 9152a78e148bSantirez# This happens for instance with `./config.status Makefile'. 9153a78e148bSantirezif test -n "$CONFIG_HEADERS"; then 9154ad4c0b41Santirezcat >"$ac_tmp/defines.awk" <<\_ACAWK || 9155a78e148bSantirezBEGIN { 9156a78e148bSantirez_ACEOF 9157a78e148bSantirez 9158a78e148bSantirez# Transform confdefs.h into an awk script `defines.awk', embedded as 9159a78e148bSantirez# here-document in config.status, that substitutes the proper values into 9160a78e148bSantirez# config.h.in to produce config.h. 9161a78e148bSantirez 9162a78e148bSantirez# Create a delimiter string that does not exist in confdefs.h, to ease 9163a78e148bSantirez# handling of long lines. 9164a78e148bSantirezac_delim='%!_!# ' 9165a78e148bSantirezfor ac_last_try in false false :; do 9166ad4c0b41Santirez ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9167ad4c0b41Santirez if test -z "$ac_tt"; then 9168a78e148bSantirez break 9169a78e148bSantirez elif $ac_last_try; then 9170ad4c0b41Santirez as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9171a78e148bSantirez else 9172a78e148bSantirez ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9173a78e148bSantirez fi 9174a78e148bSantirezdone 9175a78e148bSantirez 9176a78e148bSantirez# For the awk script, D is an array of macro values keyed by name, 9177a78e148bSantirez# likewise P contains macro parameters if any. Preserve backslash 9178a78e148bSantirez# newline sequences. 9179a78e148bSantirez 9180a78e148bSantirezac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9181a78e148bSantirezsed -n ' 9182a78e148bSantirezs/.\{148\}/&'"$ac_delim"'/g 9183a78e148bSantirezt rset 9184a78e148bSantirez:rset 9185a78e148bSantirezs/^[ ]*#[ ]*define[ ][ ]*/ / 9186a78e148bSantirezt def 9187a78e148bSantirezd 9188a78e148bSantirez:def 9189a78e148bSantirezs/\\$// 9190a78e148bSantirezt bsnl 9191a78e148bSantirezs/["\\]/\\&/g 9192a78e148bSantirezs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9193a78e148bSantirezD["\1"]=" \3"/p 9194a78e148bSantirezs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9195a78e148bSantirezd 9196a78e148bSantirez:bsnl 9197a78e148bSantirezs/["\\]/\\&/g 9198a78e148bSantirezs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9199a78e148bSantirezD["\1"]=" \3\\\\\\n"\\/p 9200a78e148bSantirezt cont 9201a78e148bSantirezs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9202a78e148bSantirezt cont 9203a78e148bSantirezd 9204a78e148bSantirez:cont 9205a78e148bSantirezn 9206a78e148bSantirezs/.\{148\}/&'"$ac_delim"'/g 9207a78e148bSantirezt clear 9208a78e148bSantirez:clear 9209a78e148bSantirezs/\\$// 9210a78e148bSantirezt bsnlc 9211a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/"/p 9212a78e148bSantirezd 9213a78e148bSantirez:bsnlc 9214a78e148bSantirezs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9215a78e148bSantirezb cont 9216a78e148bSantirez' <confdefs.h | sed ' 9217a78e148bSantirezs/'"$ac_delim"'/"\\\ 9218a78e148bSantirez"/g' >>$CONFIG_STATUS || ac_write_fail=1 9219a78e148bSantirez 9220a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9221a78e148bSantirez for (key in D) D_is_set[key] = 1 9222a78e148bSantirez FS = "" 9223a78e148bSantirez} 9224a78e148bSantirez/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9225a78e148bSantirez line = \$ 0 9226a78e148bSantirez split(line, arg, " ") 9227a78e148bSantirez if (arg[1] == "#") { 9228a78e148bSantirez defundef = arg[2] 9229a78e148bSantirez mac1 = arg[3] 9230a78e148bSantirez } else { 9231a78e148bSantirez defundef = substr(arg[1], 2) 9232a78e148bSantirez mac1 = arg[2] 9233a78e148bSantirez } 9234a78e148bSantirez split(mac1, mac2, "(") #) 9235a78e148bSantirez macro = mac2[1] 9236a78e148bSantirez prefix = substr(line, 1, index(line, defundef) - 1) 9237a78e148bSantirez if (D_is_set[macro]) { 9238a78e148bSantirez # Preserve the white space surrounding the "#". 9239a78e148bSantirez print prefix "define", macro P[macro] D[macro] 9240a78e148bSantirez next 9241a78e148bSantirez } else { 9242a78e148bSantirez # Replace #undef with comments. This is necessary, for example, 9243a78e148bSantirez # in the case of _POSIX_SOURCE, which is predefined and required 9244a78e148bSantirez # on some systems where configure will not decide to define it. 9245a78e148bSantirez if (defundef == "undef") { 9246a78e148bSantirez print "/*", prefix defundef, macro, "*/" 9247a78e148bSantirez next 9248a78e148bSantirez } 9249a78e148bSantirez } 9250a78e148bSantirez} 9251a78e148bSantirez{ print } 9252a78e148bSantirez_ACAWK 9253a78e148bSantirez_ACEOF 9254a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9255ad4c0b41Santirez as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9256a78e148bSantirezfi # test -n "$CONFIG_HEADERS" 9257a78e148bSantirez 9258a78e148bSantirez 9259ad4c0b41Santirezeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9260a78e148bSantirezshift 9261a78e148bSantirezfor ac_tag 9262a78e148bSantirezdo 9263a78e148bSantirez case $ac_tag in 9264a78e148bSantirez :[FHLC]) ac_mode=$ac_tag; continue;; 9265a78e148bSantirez esac 9266a78e148bSantirez case $ac_mode$ac_tag in 9267a78e148bSantirez :[FHL]*:*);; 9268ad4c0b41Santirez :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9269a78e148bSantirez :[FH]-) ac_tag=-:-;; 9270a78e148bSantirez :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9271a78e148bSantirez esac 9272a78e148bSantirez ac_save_IFS=$IFS 9273a78e148bSantirez IFS=: 9274a78e148bSantirez set x $ac_tag 9275a78e148bSantirez IFS=$ac_save_IFS 9276a78e148bSantirez shift 9277a78e148bSantirez ac_file=$1 9278a78e148bSantirez shift 9279a78e148bSantirez 9280a78e148bSantirez case $ac_mode in 9281a78e148bSantirez :L) ac_source=$1;; 9282a78e148bSantirez :[FH]) 9283a78e148bSantirez ac_file_inputs= 9284a78e148bSantirez for ac_f 9285a78e148bSantirez do 9286a78e148bSantirez case $ac_f in 9287ad4c0b41Santirez -) ac_f="$ac_tmp/stdin";; 9288a78e148bSantirez *) # Look for the file first in the build tree, then in the source tree 9289a78e148bSantirez # (if the path is not absolute). The absolute path cannot be DOS-style, 9290a78e148bSantirez # because $ac_f cannot contain `:'. 9291a78e148bSantirez test -f "$ac_f" || 9292a78e148bSantirez case $ac_f in 9293a78e148bSantirez [\\/$]*) false;; 9294a78e148bSantirez *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9295a78e148bSantirez esac || 9296ad4c0b41Santirez as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9297a78e148bSantirez esac 9298a78e148bSantirez case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9299a78e148bSantirez as_fn_append ac_file_inputs " '$ac_f'" 9300a78e148bSantirez done 9301a78e148bSantirez 9302a78e148bSantirez # Let's still pretend it is `configure' which instantiates (i.e., don't 9303a78e148bSantirez # use $as_me), people would be surprised to read: 9304a78e148bSantirez # /* config.h. Generated by config.status. */ 9305a78e148bSantirez configure_input='Generated from '` 9306a78e148bSantirez $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9307a78e148bSantirez `' by configure.' 9308a78e148bSantirez if test x"$ac_file" != x-; then 9309a78e148bSantirez configure_input="$ac_file. $configure_input" 9310a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9311a78e148bSantirez$as_echo "$as_me: creating $ac_file" >&6;} 9312a78e148bSantirez fi 9313a78e148bSantirez # Neutralize special characters interpreted by sed in replacement strings. 9314a78e148bSantirez case $configure_input in #( 9315a78e148bSantirez *\&* | *\|* | *\\* ) 9316a78e148bSantirez ac_sed_conf_input=`$as_echo "$configure_input" | 9317a78e148bSantirez sed 's/[\\\\&|]/\\\\&/g'`;; #( 9318a78e148bSantirez *) ac_sed_conf_input=$configure_input;; 9319a78e148bSantirez esac 9320a78e148bSantirez 9321a78e148bSantirez case $ac_tag in 9322ad4c0b41Santirez *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9323ad4c0b41Santirez || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9324a78e148bSantirez esac 9325a78e148bSantirez ;; 9326a78e148bSantirez esac 9327a78e148bSantirez 9328a78e148bSantirez ac_dir=`$as_dirname -- "$ac_file" || 9329a78e148bSantirez$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9330a78e148bSantirez X"$ac_file" : 'X\(//\)[^/]' \| \ 9331a78e148bSantirez X"$ac_file" : 'X\(//\)$' \| \ 9332a78e148bSantirez X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9333a78e148bSantirez$as_echo X"$ac_file" | 9334a78e148bSantirez sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9335a78e148bSantirez s//\1/ 9336a78e148bSantirez q 9337a78e148bSantirez } 9338a78e148bSantirez /^X\(\/\/\)[^/].*/{ 9339a78e148bSantirez s//\1/ 9340a78e148bSantirez q 9341a78e148bSantirez } 9342a78e148bSantirez /^X\(\/\/\)$/{ 9343a78e148bSantirez s//\1/ 9344a78e148bSantirez q 9345a78e148bSantirez } 9346a78e148bSantirez /^X\(\/\).*/{ 9347a78e148bSantirez s//\1/ 9348a78e148bSantirez q 9349a78e148bSantirez } 9350a78e148bSantirez s/.*/./; q'` 9351a78e148bSantirez as_dir="$ac_dir"; as_fn_mkdir_p 9352a78e148bSantirez ac_builddir=. 9353a78e148bSantirez 9354a78e148bSantirezcase "$ac_dir" in 9355a78e148bSantirez.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9356a78e148bSantirez*) 9357a78e148bSantirez ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9358a78e148bSantirez # A ".." for each directory in $ac_dir_suffix. 9359a78e148bSantirez ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9360a78e148bSantirez case $ac_top_builddir_sub in 9361a78e148bSantirez "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9362a78e148bSantirez *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9363a78e148bSantirez esac ;; 9364a78e148bSantirezesac 9365a78e148bSantirezac_abs_top_builddir=$ac_pwd 9366a78e148bSantirezac_abs_builddir=$ac_pwd$ac_dir_suffix 9367a78e148bSantirez# for backward compatibility: 9368a78e148bSantirezac_top_builddir=$ac_top_build_prefix 9369a78e148bSantirez 9370a78e148bSantirezcase $srcdir in 9371a78e148bSantirez .) # We are building in place. 9372a78e148bSantirez ac_srcdir=. 9373a78e148bSantirez ac_top_srcdir=$ac_top_builddir_sub 9374a78e148bSantirez ac_abs_top_srcdir=$ac_pwd ;; 9375a78e148bSantirez [\\/]* | ?:[\\/]* ) # Absolute name. 9376a78e148bSantirez ac_srcdir=$srcdir$ac_dir_suffix; 9377a78e148bSantirez ac_top_srcdir=$srcdir 9378a78e148bSantirez ac_abs_top_srcdir=$srcdir ;; 9379a78e148bSantirez *) # Relative name. 9380a78e148bSantirez ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9381a78e148bSantirez ac_top_srcdir=$ac_top_build_prefix$srcdir 9382a78e148bSantirez ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9383a78e148bSantirezesac 9384a78e148bSantirezac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9385a78e148bSantirez 9386a78e148bSantirez 9387a78e148bSantirez case $ac_mode in 9388a78e148bSantirez :F) 9389a78e148bSantirez # 9390a78e148bSantirez # CONFIG_FILE 9391a78e148bSantirez # 9392a78e148bSantirez 9393a78e148bSantirez case $INSTALL in 9394a78e148bSantirez [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9395a78e148bSantirez *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9396a78e148bSantirez esac 9397a78e148bSantirez_ACEOF 9398a78e148bSantirez 9399a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9400a78e148bSantirez# If the template does not know about datarootdir, expand it. 9401a78e148bSantirez# FIXME: This hack should be removed a few years after 2.60. 9402a78e148bSantirezac_datarootdir_hack=; ac_datarootdir_seen= 9403a78e148bSantirezac_sed_dataroot=' 9404a78e148bSantirez/datarootdir/ { 9405a78e148bSantirez p 9406a78e148bSantirez q 9407a78e148bSantirez} 9408a78e148bSantirez/@datadir@/p 9409a78e148bSantirez/@docdir@/p 9410a78e148bSantirez/@infodir@/p 9411a78e148bSantirez/@localedir@/p 9412a78e148bSantirez/@mandir@/p' 9413a78e148bSantirezcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9414a78e148bSantirez*datarootdir*) ac_datarootdir_seen=yes;; 9415a78e148bSantirez*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9416a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9417a78e148bSantirez$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9418a78e148bSantirez_ACEOF 9419a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9420a78e148bSantirez ac_datarootdir_hack=' 9421a78e148bSantirez s&@datadir@&$datadir&g 9422a78e148bSantirez s&@docdir@&$docdir&g 9423a78e148bSantirez s&@infodir@&$infodir&g 9424a78e148bSantirez s&@localedir@&$localedir&g 9425a78e148bSantirez s&@mandir@&$mandir&g 9426a78e148bSantirez s&\\\${datarootdir}&$datarootdir&g' ;; 9427a78e148bSantirezesac 9428a78e148bSantirez_ACEOF 9429a78e148bSantirez 9430a78e148bSantirez# Neutralize VPATH when `$srcdir' = `.'. 9431a78e148bSantirez# Shell code in configure.ac might set extrasub. 9432a78e148bSantirez# FIXME: do we really want to maintain this feature? 9433a78e148bSantirezcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9434a78e148bSantirezac_sed_extra="$ac_vpsub 9435a78e148bSantirez$extrasub 9436a78e148bSantirez_ACEOF 9437a78e148bSantirezcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9438a78e148bSantirez:t 9439a78e148bSantirez/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9440a78e148bSantirezs|@configure_input@|$ac_sed_conf_input|;t t 9441a78e148bSantirezs&@top_builddir@&$ac_top_builddir_sub&;t t 9442a78e148bSantirezs&@top_build_prefix@&$ac_top_build_prefix&;t t 9443a78e148bSantirezs&@srcdir@&$ac_srcdir&;t t 9444a78e148bSantirezs&@abs_srcdir@&$ac_abs_srcdir&;t t 9445a78e148bSantirezs&@top_srcdir@&$ac_top_srcdir&;t t 9446a78e148bSantirezs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9447a78e148bSantirezs&@builddir@&$ac_builddir&;t t 9448a78e148bSantirezs&@abs_builddir@&$ac_abs_builddir&;t t 9449a78e148bSantirezs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9450a78e148bSantirezs&@INSTALL@&$ac_INSTALL&;t t 9451a78e148bSantirez$ac_datarootdir_hack 9452a78e148bSantirez" 9453ad4c0b41Santirezeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9454ad4c0b41Santirez >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9455a78e148bSantirez 9456a78e148bSantireztest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9457ad4c0b41Santirez { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9458ad4c0b41Santirez { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9459ad4c0b41Santirez "$ac_tmp/out"`; test -z "$ac_out"; } && 9460a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9461ad4c0b41Santirezwhich seems to be undefined. Please make sure it is defined" >&5 9462a78e148bSantirez$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9463ad4c0b41Santirezwhich seems to be undefined. Please make sure it is defined" >&2;} 9464a78e148bSantirez 9465ad4c0b41Santirez rm -f "$ac_tmp/stdin" 9466a78e148bSantirez case $ac_file in 9467ad4c0b41Santirez -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9468ad4c0b41Santirez *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9469a78e148bSantirez esac \ 9470ad4c0b41Santirez || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9471a78e148bSantirez ;; 9472a78e148bSantirez :H) 9473a78e148bSantirez # 9474a78e148bSantirez # CONFIG_HEADER 9475a78e148bSantirez # 9476a78e148bSantirez if test x"$ac_file" != x-; then 9477a78e148bSantirez { 9478a78e148bSantirez $as_echo "/* $configure_input */" \ 9479ad4c0b41Santirez && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9480ad4c0b41Santirez } >"$ac_tmp/config.h" \ 9481ad4c0b41Santirez || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9482ad4c0b41Santirez if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9483a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9484a78e148bSantirez$as_echo "$as_me: $ac_file is unchanged" >&6;} 9485a78e148bSantirez else 9486a78e148bSantirez rm -f "$ac_file" 9487ad4c0b41Santirez mv "$ac_tmp/config.h" "$ac_file" \ 9488ad4c0b41Santirez || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9489a78e148bSantirez fi 9490a78e148bSantirez else 9491a78e148bSantirez $as_echo "/* $configure_input */" \ 9492ad4c0b41Santirez && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9493ad4c0b41Santirez || as_fn_error $? "could not create -" "$LINENO" 5 9494a78e148bSantirez fi 9495a78e148bSantirez ;; 9496a78e148bSantirez 9497ad4c0b41Santirez :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9498ad4c0b41Santirez$as_echo "$as_me: executing $ac_file commands" >&6;} 9499ad4c0b41Santirez ;; 9500a78e148bSantirez esac 9501a78e148bSantirez 9502ad4c0b41Santirez 9503ad4c0b41Santirez case $ac_file$ac_mode in 9504fceef8e0Santirez "include/jemalloc/internal/private_namespace.h":C) 9505fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9506fceef8e0Santirez "${srcdir}/include/jemalloc/internal/private_namespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_namespace.h" 9507fceef8e0Santirez ;; 9508fceef8e0Santirez "include/jemalloc/internal/private_unnamespace.h":C) 9509fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9510fceef8e0Santirez "${srcdir}/include/jemalloc/internal/private_unnamespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_unnamespace.h" 9511fceef8e0Santirez ;; 9512fceef8e0Santirez "include/jemalloc/internal/public_symbols.txt":C) 9513fceef8e0Santirez f="${objroot}include/jemalloc/internal/public_symbols.txt" 9514fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9515fceef8e0Santirez cp /dev/null "${f}" 9516fceef8e0Santirez for nm in `echo ${mangling_map} |tr ',' ' '` ; do 9517fceef8e0Santirez n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 9518fceef8e0Santirez m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` 9519fceef8e0Santirez echo "${n}:${m}" >> "${f}" 9520fceef8e0Santirez public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '` 9521fceef8e0Santirez done 9522fceef8e0Santirez for sym in ${public_syms} ; do 9523fceef8e0Santirez n="${sym}" 9524fceef8e0Santirez m="${JEMALLOC_PREFIX}${sym}" 9525fceef8e0Santirez echo "${n}:${m}" >> "${f}" 9526fceef8e0Santirez done 9527fceef8e0Santirez ;; 9528fceef8e0Santirez "include/jemalloc/internal/public_namespace.h":C) 9529fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9530fceef8e0Santirez "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h" 9531fceef8e0Santirez ;; 9532fceef8e0Santirez "include/jemalloc/internal/public_unnamespace.h":C) 9533fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9534fceef8e0Santirez "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h" 9535fceef8e0Santirez ;; 9536ad4c0b41Santirez "include/jemalloc/internal/size_classes.h":C) 9537fceef8e0Santirez mkdir -p "${objroot}include/jemalloc/internal" 9538*5268379eSantirez "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" ${LG_TINY_MIN} "${LG_PAGE_SIZES}" ${LG_SIZE_CLASS_GROUP} > "${objroot}include/jemalloc/internal/size_classes.h" 9539ad4c0b41Santirez ;; 9540fceef8e0Santirez "include/jemalloc/jemalloc_protos_jet.h":C) 9541fceef8e0Santirez mkdir -p "${objroot}include/jemalloc" 9542fceef8e0Santirez cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h" 9543fceef8e0Santirez ;; 9544fceef8e0Santirez "include/jemalloc/jemalloc_rename.h":C) 9545fceef8e0Santirez mkdir -p "${objroot}include/jemalloc" 9546fceef8e0Santirez "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h" 9547fceef8e0Santirez ;; 9548fceef8e0Santirez "include/jemalloc/jemalloc_mangle.h":C) 9549fceef8e0Santirez mkdir -p "${objroot}include/jemalloc" 9550fceef8e0Santirez "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h" 9551fceef8e0Santirez ;; 9552fceef8e0Santirez "include/jemalloc/jemalloc_mangle_jet.h":C) 9553fceef8e0Santirez mkdir -p "${objroot}include/jemalloc" 9554fceef8e0Santirez "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h" 9555fceef8e0Santirez ;; 9556fceef8e0Santirez "include/jemalloc/jemalloc.h":C) 9557fceef8e0Santirez mkdir -p "${objroot}include/jemalloc" 9558fceef8e0Santirez "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h" 9559fceef8e0Santirez ;; 9560ad4c0b41Santirez 9561ad4c0b41Santirez esac 9562a78e148bSantirezdone # for ac_tag 9563a78e148bSantirez 9564a78e148bSantirez 9565a78e148bSantirezas_fn_exit 0 9566a78e148bSantirez_ACEOF 9567a78e148bSantirezac_clean_files=$ac_clean_files_save 9568a78e148bSantirez 9569a78e148bSantireztest $ac_write_fail = 0 || 9570ad4c0b41Santirez as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9571a78e148bSantirez 9572a78e148bSantirez 9573a78e148bSantirez# configure is writing to config.log, and then calls config.status. 9574a78e148bSantirez# config.status does its own redirection, appending to config.log. 9575a78e148bSantirez# Unfortunately, on DOS this fails, as config.log is still kept open 9576a78e148bSantirez# by configure, so config.status won't be able to write to it; its 9577a78e148bSantirez# output is simply discarded. So we exec the FD to /dev/null, 9578a78e148bSantirez# effectively closing config.log, so it can be properly (re)opened and 9579a78e148bSantirez# appended to by config.status. When coming back to configure, we 9580a78e148bSantirez# need to make the FD available again. 9581a78e148bSantirezif test "$no_create" != yes; then 9582a78e148bSantirez ac_cs_success=: 9583a78e148bSantirez ac_config_status_args= 9584a78e148bSantirez test "$silent" = yes && 9585a78e148bSantirez ac_config_status_args="$ac_config_status_args --quiet" 9586a78e148bSantirez exec 5>/dev/null 9587a78e148bSantirez $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9588a78e148bSantirez exec 5>>config.log 9589a78e148bSantirez # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9590a78e148bSantirez # would make configure fail if this is the last instruction. 9591ad4c0b41Santirez $ac_cs_success || as_fn_exit 1 9592a78e148bSantirezfi 9593a78e148bSantirezif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9594a78e148bSantirez { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9595a78e148bSantirez$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9596a78e148bSantirezfi 9597a78e148bSantirez 9598a78e148bSantirez 9599a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 9600a78e148bSantirez$as_echo "===============================================================================" >&6; } 9601ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5 9602ad4c0b41Santirez$as_echo "jemalloc version : ${jemalloc_version}" >&6; } 9603ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5 9604ad4c0b41Santirez$as_echo "library revision : ${rev}" >&6; } 9605a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9606a78e148bSantirez$as_echo "" >&6; } 9607*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5 9608*5268379eSantirez$as_echo "CONFIG : ${CONFIG}" >&6; } 9609a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5 9610a78e148bSantirez$as_echo "CC : ${CC}" >&6; } 9611a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS : ${CFLAGS}" >&5 9612a78e148bSantirez$as_echo "CFLAGS : ${CFLAGS}" >&6; } 9613*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5 9614*5268379eSantirez$as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; } 9615a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5 9616a78e148bSantirez$as_echo "LDFLAGS : ${LDFLAGS}" >&6; } 9617fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5 9618fceef8e0Santirez$as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; } 9619a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5 9620a78e148bSantirez$as_echo "LIBS : ${LIBS}" >&6; } 9621*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: TESTLIBS : ${TESTLIBS}" >&5 9622*5268379eSantirez$as_echo "TESTLIBS : ${TESTLIBS}" >&6; } 9623a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5 9624a78e148bSantirez$as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; } 9625a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9626a78e148bSantirez$as_echo "" >&6; } 9627a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5 9628a78e148bSantirez$as_echo "XSLTPROC : ${XSLTPROC}" >&6; } 9629a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5 9630a78e148bSantirez$as_echo "XSLROOT : ${XSLROOT}" >&6; } 9631a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9632a78e148bSantirez$as_echo "" >&6; } 9633a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5 9634a78e148bSantirez$as_echo "PREFIX : ${PREFIX}" >&6; } 9635a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5 9636a78e148bSantirez$as_echo "BINDIR : ${BINDIR}" >&6; } 9637*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5 9638*5268379eSantirez$as_echo "DATADIR : ${DATADIR}" >&6; } 9639a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5 9640a78e148bSantirez$as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; } 9641a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5 9642a78e148bSantirez$as_echo "LIBDIR : ${LIBDIR}" >&6; } 9643a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5 9644a78e148bSantirez$as_echo "MANDIR : ${MANDIR}" >&6; } 9645a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9646a78e148bSantirez$as_echo "" >&6; } 9647a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5 9648a78e148bSantirez$as_echo "srcroot : ${srcroot}" >&6; } 9649a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5 9650a78e148bSantirez$as_echo "abs_srcroot : ${abs_srcroot}" >&6; } 9651a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5 9652a78e148bSantirez$as_echo "objroot : ${objroot}" >&6; } 9653a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5 9654a78e148bSantirez$as_echo "abs_objroot : ${abs_objroot}" >&6; } 9655a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9656a78e148bSantirez$as_echo "" >&6; } 9657a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5 9658a78e148bSantirez$as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; } 96591d03c1c9Sjbergstroem{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5 96601d03c1c9Sjbergstroem$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; } 96611d03c1c9Sjbergstroem{ $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5 96621d03c1c9Sjbergstroem$as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; } 9663a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5 9664a78e148bSantirez$as_echo "install_suffix : ${install_suffix}" >&6; } 9665a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5 9666a78e148bSantirez$as_echo "autogen : ${enable_autogen}" >&6; } 9667a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5 9668a78e148bSantirez$as_echo "cc-silence : ${enable_cc_silence}" >&6; } 9669a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5 9670a78e148bSantirez$as_echo "debug : ${enable_debug}" >&6; } 9671fceef8e0Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: code-coverage : ${enable_code_coverage}" >&5 9672fceef8e0Santirez$as_echo "code-coverage : ${enable_code_coverage}" >&6; } 9673a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5 9674a78e148bSantirez$as_echo "stats : ${enable_stats}" >&6; } 9675a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5 9676a78e148bSantirez$as_echo "prof : ${enable_prof}" >&6; } 9677a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5 9678a78e148bSantirez$as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; } 9679a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5 9680a78e148bSantirez$as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; } 9681a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5 9682a78e148bSantirez$as_echo "prof-gcc : ${enable_prof_gcc}" >&6; } 9683a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5 9684a78e148bSantirez$as_echo "tcache : ${enable_tcache}" >&6; } 9685a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5 9686a78e148bSantirez$as_echo "fill : ${enable_fill}" >&6; } 9687ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5 9688ad4c0b41Santirez$as_echo "utrace : ${enable_utrace}" >&6; } 9689ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind : ${enable_valgrind}" >&5 9690ad4c0b41Santirez$as_echo "valgrind : ${enable_valgrind}" >&6; } 9691a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5 9692a78e148bSantirez$as_echo "xmalloc : ${enable_xmalloc}" >&6; } 9693ad4c0b41Santirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap : ${enable_munmap}" >&5 9694ad4c0b41Santirez$as_echo "munmap : ${enable_munmap}" >&6; } 9695a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5 9696a78e148bSantirez$as_echo "lazy_lock : ${enable_lazy_lock}" >&6; } 9697a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5 9698a78e148bSantirez$as_echo "tls : ${enable_tls}" >&6; } 9699*5268379eSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5 9700*5268379eSantirez$as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; } 9701a78e148bSantirez{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 9702a78e148bSantirez$as_echo "===============================================================================" >&6; } 9703