2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
628 enable_zone_allocator
633 jemalloc_version_nrev
634 jemalloc_version_bugfix
635 jemalloc_version_minor
636 jemalloc_version_major
638 enable_cache_oblivious
747 program_transform_name
760 enable_option_checking
768 with_private_namespace
776 enable_prof_libunwind
777 with_static_libunwind
786 enable_cache_oblivious
791 with_lg_size_class_group
797 enable_zone_allocator
799 ac_precious_vars
='build_alias
810 # Initialize some variables set by options.
812 ac_init_version
=false
813 ac_unrecognized_opts
=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
824 program_transform_name
=s
,x
,x
,
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir
='${exec_prefix}/bin'
839 sbindir
='${exec_prefix}/sbin'
840 libexecdir
='${exec_prefix}/libexec'
841 datarootdir
='${prefix}/share'
842 datadir
='${datarootdir}'
843 sysconfdir
='${prefix}/etc'
844 sharedstatedir
='${prefix}/com'
845 localstatedir
='${prefix}/var'
846 runstatedir
='${localstatedir}/run'
847 includedir
='${prefix}/include'
848 oldincludedir
='/usr/include'
849 docdir
='${datarootdir}/doc/${PACKAGE}'
850 infodir
='${datarootdir}/info'
855 libdir
='${exec_prefix}/lib'
856 localedir
='${datarootdir}/locale'
857 mandir
='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\
$ac_option
871 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
884 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
887 -build |
--build |
--buil |
--bui |
--bu)
888 ac_prev
=build_alias
;;
889 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
890 build_alias
=$ac_optarg ;;
892 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
893 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
894 ac_prev
=cache_file
;;
895 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
896 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
897 cache_file
=$ac_optarg ;;
900 cache_file
=config.cache
;;
902 -datadir |
--datadir |
--datadi |
--datad)
904 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
905 datadir
=$ac_optarg ;;
907 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
908 |
--dataroo |
--dataro |
--datar)
909 ac_prev
=datarootdir
;;
910 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
911 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
912 datarootdir
=$ac_optarg ;;
914 -disable-* |
--disable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
944 as_fn_error $?
"invalid feature name: $ac_useropt"
945 ac_useropt_orig
=$ac_useropt
946 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep
=', ';;
954 eval enable_
$ac_useropt=\
$ac_optarg ;;
956 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
957 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
958 |
--exec |
--exe |
--ex)
959 ac_prev
=exec_prefix
;;
960 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
961 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
962 |
--exec=* |
--exe=* |
--ex=*)
963 exec_prefix
=$ac_optarg ;;
965 -gas |
--gas |
--ga |
--g)
966 # Obsolete; use --with-gas.
969 -help |
--help |
--hel |
--he |
-h)
971 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
972 ac_init_help
=recursive
;;
973 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
974 ac_init_help
=short
;;
976 -host |
--host |
--hos |
--ho)
977 ac_prev
=host_alias
;;
978 -host=* |
--host=* |
--hos=* |
--ho=*)
979 host_alias
=$ac_optarg ;;
981 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
983 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
985 htmldir
=$ac_optarg ;;
987 -includedir |
--includedir |
--includedi |
--included |
--include \
988 |
--includ |
--inclu |
--incl |
--inc)
989 ac_prev
=includedir
;;
990 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
991 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
992 includedir
=$ac_optarg ;;
994 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
996 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
997 infodir
=$ac_optarg ;;
999 -libdir |
--libdir |
--libdi |
--libd)
1001 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1002 libdir
=$ac_optarg ;;
1004 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1005 |
--libexe |
--libex |
--libe)
1006 ac_prev
=libexecdir
;;
1007 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1008 |
--libexe=* |
--libex=* |
--libe=*)
1009 libexecdir
=$ac_optarg ;;
1011 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1012 ac_prev
=localedir
;;
1013 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1014 localedir
=$ac_optarg ;;
1016 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1017 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1018 ac_prev
=localstatedir
;;
1019 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1020 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1021 localstatedir
=$ac_optarg ;;
1023 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1025 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1026 mandir
=$ac_optarg ;;
1028 -nfp |
--nfp |
--nf)
1029 # Obsolete; use --without-fp.
1032 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1033 |
--no-cr |
--no-c |
-n)
1036 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1037 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1040 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1041 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1042 |
--oldin |
--oldi |
--old |
--ol |
--o)
1043 ac_prev
=oldincludedir
;;
1044 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1045 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1046 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1047 oldincludedir
=$ac_optarg ;;
1049 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1051 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1052 prefix
=$ac_optarg ;;
1054 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1055 |
--program-pre |
--program-pr |
--program-p)
1056 ac_prev
=program_prefix
;;
1057 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1058 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1059 program_prefix
=$ac_optarg ;;
1061 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1062 |
--program-suf |
--program-su |
--program-s)
1063 ac_prev
=program_suffix
;;
1064 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1065 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1066 program_suffix
=$ac_optarg ;;
1068 -program-transform-name |
--program-transform-name \
1069 |
--program-transform-nam |
--program-transform-na \
1070 |
--program-transform-n |
--program-transform- \
1071 |
--program-transform |
--program-transfor \
1072 |
--program-transfo |
--program-transf \
1073 |
--program-trans |
--program-tran \
1074 |
--progr-tra |
--program-tr |
--program-t)
1075 ac_prev
=program_transform_name
;;
1076 -program-transform-name=* |
--program-transform-name=* \
1077 |
--program-transform-nam=* |
--program-transform-na=* \
1078 |
--program-transform-n=* |
--program-transform-=* \
1079 |
--program-transform=* |
--program-transfor=* \
1080 |
--program-transfo=* |
--program-transf=* \
1081 |
--program-trans=* |
--program-tran=* \
1082 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1083 program_transform_name
=$ac_optarg ;;
1085 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1087 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1088 pdfdir
=$ac_optarg ;;
1090 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1092 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1095 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1096 |
-silent |
--silent |
--silen |
--sile |
--sil)
1099 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1100 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1101 |
--run |
--ru |
--r)
1102 ac_prev
=runstatedir
;;
1103 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1104 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1105 |
--run=* |
--ru=* |
--r=*)
1106 runstatedir
=$ac_optarg ;;
1108 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1110 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1112 sbindir
=$ac_optarg ;;
1114 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1115 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1116 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1118 ac_prev
=sharedstatedir
;;
1119 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1120 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1121 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1123 sharedstatedir
=$ac_optarg ;;
1125 -site |
--site |
--sit)
1127 -site=* |
--site=* |
--sit=*)
1130 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1132 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1133 srcdir
=$ac_optarg ;;
1135 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1136 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1137 ac_prev
=sysconfdir
;;
1138 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1139 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1140 sysconfdir
=$ac_optarg ;;
1142 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1143 ac_prev
=target_alias
;;
1144 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1145 target_alias
=$ac_optarg ;;
1147 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1150 -version |
--version |
--versio |
--versi |
--vers |
-V)
1151 ac_init_version
=: ;;
1154 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error $?
"invalid package name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=\
$ac_optarg ;;
1169 -without-* |
--without-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error $?
"invalid package name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval with_
$ac_useropt=no
;;
1186 # Obsolete; use --with-x.
1189 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1190 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1191 ac_prev
=x_includes
;;
1192 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1193 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1194 x_includes
=$ac_optarg ;;
1196 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1197 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1198 ac_prev
=x_libraries
;;
1199 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1200 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1201 x_libraries
=$ac_optarg ;;
1203 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1208 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1212 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\
$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 if test -n "$ac_prev"; then
1229 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $?
"missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir runstatedir
1247 eval ac_val
=\$
$ac_var
1248 # Remove trailing slashes.
1251 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\
$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$
]* | ?
:[\\/]* ) continue;;
1257 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1259 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target
=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x
; then
1271 if test "x$build_alias" = x
; then
1272 cross_compiling
=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1281 test "$silent" = yes && exec 6>/dev
/null
1284 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di
=`ls -di .` &&
1286 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $?
"working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $?
"pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted
=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir
=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1324 ac_srcdir_defaulted
=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1328 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var
in $ac_precious_vars; do
1345 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1347 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures this package to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --build=BUILD configure
for building on BUILD
[guessed
]
1418 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1422 if test -n "$ac_init_help"; then
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-autogen Automatically regenerate configure output
1431 --enable-code-coverage Enable code coverage
1432 --disable-cc-silence Do not silence irrelevant compiler warnings
1433 --enable-debug Build debugging code
(implies
--enable-ivsalloc)
1434 --enable-ivsalloc Validate pointers passed through the public API
1435 --disable-stats Disable statistics calculation
/reporting
1436 --enable-prof Enable allocation profiling
1437 --enable-prof-libunwind Use libunwind
for backtracing
1438 --disable-prof-libgcc Do not use libgcc
for backtracing
1439 --disable-prof-gcc Do not use gcc intrinsics
for backtracing
1440 --disable-tcache Disable per thread caches
1441 --disable-munmap Disable VM deallocation via munmap
(2)
1442 --disable-fill Disable support
for junk
/zero filling
, quarantine
,
1444 --enable-utrace Enable utrace
(2)-based tracing
1445 --disable-valgrind Disable support
for Valgrind
1446 --enable-xmalloc Support xmalloc option
1447 --disable-cache-oblivious
1448 Disable support
for cache-oblivious allocation
1450 --disable-syscall Disable use of syscall
(2)
1451 --enable-lazy-lock Enable lazy locking
(only lock when multi-threaded
)
1452 --disable-tls Disable thread-local storage
(__thread keyword
)
1453 --disable-thp Disable transparent huge page supprot
1454 --disable-zone-allocator
1455 Disable zone allocator
for Darwin
1458 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1459 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1460 --with-xslroot=<path
> XSL stylesheet root path
1461 --with-rpath=<rpath
> Colon-separated rpath
(ELF systems only
)
1462 --with-mangling=<map
> Mangle symbols
in <map
>
1463 --with-jemalloc-prefix=<prefix
>
1464 Prefix to prepend to all public APIs
1465 --without-export disable exporting jemalloc public APIs
1466 --with-private-namespace=<prefix
>
1467 Prefix to prepend to all library-private APIs
1468 --with-install-suffix=<suffix
>
1469 Suffix to append to all installed files
1470 --with-malloc-conf=<malloc_conf
>
1471 config.malloc_conf options string
1472 --with-static-libunwind=<libunwind.a
>
1473 Path to static libunwind library
; use rather than
1475 --with-lg-tiny-min=<lg-tiny-min
>
1476 Base
2 log of minimum tiny size class to support
1477 --with-lg-quantum=<lg-quantum
>
1478 Base
2 log of minimum allocation alignment
1479 --with-lg-page=<lg-page
>
1480 Base
2 log of system page size
1481 --with-lg-page-sizes=<lg-page-sizes
>
1482 Base
2 logs of system page sizes to support
1483 --with-lg-size-class-group=<lg-size-class-group
>
1484 Base
2 log of size classes per doubling
1485 --with-version=<major
>.
<minor
>.
<bugfix
>-<nrev
>-g<gid
>
1488 Some influential environment variables
:
1489 CC C compiler
command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1492 nonstandard directory
<lib dir
>
1493 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1494 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1495 you have headers
in a nonstandard directory
<include dir
>
1498 Use these variables to override the choices made by
`configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to the package provider.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.69
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1588 *) ac_try_echo
=$ac_try;;
1590 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1594 if test -s conftest.err
; then
1595 grep -v '^ *+' conftest.err
>conftest.er1
1596 cat conftest.er1
>&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.
$ac_objext; then :
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.
$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status
$ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1622 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_link"
1662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1663 *) ac_try_echo
=$ac_try;;
1665 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>&5
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1671 { { case "(($ac_try" in
1672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_try") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; }; }; then :
1683 $as_echo "$as_me: program exited with status $ac_status" >&5
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=$ac_status
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_compile
1726 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1727 # --------------------------------------------
1728 # Tries to find the compile-time value of EXPR in a program that includes
1729 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1731 ac_fn_c_compute_int ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if test "$cross_compiling" = yes; then
1735 # Depending upon the size, compute the lo and hi bounds.
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1742 static int test_array [1 - 2 * !(($2) >= 0)];
1744 return test_array [0];
1750 if ac_fn_c_try_compile "$LINENO"; then :
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1761 return test_array [0];
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_hi=$ac_mid; break
1770 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1771 if test $ac_lo -le $ac_mid; then
1775 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1786 static int test_array [1 - 2 * !(($2) < 0)];
1788 return test_array [0];
1794 if ac_fn_c_try_compile "$LINENO"; then :
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1803 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1805 return test_array [0];
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_lo=$ac_mid; break
1814 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1815 if test $ac_mid -le $ac_hi; then
1819 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 # Binary search between lo and hi bounds.
1830 while test "x$ac_lo" != "x$ac_hi"; do
1831 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1838 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1840 return test_array [0];
1846 if ac_fn_c_try_compile "$LINENO"; then :
1849 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1861 static long int longval () { return $2; }
1862 static unsigned long int ulongval () { return $2; }
1869 FILE *f = fopen ("conftest.val", "w");
1874 long int i = longval ();
1877 fprintf (f, "%ld", i);
1881 unsigned long int i = ulongval ();
1884 fprintf (f, "%lu", i);
1886 /* Do not output a trailing newline, as this causes \r\n confusion
1887 on some platforms. */
1888 return ferror (f) || fclose (f) != 0;
1894 if ac_fn_c_try_run "$LINENO"; then :
1895 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1900 conftest.$ac_objext conftest.beam conftest.$ac_ext
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_compute_int
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1919 *) ac_try_echo
=$ac_try;;
1921 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1925 if test -s conftest.err
; then
1926 grep -v '^ *+' conftest.err
>conftest.er1
1927 cat conftest.er1
>&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest
$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest
$ac_exeext
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.
$ac_ext >&5
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status
$ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1960 ac_fn_c_check_header_mongrel
()
1962 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1963 if eval \
${$3+:} false
; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \
${$3+:} false
; then :
1967 $as_echo_n "(cached) " >&6
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1981 if ac_fn_c_try_compile
"$LINENO"; then :
1982 ac_header_compiler
=yes
1984 ac_header_compiler
=no
1986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 if ac_fn_c_try_cpp
"$LINENO"; then :
1998 ac_header_preproc
=yes
2000 ac_header_preproc
=no
2002 rm -f conftest.err conftest.i conftest.
$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \
${$3+:} false
; then :
2030 $as_echo_n "(cached) " >&6
2032 eval "$3=\$ac_header_compiler"
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_mongrel
2042 # ac_fn_c_check_func LINENO FUNC VAR
2043 # ----------------------------------
2044 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2045 ac_fn_c_check_func
()
2047 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \
${$3+:} false
; then :
2051 $as_echo_n "(cached) " >&6
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2057 #define $2 innocuous_$2
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char $2 (); below.
2061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062 <limits.h> exists even on freestanding compilers. */
2065 # include <limits.h>
2067 # include <assert.h>
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2094 if ac_fn_c_try_link
"$LINENO"; then :
2099 rm -f core conftest.err conftest.
$ac_objext \
2100 conftest
$ac_exeext conftest.
$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_func
2109 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110 # -------------------------------------------
2111 # Tests whether TYPE exists after having included INCLUDES, setting cache
2112 # variable VAR accordingly.
2113 ac_fn_c_check_type
()
2115 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval \
${$3+:} false
; then :
2119 $as_echo_n "(cached) " >&6
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2134 if ac_fn_c_try_compile
"$LINENO"; then :
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2147 if ac_fn_c_try_compile
"$LINENO"; then :
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_type
2162 cat >config.log
<<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2166 It was created by $as_me, which was
2167 generated by GNU Autoconf 2.69. Invocation command line was
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir
=.
2203 $as_echo "PATH: $as_dir"
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_must_keep_next
=false
2233 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2234 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2235 |
-silent |
--silent |
--silen |
--sile |
--sil)
2238 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1
" '$ac_arg'"
2244 if test $ac_must_keep_next = true
; then
2245 ac_must_keep_next
=false
# Got value, back to normal.
2248 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2249 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2250 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2251 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 -* ) ac_must_keep_next
=true
;;
2259 as_fn_append ac_configure_args
" '$ac_arg'"
2264 { ac_configure_args0
=; unset ac_configure_args0
;}
2265 { ac_configure_args1
=; unset ac_configure_args1
;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2321 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 $as_echo "$ac_var='\''$ac_val'\''"
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2332 for ac_var
in $ac_subst_files
2334 eval ac_val
=\$
$ac_var
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 for ac_signal
in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest
* confdefs.h
2367 $as_echo "/* confdefs.h */" > confdefs.h
2369 # Predefined preprocessor variables.
2371 cat >>confdefs.h
<<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 cat >>confdefs.h
<<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 cat >>confdefs.h
<<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 cat >>confdefs.h
<<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 cat >>confdefs.h
<<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 cat >>confdefs.h
<<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2404 */*) ac_site_file1
=$CONFIG_SITE;;
2405 *) ac_site_file1
=.
/$CONFIG_SITE;;
2407 elif test "x$prefix" != xNONE
; then
2408 ac_site_file1
=$prefix/share
/config.site
2409 ac_site_file2
=$prefix/etc
/config.site
2411 ac_site_file1
=$ac_default_prefix/share
/config.site
2412 ac_site_file2
=$ac_default_prefix/etc
/config.site
2414 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE
&& continue
2417 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2422 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $?
"failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2436 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2437 *) .
"./$cache_file";;
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 # Check that the precious variables saved in the cache have kept the same
2448 ac_cache_corrupted
=false
2449 for ac_var
in $ac_precious_vars; do
2450 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2451 eval ac_new_set
=\
$ac_env_${ac_var}_set
2452 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2453 eval ac_new_val
=\
$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted
=: ;;
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted
=: ;;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w
=`echo x $ac_old_val`
2468 ac_new_val_w
=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted
=:
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\
$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2487 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg
=$ac_var=$ac_new_val ;;
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2508 ac_cpp
='$CPP $CPPFLAGS'
2509 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2516 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
2517 if test -f "$ac_dir/install-sh"; then
2519 ac_install_sh
="$ac_aux_dir/install-sh -c"
2521 elif test -f "$ac_dir/install.sh"; then
2523 ac_install_sh
="$ac_aux_dir/install.sh -c"
2525 elif test -f "$ac_dir/shtool"; then
2527 ac_install_sh
="$ac_aux_dir/shtool install -c"
2531 if test -z "$ac_aux_dir"; then
2532 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2540 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2541 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551 SPECIFIED_CFLAGS
="${CFLAGS}"
2560 CONFIG
=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2567 if test "x${srcroot}" = "x." ; then
2570 srcroot
="${srcroot}/"
2573 abs_srcroot
="`cd \"${srcdir}\"; pwd`/"
2578 abs_objroot
="`pwd`/"
2581 if test "x$prefix" = "xNONE" ; then
2584 if test "x$exec_prefix" = "xNONE" ; then
2589 BINDIR
=`eval echo $bindir`
2590 BINDIR
=`eval echo $BINDIR`
2592 INCLUDEDIR
=`eval echo $includedir`
2593 INCLUDEDIR
=`eval echo $INCLUDEDIR`
2595 LIBDIR
=`eval echo $libdir`
2596 LIBDIR
=`eval echo $LIBDIR`
2598 DATADIR
=`eval echo $datadir`
2599 DATADIR
=`eval echo $DATADIR`
2601 MANDIR
=`eval echo $mandir`
2602 MANDIR
=`eval echo $MANDIR`
2605 # Extract the first word of "xsltproc", so it can be a program name with args.
2606 set dummy xsltproc
; ac_word
=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_path_XSLTPROC+:} false
; then :
2610 $as_echo_n "(cached) " >&6
2614 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
2617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir
=.
2622 for ac_exec_ext
in '' $ac_executable_extensions; do
2623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC
="false"
2636 XSLTPROC
=$ac_cv_path_XSLTPROC
2637 if test -n "$XSLTPROC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2639 $as_echo "$XSLTPROC" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2646 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2647 DEFAULT_XSLROOT
="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2648 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2649 DEFAULT_XSLROOT
="/usr/share/sgml/docbook/xsl-stylesheets"
2654 # Check whether --with-xslroot was given.
2655 if test "${with_xslroot+set}" = set; then :
2656 withval
=$with_xslroot;
2657 if test "x$with_xslroot" = "xno" ; then
2658 XSLROOT
="${DEFAULT_XSLROOT}"
2660 XSLROOT
="${with_xslroot}"
2664 XSLROOT
="${DEFAULT_XSLROOT}"
2672 ac_cpp
='$CPP $CPPFLAGS'
2673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false
; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC
="$CC" # Let the user override the test.
2687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir
=.
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2715 if test -z "$ac_cv_prog_CC"; then
2717 # Extract the first word of "gcc", so it can be a program name with args.
2718 set dummy gcc
; ac_word
=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_ac_ct_CC
="gcc"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2753 if test "x$ac_ct_CC" = x
; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned
=yes ;;
2768 if test -z "$CC"; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false
; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC
="$CC" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2809 if test -z "$CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc
; ac_word
=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false
; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC
="$CC" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829 ac_prog_rejected
=yes
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test $ac_prog_rejected = yes; then
2841 # We found a bogon in the path, so make sure we never use it.
2842 set dummy
$ac_cv_prog_CC
2844 if test $# != 0; then
2845 # We chose a different compiler from the bogus one.
2846 # However, it has the same basename, so the bogon will be chosen
2847 # first if we set CC to just the basename; use the full file name.
2849 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog
in cl.exe
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false
; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC
="$CC" # Let the user override the test.
2879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir
=.
2884 for ac_exec_ext
in '' $ac_executable_extensions; do
2885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2906 test -n "$CC" && break
2909 if test -z "$CC"; then
2911 for ac_prog
in cl.exe
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy
$ac_prog; ac_word
=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir
=.
2928 for ac_exec_ext
in '' $ac_executable_extensions; do
2929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_CC
="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$ac_ct_CC" && break
2953 if test "x$ac_ct_CC" = x
; then
2956 case $cross_compiling:$ac_tool_warned in
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned
=yes ;;
2969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $?
"no acceptable C compiler found in \$PATH
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 # Provide some information about the compiler.
2975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2978 for ac_option
in --version -v -V -qversion; do
2979 { { ac_try
="$ac_compiler $ac_option >&5"
2981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2988 if test -s conftest.err; then
2990 ... rest of stderr output deleted ...
2991 10q' conftest.err >conftest.er1
2992 cat conftest.er1 >&5
2994 rm -f conftest.er1 conftest.err
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3010 ac_clean_files_save=$ac_clean_files
3011 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012 # Try to create an executable without -o first, disregard a.out.
3013 # It will help us diagnose broken compilers, and finding out an intuition
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016 $as_echo_n "checking whether the C compiler works... " >&6; }
3017 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3019 # The possible output files:
3020 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3023 for ac_file in $ac_files
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3032 if { { ac_try="$ac_link_default"
3034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3035 *) ac_try_echo
=$ac_try;;
3037 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_link_default") 2>&5
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3046 # so that the user can short-circuit this test for compilers unknown to
3048 for ac_file
in $ac_files ''
3050 test -f "$ac_file" ||
continue
3052 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3055 # We found the default executable, but exeext='' is most
3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3061 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 # We set ac_cv_exeext here because the later test for it is not
3064 # safe: cross compilers may not add the suffix if given an `-o'
3065 # argument, so we may need to know it at that point already.
3066 # Even if this section looks crufty: it has the advantage of
3073 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3078 if test -z "$ac_file"; then :
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error
77 "C compiler cannot create executables
3087 See \`config.log' for more details" "$LINENO" 5; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093 $as_echo_n "checking for C compiler default output file name... " >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095 $as_echo "$ac_file" >&6; }
3096 ac_exeext
=$ac_cv_exeext
3098 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3099 ac_clean_files
=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101 $as_echo_n "checking for suffix of executables... " >&6; }
3102 if { { ac_try
="$ac_link"
3104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link") 2>&5
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3114 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 for ac_file
in conftest.exe conftest conftest.
*; do
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3121 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3130 See \`config.log' for more details" "$LINENO" 5; }
3132 rm -f conftest conftest
$ac_cv_exeext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134 $as_echo "$ac_cv_exeext" >&6; }
3136 rm -f conftest.
$ac_ext
3137 EXEEXT
=$ac_cv_exeext
3139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3145 FILE *f = fopen ("conftest.out", "w");
3146 return ferror (f) || fclose (f) != 0;
3152 ac_clean_files
="$ac_clean_files conftest.out"
3153 # Check that the compiler produces executables we can run. If not, either
3154 # the compiler is broken, or we cross compile.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156 $as_echo_n "checking whether we are cross compiling... " >&6; }
3157 if test "$cross_compiling" != yes; then
3158 { { ac_try
="$ac_link"
3160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169 if { ac_try='./conftest$ac_cv_exeext'
3170 { { case "(($ac_try" in
3171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3172 *) ac_try_echo
=$ac_try;;
3174 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_try") 2>&5
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; }; then
3182 if test "$cross_compiling" = maybe
; then
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $?
"cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details" "$LINENO" 5; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3196 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3197 ac_clean_files
=$ac_clean_files_save
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199 $as_echo_n "checking for suffix of object files... " >&6; }
3200 if ${ac_cv_objext+:} false
; then :
3201 $as_echo_n "(cached) " >&6
3203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 rm -f conftest.o conftest.obj
3215 if { { ac_try
="$ac_compile"
3217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_compile") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 for ac_file in conftest.o conftest.obj conftest.*; do
3227 test -f "$ac_file" || continue;
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3230 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3241 See \
`config.log' for more details" "$LINENO" 5; }
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246 $as_echo "$ac_cv_objext" >&6; }
3247 OBJEXT=$ac_cv_objext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251 if ${ac_cv_c_compiler_gnu+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3268 if ac_fn_c_try_compile "$LINENO"; then :
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279 if test $ac_compiler_gnu = yes; then
3284 ac_test_CFLAGS=${CFLAGS+set}
3285 ac_save_CFLAGS=$CFLAGS
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3288 if ${ac_cv_prog_cc_g+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 ac_save_c_werror_flag=$ac_c_werror_flag
3292 ac_c_werror_flag=yes
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 if ac_fn_c_try_compile "$LINENO"; then :
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3321 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_c_werror_flag=$ac_save_c_werror_flag
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_c_werror_flag=$ac_save_c_werror_flag
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3350 CFLAGS=$ac_save_CFLAGS
3351 elif test $ac_cv_prog_cc_g = yes; then
3352 if test "$GCC" = yes; then
3358 if test "$GCC" = yes; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if ${ac_cv_prog_cc_c89+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 ac_cv_prog_cc_c89=no
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3377 struct buf { int x; };
3378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379 static char *e (p, i)
3385 static char *f (char * (*g) (char **, int), char **p, ...)
3390 s = g (p, va_arg (v,int));
3395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3396 function prototypes and stuff, but not '\xHH' hex character constants.
3397 These don't provoke an error unfortunately, instead are silently treated
3398 as 'x'. The following induces an error, until -std is added to get
3399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3400 array size at least. It's necessary to write '\x00'==0 to get something
3401 that's true only with -std. */
3402 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405 inside strings and character constants. */
3407 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3409 int test (int i, double x);
3410 struct s1 {int (*f) (int a);};
3411 struct s2 {int (*f) (double a);};
3412 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3423 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3426 CC="$ac_save_CC $ac_arg"
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428 ac_cv_prog_cc_c89=$ac_arg
3430 rm -f core conftest.err conftest.$ac_objext
3431 test "x$ac_cv_prog_cc_c89" != "xno" && break
3433 rm -f conftest.$ac_ext
3438 case "x$ac_cv_prog_cc_c89" in
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441 $as_echo "none needed" >&6; } ;;
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444 $as_echo "unsupported" >&6; } ;;
3446 CC="$CC $ac_cv_prog_cc_c89"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3450 if test "x$ac_cv_prog_cc_c89" != xno; then :
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test "x$GCC" != "xyes" ; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3464 $as_echo_n "checking whether compiler is MSVC... " >&6; }
3465 if ${je_cv_msvc+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3491 $as_echo "$je_cv_msvc" >&6; }
3494 je_cv_cray_prgenv_wrapper=""
3495 if test "x${PE_ENV}" != "x" ; then
3498 je_cv_cray_prgenv_wrapper="yes"
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3506 $as_echo_n "checking whether compiler is cray... " >&6; }
3507 if ${je_cv_cray+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3525 if ac_fn_c_try_compile "$LINENO"; then :
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3533 $as_echo "$je_cv_cray" >&6; }
3535 if test "x${je_cv_cray}" = "xyes" ; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3537 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3538 if ${je_cv_cray_84+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3548 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3556 if ac_fn_c_try_compile "$LINENO"; then :
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3564 $as_echo "$je_cv_cray_84" >&6; }
3567 if test "x$GCC" = "xyes" ; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3570 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3571 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3572 T_APPEND_V=-std=gnu11
3573 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3574 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3576 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3580 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3581 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3583 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 je_cv_cflags_added=-std=gnu11
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 $as_echo "yes" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3613 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3615 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3619 if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3620 cat >>confdefs.h <<_ACEOF
3621 #define JEMALLOC_HAS_RESTRICT 1
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3627 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3628 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3629 T_APPEND_V=-std=gnu99
3630 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3631 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3633 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3637 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3638 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3640 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658 je_cv_cflags_added=-std=gnu99
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3670 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3672 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3676 if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define JEMALLOC_HAS_RESTRICT 1
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3685 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
3686 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3688 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3689 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3691 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3695 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3696 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3698 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 je_cv_cflags_added=-Wall
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3728 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3730 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=declaration-after-statement" >&5
3736 $as_echo_n "checking whether compiler supports -Werror=declaration-after-statement... " >&6; }
3737 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3738 T_APPEND_V=-Werror=declaration-after-statement
3739 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3740 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3742 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3746 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3747 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3749 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 je_cv_cflags_added=-Werror=declaration-after-statement
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769 $as_echo "yes" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3779 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3781 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3787 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3788 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3789 T_APPEND_V=-Wshorten-64-to-32
3790 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3791 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3793 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3797 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3798 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3800 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 je_cv_cflags_added=-Wshorten-64-to-32
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820 $as_echo "yes" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3830 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3832 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3838 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3839 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3840 T_APPEND_V=-Wsign-compare
3841 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3842 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3844 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3848 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3849 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3851 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 je_cv_cflags_added=-Wsign-compare
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3881 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3883 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3889 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
3890 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3892 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3893 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3895 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3899 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3900 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3902 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 je_cv_cflags_added=-pipe
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3922 $as_echo "yes" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3932 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3934 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
3940 $as_echo_n "checking whether compiler supports -g3... " >&6; }
3941 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3943 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3944 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3946 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3950 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3951 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3953 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 je_cv_cflags_added=-g3
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3983 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3985 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3989 elif test "x$je_cv_msvc" = "xyes" ; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
3993 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
3994 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3996 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3997 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3999 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4003 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4004 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4006 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024 je_cv_cflags_added=-Zi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4036 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4038 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4044 $as_echo_n "checking whether compiler supports -MT... " >&6; }
4045 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4047 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4048 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4050 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4054 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4055 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4057 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 je_cv_cflags_added=-MT
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4087 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4089 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4095 $as_echo_n "checking whether compiler supports -W3... " >&6; }
4096 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4098 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4099 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4101 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4105 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4106 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4108 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 je_cv_cflags_added=-W3
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128 $as_echo "yes" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4138 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4140 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4146 $as_echo_n "checking whether compiler supports -FS... " >&6; }
4147 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4149 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4150 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4152 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4156 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4157 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4159 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 je_cv_cflags_added=-FS
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4189 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4191 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4195 T_APPEND_V=-I${srcdir}/include/msvc_compat
4196 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4197 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4199 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4204 if test "x$je_cv_cray" = "xyes" ; then
4205 if test "x$je_cv_cray_84" = "xyes" ; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4208 $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4209 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4211 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4212 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4214 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4218 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4219 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4221 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 je_cv_cflags_added=-hipa2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241 $as_echo "yes" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4251 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4253 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4259 $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4260 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4262 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4263 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4265 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4269 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4270 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4272 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 je_cv_cflags_added=-hnognu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4302 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4304 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4309 if test "x$enable_cc_silence" != "xno" ; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4312 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4313 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4314 T_APPEND_V=-hnomessage=128
4315 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4316 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4318 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4322 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4323 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4325 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 je_cv_cflags_added=-hnomessage=128
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 $as_echo "yes" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4355 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4357 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4363 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4364 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4365 T_APPEND_V=-hnomessage=1357
4366 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4367 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4369 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4373 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4374 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4376 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 je_cv_cflags_added=-hnomessage=1357
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4406 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4408 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4423 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4424 # On Suns, sometimes $CPP names a directory.
4425 if test -n "$CPP" && test -d "$CPP"; then
4428 if test -z "$CPP"; then
4429 if ${ac_cv_prog_CPP+:} false; then :
4430 $as_echo_n "(cached) " >&6
4432 # Double quotes because CPP needs to be expanded
4433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4436 for ac_c_preproc_warn_flag in '' yes
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4447 # include <limits.h>
4449 # include <assert.h>
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: fails on valid input.
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4471 # Passes both tests.
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.i conftest.err conftest.
$ac_ext
4480 if $ac_preproc_ok; then :
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4493 $as_echo "$CPP" >&6; }
4495 for ac_c_preproc_warn_flag
in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4506 # include <limits.h>
4508 # include <assert.h>
4512 if ac_fn_c_try_cpp
"$LINENO"; then :
4515 # Broken: fails on valid input.
4518 rm -f conftest.err conftest.i conftest.
$ac_ext
4520 # OK, works on sane cases. Now check whether nonexistent headers
4521 # can be detected and how.
4522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ac_nonexistent.h>
4526 if ac_fn_c_try_cpp
"$LINENO"; then :
4527 # Broken: success on invalid input.
4530 # Passes both tests.
4534 rm -f conftest.err conftest.i conftest.
$ac_ext
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.i conftest.err conftest.
$ac_ext
4539 if $ac_preproc_ok; then :
4542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4544 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4545 See \`config.log' for more details" "$LINENO" 5; }
4549 ac_cpp
='$CPP $CPPFLAGS'
4550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4558 if ${ac_cv_path_GREP+:} false
; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -z "$GREP"; then
4562 ac_path_GREP_found
=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4565 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_prog
in grep ggrep
; do
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4572 as_fn_executable_p
"$ac_path_GREP" ||
continue
4573 # Check for GNU ac_path_GREP and select it if it is found.
4574 # Check for GNU $ac_path_GREP
4575 case `"$ac_path_GREP" --version 2>&1` in
4577 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4580 $as_echo_n 0123456789 >"conftest.in"
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 $as_echo 'GREP' >> "conftest.nl"
4587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4588 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4589 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_GREP
="$ac_path_GREP"
4593 ac_path_GREP_max
=$ac_count
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4598 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4601 $ac_path_GREP_found && break 3
4606 if test -z "$ac_cv_path_GREP"; then
4607 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4610 ac_cv_path_GREP
=$GREP
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4615 $as_echo "$ac_cv_path_GREP" >&6; }
4616 GREP
="$ac_cv_path_GREP"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4620 $as_echo_n "checking for egrep... " >&6; }
4621 if ${ac_cv_path_EGREP+:} false
; then :
4622 $as_echo_n "(cached) " >&6
4624 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4625 then ac_cv_path_EGREP
="$GREP -E"
4627 if test -z "$EGREP"; then
4628 ac_path_EGREP_found
=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4631 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_prog
in egrep; do
4636 for ac_exec_ext
in '' $ac_executable_extensions; do
4637 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4638 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4639 # Check for GNU ac_path_EGREP and select it if it is found.
4640 # Check for GNU $ac_path_EGREP
4641 case `"$ac_path_EGREP" --version 2>&1` in
4643 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4646 $as_echo_n 0123456789 >"conftest.in"
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'EGREP' >> "conftest.nl"
4653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4654 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4655 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_EGREP
="$ac_path_EGREP"
4659 ac_path_EGREP_max
=$ac_count
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4664 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4667 $ac_path_EGREP_found && break 3
4672 if test -z "$ac_cv_path_EGREP"; then
4673 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 ac_cv_path_EGREP
=$EGREP
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4682 $as_echo "$ac_cv_path_EGREP" >&6; }
4683 EGREP
="$ac_cv_path_EGREP"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4687 $as_echo_n "checking for ANSI C header files... " >&6; }
4688 if ${ac_cv_header_stdc+:} false
; then :
4689 $as_echo_n "(cached) " >&6
4691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4706 if ac_fn_c_try_compile
"$LINENO"; then :
4707 ac_cv_header_stdc
=yes
4709 ac_cv_header_stdc
=no
4711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4713 if test $ac_cv_header_stdc = yes; then
4714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "memchr" >/dev
/null
2>&1; then :
4724 ac_cv_header_stdc
=no
4730 if test $ac_cv_header_stdc = yes; then
4731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "free" >/dev
/null
2>&1; then :
4741 ac_cv_header_stdc
=no
4747 if test $ac_cv_header_stdc = yes; then
4748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4749 if test "$cross_compiling" = yes; then :
4752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4756 #if ((' ' & 0x0FF) == 0x020)
4757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4760 # define ISLOWER(c) \
4761 (('a' <= (c) && (c) <= 'i') \
4762 || ('j' <= (c) && (c) <= 'r') \
4763 || ('s' <= (c) && (c) <= 'z'))
4764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4772 for (i = 0; i < 256; i++)
4773 if (XOR (islower (i), ISLOWER (i))
4774 || toupper (i) != TOUPPER (i))
4779 if ac_fn_c_try_run
"$LINENO"; then :
4782 ac_cv_header_stdc
=no
4784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4791 $as_echo "$ac_cv_header_stdc" >&6; }
4792 if test $ac_cv_header_stdc = yes; then
4794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4799 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4800 inttypes.h stdint.h unistd.h
4802 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4805 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4806 cat >>confdefs.h
<<_ACEOF
4807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4816 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4817 if ${ac_cv_c_bigendian+:} false
; then :
4818 $as_echo_n "(cached) " >&6
4820 ac_cv_c_bigendian
=unknown
4821 # See if we're dealing with a universal compiler.
4822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 #ifndef __APPLE_CC__
4825 not a universal capable compiler
4830 if ac_fn_c_try_compile
"$LINENO"; then :
4832 # Check for potential -arch flags. It is not universal unless
4833 # there are at least two -arch flags with different values.
4836 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4837 if test -n "$ac_prev"; then
4839 i?
86 | x86_64 | ppc | ppc64
)
4840 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4843 ac_cv_c_bigendian
=universal
4849 elif test "x$ac_word" = "x-arch"; then
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 if test $ac_cv_c_bigendian = unknown
; then
4856 # See if sys/param.h defines the BYTE_ORDER macro.
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 #include <sys/param.h>
4865 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4866 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4875 if ac_fn_c_try_compile
"$LINENO"; then :
4876 # It does; now see whether it defined to BIG_ENDIAN or not.
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4880 #include <sys/param.h>
4885 #if BYTE_ORDER != BIG_ENDIAN
4893 if ac_fn_c_try_compile
"$LINENO"; then :
4894 ac_cv_c_bigendian
=yes
4896 ac_cv_c_bigendian
=no
4898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4902 if test $ac_cv_c_bigendian = unknown
; then
4903 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4911 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4919 if ac_fn_c_try_compile
"$LINENO"; then :
4920 # It does; now see whether it defined to _BIG_ENDIAN or not.
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4936 if ac_fn_c_try_compile
"$LINENO"; then :
4937 ac_cv_c_bigendian
=yes
4939 ac_cv_c_bigendian
=no
4941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 if test $ac_cv_c_bigendian = unknown
; then
4946 # Compile a test program.
4947 if test "$cross_compiling" = yes; then :
4948 # Try to guess by grepping values from an object file.
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 short int ascii_mm[] =
4952 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4953 short int ascii_ii[] =
4954 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4955 int use_ascii (int i) {
4956 return ascii_mm[i] + ascii_ii[i];
4958 short int ebcdic_ii[] =
4959 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4960 short int ebcdic_mm[] =
4961 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4962 int use_ebcdic (int i) {
4963 return ebcdic_mm[i] + ebcdic_ii[i];
4970 return use_ascii (foo) == use_ebcdic (foo);
4975 if ac_fn_c_try_compile
"$LINENO"; then :
4976 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4977 ac_cv_c_bigendian
=yes
4979 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4980 if test "$ac_cv_c_bigendian" = unknown
; then
4981 ac_cv_c_bigendian
=no
4983 # finding both strings is unlikely to happen, but who knows?
4984 ac_cv_c_bigendian
=unknown
4988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 $ac_includes_default
4997 /* Are we little or big endian? From Harbison&Steele. */
5001 char c[sizeof (long int)];
5004 return u.c[sizeof (long int) - 1] == 1;
5010 if ac_fn_c_try_run
"$LINENO"; then :
5011 ac_cv_c_bigendian
=no
5013 ac_cv_c_bigendian
=yes
5015 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5016 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5022 $as_echo "$ac_cv_c_bigendian" >&6; }
5023 case $ac_cv_c_bigendian in #(
5025 ac_cv_big_endian
=1;; #(
5027 ac_cv_big_endian
=0 ;; #(
5030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5034 as_fn_error $?
"unknown endianness
5035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5038 if test "x${ac_cv_big_endian}" = "x1" ; then
5039 cat >>confdefs.h
<<_ACEOF
5040 #define JEMALLOC_BIG_ENDIAN
5045 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
5046 T_APPEND_V
=-I${srcdir}/include
/msvc_compat
/C99
5047 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5048 CPPFLAGS
="${CPPFLAGS}${T_APPEND_V}"
5050 CPPFLAGS
="${CPPFLAGS} ${T_APPEND_V}"
5056 if test "x${je_cv_msvc}" = "xyes" ; then
5057 LG_SIZEOF_PTR
=LG_SIZEOF_PTR_WIN
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
5059 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
5061 # The cast to long int works around a bug in the HP C Compiler
5062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5064 # This bug is HP SR number 8606223364.
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5066 $as_echo_n "checking size of void *... " >&6; }
5067 if ${ac_cv_sizeof_void_p+:} false
; then :
5068 $as_echo_n "(cached) " >&6
5070 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5073 if test "$ac_cv_type_void_p" = yes; then
5074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error
77 "cannot compute sizeof (void *)
5077 See \`config.log' for more details" "$LINENO" 5; }
5079 ac_cv_sizeof_void_p
=0
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5085 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5089 cat >>confdefs.h
<<_ACEOF
5090 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5094 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
5096 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
5099 as_fn_error $?
"Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
5102 cat >>confdefs.h
<<_ACEOF
5103 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
5107 # The cast to long int works around a bug in the HP C Compiler
5108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5110 # This bug is HP SR number 8606223364.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5112 $as_echo_n "checking size of int... " >&6; }
5113 if ${ac_cv_sizeof_int+:} false
; then :
5114 $as_echo_n "(cached) " >&6
5116 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5119 if test "$ac_cv_type_int" = yes; then
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error
77 "cannot compute sizeof (int)
5123 See \`config.log' for more details" "$LINENO" 5; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5131 $as_echo "$ac_cv_sizeof_int" >&6; }
5135 cat >>confdefs.h
<<_ACEOF
5136 #define SIZEOF_INT $ac_cv_sizeof_int
5140 if test "x${ac_cv_sizeof_int}" = "x8" ; then
5142 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
5145 as_fn_error $?
"Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
5147 cat >>confdefs.h
<<_ACEOF
5148 #define LG_SIZEOF_INT $LG_SIZEOF_INT
5152 # The cast to long int works around a bug in the HP C Compiler
5153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5155 # This bug is HP SR number 8606223364.
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5157 $as_echo_n "checking size of long... " >&6; }
5158 if ${ac_cv_sizeof_long+:} false
; then :
5159 $as_echo_n "(cached) " >&6
5161 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5164 if test "$ac_cv_type_long" = yes; then
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error
77 "cannot compute sizeof (long)
5168 See \`config.log' for more details" "$LINENO" 5; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5176 $as_echo "$ac_cv_sizeof_long" >&6; }
5180 cat >>confdefs.h
<<_ACEOF
5181 #define SIZEOF_LONG $ac_cv_sizeof_long
5185 if test "x${ac_cv_sizeof_long}" = "x8" ; then
5187 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
5190 as_fn_error $?
"Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
5192 cat >>confdefs.h
<<_ACEOF
5193 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
5197 # The cast to long int works around a bug in the HP C Compiler
5198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5200 # This bug is HP SR number 8606223364.
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5202 $as_echo_n "checking size of long long... " >&6; }
5203 if ${ac_cv_sizeof_long_long+:} false
; then :
5204 $as_echo_n "(cached) " >&6
5206 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5209 if test "$ac_cv_type_long_long" = yes; then
5210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5212 as_fn_error
77 "cannot compute sizeof (long long)
5213 See \`config.log' for more details" "$LINENO" 5; }
5215 ac_cv_sizeof_long_long
=0
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5221 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5225 cat >>confdefs.h
<<_ACEOF
5226 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5230 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
5231 LG_SIZEOF_LONG_LONG
=3
5232 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
5233 LG_SIZEOF_LONG_LONG
=2
5235 as_fn_error $?
"Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
5237 cat >>confdefs.h
<<_ACEOF
5238 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
5242 # The cast to long int works around a bug in the HP C Compiler
5243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5245 # This bug is HP SR number 8606223364.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
5247 $as_echo_n "checking size of intmax_t... " >&6; }
5248 if ${ac_cv_sizeof_intmax_t+:} false
; then :
5249 $as_echo_n "(cached) " >&6
5251 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
5254 if test "$ac_cv_type_intmax_t" = yes; then
5255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5257 as_fn_error
77 "cannot compute sizeof (intmax_t)
5258 See \`config.log' for more details" "$LINENO" 5; }
5260 ac_cv_sizeof_intmax_t
=0
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
5266 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
5270 cat >>confdefs.h
<<_ACEOF
5271 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
5275 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
5276 LG_SIZEOF_INTMAX_T
=4
5277 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
5278 LG_SIZEOF_INTMAX_T
=3
5279 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
5280 LG_SIZEOF_INTMAX_T
=2
5282 as_fn_error $?
"Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
5284 cat >>confdefs.h
<<_ACEOF
5285 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
5289 # Make sure we can run config.sub.
5290 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5291 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5294 $as_echo_n "checking build system type... " >&6; }
5295 if ${ac_cv_build+:} false
; then :
5296 $as_echo_n "(cached) " >&6
5298 ac_build_alias
=$build_alias
5299 test "x$ac_build_alias" = x
&&
5300 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5301 test "x$ac_build_alias" = x
&&
5302 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5303 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5304 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5308 $as_echo "$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5311 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5314 ac_save_IFS
=$IFS; IFS
='-'
5320 # Remember, the first character of IFS is used to create $*,
5321 # except with old shells:
5324 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5328 $as_echo_n "checking host system type... " >&6; }
5329 if ${ac_cv_host+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 if test "x$host_alias" = x
; then
5333 ac_cv_host
=$ac_cv_build
5335 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5341 $as_echo "$ac_cv_host" >&6; }
5344 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5347 ac_save_IFS
=$IFS; IFS
='-'
5353 # Remember, the first character of IFS is used to create $*,
5354 # except with old shells:
5357 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5361 case "${host_cpu}" in
5363 if test "x${je_cv_msvc}" = "xyes" ; then
5364 if ${je_cv_pause_msvc+:} false
; then :
5365 $as_echo_n "(cached) " >&6
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
5369 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
5370 if ${je_cv_pause_msvc+:} false
; then :
5371 $as_echo_n "(cached) " >&6
5373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5379 _mm_pause(); return 0;
5384 if ac_fn_c_try_link
"$LINENO"; then :
5385 je_cv_pause_msvc
=yes
5389 rm -f core conftest.err conftest.
$ac_objext \
5390 conftest
$ac_exeext conftest.
$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
5393 $as_echo "$je_cv_pause_msvc" >&6; }
5397 if test "x${je_cv_pause_msvc}" = "xyes" ; then
5398 CPU_SPINWAIT
='_mm_pause()'
5401 if ${je_cv_pause+:} false
; then :
5402 $as_echo_n "(cached) " >&6
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
5406 $as_echo_n "checking whether pause instruction is compilable... " >&6; }
5407 if ${je_cv_pause+:} false
; then :
5408 $as_echo_n "(cached) " >&6
5410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5416 __asm__ volatile("pause"); return 0;
5421 if ac_fn_c_try_link
"$LINENO"; then :
5426 rm -f core conftest.err conftest.
$ac_objext \
5427 conftest
$ac_exeext conftest.
$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
5430 $as_echo "$je_cv_pause" >&6; }
5434 if test "x${je_cv_pause}" = "xyes" ; then
5435 CPU_SPINWAIT
='__asm__ volatile("pause")'
5440 cat >>confdefs.h
<<_ACEOF
5441 #define HAVE_ALTIVEC
5448 cat >>confdefs.h
<<_ACEOF
5449 #define CPU_SPINWAIT $CPU_SPINWAIT
5453 LD_PRELOAD_VAR
="LD_PRELOAD"
5460 link_whole_archive
="0"
5461 DSO_LDFLAGS
='-shared -Wl,-soname,$(@F)'
5462 RPATH
='-Wl,-rpath,$(1)'
5463 SOREV
="${so}.${rev}"
5464 PIC_CFLAGS
='-fPIC -DPIC'
5473 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
5474 TEST_LD_MODE
='-dynamic'
5477 if test "x${je_cv_cray}" = "xyes" ; then
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5486 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_AR+:} false
; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$AR"; then
5493 ac_cv_prog_AR
="$AR" # Let the user override the test.
5495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir
=.
5500 for ac_exec_ext
in '' $ac_executable_extensions; do
5501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 if test -n "$AR"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5515 $as_echo "$AR" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5523 if test -z "$ac_cv_prog_AR"; then
5525 # Extract the first word of "ar", so it can be a program name with args.
5526 set dummy
ar; ac_word
=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$ac_ct_AR"; then
5533 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_AR
="ar"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5553 if test -n "$ac_ct_AR"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5555 $as_echo "$ac_ct_AR" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5561 if test "x$ac_ct_AR" = x
; then
5564 case $cross_compiling:$ac_tool_warned in
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned
=yes ;;
5580 *-*-darwin* |
*-*-ios*)
5583 LD_PRELOAD_VAR
="DYLD_INSERT_LIBRARIES"
5587 DSO_LDFLAGS
='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
5588 SOREV
="${rev}.${so}"
5593 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
5608 T_APPEND_V
=-D_GNU_SOURCE
5609 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5610 CPPFLAGS
="${CPPFLAGS}${T_APPEND_V}"
5612 CPPFLAGS
="${CPPFLAGS} ${T_APPEND_V}"
5617 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
5619 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
5621 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
5623 $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h
5628 *-*-linux* |
*-*-kfreebsd*)
5629 T_APPEND_V
=-D_GNU_SOURCE
5630 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5631 CPPFLAGS
="${CPPFLAGS}${T_APPEND_V}"
5633 CPPFLAGS
="${CPPFLAGS} ${T_APPEND_V}"
5638 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
5640 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
5642 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
5644 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
5650 $as_echo_n "checking ABI... " >&6; }
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5667 if ac_fn_c_try_compile
"$LINENO"; then :
5672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
5674 $as_echo "$abi" >&6; }
5679 T_APPEND_V
=-D_POSIX_PTHREAD_SEMANTICS
5680 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5681 CPPFLAGS
="${CPPFLAGS}${T_APPEND_V}"
5683 CPPFLAGS
="${CPPFLAGS} ${T_APPEND_V}"
5687 T_APPEND_V
=-lposix4 -lsocket -lnsl
5688 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5689 LIBS
="${LIBS}${T_APPEND_V}"
5691 LIBS
="${LIBS} ${T_APPEND_V}"
5697 if "$LG_SIZEOF_PTR" = "8"; then
5698 LD_PRELOAD_VAR
="LDR_PRELOAD64"
5700 LD_PRELOAD_VAR
="LDR_PRELOAD"
5704 *-*-mingw* |
*-*-cygwin*)
5710 if test "x$je_cv_msvc" = "xyes" ; then
5713 EXTRA_LDFLAGS
="-link -DEBUG"
5717 ARFLAGS
='-nologo -out:'
5722 DSO_LDFLAGS
="-shared"
5723 link_whole_archive
="1"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
5732 $as_echo "Unsupported operating system: ${host}" >&6; }
5737 JEMALLOC_USABLE_SIZE_CONST
=const
5738 for ac_header
in malloc.h
5740 ac_fn_c_check_header_mongrel
"$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5741 if test "x$ac_cv_header_malloc_h" = xyes
; then :
5742 cat >>confdefs.h
<<_ACEOF
5743 #define HAVE_MALLOC_H 1
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
5747 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5752 size_t malloc_usable_size(const void *ptr);
5762 if ac_fn_c_try_compile
"$LINENO"; then :
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5765 $as_echo "yes" >&6; }
5769 JEMALLOC_USABLE_SIZE_CONST
=
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5780 cat >>confdefs.h
<<_ACEOF
5781 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
5807 $as_echo_n "checking for library containing log... " >&6; }
5808 if ${ac_cv_search_log+:} false
; then :
5809 $as_echo_n "(cached) " >&6
5811 ac_func_search_save_LIBS
=$LIBS
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5815 /* Override any GCC internal prototype to avoid an error.
5816 Use char because int might match the return type of a GCC
5817 builtin and then its argument prototype would still apply. */
5830 for ac_lib
in '' m
; do
5831 if test -z "$ac_lib"; then
5832 ac_res
="none required"
5835 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5837 if ac_fn_c_try_link
"$LINENO"; then :
5838 ac_cv_search_log
=$ac_res
5840 rm -f core conftest.err conftest.
$ac_objext \
5842 if ${ac_cv_search_log+:} false
; then :
5846 if ${ac_cv_search_log+:} false
; then :
5852 LIBS
=$ac_func_search_save_LIBS
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
5855 $as_echo "$ac_cv_search_log" >&6; }
5856 ac_res
=$ac_cv_search_log
5857 if test "$ac_res" != no
; then :
5858 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5861 as_fn_error $?
"Missing math functions" "$LINENO" 5
5864 if test "x$ac_cv_search_log" != "xnone required" ; then
5865 LM
="$ac_cv_search_log"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
5873 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
5874 if ${je_cv_attribute+:} false
; then :
5875 $as_echo_n "(cached) " >&6
5877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 static __attribute__((unused)) void foo(void){}
5888 if ac_fn_c_try_link
"$LINENO"; then :
5893 rm -f core conftest.err conftest.
$ac_objext \
5894 conftest
$ac_exeext conftest.
$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
5897 $as_echo "$je_cv_attribute" >&6; }
5899 if test "x${je_cv_attribute}" = "xyes" ; then
5900 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
5902 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
5905 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
5906 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
5907 T_APPEND_V
=-fvisibility=hidden
5908 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5909 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
5911 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
5915 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5916 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5918 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5935 if ac_fn_c_try_compile
"$LINENO"; then :
5936 je_cv_cflags_added
=-fvisibility=hidden
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938 $as_echo "yes" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
5946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5947 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5948 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5950 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5956 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
5960 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
5961 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
5963 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5964 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
5966 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
5970 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5971 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5973 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5990 if ac_fn_c_try_compile
"$LINENO"; then :
5991 je_cv_cflags_added
=-Werror
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5993 $as_echo "yes" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6002 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6003 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6005 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6011 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6012 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6013 T_APPEND_V
=-herror_on_warning
6014 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6015 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6017 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6021 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6022 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6024 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6041 if ac_fn_c_try_compile
"$LINENO"; then :
6042 je_cv_cflags_added
=-herror_on_warning
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6044 $as_echo "yes" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6054 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6056 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
6062 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
6063 if ${je_cv_tls_model+:} false
; then :
6064 $as_echo_n "(cached) " >&6
6066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6073 __attribute__((tls_model("initial-exec"), unused)) foo;
6079 if ac_fn_c_try_link
"$LINENO"; then :
6084 rm -f core conftest.err conftest.
$ac_objext \
6085 conftest
$ac_exeext conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
6088 $as_echo "$je_cv_tls_model" >&6; }
6090 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
6091 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6092 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6094 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6098 if test "x${je_cv_tls_model}" = "xyes" ; then
6099 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
6102 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
6105 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6109 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6110 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6112 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6113 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6115 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6119 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6120 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6122 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6139 if ac_fn_c_try_compile
"$LINENO"; then :
6140 je_cv_cflags_added
=-Werror
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142 $as_echo "yes" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6152 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6154 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6160 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6161 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6162 T_APPEND_V
=-herror_on_warning
6163 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6164 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6166 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6170 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6171 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6173 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6190 if ac_fn_c_try_compile
"$LINENO"; then :
6191 je_cv_cflags_added
=-herror_on_warning
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6193 $as_echo "yes" >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6202 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6203 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6205 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
6211 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
6212 if ${je_cv_alloc_size+:} false
; then :
6213 $as_echo_n "(cached) " >&6
6215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6221 void *foo(size_t size) __attribute__((alloc_size(1)));
6226 if ac_fn_c_try_link
"$LINENO"; then :
6227 je_cv_alloc_size
=yes
6231 rm -f core conftest.err conftest.
$ac_objext \
6232 conftest
$ac_exeext conftest.
$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
6235 $as_echo "$je_cv_alloc_size" >&6; }
6237 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
6238 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6239 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6241 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6245 if test "x${je_cv_alloc_size}" = "xyes" ; then
6246 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
6249 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6253 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6254 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6256 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6257 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6259 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6263 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6264 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6266 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6283 if ac_fn_c_try_compile
"$LINENO"; then :
6284 je_cv_cflags_added
=-Werror
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6295 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6296 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6298 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6304 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6305 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6306 T_APPEND_V
=-herror_on_warning
6307 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6308 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6310 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6314 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6315 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6317 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6334 if ac_fn_c_try_compile
"$LINENO"; then :
6335 je_cv_cflags_added
=-herror_on_warning
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6337 $as_echo "yes" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6347 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6349 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
6355 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
6356 if ${je_cv_format_gnu_printf+:} false
; then :
6357 $as_echo_n "(cached) " >&6
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6365 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
6370 if ac_fn_c_try_link
"$LINENO"; then :
6371 je_cv_format_gnu_printf
=yes
6373 je_cv_format_gnu_printf
=no
6375 rm -f core conftest.err conftest.
$ac_objext \
6376 conftest
$ac_exeext conftest.
$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
6379 $as_echo "$je_cv_format_gnu_printf" >&6; }
6381 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
6382 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6383 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6385 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6389 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
6390 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
6393 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6397 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6398 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6400 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6401 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6403 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6407 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6408 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6410 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6427 if ac_fn_c_try_compile
"$LINENO"; then :
6428 je_cv_cflags_added
=-Werror
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6430 $as_echo "yes" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6440 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6442 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6448 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6449 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6450 T_APPEND_V
=-herror_on_warning
6451 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6452 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6454 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6458 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6459 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6461 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6478 if ac_fn_c_try_compile
"$LINENO"; then :
6479 je_cv_cflags_added
=-herror_on_warning
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6481 $as_echo "yes" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6490 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6491 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6493 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
6499 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
6500 if ${je_cv_format_printf+:} false
; then :
6501 $as_echo_n "(cached) " >&6
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6509 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
6514 if ac_fn_c_try_link
"$LINENO"; then :
6515 je_cv_format_printf
=yes
6517 je_cv_format_printf
=no
6519 rm -f core conftest.err conftest.
$ac_objext \
6520 conftest
$ac_exeext conftest.
$ac_ext
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
6523 $as_echo "$je_cv_format_printf" >&6; }
6525 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
6526 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6527 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6529 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6533 if test "x${je_cv_format_printf}" = "xyes" ; then
6534 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
6539 # Check whether --with-rpath was given.
6540 if test "${with_rpath+set}" = set; then :
6541 withval
=$with_rpath; if test "x$with_rpath" = "xno" ; then
6544 RPATH_EXTRA
="`echo $with_rpath | tr \":\" \" \"`"
6553 # Check whether --enable-autogen was given.
6554 if test "${enable_autogen+set}" = set; then :
6555 enableval
=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
6568 # Find a good install program. We prefer a C program (faster),
6569 # so one script is as good as another. But avoid the broken or
6570 # incompatible versions:
6571 # SysV /etc/install, /usr/sbin/install
6572 # SunOS /usr/etc/install
6573 # IRIX /sbin/install
6575 # AmigaOS /C/install, which installs bootblocks on floppy discs
6576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6579 # OS/2's system install, which has a completely different semantic
6580 # ./install, which can be erroneously created by make from ./install.sh.
6581 # Reject install programs that cannot install multiple files.
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6584 if test -z "$INSTALL"; then
6585 if ${ac_cv_path_install+:} false
; then :
6586 $as_echo_n "(cached) " >&6
6588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir
=.
6593 # Account for people who put trailing slashes in PATH elements.
6594 case $as_dir/ in #((
6595 .
/ | .
// |
/[cC
]/* | \
6596 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6597 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6600 # OSF1 and SCO ODT 3.0 have their own names for install.
6601 # Don't use installbsd from OSF since it installs stuff as root
6603 for ac_prog
in ginstall scoinst
install; do
6604 for ac_exec_ext
in '' $ac_executable_extensions; do
6605 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
6606 if test $ac_prog = install &&
6607 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6608 # AIX install. It has an incompatible calling convention.
6610 elif test $ac_prog = install &&
6611 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6612 # program-specific install script used by HP pwplus--don't use.
6615 rm -rf conftest.one conftest.two conftest.dir
6616 echo one
> conftest.one
6617 echo two
> conftest.two
6619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6620 test -s conftest.one
&& test -s conftest.two
&&
6621 test -s conftest.dir
/conftest.one
&&
6622 test -s conftest.dir
/conftest.two
6624 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6637 rm -rf conftest.one conftest.two conftest.dir
6640 if test "${ac_cv_path_install+set}" = set; then
6641 INSTALL
=$ac_cv_path_install
6643 # As a last resort, use the slow shell script. Don't cache a
6644 # value for INSTALL within a source directory, because that will
6645 # break other packages using the cache if that directory is
6646 # removed, or if the value is a relative name.
6647 INSTALL
=$ac_install_sh
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6651 $as_echo "$INSTALL" >&6; }
6653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6654 # It thinks the first close brace ends the variable substitution.
6655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6659 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 if test -n "$RANLIB"; then
6670 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir
=.
6677 for ac_exec_ext
in '' $ac_executable_extensions; do
6678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 RANLIB
=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701 ac_ct_RANLIB
=$RANLIB
6702 # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib
; ac_word
=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$ac_ct_RANLIB"; then
6710 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir
=.
6717 for ac_exec_ext
in '' $ac_executable_extensions; do
6718 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6738 if test "x$ac_ct_RANLIB" = x
; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned
=yes ;;
6747 RANLIB
=$ac_ct_RANLIB
6750 RANLIB
="$ac_cv_prog_RANLIB"
6753 # Extract the first word of "ld", so it can be a program name with args.
6754 set dummy ld
; ac_word
=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_path_LD+:} false
; then :
6758 $as_echo_n "(cached) " >&6
6762 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
6765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir
=.
6770 for ac_exec_ext
in '' $ac_executable_extensions; do
6771 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="false"
6785 if test -n "$LD"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6787 $as_echo "$LD" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6794 # Extract the first word of "autoconf", so it can be a program name with args.
6795 set dummy autoconf
; ac_word
=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_path_AUTOCONF+:} false
; then :
6799 $as_echo_n "(cached) " >&6
6803 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
6806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir
=.
6811 for ac_exec_ext
in '' $ac_executable_extensions; do
6812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_path_AUTOCONF
="$as_dir/$ac_word$ac_exec_ext"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="false"
6825 AUTOCONF
=$ac_cv_path_AUTOCONF
6826 if test -n "$AUTOCONF"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6828 $as_echo "$AUTOCONF" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6836 public_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"
6838 ac_fn_c_check_func
"$LINENO" "memalign" "ac_cv_func_memalign"
6839 if test "x$ac_cv_func_memalign" = xyes
; then :
6840 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
6842 public_syms
="${public_syms} memalign"
6845 ac_fn_c_check_func
"$LINENO" "valloc" "ac_cv_func_valloc"
6846 if test "x$ac_cv_func_valloc" = xyes
; then :
6847 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
6849 public_syms
="${public_syms} valloc"
6854 # Check whether --enable-code-coverage was given.
6855 if test "${enable_code_coverage+set}" = set; then :
6856 enableval
=$enable_code_coverage; if test "x$enable_code_coverage" = "xno" ; then
6857 enable_code_coverage
="0"
6859 enable_code_coverage
="1"
6863 enable_code_coverage
="0"
6867 if test "x$enable_code_coverage" = "x1" ; then
6869 echo "$CFLAGS $EXTRA_CFLAGS" |
grep '\-O' >/dev
/null || deoptimize
="yes"
6870 if test "x${deoptimize}" = "xyes" ; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O0" >&5
6873 $as_echo_n "checking whether compiler supports -O0... " >&6; }
6874 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6876 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6877 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6879 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6883 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6884 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6886 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6903 if ac_fn_c_try_compile
"$LINENO"; then :
6904 je_cv_cflags_added
=-O0
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6916 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6918 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fprofile-arcs -ftest-coverage" >&5
6925 $as_echo_n "checking whether compiler supports -fprofile-arcs -ftest-coverage... " >&6; }
6926 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
6927 T_APPEND_V
=-fprofile-arcs -ftest-coverage
6928 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6929 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6931 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6935 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6936 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6938 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6955 if ac_fn_c_try_compile
"$LINENO"; then :
6956 je_cv_cflags_added
=-fprofile-arcs -ftest-coverage
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6958 $as_echo "yes" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
6966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6967 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6968 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6970 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6974 EXTRA_LDFLAGS
="$EXTRA_LDFLAGS -fprofile-arcs -ftest-coverage"
6975 $as_echo "#define JEMALLOC_CODE_COVERAGE " >>confdefs.h
6981 # Check whether --with-mangling was given.
6982 if test "${with_mangling+set}" = set; then :
6983 withval
=$with_mangling; mangling_map
="$with_mangling"
6990 # Check whether --with-jemalloc_prefix was given.
6991 if test "${with_jemalloc_prefix+set}" = set; then :
6992 withval
=$with_jemalloc_prefix; JEMALLOC_PREFIX
="$with_jemalloc_prefix"
6994 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
6997 JEMALLOC_PREFIX
="je_"
7002 if test "x$JEMALLOC_PREFIX" != "x" ; then
7003 JEMALLOC_CPREFIX
=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
7004 cat >>confdefs.h
<<_ACEOF
7005 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
7008 cat >>confdefs.h
<<_ACEOF
7009 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
7016 # Check whether --with-export was given.
7017 if test "${with_export+set}" = set; then :
7018 withval
=$with_export; if test "x$with_export" = "xno"; then
7019 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
7027 # Check whether --with-private_namespace was given.
7028 if test "${with_private_namespace+set}" = set; then :
7029 withval
=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE
="${with_private_namespace}je_"
7031 JEMALLOC_PRIVATE_NAMESPACE
="je_"
7035 cat >>confdefs.h
<<_ACEOF
7036 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
7039 private_namespace
="$JEMALLOC_PRIVATE_NAMESPACE"
7043 # Check whether --with-install_suffix was given.
7044 if test "${with_install_suffix+set}" = set; then :
7045 withval
=$with_install_suffix; INSTALL_SUFFIX
="$with_install_suffix"
7051 install_suffix
="$INSTALL_SUFFIX"
7055 # Check whether --with-malloc_conf was given.
7056 if test "${with_malloc_conf+set}" = set; then :
7057 withval
=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF
="$with_malloc_conf"
7059 JEMALLOC_CONFIG_MALLOC_CONF
=""
7063 config_malloc_conf
="$JEMALLOC_CONFIG_MALLOC_CONF"
7064 cat >>confdefs.h
<<_ACEOF
7065 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
7072 cfgoutputs_in
="Makefile.in"
7073 cfgoutputs_in
="${cfgoutputs_in} jemalloc.pc.in"
7074 cfgoutputs_in
="${cfgoutputs_in} doc/html.xsl.in"
7075 cfgoutputs_in
="${cfgoutputs_in} doc/manpages.xsl.in"
7076 cfgoutputs_in
="${cfgoutputs_in} doc/jemalloc.xml.in"
7077 cfgoutputs_in
="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
7078 cfgoutputs_in
="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
7079 cfgoutputs_in
="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
7080 cfgoutputs_in
="${cfgoutputs_in} include/jemalloc/internal/jemalloc_internal.h.in"
7081 cfgoutputs_in
="${cfgoutputs_in} test/test.sh.in"
7082 cfgoutputs_in
="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
7084 cfgoutputs_out
="Makefile"
7085 cfgoutputs_out
="${cfgoutputs_out} jemalloc.pc"
7086 cfgoutputs_out
="${cfgoutputs_out} doc/html.xsl"
7087 cfgoutputs_out
="${cfgoutputs_out} doc/manpages.xsl"
7088 cfgoutputs_out
="${cfgoutputs_out} doc/jemalloc.xml"
7089 cfgoutputs_out
="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
7090 cfgoutputs_out
="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
7091 cfgoutputs_out
="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
7092 cfgoutputs_out
="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
7093 cfgoutputs_out
="${cfgoutputs_out} test/test.sh"
7094 cfgoutputs_out
="${cfgoutputs_out} test/include/test/jemalloc_test.h"
7096 cfgoutputs_tup
="Makefile"
7097 cfgoutputs_tup
="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
7098 cfgoutputs_tup
="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
7099 cfgoutputs_tup
="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
7100 cfgoutputs_tup
="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
7101 cfgoutputs_tup
="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
7102 cfgoutputs_tup
="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
7103 cfgoutputs_tup
="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
7104 cfgoutputs_tup
="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
7105 cfgoutputs_tup
="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
7106 cfgoutputs_tup
="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
7108 cfghdrs_in
="include/jemalloc/jemalloc_defs.h.in"
7109 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
7110 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
7111 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/private_unnamespace.sh"
7112 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/private_symbols.txt"
7113 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
7114 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
7115 cfghdrs_in
="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
7116 cfghdrs_in
="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
7117 cfghdrs_in
="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
7118 cfghdrs_in
="${cfghdrs_in} include/jemalloc/jemalloc.sh"
7119 cfghdrs_in
="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
7121 cfghdrs_out
="include/jemalloc/jemalloc_defs.h"
7122 cfghdrs_out
="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
7123 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/private_namespace.h"
7124 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/private_unnamespace.h"
7125 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
7126 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
7127 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
7128 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
7129 cfghdrs_out
="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
7130 cfghdrs_out
="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
7131 cfghdrs_out
="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
7132 cfghdrs_out
="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
7133 cfghdrs_out
="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
7134 cfghdrs_out
="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
7136 cfghdrs_tup
="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
7137 cfghdrs_tup
="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
7138 cfghdrs_tup
="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
7140 # Check whether --enable-cc-silence was given.
7141 if test "${enable_cc_silence+set}" = set; then :
7142 enableval
=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
7143 enable_cc_silence
="0"
7145 enable_cc_silence
="1"
7149 enable_cc_silence
="1"
7153 if test "x$enable_cc_silence" = "x1" ; then
7154 $as_echo "#define JEMALLOC_CC_SILENCE " >>confdefs.h
7158 # Check whether --enable-debug was given.
7159 if test "${enable_debug+set}" = set; then :
7160 enableval
=$enable_debug; if test "x$enable_debug" = "xno" ; then
7171 if test "x$enable_debug" = "x1" ; then
7172 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
7175 if test "x$enable_debug" = "x1" ; then
7176 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
7182 # Check whether --enable-ivsalloc was given.
7183 if test "${enable_ivsalloc+set}" = set; then :
7184 enableval
=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then
7195 if test "x$enable_ivsalloc" = "x1" ; then
7196 $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h
7200 if test "x$enable_debug" = "x0" ; then
7201 if test "x$GCC" = "xyes" ; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
7204 $as_echo_n "checking whether compiler supports -O3... " >&6; }
7205 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
7207 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7208 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7210 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7214 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7215 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7217 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7234 if ac_fn_c_try_compile
"$LINENO"; then :
7235 je_cv_cflags_added
=-O3
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
7245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7246 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7247 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7249 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
7255 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
7256 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
7257 T_APPEND_V
=-funroll-loops
7258 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7259 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7261 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7265 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7266 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7268 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7285 if ac_fn_c_try_compile
"$LINENO"; then :
7286 je_cv_cflags_added
=-funroll-loops
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
7296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7298 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7300 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7304 elif test "x$je_cv_msvc" = "xyes" ; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
7307 $as_echo_n "checking whether compiler supports -O2... " >&6; }
7308 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
7310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7311 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7313 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7317 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7318 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7320 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7337 if ac_fn_c_try_compile
"$LINENO"; then :
7338 je_cv_cflags_added
=-O2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7349 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7350 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7352 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
7359 $as_echo_n "checking whether compiler supports -O... " >&6; }
7360 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
7362 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7363 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7365 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7369 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7370 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7372 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7389 if ac_fn_c_try_compile
"$LINENO"; then :
7390 je_cv_cflags_added
=-O
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392 $as_echo "yes" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
7400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7401 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7402 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7404 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7411 # Check whether --enable-stats was given.
7412 if test "${enable_stats+set}" = set; then :
7413 enableval
=$enable_stats; if test "x$enable_stats" = "xno" ; then
7424 if test "x$enable_stats" = "x1" ; then
7425 $as_echo "#define JEMALLOC_STATS " >>confdefs.h
7430 # Check whether --enable-prof was given.
7431 if test "${enable_prof+set}" = set; then :
7432 enableval
=$enable_prof; if test "x$enable_prof" = "xno" ; then
7443 if test "x$enable_prof" = "x1" ; then
7446 backtrace_method
="N/A"
7449 # Check whether --enable-prof-libunwind was given.
7450 if test "${enable_prof_libunwind+set}" = set; then :
7451 enableval
=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
7452 enable_prof_libunwind
="0"
7454 enable_prof_libunwind
="1"
7458 enable_prof_libunwind
="0"
7463 # Check whether --with-static_libunwind was given.
7464 if test "${with_static_libunwind+set}" = set; then :
7465 withval
=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
7468 if test ! -f "$with_static_libunwind" ; then
7469 as_fn_error $?
"Static libunwind not found: $with_static_libunwind" "$LINENO" 5
7471 LUNWIND
="$with_static_libunwind"
7478 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
7479 for ac_header
in libunwind.h
7481 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
7482 if test "x$ac_cv_header_libunwind_h" = xyes
; then :
7483 cat >>confdefs.h
<<_ACEOF
7484 #define HAVE_LIBUNWIND_H 1
7488 enable_prof_libunwind
="0"
7493 if test "x$LUNWIND" = "x-lunwind" ; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
7495 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
7496 if ${ac_cv_lib_unwind_unw_backtrace+:} false
; then :
7497 $as_echo_n "(cached) " >&6
7499 ac_check_lib_save_LIBS
=$LIBS
7500 LIBS
="-lunwind $LIBS"
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7510 char unw_backtrace ();
7514 return unw_backtrace ();
7519 if ac_fn_c_try_link
"$LINENO"; then :
7520 ac_cv_lib_unwind_unw_backtrace
=yes
7522 ac_cv_lib_unwind_unw_backtrace
=no
7524 rm -f core conftest.err conftest.
$ac_objext \
7525 conftest
$ac_exeext conftest.
$ac_ext
7526 LIBS
=$ac_check_lib_save_LIBS
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
7529 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
7530 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes
; then :
7532 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7533 LIBS
="${LIBS}${T_APPEND_V}"
7535 LIBS
="${LIBS} ${T_APPEND_V}"
7540 enable_prof_libunwind
="0"
7545 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7546 LIBS
="${LIBS}${T_APPEND_V}"
7548 LIBS
="${LIBS} ${T_APPEND_V}"
7553 if test "x${enable_prof_libunwind}" = "x1" ; then
7554 backtrace_method
="libunwind"
7555 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
7560 # Check whether --enable-prof-libgcc was given.
7561 if test "${enable_prof_libgcc+set}" = set; then :
7562 enableval
=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
7563 enable_prof_libgcc
="0"
7565 enable_prof_libgcc
="1"
7569 enable_prof_libgcc
="1"
7573 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
7574 -a "x$GCC" = "xyes" ; then
7575 for ac_header
in unwind.h
7577 ac_fn_c_check_header_mongrel
"$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
7578 if test "x$ac_cv_header_unwind_h" = xyes
; then :
7579 cat >>confdefs.h
<<_ACEOF
7580 #define HAVE_UNWIND_H 1
7584 enable_prof_libgcc
="0"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
7590 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
7591 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false
; then :
7592 $as_echo_n "(cached) " >&6
7594 ac_check_lib_save_LIBS
=$LIBS
7596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7599 /* Override any GCC internal prototype to avoid an error.
7600 Use char because int might match the return type of a GCC
7601 builtin and then its argument prototype would still apply. */
7605 char _Unwind_Backtrace ();
7609 return _Unwind_Backtrace ();
7614 if ac_fn_c_try_link
"$LINENO"; then :
7615 ac_cv_lib_gcc__Unwind_Backtrace
=yes
7617 ac_cv_lib_gcc__Unwind_Backtrace
=no
7619 rm -f core conftest.err conftest.
$ac_objext \
7620 conftest
$ac_exeext conftest.
$ac_ext
7621 LIBS
=$ac_check_lib_save_LIBS
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
7624 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
7625 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes
; then :
7627 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7628 LIBS
="${LIBS}${T_APPEND_V}"
7630 LIBS
="${LIBS} ${T_APPEND_V}"
7635 enable_prof_libgcc
="0"
7638 if test "x${enable_prof_libgcc}" = "x1" ; then
7639 backtrace_method
="libgcc"
7640 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
7644 enable_prof_libgcc
="0"
7647 # Check whether --enable-prof-gcc was given.
7648 if test "${enable_prof_gcc+set}" = set; then :
7649 enableval
=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
7660 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
7661 -a "x$GCC" = "xyes" ; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
7664 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
7665 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
7666 T_APPEND_V
=-fno-omit-frame-pointer
7667 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7668 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7670 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7674 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7675 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7677 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7694 if ac_fn_c_try_compile
"$LINENO"; then :
7695 je_cv_cflags_added
=-fno-omit-frame-pointer
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697 $as_echo "yes" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
7705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7706 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7707 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7709 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7713 backtrace_method
="gcc intrinsics"
7714 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
7720 if test "x$backtrace_method" = "x" ; then
7721 backtrace_method
="none (disabling profiling)"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
7725 $as_echo_n "checking configured backtracing method... " >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
7727 $as_echo "$backtrace_method" >&6; }
7728 if test "x$enable_prof" = "x1" ; then
7730 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7731 LIBS
="${LIBS}${T_APPEND_V}"
7733 LIBS
="${LIBS} ${T_APPEND_V}"
7738 $as_echo "#define JEMALLOC_PROF " >>confdefs.h
7743 # Check whether --enable-tcache was given.
7744 if test "${enable_tcache+set}" = set; then :
7745 enableval
=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
7756 if test "x$enable_tcache" = "x1" ; then
7757 $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h
7762 if test "x${maps_coalesce}" = "x1" ; then
7763 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
7767 # Check whether --enable-munmap was given.
7768 if test "${enable_munmap+set}" = set; then :
7769 enableval
=$enable_munmap; if test "x$enable_munmap" = "xno" ; then
7776 enable_munmap
="${default_munmap}"
7780 if test "x$enable_munmap" = "x1" ; then
7781 $as_echo "#define JEMALLOC_MUNMAP " >>confdefs.h
7787 ac_fn_c_check_func
"$LINENO" "sbrk" "ac_cv_func_sbrk"
7788 if test "x$ac_cv_func_sbrk" = xyes
; then :
7794 if test "x$have_sbrk" = "x1" ; then
7795 if test "x$sbrk_deprecated" = "x1" ; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
7797 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
7804 if test "x$have_dss" = "x1" ; then
7805 $as_echo "#define JEMALLOC_DSS " >>confdefs.h
7809 # Check whether --enable-fill was given.
7810 if test "${enable_fill+set}" = set; then :
7811 enableval
=$enable_fill; if test "x$enable_fill" = "xno" ; then
7822 if test "x$enable_fill" = "x1" ; then
7823 $as_echo "#define JEMALLOC_FILL " >>confdefs.h
7828 # Check whether --enable-utrace was given.
7829 if test "${enable_utrace+set}" = set; then :
7830 enableval
=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
7843 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
7844 if ${je_cv_utrace+:} false
; then :
7845 $as_echo_n "(cached) " >&6
7847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7850 #include <sys/types.h>
7851 #include <sys/param.h>
7852 #include <sys/time.h>
7853 #include <sys/uio.h>
7854 #include <sys/ktrace.h>
7860 utrace((void *)0, 0);
7866 if ac_fn_c_try_link
"$LINENO"; then :
7871 rm -f core conftest.err conftest.
$ac_objext \
7872 conftest
$ac_exeext conftest.
$ac_ext
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
7875 $as_echo "$je_cv_utrace" >&6; }
7877 if test "x${je_cv_utrace}" = "xno" ; then
7880 if test "x$enable_utrace" = "x1" ; then
7881 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
7886 # Check whether --enable-valgrind was given.
7887 if test "${enable_valgrind+set}" = set; then :
7888 enableval
=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then
7899 if test "x$enable_valgrind" = "x1" ; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5
7902 $as_echo_n "checking whether valgrind is compilable... " >&6; }
7903 if ${je_cv_valgrind+:} false
; then :
7904 $as_echo_n "(cached) " >&6
7906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7909 #include <valgrind/valgrind.h>
7910 #include <valgrind/memcheck.h>
7912 #if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
7913 # error "Incompatible Valgrind version"
7924 if ac_fn_c_try_link
"$LINENO"; then :
7929 rm -f core conftest.err conftest.
$ac_objext \
7930 conftest
$ac_exeext conftest.
$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5
7933 $as_echo "$je_cv_valgrind" >&6; }
7935 if test "x${je_cv_valgrind}" = "xno" ; then
7938 if test "x$enable_valgrind" = "x1" ; then
7939 $as_echo "#define JEMALLOC_VALGRIND " >>confdefs.h
7945 # Check whether --enable-xmalloc was given.
7946 if test "${enable_xmalloc+set}" = set; then :
7947 enableval
=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
7958 if test "x$enable_xmalloc" = "x1" ; then
7959 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
7964 # Check whether --enable-cache-oblivious was given.
7965 if test "${enable_cache_oblivious+set}" = set; then :
7966 enableval
=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
7967 enable_cache_oblivious
="0"
7969 enable_cache_oblivious
="1"
7973 enable_cache_oblivious
="1"
7977 if test "x$enable_cache_oblivious" = "x1" ; then
7978 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
7987 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
7988 if ${je_cv_gcc_builtin_unreachable+:} false
; then :
7989 $as_echo_n "(cached) " >&6
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7995 __builtin_unreachable();
8010 if ac_fn_c_try_link
"$LINENO"; then :
8011 je_cv_gcc_builtin_unreachable
=yes
8013 je_cv_gcc_builtin_unreachable
=no
8015 rm -f core conftest.err conftest.
$ac_objext \
8016 conftest
$ac_exeext conftest.
$ac_ext
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
8019 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
8021 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
8022 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
8025 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
8031 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
8032 if ${je_cv_gcc_builtin_ffsl+:} false
; then :
8033 $as_echo_n "(cached) " >&6
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8039 #include <strings.h>
8047 int rv = __builtin_ffsl(0x08);
8055 if ac_fn_c_try_link
"$LINENO"; then :
8056 je_cv_gcc_builtin_ffsl
=yes
8058 je_cv_gcc_builtin_ffsl
=no
8060 rm -f core conftest.err conftest.
$ac_objext \
8061 conftest
$ac_exeext conftest.
$ac_ext
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
8064 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
8066 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
8067 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
8069 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
8071 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
8076 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
8077 if ${je_cv_function_ffsl+:} false
; then :
8078 $as_echo_n "(cached) " >&6
8080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8084 #include <strings.h>
8092 int rv = ffsl(0x08);
8100 if ac_fn_c_try_link
"$LINENO"; then :
8101 je_cv_function_ffsl
=yes
8103 je_cv_function_ffsl
=no
8105 rm -f core conftest.err conftest.
$ac_objext \
8106 conftest
$ac_exeext conftest.
$ac_ext
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
8109 $as_echo "$je_cv_function_ffsl" >&6; }
8111 if test "x${je_cv_function_ffsl}" = "xyes" ; then
8112 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
8114 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
8116 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
8119 as_fn_error $?
"Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
8124 # Check whether --with-lg_tiny_min was given.
8125 if test "${with_lg_tiny_min+set}" = set; then :
8126 withval
=$with_lg_tiny_min; LG_TINY_MIN
="$with_lg_tiny_min"
8131 cat >>confdefs.h
<<_ACEOF
8132 #define LG_TINY_MIN $LG_TINY_MIN
8137 # Check whether --with-lg_quantum was given.
8138 if test "${with_lg_quantum+set}" = set; then :
8139 withval
=$with_lg_quantum; LG_QUANTA
="$with_lg_quantum"
8144 if test "x$with_lg_quantum" != "x" ; then
8145 cat >>confdefs.h
<<_ACEOF
8146 #define LG_QUANTUM $with_lg_quantum
8152 # Check whether --with-lg_page was given.
8153 if test "${with_lg_page+set}" = set; then :
8154 withval
=$with_lg_page; LG_PAGE
="$with_lg_page"
8159 if test "x$LG_PAGE" = "xdetect"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
8161 $as_echo_n "checking LG_PAGE... " >&6; }
8162 if ${je_cv_lg_page+:} false
; then :
8163 $as_echo_n "(cached) " >&6
8165 if test "$cross_compiling" = yes; then :
8168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 #include <strings.h>
8173 #include <windows.h>
8189 result = si.dwPageSize;
8191 result = sysconf(_SC_PAGESIZE);
8196 result = JEMALLOC_INTERNAL_FFSL(result) - 1;
8198 f = fopen("conftest.out", "w");
8202 fprintf(f, "%d", result);
8211 if ac_fn_c_try_run
"$LINENO"; then :
8212 je_cv_lg_page
=`cat conftest.out`
8214 je_cv_lg_page
=undefined
8216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
8222 $as_echo "$je_cv_lg_page" >&6; }
8224 if test "x${je_cv_lg_page}" != "x" ; then
8225 LG_PAGE
="${je_cv_lg_page}"
8227 if test "x${LG_PAGE}" != "xundefined" ; then
8228 cat >>confdefs.h
<<_ACEOF
8229 #define LG_PAGE $LG_PAGE
8233 as_fn_error $?
"cannot determine value for LG_PAGE" "$LINENO" 5
8237 # Check whether --with-lg_page_sizes was given.
8238 if test "${with_lg_page_sizes+set}" = set; then :
8239 withval
=$with_lg_page_sizes; LG_PAGE_SIZES
="$with_lg_page_sizes"
8241 LG_PAGE_SIZES
="$LG_PAGE"
8246 # Check whether --with-lg_size_class_group was given.
8247 if test "${with_lg_size_class_group+set}" = set; then :
8248 withval
=$with_lg_size_class_group; LG_SIZE_CLASS_GROUP
="$with_lg_size_class_group"
8250 LG_SIZE_CLASS_GROUP
="2"
8256 # Check whether --with-version was given.
8257 if test "${with_version+set}" = set; then :
8258 withval
=$with_version;
8259 echo "${with_version}" |
grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev
/null
8260 if test $?
-ne 0 ; then
8261 as_fn_error $?
"${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid>" "$LINENO" 5
8263 echo "$with_version" > "${objroot}VERSION"
8267 if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
8268 for pattern
in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
8269 '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
8270 '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
8271 '[0-9][0-9].[0-9][0-9].[0-9]' \
8272 '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
8273 (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev
/null
8274 if test $?
-eq 0 ; then
8275 mv "${objroot}VERSION.tmp" "${objroot}VERSION"
8280 rm -f "${objroot}VERSION.tmp"
8285 if test ! -e "${objroot}VERSION" ; then
8286 if test ! -e "${srcroot}VERSION" ; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
8288 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
8289 echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
8291 cp ${srcroot}VERSION
${objroot}VERSION
8294 jemalloc_version
=`cat "${objroot}VERSION"`
8295 jemalloc_version_major
=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
8296 jemalloc_version_minor
=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
8297 jemalloc_version_bugfix
=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
8298 jemalloc_version_nrev
=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
8299 jemalloc_version_gid
=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
8308 if test "x$abi" != "xpecoff" ; then
8309 for ac_header
in pthread.h
8311 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8312 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8313 cat >>confdefs.h
<<_ACEOF
8314 #define HAVE_PTHREAD_H 1
8318 as_fn_error $?
"pthread.h is missing" "$LINENO" 5
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8324 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8325 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
8326 $as_echo_n "(cached) " >&6
8328 ac_check_lib_save_LIBS
=$LIBS
8329 LIBS
="-lpthread $LIBS"
8330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8339 char pthread_create ();
8343 return pthread_create ();
8348 if ac_fn_c_try_link
"$LINENO"; then :
8349 ac_cv_lib_pthread_pthread_create
=yes
8351 ac_cv_lib_pthread_pthread_create
=no
8353 rm -f core conftest.err conftest.
$ac_objext \
8354 conftest
$ac_exeext conftest.
$ac_ext
8355 LIBS
=$ac_check_lib_save_LIBS
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8358 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8359 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
8360 T_APPEND_V
=-lpthread
8361 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8362 LIBS
="${LIBS}${T_APPEND_V}"
8364 LIBS
="${LIBS} ${T_APPEND_V}"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8370 $as_echo_n "checking for library containing pthread_create... " >&6; }
8371 if ${ac_cv_search_pthread_create+:} false
; then :
8372 $as_echo_n "(cached) " >&6
8374 ac_func_search_save_LIBS
=$LIBS
8375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8378 /* Override any GCC internal prototype to avoid an error.
8379 Use char because int might match the return type of a GCC
8380 builtin and then its argument prototype would still apply. */
8384 char pthread_create ();
8388 return pthread_create ();
8393 for ac_lib
in '' ; do
8394 if test -z "$ac_lib"; then
8395 ac_res
="none required"
8398 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8400 if ac_fn_c_try_link
"$LINENO"; then :
8401 ac_cv_search_pthread_create
=$ac_res
8403 rm -f core conftest.err conftest.
$ac_objext \
8405 if ${ac_cv_search_pthread_create+:} false
; then :
8409 if ${ac_cv_search_pthread_create+:} false
; then :
8412 ac_cv_search_pthread_create
=no
8415 LIBS
=$ac_func_search_save_LIBS
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8418 $as_echo "$ac_cv_search_pthread_create" >&6; }
8419 ac_res
=$ac_cv_search_pthread_create
8420 if test "$ac_res" != no
; then :
8421 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8424 as_fn_error $?
"libpthread is missing" "$LINENO" 5
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
8431 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
8432 if ${je_cv_pthread_atfork+:} false
; then :
8433 $as_echo_n "(cached) " >&6
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8438 #include <pthread.h>
8444 pthread_atfork((void *)0, (void *)0, (void *)0);
8450 if ac_fn_c_try_link
"$LINENO"; then :
8451 je_cv_pthread_atfork
=yes
8453 je_cv_pthread_atfork
=no
8455 rm -f core conftest.err conftest.
$ac_objext \
8456 conftest
$ac_exeext conftest.
$ac_ext
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
8459 $as_echo "$je_cv_pthread_atfork" >&6; }
8461 if test "x${je_cv_pthread_atfork}" = "xyes" ; then
8462 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
8467 T_APPEND_V
=-D_REENTRANT
8468 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8469 CPPFLAGS
="${CPPFLAGS}${T_APPEND_V}"
8471 CPPFLAGS
="${CPPFLAGS} ${T_APPEND_V}"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8477 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8478 if ${ac_cv_search_clock_gettime+:} false
; then :
8479 $as_echo_n "(cached) " >&6
8481 ac_func_search_save_LIBS
=$LIBS
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8485 /* Override any GCC internal prototype to avoid an error.
8486 Use char because int might match the return type of a GCC
8487 builtin and then its argument prototype would still apply. */
8491 char clock_gettime ();
8495 return clock_gettime ();
8500 for ac_lib
in '' rt
; do
8501 if test -z "$ac_lib"; then
8502 ac_res
="none required"
8505 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8507 if ac_fn_c_try_link
"$LINENO"; then :
8508 ac_cv_search_clock_gettime
=$ac_res
8510 rm -f core conftest.err conftest.
$ac_objext \
8512 if ${ac_cv_search_clock_gettime+:} false
; then :
8516 if ${ac_cv_search_clock_gettime+:} false
; then :
8519 ac_cv_search_clock_gettime
=no
8522 LIBS
=$ac_func_search_save_LIBS
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8525 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8526 ac_res
=$ac_cv_search_clock_gettime
8527 if test "$ac_res" != no
; then :
8528 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8533 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
8534 if test "$ac_cv_search_clock_gettime" != "-lrt"; then
8535 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
8538 unset ac_cv_search_clock_gettime
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
8541 $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
8542 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
8544 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8545 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8547 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8551 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8552 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8554 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8571 if ac_fn_c_try_compile
"$LINENO"; then :
8572 je_cv_cflags_added
=-dynamic
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8574 $as_echo "yes" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
8582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8583 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8584 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8586 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8591 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8592 if ${ac_cv_search_clock_gettime+:} false
; then :
8593 $as_echo_n "(cached) " >&6
8595 ac_func_search_save_LIBS
=$LIBS
8596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8605 char clock_gettime ();
8609 return clock_gettime ();
8614 for ac_lib
in '' rt
; do
8615 if test -z "$ac_lib"; then
8616 ac_res
="none required"
8619 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8621 if ac_fn_c_try_link
"$LINENO"; then :
8622 ac_cv_search_clock_gettime
=$ac_res
8624 rm -f core conftest.err conftest.
$ac_objext \
8626 if ${ac_cv_search_clock_gettime+:} false
; then :
8630 if ${ac_cv_search_clock_gettime+:} false
; then :
8633 ac_cv_search_clock_gettime
=no
8636 LIBS
=$ac_func_search_save_LIBS
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8639 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8640 ac_res
=$ac_cv_search_clock_gettime
8641 if test "$ac_res" != no
; then :
8642 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8647 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
8648 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8649 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8651 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
8660 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
8661 if ${je_cv_clock_monotonic_coarse+:} false
; then :
8662 $as_echo_n "(cached) " >&6
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8675 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
8681 if ac_fn_c_try_link
"$LINENO"; then :
8682 je_cv_clock_monotonic_coarse
=yes
8684 je_cv_clock_monotonic_coarse
=no
8686 rm -f core conftest.err conftest.
$ac_objext \
8687 conftest
$ac_exeext conftest.
$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
8690 $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
8692 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
8693 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
8699 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
8700 if ${je_cv_clock_monotonic+:} false
; then :
8701 $as_echo_n "(cached) " >&6
8703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8715 clock_gettime(CLOCK_MONOTONIC, &ts);
8716 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
8717 # error _POSIX_MONOTONIC_CLOCK missing/invalid
8724 if ac_fn_c_try_link
"$LINENO"; then :
8725 je_cv_clock_monotonic
=yes
8727 je_cv_clock_monotonic
=no
8729 rm -f core conftest.err conftest.
$ac_objext \
8730 conftest
$ac_exeext conftest.
$ac_ext
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
8733 $as_echo "$je_cv_clock_monotonic" >&6; }
8735 if test "x${je_cv_clock_monotonic}" = "xyes" ; then
8736 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
8742 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
8743 if ${je_cv_mach_absolute_time+:} false
; then :
8744 $as_echo_n "(cached) " >&6
8746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8749 #include <mach/mach_time.h>
8755 mach_absolute_time();
8761 if ac_fn_c_try_link
"$LINENO"; then :
8762 je_cv_mach_absolute_time
=yes
8764 je_cv_mach_absolute_time
=no
8766 rm -f core conftest.err conftest.
$ac_objext \
8767 conftest
$ac_exeext conftest.
$ac_ext
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
8770 $as_echo "$je_cv_mach_absolute_time" >&6; }
8772 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
8773 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
8777 # Check whether --enable-syscall was given.
8778 if test "${enable_syscall+set}" = set; then :
8779 enableval
=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
8790 if test "x$enable_syscall" = "x1" ; then
8791 SAVED_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8795 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8796 T_CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}"
8798 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8799 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8801 CONFIGURE_CFLAGS
="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8805 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8806 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8808 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8825 if ac_fn_c_try_compile
"$LINENO"; then :
8826 je_cv_cflags_added
=-Werror
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8828 $as_echo "yes" >&6; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 CONFIGURE_CFLAGS
="${T_CONFIGURE_CFLAGS}"
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8838 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8840 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
8846 $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
8847 if ${je_cv_syscall+:} false
; then :
8848 $as_echo_n "(cached) " >&6
8850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8853 #include <sys/syscall.h>
8860 syscall(SYS_write, 2, "hello", 5);
8866 if ac_fn_c_try_link
"$LINENO"; then :
8871 rm -f core conftest.err conftest.
$ac_objext \
8872 conftest
$ac_exeext conftest.
$ac_ext
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
8875 $as_echo "$je_cv_syscall" >&6; }
8877 CONFIGURE_CFLAGS
="${SAVED_CONFIGURE_CFLAGS}"
8878 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8879 CFLAGS
="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8881 CFLAGS
="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8885 if test "x$je_cv_syscall" = "xyes" ; then
8886 $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
8891 ac_fn_c_check_func
"$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
8892 if test "x$ac_cv_func_secure_getenv" = xyes
; then :
8893 have_secure_getenv
="1"
8895 have_secure_getenv
="0"
8899 if test "x$have_secure_getenv" = "x1" ; then
8900 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
8904 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
8905 if test "x$ac_cv_func_issetugid" = xyes
; then :
8912 if test "x$have_issetugid" = "x1" ; then
8913 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
8917 ac_fn_c_check_func
"$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
8918 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes
; then :
8919 have__malloc_thread_cleanup
="1"
8921 have__malloc_thread_cleanup
="0"
8925 if test "x$have__malloc_thread_cleanup" = "x1" ; then
8926 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
8931 ac_fn_c_check_func
"$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
8932 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes
; then :
8933 have__pthread_mutex_init_calloc_cb
="1"
8935 have__pthread_mutex_init_calloc_cb
="0"
8939 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
8940 $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
8944 # Check whether --enable-lazy_lock was given.
8945 if test "${enable_lazy_lock+set}" = set; then :
8946 enableval
=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
8947 enable_lazy_lock
="0"
8949 enable_lazy_lock
="1"
8957 if test "x${enable_lazy_lock}" = "x" ; then
8958 if test "x${force_lazy_lock}" = "x1" ; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
8960 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
8961 enable_lazy_lock
="1"
8963 enable_lazy_lock
="0"
8966 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
8968 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
8969 enable_lazy_lock
="0"
8971 if test "x$enable_lazy_lock" = "x1" ; then
8972 if test "x$abi" != "xpecoff" ; then
8973 for ac_header
in dlfcn.h
8975 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8976 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8977 cat >>confdefs.h
<<_ACEOF
8978 #define HAVE_DLFCN_H 1
8982 as_fn_error $?
"dlfcn.h is missing" "$LINENO" 5
8987 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8988 if test "x$ac_cv_func_dlsym" = xyes
; then :
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8992 $as_echo_n "checking for dlsym in -ldl... " >&6; }
8993 if ${ac_cv_lib_dl_dlsym+:} false
; then :
8994 $as_echo_n "(cached) " >&6
8996 ac_check_lib_save_LIBS
=$LIBS
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9016 if ac_fn_c_try_link
"$LINENO"; then :
9017 ac_cv_lib_dl_dlsym
=yes
9019 ac_cv_lib_dl_dlsym
=no
9021 rm -f core conftest.err conftest.
$ac_objext \
9022 conftest
$ac_exeext conftest.
$ac_ext
9023 LIBS
=$ac_check_lib_save_LIBS
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9026 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9027 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
9029 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9030 LIBS
="${LIBS}${T_APPEND_V}"
9032 LIBS
="${LIBS} ${T_APPEND_V}"
9037 as_fn_error $?
"libdl is missing" "$LINENO" 5
9044 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
9049 # Check whether --enable-tls was given.
9050 if test "${enable_tls+set}" = set; then :
9051 enableval
=$enable_tls; if test "x$enable_tls" = "xno" ; then
9062 if test "x${enable_tls}" = "x" ; then
9063 if test "x${force_tls}" = "x1" ; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5
9065 $as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; }
9067 elif test "x${force_tls}" = "x0" ; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5
9069 $as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; }
9075 if test "x${enable_tls}" = "x1" ; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
9077 $as_echo_n "checking for TLS... " >&6; }
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9095 if ac_fn_c_try_compile
"$LINENO"; then :
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9097 $as_echo "yes" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 if test "x${enable_tls}" = "x1" ; then
9109 if test "x${force_tls}" = "x0" ; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS enabled despite being marked unusable on this platform" >&5
9111 $as_echo "$as_me: WARNING: TLS enabled despite being marked unusable on this platform" >&2;}
9113 cat >>confdefs.h
<<_ACEOF
9114 #define JEMALLOC_TLS
9117 elif test "x${force_tls}" = "x1" ; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled despite being marked critical on this platform" >&5
9119 $as_echo "$as_me: WARNING: TLS disabled despite being marked critical on this platform" >&2;}
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
9125 $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
9126 if ${je_cv_c11atomics+:} false
; then :
9127 $as_echo_n "(cached) " >&6
9129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9133 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
9134 #include <stdatomic.h>
9136 #error Atomics not available
9143 uint64_t *p = (uint64_t *)0;
9145 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
9146 uint64_t r = atomic_fetch_add(a, x) + x;
9153 if ac_fn_c_try_link
"$LINENO"; then :
9154 je_cv_c11atomics
=yes
9158 rm -f core conftest.err conftest.
$ac_objext \
9159 conftest
$ac_exeext conftest.
$ac_ext
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11atomics" >&5
9162 $as_echo "$je_cv_c11atomics" >&6; }
9164 if test "x${je_cv_c11atomics}" = "xyes" ; then
9165 $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5
9172 $as_echo_n "checking whether atomic(9) is compilable... " >&6; }
9173 if ${je_cv_atomic9+:} false
; then :
9174 $as_echo_n "(cached) " >&6
9176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 #include <sys/types.h>
9180 #include <machine/atomic.h>
9181 #include <inttypes.h>
9189 volatile uint32_t *x32p = &x32;
9190 atomic_fetchadd_32(x32p, 1);
9193 unsigned long xlong = 0;
9194 volatile unsigned long *xlongp = &xlong;
9195 atomic_fetchadd_long(xlongp, 1);
9202 if ac_fn_c_try_link
"$LINENO"; then :
9207 rm -f core conftest.err conftest.
$ac_objext \
9208 conftest
$ac_exeext conftest.
$ac_ext
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5
9211 $as_echo "$je_cv_atomic9" >&6; }
9213 if test "x${je_cv_atomic9}" = "xyes" ; then
9214 $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
9221 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
9222 if ${je_cv_osatomic+:} false
; then :
9223 $as_echo_n "(cached) " >&6
9225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 #include <libkern/OSAtomic.h>
9229 #include <inttypes.h>
9237 volatile int32_t *x32p = &x32;
9238 OSAtomicAdd32(1, x32p);
9242 volatile int64_t *x64p = &x64;
9243 OSAtomicAdd64(1, x64p);
9250 if ac_fn_c_try_link
"$LINENO"; then :
9255 rm -f core conftest.err conftest.
$ac_objext \
9256 conftest
$ac_exeext conftest.
$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
9259 $as_echo "$je_cv_osatomic" >&6; }
9261 if test "x${je_cv_osatomic}" = "xyes" ; then
9262 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
9269 $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
9270 if ${je_cv_madvise+:} false
; then :
9271 $as_echo_n "(cached) " >&6
9273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 #include <sys/mman.h>
9282 madvise((void *)0, 0, 0);
9288 if ac_fn_c_try_link
"$LINENO"; then :
9293 rm -f core conftest.err conftest.
$ac_objext \
9294 conftest
$ac_exeext conftest.
$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
9297 $as_echo "$je_cv_madvise" >&6; }
9299 if test "x${je_cv_madvise}" = "xyes" ; then
9300 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
9305 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
9306 if ${je_cv_madv_free+:} false
; then :
9307 $as_echo_n "(cached) " >&6
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 #include <sys/mman.h>
9318 madvise((void *)0, 0, MADV_FREE);
9324 if ac_fn_c_try_link
"$LINENO"; then :
9329 rm -f core conftest.err conftest.
$ac_objext \
9330 conftest
$ac_exeext conftest.
$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
9333 $as_echo "$je_cv_madv_free" >&6; }
9335 if test "x${je_cv_madv_free}" = "xyes" ; then
9336 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
9342 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
9343 if ${je_cv_madv_dontneed+:} false
; then :
9344 $as_echo_n "(cached) " >&6
9346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9349 #include <sys/mman.h>
9355 madvise((void *)0, 0, MADV_DONTNEED);
9361 if ac_fn_c_try_link
"$LINENO"; then :
9362 je_cv_madv_dontneed
=yes
9364 je_cv_madv_dontneed
=no
9366 rm -f core conftest.err conftest.
$ac_objext \
9367 conftest
$ac_exeext conftest.
$ac_ext
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
9370 $as_echo "$je_cv_madv_dontneed" >&6; }
9372 if test "x${je_cv_madv_dontneed}" = "xyes" ; then
9373 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
9379 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
9380 if ${je_cv_thp+:} false
; then :
9381 $as_echo_n "(cached) " >&6
9383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9386 #include <sys/mman.h>
9392 madvise((void *)0, 0, MADV_HUGEPAGE);
9393 madvise((void *)0, 0, MADV_NOHUGEPAGE);
9399 if ac_fn_c_try_link
"$LINENO"; then :
9404 rm -f core conftest.err conftest.
$ac_objext \
9405 conftest
$ac_exeext conftest.
$ac_ext
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
9408 $as_echo "$je_cv_thp" >&6; }
9410 if test "x${je_cv_thp}" = "xyes" ; then
9411 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
9416 # Check whether --enable-thp was given.
9417 if test "${enable_thp+set}" = set; then :
9418 enableval
=$enable_thp; if test "x$enable_thp" = "xno" -o "x${je_cv_thp}" != "xyes" ; then
9425 if test "x${je_cv_thp}" = "xyes" ; then
9433 if test "x$enable_thp" = "x1" ; then
9434 $as_echo "#define JEMALLOC_THP " >>confdefs.h
9442 if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
9445 $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
9446 if ${je_cv_sync_compare_and_swap_4+:} false
; then :
9447 $as_echo_n "(cached) " >&6
9449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9458 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
9461 __sync_add_and_fetch(&x32, 42);
9462 __sync_sub_and_fetch(&x32, 1);
9465 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
9472 if ac_fn_c_try_link
"$LINENO"; then :
9473 je_cv_sync_compare_and_swap_4
=yes
9475 je_cv_sync_compare_and_swap_4
=no
9477 rm -f core conftest.err conftest.
$ac_objext \
9478 conftest
$ac_exeext conftest.
$ac_ext
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
9481 $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
9483 if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
9484 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
9490 $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
9491 if ${je_cv_sync_compare_and_swap_8+:} false
; then :
9492 $as_echo_n "(cached) " >&6
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9503 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
9506 __sync_add_and_fetch(&x64, 42);
9507 __sync_sub_and_fetch(&x64, 1);
9510 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
9517 if ac_fn_c_try_link
"$LINENO"; then :
9518 je_cv_sync_compare_and_swap_8
=yes
9520 je_cv_sync_compare_and_swap_8
=no
9522 rm -f core conftest.err conftest.
$ac_objext \
9523 conftest
$ac_exeext conftest.
$ac_ext
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
9526 $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
9528 if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
9529 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
9537 $as_echo_n "checking for __builtin_clz... " >&6; }
9538 if ${je_cv_builtin_clz+:} false
; then :
9539 $as_echo_n "(cached) " >&6
9541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9550 int y = __builtin_clz(x);
9553 unsigned long x = 0;
9554 int y = __builtin_clzl(x);
9561 if ac_fn_c_try_link
"$LINENO"; then :
9562 je_cv_builtin_clz
=yes
9564 je_cv_builtin_clz
=no
9566 rm -f core conftest.err conftest.
$ac_objext \
9567 conftest
$ac_exeext conftest.
$ac_ext
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
9570 $as_echo "$je_cv_builtin_clz" >&6; }
9572 if test "x${je_cv_builtin_clz}" = "xyes" ; then
9573 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
9580 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
9581 if ${je_cv_os_unfair_lock+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 #include <os/lock.h>
9588 #include <AvailabilityMacros.h>
9594 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
9595 #error "os_unfair_lock is not supported"
9597 os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
9598 os_unfair_lock_lock(&lock);
9599 os_unfair_lock_unlock(&lock);
9606 if ac_fn_c_try_link
"$LINENO"; then :
9607 je_cv_os_unfair_lock
=yes
9609 je_cv_os_unfair_lock
=no
9611 rm -f core conftest.err conftest.
$ac_objext \
9612 conftest
$ac_exeext conftest.
$ac_ext
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
9615 $as_echo "$je_cv_os_unfair_lock" >&6; }
9617 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
9618 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
9625 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
9626 if ${je_cv_osspin+:} false
; then :
9627 $as_echo_n "(cached) " >&6
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9632 #include <libkern/OSAtomic.h>
9633 #include <inttypes.h>
9639 OSSpinLock lock = 0;
9640 OSSpinLockLock(&lock);
9641 OSSpinLockUnlock(&lock);
9647 if ac_fn_c_try_link
"$LINENO"; then :
9652 rm -f core conftest.err conftest.
$ac_objext \
9653 conftest
$ac_exeext conftest.
$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
9656 $as_echo "$je_cv_osspin" >&6; }
9658 if test "x${je_cv_osspin}" = "xyes" ; then
9659 $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h
9664 # Check whether --enable-zone-allocator was given.
9665 if test "${enable_zone_allocator+set}" = set; then :
9666 enableval
=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
9667 enable_zone_allocator
="0"
9669 enable_zone_allocator
="1"
9673 if test "x${abi}" = "xmacho"; then
9674 enable_zone_allocator
="1"
9682 if test "x${enable_zone_allocator}" = "x1" ; then
9683 if test "x${abi}" != "xmacho"; then
9684 as_fn_error $?
"--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
9686 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
9693 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
9694 if ${je_cv_glibc_malloc_hook+:} false
; then :
9695 $as_echo_n "(cached) " >&6
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9702 extern void (* __free_hook)(void *ptr);
9703 extern void *(* __malloc_hook)(size_t size);
9704 extern void *(* __realloc_hook)(void *ptr, size_t size);
9711 if (__malloc_hook) ptr = __malloc_hook(1);
9712 if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
9713 if (__free_hook && ptr) __free_hook(ptr);
9719 if ac_fn_c_try_link
"$LINENO"; then :
9720 je_cv_glibc_malloc_hook
=yes
9722 je_cv_glibc_malloc_hook
=no
9724 rm -f core conftest.err conftest.
$ac_objext \
9725 conftest
$ac_exeext conftest.
$ac_ext
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
9728 $as_echo "$je_cv_glibc_malloc_hook" >&6; }
9730 if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
9731 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
9737 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
9738 if ${je_cv_glibc_memalign_hook+:} false
; then :
9739 $as_echo_n "(cached) " >&6
9741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9746 extern void *(* __memalign_hook)(size_t alignment, size_t size);
9753 if (__memalign_hook) ptr = __memalign_hook(16, 7);
9759 if ac_fn_c_try_link
"$LINENO"; then :
9760 je_cv_glibc_memalign_hook
=yes
9762 je_cv_glibc_memalign_hook
=no
9764 rm -f core conftest.err conftest.
$ac_objext \
9765 conftest
$ac_exeext conftest.
$ac_ext
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
9768 $as_echo "$je_cv_glibc_memalign_hook" >&6; }
9770 if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
9771 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
9777 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
9778 if ${je_cv_pthread_mutex_adaptive_np+:} false
; then :
9779 $as_echo_n "(cached) " >&6
9781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9784 #include <pthread.h>
9790 pthread_mutexattr_t attr;
9791 pthread_mutexattr_init(&attr);
9792 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
9793 pthread_mutexattr_destroy(&attr);
9799 if ac_fn_c_try_link
"$LINENO"; then :
9800 je_cv_pthread_mutex_adaptive_np
=yes
9802 je_cv_pthread_mutex_adaptive_np
=no
9804 rm -f core conftest.err conftest.
$ac_objext \
9805 conftest
$ac_exeext conftest.
$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
9808 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
9810 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
9811 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9816 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9817 if ${ac_cv_header_stdbool_h+:} false
; then :
9818 $as_echo_n "(cached) " >&6
9820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 #include <stdbool.h>
9825 "error: bool is not defined"
9828 "error: false is not defined"
9831 "error: false is not 0"
9834 "error: true is not defined"
9837 "error: true is not 1"
9839 #ifndef __bool_true_false_are_defined
9840 "error: __bool_true_false_are_defined is not defined"
9843 struct s { _Bool s: 1; _Bool t; } s;
9845 char a[true == 1 ? 1 : -1];
9846 char b[false == 0 ? 1 : -1];
9847 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9848 char d[(bool) 0.5 == true ? 1 : -1];
9849 /* See body of main program for 'e'. */
9850 char f[(_Bool) 0.0 == false ? 1 : -1];
9852 char h[sizeof (_Bool)];
9854 enum { j = false, k = true, l = false * true, m = true * 256 };
9855 /* The following fails for
9856 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9858 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9859 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9860 /* Catch a bug in an HP-UX C compiler. See
9861 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9862 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9874 /* Refer to every declared value, to avoid compiler optimizations. */
9875 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9876 + !m + !n + !o + !p + !q + !pq);
9882 if ac_fn_c_try_compile
"$LINENO"; then :
9883 ac_cv_header_stdbool_h
=yes
9885 ac_cv_header_stdbool_h
=no
9887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9890 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9891 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9892 if test "x$ac_cv_type__Bool" = xyes
; then :
9894 cat >>confdefs.h
<<_ACEOF
9895 #define HAVE__BOOL 1
9902 if test $ac_cv_header_stdbool_h = yes; then
9904 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9910 ac_config_commands
="$ac_config_commands include/jemalloc/internal/private_namespace.h"
9912 ac_config_commands
="$ac_config_commands include/jemalloc/internal/private_unnamespace.h"
9914 ac_config_commands
="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
9916 ac_config_commands
="$ac_config_commands include/jemalloc/internal/public_namespace.h"
9918 ac_config_commands
="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
9920 ac_config_commands
="$ac_config_commands include/jemalloc/internal/size_classes.h"
9922 ac_config_commands
="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
9924 ac_config_commands
="$ac_config_commands include/jemalloc/jemalloc_rename.h"
9926 ac_config_commands
="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
9928 ac_config_commands
="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
9930 ac_config_commands
="$ac_config_commands include/jemalloc/jemalloc.h"
9935 ac_config_headers
="$ac_config_headers $cfghdrs_tup"
9939 ac_config_files
="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
9943 cat >confcache
<<\_ACEOF
9944 # This file is a shell script that caches the results of configure
9945 # tests run on this system so they can be shared between configure
9946 # scripts and configure runs, see configure's option --config-cache.
9947 # It is not useful on other systems. If it contains results you don't
9948 # want to keep, you may remove or edit it.
9950 # config.status only pays attention to the cache file if you give it
9951 # the --recheck option to rerun configure.
9953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9959 # The following way of writing the cache mishandles newlines in values,
9960 # but we know of no workaround that is simple, portable, and efficient.
9961 # So, we kill variables containing newlines.
9962 # Ultrix sh set writes to stderr and can't be redirected directly,
9963 # and sets the high bit in the cache file unless we assign to the vars.
9965 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9966 eval ac_val
=\$
$ac_var
9970 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9974 _ | IFS | as_nl
) ;; #(
9975 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9976 *) { eval $ac_var=; unset $ac_var;} ;;
9982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9983 *${as_nl}ac_space
=\
*)
9984 # `set' does not quote correctly, so add quotes: double-quote
9985 # substitution turns \\\\ into \\, and sed turns \\ into \.
9988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9991 # `set' quotes correctly as required by POSIX, so do not add quotes.
9992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10005 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10006 if test -w "$cache_file"; then
10007 if test "x$cache_file" != "x/dev/null"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10009 $as_echo "$as_me: updating cache $cache_file" >&6;}
10010 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10011 cat confcache
>"$cache_file"
10013 case $cache_file in #(
10015 mv -f confcache
"$cache_file"$$
&&
10016 mv -f "$cache_file"$$
"$cache_file" ;; #(
10018 mv -f confcache
"$cache_file" ;;
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10029 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10030 # Let make expand exec_prefix.
10031 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10033 DEFS
=-DHAVE_CONFIG_H
10038 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10039 # 1. Remove the extension, and $U if already installed.
10040 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10041 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10043 # will be set to the directory where LIBOBJS objects are built.
10044 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10045 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10047 LIBOBJS
=$ac_libobjs
10049 LTLIBOBJS
=$ac_ltlibobjs
10054 : "${CONFIG_STATUS=./config.status}"
10056 ac_clean_files_save
=$ac_clean_files
10057 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10063 # Generated by $as_me.
10064 # Run this file to recreate the current configuration.
10065 # Compiler output produced by configure, useful for debugging
10066 # configure, is in config.log if it exists.
10069 ac_cs_recheck=false
10072 SHELL=\${CONFIG_SHELL-$SHELL}
10075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10076 ## -------------------- ##
10077 ## M4sh Initialization. ##
10078 ## -------------------- ##
10080 # Be more Bourne compatible
10081 DUALCASE
=1; export DUALCASE
# for MKS sh
10082 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10085 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10086 # is contrary to our usage. Disable this feature.
10087 alias -g '${1+"$@"}'='"$@"'
10088 setopt NO_GLOB_SUBST
10090 case `(set -o) 2>/dev/null` in #(
10102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10103 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10106 # Prefer a ksh shell builtin over an external printf program on Solaris,
10107 # but without wasting forks for bash or zsh.
10108 if test -z "$BASH_VERSION$ZSH_VERSION" \
10109 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10110 as_echo='print
-r --'
10111 as_echo_n='print
-rn --'
10112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10113 as_echo='printf %s
\n'
10114 as_echo_n='printf %s
'
10116 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10117 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10118 as_echo_n='/usr
/ucb
/echo -n'
10120 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10121 as_echo_n_body='eval
10125 expr "X$arg" : "X\\(.*\\)$as_nl";
10126 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10128 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10130 export as_echo_n_body
10131 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10133 export as_echo_body
10134 as_echo='sh
-c $as_echo_body as_echo
'
10137 # The user is always right.
10138 if test "${PATH_SEPARATOR+set}" != set; then
10140 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10141 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10148 # We need space, tab and new line, in precisely that order. Quoting is
10149 # there to prevent editors from complaining about space-tab.
10150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10151 # splitting by setting IFS to empty value.)
10154 # Find who we are. Look in the path if we contain no directory separator.
10157 *[\\/]* ) as_myself=$0 ;;
10158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10162 test -z "$as_dir" && as_dir=.
10163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10169 # We did not find ourselves, most probably we were run as `sh COMMAND'
10170 # in which case we are not to be found in the path.
10171 if test "x$as_myself" = x
; then
10174 if test ! -f "$as_myself"; then
10175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10179 # Unset variables that we do not need and which cause bugs (e.g. in
10180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10181 # suppresses any "Segmentation fault" message there. '((' could
10182 # trigger a bug in pdksh 5.2.14.
10183 for as_var
in BASH_ENV ENV MAIL MAILPATH
10184 do eval test x\
${$as_var+set} = xset \
10185 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10198 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10202 # ----------------------------------------
10203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10205 # script with STATUS, using 1 if that was 0.
10208 as_status
=$1; test $as_status -eq 0 && as_status
=1
10210 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10213 $as_echo "$as_me: error: $2" >&2
10214 as_fn_exit
$as_status
10218 # as_fn_set_status STATUS
10219 # -----------------------
10220 # Set $? to STATUS, without forking.
10221 as_fn_set_status
()
10224 } # as_fn_set_status
10226 # as_fn_exit STATUS
10227 # -----------------
10228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10232 as_fn_set_status
$1
10238 # Portably unset VAR.
10241 { eval $1=; unset $1;}
10243 as_unset
=as_fn_unset
10244 # as_fn_append VAR VALUE
10245 # ----------------------
10246 # Append the text in VALUE to the end of the definition contained in VAR. Take
10247 # advantage of any shell optimizations that allow amortized linear growth over
10248 # repeated appends, instead of the typical quadratic growth present in naive
10250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10251 eval 'as_fn_append ()
10262 # as_fn_arith ARG...
10263 # ------------------
10264 # Perform arithmetic evaluation on the ARGs, and store the result in the
10265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10266 # must be portable across $(()) and expr.
10267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10268 eval 'as_fn_arith ()
10275 as_val
=`expr "$@" || test $? -eq 1`
10280 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10281 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10287 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10288 as_basename
=basename
10293 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10299 as_me
=`$as_basename -- "$0" ||
10300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10301 X"$0" : 'X\(//\)$' \| \
10302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10304 sed '/^.*\/\([^/][^/]*\)\/*$/{
10318 # Avoid depending upon Character Ranges.
10319 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10320 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10321 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10322 as_cr_digits
='0123456789'
10323 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10325 ECHO_C
= ECHO_N
= ECHO_T
=
10326 case `echo -n x` in #(((((
10328 case `echo 'xy\c'` in
10329 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10331 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10338 rm -f conf$$ conf$$.exe conf$$.
file
10339 if test -d conf$$.dir
; then
10340 rm -f conf$$.dir
/conf$$.
file
10343 mkdir conf$$.dir
2>/dev
/null
10345 if (echo >conf$$.
file) 2>/dev
/null
; then
10346 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10348 # ... but there are two gotchas:
10349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10351 # In both cases, we have to default to `cp -pR'.
10352 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10354 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10362 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10363 rmdir conf$$.dir
2>/dev
/null
10368 # Create "$as_dir" as a directory, including parents if necessary.
10373 -*) as_dir
=.
/$as_dir;;
10375 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10379 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10380 *) as_qdir
=$as_dir;;
10382 as_dirs
="'$as_qdir' $as_dirs"
10383 as_dir
=`$as_dirname -- "$as_dir" ||
10384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10385 X"$as_dir" : 'X\(//\)[^/]' \| \
10386 X"$as_dir" : 'X\(//\)$' \| \
10387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10388 $as_echo X"$as_dir" |
10389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10393 /^X\(\/\/\)[^/].*/{
10406 test -d "$as_dir" && break
10408 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10409 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10413 if mkdir
-p .
2>/dev
/null
; then
10414 as_mkdir_p
='mkdir -p "$as_dir"'
10416 test -d .
/-p && rmdir .
/-p
10421 # as_fn_executable_p FILE
10422 # -----------------------
10423 # Test if FILE is an executable regular file.
10424 as_fn_executable_p
()
10426 test -f "$1" && test -x "$1"
10427 } # as_fn_executable_p
10428 as_test_x
='test -x'
10429 as_executable_p
=as_fn_executable_p
10431 # Sed expression to map a string onto a valid CPP name.
10432 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10434 # Sed expression to map a string onto a valid variable name.
10435 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10439 ## ----------------------------------- ##
10440 ## Main body of $CONFIG_STATUS script. ##
10441 ## ----------------------------------- ##
10443 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10446 # Save the log message, to keep $0 and so on meaningful, and to
10447 # report actual input values of CONFIG_FILES etc. instead of their
10448 # values after options handling.
10450 This file was extended by $as_me, which was
10451 generated by GNU Autoconf 2.69. Invocation command line was
10453 CONFIG_FILES = $CONFIG_FILES
10454 CONFIG_HEADERS = $CONFIG_HEADERS
10455 CONFIG_LINKS = $CONFIG_LINKS
10456 CONFIG_COMMANDS = $CONFIG_COMMANDS
10459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10464 case $ac_config_files in *"
10465 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10468 case $ac_config_headers in *"
10469 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10474 # Files that config.status was made for.
10475 config_files="$ac_config_files"
10476 config_headers="$ac_config_headers"
10477 config_commands="$ac_config_commands"
10481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10483 \`$as_me' instantiates files and other configuration actions
10484 from templates according to the current configuration. Unless the files
10485 and actions are specified as TAGs, all are instantiated by default.
10487 Usage: $0 [OPTION]... [TAG]...
10489 -h, --help print this help, then exit
10490 -V, --version print version number and configuration settings, then exit
10491 --config print configuration, then exit
10492 -q, --quiet, --silent
10493 do not print progress messages
10494 -d, --debug don't remove temporary files
10495 --recheck update $as_me by reconfiguring in the same conditions
10496 --file=FILE[:TEMPLATE]
10497 instantiate the configuration file FILE
10498 --header=FILE[:TEMPLATE]
10499 instantiate the configuration header FILE
10501 Configuration files:
10504 Configuration headers:
10507 Configuration commands:
10510 Report bugs to the package provider."
10513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10514 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10517 configured by $0, generated by GNU Autoconf 2.69,
10518 with options \\"\$ac_cs_config\\"
10520 Copyright (C) 2012 Free Software Foundation, Inc.
10521 This config.status script is free software; the Free Software Foundation
10522 gives unlimited permission to copy, distribute and modify it."
10527 test -n "\$AWK" || AWK=awk
10530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10531 # The default lists apply if the user does not specify any file.
10537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10538 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10554 # Handling of the options.
10555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10558 $as_echo "$ac_cs_version"; exit ;;
10559 --config |
--confi |
--conf |
--con |
--co |
--c )
10560 $as_echo "$ac_cs_config"; exit ;;
10561 --debug |
--debu |
--deb |
--de |
--d |
-d )
10563 --file |
--fil |
--fi |
--f )
10566 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10567 '') as_fn_error $?
"missing file argument" ;;
10569 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10570 ac_need_defaults
=false
;;
10571 --header |
--heade |
--head |
--hea )
10574 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10576 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10577 ac_need_defaults
=false
;;
10579 # Conflict between --help and --header
10580 as_fn_error $?
"ambiguous option: \`$1'
10581 Try \`$0 --help' for more information.";;
10582 --help |
--hel |
-h )
10583 $as_echo "$ac_cs_usage"; exit ;;
10584 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10585 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10588 # This is an error.
10589 -*) as_fn_error $?
"unrecognized option: \`$1'
10590 Try \`$0 --help' for more information." ;;
10592 *) as_fn_append ac_config_targets
" $1"
10593 ac_need_defaults
=false
;;
10599 ac_configure_extra_args
=
10601 if $ac_cs_silent; then
10603 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10608 if \$ac_cs_recheck; then
10609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10612 CONFIG_SHELL='$SHELL'
10613 export CONFIG_SHELL
10618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10623 ## Running $as_me. ##
10629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10635 objroot="${objroot}"
10639 objroot="${objroot}"
10643 objroot="${objroot}"
10644 mangling_map="${mangling_map}"
10645 public_syms="${public_syms}"
10646 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
10650 objroot="${objroot}"
10654 objroot="${objroot}"
10659 objroot="${objroot}"
10660 LG_QUANTA="${LG_QUANTA}"
10661 LG_TINY_MIN=${LG_TINY_MIN}
10662 LG_PAGE_SIZES="${LG_PAGE_SIZES}"
10663 LG_SIZE_CLASS_GROUP=${LG_SIZE_CLASS_GROUP}
10667 objroot="${objroot}"
10671 objroot="${objroot}"
10675 objroot="${objroot}"
10679 objroot="${objroot}"
10683 objroot="${objroot}"
10684 install_suffix="${install_suffix}"
10689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10691 # Handling of arguments.
10692 for ac_config_target
in $ac_config_targets
10694 case $ac_config_target in
10695 "include/jemalloc/internal/private_namespace.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/private_namespace.h" ;;
10696 "include/jemalloc/internal/private_unnamespace.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/private_unnamespace.h" ;;
10697 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
10698 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
10699 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
10700 "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
10701 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
10702 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
10703 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
10704 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
10705 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
10706 "$cfghdrs_tup") CONFIG_HEADERS
="$CONFIG_HEADERS $cfghdrs_tup" ;;
10707 "$cfgoutputs_tup") CONFIG_FILES
="$CONFIG_FILES $cfgoutputs_tup" ;;
10708 "config.stamp") CONFIG_FILES
="$CONFIG_FILES config.stamp" ;;
10709 "bin/jemalloc-config") CONFIG_FILES
="$CONFIG_FILES bin/jemalloc-config" ;;
10710 "bin/jemalloc.sh") CONFIG_FILES
="$CONFIG_FILES bin/jemalloc.sh" ;;
10711 "bin/jeprof") CONFIG_FILES
="$CONFIG_FILES bin/jeprof" ;;
10713 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10718 # If the user did not use the arguments to specify the items to instantiate,
10719 # then the envvar interface is used. Set only those that are not.
10720 # We use the long form for the default assignment because of an extremely
10721 # bizarre bug on SunOS 4.1.3.
10722 if $ac_need_defaults; then
10723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10728 # Have a temporary directory for convenience. Make it in the build tree
10729 # simply because there is no reason against having it here, and in addition,
10730 # creating and moving files from /tmp can sometimes cause problems.
10731 # Hook for its removal unless debugging.
10732 # Note that there is a small window in which the directory will not be cleaned:
10733 # after its creation but before its name has been assigned to `$tmp'.
10737 trap 'exit_status=$?
10738 : "${ac_tmp:=$tmp}"
10739 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10741 trap 'as_fn_exit 1' 1 2 13 15
10743 # Create a (secure) tmp directory for tmp files.
10746 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10750 tmp
=.
/conf$$
-$RANDOM
10751 (umask 077 && mkdir
"$tmp")
10752 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10755 # Set up the scripts for CONFIG_FILES section.
10756 # No need to generate them if there are no CONFIG_FILES.
10757 # This happens for instance with `./config.status config.h'.
10758 if test -n "$CONFIG_FILES"; then
10761 ac_cr
=`echo X | tr X '\015'`
10762 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10763 # But we know of no other shell where ac_cr would be empty at this
10764 # point, so we can use a bashism as a fallback.
10765 if test "x$ac_cr" = x
; then
10766 eval ac_cr
=\$
\'\\r
\'
10768 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10772 ac_cs_awk_cr
=$ac_cr
10775 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10780 echo "cat >conf$$subs.awk <<_ACEOF" &&
10781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10783 } >conf$$subs.sh ||
10784 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10787 for ac_last_try in false false false false false :; do
10788 . ./conf$$subs.sh ||
10789 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10791 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10792 if test $ac_delim_n = $ac_delim_num; then
10794 elif $ac_last_try; then
10795 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10797 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10800 rm -f conf$$subs.sh
10802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10803 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10807 s/^/S["/; s
/!.
*/"]=/
10817 s/\(.\{148\}\)..*/\1/
10819 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10824 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10831 s/\(.\{148\}\)..*/\1/
10833 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10837 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10842 ' <conf$$subs.awk | sed '
10847 ' >>$CONFIG_STATUS || ac_write_fail=1
10848 rm -f conf$$subs.awk
10849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10851 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10852 for (key in S) S_is_set[key] = 1
10858 nfields = split(line, field, "@
")
10860 len = length(field[1])
10861 for (i = 2; i < nfields; i++) {
10863 keylen = length(key)
10864 if (S_is_set[key]) {
10866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10867 len += length(value) + length(field[++i])
10878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10879 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10880 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10883 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10884 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10887 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10888 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10889 # trailing colons and then remove the whole line if VPATH becomes empty
10890 # (actually we leave an empty line to preserve line numbers).
10891 if test "x
$srcdir" = x.; then
10892 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10911 fi # test -n "$CONFIG_FILES"
10913 # Set up the scripts for CONFIG_HEADERS section.
10914 # No need to generate them if there are no CONFIG_HEADERS.
10915 # This happens for instance with `./config.status Makefile'.
10916 if test -n "$CONFIG_HEADERS"; then
10917 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10921 # Transform confdefs.h into an awk script `defines.awk', embedded as
10922 # here-document in config.status, that substitutes the proper values into
10923 # config.h.in to produce config.h.
10925 # Create a delimiter string that does not exist in confdefs.h, to ease
10926 # handling of long lines.
10928 for ac_last_try in false false :; do
10929 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10930 if test -z "$ac_tt"; then
10932 elif $ac_last_try; then
10933 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10935 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10939 # For the awk script, D is an array of macro values keyed by name,
10940 # likewise P contains macro parameters if any. Preserve backslash
10941 # newline sequences.
10943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10945 s/.\{148\}/&'"$ac_delim"'/g
10948 s/^[ ]*#[ ]*define[ ][ ]*/ /
10955 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10957 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10962 D["\
1"]=" \
3\\\\\\n
"\\/p
10964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10969 s/.\{148\}/&'"$ac_delim"'/g
10974 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10977 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10979 ' <confdefs.h | sed '
10980 s/'"$ac_delim"'/"\\\
10981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10984 for (key in D) D_is_set[key] = 1
10987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10989 split(line, arg, " ")
10990 if (arg[1] == "#") {
10994 defundef
= substr
(arg
[1], 2)
10997 split(mac1
, mac2
, "(") #)
10999 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11000 if (D_is_set
[macro
]) {
11001 # Preserve the white space surrounding the "#".
11002 print prefix
"define", macro P
[macro
] D
[macro
]
11005 # Replace #undef with comments. This is necessary, for example,
11006 # in the case of _POSIX_SOURCE, which is predefined and required
11007 # on some systems where configure will not decide to define it.
11008 if (defundef
== "undef") {
11009 print
"/*", prefix defundef
, macro
, "*/"
11017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11018 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11019 fi # test -n "$CONFIG_HEADERS"
11022 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11027 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11029 case $ac_mode$ac_tag in
11031 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11032 :[FH
]-) ac_tag
=-:-;;
11033 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11050 -) ac_f
="$ac_tmp/stdin";;
11051 *) # Look for the file first in the build tree, then in the source tree
11052 # (if the path is not absolute). The absolute path cannot be DOS-style,
11053 # because $ac_f cannot contain `:'.
11057 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11059 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11061 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11062 as_fn_append ac_file_inputs
" '$ac_f'"
11065 # Let's still pretend it is `configure' which instantiates (i.e., don't
11066 # use $as_me), people would be surprised to read:
11067 # /* config.h. Generated by config.status. */
11068 configure_input
='Generated from '`
11069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11071 if test x
"$ac_file" != x-
; then
11072 configure_input
="$ac_file. $configure_input"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11074 $as_echo "$as_me: creating $ac_file" >&6;}
11076 # Neutralize special characters interpreted by sed in replacement strings.
11077 case $configure_input in #(
11078 *\
&* |
*\|
* |
*\\* )
11079 ac_sed_conf_input
=`$as_echo "$configure_input" |
11080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11081 *) ac_sed_conf_input
=$configure_input;;
11085 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11086 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11091 ac_dir
=`$as_dirname -- "$ac_file" ||
11092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11093 X"$ac_file" : 'X\(//\)[^/]' \| \
11094 X"$ac_file" : 'X\(//\)$' \| \
11095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11096 $as_echo X"$ac_file" |
11097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11101 /^X\(\/\/\)[^/].*/{
11114 as_dir
="$ac_dir"; as_fn_mkdir_p
11118 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11120 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11121 # A ".." for each directory in $ac_dir_suffix.
11122 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11123 case $ac_top_builddir_sub in
11124 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11125 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11128 ac_abs_top_builddir
=$ac_pwd
11129 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11130 # for backward compatibility:
11131 ac_top_builddir
=$ac_top_build_prefix
11134 .
) # We are building in place.
11136 ac_top_srcdir
=$ac_top_builddir_sub
11137 ac_abs_top_srcdir
=$ac_pwd ;;
11138 [\\/]* | ?
:[\\/]* ) # Absolute name.
11139 ac_srcdir
=$srcdir$ac_dir_suffix;
11140 ac_top_srcdir
=$srcdir
11141 ac_abs_top_srcdir
=$srcdir ;;
11142 *) # Relative name.
11143 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11144 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11145 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11147 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11157 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11158 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11163 # If the template does not know about datarootdir, expand it.
11164 # FIXME: This hack should be removed a few years after 2.60.
11165 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11177 *datarootdir
*) ac_datarootdir_seen
=yes;;
11178 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11183 ac_datarootdir_hack='
11184 s&@datadir@&$datadir&g
11185 s&@docdir@&$docdir&g
11186 s&@infodir@&$infodir&g
11187 s&@localedir@&$localedir&g
11188 s&@mandir@&$mandir&g
11189 s&\\\${datarootdir}&$datarootdir&g' ;;
11193 # Neutralize VPATH when `$srcdir' = `.'.
11194 # Shell code in configure.ac might set extrasub.
11195 # FIXME: do we really want to maintain this feature?
11196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11197 ac_sed_extra="$ac_vpsub
11200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11202 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11203 s|@configure_input@|
$ac_sed_conf_input|
;t t
11204 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11205 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11206 s
&@srcdir@
&$ac_srcdir&;t t
11207 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11208 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11209 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11210 s
&@builddir@
&$ac_builddir&;t t
11211 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11212 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11213 s
&@INSTALL@
&$ac_INSTALL&;t t
11214 $ac_datarootdir_hack
11216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11217 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11220 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11222 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11224 which seems to be undefined. Please make sure it is defined" >&5
11225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11226 which seems to be undefined. Please make sure it is defined" >&2;}
11228 rm -f "$ac_tmp/stdin"
11230 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11231 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11239 if test x"$ac_file" != x-; then
11241 $as_echo "/* $configure_input */" \
11242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11243 } >"$ac_tmp/config.h" \
11244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11245 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11250 mv "$ac_tmp/config.h" "$ac_file" \
11251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11254 $as_echo "/* $configure_input */" \
11255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11256 || as_fn_error $? "could not create -" "$LINENO" 5
11260 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11261 $as_echo "$as_me: executing $ac_file commands" >&6;}
11266 case $ac_file$ac_mode in
11267 "include/jemalloc/internal/private_namespace.h":C)
11268 mkdir -p "${objroot}include/jemalloc/internal"
11269 "${srcdir}/include/jemalloc/internal/private_namespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_namespace.h"
11271 "include/jemalloc/internal/private_unnamespace.h":C)
11272 mkdir -p "${objroot}include/jemalloc/internal"
11273 "${srcdir}/include/jemalloc/internal/private_unnamespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_unnamespace.h"
11275 "include/jemalloc/internal/public_symbols.txt":C)
11276 f="${objroot}include/jemalloc/internal/public_symbols.txt"
11277 mkdir -p "${objroot}include/jemalloc/internal"
11278 cp /dev/null "${f}"
11279 for nm in `echo ${mangling_map} |tr ',' ' '` ; do
11280 n=`echo ${nm} |tr ':' ' ' |awk '{print
$1}'`
11281 m=`echo ${nm} |tr ':' ' ' |awk '{print
$2}'`
11282 echo "${n}:${m}" >> "${f}"
11283 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
11285 for sym in ${public_syms} ; do
11287 m="${JEMALLOC_PREFIX}${sym}"
11288 echo "${n}:${m}" >> "${f}"
11291 "include/jemalloc/internal/public_namespace.h":C)
11292 mkdir -p "${objroot}include/jemalloc/internal"
11293 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
11295 "include/jemalloc/internal/public_unnamespace.h":C)
11296 mkdir -p "${objroot}include/jemalloc/internal"
11297 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
11299 "include/jemalloc/internal/size_classes.h":C)
11300 mkdir -p "${objroot}include/jemalloc/internal"
11301 "${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"
11303 "include/jemalloc/jemalloc_protos_jet.h":C)
11304 mkdir -p "${objroot}include/jemalloc"
11305 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's
/@je_@
/jet_
/g
' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
11307 "include/jemalloc/jemalloc_rename.h":C)
11308 mkdir -p "${objroot}include/jemalloc"
11309 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
11311 "include/jemalloc/jemalloc_mangle.h":C)
11312 mkdir -p "${objroot}include/jemalloc"
11313 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
11315 "include/jemalloc/jemalloc_mangle_jet.h":C)
11316 mkdir -p "${objroot}include/jemalloc"
11317 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
11319 "include/jemalloc/jemalloc.h":C)
11320 mkdir -p "${objroot}include/jemalloc"
11321 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
11330 ac_clean_files=$ac_clean_files_save
11332 test $ac_write_fail = 0 ||
11333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11336 # configure is writing to config.log, and then calls config.status.
11337 # config.status does its own redirection, appending to config.log.
11338 # Unfortunately, on DOS this fails, as config.log is still kept open
11339 # by configure, so config.status won't be able to
write to it
; its
11340 # output is simply discarded. So we exec the FD to /dev/null,
11341 # effectively closing config.log, so it can be properly (re)opened and
11342 # appended to by config.status. When coming back to configure, we
11343 # need to make the FD available again.
11344 if test "$no_create" != yes; then
11346 ac_config_status_args
=
11347 test "$silent" = yes &&
11348 ac_config_status_args
="$ac_config_status_args --quiet"
11350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11353 # would make configure fail if this is the last instruction.
11354 $ac_cs_success || as_fn_exit
1
11356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
11363 $as_echo "===============================================================================" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
11365 $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
11367 $as_echo "library revision : ${rev}" >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
11371 $as_echo "CONFIG : ${CONFIG}" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
11373 $as_echo "CC : ${CC}" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
11375 $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
11377 $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
11379 $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
11381 $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
11383 $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
11385 $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
11387 $as_echo "LIBS : ${LIBS}" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
11389 $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
11393 $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
11395 $as_echo "XSLROOT : ${XSLROOT}" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
11399 $as_echo "PREFIX : ${PREFIX}" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
11401 $as_echo "BINDIR : ${BINDIR}" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
11403 $as_echo "DATADIR : ${DATADIR}" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
11405 $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
11407 $as_echo "LIBDIR : ${LIBDIR}" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
11409 $as_echo "MANDIR : ${MANDIR}" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
11413 $as_echo "srcroot : ${srcroot}" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
11415 $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
11417 $as_echo "objroot : ${objroot}" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
11419 $as_echo "abs_objroot : ${abs_objroot}" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
11423 $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
11425 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
11427 $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
11429 $as_echo "install_suffix : ${install_suffix}" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
11431 $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
11433 $as_echo "autogen : ${enable_autogen}" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5
11435 $as_echo "cc-silence : ${enable_cc_silence}" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
11437 $as_echo "debug : ${enable_debug}" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: code-coverage : ${enable_code_coverage}" >&5
11439 $as_echo "code-coverage : ${enable_code_coverage}" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
11441 $as_echo "stats : ${enable_stats}" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
11443 $as_echo "prof : ${enable_prof}" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
11445 $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
11447 $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
11449 $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5
11451 $as_echo "tcache : ${enable_tcache}" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: thp : ${enable_thp}" >&5
11453 $as_echo "thp : ${enable_thp}" >&6; }
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
11455 $as_echo "fill : ${enable_fill}" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
11457 $as_echo "utrace : ${enable_utrace}" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind : ${enable_valgrind}" >&5
11459 $as_echo "valgrind : ${enable_valgrind}" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
11461 $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap : ${enable_munmap}" >&5
11463 $as_echo "munmap : ${enable_munmap}" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
11465 $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5
11467 $as_echo "tls : ${enable_tls}" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
11469 $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
11471 $as_echo "===============================================================================" >&6; }