configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 cfgoutputs_out
625 cfgoutputs_in
626 cfghdrs_out
627 cfghdrs_in
628 enable_initial_exec_tls
629 enable_zone_allocator
630 enable_tls
631 enable_lazy_lock
632 jemalloc_version_gid
633 jemalloc_version_nrev
634 jemalloc_version_bugfix
635 jemalloc_version_minor
636 jemalloc_version_major
637 jemalloc_version
638 enable_log
639 enable_cache_oblivious
640 enable_xmalloc
641 enable_utrace
642 enable_fill
643 enable_prof
644 enable_stats
645 enable_debug
646 je_
647 install_suffix
648 private_namespace
649 JEMALLOC_CPREFIX
650 JEMALLOC_PREFIX
651 AUTOCONF
652 LD
653 RANLIB
654 INSTALL_DATA
655 INSTALL_SCRIPT
656 INSTALL_PROGRAM
657 enable_autogen
658 RPATH_EXTRA
659 LM
660 CC_MM
661 DUMP_SYMS
662 AROUT
663 ARFLAGS
664 MKLIB
665 TEST_LD_MODE
666 LDTARGET
667 CTARGET
668 PIC_CFLAGS
669 SOREV
670 EXTRA_LDFLAGS
671 DSO_LDFLAGS
672 link_whole_archive
673 libprefix
674 exe
675 a
676 o
677 importlib
678 so
679 LD_PRELOAD_VAR
680 RPATH
681 abi
682 AWK
683 NM
684 AR
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 EGREP
694 GREP
695 EXTRA_CXXFLAGS
696 SPECIFIED_CXXFLAGS
697 CONFIGURE_CXXFLAGS
698 enable_cxx
699 HAVE_CXX14
700 ac_ct_CXX
701 CXXFLAGS
702 CXX
703 CPP
704 EXTRA_CFLAGS
705 SPECIFIED_CFLAGS
706 CONFIGURE_CFLAGS
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 XSLROOT
715 XSLTPROC
716 MANDIR
717 DATADIR
718 LIBDIR
719 INCLUDEDIR
720 BINDIR
721 PREFIX
722 abs_objroot
723 objroot
724 abs_srcroot
725 srcroot
726 rev
727 CONFIG
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 with_xslroot
770 enable_cxx
771 with_lg_vaddr
772 with_rpath
773 enable_autogen
774 with_mangling
775 with_jemalloc_prefix
776 with_export
777 with_private_namespace
778 with_install_suffix
779 with_malloc_conf
780 enable_debug
781 enable_stats
782 enable_prof
783 enable_prof_libunwind
784 with_static_libunwind
785 enable_prof_libgcc
786 enable_prof_gcc
787 enable_fill
788 enable_utrace
789 enable_xmalloc
790 enable_cache_oblivious
791 enable_log
792 with_lg_quantum
793 with_lg_page
794 with_lg_hugepage
795 with_lg_page_sizes
796 with_version
797 enable_syscall
798 enable_lazy_lock
799 enable_zone_allocator
800 enable_initial_exec_tls
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 CXX
812 CXXFLAGS
813 CCC'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures this package to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418
1419 cat <<\_ACEOF
1420
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --disable-cxx Disable C++ integration
1426 --enable-autogen Automatically regenerate configure output
1427 --enable-debug Build debugging code
1428 --disable-stats Disable statistics calculation/reporting
1429 --enable-prof Enable allocation profiling
1430 --enable-prof-libunwind Use libunwind for backtracing
1431 --disable-prof-libgcc Do not use libgcc for backtracing
1432 --disable-prof-gcc Do not use gcc intrinsics for backtracing
1433 --disable-fill Disable support for junk/zero filling
1434 --enable-utrace Enable utrace(2)-based tracing
1435 --enable-xmalloc Support xmalloc option
1436 --disable-cache-oblivious
1437 Disable support for cache-oblivious allocation
1438 alignment
1439 --enable-log Support debug logging
1440 --disable-syscall Disable use of syscall(2)
1441 --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
1442 --disable-zone-allocator
1443 Disable zone allocator for Darwin
1444 --disable-initial-exec-tls
1445 Disable the initial-exec tls model
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-xslroot=<path> XSL stylesheet root path
1451 --with-lg-vaddr=<lg-vaddr>
1452 Number of significant virtual address bits
1453 --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
1454 --with-mangling=<map> Mangle symbols in <map>
1455 --with-jemalloc-prefix=<prefix>
1456 Prefix to prepend to all public APIs
1457 --without-export disable exporting jemalloc public APIs
1458 --with-private-namespace=<prefix>
1459 Prefix to prepend to all library-private APIs
1460 --with-install-suffix=<suffix>
1461 Suffix to append to all installed files
1462 --with-malloc-conf=<malloc_conf>
1463 config.malloc_conf options string
1464 --with-static-libunwind=<libunwind.a>
1465 Path to static libunwind library; use rather than
1466 dynamically linking
1467 --with-lg-quantum=<lg-quantum>
1468 Base 2 log of minimum allocation alignment
1469 --with-lg-page=<lg-page>
1470 Base 2 log of system page size
1471 --with-lg-hugepage=<lg-hugepage>
1472 Base 2 log of system huge page size
1473 --with-lg-page-sizes=<lg-page-sizes>
1474 Base 2 logs of system page sizes to support
1475 --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1476 Version string
1477
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CPP C preprocessor
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to the package provider.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 configure
1557 generated by GNU Autoconf 2.69
1558
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_cxx_try_compile LINENO
1646 # ----------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_cxx_try_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_cxx_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_cxx_try_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest$ac_exeext
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
1764 fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_compile
1801
1802 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1803 # --------------------------------------------
1804 # Tries to find the compile-time value of EXPR in a program that includes
1805 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1806 # computed
1807 ac_fn_c_compute_int ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if test "$cross_compiling" = yes; then
1811 # Depending upon the size, compute the lo and hi bounds.
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 int
1816 main ()
1817 {
1818 static int test_array [1 - 2 * !(($2) >= 0)];
1819 test_array [0] = 0;
1820 return test_array [0];
1821
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_lo=0 ac_mid=0
1828 while :; do
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 $4
1832 int
1833 main ()
1834 {
1835 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836 test_array [0] = 0;
1837 return test_array [0];
1838
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_hi=$ac_mid; break
1845 else
1846 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1847 if test $ac_lo -le $ac_mid; then
1848 ac_lo= ac_hi=
1849 break
1850 fi
1851 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 done
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 int
1860 main ()
1861 {
1862 static int test_array [1 - 2 * !(($2) < 0)];
1863 test_array [0] = 0;
1864 return test_array [0];
1865
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_hi=-1 ac_mid=-1
1872 while :; do
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 int
1877 main ()
1878 {
1879 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1880 test_array [0] = 0;
1881 return test_array [0];
1882
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 ac_lo=$ac_mid; break
1889 else
1890 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1891 if test $ac_mid -le $ac_hi; then
1892 ac_lo= ac_hi=
1893 break
1894 fi
1895 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 done
1899 else
1900 ac_lo= ac_hi=
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 # Binary search between lo and hi bounds.
1906 while test "x$ac_lo" != "x$ac_hi"; do
1907 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 int
1912 main ()
1913 {
1914 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 test_array [0] = 0;
1916 return test_array [0];
1917
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_hi=$ac_mid
1924 else
1925 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 done
1929 case $ac_lo in #((
1930 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1931 '') ac_retval=1 ;;
1932 esac
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 static long int longval () { return $2; }
1938 static unsigned long int ulongval () { return $2; }
1939 #include <stdio.h>
1940 #include <stdlib.h>
1941 int
1942 main ()
1943 {
1944
1945 FILE *f = fopen ("conftest.val", "w");
1946 if (! f)
1947 return 1;
1948 if (($2) < 0)
1949 {
1950 long int i = longval ();
1951 if (i != ($2))
1952 return 1;
1953 fprintf (f, "%ld", i);
1954 }
1955 else
1956 {
1957 unsigned long int i = ulongval ();
1958 if (i != ($2))
1959 return 1;
1960 fprintf (f, "%lu", i);
1961 }
1962 /* Do not output a trailing newline, as this causes \r\n confusion
1963 on some platforms. */
1964 return ferror (f) || fclose (f) != 0;
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_run "$LINENO"; then :
1971 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1972 else
1973 ac_retval=1
1974 fi
1975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1976 conftest.$ac_objext conftest.beam conftest.$ac_ext
1977 rm -f conftest.val
1978
1979 fi
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1982
1983 } # ac_fn_c_compute_int
1984
1985 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1989 # accordingly.
1990 ac_fn_c_check_header_mongrel ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if eval \${$3+:} false; then :
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 else
2003 # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_header_compiler=yes
2013 else
2014 ac_header_compiler=no
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2019
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_cpp "$LINENO"; then :
2028 ac_header_preproc=yes
2029 else
2030 ac_header_preproc=no
2031 fi
2032 rm -f conftest.err conftest.i conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2035
2036 # So? What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 yes:no: )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 ;;
2044 no:yes:* )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 ;;
2056 esac
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 eval "$3=\$ac_header_compiler"
2063 fi
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 fi
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_c_check_header_mongrel
2071
2072 # ac_fn_c_check_func LINENO FUNC VAR
2073 # ----------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_c_check_func ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 #define $2 innocuous_$2
2088
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
2093
2094 #ifdef __STDC__
2095 # include <limits.h>
2096 #else
2097 # include <assert.h>
2098 #endif
2099
2100 #undef $2
2101
2102 /* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2105 #ifdef __cplusplus
2106 extern "C"
2107 #endif
2108 char $2 ();
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined __stub_$2 || defined __stub___$2
2113 choke me
2114 #endif
2115
2116 int
2117 main ()
2118 {
2119 return $2 ();
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_link "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_func
2138
2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 # -------------------------------------------
2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 # variable VAR accordingly.
2143 ac_fn_c_check_type ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 if (sizeof ($2))
2159 return 0;
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 if (sizeof (($2)))
2172 return 0;
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178
2179 else
2180 eval "$3=yes"
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 fi
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191 } # ac_fn_c_check_type
2192 cat >config.log <<_ACEOF
2193 This file contains any messages produced by compilers while
2194 running configure, to aid debugging if configure makes a mistake.
2195
2196 It was created by $as_me, which was
2197 generated by GNU Autoconf 2.69. Invocation command line was
2198
2199 $ $0 $@
2200
2201 _ACEOF
2202 exec 5>>config.log
2203 {
2204 cat <<_ASUNAME
2205 ## --------- ##
2206 ## Platform. ##
2207 ## --------- ##
2208
2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214
2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217
2218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225
2226 _ASUNAME
2227
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 $as_echo "PATH: $as_dir"
2234 done
2235 IFS=$as_save_IFS
2236
2237 } >&5
2238
2239 cat >&5 <<_ACEOF
2240
2241
2242 ## ----------- ##
2243 ## Core tests. ##
2244 ## ----------- ##
2245
2246 _ACEOF
2247
2248
2249 # Keep a trace of the command line.
2250 # Strip out --no-create and --no-recursion so they do not pile up.
2251 # Strip out --silent because we don't want to record it for future runs.
2252 # Also quote any args containing shell meta-characters.
2253 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_configure_args=
2255 ac_configure_args0=
2256 ac_configure_args1=
2257 ac_must_keep_next=false
2258 for ac_pass in 1 2
2259 do
2260 for ac_arg
2261 do
2262 case $ac_arg in
2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 | -silent | --silent | --silen | --sile | --sil)
2266 continue ;;
2267 *\'*)
2268 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 case $ac_pass in
2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272 2)
2273 as_fn_append ac_configure_args1 " '$ac_arg'"
2274 if test $ac_must_keep_next = true; then
2275 ac_must_keep_next=false # Got value, back to normal.
2276 else
2277 case $ac_arg in
2278 *=* | --config-cache | -C | -disable-* | --disable-* \
2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 | -with-* | --with-* | -without-* | --without-* | --x)
2282 case "$ac_configure_args0 " in
2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 esac
2285 ;;
2286 -* ) ac_must_keep_next=true ;;
2287 esac
2288 fi
2289 as_fn_append ac_configure_args " '$ac_arg'"
2290 ;;
2291 esac
2292 done
2293 done
2294 { ac_configure_args0=; unset ac_configure_args0;}
2295 { ac_configure_args1=; unset ac_configure_args1;}
2296
2297 # When interrupted or exit'd, cleanup temporary files, and complete
2298 # config.log. We remove comments because anyway the quotes in there
2299 # would cause problems or look ugly.
2300 # WARNING: Use '\'' to represent an apostrophe within the trap.
2301 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302 trap 'exit_status=$?
2303 # Save into config.log some information that might help in debugging.
2304 {
2305 echo
2306
2307 $as_echo "## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##"
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2312 (
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2335 *)
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337 ;;
2338 esac |
2339 sort
2340 )
2341 echo
2342
2343 $as_echo "## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##"
2346 echo
2347 for ac_var in $ac_subst_vars
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356
2357 if test -n "$ac_subst_files"; then
2358 $as_echo "## ------------------- ##
2359 ## File substitutions. ##
2360 ## ------------------- ##"
2361 echo
2362 for ac_var in $ac_subst_files
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371 fi
2372
2373 if test -s confdefs.h; then
2374 $as_echo "## ----------- ##
2375 ## confdefs.h. ##
2376 ## ----------- ##"
2377 echo
2378 cat confdefs.h
2379 echo
2380 fi
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2388 ' 0
2389 for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 done
2392 ac_signal=0
2393
2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 rm -f -r conftest* confdefs.h
2396
2397 $as_echo "/* confdefs.h */" > confdefs.h
2398
2399 # Predefined preprocessor variables.
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_NAME "$PACKAGE_NAME"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_STRING "$PACKAGE_STRING"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_URL "$PACKAGE_URL"
2423 _ACEOF
2424
2425
2426 # Let the site file select an alternate cache file if it wants to.
2427 # Prefer an explicitly selected file to automatically selected ones.
2428 ac_site_file1=NONE
2429 ac_site_file2=NONE
2430 if test -n "$CONFIG_SITE"; then
2431 # We do not want a PATH search for config.site.
2432 case $CONFIG_SITE in #((
2433 -*) ac_site_file1=./$CONFIG_SITE;;
2434 */*) ac_site_file1=$CONFIG_SITE;;
2435 *) ac_site_file1=./$CONFIG_SITE;;
2436 esac
2437 elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440 else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2443 fi
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 do
2446 test "x$ac_site_file" = xNONE && continue
2447 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file" \
2452 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454 as_fn_error $? "failed to load site script $ac_site_file
2455 See \`config.log' for more details" "$LINENO" 5; }
2456 fi
2457 done
2458
2459 if test -r "$cache_file"; then
2460 # Some versions of bash will fail to source /dev/null (special files
2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464 $as_echo "$as_me: loading cache $cache_file" >&6;}
2465 case $cache_file in
2466 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 *) . "./$cache_file";;
2468 esac
2469 fi
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 >$cache_file
2474 fi
2475
2476 # Check that the precious variables saved in the cache have kept the same
2477 # value.
2478 ac_cache_corrupted=false
2479 for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2494 *)
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2524 fi
2525 done
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2532 fi
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2536
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544
2545 ac_aux_dir=
2546 for ac_dir in build-aux "$srcdir"/build-aux; do
2547 if test -f "$ac_dir/install-sh"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/install-sh -c"
2550 break
2551 elif test -f "$ac_dir/install.sh"; then
2552 ac_aux_dir=$ac_dir
2553 ac_install_sh="$ac_aux_dir/install.sh -c"
2554 break
2555 elif test -f "$ac_dir/shtool"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/shtool install -c"
2558 break
2559 fi
2560 done
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2563 fi
2564
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2572
2573
2574
2575
2576
2577
2578
2579
2580 CONFIGURE_CFLAGS=
2581 SPECIFIED_CFLAGS="${CFLAGS}"
2582
2583
2584
2585
2586
2587 CONFIGURE_CXXFLAGS=
2588 SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2589
2590
2591
2592
2593
2594 CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2595
2596
2597 rev=2
2598
2599
2600 srcroot=$srcdir
2601 if test "x${srcroot}" = "x." ; then
2602 srcroot=""
2603 else
2604 srcroot="${srcroot}/"
2605 fi
2606
2607 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2608
2609
2610 objroot=""
2611
2612 abs_objroot="`pwd`/"
2613
2614
2615 if test "x$prefix" = "xNONE" ; then
2616 prefix="/usr/local"
2617 fi
2618 if test "x$exec_prefix" = "xNONE" ; then
2619 exec_prefix=$prefix
2620 fi
2621 PREFIX=$prefix
2622
2623 BINDIR=`eval echo $bindir`
2624 BINDIR=`eval echo $BINDIR`
2625
2626 INCLUDEDIR=`eval echo $includedir`
2627 INCLUDEDIR=`eval echo $INCLUDEDIR`
2628
2629 LIBDIR=`eval echo $libdir`
2630 LIBDIR=`eval echo $LIBDIR`
2631
2632 DATADIR=`eval echo $datadir`
2633 DATADIR=`eval echo $DATADIR`
2634
2635 MANDIR=`eval echo $mandir`
2636 MANDIR=`eval echo $MANDIR`
2637
2638
2639 # Extract the first word of "xsltproc", so it can be a program name with args.
2640 set dummy xsltproc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_path_XSLTPROC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 case $XSLTPROC in
2647 [\\/]* | ?:[\\/]*)
2648 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2649 ;;
2650 *)
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2667 ;;
2668 esac
2669 fi
2670 XSLTPROC=$ac_cv_path_XSLTPROC
2671 if test -n "$XSLTPROC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2673 $as_echo "$XSLTPROC" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2681 DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2682 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2683 DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2684 else
2685 DEFAULT_XSLROOT=""
2686 fi
2687
2688 # Check whether --with-xslroot was given.
2689 if test "${with_xslroot+set}" = set; then :
2690 withval=$with_xslroot;
2691 if test "x$with_xslroot" = "xno" ; then
2692 XSLROOT="${DEFAULT_XSLROOT}"
2693 else
2694 XSLROOT="${with_xslroot}"
2695 fi
2696
2697 else
2698 XSLROOT="${DEFAULT_XSLROOT}"
2699
2700 fi
2701
2702
2703
2704 CFLAGS=$CFLAGS
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_CC+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747
2748 fi
2749 if test -z "$ac_cv_prog_CC"; then
2750 ac_ct_CC=$CC
2751 # Extract the first word of "gcc", so it can be a program name with args.
2752 set dummy gcc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC="gcc"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787 if test "x$ac_ct_CC" = x; then
2788 CC=""
2789 else
2790 case $cross_compiling:$ac_tool_warned in
2791 yes:)
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 ac_tool_warned=yes ;;
2795 esac
2796 CC=$ac_ct_CC
2797 fi
2798 else
2799 CC="$ac_cv_prog_CC"
2800 fi
2801
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840
2841 fi
2842 fi
2843 if test -z "$CC"; then
2844 # Extract the first word of "cc", so it can be a program name with args.
2845 set dummy cc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 else
2854 ac_prog_rejected=no
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863 ac_prog_rejected=yes
2864 continue
2865 fi
2866 ac_cv_prog_CC="cc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 if test $ac_prog_rejected = yes; then
2875 # We found a bogon in the path, so make sure we never use it.
2876 set dummy $ac_cv_prog_CC
2877 shift
2878 if test $# != 0; then
2879 # We chose a different compiler from the bogus one.
2880 # However, it has the same basename, so the bogon will be chosen
2881 # first if we set CC to just the basename; use the full file name.
2882 shift
2883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884 fi
2885 fi
2886 fi
2887 fi
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 for ac_prog in cl.exe
2902 do
2903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 test -n "$CC" && break
2941 done
2942 fi
2943 if test -z "$CC"; then
2944 ac_ct_CC=$CC
2945 for ac_prog in cl.exe
2946 do
2947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 set dummy $ac_prog; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_ac_ct_CC="$ac_prog"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 $as_echo "$ac_ct_CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 test -n "$ac_ct_CC" && break
2985 done
2986
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2997 fi
2998 fi
2999
3000 fi
3001
3002
3003 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error $? "no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details" "$LINENO" 5; }
3007
3008 # Provide some information about the compiler.
3009 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3010 set X $ac_compile
3011 ac_compiler=$2
3012 for ac_option in --version -v -V -qversion; do
3013 { { ac_try="$ac_compiler $ac_option >&5"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3021 ac_status=$?
3022 if test -s conftest.err; then
3023 sed '10a\
3024 ... rest of stderr output deleted ...
3025 10q' conftest.err >conftest.er1
3026 cat conftest.er1 >&5
3027 fi
3028 rm -f conftest.er1 conftest.err
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }
3031 done
3032
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3035
3036 int
3037 main ()
3038 {
3039
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3050 $as_echo_n "checking whether the C compiler works... " >&6; }
3051 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052
3053 # The possible output files:
3054 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055
3056 ac_rmfiles=
3057 for ac_file in $ac_files
3058 do
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3062 esac
3063 done
3064 rm -f $ac_rmfiles
3065
3066 if { { ac_try="$ac_link_default"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link_default") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3078 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3079 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3080 # so that the user can short-circuit this test for compilers unknown to
3081 # Autoconf.
3082 for ac_file in $ac_files ''
3083 do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087 ;;
3088 [ab].out )
3089 # We found the default executable, but exeext='' is most
3090 # certainly right.
3091 break;;
3092 *.* )
3093 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3094 then :; else
3095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 fi
3097 # We set ac_cv_exeext here because the later test for it is not
3098 # safe: cross compilers may not add the suffix if given an `-o'
3099 # argument, so we may need to know it at that point already.
3100 # Even if this section looks crufty: it has the advantage of
3101 # actually working.
3102 break;;
3103 * )
3104 break;;
3105 esac
3106 done
3107 test "$ac_cv_exeext" = no && ac_cv_exeext=
3108
3109 else
3110 ac_file=''
3111 fi
3112 if test -z "$ac_file"; then :
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 $as_echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 as_fn_error 77 "C compiler cannot create executables
3121 See \`config.log' for more details" "$LINENO" 5; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3127 $as_echo_n "checking for C compiler default output file name... " >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129 $as_echo "$ac_file" >&6; }
3130 ac_exeext=$ac_cv_exeext
3131
3132 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3133 ac_clean_files=$ac_clean_files_save
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3135 $as_echo_n "checking for suffix of executables... " >&6; }
3136 if { { ac_try="$ac_link"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3148 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3149 # work properly (i.e., refer to `conftest.exe'), while it won't with
3150 # `rm'.
3151 for ac_file in conftest.exe conftest conftest.*; do
3152 test -f "$ac_file" || continue
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3155 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156 break;;
3157 * ) break;;
3158 esac
3159 done
3160 else
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3164 See \`config.log' for more details" "$LINENO" 5; }
3165 fi
3166 rm -f conftest conftest$ac_cv_exeext
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3168 $as_echo "$ac_cv_exeext" >&6; }
3169
3170 rm -f conftest.$ac_ext
3171 EXEEXT=$ac_cv_exeext
3172 ac_exeext=$EXEEXT
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdio.h>
3176 int
3177 main ()
3178 {
3179 FILE *f = fopen ("conftest.out", "w");
3180 return ferror (f) || fclose (f) != 0;
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 ac_clean_files="$ac_clean_files conftest.out"
3187 # Check that the compiler produces executables we can run. If not, either
3188 # the compiler is broken, or we cross compile.
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3190 $as_echo_n "checking whether we are cross compiling... " >&6; }
3191 if test "$cross_compiling" != yes; then
3192 { { ac_try="$ac_link"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 if { ac_try='./conftest$ac_cv_exeext'
3204 { { case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; }; then
3214 cross_compiling=no
3215 else
3216 if test "$cross_compiling" = maybe; then
3217 cross_compiling=yes
3218 else
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot run C compiled programs.
3222 If you meant to cross compile, use \`--host'.
3223 See \`config.log' for more details" "$LINENO" 5; }
3224 fi
3225 fi
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3228 $as_echo "$cross_compiling" >&6; }
3229
3230 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3231 ac_clean_files=$ac_clean_files_save
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3233 $as_echo_n "checking for suffix of object files... " >&6; }
3234 if ${ac_cv_objext+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.o conftest.obj
3249 if { { ac_try="$ac_compile"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compile") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 for ac_file in conftest.o conftest.obj conftest.*; do
3261 test -f "$ac_file" || continue;
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265 break;;
3266 esac
3267 done
3268 else
3269 $as_echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot compute suffix of object files: cannot compile
3275 See \`config.log' for more details" "$LINENO" 5; }
3276 fi
3277 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3280 $as_echo "$ac_cv_objext" >&6; }
3281 OBJEXT=$ac_cv_objext
3282 ac_objext=$OBJEXT
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3284 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3285 if ${ac_cv_c_compiler_gnu+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294 #ifndef __GNUC__
3295 choke me
3296 #endif
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_compiler_gnu=yes
3304 else
3305 ac_compiler_gnu=no
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3312 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3313 if test $ac_compiler_gnu = yes; then
3314 GCC=yes
3315 else
3316 GCC=
3317 fi
3318 ac_test_CFLAGS=${CFLAGS+set}
3319 ac_save_CFLAGS=$CFLAGS
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3321 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3322 if ${ac_cv_prog_cc_g+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 ac_save_c_werror_flag=$ac_c_werror_flag
3326 ac_c_werror_flag=yes
3327 ac_cv_prog_cc_g=no
3328 CFLAGS="-g"
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_cv_prog_cc_g=yes
3342 else
3343 CFLAGS=""
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346
3347 int
3348 main ()
3349 {
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356
3357 else
3358 ac_c_werror_flag=$ac_save_c_werror_flag
3359 CFLAGS="-g"
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_cv_prog_cc_g=yes
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3382 $as_echo "$ac_cv_prog_cc_g" >&6; }
3383 if test "$ac_test_CFLAGS" = set; then
3384 CFLAGS=$ac_save_CFLAGS
3385 elif test $ac_cv_prog_cc_g = yes; then
3386 if test "$GCC" = yes; then
3387 CFLAGS="-g -O2"
3388 else
3389 CFLAGS="-g"
3390 fi
3391 else
3392 if test "$GCC" = yes; then
3393 CFLAGS="-O2"
3394 else
3395 CFLAGS=
3396 fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3399 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3400 if ${ac_cv_prog_cc_c89+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_cv_prog_cc_c89=no
3404 ac_save_CC=$CC
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407 #include <stdarg.h>
3408 #include <stdio.h>
3409 struct stat;
3410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3411 struct buf { int x; };
3412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 static char *e (p, i)
3414 char **p;
3415 int i;
3416 {
3417 return p[i];
3418 }
3419 static char *f (char * (*g) (char **, int), char **p, ...)
3420 {
3421 char *s;
3422 va_list v;
3423 va_start (v,p);
3424 s = g (p, va_arg (v,int));
3425 va_end (v);
3426 return s;
3427 }
3428
3429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3430 function prototypes and stuff, but not '\xHH' hex character constants.
3431 These don't provoke an error unfortunately, instead are silently treated
3432 as 'x'. The following induces an error, until -std is added to get
3433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3434 array size at least. It's necessary to write '\x00'==0 to get something
3435 that's true only with -std. */
3436 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437
3438 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439 inside strings and character constants. */
3440 #define FOO(x) 'x'
3441 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442
3443 int test (int i, double x);
3444 struct s1 {int (*f) (int a);};
3445 struct s2 {int (*f) (double a);};
3446 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 int argc;
3448 char **argv;
3449 int
3450 main ()
3451 {
3452 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459 do
3460 CC="$ac_save_CC $ac_arg"
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_cv_prog_cc_c89=$ac_arg
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext
3465 test "x$ac_cv_prog_cc_c89" != "xno" && break
3466 done
3467 rm -f conftest.$ac_ext
3468 CC=$ac_save_CC
3469
3470 fi
3471 # AC_CACHE_VAL
3472 case "x$ac_cv_prog_cc_c89" in
3473 x)
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475 $as_echo "none needed" >&6; } ;;
3476 xno)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3478 $as_echo "unsupported" >&6; } ;;
3479 *)
3480 CC="$CC $ac_cv_prog_cc_c89"
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3482 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483 esac
3484 if test "x$ac_cv_prog_cc_c89" != xno; then :
3485
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 if test "x$GCC" != "xyes" ; then
3496
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3498 $as_echo_n "checking whether compiler is MSVC... " >&6; }
3499 if ${je_cv_msvc+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 #ifndef _MSC_VER
3510 int fail-1;
3511 #endif
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 je_cv_msvc=yes
3519 else
3520 je_cv_msvc=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3525 $as_echo "$je_cv_msvc" >&6; }
3526 fi
3527
3528 je_cv_cray_prgenv_wrapper=""
3529 if test "x${PE_ENV}" != "x" ; then
3530 case "${CC}" in
3531 CC|cc)
3532 je_cv_cray_prgenv_wrapper="yes"
3533 ;;
3534 *)
3535 ;;
3536 esac
3537 fi
3538
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3540 $as_echo_n "checking whether compiler is cray... " >&6; }
3541 if ${je_cv_cray+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 #ifndef _CRAYC
3552 int fail-1;
3553 #endif
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560 je_cv_cray=yes
3561 else
3562 je_cv_cray=no
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3567 $as_echo "$je_cv_cray" >&6; }
3568
3569 if test "x${je_cv_cray}" = "xyes" ; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3571 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3572 if ${je_cv_cray_84+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3583 int fail-1;
3584 #endif
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 je_cv_cray_84=yes
3592 else
3593 je_cv_cray_84=no
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3598 $as_echo "$je_cv_cray_84" >&6; }
3599 fi
3600
3601 if test "x$GCC" = "xyes" ; then
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3604 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3605 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3606 T_APPEND_V=-std=gnu11
3607 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3608 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3609 else
3610 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3611 fi
3612
3613
3614 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3615 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3616 else
3617 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3618 fi
3619
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622
3623
3624 int
3625 main ()
3626 {
3627
3628 return 0;
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 je_cv_cflags_added=-std=gnu11
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3638 else
3639 je_cv_cflags_added=
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3643
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3647 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3648 else
3649 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3650 fi
3651
3652
3653 if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3654 cat >>confdefs.h <<_ACEOF
3655 #define JEMALLOC_HAS_RESTRICT 1
3656 _ACEOF
3657
3658 else
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3661 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3662 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3663 T_APPEND_V=-std=gnu99
3664 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3665 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3666 else
3667 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3668 fi
3669
3670
3671 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3672 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3673 else
3674 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3675 fi
3676
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680
3681 int
3682 main ()
3683 {
3684
3685 return 0;
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 je_cv_cflags_added=-std=gnu99
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694 $as_echo "yes" >&6; }
3695 else
3696 je_cv_cflags_added=
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3700
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3704 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3705 else
3706 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3707 fi
3708
3709
3710 if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define JEMALLOC_HAS_RESTRICT 1
3713 _ACEOF
3714
3715 fi
3716 fi
3717
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3719 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
3720 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3721 T_APPEND_V=-Wall
3722 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3723 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3724 else
3725 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3726 fi
3727
3728
3729 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3730 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3731 else
3732 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3733 fi
3734
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738
3739 int
3740 main ()
3741 {
3742
3743 return 0;
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750 je_cv_cflags_added=-Wall
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752 $as_echo "yes" >&6; }
3753 else
3754 je_cv_cflags_added=
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3758
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3762 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3763 else
3764 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3765 fi
3766
3767
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3770 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3771 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3772 T_APPEND_V=-Wshorten-64-to-32
3773 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3774 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3775 else
3776 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3777 fi
3778
3779
3780 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3781 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3782 else
3783 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3784 fi
3785
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789
3790 int
3791 main ()
3792 {
3793
3794 return 0;
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 je_cv_cflags_added=-Wshorten-64-to-32
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3804 else
3805 je_cv_cflags_added=
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3809
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3813 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3814 else
3815 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3816 fi
3817
3818
3819
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3821 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3822 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3823 T_APPEND_V=-Wsign-compare
3824 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3825 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3826 else
3827 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3828 fi
3829
3830
3831 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3832 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3833 else
3834 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3835 fi
3836
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840
3841 int
3842 main ()
3843 {
3844
3845 return 0;
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 je_cv_cflags_added=-Wsign-compare
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3855 else
3856 je_cv_cflags_added=
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3860
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3864 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3865 else
3866 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3867 fi
3868
3869
3870
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3872 $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3873 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3874 T_APPEND_V=-Wundef
3875 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3876 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3877 else
3878 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3879 fi
3880
3881
3882 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3883 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3884 else
3885 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3886 fi
3887
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891
3892 int
3893 main ()
3894 {
3895
3896 return 0;
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 je_cv_cflags_added=-Wundef
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906 else
3907 je_cv_cflags_added=
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3910 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3911
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3915 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3916 else
3917 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3918 fi
3919
3920
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3923 $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3924 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3925 T_APPEND_V=-Wno-format-zero-length
3926 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3927 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3928 else
3929 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3930 fi
3931
3932
3933 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3934 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3935 else
3936 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3937 fi
3938
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942
3943 int
3944 main ()
3945 {
3946
3947 return 0;
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 je_cv_cflags_added=-Wno-format-zero-length
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 else
3958 je_cv_cflags_added=
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3962
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3966 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3967 else
3968 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3969 fi
3970
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3974 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
3975 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3976 T_APPEND_V=-pipe
3977 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3978 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3979 else
3980 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3981 fi
3982
3983
3984 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3985 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3986 else
3987 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3988 fi
3989
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992
3993
3994 int
3995 main ()
3996 {
3997
3998 return 0;
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 je_cv_cflags_added=-pipe
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4007 $as_echo "yes" >&6; }
4008 else
4009 je_cv_cflags_added=
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4013
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4017 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4018 else
4019 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4020 fi
4021
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4025 $as_echo_n "checking whether compiler supports -g3... " >&6; }
4026 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4027 T_APPEND_V=-g3
4028 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4029 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4030 else
4031 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4032 fi
4033
4034
4035 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4036 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4037 else
4038 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4039 fi
4040
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044
4045 int
4046 main ()
4047 {
4048
4049 return 0;
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 je_cv_cflags_added=-g3
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4059 else
4060 je_cv_cflags_added=
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4064
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4068 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4069 else
4070 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4071 fi
4072
4073
4074 elif test "x$je_cv_msvc" = "xyes" ; then
4075 CC="$CC -nologo"
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4078 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
4079 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4080 T_APPEND_V=-Zi
4081 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4082 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4083 else
4084 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4085 fi
4086
4087
4088 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4089 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4090 else
4091 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4092 fi
4093
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097
4098 int
4099 main ()
4100 {
4101
4102 return 0;
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109 je_cv_cflags_added=-Zi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 $as_echo "yes" >&6; }
4112 else
4113 je_cv_cflags_added=
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4117
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4121 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4122 else
4123 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4124 fi
4125
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4129 $as_echo_n "checking whether compiler supports -MT... " >&6; }
4130 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4131 T_APPEND_V=-MT
4132 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4133 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4134 else
4135 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4136 fi
4137
4138
4139 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4140 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4141 else
4142 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4143 fi
4144
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148
4149 int
4150 main ()
4151 {
4152
4153 return 0;
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 je_cv_cflags_added=-MT
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 $as_echo "yes" >&6; }
4163 else
4164 je_cv_cflags_added=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4168
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4172 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4173 else
4174 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4175 fi
4176
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4180 $as_echo_n "checking whether compiler supports -W3... " >&6; }
4181 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4182 T_APPEND_V=-W3
4183 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4184 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4185 else
4186 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4187 fi
4188
4189
4190 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4191 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4192 else
4193 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4194 fi
4195
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199
4200 int
4201 main ()
4202 {
4203
4204 return 0;
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 je_cv_cflags_added=-W3
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4214 else
4215 je_cv_cflags_added=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4219
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4223 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4224 else
4225 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4226 fi
4227
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4231 $as_echo_n "checking whether compiler supports -FS... " >&6; }
4232 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4233 T_APPEND_V=-FS
4234 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4235 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4236 else
4237 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4238 fi
4239
4240
4241 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4242 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4243 else
4244 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4245 fi
4246
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250
4251 int
4252 main ()
4253 {
4254
4255 return 0;
4256
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 je_cv_cflags_added=-FS
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4264 $as_echo "yes" >&6; }
4265 else
4266 je_cv_cflags_added=
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4270
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4274 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4275 else
4276 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4277 fi
4278
4279
4280 T_APPEND_V=-I${srcdir}/include/msvc_compat
4281 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4282 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4283 else
4284 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4285 fi
4286
4287
4288 fi
4289 if test "x$je_cv_cray" = "xyes" ; then
4290 if test "x$je_cv_cray_84" = "xyes" ; then
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4293 $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4294 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4295 T_APPEND_V=-hipa2
4296 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4297 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4298 else
4299 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4300 fi
4301
4302
4303 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4304 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4305 else
4306 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4307 fi
4308
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311
4312
4313 int
4314 main ()
4315 {
4316
4317 return 0;
4318
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 je_cv_cflags_added=-hipa2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 $as_echo "yes" >&6; }
4327 else
4328 je_cv_cflags_added=
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4332
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4336 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4337 else
4338 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4339 fi
4340
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4344 $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4345 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4346 T_APPEND_V=-hnognu
4347 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4348 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4349 else
4350 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4351 fi
4352
4353
4354 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4355 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4356 else
4357 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4358 fi
4359
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362
4363
4364 int
4365 main ()
4366 {
4367
4368 return 0;
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 je_cv_cflags_added=-hnognu
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4378 else
4379 je_cv_cflags_added=
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4383
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4387 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4388 else
4389 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4390 fi
4391
4392
4393 fi
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4396 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4397 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4398 T_APPEND_V=-hnomessage=128
4399 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4400 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4401 else
4402 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4403 fi
4404
4405
4406 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4407 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4408 else
4409 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4410 fi
4411
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414
4415
4416 int
4417 main ()
4418 {
4419
4420 return 0;
4421
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 je_cv_cflags_added=-hnomessage=128
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429 $as_echo "yes" >&6; }
4430 else
4431 je_cv_cflags_added=
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4434 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4435
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4439 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4440 else
4441 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4442 fi
4443
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4447 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4448 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4449 T_APPEND_V=-hnomessage=1357
4450 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4451 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4452 else
4453 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4454 fi
4455
4456
4457 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4458 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4459 else
4460 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4461 fi
4462
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466
4467 int
4468 main ()
4469 {
4470
4471 return 0;
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 je_cv_cflags_added=-hnomessage=1357
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 $as_echo "yes" >&6; }
4481 else
4482 je_cv_cflags_added=
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4486
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4490 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4491 else
4492 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4493 fi
4494
4495
4496 fi
4497
4498
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4507 # On Suns, sometimes $CPP names a directory.
4508 if test -n "$CPP" && test -d "$CPP"; then
4509 CPP=
4510 fi
4511 if test -z "$CPP"; then
4512 if ${ac_cv_prog_CPP+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 # Double quotes because CPP needs to be expanded
4516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517 do
4518 ac_preproc_ok=false
4519 for ac_c_preproc_warn_flag in '' yes
4520 do
4521 # Use a header file that comes with gcc, so configuring glibc
4522 # with a fresh cross-compiler works.
4523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524 # <limits.h> exists even on freestanding compilers.
4525 # On the NeXT, cc -E runs the code through the compiler's parser,
4526 # not just through cpp. "Syntax error" is here to catch this case.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #ifdef __STDC__
4530 # include <limits.h>
4531 #else
4532 # include <assert.h>
4533 #endif
4534 Syntax error
4535 _ACEOF
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537
4538 else
4539 # Broken: fails on valid input.
4540 continue
4541 fi
4542 rm -f conftest.err conftest.i conftest.$ac_ext
4543
4544 # OK, works on sane cases. Now check whether nonexistent headers
4545 # can be detected and how.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <ac_nonexistent.h>
4549 _ACEOF
4550 if ac_fn_c_try_cpp "$LINENO"; then :
4551 # Broken: success on invalid input.
4552 continue
4553 else
4554 # Passes both tests.
4555 ac_preproc_ok=:
4556 break
4557 fi
4558 rm -f conftest.err conftest.i conftest.$ac_ext
4559
4560 done
4561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562 rm -f conftest.i conftest.err conftest.$ac_ext
4563 if $ac_preproc_ok; then :
4564 break
4565 fi
4566
4567 done
4568 ac_cv_prog_CPP=$CPP
4569
4570 fi
4571 CPP=$ac_cv_prog_CPP
4572 else
4573 ac_cv_prog_CPP=$CPP
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576 $as_echo "$CPP" >&6; }
4577 ac_preproc_ok=false
4578 for ac_c_preproc_warn_flag in '' yes
4579 do
4580 # Use a header file that comes with gcc, so configuring glibc
4581 # with a fresh cross-compiler works.
4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 # <limits.h> exists even on freestanding compilers.
4584 # On the NeXT, cc -E runs the code through the compiler's parser,
4585 # not just through cpp. "Syntax error" is here to catch this case.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #ifdef __STDC__
4589 # include <limits.h>
4590 #else
4591 # include <assert.h>
4592 #endif
4593 Syntax error
4594 _ACEOF
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596
4597 else
4598 # Broken: fails on valid input.
4599 continue
4600 fi
4601 rm -f conftest.err conftest.i conftest.$ac_ext
4602
4603 # OK, works on sane cases. Now check whether nonexistent headers
4604 # can be detected and how.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <ac_nonexistent.h>
4608 _ACEOF
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4610 # Broken: success on invalid input.
4611 continue
4612 else
4613 # Passes both tests.
4614 ac_preproc_ok=:
4615 break
4616 fi
4617 rm -f conftest.err conftest.i conftest.$ac_ext
4618
4619 done
4620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621 rm -f conftest.i conftest.err conftest.$ac_ext
4622 if $ac_preproc_ok; then :
4623
4624 else
4625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4628 See \`config.log' for more details" "$LINENO" 5; }
4629 fi
4630
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637
4638 # Check whether --enable-cxx was given.
4639 if test "${enable_cxx+set}" = set; then :
4640 enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4641 enable_cxx="0"
4642 else
4643 enable_cxx="1"
4644 fi
4645
4646 else
4647 enable_cxx="1"
4648
4649 fi
4650
4651 if test "x$enable_cxx" = "x1" ; then
4652 # ===========================================================================
4653 # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4654 # ===========================================================================
4655 #
4656 # SYNOPSIS
4657 #
4658 # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4659 #
4660 # DESCRIPTION
4661 #
4662 # Check for baseline language coverage in the compiler for the specified
4663 # version of the C++ standard. If necessary, add switches to CXX and
4664 # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
4665 # or '14' (for the C++14 standard).
4666 #
4667 # The second argument, if specified, indicates whether you insist on an
4668 # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4669 # -std=c++11). If neither is specified, you get whatever works, with
4670 # preference for an extended mode.
4671 #
4672 # The third argument, if specified 'mandatory' or if left unspecified,
4673 # indicates that baseline support for the specified C++ standard is
4674 # required and that the macro should error out if no mode with that
4675 # support is found. If specified 'optional', then configuration proceeds
4676 # regardless, after defining HAVE_CXX${VERSION} if and only if a
4677 # supporting mode is found.
4678 #
4679 # LICENSE
4680 #
4681 # Copyright (c) 2008 Benjamin Kosnik <bkoz (at] redhat.com>
4682 # Copyright (c) 2012 Zack Weinberg <zackw (at] panix.com>
4683 # Copyright (c) 2013 Roy Stogner <roystgnr (at] ices.utexas.edu>
4684 # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov (at] google.com>
4685 # Copyright (c) 2015 Paul Norman <penorman (at] mac.com>
4686 # Copyright (c) 2015 Moritz Klammler <moritz (at] klammler.eu>
4687 #
4688 # Copying and distribution of this file, with or without modification, are
4689 # permitted in any medium without royalty provided the copyright notice
4690 # and this notice are preserved. This file is offered as-is, without any
4691 # warranty.
4692
4693 #serial 4
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714 ac_ext=cpp
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 if test -z "$CXX"; then
4720 if test -n "$CCC"; then
4721 CXX=$CCC
4722 else
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4725 do
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CXX+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CXX"; then
4734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 CXX=$ac_cv_prog_CXX
4754 if test -n "$CXX"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4756 $as_echo "$CXX" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763 test -n "$CXX" && break
4764 done
4765 fi
4766 if test -z "$CXX"; then
4767 ac_ct_CXX=$CXX
4768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4769 do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_CXX"; then
4778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_CXX="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4798 if test -n "$ac_ct_CXX"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4800 $as_echo "$ac_ct_CXX" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 test -n "$ac_ct_CXX" && break
4808 done
4809
4810 if test "x$ac_ct_CXX" = x; then
4811 CXX="g++"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 CXX=$ac_ct_CXX
4820 fi
4821 fi
4822
4823 fi
4824 fi
4825 # Provide some information about the compiler.
4826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4827 set X $ac_compile
4828 ac_compiler=$2
4829 for ac_option in --version -v -V -qversion; do
4830 { { ac_try="$ac_compiler $ac_option >&5"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838 ac_status=$?
4839 if test -s conftest.err; then
4840 sed '10a\
4841 ... rest of stderr output deleted ...
4842 10q' conftest.err >conftest.er1
4843 cat conftest.er1 >&5
4844 fi
4845 rm -f conftest.er1 conftest.err
4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; }
4848 done
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4851 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4852 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857
4858 int
4859 main ()
4860 {
4861 #ifndef __GNUC__
4862 choke me
4863 #endif
4864
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_cxx_try_compile "$LINENO"; then :
4870 ac_compiler_gnu=yes
4871 else
4872 ac_compiler_gnu=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4879 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4880 if test $ac_compiler_gnu = yes; then
4881 GXX=yes
4882 else
4883 GXX=
4884 fi
4885 ac_test_CXXFLAGS=${CXXFLAGS+set}
4886 ac_save_CXXFLAGS=$CXXFLAGS
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4888 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4889 if ${ac_cv_prog_cxx_g+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4893 ac_cxx_werror_flag=yes
4894 ac_cv_prog_cxx_g=no
4895 CXXFLAGS="-g"
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898
4899 int
4900 main ()
4901 {
4902
4903 ;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_cxx_try_compile "$LINENO"; then :
4908 ac_cv_prog_cxx_g=yes
4909 else
4910 CXXFLAGS=""
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913
4914 int
4915 main ()
4916 {
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_cxx_try_compile "$LINENO"; then :
4923
4924 else
4925 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4926 CXXFLAGS="-g"
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_cxx_try_compile "$LINENO"; then :
4939 ac_cv_prog_cxx_g=yes
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4949 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4950 if test "$ac_test_CXXFLAGS" = set; then
4951 CXXFLAGS=$ac_save_CXXFLAGS
4952 elif test $ac_cv_prog_cxx_g = yes; then
4953 if test "$GXX" = yes; then
4954 CXXFLAGS="-g -O2"
4955 else
4956 CXXFLAGS="-g"
4957 fi
4958 else
4959 if test "$GXX" = yes; then
4960 CXXFLAGS="-O2"
4961 else
4962 CXXFLAGS=
4963 fi
4964 fi
4965 ac_ext=cpp
4966 ac_cpp='$CXXCPP $CPPFLAGS'
4967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4970
4971
4972 ax_cxx_compile_cxx14_required=false
4973 ac_ext=cpp
4974 ac_cpp='$CXXCPP $CPPFLAGS'
4975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4978 ac_success=no
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
4980 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
4981 if ${ax_cv_cxx_compile_cxx14+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986
4987
4988 // If the compiler admits that it is not ready for C++11, why torture it?
4989 // Hopefully, this will speed up the test.
4990
4991 #ifndef __cplusplus
4992
4993 #error "This is not a C++ compiler"
4994
4995 #elif __cplusplus < 201103L
4996
4997 #error "This is not a C++11 compiler"
4998
4999 #else
5000
5001 namespace cxx11
5002 {
5003
5004 namespace test_static_assert
5005 {
5006
5007 template <typename T>
5008 struct check
5009 {
5010 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5011 };
5012
5013 }
5014
5015 namespace test_final_override
5016 {
5017
5018 struct Base
5019 {
5020 virtual void f() {}
5021 };
5022
5023 struct Derived : public Base
5024 {
5025 virtual void f() override {}
5026 };
5027
5028 }
5029
5030 namespace test_double_right_angle_brackets
5031 {
5032
5033 template < typename T >
5034 struct check {};
5035
5036 typedef check<void> single_type;
5037 typedef check<check<void>> double_type;
5038 typedef check<check<check<void>>> triple_type;
5039 typedef check<check<check<check<void>>>> quadruple_type;
5040
5041 }
5042
5043 namespace test_decltype
5044 {
5045
5046 int
5047 f()
5048 {
5049 int a = 1;
5050 decltype(a) b = 2;
5051 return a + b;
5052 }
5053
5054 }
5055
5056 namespace test_type_deduction
5057 {
5058
5059 template < typename T1, typename T2 >
5060 struct is_same
5061 {
5062 static const bool value = false;
5063 };
5064
5065 template < typename T >
5066 struct is_same<T, T>
5067 {
5068 static const bool value = true;
5069 };
5070
5071 template < typename T1, typename T2 >
5072 auto
5073 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5074 {
5075 return a1 + a2;
5076 }
5077
5078 int
5079 test(const int c, volatile int v)
5080 {
5081 static_assert(is_same<int, decltype(0)>::value == true, "");
5082 static_assert(is_same<int, decltype(c)>::value == false, "");
5083 static_assert(is_same<int, decltype(v)>::value == false, "");
5084 auto ac = c;
5085 auto av = v;
5086 auto sumi = ac + av + 'x';
5087 auto sumf = ac + av + 1.0;
5088 static_assert(is_same<int, decltype(ac)>::value == true, "");
5089 static_assert(is_same<int, decltype(av)>::value == true, "");
5090 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5091 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5092 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5093 return (sumf > 0.0) ? sumi : add(c, v);
5094 }
5095
5096 }
5097
5098 namespace test_noexcept
5099 {
5100
5101 int f() { return 0; }
5102 int g() noexcept { return 0; }
5103
5104 static_assert(noexcept(f()) == false, "");
5105 static_assert(noexcept(g()) == true, "");
5106
5107 }
5108
5109 namespace test_constexpr
5110 {
5111
5112 template < typename CharT >
5113 unsigned long constexpr
5114 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5115 {
5116 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5117 }
5118
5119 template < typename CharT >
5120 unsigned long constexpr
5121 strlen_c(const CharT *const s) noexcept
5122 {
5123 return strlen_c_r(s, 0UL);
5124 }
5125
5126 static_assert(strlen_c("") == 0UL, "");
5127 static_assert(strlen_c("1") == 1UL, "");
5128 static_assert(strlen_c("example") == 7UL, "");
5129 static_assert(strlen_c("another\0example") == 7UL, "");
5130
5131 }
5132
5133 namespace test_rvalue_references
5134 {
5135
5136 template < int N >
5137 struct answer
5138 {
5139 static constexpr int value = N;
5140 };
5141
5142 answer<1> f(int&) { return answer<1>(); }
5143 answer<2> f(const int&) { return answer<2>(); }
5144 answer<3> f(int&&) { return answer<3>(); }
5145
5146 void
5147 test()
5148 {
5149 int i = 0;
5150 const int c = 0;
5151 static_assert(decltype(f(i))::value == 1, "");
5152 static_assert(decltype(f(c))::value == 2, "");
5153 static_assert(decltype(f(0))::value == 3, "");
5154 }
5155
5156 }
5157
5158 namespace test_uniform_initialization
5159 {
5160
5161 struct test
5162 {
5163 static const int zero {};
5164 static const int one {1};
5165 };
5166
5167 static_assert(test::zero == 0, "");
5168 static_assert(test::one == 1, "");
5169
5170 }
5171
5172 namespace test_lambdas
5173 {
5174
5175 void
5176 test1()
5177 {
5178 auto lambda1 = [](){};
5179 auto lambda2 = lambda1;
5180 lambda1();
5181 lambda2();
5182 }
5183
5184 int
5185 test2()
5186 {
5187 auto a = [](int i, int j){ return i + j; }(1, 2);
5188 auto b = []() -> int { return '0'; }();
5189 auto c = [=](){ return a + b; }();
5190 auto d = [&](){ return c; }();
5191 auto e = [a, &b](int x) mutable {
5192 const auto identity = [](int y){ return y; };
5193 for (auto i = 0; i < a; ++i)
5194 a += b--;
5195 return x + identity(a + b);
5196 }(0);
5197 return a + b + c + d + e;
5198 }
5199
5200 int
5201 test3()
5202 {
5203 const auto nullary = [](){ return 0; };
5204 const auto unary = [](int x){ return x; };
5205 using nullary_t = decltype(nullary);
5206 using unary_t = decltype(unary);
5207 const auto higher1st = [](nullary_t f){ return f(); };
5208 const auto higher2nd = [unary](nullary_t f1){
5209 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5210 };
5211 return higher1st(nullary) + higher2nd(nullary)(unary);
5212 }
5213
5214 }
5215
5216 namespace test_variadic_templates
5217 {
5218
5219 template <int...>
5220 struct sum;
5221
5222 template <int N0, int... N1toN>
5223 struct sum<N0, N1toN...>
5224 {
5225 static constexpr auto value = N0 + sum<N1toN...>::value;
5226 };
5227
5228 template <>
5229 struct sum<>
5230 {
5231 static constexpr auto value = 0;
5232 };
5233
5234 static_assert(sum<>::value == 0, "");
5235 static_assert(sum<1>::value == 1, "");
5236 static_assert(sum<23>::value == 23, "");
5237 static_assert(sum<1, 2>::value == 3, "");
5238 static_assert(sum<5, 5, 11>::value == 21, "");
5239 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5240
5241 }
5242
5243 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5244 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5245 // because of this.
5246 namespace test_template_alias_sfinae
5247 {
5248
5249 struct foo {};
5250
5251 template<typename T>
5252 using member = typename T::member_type;
5253
5254 template<typename T>
5255 void func(...) {}
5256
5257 template<typename T>
5258 void func(member<T>*) {}
5259
5260 void test();
5261
5262 void test() { func<foo>(0); }
5263
5264 }
5265
5266 } // namespace cxx11
5267
5268 #endif // __cplusplus >= 201103L
5269
5270
5271
5272
5273 // If the compiler admits that it is not ready for C++14, why torture it?
5274 // Hopefully, this will speed up the test.
5275
5276 #ifndef __cplusplus
5277
5278 #error "This is not a C++ compiler"
5279
5280 #elif __cplusplus < 201402L
5281
5282 #error "This is not a C++14 compiler"
5283
5284 #else
5285
5286 namespace cxx14
5287 {
5288
5289 namespace test_polymorphic_lambdas
5290 {
5291
5292 int
5293 test()
5294 {
5295 const auto lambda = [](auto&&... args){
5296 const auto istiny = [](auto x){
5297 return (sizeof(x) == 1UL) ? 1 : 0;
5298 };
5299 const int aretiny[] = { istiny(args)... };
5300 return aretiny[0];
5301 };
5302 return lambda(1, 1L, 1.0f, '1');
5303 }
5304
5305 }
5306
5307 namespace test_binary_literals
5308 {
5309
5310 constexpr auto ivii = 0b0000000000101010;
5311 static_assert(ivii == 42, "wrong value");
5312
5313 }
5314
5315 namespace test_generalized_constexpr
5316 {
5317
5318 template < typename CharT >
5319 constexpr unsigned long
5320 strlen_c(const CharT *const s) noexcept
5321 {
5322 auto length = 0UL;
5323 for (auto p = s; *p; ++p)
5324 ++length;
5325 return length;
5326 }
5327
5328 static_assert(strlen_c("") == 0UL, "");
5329 static_assert(strlen_c("x") == 1UL, "");
5330 static_assert(strlen_c("test") == 4UL, "");
5331 static_assert(strlen_c("another\0test") == 7UL, "");
5332
5333 }
5334
5335 namespace test_lambda_init_capture
5336 {
5337
5338 int
5339 test()
5340 {
5341 auto x = 0;
5342 const auto lambda1 = [a = x](int b){ return a + b; };
5343 const auto lambda2 = [a = lambda1(x)](){ return a; };
5344 return lambda2();
5345 }
5346
5347 }
5348
5349 namespace test_digit_seperators
5350 {
5351
5352 constexpr auto ten_million = 100'000'000;
5353 static_assert(ten_million == 100000000, "");
5354
5355 }
5356
5357 namespace test_return_type_deduction
5358 {
5359
5360 auto f(int& x) { return x; }
5361 decltype(auto) g(int& x) { return x; }
5362
5363 template < typename T1, typename T2 >
5364 struct is_same
5365 {
5366 static constexpr auto value = false;
5367 };
5368
5369 template < typename T >
5370 struct is_same<T, T>
5371 {
5372 static constexpr auto value = true;
5373 };
5374
5375 int
5376 test()
5377 {
5378 auto x = 0;
5379 static_assert(is_same<int, decltype(f(x))>::value, "");
5380 static_assert(is_same<int&, decltype(g(x))>::value, "");
5381 return x;
5382 }
5383
5384 }
5385
5386 } // namespace cxx14
5387
5388 #endif // __cplusplus >= 201402L
5389
5390
5391
5392 _ACEOF
5393 if ac_fn_cxx_try_compile "$LINENO"; then :
5394 ax_cv_cxx_compile_cxx14=yes
5395 else
5396 ax_cv_cxx_compile_cxx14=no
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5401 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5402 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5403 ac_success=yes
5404 fi
5405
5406
5407
5408 if test x$ac_success = xno; then
5409 for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5410 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5412 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5413 if eval \${$cachevar+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 ac_save_CXX="$CXX"
5417 CXX="$CXX $switch"
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420
5421
5422 // If the compiler admits that it is not ready for C++11, why torture it?
5423 // Hopefully, this will speed up the test.
5424
5425 #ifndef __cplusplus
5426
5427 #error "This is not a C++ compiler"
5428
5429 #elif __cplusplus < 201103L
5430
5431 #error "This is not a C++11 compiler"
5432
5433 #else
5434
5435 namespace cxx11
5436 {
5437
5438 namespace test_static_assert
5439 {
5440
5441 template <typename T>
5442 struct check
5443 {
5444 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5445 };
5446
5447 }
5448
5449 namespace test_final_override
5450 {
5451
5452 struct Base
5453 {
5454 virtual void f() {}
5455 };
5456
5457 struct Derived : public Base
5458 {
5459 virtual void f() override {}
5460 };
5461
5462 }
5463
5464 namespace test_double_right_angle_brackets
5465 {
5466
5467 template < typename T >
5468 struct check {};
5469
5470 typedef check<void> single_type;
5471 typedef check<check<void>> double_type;
5472 typedef check<check<check<void>>> triple_type;
5473 typedef check<check<check<check<void>>>> quadruple_type;
5474
5475 }
5476
5477 namespace test_decltype
5478 {
5479
5480 int
5481 f()
5482 {
5483 int a = 1;
5484 decltype(a) b = 2;
5485 return a + b;
5486 }
5487
5488 }
5489
5490 namespace test_type_deduction
5491 {
5492
5493 template < typename T1, typename T2 >
5494 struct is_same
5495 {
5496 static const bool value = false;
5497 };
5498
5499 template < typename T >
5500 struct is_same<T, T>
5501 {
5502 static const bool value = true;
5503 };
5504
5505 template < typename T1, typename T2 >
5506 auto
5507 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5508 {
5509 return a1 + a2;
5510 }
5511
5512 int
5513 test(const int c, volatile int v)
5514 {
5515 static_assert(is_same<int, decltype(0)>::value == true, "");
5516 static_assert(is_same<int, decltype(c)>::value == false, "");
5517 static_assert(is_same<int, decltype(v)>::value == false, "");
5518 auto ac = c;
5519 auto av = v;
5520 auto sumi = ac + av + 'x';
5521 auto sumf = ac + av + 1.0;
5522 static_assert(is_same<int, decltype(ac)>::value == true, "");
5523 static_assert(is_same<int, decltype(av)>::value == true, "");
5524 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5525 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5526 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5527 return (sumf > 0.0) ? sumi : add(c, v);
5528 }
5529
5530 }
5531
5532 namespace test_noexcept
5533 {
5534
5535 int f() { return 0; }
5536 int g() noexcept { return 0; }
5537
5538 static_assert(noexcept(f()) == false, "");
5539 static_assert(noexcept(g()) == true, "");
5540
5541 }
5542
5543 namespace test_constexpr
5544 {
5545
5546 template < typename CharT >
5547 unsigned long constexpr
5548 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5549 {
5550 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5551 }
5552
5553 template < typename CharT >
5554 unsigned long constexpr
5555 strlen_c(const CharT *const s) noexcept
5556 {
5557 return strlen_c_r(s, 0UL);
5558 }
5559
5560 static_assert(strlen_c("") == 0UL, "");
5561 static_assert(strlen_c("1") == 1UL, "");
5562 static_assert(strlen_c("example") == 7UL, "");
5563 static_assert(strlen_c("another\0example") == 7UL, "");
5564
5565 }
5566
5567 namespace test_rvalue_references
5568 {
5569
5570 template < int N >
5571 struct answer
5572 {
5573 static constexpr int value = N;
5574 };
5575
5576 answer<1> f(int&) { return answer<1>(); }
5577 answer<2> f(const int&) { return answer<2>(); }
5578 answer<3> f(int&&) { return answer<3>(); }
5579
5580 void
5581 test()
5582 {
5583 int i = 0;
5584 const int c = 0;
5585 static_assert(decltype(f(i))::value == 1, "");
5586 static_assert(decltype(f(c))::value == 2, "");
5587 static_assert(decltype(f(0))::value == 3, "");
5588 }
5589
5590 }
5591
5592 namespace test_uniform_initialization
5593 {
5594
5595 struct test
5596 {
5597 static const int zero {};
5598 static const int one {1};
5599 };
5600
5601 static_assert(test::zero == 0, "");
5602 static_assert(test::one == 1, "");
5603
5604 }
5605
5606 namespace test_lambdas
5607 {
5608
5609 void
5610 test1()
5611 {
5612 auto lambda1 = [](){};
5613 auto lambda2 = lambda1;
5614 lambda1();
5615 lambda2();
5616 }
5617
5618 int
5619 test2()
5620 {
5621 auto a = [](int i, int j){ return i + j; }(1, 2);
5622 auto b = []() -> int { return '0'; }();
5623 auto c = [=](){ return a + b; }();
5624 auto d = [&](){ return c; }();
5625 auto e = [a, &b](int x) mutable {
5626 const auto identity = [](int y){ return y; };
5627 for (auto i = 0; i < a; ++i)
5628 a += b--;
5629 return x + identity(a + b);
5630 }(0);
5631 return a + b + c + d + e;
5632 }
5633
5634 int
5635 test3()
5636 {
5637 const auto nullary = [](){ return 0; };
5638 const auto unary = [](int x){ return x; };
5639 using nullary_t = decltype(nullary);
5640 using unary_t = decltype(unary);
5641 const auto higher1st = [](nullary_t f){ return f(); };
5642 const auto higher2nd = [unary](nullary_t f1){
5643 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5644 };
5645 return higher1st(nullary) + higher2nd(nullary)(unary);
5646 }
5647
5648 }
5649
5650 namespace test_variadic_templates
5651 {
5652
5653 template <int...>
5654 struct sum;
5655
5656 template <int N0, int... N1toN>
5657 struct sum<N0, N1toN...>
5658 {
5659 static constexpr auto value = N0 + sum<N1toN...>::value;
5660 };
5661
5662 template <>
5663 struct sum<>
5664 {
5665 static constexpr auto value = 0;
5666 };
5667
5668 static_assert(sum<>::value == 0, "");
5669 static_assert(sum<1>::value == 1, "");
5670 static_assert(sum<23>::value == 23, "");
5671 static_assert(sum<1, 2>::value == 3, "");
5672 static_assert(sum<5, 5, 11>::value == 21, "");
5673 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5674
5675 }
5676
5677 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5678 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5679 // because of this.
5680 namespace test_template_alias_sfinae
5681 {
5682
5683 struct foo {};
5684
5685 template<typename T>
5686 using member = typename T::member_type;
5687
5688 template<typename T>
5689 void func(...) {}
5690
5691 template<typename T>
5692 void func(member<T>*) {}
5693
5694 void test();
5695
5696 void test() { func<foo>(0); }
5697
5698 }
5699
5700 } // namespace cxx11
5701
5702 #endif // __cplusplus >= 201103L
5703
5704
5705
5706
5707 // If the compiler admits that it is not ready for C++14, why torture it?
5708 // Hopefully, this will speed up the test.
5709
5710 #ifndef __cplusplus
5711
5712 #error "This is not a C++ compiler"
5713
5714 #elif __cplusplus < 201402L
5715
5716 #error "This is not a C++14 compiler"
5717
5718 #else
5719
5720 namespace cxx14
5721 {
5722
5723 namespace test_polymorphic_lambdas
5724 {
5725
5726 int
5727 test()
5728 {
5729 const auto lambda = [](auto&&... args){
5730 const auto istiny = [](auto x){
5731 return (sizeof(x) == 1UL) ? 1 : 0;
5732 };
5733 const int aretiny[] = { istiny(args)... };
5734 return aretiny[0];
5735 };
5736 return lambda(1, 1L, 1.0f, '1');
5737 }
5738
5739 }
5740
5741 namespace test_binary_literals
5742 {
5743
5744 constexpr auto ivii = 0b0000000000101010;
5745 static_assert(ivii == 42, "wrong value");
5746
5747 }
5748
5749 namespace test_generalized_constexpr
5750 {
5751
5752 template < typename CharT >
5753 constexpr unsigned long
5754 strlen_c(const CharT *const s) noexcept
5755 {
5756 auto length = 0UL;
5757 for (auto p = s; *p; ++p)
5758 ++length;
5759 return length;
5760 }
5761
5762 static_assert(strlen_c("") == 0UL, "");
5763 static_assert(strlen_c("x") == 1UL, "");
5764 static_assert(strlen_c("test") == 4UL, "");
5765 static_assert(strlen_c("another\0test") == 7UL, "");
5766
5767 }
5768
5769 namespace test_lambda_init_capture
5770 {
5771
5772 int
5773 test()
5774 {
5775 auto x = 0;
5776 const auto lambda1 = [a = x](int b){ return a + b; };
5777 const auto lambda2 = [a = lambda1(x)](){ return a; };
5778 return lambda2();
5779 }
5780
5781 }
5782
5783 namespace test_digit_seperators
5784 {
5785
5786 constexpr auto ten_million = 100'000'000;
5787 static_assert(ten_million == 100000000, "");
5788
5789 }
5790
5791 namespace test_return_type_deduction
5792 {
5793
5794 auto f(int& x) { return x; }
5795 decltype(auto) g(int& x) { return x; }
5796
5797 template < typename T1, typename T2 >
5798 struct is_same
5799 {
5800 static constexpr auto value = false;
5801 };
5802
5803 template < typename T >
5804 struct is_same<T, T>
5805 {
5806 static constexpr auto value = true;
5807 };
5808
5809 int
5810 test()
5811 {
5812 auto x = 0;
5813 static_assert(is_same<int, decltype(f(x))>::value, "");
5814 static_assert(is_same<int&, decltype(g(x))>::value, "");
5815 return x;
5816 }
5817
5818 }
5819
5820 } // namespace cxx14
5821
5822 #endif // __cplusplus >= 201402L
5823
5824
5825
5826 _ACEOF
5827 if ac_fn_cxx_try_compile "$LINENO"; then :
5828 eval $cachevar=yes
5829 else
5830 eval $cachevar=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 CXX="$ac_save_CXX"
5834 fi
5835 eval ac_res=\$$cachevar
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 if eval test x\$$cachevar = xyes; then
5839 CXX="$CXX $switch"
5840 if test -n "$CXXCPP" ; then
5841 CXXCPP="$CXXCPP $switch"
5842 fi
5843 ac_success=yes
5844 break
5845 fi
5846 done
5847 fi
5848 ac_ext=c
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854 if test x$ax_cxx_compile_cxx14_required = xtrue; then
5855 if test x$ac_success = xno; then
5856 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5857 fi
5858 fi
5859 if test x$ac_success = xno; then
5860 HAVE_CXX14=0
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5862 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5863 else
5864 HAVE_CXX14=1
5865
5866 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
5867
5868 fi
5869
5870
5871 if test "x${HAVE_CXX14}" = "x1" ; then
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5874 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
5875 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5876 T_APPEND_V=-Wall
5877 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5878 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5879 else
5880 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5881 fi
5882
5883
5884 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5885 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5886 else
5887 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5888 fi
5889
5890 ac_ext=cpp
5891 ac_cpp='$CXXCPP $CPPFLAGS'
5892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5895
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898
5899
5900 int
5901 main ()
5902 {
5903
5904 return 0;
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_cxx_try_compile "$LINENO"; then :
5911 je_cv_cxxflags_added=-Wall
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 $as_echo "yes" >&6; }
5914 else
5915 je_cv_cxxflags_added=
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5919
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5929 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5930 else
5931 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5932 fi
5933
5934
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
5937 $as_echo_n "checking whether compiler supports -g3... " >&6; }
5938 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5939 T_APPEND_V=-g3
5940 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5941 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5942 else
5943 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5944 fi
5945
5946
5947 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5948 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5949 else
5950 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5951 fi
5952
5953 ac_ext=cpp
5954 ac_cpp='$CXXCPP $CPPFLAGS'
5955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5958
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961
5962
5963 int
5964 main ()
5965 {
5966
5967 return 0;
5968
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_cxx_try_compile "$LINENO"; then :
5974 je_cv_cxxflags_added=-g3
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5977 else
5978 je_cv_cxxflags_added=
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5982
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 ac_ext=c
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
5991 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5992 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5993 else
5994 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5995 fi
5996
5997
5998
5999 SAVED_LIBS="${LIBS}"
6000 T_APPEND_V=-lstdc++
6001 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6002 LIBS="${LIBS}${T_APPEND_V}"
6003 else
6004 LIBS="${LIBS} ${T_APPEND_V}"
6005 fi
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6010 $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6011 if ${je_cv_libstdcxx+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016
6017 #include <stdlib.h>
6018
6019 int
6020 main ()
6021 {
6022
6023 int *arr = (int *)malloc(sizeof(int) * 42);
6024 if (arr == NULL)
6025 return 1;
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_link "$LINENO"; then :
6032 je_cv_libstdcxx=yes
6033 else
6034 je_cv_libstdcxx=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6040 $as_echo "$je_cv_libstdcxx" >&6; }
6041
6042 if test "x${je_cv_libstdcxx}" = "xno" ; then
6043 LIBS="${SAVED_LIBS}"
6044 fi
6045 else
6046 enable_cxx="0"
6047 fi
6048 fi
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6056 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6057 if ${ac_cv_path_GREP+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -z "$GREP"; then
6061 ac_path_GREP_found=false
6062 # Loop through the user's path and test for each of PROGNAME-LIST
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_prog in grep ggrep; do
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6071 as_fn_executable_p "$ac_path_GREP" || continue
6072 # Check for GNU ac_path_GREP and select it if it is found.
6073 # Check for GNU $ac_path_GREP
6074 case `"$ac_path_GREP" --version 2>&1` in
6075 *GNU*)
6076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6077 *)
6078 ac_count=0
6079 $as_echo_n 0123456789 >"conftest.in"
6080 while :
6081 do
6082 cat "conftest.in" "conftest.in" >"conftest.tmp"
6083 mv "conftest.tmp" "conftest.in"
6084 cp "conftest.in" "conftest.nl"
6085 $as_echo 'GREP' >> "conftest.nl"
6086 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6088 as_fn_arith $ac_count + 1 && ac_count=$as_val
6089 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6090 # Best one so far, save it but keep looking for a better one
6091 ac_cv_path_GREP="$ac_path_GREP"
6092 ac_path_GREP_max=$ac_count
6093 fi
6094 # 10*(2^10) chars as input seems more than enough
6095 test $ac_count -gt 10 && break
6096 done
6097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6098 esac
6099
6100 $ac_path_GREP_found && break 3
6101 done
6102 done
6103 done
6104 IFS=$as_save_IFS
6105 if test -z "$ac_cv_path_GREP"; then
6106 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6107 fi
6108 else
6109 ac_cv_path_GREP=$GREP
6110 fi
6111
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6114 $as_echo "$ac_cv_path_GREP" >&6; }
6115 GREP="$ac_cv_path_GREP"
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6119 $as_echo_n "checking for egrep... " >&6; }
6120 if ${ac_cv_path_EGREP+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124 then ac_cv_path_EGREP="$GREP -E"
6125 else
6126 if test -z "$EGREP"; then
6127 ac_path_EGREP_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in egrep; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137 as_fn_executable_p "$ac_path_EGREP" || continue
6138 # Check for GNU ac_path_EGREP and select it if it is found.
6139 # Check for GNU $ac_path_EGREP
6140 case `"$ac_path_EGREP" --version 2>&1` in
6141 *GNU*)
6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6143 *)
6144 ac_count=0
6145 $as_echo_n 0123456789 >"conftest.in"
6146 while :
6147 do
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 $as_echo 'EGREP' >> "conftest.nl"
6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 as_fn_arith $ac_count + 1 && ac_count=$as_val
6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_EGREP="$ac_path_EGREP"
6158 ac_path_EGREP_max=$ac_count
6159 fi
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6162 done
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6165
6166 $ac_path_EGREP_found && break 3
6167 done
6168 done
6169 done
6170 IFS=$as_save_IFS
6171 if test -z "$ac_cv_path_EGREP"; then
6172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173 fi
6174 else
6175 ac_cv_path_EGREP=$EGREP
6176 fi
6177
6178 fi
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6181 $as_echo "$ac_cv_path_EGREP" >&6; }
6182 EGREP="$ac_cv_path_EGREP"
6183
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6186 $as_echo_n "checking for ANSI C header files... " >&6; }
6187 if ${ac_cv_header_stdc+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <stdlib.h>
6193 #include <stdarg.h>
6194 #include <string.h>
6195 #include <float.h>
6196
6197 int
6198 main ()
6199 {
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206 ac_cv_header_stdc=yes
6207 else
6208 ac_cv_header_stdc=no
6209 fi
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211
6212 if test $ac_cv_header_stdc = yes; then
6213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <string.h>
6217
6218 _ACEOF
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 $EGREP "memchr" >/dev/null 2>&1; then :
6221
6222 else
6223 ac_cv_header_stdc=no
6224 fi
6225 rm -f conftest*
6226
6227 fi
6228
6229 if test $ac_cv_header_stdc = yes; then
6230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #include <stdlib.h>
6234
6235 _ACEOF
6236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237 $EGREP "free" >/dev/null 2>&1; then :
6238
6239 else
6240 ac_cv_header_stdc=no
6241 fi
6242 rm -f conftest*
6243
6244 fi
6245
6246 if test $ac_cv_header_stdc = yes; then
6247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6248 if test "$cross_compiling" = yes; then :
6249 :
6250 else
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <ctype.h>
6254 #include <stdlib.h>
6255 #if ((' ' & 0x0FF) == 0x020)
6256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6258 #else
6259 # define ISLOWER(c) \
6260 (('a' <= (c) && (c) <= 'i') \
6261 || ('j' <= (c) && (c) <= 'r') \
6262 || ('s' <= (c) && (c) <= 'z'))
6263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6264 #endif
6265
6266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6267 int
6268 main ()
6269 {
6270 int i;
6271 for (i = 0; i < 256; i++)
6272 if (XOR (islower (i), ISLOWER (i))
6273 || toupper (i) != TOUPPER (i))
6274 return 2;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_run "$LINENO"; then :
6279
6280 else
6281 ac_cv_header_stdc=no
6282 fi
6283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6284 conftest.$ac_objext conftest.beam conftest.$ac_ext
6285 fi
6286
6287 fi
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6290 $as_echo "$ac_cv_header_stdc" >&6; }
6291 if test $ac_cv_header_stdc = yes; then
6292
6293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6294
6295 fi
6296
6297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6299 inttypes.h stdint.h unistd.h
6300 do :
6301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6303 "
6304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307 _ACEOF
6308
6309 fi
6310
6311 done
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6315 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6316 if ${ac_cv_c_bigendian+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 ac_cv_c_bigendian=unknown
6320 # See if we're dealing with a universal compiler.
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6323 #ifndef __APPLE_CC__
6324 not a universal capable compiler
6325 #endif
6326 typedef int dummy;
6327
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330
6331 # Check for potential -arch flags. It is not universal unless
6332 # there are at least two -arch flags with different values.
6333 ac_arch=
6334 ac_prev=
6335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6336 if test -n "$ac_prev"; then
6337 case $ac_word in
6338 i?86 | x86_64 | ppc | ppc64)
6339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6340 ac_arch=$ac_word
6341 else
6342 ac_cv_c_bigendian=universal
6343 break
6344 fi
6345 ;;
6346 esac
6347 ac_prev=
6348 elif test "x$ac_word" = "x-arch"; then
6349 ac_prev=arch
6350 fi
6351 done
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 if test $ac_cv_c_bigendian = unknown; then
6355 # See if sys/param.h defines the BYTE_ORDER macro.
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <sys/types.h>
6359 #include <sys/param.h>
6360
6361 int
6362 main ()
6363 {
6364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6366 && LITTLE_ENDIAN)
6367 bogus endian macros
6368 #endif
6369
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 # It does; now see whether it defined to BIG_ENDIAN or not.
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6379 #include <sys/param.h>
6380
6381 int
6382 main ()
6383 {
6384 #if BYTE_ORDER != BIG_ENDIAN
6385 not big endian
6386 #endif
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_c_bigendian=yes
6394 else
6395 ac_cv_c_bigendian=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 if test $ac_cv_c_bigendian = unknown; then
6402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #include <limits.h>
6406
6407 int
6408 main ()
6409 {
6410 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6411 bogus endian macros
6412 #endif
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 # It does; now see whether it defined to _BIG_ENDIAN or not.
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 #include <limits.h>
6423
6424 int
6425 main ()
6426 {
6427 #ifndef _BIG_ENDIAN
6428 not big endian
6429 #endif
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 ac_cv_c_bigendian=yes
6437 else
6438 ac_cv_c_bigendian=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 if test $ac_cv_c_bigendian = unknown; then
6445 # Compile a test program.
6446 if test "$cross_compiling" = yes; then :
6447 # Try to guess by grepping values from an object file.
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 short int ascii_mm[] =
6451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6452 short int ascii_ii[] =
6453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6454 int use_ascii (int i) {
6455 return ascii_mm[i] + ascii_ii[i];
6456 }
6457 short int ebcdic_ii[] =
6458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6459 short int ebcdic_mm[] =
6460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6461 int use_ebcdic (int i) {
6462 return ebcdic_mm[i] + ebcdic_ii[i];
6463 }
6464 extern int foo;
6465
6466 int
6467 main ()
6468 {
6469 return use_ascii (foo) == use_ebcdic (foo);
6470 ;
6471 return 0;
6472 }
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6476 ac_cv_c_bigendian=yes
6477 fi
6478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6479 if test "$ac_cv_c_bigendian" = unknown; then
6480 ac_cv_c_bigendian=no
6481 else
6482 # finding both strings is unlikely to happen, but who knows?
6483 ac_cv_c_bigendian=unknown
6484 fi
6485 fi
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 $ac_includes_default
6492 int
6493 main ()
6494 {
6495
6496 /* Are we little or big endian? From Harbison&Steele. */
6497 union
6498 {
6499 long int l;
6500 char c[sizeof (long int)];
6501 } u;
6502 u.l = 1;
6503 return u.c[sizeof (long int) - 1] == 1;
6504
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 if ac_fn_c_try_run "$LINENO"; then :
6510 ac_cv_c_bigendian=no
6511 else
6512 ac_cv_c_bigendian=yes
6513 fi
6514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 fi
6517
6518 fi
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6521 $as_echo "$ac_cv_c_bigendian" >&6; }
6522 case $ac_cv_c_bigendian in #(
6523 yes)
6524 ac_cv_big_endian=1;; #(
6525 no)
6526 ac_cv_big_endian=0 ;; #(
6527 universal)
6528
6529 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6530
6531 ;; #(
6532 *)
6533 as_fn_error $? "unknown endianness
6534 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6535 esac
6536
6537 if test "x${ac_cv_big_endian}" = "x1" ; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define JEMALLOC_BIG_ENDIAN
6540 _ACEOF
6541
6542 fi
6543
6544 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6545 T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6546 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6547 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6548 else
6549 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6550 fi
6551
6552
6553 fi
6554
6555 if test "x${je_cv_msvc}" = "xyes" ; then
6556 LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6558 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6559 else
6560 # The cast to long int works around a bug in the HP C Compiler
6561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6563 # This bug is HP SR number 8606223364.
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6565 $as_echo_n "checking size of void *... " >&6; }
6566 if ${ac_cv_sizeof_void_p+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6570
6571 else
6572 if test "$ac_cv_type_void_p" = yes; then
6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575 as_fn_error 77 "cannot compute sizeof (void *)
6576 See \`config.log' for more details" "$LINENO" 5; }
6577 else
6578 ac_cv_sizeof_void_p=0
6579 fi
6580 fi
6581
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6584 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6585
6586
6587
6588 cat >>confdefs.h <<_ACEOF
6589 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6590 _ACEOF
6591
6592
6593 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6594 LG_SIZEOF_PTR=3
6595 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6596 LG_SIZEOF_PTR=2
6597 else
6598 as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6599 fi
6600 fi
6601 cat >>confdefs.h <<_ACEOF
6602 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6603 _ACEOF
6604
6605
6606 # The cast to long int works around a bug in the HP C Compiler
6607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6609 # This bug is HP SR number 8606223364.
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6611 $as_echo_n "checking size of int... " >&6; }
6612 if ${ac_cv_sizeof_int+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6616
6617 else
6618 if test "$ac_cv_type_int" = yes; then
6619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6621 as_fn_error 77 "cannot compute sizeof (int)
6622 See \`config.log' for more details" "$LINENO" 5; }
6623 else
6624 ac_cv_sizeof_int=0
6625 fi
6626 fi
6627
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6630 $as_echo "$ac_cv_sizeof_int" >&6; }
6631
6632
6633
6634 cat >>confdefs.h <<_ACEOF
6635 #define SIZEOF_INT $ac_cv_sizeof_int
6636 _ACEOF
6637
6638
6639 if test "x${ac_cv_sizeof_int}" = "x8" ; then
6640 LG_SIZEOF_INT=3
6641 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
6642 LG_SIZEOF_INT=2
6643 else
6644 as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6645 fi
6646 cat >>confdefs.h <<_ACEOF
6647 #define LG_SIZEOF_INT $LG_SIZEOF_INT
6648 _ACEOF
6649
6650
6651 # The cast to long int works around a bug in the HP C Compiler
6652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6654 # This bug is HP SR number 8606223364.
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6656 $as_echo_n "checking size of long... " >&6; }
6657 if ${ac_cv_sizeof_long+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6661
6662 else
6663 if test "$ac_cv_type_long" = yes; then
6664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666 as_fn_error 77 "cannot compute sizeof (long)
6667 See \`config.log' for more details" "$LINENO" 5; }
6668 else
6669 ac_cv_sizeof_long=0
6670 fi
6671 fi
6672
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6675 $as_echo "$ac_cv_sizeof_long" >&6; }
6676
6677
6678
6679 cat >>confdefs.h <<_ACEOF
6680 #define SIZEOF_LONG $ac_cv_sizeof_long
6681 _ACEOF
6682
6683
6684 if test "x${ac_cv_sizeof_long}" = "x8" ; then
6685 LG_SIZEOF_LONG=3
6686 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
6687 LG_SIZEOF_LONG=2
6688 else
6689 as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6690 fi
6691 cat >>confdefs.h <<_ACEOF
6692 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6693 _ACEOF
6694
6695
6696 # The cast to long int works around a bug in the HP C Compiler
6697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6699 # This bug is HP SR number 8606223364.
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6701 $as_echo_n "checking size of long long... " >&6; }
6702 if ${ac_cv_sizeof_long_long+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6706
6707 else
6708 if test "$ac_cv_type_long_long" = yes; then
6709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6711 as_fn_error 77 "cannot compute sizeof (long long)
6712 See \`config.log' for more details" "$LINENO" 5; }
6713 else
6714 ac_cv_sizeof_long_long=0
6715 fi
6716 fi
6717
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6720 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6721
6722
6723
6724 cat >>confdefs.h <<_ACEOF
6725 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6726 _ACEOF
6727
6728
6729 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6730 LG_SIZEOF_LONG_LONG=3
6731 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6732 LG_SIZEOF_LONG_LONG=2
6733 else
6734 as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6735 fi
6736 cat >>confdefs.h <<_ACEOF
6737 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6738 _ACEOF
6739
6740
6741 # The cast to long int works around a bug in the HP C Compiler
6742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6744 # This bug is HP SR number 8606223364.
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6746 $as_echo_n "checking size of intmax_t... " >&6; }
6747 if ${ac_cv_sizeof_intmax_t+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
6751
6752 else
6753 if test "$ac_cv_type_intmax_t" = yes; then
6754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6756 as_fn_error 77 "cannot compute sizeof (intmax_t)
6757 See \`config.log' for more details" "$LINENO" 5; }
6758 else
6759 ac_cv_sizeof_intmax_t=0
6760 fi
6761 fi
6762
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6765 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6766
6767
6768
6769 cat >>confdefs.h <<_ACEOF
6770 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6771 _ACEOF
6772
6773
6774 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6775 LG_SIZEOF_INTMAX_T=4
6776 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6777 LG_SIZEOF_INTMAX_T=3
6778 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6779 LG_SIZEOF_INTMAX_T=2
6780 else
6781 as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6782 fi
6783 cat >>confdefs.h <<_ACEOF
6784 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6785 _ACEOF
6786
6787
6788 # Make sure we can run config.sub.
6789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6793 $as_echo_n "checking build system type... " >&6; }
6794 if ${ac_cv_build+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 ac_build_alias=$build_alias
6798 test "x$ac_build_alias" = x &&
6799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6800 test "x$ac_build_alias" = x &&
6801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6804
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6807 $as_echo "$ac_cv_build" >&6; }
6808 case $ac_cv_build in
6809 *-*-*) ;;
6810 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6811 esac
6812 build=$ac_cv_build
6813 ac_save_IFS=$IFS; IFS='-'
6814 set x $ac_cv_build
6815 shift
6816 build_cpu=$1
6817 build_vendor=$2
6818 shift; shift
6819 # Remember, the first character of IFS is used to create $*,
6820 # except with old shells:
6821 build_os=$*
6822 IFS=$ac_save_IFS
6823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6824
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6827 $as_echo_n "checking host system type... " >&6; }
6828 if ${ac_cv_host+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test "x$host_alias" = x; then
6832 ac_cv_host=$ac_cv_build
6833 else
6834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6836 fi
6837
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6840 $as_echo "$ac_cv_host" >&6; }
6841 case $ac_cv_host in
6842 *-*-*) ;;
6843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6844 esac
6845 host=$ac_cv_host
6846 ac_save_IFS=$IFS; IFS='-'
6847 set x $ac_cv_host
6848 shift
6849 host_cpu=$1
6850 host_vendor=$2
6851 shift; shift
6852 # Remember, the first character of IFS is used to create $*,
6853 # except with old shells:
6854 host_os=$*
6855 IFS=$ac_save_IFS
6856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6857
6858
6859 CPU_SPINWAIT=""
6860 case "${host_cpu}" in
6861 i686|x86_64)
6862 HAVE_CPU_SPINWAIT=1
6863 if test "x${je_cv_msvc}" = "xyes" ; then
6864 if ${je_cv_pause_msvc+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
6869 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
6870 if ${je_cv_pause_msvc+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875
6876 int
6877 main ()
6878 {
6879 _mm_pause(); return 0;
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 je_cv_pause_msvc=yes
6886 else
6887 je_cv_pause_msvc=no
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
6893 $as_echo "$je_cv_pause_msvc" >&6; }
6894
6895 fi
6896
6897 if test "x${je_cv_pause_msvc}" = "xyes" ; then
6898 CPU_SPINWAIT='_mm_pause()'
6899 fi
6900 else
6901 if ${je_cv_pause+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
6906 $as_echo_n "checking whether pause instruction is compilable... " >&6; }
6907 if ${je_cv_pause+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912
6913 int
6914 main ()
6915 {
6916 __asm__ volatile("pause"); return 0;
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 je_cv_pause=yes
6923 else
6924 je_cv_pause=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
6930 $as_echo "$je_cv_pause" >&6; }
6931
6932 fi
6933
6934 if test "x${je_cv_pause}" = "xyes" ; then
6935 CPU_SPINWAIT='__asm__ volatile("pause")'
6936 fi
6937 fi
6938 ;;
6939 *)
6940 HAVE_CPU_SPINWAIT=0
6941 ;;
6942 esac
6943 cat >>confdefs.h <<_ACEOF
6944 #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
6945 _ACEOF
6946
6947 cat >>confdefs.h <<_ACEOF
6948 #define CPU_SPINWAIT $CPU_SPINWAIT
6949 _ACEOF
6950
6951
6952
6953 # Check whether --with-lg_vaddr was given.
6954 if test "${with_lg_vaddr+set}" = set; then :
6955 withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
6956 else
6957 LG_VADDR="detect"
6958 fi
6959
6960
6961 case "${host_cpu}" in
6962 aarch64)
6963 if test "x$LG_VADDR" = "xdetect"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6965 $as_echo_n "checking number of significant virtual address bits... " >&6; }
6966 if test "x${LG_SIZEOF_PTR}" = "x2" ; then
6967 #aarch64 ILP32
6968 LG_VADDR=32
6969 else
6970 #aarch64 LP64
6971 LG_VADDR=48
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
6974 $as_echo "$LG_VADDR" >&6; }
6975 fi
6976 ;;
6977 x86_64)
6978 if test "x$LG_VADDR" = "xdetect"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6980 $as_echo_n "checking number of significant virtual address bits... " >&6; }
6981 if ${je_cv_lg_vaddr+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test "$cross_compiling" = yes; then :
6985 je_cv_lg_vaddr=57
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989
6990 #include <stdio.h>
6991 #ifdef _WIN32
6992 #include <limits.h>
6993 #include <intrin.h>
6994 typedef unsigned __int32 uint32_t;
6995 #else
6996 #include <stdint.h>
6997 #endif
6998
6999 int
7000 main ()
7001 {
7002
7003 uint32_t r[4];
7004 uint32_t eax_in = 0x80000008U;
7005 #ifdef _WIN32
7006 __cpuid((int *)r, (int)eax_in);
7007 #else
7008 asm volatile ("cpuid"
7009 : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7010 : "a" (eax_in), "c" (0)
7011 );
7012 #endif
7013 uint32_t eax_out = r[0];
7014 uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7015 FILE *f = fopen("conftest.out", "w");
7016 if (f == NULL) {
7017 return 1;
7018 }
7019 if (vaddr > (sizeof(void *) << 3)) {
7020 vaddr = sizeof(void *) << 3;
7021 }
7022 fprintf(f, "%u", vaddr);
7023 fclose(f);
7024 return 0;
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_run "$LINENO"; then :
7031 je_cv_lg_vaddr=`cat conftest.out`
7032 else
7033 je_cv_lg_vaddr=error
7034 fi
7035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7036 conftest.$ac_objext conftest.beam conftest.$ac_ext
7037 fi
7038
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7041 $as_echo "$je_cv_lg_vaddr" >&6; }
7042 if test "x${je_cv_lg_vaddr}" != "x" ; then
7043 LG_VADDR="${je_cv_lg_vaddr}"
7044 fi
7045 if test "x${LG_VADDR}" != "xerror" ; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define LG_VADDR $LG_VADDR
7048 _ACEOF
7049
7050 else
7051 as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7052 fi
7053 fi
7054 ;;
7055 *)
7056 if test "x$LG_VADDR" = "xdetect"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7058 $as_echo_n "checking number of significant virtual address bits... " >&6; }
7059 if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7060 LG_VADDR=64
7061 elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7062 LG_VADDR=32
7063 elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7064 LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7065 else
7066 as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7069 $as_echo "$LG_VADDR" >&6; }
7070 fi
7071 ;;
7072 esac
7073 cat >>confdefs.h <<_ACEOF
7074 #define LG_VADDR $LG_VADDR
7075 _ACEOF
7076
7077
7078 LD_PRELOAD_VAR="LD_PRELOAD"
7079 so="so"
7080 importlib="${so}"
7081 o="$ac_objext"
7082 a="a"
7083 exe="$ac_exeext"
7084 libprefix="lib"
7085 link_whole_archive="0"
7086 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7087 RPATH='-Wl,-rpath,$(1)'
7088 SOREV="${so}.${rev}"
7089 PIC_CFLAGS='-fPIC -DPIC'
7090 CTARGET='-o $@'
7091 LDTARGET='-o $@'
7092 TEST_LD_MODE=
7093 EXTRA_LDFLAGS=
7094 ARFLAGS='crus'
7095 AROUT=' $@'
7096 CC_MM=1
7097
7098 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7099 TEST_LD_MODE='-dynamic'
7100 fi
7101
7102 if test "x${je_cv_cray}" = "xyes" ; then
7103 CC_MM=
7104 fi
7105
7106
7107
7108
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}ar; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_AR+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$AR"; then
7118 ac_cv_prog_AR="$AR" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_AR="${ac_tool_prefix}ar"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 AR=$ac_cv_prog_AR
7138 if test -n "$AR"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7140 $as_echo "$AR" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_AR"; then
7149 ac_ct_AR=$AR
7150 # Extract the first word of "ar", so it can be a program name with args.
7151 set dummy ar; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_AR"; then
7158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_AR="ar"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178 if test -n "$ac_ct_AR"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7180 $as_echo "$ac_ct_AR" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_AR" = x; then
7187 AR=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 AR=$ac_ct_AR
7196 fi
7197 else
7198 AR="$ac_cv_prog_AR"
7199 fi
7200
7201
7202
7203
7204
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}nm; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_NM+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$NM"; then
7214 ac_cv_prog_NM="$NM" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_NM="${ac_tool_prefix}nm"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 NM=$ac_cv_prog_NM
7234 if test -n "$NM"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7236 $as_echo "$NM" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_NM"; then
7245 ac_ct_NM=$NM
7246 # Extract the first word of "nm", so it can be a program name with args.
7247 set dummy nm; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_NM+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_NM"; then
7254 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_NM="nm"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_NM=$ac_cv_prog_ac_ct_NM
7274 if test -n "$ac_ct_NM"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7276 $as_echo "$ac_ct_NM" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282 if test "x$ac_ct_NM" = x; then
7283 NM=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 NM=$ac_ct_NM
7292 fi
7293 else
7294 NM="$ac_cv_prog_NM"
7295 fi
7296
7297
7298 for ac_prog in gawk mawk nawk awk
7299 do
7300 # Extract the first word of "$ac_prog", so it can be a program name with args.
7301 set dummy $ac_prog; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_AWK+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$AWK"; then
7308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_AWK="$ac_prog"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 AWK=$ac_cv_prog_AWK
7328 if test -n "$AWK"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7330 $as_echo "$AWK" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 test -n "$AWK" && break
7338 done
7339
7340
7341 default_retain="0"
7342 maps_coalesce="1"
7343 DUMP_SYMS="${NM} -a"
7344 SYM_PREFIX=""
7345 case "${host}" in
7346 *-*-darwin* | *-*-ios*)
7347 abi="macho"
7348 RPATH=""
7349 LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7350 so="dylib"
7351 importlib="${so}"
7352 force_tls="0"
7353 DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7354 SOREV="${rev}.${so}"
7355 sbrk_deprecated="1"
7356 SYM_PREFIX="_"
7357 ;;
7358 *-*-freebsd*)
7359 abi="elf"
7360 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
7361
7362 force_lazy_lock="1"
7363 ;;
7364 *-*-dragonfly*)
7365 abi="elf"
7366 ;;
7367 *-*-openbsd*)
7368 abi="elf"
7369 force_tls="0"
7370 ;;
7371 *-*-bitrig*)
7372 abi="elf"
7373 ;;
7374 *-*-linux-android)
7375 T_APPEND_V=-D_GNU_SOURCE
7376 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7377 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7378 else
7379 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7380 fi
7381
7382
7383 abi="elf"
7384 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
7385
7386 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7387
7388 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
7389
7390 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7391
7392 $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7393
7394 force_tls="0"
7395 if test "${LG_SIZEOF_PTR}" = "3"; then
7396 default_retain="1"
7397 fi
7398 ;;
7399 *-*-linux*)
7400 T_APPEND_V=-D_GNU_SOURCE
7401 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7402 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7403 else
7404 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7405 fi
7406
7407
7408 abi="elf"
7409 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
7410
7411 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7412
7413 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
7414
7415 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7416
7417 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
7418
7419 if test "${LG_SIZEOF_PTR}" = "3"; then
7420 default_retain="1"
7421 fi
7422 ;;
7423 *-*-kfreebsd*)
7424 T_APPEND_V=-D_GNU_SOURCE
7425 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7426 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7427 else
7428 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7429 fi
7430
7431
7432 abi="elf"
7433 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7434
7435 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
7436
7437 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7438
7439 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
7440
7441 ;;
7442 *-*-netbsd*)
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7444 $as_echo_n "checking ABI... " >&6; }
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 #ifdef __ELF__
7448 /* ELF */
7449 #else
7450 #error aout
7451 #endif
7452
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 abi="elf"
7463 else
7464 abi="aout"
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7468 $as_echo "$abi" >&6; }
7469 ;;
7470 *-*-solaris2*)
7471 abi="elf"
7472 RPATH='-Wl,-R,$(1)'
7473 T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7474 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7475 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7476 else
7477 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7478 fi
7479
7480
7481 T_APPEND_V=-lposix4 -lsocket -lnsl
7482 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7483 LIBS="${LIBS}${T_APPEND_V}"
7484 else
7485 LIBS="${LIBS} ${T_APPEND_V}"
7486 fi
7487
7488
7489 ;;
7490 *-ibm-aix*)
7491 if test "${LG_SIZEOF_PTR}" = "3"; then
7492 LD_PRELOAD_VAR="LDR_PRELOAD64"
7493 else
7494 LD_PRELOAD_VAR="LDR_PRELOAD"
7495 fi
7496 abi="xcoff"
7497 ;;
7498 *-*-mingw* | *-*-cygwin*)
7499 abi="pecoff"
7500 force_tls="0"
7501 maps_coalesce="0"
7502 RPATH=""
7503 so="dll"
7504 if test "x$je_cv_msvc" = "xyes" ; then
7505 importlib="lib"
7506 DSO_LDFLAGS="-LD"
7507 EXTRA_LDFLAGS="-link -DEBUG"
7508 CTARGET='-Fo$@'
7509 LDTARGET='-Fe$@'
7510 AR='lib'
7511 ARFLAGS='-nologo -out:'
7512 AROUT='$@'
7513 CC_MM=
7514 else
7515 importlib="${so}"
7516 DSO_LDFLAGS="-shared"
7517 link_whole_archive="1"
7518 fi
7519 case "${host}" in
7520 *-*-cygwin*)
7521 DUMP_SYMS="dumpbin /SYMBOLS"
7522 ;;
7523 *)
7524 ;;
7525 esac
7526 a="lib"
7527 libprefix=""
7528 SOREV="${so}"
7529 PIC_CFLAGS=""
7530 ;;
7531 *)
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7533 $as_echo "Unsupported operating system: ${host}" >&6; }
7534 abi="elf"
7535 ;;
7536 esac
7537
7538 JEMALLOC_USABLE_SIZE_CONST=const
7539 for ac_header in malloc.h
7540 do :
7541 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7542 if test "x$ac_cv_header_malloc_h" = xyes; then :
7543 cat >>confdefs.h <<_ACEOF
7544 #define HAVE_MALLOC_H 1
7545 _ACEOF
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7548 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 #include <malloc.h>
7552 #include <stddef.h>
7553 size_t malloc_usable_size(const void *ptr);
7554
7555 int
7556 main ()
7557 {
7558
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7567
7568 else
7569
7570 JEMALLOC_USABLE_SIZE_CONST=
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576
7577 fi
7578
7579 done
7580
7581 cat >>confdefs.h <<_ACEOF
7582 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7583 _ACEOF
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7609 $as_echo_n "checking for library containing log... " >&6; }
7610 if ${ac_cv_search_log+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 ac_func_search_save_LIBS=$LIBS
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616
7617 /* Override any GCC internal prototype to avoid an error.
7618 Use char because int might match the return type of a GCC
7619 builtin and then its argument prototype would still apply. */
7620 #ifdef __cplusplus
7621 extern "C"
7622 #endif
7623 char log ();
7624 int
7625 main ()
7626 {
7627 return log ();
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 for ac_lib in '' m; do
7633 if test -z "$ac_lib"; then
7634 ac_res="none required"
7635 else
7636 ac_res=-l$ac_lib
7637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7638 fi
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 ac_cv_search_log=$ac_res
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext
7644 if ${ac_cv_search_log+:} false; then :
7645 break
7646 fi
7647 done
7648 if ${ac_cv_search_log+:} false; then :
7649
7650 else
7651 ac_cv_search_log=no
7652 fi
7653 rm conftest.$ac_ext
7654 LIBS=$ac_func_search_save_LIBS
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7657 $as_echo "$ac_cv_search_log" >&6; }
7658 ac_res=$ac_cv_search_log
7659 if test "$ac_res" != no; then :
7660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7661
7662 else
7663 as_fn_error $? "Missing math functions" "$LINENO" 5
7664 fi
7665
7666 if test "x$ac_cv_search_log" != "xnone required" ; then
7667 LM="$ac_cv_search_log"
7668 else
7669 LM=
7670 fi
7671
7672
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7675 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7676 if ${je_cv_attribute+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 static __attribute__((unused)) void foo(void){}
7682 int
7683 main ()
7684 {
7685
7686 ;
7687 return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_link "$LINENO"; then :
7691 je_cv_attribute=yes
7692 else
7693 je_cv_attribute=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7699 $as_echo "$je_cv_attribute" >&6; }
7700
7701 if test "x${je_cv_attribute}" = "xyes" ; then
7702 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
7703
7704 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7707 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7708 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7709 T_APPEND_V=-fvisibility=hidden
7710 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7711 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7712 else
7713 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7714 fi
7715
7716
7717 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7718 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7719 else
7720 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7721 fi
7722
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725
7726
7727 int
7728 main ()
7729 {
7730
7731 return 0;
7732
7733 ;
7734 return 0;
7735 }
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 je_cv_cflags_added=-fvisibility=hidden
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7740 $as_echo "yes" >&6; }
7741 else
7742 je_cv_cflags_added=
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7746
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7750 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7751 else
7752 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7753 fi
7754
7755
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7758 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7759 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7760 T_APPEND_V=-fvisibility=hidden
7761 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7762 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7763 else
7764 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7765 fi
7766
7767
7768 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7769 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7770 else
7771 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7772 fi
7773
7774 ac_ext=cpp
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7779
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782
7783
7784 int
7785 main ()
7786 {
7787
7788 return 0;
7789
7790 ;
7791 return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_cxx_try_compile "$LINENO"; then :
7795 je_cv_cxxflags_added=-fvisibility=hidden
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7798 else
7799 je_cv_cxxflags_added=
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
7803
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7813 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7814 else
7815 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7816 fi
7817
7818
7819 fi
7820 fi
7821 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7822
7823
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7825 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
7826 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7827 T_APPEND_V=-Werror
7828 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7829 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7830 else
7831 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7832 fi
7833
7834
7835 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7836 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7837 else
7838 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7839 fi
7840
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843
7844
7845 int
7846 main ()
7847 {
7848
7849 return 0;
7850
7851 ;
7852 return 0;
7853 }
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 je_cv_cflags_added=-Werror
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858 $as_echo "yes" >&6; }
7859 else
7860 je_cv_cflags_added=
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7864
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7868 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7869 else
7870 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7871 fi
7872
7873
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
7876 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
7877 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7878 T_APPEND_V=-herror_on_warning
7879 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7880 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7881 else
7882 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7883 fi
7884
7885
7886 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7887 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7888 else
7889 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7890 fi
7891
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894
7895
7896 int
7897 main ()
7898 {
7899
7900 return 0;
7901
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 je_cv_cflags_added=-herror_on_warning
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 $as_echo "yes" >&6; }
7910 else
7911 je_cv_cflags_added=
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7915
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7919 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7920 else
7921 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7922 fi
7923
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
7927 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
7928 if ${je_cv_tls_model+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933
7934 int
7935 main ()
7936 {
7937 static __thread int
7938 __attribute__((tls_model("initial-exec"), unused)) foo;
7939 foo = 0;
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"; then :
7945 je_cv_tls_model=yes
7946 else
7947 je_cv_tls_model=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
7953 $as_echo "$je_cv_tls_model" >&6; }
7954
7955 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
7956 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7957 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7958 else
7959 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7960 fi
7961
7962
7963
7964 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7965
7966
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7968 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
7969 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7970 T_APPEND_V=-Werror
7971 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7972 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7973 else
7974 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7975 fi
7976
7977
7978 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7979 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7980 else
7981 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7982 fi
7983
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986
7987
7988 int
7989 main ()
7990 {
7991
7992 return 0;
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 je_cv_cflags_added=-Werror
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001 $as_echo "yes" >&6; }
8002 else
8003 je_cv_cflags_added=
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8007
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8011 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8012 else
8013 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8014 fi
8015
8016
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8019 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8020 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8021 T_APPEND_V=-herror_on_warning
8022 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8023 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8024 else
8025 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8026 fi
8027
8028
8029 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8030 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8031 else
8032 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8033 fi
8034
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037
8038
8039 int
8040 main ()
8041 {
8042
8043 return 0;
8044
8045 ;
8046 return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 je_cv_cflags_added=-herror_on_warning
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 $as_echo "yes" >&6; }
8053 else
8054 je_cv_cflags_added=
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8058
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8062 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8063 else
8064 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8065 fi
8066
8067
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8070 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8071 if ${je_cv_alloc_size+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <stdlib.h>
8077 int
8078 main ()
8079 {
8080 void *foo(size_t size) __attribute__((alloc_size(1)));
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 je_cv_alloc_size=yes
8087 else
8088 je_cv_alloc_size=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8094 $as_echo "$je_cv_alloc_size" >&6; }
8095
8096 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8097 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8098 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8099 else
8100 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8101 fi
8102
8103
8104 if test "x${je_cv_alloc_size}" = "xyes" ; then
8105 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
8106
8107 fi
8108 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8109
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8112 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8113 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8114 T_APPEND_V=-Werror
8115 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8116 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8117 else
8118 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8119 fi
8120
8121
8122 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8123 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8124 else
8125 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8126 fi
8127
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130
8131
8132 int
8133 main ()
8134 {
8135
8136 return 0;
8137
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_compile "$LINENO"; then :
8143 je_cv_cflags_added=-Werror
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8146 else
8147 je_cv_cflags_added=
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8151
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8155 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8156 else
8157 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8158 fi
8159
8160
8161
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8163 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8164 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8165 T_APPEND_V=-herror_on_warning
8166 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8167 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8168 else
8169 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8170 fi
8171
8172
8173 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8174 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8175 else
8176 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8177 fi
8178
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181
8182
8183 int
8184 main ()
8185 {
8186
8187 return 0;
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 je_cv_cflags_added=-herror_on_warning
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8196 $as_echo "yes" >&6; }
8197 else
8198 je_cv_cflags_added=
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8201 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8202
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8206 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8207 else
8208 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8209 fi
8210
8211
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8214 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8215 if ${je_cv_format_gnu_printf+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <stdlib.h>
8221 int
8222 main ()
8223 {
8224 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 je_cv_format_gnu_printf=yes
8231 else
8232 je_cv_format_gnu_printf=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8238 $as_echo "$je_cv_format_gnu_printf" >&6; }
8239
8240 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8241 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8242 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8243 else
8244 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8245 fi
8246
8247
8248 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8249 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
8250
8251 fi
8252 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8253
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8256 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8257 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8258 T_APPEND_V=-Werror
8259 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8260 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8261 else
8262 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8263 fi
8264
8265
8266 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8267 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8268 else
8269 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8270 fi
8271
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274
8275
8276 int
8277 main ()
8278 {
8279
8280 return 0;
8281
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 je_cv_cflags_added=-Werror
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289 $as_echo "yes" >&6; }
8290 else
8291 je_cv_cflags_added=
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8295
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8299 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8300 else
8301 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8302 fi
8303
8304
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8307 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8308 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8309 T_APPEND_V=-herror_on_warning
8310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8311 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8312 else
8313 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8314 fi
8315
8316
8317 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8318 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8319 else
8320 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8321 fi
8322
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325
8326
8327 int
8328 main ()
8329 {
8330
8331 return 0;
8332
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338 je_cv_cflags_added=-herror_on_warning
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340 $as_echo "yes" >&6; }
8341 else
8342 je_cv_cflags_added=
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8346
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8350 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8351 else
8352 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8353 fi
8354
8355
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8358 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8359 if ${je_cv_format_printf+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 #include <stdlib.h>
8365 int
8366 main ()
8367 {
8368 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 je_cv_format_printf=yes
8375 else
8376 je_cv_format_printf=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8382 $as_echo "$je_cv_format_printf" >&6; }
8383
8384 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8385 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8386 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8387 else
8388 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8389 fi
8390
8391
8392 if test "x${je_cv_format_printf}" = "xyes" ; then
8393 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
8394
8395 fi
8396
8397
8398 # Check whether --with-rpath was given.
8399 if test "${with_rpath+set}" = set; then :
8400 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8401 RPATH_EXTRA=
8402 else
8403 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8404 fi
8405 else
8406 RPATH_EXTRA=
8407
8408 fi
8409
8410
8411
8412 # Check whether --enable-autogen was given.
8413 if test "${enable_autogen+set}" = set; then :
8414 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8415 enable_autogen="0"
8416 else
8417 enable_autogen="1"
8418 fi
8419
8420 else
8421 enable_autogen="0"
8422
8423 fi
8424
8425
8426
8427 # Find a good install program. We prefer a C program (faster),
8428 # so one script is as good as another. But avoid the broken or
8429 # incompatible versions:
8430 # SysV /etc/install, /usr/sbin/install
8431 # SunOS /usr/etc/install
8432 # IRIX /sbin/install
8433 # AIX /bin/install
8434 # AmigaOS /C/install, which installs bootblocks on floppy discs
8435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8438 # OS/2's system install, which has a completely different semantic
8439 # ./install, which can be erroneously created by make from ./install.sh.
8440 # Reject install programs that cannot install multiple files.
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8442 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8443 if test -z "$INSTALL"; then
8444 if ${ac_cv_path_install+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 # Account for people who put trailing slashes in PATH elements.
8453 case $as_dir/ in #((
8454 ./ | .// | /[cC]/* | \
8455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8457 /usr/ucb/* ) ;;
8458 *)
8459 # OSF1 and SCO ODT 3.0 have their own names for install.
8460 # Don't use installbsd from OSF since it installs stuff as root
8461 # by default.
8462 for ac_prog in ginstall scoinst install; do
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8465 if test $ac_prog = install &&
8466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 # AIX install. It has an incompatible calling convention.
8468 :
8469 elif test $ac_prog = install &&
8470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8471 # program-specific install script used by HP pwplus--don't use.
8472 :
8473 else
8474 rm -rf conftest.one conftest.two conftest.dir
8475 echo one > conftest.one
8476 echo two > conftest.two
8477 mkdir conftest.dir
8478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8479 test -s conftest.one && test -s conftest.two &&
8480 test -s conftest.dir/conftest.one &&
8481 test -s conftest.dir/conftest.two
8482 then
8483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8484 break 3
8485 fi
8486 fi
8487 fi
8488 done
8489 done
8490 ;;
8491 esac
8492
8493 done
8494 IFS=$as_save_IFS
8495
8496 rm -rf conftest.one conftest.two conftest.dir
8497
8498 fi
8499 if test "${ac_cv_path_install+set}" = set; then
8500 INSTALL=$ac_cv_path_install
8501 else
8502 # As a last resort, use the slow shell script. Don't cache a
8503 # value for INSTALL within a source directory, because that will
8504 # break other packages using the cache if that directory is
8505 # removed, or if the value is a relative name.
8506 INSTALL=$ac_install_sh
8507 fi
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8510 $as_echo "$INSTALL" >&6; }
8511
8512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8513 # It thinks the first close brace ends the variable substitution.
8514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8515
8516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8517
8518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8519
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_RANLIB+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$RANLIB"; then
8529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 RANLIB=$ac_cv_prog_RANLIB
8549 if test -n "$RANLIB"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8551 $as_echo "$RANLIB" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557
8558 fi
8559 if test -z "$ac_cv_prog_RANLIB"; then
8560 ac_ct_RANLIB=$RANLIB
8561 # Extract the first word of "ranlib", so it can be a program name with args.
8562 set dummy ranlib; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 if test -n "$ac_ct_RANLIB"; then
8569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_ac_ct_RANLIB="ranlib"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8589 if test -n "$ac_ct_RANLIB"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8591 $as_echo "$ac_ct_RANLIB" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597 if test "x$ac_ct_RANLIB" = x; then
8598 RANLIB=":"
8599 else
8600 case $cross_compiling:$ac_tool_warned in
8601 yes:)
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8605 esac
8606 RANLIB=$ac_ct_RANLIB
8607 fi
8608 else
8609 RANLIB="$ac_cv_prog_RANLIB"
8610 fi
8611
8612 # Extract the first word of "ld", so it can be a program name with args.
8613 set dummy ld; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_path_LD+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 case $LD in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_LD="$LD" # Let the user override the test with a path.
8622 ;;
8623 *)
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8640 ;;
8641 esac
8642 fi
8643 LD=$ac_cv_path_LD
8644 if test -n "$LD"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8646 $as_echo "$LD" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650 fi
8651
8652
8653 # Extract the first word of "autoconf", so it can be a program name with args.
8654 set dummy autoconf; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_path_AUTOCONF+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 case $AUTOCONF in
8661 [\\/]* | ?:[\\/]*)
8662 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8663 ;;
8664 *)
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676 done
8677 done
8678 IFS=$as_save_IFS
8679
8680 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
8681 ;;
8682 esac
8683 fi
8684 AUTOCONF=$ac_cv_path_AUTOCONF
8685 if test -n "$AUTOCONF"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8687 $as_echo "$AUTOCONF" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 fi
8692
8693
8694
8695
8696 # Check whether --with-mangling was given.
8697 if test "${with_mangling+set}" = set; then :
8698 withval=$with_mangling; mangling_map="$with_mangling"
8699 else
8700 mangling_map=""
8701 fi
8702
8703
8704
8705 # Check whether --with-jemalloc_prefix was given.
8706 if test "${with_jemalloc_prefix+set}" = set; then :
8707 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
8708 else
8709 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
8710 JEMALLOC_PREFIX=""
8711 else
8712 JEMALLOC_PREFIX="je_"
8713 fi
8714
8715 fi
8716
8717 if test "x$JEMALLOC_PREFIX" = "x" ; then
8718 $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
8719
8720 else
8721 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
8722 cat >>confdefs.h <<_ACEOF
8723 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
8724 _ACEOF
8725
8726 cat >>confdefs.h <<_ACEOF
8727 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
8728 _ACEOF
8729
8730 fi
8731
8732
8733
8734
8735 # Check whether --with-export was given.
8736 if test "${with_export+set}" = set; then :
8737 withval=$with_export; if test "x$with_export" = "xno"; then
8738 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
8739
8740 fi
8741
8742 fi
8743
8744
8745 public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
8746 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
8747 if test "x$ac_cv_func_memalign" = xyes; then :
8748 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
8749
8750 public_syms="${public_syms} memalign"
8751 fi
8752
8753 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
8754 if test "x$ac_cv_func_valloc" = xyes; then :
8755 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
8756
8757 public_syms="${public_syms} valloc"
8758 fi
8759
8760
8761 wrap_syms=
8762 if test "x${JEMALLOC_PREFIX}" = "x" ; then
8763 ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
8764 if test "x$ac_cv_func___libc_calloc" = xyes; then :
8765 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h
8766
8767 wrap_syms="${wrap_syms} __libc_calloc"
8768 fi
8769
8770 ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
8771 if test "x$ac_cv_func___libc_free" = xyes; then :
8772 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h
8773
8774 wrap_syms="${wrap_syms} __libc_free"
8775 fi
8776
8777 ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
8778 if test "x$ac_cv_func___libc_malloc" = xyes; then :
8779 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h
8780
8781 wrap_syms="${wrap_syms} __libc_malloc"
8782 fi
8783
8784 ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
8785 if test "x$ac_cv_func___libc_memalign" = xyes; then :
8786 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h
8787
8788 wrap_syms="${wrap_syms} __libc_memalign"
8789 fi
8790
8791 ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
8792 if test "x$ac_cv_func___libc_realloc" = xyes; then :
8793 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h
8794
8795 wrap_syms="${wrap_syms} __libc_realloc"
8796 fi
8797
8798 ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
8799 if test "x$ac_cv_func___libc_valloc" = xyes; then :
8800 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h
8801
8802 wrap_syms="${wrap_syms} __libc_valloc"
8803 fi
8804
8805 ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
8806 if test "x$ac_cv_func___posix_memalign" = xyes; then :
8807 $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h
8808
8809 wrap_syms="${wrap_syms} __posix_memalign"
8810 fi
8811
8812 fi
8813
8814 case "${host}" in
8815 *-*-mingw* | *-*-cygwin*)
8816 wrap_syms="${wrap_syms} tls_callback"
8817 ;;
8818 *)
8819 ;;
8820 esac
8821
8822
8823 # Check whether --with-private_namespace was given.
8824 if test "${with_private_namespace+set}" = set; then :
8825 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
8826 else
8827 JEMALLOC_PRIVATE_NAMESPACE="je_"
8828
8829 fi
8830
8831 cat >>confdefs.h <<_ACEOF
8832 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
8833 _ACEOF
8834
8835 private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
8836
8837
8838
8839 # Check whether --with-install_suffix was given.
8840 if test "${with_install_suffix+set}" = set; then :
8841 withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
8842 else
8843 INSTALL_SUFFIX=
8844
8845 fi
8846
8847 install_suffix="$INSTALL_SUFFIX"
8848
8849
8850
8851 # Check whether --with-malloc_conf was given.
8852 if test "${with_malloc_conf+set}" = set; then :
8853 withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
8854 else
8855 JEMALLOC_CONFIG_MALLOC_CONF=""
8856
8857 fi
8858
8859 config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
8860 cat >>confdefs.h <<_ACEOF
8861 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
8862 _ACEOF
8863
8864
8865 je_="je_"
8866
8867
8868 cfgoutputs_in="Makefile.in"
8869 cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
8870 cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
8871 cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
8872 cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
8873 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
8874 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
8875 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
8876 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
8877 cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
8878 cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
8879
8880 cfgoutputs_out="Makefile"
8881 cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
8882 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
8883 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
8884 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
8885 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
8886 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
8887 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
8888 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
8889 cfgoutputs_out="${cfgoutputs_out} test/test.sh"
8890 cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
8891
8892 cfgoutputs_tup="Makefile"
8893 cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
8894 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
8895 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
8896 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
8897 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
8898 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
8899 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
8900 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
8901 cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
8902 cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
8903
8904 cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
8905 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
8906 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
8907 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
8908 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
8909 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
8910 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
8911 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
8912 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
8913 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
8914 cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
8915
8916 cfghdrs_out="include/jemalloc/jemalloc_defs.h"
8917 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
8918 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
8919 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
8920 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
8921 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
8922 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
8923 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
8924 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
8925 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
8926 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
8927 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
8928 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
8929 cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
8930
8931 cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
8932 cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
8933 cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
8934
8935 # Check whether --enable-debug was given.
8936 if test "${enable_debug+set}" = set; then :
8937 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
8938 enable_debug="0"
8939 else
8940 enable_debug="1"
8941 fi
8942
8943 else
8944 enable_debug="0"
8945
8946 fi
8947
8948 if test "x$enable_debug" = "x1" ; then
8949 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
8950
8951 fi
8952 if test "x$enable_debug" = "x1" ; then
8953 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
8954
8955 fi
8956
8957
8958 if test "x$enable_debug" = "x0" ; then
8959 if test "x$GCC" = "xyes" ; then
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
8962 $as_echo_n "checking whether compiler supports -O3... " >&6; }
8963 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8964 T_APPEND_V=-O3
8965 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8966 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8967 else
8968 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8969 fi
8970
8971
8972 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8973 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8974 else
8975 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8976 fi
8977
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980
8981
8982 int
8983 main ()
8984 {
8985
8986 return 0;
8987
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 if ac_fn_c_try_compile "$LINENO"; then :
8993 je_cv_cflags_added=-O3
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 $as_echo "yes" >&6; }
8996 else
8997 je_cv_cflags_added=
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9001
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9005 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9006 else
9007 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9008 fi
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9013 $as_echo_n "checking whether compiler supports -O3... " >&6; }
9014 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9015 T_APPEND_V=-O3
9016 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9017 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9018 else
9019 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9020 fi
9021
9022
9023 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9024 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9025 else
9026 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9027 fi
9028
9029 ac_ext=cpp
9030 ac_cpp='$CXXCPP $CPPFLAGS'
9031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9034
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037
9038
9039 int
9040 main ()
9041 {
9042
9043 return 0;
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_cxx_try_compile "$LINENO"; then :
9050 je_cv_cxxflags_added=-O3
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052 $as_echo "yes" >&6; }
9053 else
9054 je_cv_cxxflags_added=
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9057 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9058
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 ac_ext=c
9062 ac_cpp='$CPP $CPPFLAGS'
9063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9066
9067 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9068 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9069 else
9070 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9071 fi
9072
9073
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9076 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9077 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9078 T_APPEND_V=-funroll-loops
9079 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9080 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9081 else
9082 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9083 fi
9084
9085
9086 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9087 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9088 else
9089 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9090 fi
9091
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094
9095
9096 int
9097 main ()
9098 {
9099
9100 return 0;
9101
9102 ;
9103 return 0;
9104 }
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 je_cv_cflags_added=-funroll-loops
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9109 $as_echo "yes" >&6; }
9110 else
9111 je_cv_cflags_added=
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9114 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9115
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9119 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9120 else
9121 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9122 fi
9123
9124
9125 elif test "x$je_cv_msvc" = "xyes" ; then
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9128 $as_echo_n "checking whether compiler supports -O2... " >&6; }
9129 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9130 T_APPEND_V=-O2
9131 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9132 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9133 else
9134 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9135 fi
9136
9137
9138 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9139 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9140 else
9141 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9142 fi
9143
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146
9147
9148 int
9149 main ()
9150 {
9151
9152 return 0;
9153
9154 ;
9155 return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_compile "$LINENO"; then :
9159 je_cv_cflags_added=-O2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9161 $as_echo "yes" >&6; }
9162 else
9163 je_cv_cflags_added=
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 $as_echo "no" >&6; }
9166 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9167
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9171 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9172 else
9173 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9174 fi
9175
9176
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9179 $as_echo_n "checking whether compiler supports -O2... " >&6; }
9180 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9181 T_APPEND_V=-O2
9182 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9183 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9184 else
9185 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9186 fi
9187
9188
9189 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9190 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9191 else
9192 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9193 fi
9194
9195 ac_ext=cpp
9196 ac_cpp='$CXXCPP $CPPFLAGS'
9197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9200
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203
9204
9205 int
9206 main ()
9207 {
9208
9209 return 0;
9210
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_cxx_try_compile "$LINENO"; then :
9216 je_cv_cxxflags_added=-O2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219 else
9220 je_cv_cxxflags_added=
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9224
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 ac_ext=c
9228 ac_cpp='$CPP $CPPFLAGS'
9229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232
9233 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9234 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9235 else
9236 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9237 fi
9238
9239
9240 else
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9243 $as_echo_n "checking whether compiler supports -O... " >&6; }
9244 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9245 T_APPEND_V=-O
9246 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9247 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9248 else
9249 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9250 fi
9251
9252
9253 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9254 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9255 else
9256 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9257 fi
9258
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261
9262
9263 int
9264 main ()
9265 {
9266
9267 return 0;
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_compile "$LINENO"; then :
9274 je_cv_cflags_added=-O
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9276 $as_echo "yes" >&6; }
9277 else
9278 je_cv_cflags_added=
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9282
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9286 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9287 else
9288 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9289 fi
9290
9291
9292
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9294 $as_echo_n "checking whether compiler supports -O... " >&6; }
9295 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9296 T_APPEND_V=-O
9297 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9298 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9299 else
9300 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9301 fi
9302
9303
9304 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9305 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9306 else
9307 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9308 fi
9309
9310 ac_ext=cpp
9311 ac_cpp='$CXXCPP $CPPFLAGS'
9312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9315
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318
9319
9320 int
9321 main ()
9322 {
9323
9324 return 0;
9325
9326 ;
9327 return 0;
9328 }
9329 _ACEOF
9330 if ac_fn_cxx_try_compile "$LINENO"; then :
9331 je_cv_cxxflags_added=-O
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9334 else
9335 je_cv_cxxflags_added=
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9338 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9339
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 ac_ext=c
9343 ac_cpp='$CPP $CPPFLAGS'
9344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9347
9348 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9349 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9350 else
9351 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9352 fi
9353
9354
9355 fi
9356 fi
9357
9358 # Check whether --enable-stats was given.
9359 if test "${enable_stats+set}" = set; then :
9360 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9361 enable_stats="0"
9362 else
9363 enable_stats="1"
9364 fi
9365
9366 else
9367 enable_stats="1"
9368
9369 fi
9370
9371 if test "x$enable_stats" = "x1" ; then
9372 $as_echo "#define JEMALLOC_STATS " >>confdefs.h
9373
9374 fi
9375
9376
9377 # Check whether --enable-prof was given.
9378 if test "${enable_prof+set}" = set; then :
9379 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9380 enable_prof="0"
9381 else
9382 enable_prof="1"
9383 fi
9384
9385 else
9386 enable_prof="0"
9387
9388 fi
9389
9390 if test "x$enable_prof" = "x1" ; then
9391 backtrace_method=""
9392 else
9393 backtrace_method="N/A"
9394 fi
9395
9396 # Check whether --enable-prof-libunwind was given.
9397 if test "${enable_prof_libunwind+set}" = set; then :
9398 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9399 enable_prof_libunwind="0"
9400 else
9401 enable_prof_libunwind="1"
9402 fi
9403
9404 else
9405 enable_prof_libunwind="0"
9406
9407 fi
9408
9409
9410 # Check whether --with-static_libunwind was given.
9411 if test "${with_static_libunwind+set}" = set; then :
9412 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9413 LUNWIND="-lunwind"
9414 else
9415 if test ! -f "$with_static_libunwind" ; then
9416 as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9417 fi
9418 LUNWIND="$with_static_libunwind"
9419 fi
9420 else
9421 LUNWIND="-lunwind"
9422
9423 fi
9424
9425 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9426 for ac_header in libunwind.h
9427 do :
9428 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9429 if test "x$ac_cv_header_libunwind_h" = xyes; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define HAVE_LIBUNWIND_H 1
9432 _ACEOF
9433
9434 else
9435 enable_prof_libunwind="0"
9436 fi
9437
9438 done
9439
9440 if test "x$LUNWIND" = "x-lunwind" ; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9442 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9443 if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_check_lib_save_LIBS=$LIBS
9447 LIBS="-lunwind $LIBS"
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char unw_backtrace ();
9458 int
9459 main ()
9460 {
9461 return unw_backtrace ();
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467 ac_cv_lib_unwind_unw_backtrace=yes
9468 else
9469 ac_cv_lib_unwind_unw_backtrace=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9476 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9477 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9478 T_APPEND_V=$LUNWIND
9479 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9480 LIBS="${LIBS}${T_APPEND_V}"
9481 else
9482 LIBS="${LIBS} ${T_APPEND_V}"
9483 fi
9484
9485
9486 else
9487 enable_prof_libunwind="0"
9488 fi
9489
9490 else
9491 T_APPEND_V=$LUNWIND
9492 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9493 LIBS="${LIBS}${T_APPEND_V}"
9494 else
9495 LIBS="${LIBS} ${T_APPEND_V}"
9496 fi
9497
9498
9499 fi
9500 if test "x${enable_prof_libunwind}" = "x1" ; then
9501 backtrace_method="libunwind"
9502 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
9503
9504 fi
9505 fi
9506
9507 # Check whether --enable-prof-libgcc was given.
9508 if test "${enable_prof_libgcc+set}" = set; then :
9509 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9510 enable_prof_libgcc="0"
9511 else
9512 enable_prof_libgcc="1"
9513 fi
9514
9515 else
9516 enable_prof_libgcc="1"
9517
9518 fi
9519
9520 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9521 -a "x$GCC" = "xyes" ; then
9522 for ac_header in unwind.h
9523 do :
9524 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9525 if test "x$ac_cv_header_unwind_h" = xyes; then :
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_UNWIND_H 1
9528 _ACEOF
9529
9530 else
9531 enable_prof_libgcc="0"
9532 fi
9533
9534 done
9535
9536 if test "x${enable_prof_libgcc}" = "x1" ; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9538 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9539 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-lgcc $LIBS"
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char _Unwind_Backtrace ();
9554 int
9555 main ()
9556 {
9557 return _Unwind_Backtrace ();
9558 ;
9559 return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_link "$LINENO"; then :
9563 ac_cv_lib_gcc__Unwind_Backtrace=yes
9564 else
9565 ac_cv_lib_gcc__Unwind_Backtrace=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 LIBS=$ac_check_lib_save_LIBS
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9572 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9573 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9574 T_APPEND_V=-lgcc
9575 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9576 LIBS="${LIBS}${T_APPEND_V}"
9577 else
9578 LIBS="${LIBS} ${T_APPEND_V}"
9579 fi
9580
9581
9582 else
9583 enable_prof_libgcc="0"
9584 fi
9585
9586 fi
9587 if test "x${enable_prof_libgcc}" = "x1" ; then
9588 backtrace_method="libgcc"
9589 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
9590
9591 fi
9592 else
9593 enable_prof_libgcc="0"
9594 fi
9595
9596 # Check whether --enable-prof-gcc was given.
9597 if test "${enable_prof_gcc+set}" = set; then :
9598 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
9599 enable_prof_gcc="0"
9600 else
9601 enable_prof_gcc="1"
9602 fi
9603
9604 else
9605 enable_prof_gcc="1"
9606
9607 fi
9608
9609 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
9610 -a "x$GCC" = "xyes" ; then
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
9613 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
9614 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9615 T_APPEND_V=-fno-omit-frame-pointer
9616 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9617 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9618 else
9619 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9620 fi
9621
9622
9623 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9624 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9625 else
9626 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9627 fi
9628
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631
9632
9633 int
9634 main ()
9635 {
9636
9637 return 0;
9638
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_compile "$LINENO"; then :
9644 je_cv_cflags_added=-fno-omit-frame-pointer
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9646 $as_echo "yes" >&6; }
9647 else
9648 je_cv_cflags_added=
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9652
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9656 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9657 else
9658 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9659 fi
9660
9661
9662 backtrace_method="gcc intrinsics"
9663 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
9664
9665 else
9666 enable_prof_gcc="0"
9667 fi
9668
9669 if test "x$backtrace_method" = "x" ; then
9670 backtrace_method="none (disabling profiling)"
9671 enable_prof="0"
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
9674 $as_echo_n "checking configured backtracing method... " >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
9676 $as_echo "$backtrace_method" >&6; }
9677 if test "x$enable_prof" = "x1" ; then
9678 T_APPEND_V=$LM
9679 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9680 LIBS="${LIBS}${T_APPEND_V}"
9681 else
9682 LIBS="${LIBS} ${T_APPEND_V}"
9683 fi
9684
9685
9686
9687 $as_echo "#define JEMALLOC_PROF " >>confdefs.h
9688
9689 fi
9690
9691
9692 if test "x${maps_coalesce}" = "x1" ; then
9693 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
9694
9695 fi
9696
9697 if test "x$default_retain" = "x1" ; then
9698 $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h
9699
9700 fi
9701
9702 have_dss="1"
9703 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9704 if test "x$ac_cv_func_sbrk" = xyes; then :
9705 have_sbrk="1"
9706 else
9707 have_sbrk="0"
9708 fi
9709
9710 if test "x$have_sbrk" = "x1" ; then
9711 if test "x$sbrk_deprecated" = "x1" ; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
9713 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
9714 have_dss="0"
9715 fi
9716 else
9717 have_dss="0"
9718 fi
9719
9720 if test "x$have_dss" = "x1" ; then
9721 $as_echo "#define JEMALLOC_DSS " >>confdefs.h
9722
9723 fi
9724
9725 # Check whether --enable-fill was given.
9726 if test "${enable_fill+set}" = set; then :
9727 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
9728 enable_fill="0"
9729 else
9730 enable_fill="1"
9731 fi
9732
9733 else
9734 enable_fill="1"
9735
9736 fi
9737
9738 if test "x$enable_fill" = "x1" ; then
9739 $as_echo "#define JEMALLOC_FILL " >>confdefs.h
9740
9741 fi
9742
9743
9744 # Check whether --enable-utrace was given.
9745 if test "${enable_utrace+set}" = set; then :
9746 enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
9747 enable_utrace="0"
9748 else
9749 enable_utrace="1"
9750 fi
9751
9752 else
9753 enable_utrace="0"
9754
9755 fi
9756
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
9759 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
9760 if ${je_cv_utrace+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765
9766 #include <sys/types.h>
9767 #include <sys/param.h>
9768 #include <sys/time.h>
9769 #include <sys/uio.h>
9770 #include <sys/ktrace.h>
9771
9772 int
9773 main ()
9774 {
9775
9776 utrace((void *)0, 0);
9777
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783 je_cv_utrace=yes
9784 else
9785 je_cv_utrace=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
9791 $as_echo "$je_cv_utrace" >&6; }
9792
9793 if test "x${je_cv_utrace}" = "xno" ; then
9794 enable_utrace="0"
9795 fi
9796 if test "x$enable_utrace" = "x1" ; then
9797 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
9798
9799 fi
9800
9801
9802 # Check whether --enable-xmalloc was given.
9803 if test "${enable_xmalloc+set}" = set; then :
9804 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
9805 enable_xmalloc="0"
9806 else
9807 enable_xmalloc="1"
9808 fi
9809
9810 else
9811 enable_xmalloc="0"
9812
9813 fi
9814
9815 if test "x$enable_xmalloc" = "x1" ; then
9816 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
9817
9818 fi
9819
9820
9821 # Check whether --enable-cache-oblivious was given.
9822 if test "${enable_cache_oblivious+set}" = set; then :
9823 enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
9824 enable_cache_oblivious="0"
9825 else
9826 enable_cache_oblivious="1"
9827 fi
9828
9829 else
9830 enable_cache_oblivious="1"
9831
9832 fi
9833
9834 if test "x$enable_cache_oblivious" = "x1" ; then
9835 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
9836
9837 fi
9838
9839
9840 # Check whether --enable-log was given.
9841 if test "${enable_log+set}" = set; then :
9842 enableval=$enable_log; if test "x$enable_log" = "xno" ; then
9843 enable_log="0"
9844 else
9845 enable_log="1"
9846 fi
9847
9848 else
9849 enable_log="0"
9850
9851 fi
9852
9853 if test "x$enable_log" = "x1" ; then
9854 $as_echo "#define JEMALLOC_LOG " >>confdefs.h
9855
9856 fi
9857
9858
9859
9860
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
9862 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
9863 if ${je_cv_gcc_builtin_unreachable+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868
9869 void foo (void) {
9870 __builtin_unreachable();
9871 }
9872
9873 int
9874 main ()
9875 {
9876
9877 {
9878 foo();
9879 }
9880
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 je_cv_gcc_builtin_unreachable=yes
9887 else
9888 je_cv_gcc_builtin_unreachable=no
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
9894 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
9895
9896 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
9897 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
9898
9899 else
9900 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
9901
9902 fi
9903
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
9906 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
9907 if ${je_cv_gcc_builtin_ffsl+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912
9913 #include <stdio.h>
9914 #include <strings.h>
9915 #include <string.h>
9916
9917 int
9918 main ()
9919 {
9920
9921 {
9922 int rv = __builtin_ffsl(0x08);
9923 printf("%d\n", rv);
9924 }
9925
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 je_cv_gcc_builtin_ffsl=yes
9932 else
9933 je_cv_gcc_builtin_ffsl=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
9939 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
9940
9941 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
9942 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
9943
9944 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
9945
9946 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
9947
9948 else
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
9951 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
9952 if ${je_cv_function_ffsl+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957
9958 #include <stdio.h>
9959 #include <strings.h>
9960 #include <string.h>
9961
9962 int
9963 main ()
9964 {
9965
9966 {
9967 int rv = ffsl(0x08);
9968 printf("%d\n", rv);
9969 }
9970
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976 je_cv_function_ffsl=yes
9977 else
9978 je_cv_function_ffsl=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
9984 $as_echo "$je_cv_function_ffsl" >&6; }
9985
9986 if test "x${je_cv_function_ffsl}" = "xyes" ; then
9987 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
9988
9989 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
9990
9991 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
9992
9993 else
9994 as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
9995 fi
9996 fi
9997
9998
9999 # Check whether --with-lg_quantum was given.
10000 if test "${with_lg_quantum+set}" = set; then :
10001 withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10002 else
10003 LG_QUANTA="3 4"
10004 fi
10005
10006 if test "x$with_lg_quantum" != "x" ; then
10007 cat >>confdefs.h <<_ACEOF
10008 #define LG_QUANTUM $with_lg_quantum
10009 _ACEOF
10010
10011 fi
10012
10013
10014 # Check whether --with-lg_page was given.
10015 if test "${with_lg_page+set}" = set; then :
10016 withval=$with_lg_page; LG_PAGE="$with_lg_page"
10017 else
10018 LG_PAGE="detect"
10019 fi
10020
10021 if test "x$LG_PAGE" = "xdetect"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10023 $as_echo_n "checking LG_PAGE... " >&6; }
10024 if ${je_cv_lg_page+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test "$cross_compiling" = yes; then :
10028 je_cv_lg_page=12
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032
10033 #include <strings.h>
10034 #ifdef _WIN32
10035 #include <windows.h>
10036 #else
10037 #include <unistd.h>
10038 #endif
10039 #include <stdio.h>
10040
10041 int
10042 main ()
10043 {
10044
10045 int result;
10046 FILE *f;
10047
10048 #ifdef _WIN32
10049 SYSTEM_INFO si;
10050 GetSystemInfo(&si);
10051 result = si.dwPageSize;
10052 #else
10053 result = sysconf(_SC_PAGESIZE);
10054 #endif
10055 if (result == -1) {
10056 return 1;
10057 }
10058 result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10059
10060 f = fopen("conftest.out", "w");
10061 if (f == NULL) {
10062 return 1;
10063 }
10064 fprintf(f, "%d", result);
10065 fclose(f);
10066
10067 return 0;
10068
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 if ac_fn_c_try_run "$LINENO"; then :
10074 je_cv_lg_page=`cat conftest.out`
10075 else
10076 je_cv_lg_page=undefined
10077 fi
10078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10079 conftest.$ac_objext conftest.beam conftest.$ac_ext
10080 fi
10081
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10084 $as_echo "$je_cv_lg_page" >&6; }
10085 fi
10086 if test "x${je_cv_lg_page}" != "x" ; then
10087 LG_PAGE="${je_cv_lg_page}"
10088 fi
10089 if test "x${LG_PAGE}" != "xundefined" ; then
10090 cat >>confdefs.h <<_ACEOF
10091 #define LG_PAGE $LG_PAGE
10092 _ACEOF
10093
10094 else
10095 as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10096 fi
10097
10098
10099 # Check whether --with-lg_hugepage was given.
10100 if test "${with_lg_hugepage+set}" = set; then :
10101 withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10102 else
10103 je_cv_lg_hugepage=""
10104 fi
10105
10106 if test "x${je_cv_lg_hugepage}" = "x" ; then
10107 if test -e "/proc/meminfo" ; then
10108 hpsk=`cat /proc/meminfo 2>/dev/null | \
10109 grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10110 awk '{print $2}'`
10111 if test "x${hpsk}" != "x" ; then
10112 je_cv_lg_hugepage=10
10113 while test "${hpsk}" -gt 1 ; do
10114 hpsk="$((hpsk / 2))"
10115 je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10116 done
10117 fi
10118 fi
10119
10120 if test "x${je_cv_lg_hugepage}" = "x" ; then
10121 je_cv_lg_hugepage=21
10122 fi
10123 fi
10124 if test "x${LG_PAGE}" != "xundefined" -a \
10125 "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10126 as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10127 fi
10128 cat >>confdefs.h <<_ACEOF
10129 #define LG_HUGEPAGE ${je_cv_lg_hugepage}
10130 _ACEOF
10131
10132
10133
10134 # Check whether --with-lg_page_sizes was given.
10135 if test "${with_lg_page_sizes+set}" = set; then :
10136 withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
10137 else
10138 LG_PAGE_SIZES="$LG_PAGE"
10139 fi
10140
10141
10142
10143
10144 # Check whether --with-version was given.
10145 if test "${with_version+set}" = set; then :
10146 withval=$with_version;
10147 echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
10148 if test $? -eq 0 ; then
10149 echo "$with_version" > "${objroot}VERSION"
10150 else
10151 echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
10152 if test $? -ne 0 ; then
10153 as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
10154 fi
10155 fi
10156
10157 else
10158
10159 if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
10160 for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
10161 '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
10162 '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
10163 '[0-9][0-9].[0-9][0-9].[0-9]' \
10164 '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
10165 (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
10166 if test $? -eq 0 ; then
10167 mv "${objroot}VERSION.tmp" "${objroot}VERSION"
10168 break
10169 fi
10170 done
10171 fi
10172 rm -f "${objroot}VERSION.tmp"
10173
10174 fi
10175
10176
10177 if test ! -e "${objroot}VERSION" ; then
10178 if test ! -e "${srcroot}VERSION" ; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
10180 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
10181 echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
10182 else
10183 cp ${srcroot}VERSION ${objroot}VERSION
10184 fi
10185 fi
10186 jemalloc_version=`cat "${objroot}VERSION"`
10187 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
10188 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
10189 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
10190 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
10191 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
10192
10193
10194
10195
10196
10197
10198
10199
10200 if test "x$abi" != "xpecoff" ; then
10201 $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h
10202
10203 for ac_header in pthread.h
10204 do :
10205 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10206 if test "x$ac_cv_header_pthread_h" = xyes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_PTHREAD_H 1
10209 _ACEOF
10210
10211 else
10212 as_fn_error $? "pthread.h is missing" "$LINENO" 5
10213 fi
10214
10215 done
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10218 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10219 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 ac_check_lib_save_LIBS=$LIBS
10223 LIBS="-lpthread $LIBS"
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226
10227 /* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 char pthread_create ();
10234 int
10235 main ()
10236 {
10237 return pthread_create ();
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 ac_cv_lib_pthread_pthread_create=yes
10244 else
10245 ac_cv_lib_pthread_pthread_create=no
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10252 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10253 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10254 T_APPEND_V=-lpthread
10255 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10256 LIBS="${LIBS}${T_APPEND_V}"
10257 else
10258 LIBS="${LIBS} ${T_APPEND_V}"
10259 fi
10260
10261
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10264 $as_echo_n "checking for library containing pthread_create... " >&6; }
10265 if ${ac_cv_search_pthread_create+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 ac_func_search_save_LIBS=$LIBS
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271
10272 /* Override any GCC internal prototype to avoid an error.
10273 Use char because int might match the return type of a GCC
10274 builtin and then its argument prototype would still apply. */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 char pthread_create ();
10279 int
10280 main ()
10281 {
10282 return pthread_create ();
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 for ac_lib in '' ; do
10288 if test -z "$ac_lib"; then
10289 ac_res="none required"
10290 else
10291 ac_res=-l$ac_lib
10292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10293 fi
10294 if ac_fn_c_try_link "$LINENO"; then :
10295 ac_cv_search_pthread_create=$ac_res
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext
10299 if ${ac_cv_search_pthread_create+:} false; then :
10300 break
10301 fi
10302 done
10303 if ${ac_cv_search_pthread_create+:} false; then :
10304
10305 else
10306 ac_cv_search_pthread_create=no
10307 fi
10308 rm conftest.$ac_ext
10309 LIBS=$ac_func_search_save_LIBS
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10312 $as_echo "$ac_cv_search_pthread_create" >&6; }
10313 ac_res=$ac_cv_search_pthread_create
10314 if test "$ac_res" != no; then :
10315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10316
10317 else
10318 as_fn_error $? "libpthread is missing" "$LINENO" 5
10319 fi
10320
10321 fi
10322
10323 wrap_syms="${wrap_syms} pthread_create"
10324 have_pthread="1"
10325 have_dlsym="1"
10326 for ac_header in dlfcn.h
10327 do :
10328 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10329 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10330 cat >>confdefs.h <<_ACEOF
10331 #define HAVE_DLFCN_H 1
10332 _ACEOF
10333 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10334 if test "x$ac_cv_func_dlsym" = xyes; then :
10335
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10338 $as_echo_n "checking for dlsym in -ldl... " >&6; }
10339 if ${ac_cv_lib_dl_dlsym+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 ac_check_lib_save_LIBS=$LIBS
10343 LIBS="-ldl $LIBS"
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char dlsym ();
10354 int
10355 main ()
10356 {
10357 return dlsym ();
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 if ac_fn_c_try_link "$LINENO"; then :
10363 ac_cv_lib_dl_dlsym=yes
10364 else
10365 ac_cv_lib_dl_dlsym=no
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
10369 LIBS=$ac_check_lib_save_LIBS
10370 fi
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10372 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10373 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10374 LIBS="$LIBS -ldl"
10375 else
10376 have_dlsym="0"
10377 fi
10378
10379 fi
10380
10381 else
10382 have_dlsym="0"
10383 fi
10384
10385 done
10386
10387 if test "x$have_dlsym" = "x1" ; then
10388 $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h
10389
10390 fi
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10393 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10394 if ${je_cv_pthread_atfork+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399
10400 #include <pthread.h>
10401
10402 int
10403 main ()
10404 {
10405
10406 pthread_atfork((void *)0, (void *)0, (void *)0);
10407
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"; then :
10413 je_cv_pthread_atfork=yes
10414 else
10415 je_cv_pthread_atfork=no
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10421 $as_echo "$je_cv_pthread_atfork" >&6; }
10422
10423 if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10424 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
10425
10426 fi
10427
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10429 $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10430 if ${je_cv_pthread_setname_np+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435
10436 #include <pthread.h>
10437
10438 int
10439 main ()
10440 {
10441
10442 pthread_setname_np(pthread_self(), "setname_test");
10443
10444 ;
10445 return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 je_cv_pthread_setname_np=yes
10450 else
10451 je_cv_pthread_setname_np=no
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10457 $as_echo "$je_cv_pthread_setname_np" >&6; }
10458
10459 if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10460 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h
10461
10462 fi
10463 fi
10464
10465 T_APPEND_V=-D_REENTRANT
10466 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10467 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10468 else
10469 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10470 fi
10471
10472
10473
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10475 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10476 if ${ac_cv_search_clock_gettime+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 ac_func_search_save_LIBS=$LIBS
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char clock_gettime ();
10490 int
10491 main ()
10492 {
10493 return clock_gettime ();
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 for ac_lib in '' rt; do
10499 if test -z "$ac_lib"; then
10500 ac_res="none required"
10501 else
10502 ac_res=-l$ac_lib
10503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10504 fi
10505 if ac_fn_c_try_link "$LINENO"; then :
10506 ac_cv_search_clock_gettime=$ac_res
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext
10510 if ${ac_cv_search_clock_gettime+:} false; then :
10511 break
10512 fi
10513 done
10514 if ${ac_cv_search_clock_gettime+:} false; then :
10515
10516 else
10517 ac_cv_search_clock_gettime=no
10518 fi
10519 rm conftest.$ac_ext
10520 LIBS=$ac_func_search_save_LIBS
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10523 $as_echo "$ac_cv_search_clock_gettime" >&6; }
10524 ac_res=$ac_cv_search_clock_gettime
10525 if test "$ac_res" != no; then :
10526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10527
10528 fi
10529
10530
10531 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10532 if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10533 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10534
10535
10536 unset ac_cv_search_clock_gettime
10537
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10539 $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10540 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10541 T_APPEND_V=-dynamic
10542 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10543 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10544 else
10545 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10546 fi
10547
10548
10549 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10550 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10551 else
10552 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10553 fi
10554
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557
10558
10559 int
10560 main ()
10561 {
10562
10563 return 0;
10564
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_compile "$LINENO"; then :
10570 je_cv_cflags_added=-dynamic
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10573 else
10574 je_cv_cflags_added=
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10577 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10578
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10582 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10583 else
10584 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10585 fi
10586
10587
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10589 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10590 if ${ac_cv_search_clock_gettime+:} false; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 ac_func_search_save_LIBS=$LIBS
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char clock_gettime ();
10604 int
10605 main ()
10606 {
10607 return clock_gettime ();
10608 ;
10609 return 0;
10610 }
10611 _ACEOF
10612 for ac_lib in '' rt; do
10613 if test -z "$ac_lib"; then
10614 ac_res="none required"
10615 else
10616 ac_res=-l$ac_lib
10617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10618 fi
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 ac_cv_search_clock_gettime=$ac_res
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext
10624 if ${ac_cv_search_clock_gettime+:} false; then :
10625 break
10626 fi
10627 done
10628 if ${ac_cv_search_clock_gettime+:} false; then :
10629
10630 else
10631 ac_cv_search_clock_gettime=no
10632 fi
10633 rm conftest.$ac_ext
10634 LIBS=$ac_func_search_save_LIBS
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10637 $as_echo "$ac_cv_search_clock_gettime" >&6; }
10638 ac_res=$ac_cv_search_clock_gettime
10639 if test "$ac_res" != no; then :
10640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10641
10642 fi
10643
10644
10645 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10646 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10647 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10648 else
10649 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10650 fi
10651
10652
10653 fi
10654 fi
10655
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
10658 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
10659 if ${je_cv_clock_monotonic_coarse+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664
10665 #include <time.h>
10666
10667 int
10668 main ()
10669 {
10670
10671 struct timespec ts;
10672
10673 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
10674
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_c_try_link "$LINENO"; then :
10680 je_cv_clock_monotonic_coarse=yes
10681 else
10682 je_cv_clock_monotonic_coarse=no
10683 fi
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 fi
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
10688 $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
10689
10690 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
10691 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
10692
10693 fi
10694
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
10697 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
10698 if ${je_cv_clock_monotonic+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 #include <unistd.h>
10705 #include <time.h>
10706
10707 int
10708 main ()
10709 {
10710
10711 struct timespec ts;
10712
10713 clock_gettime(CLOCK_MONOTONIC, &ts);
10714 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
10715 # error _POSIX_MONOTONIC_CLOCK missing/invalid
10716 #endif
10717
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 je_cv_clock_monotonic=yes
10724 else
10725 je_cv_clock_monotonic=no
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
10731 $as_echo "$je_cv_clock_monotonic" >&6; }
10732
10733 if test "x${je_cv_clock_monotonic}" = "xyes" ; then
10734 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
10735
10736 fi
10737
10738
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
10740 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
10741 if ${je_cv_mach_absolute_time+:} false; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747 #include <mach/mach_time.h>
10748
10749 int
10750 main ()
10751 {
10752
10753 mach_absolute_time();
10754
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_link "$LINENO"; then :
10760 je_cv_mach_absolute_time=yes
10761 else
10762 je_cv_mach_absolute_time=no
10763 fi
10764 rm -f core conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
10768 $as_echo "$je_cv_mach_absolute_time" >&6; }
10769
10770 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
10771 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
10772
10773 fi
10774
10775 # Check whether --enable-syscall was given.
10776 if test "${enable_syscall+set}" = set; then :
10777 enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
10778 enable_syscall="0"
10779 else
10780 enable_syscall="1"
10781 fi
10782
10783 else
10784 enable_syscall="1"
10785
10786 fi
10787
10788 if test "x$enable_syscall" = "x1" ; then
10789 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10790
10791
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
10793 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
10794 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10795 T_APPEND_V=-Werror
10796 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10797 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10798 else
10799 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10800 fi
10801
10802
10803 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10804 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10805 else
10806 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10807 fi
10808
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811
10812
10813 int
10814 main ()
10815 {
10816
10817 return 0;
10818
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_compile "$LINENO"; then :
10824 je_cv_cflags_added=-Werror
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10826 $as_echo "yes" >&6; }
10827 else
10828 je_cv_cflags_added=
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10831 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10832
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10836 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10837 else
10838 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10839 fi
10840
10841
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
10844 $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
10845 if ${je_cv_syscall+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 #include <sys/syscall.h>
10852 #include <unistd.h>
10853
10854 int
10855 main ()
10856 {
10857
10858 syscall(SYS_write, 2, "hello", 5);
10859
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865 je_cv_syscall=yes
10866 else
10867 je_cv_syscall=no
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
10873 $as_echo "$je_cv_syscall" >&6; }
10874
10875 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10876 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10877 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10878 else
10879 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10880 fi
10881
10882
10883 if test "x$je_cv_syscall" = "xyes" ; then
10884 $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
10885
10886 fi
10887 fi
10888
10889 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
10890 if test "x$ac_cv_func_secure_getenv" = xyes; then :
10891 have_secure_getenv="1"
10892 else
10893 have_secure_getenv="0"
10894
10895 fi
10896
10897 if test "x$have_secure_getenv" = "x1" ; then
10898 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
10899
10900 fi
10901
10902 ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
10903 if test "x$ac_cv_func_sched_getcpu" = xyes; then :
10904 have_sched_getcpu="1"
10905 else
10906 have_sched_getcpu="0"
10907
10908 fi
10909
10910 if test "x$have_sched_getcpu" = "x1" ; then
10911 $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h
10912
10913 fi
10914
10915 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
10916 if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
10917 have_sched_setaffinity="1"
10918 else
10919 have_sched_setaffinity="0"
10920
10921 fi
10922
10923 if test "x$have_sched_setaffinity" = "x1" ; then
10924 $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h
10925
10926 fi
10927
10928 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
10929 if test "x$ac_cv_func_issetugid" = xyes; then :
10930 have_issetugid="1"
10931 else
10932 have_issetugid="0"
10933
10934 fi
10935
10936 if test "x$have_issetugid" = "x1" ; then
10937 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
10938
10939 fi
10940
10941 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
10942 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
10943 have__malloc_thread_cleanup="1"
10944 else
10945 have__malloc_thread_cleanup="0"
10946
10947 fi
10948
10949 if test "x$have__malloc_thread_cleanup" = "x1" ; then
10950 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
10951
10952 wrap_syms="${wrap_syms} _malloc_thread_cleanup"
10953 force_tls="1"
10954 fi
10955
10956 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
10957 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
10958 have__pthread_mutex_init_calloc_cb="1"
10959 else
10960 have__pthread_mutex_init_calloc_cb="0"
10961
10962 fi
10963
10964 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
10965 $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
10966
10967 wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
10968 fi
10969
10970 # Check whether --enable-lazy_lock was given.
10971 if test "${enable_lazy_lock+set}" = set; then :
10972 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
10973 enable_lazy_lock="0"
10974 else
10975 enable_lazy_lock="1"
10976 fi
10977
10978 else
10979 enable_lazy_lock=""
10980
10981 fi
10982
10983 if test "x${enable_lazy_lock}" = "x" ; then
10984 if test "x${force_lazy_lock}" = "x1" ; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
10986 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
10987 enable_lazy_lock="1"
10988 else
10989 enable_lazy_lock="0"
10990 fi
10991 fi
10992 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
10994 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
10995 enable_lazy_lock="0"
10996 fi
10997 if test "x$enable_lazy_lock" = "x1" ; then
10998 if test "x$have_dlsym" = "x1" ; then
10999 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
11000
11001 else
11002 as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11003 fi
11004 fi
11005
11006
11007 if test "x${force_tls}" = "x1" ; then
11008 enable_tls="1"
11009 elif test "x${force_tls}" = "x0" ; then
11010 enable_tls="0"
11011 else
11012 enable_tls="1"
11013 fi
11014 if test "x${enable_tls}" = "x1" ; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11016 $as_echo_n "checking for TLS... " >&6; }
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 __thread int x;
11021
11022 int
11023 main ()
11024 {
11025
11026 x = 42;
11027
11028 return 0;
11029
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_compile "$LINENO"; then :
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 enable_tls="0"
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 else
11044 enable_tls="0"
11045 fi
11046
11047 if test "x${enable_tls}" = "x1" ; then
11048 cat >>confdefs.h <<_ACEOF
11049 #define JEMALLOC_TLS
11050 _ACEOF
11051
11052 fi
11053
11054
11055
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11057 $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11058 if ${je_cv_c11_atomics+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063
11064 #include <stdint.h>
11065 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11066 #include <stdatomic.h>
11067 #else
11068 #error Atomics not available
11069 #endif
11070
11071 int
11072 main ()
11073 {
11074
11075 uint64_t *p = (uint64_t *)0;
11076 uint64_t x = 1;
11077 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11078 uint64_t r = atomic_fetch_add(a, x) + x;
11079 return r == 0;
11080
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 je_cv_c11_atomics=yes
11087 else
11088 je_cv_c11_atomics=no
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11094 $as_echo "$je_cv_c11_atomics" >&6; }
11095
11096 if test "x${je_cv_c11_atomics}" = "xyes" ; then
11097 $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11098
11099 fi
11100
11101
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11104 $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11105 if ${je_cv_gcc_atomic_atomics+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110
11111
11112 int
11113 main ()
11114 {
11115
11116 int x = 0;
11117 int val = 1;
11118 int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11119 int after_add = x;
11120 return after_add == 1;
11121
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 je_cv_gcc_atomic_atomics=yes
11128 else
11129 je_cv_gcc_atomic_atomics=no
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 fi
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11135 $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11136
11137 if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11138 $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11139
11140 fi
11141
11142
11143
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11145 $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11146 if ${je_cv_gcc_sync_atomics+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151
11152
11153 int
11154 main ()
11155 {
11156
11157 int x = 0;
11158 int before_add = __sync_fetch_and_add(&x, 1);
11159 int after_add = x;
11160 return (before_add == 0) && (after_add == 1);
11161
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 je_cv_gcc_sync_atomics=yes
11168 else
11169 je_cv_gcc_sync_atomics=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11175 $as_echo "$je_cv_gcc_sync_atomics" >&6; }
11176
11177 if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11178 $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11179
11180 fi
11181
11182
11183
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11185 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11186 if ${je_cv_osatomic+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191
11192 #include <libkern/OSAtomic.h>
11193 #include <inttypes.h>
11194
11195 int
11196 main ()
11197 {
11198
11199 {
11200 int32_t x32 = 0;
11201 volatile int32_t *x32p = &x32;
11202 OSAtomicAdd32(1, x32p);
11203 }
11204 {
11205 int64_t x64 = 0;
11206 volatile int64_t *x64p = &x64;
11207 OSAtomicAdd64(1, x64p);
11208 }
11209
11210 ;
11211 return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215 je_cv_osatomic=yes
11216 else
11217 je_cv_osatomic=no
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11223 $as_echo "$je_cv_osatomic" >&6; }
11224
11225 if test "x${je_cv_osatomic}" = "xyes" ; then
11226 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
11227
11228 fi
11229
11230
11231
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11233 $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11234 if ${je_cv_madvise+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 #include <sys/mman.h>
11241
11242 int
11243 main ()
11244 {
11245
11246 madvise((void *)0, 0, 0);
11247
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 je_cv_madvise=yes
11254 else
11255 je_cv_madvise=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11261 $as_echo "$je_cv_madvise" >&6; }
11262
11263 if test "x${je_cv_madvise}" = "xyes" ; then
11264 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
11265
11266
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11269 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11270 if ${je_cv_madv_free+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275
11276 #include <sys/mman.h>
11277
11278 int
11279 main ()
11280 {
11281
11282 madvise((void *)0, 0, MADV_FREE);
11283
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 je_cv_madv_free=yes
11290 else
11291 je_cv_madv_free=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11297 $as_echo "$je_cv_madv_free" >&6; }
11298
11299 if test "x${je_cv_madv_free}" = "xyes" ; then
11300 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
11301
11302 elif test "x${je_cv_madvise}" = "xyes" ; then
11303 case "${host_cpu}" in i686|x86_64)
11304 case "${host}" in *-*-linux*)
11305 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
11306
11307 $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h
11308
11309 ;;
11310 esac
11311 ;;
11312 esac
11313 fi
11314
11315
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11317 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11318 if ${je_cv_madv_dontneed+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323
11324 #include <sys/mman.h>
11325
11326 int
11327 main ()
11328 {
11329
11330 madvise((void *)0, 0, MADV_DONTNEED);
11331
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337 je_cv_madv_dontneed=yes
11338 else
11339 je_cv_madv_dontneed=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11345 $as_echo "$je_cv_madv_dontneed" >&6; }
11346
11347 if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11348 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
11349
11350 fi
11351
11352
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11354 $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11355 if ${je_cv_madv_dontdump+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 #include <sys/mman.h>
11362
11363 int
11364 main ()
11365 {
11366
11367 madvise((void *)0, 0, MADV_DONTDUMP);
11368 madvise((void *)0, 0, MADV_DODUMP);
11369
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 je_cv_madv_dontdump=yes
11376 else
11377 je_cv_madv_dontdump=no
11378 fi
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11383 $as_echo "$je_cv_madv_dontdump" >&6; }
11384
11385 if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11386 $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h
11387
11388 fi
11389
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11392 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11393 if ${je_cv_thp+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398
11399 #include <sys/mman.h>
11400
11401 int
11402 main ()
11403 {
11404
11405 madvise((void *)0, 0, MADV_HUGEPAGE);
11406 madvise((void *)0, 0, MADV_NOHUGEPAGE);
11407
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 je_cv_thp=yes
11414 else
11415 je_cv_thp=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 fi
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11421 $as_echo "$je_cv_thp" >&6; }
11422
11423 case "${host_cpu}" in
11424 arm*)
11425 ;;
11426 *)
11427 if test "x${je_cv_thp}" = "xyes" ; then
11428 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
11429
11430 fi
11431 ;;
11432 esac
11433 fi
11434
11435
11436
11437
11438 if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
11441 $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
11442 if ${je_cv_sync_compare_and_swap_4+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447
11448 #include <stdint.h>
11449
11450 int
11451 main ()
11452 {
11453
11454 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
11455 {
11456 uint32_t x32 = 0;
11457 __sync_add_and_fetch(&x32, 42);
11458 __sync_sub_and_fetch(&x32, 1);
11459 }
11460 #else
11461 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
11462 #endif
11463
11464 ;
11465 return 0;
11466 }
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 je_cv_sync_compare_and_swap_4=yes
11470 else
11471 je_cv_sync_compare_and_swap_4=no
11472 fi
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
11477 $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
11478
11479 if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
11480 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h
11481
11482 fi
11483
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
11486 $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
11487 if ${je_cv_sync_compare_and_swap_8+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492
11493 #include <stdint.h>
11494
11495 int
11496 main ()
11497 {
11498
11499 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
11500 {
11501 uint64_t x64 = 0;
11502 __sync_add_and_fetch(&x64, 42);
11503 __sync_sub_and_fetch(&x64, 1);
11504 }
11505 #else
11506 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
11507 #endif
11508
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 je_cv_sync_compare_and_swap_8=yes
11515 else
11516 je_cv_sync_compare_and_swap_8=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
11522 $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
11523
11524 if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
11525 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h
11526
11527 fi
11528
11529 fi
11530
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11533 $as_echo_n "checking for __builtin_clz... " >&6; }
11534 if ${je_cv_builtin_clz+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 int
11541 main ()
11542 {
11543
11544 {
11545 unsigned x = 0;
11546 int y = __builtin_clz(x);
11547 }
11548 {
11549 unsigned long x = 0;
11550 int y = __builtin_clzl(x);
11551 }
11552
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_link "$LINENO"; then :
11558 je_cv_builtin_clz=yes
11559 else
11560 je_cv_builtin_clz=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11566 $as_echo "$je_cv_builtin_clz" >&6; }
11567
11568 if test "x${je_cv_builtin_clz}" = "xyes" ; then
11569 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
11570
11571 fi
11572
11573
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
11576 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
11577 if ${je_cv_os_unfair_lock+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 #include <os/lock.h>
11584 #include <AvailabilityMacros.h>
11585
11586 int
11587 main ()
11588 {
11589
11590 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
11591 #error "os_unfair_lock is not supported"
11592 #else
11593 os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
11594 os_unfair_lock_lock(&lock);
11595 os_unfair_lock_unlock(&lock);
11596 #endif
11597
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 je_cv_os_unfair_lock=yes
11604 else
11605 je_cv_os_unfair_lock=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
11611 $as_echo "$je_cv_os_unfair_lock" >&6; }
11612
11613 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
11614 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
11615
11616 fi
11617
11618
11619
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
11621 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
11622 if ${je_cv_osspin+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627
11628 #include <libkern/OSAtomic.h>
11629 #include <inttypes.h>
11630
11631 int
11632 main ()
11633 {
11634
11635 OSSpinLock lock = 0;
11636 OSSpinLockLock(&lock);
11637 OSSpinLockUnlock(&lock);
11638
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 je_cv_osspin=yes
11645 else
11646 je_cv_osspin=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 fi
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
11652 $as_echo "$je_cv_osspin" >&6; }
11653
11654 if test "x${je_cv_osspin}" = "xyes" ; then
11655 $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h
11656
11657 fi
11658
11659
11660 # Check whether --enable-zone-allocator was given.
11661 if test "${enable_zone_allocator+set}" = set; then :
11662 enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
11663 enable_zone_allocator="0"
11664 else
11665 enable_zone_allocator="1"
11666 fi
11667
11668 else
11669 if test "x${abi}" = "xmacho"; then
11670 enable_zone_allocator="1"
11671 fi
11672
11673
11674 fi
11675
11676
11677
11678 if test "x${enable_zone_allocator}" = "x1" ; then
11679 if test "x${abi}" != "xmacho"; then
11680 as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
11681 fi
11682 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
11683
11684 fi
11685
11686 # Check whether --enable-initial-exec-tls was given.
11687 if test "${enable_initial_exec_tls+set}" = set; then :
11688 enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
11689 enable_initial_exec_tls="0"
11690 else
11691 enable_initial_exec_tls="1"
11692 fi
11693
11694 else
11695 enable_initial_exec_tls="1"
11696
11697 fi
11698
11699
11700
11701 if test "x${je_cv_tls_model}" = "xyes" -a \
11702 "x${enable_initial_exec_tls}" = "x1" ; then
11703 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
11704
11705 else
11706 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
11707
11708 fi
11709
11710
11711 if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
11712 -a "x${je_cv_os_unfair_lock}" != "xyes" \
11713 -a "x${je_cv_osspin}" != "xyes" ; then
11714 $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
11715
11716 fi
11717
11718
11719
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
11721 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
11722 if ${je_cv_glibc_malloc_hook+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727
11728 #include <stddef.h>
11729
11730 extern void (* __free_hook)(void *ptr);
11731 extern void *(* __malloc_hook)(size_t size);
11732 extern void *(* __realloc_hook)(void *ptr, size_t size);
11733
11734 int
11735 main ()
11736 {
11737
11738 void *ptr = 0L;
11739 if (__malloc_hook) ptr = __malloc_hook(1);
11740 if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
11741 if (__free_hook && ptr) __free_hook(ptr);
11742
11743 ;
11744 return 0;
11745 }
11746 _ACEOF
11747 if ac_fn_c_try_link "$LINENO"; then :
11748 je_cv_glibc_malloc_hook=yes
11749 else
11750 je_cv_glibc_malloc_hook=no
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
11756 $as_echo "$je_cv_glibc_malloc_hook" >&6; }
11757
11758 if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
11759 if test "x${JEMALLOC_PREFIX}" = "x" ; then
11760 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
11761
11762 wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
11763 fi
11764 fi
11765
11766
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
11768 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
11769 if ${je_cv_glibc_memalign_hook+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774
11775 #include <stddef.h>
11776
11777 extern void *(* __memalign_hook)(size_t alignment, size_t size);
11778
11779 int
11780 main ()
11781 {
11782
11783 void *ptr = 0L;
11784 if (__memalign_hook) ptr = __memalign_hook(16, 7);
11785
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 if ac_fn_c_try_link "$LINENO"; then :
11791 je_cv_glibc_memalign_hook=yes
11792 else
11793 je_cv_glibc_memalign_hook=no
11794 fi
11795 rm -f core conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
11799 $as_echo "$je_cv_glibc_memalign_hook" >&6; }
11800
11801 if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
11802 if test "x${JEMALLOC_PREFIX}" = "x" ; then
11803 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
11804
11805 wrap_syms="${wrap_syms} __memalign_hook"
11806 fi
11807 fi
11808
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
11811 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
11812 if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817
11818 #include <pthread.h>
11819
11820 int
11821 main ()
11822 {
11823
11824 pthread_mutexattr_t attr;
11825 pthread_mutexattr_init(&attr);
11826 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
11827 pthread_mutexattr_destroy(&attr);
11828
11829 ;
11830 return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"; then :
11834 je_cv_pthread_mutex_adaptive_np=yes
11835 else
11836 je_cv_pthread_mutex_adaptive_np=no
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
11842 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
11843
11844 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
11845 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
11846
11847 fi
11848
11849 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
11853 $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
11854 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11855 T_APPEND_V=-D_GNU_SOURCE
11856 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11857 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11858 else
11859 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11860 fi
11861
11862
11863 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11864 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11865 else
11866 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11867 fi
11868
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872
11873 int
11874 main ()
11875 {
11876
11877 return 0;
11878
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 je_cv_cflags_added=-D_GNU_SOURCE
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886 $as_echo "yes" >&6; }
11887 else
11888 je_cv_cflags_added=
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11892
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11896 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11897 else
11898 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11899 fi
11900
11901
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11904 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
11905 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11906 T_APPEND_V=-Werror
11907 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11908 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11909 else
11910 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11911 fi
11912
11913
11914 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11915 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11916 else
11917 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11918 fi
11919
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922
11923
11924 int
11925 main ()
11926 {
11927
11928 return 0;
11929
11930 ;
11931 return 0;
11932 }
11933 _ACEOF
11934 if ac_fn_c_try_compile "$LINENO"; then :
11935 je_cv_cflags_added=-Werror
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937 $as_echo "yes" >&6; }
11938 else
11939 je_cv_cflags_added=
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11942 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11943
11944 fi
11945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11947 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11948 else
11949 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11950 fi
11951
11952
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
11955 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
11956 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11957 T_APPEND_V=-herror_on_warning
11958 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11959 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11960 else
11961 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11962 fi
11963
11964
11965 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11966 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11967 else
11968 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11969 fi
11970
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973
11974
11975 int
11976 main ()
11977 {
11978
11979 return 0;
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"; then :
11986 je_cv_cflags_added=-herror_on_warning
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11989 else
11990 je_cv_cflags_added=
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11994
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11998 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11999 else
12000 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12001 fi
12002
12003
12004
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12006 $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12007 if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 #include <errno.h>
12014 #include <stdio.h>
12015 #include <stdlib.h>
12016 #include <string.h>
12017
12018 int
12019 main ()
12020 {
12021
12022 char *buffer = (char *) malloc(100);
12023 char *error = strerror_r(EINVAL, buffer, 100);
12024 printf("%s\n", error);
12025
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 je_cv_strerror_r_returns_char_with_gnu_source=yes
12032 else
12033 je_cv_strerror_r_returns_char_with_gnu_source=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12039 $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12040
12041 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12042 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12043 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12044 else
12045 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12046 fi
12047
12048
12049 if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12050 $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h
12051
12052 fi
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12055 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12056 if ${ac_cv_header_stdbool_h+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061
12062 #include <stdbool.h>
12063 #ifndef bool
12064 "error: bool is not defined"
12065 #endif
12066 #ifndef false
12067 "error: false is not defined"
12068 #endif
12069 #if false
12070 "error: false is not 0"
12071 #endif
12072 #ifndef true
12073 "error: true is not defined"
12074 #endif
12075 #if true != 1
12076 "error: true is not 1"
12077 #endif
12078 #ifndef __bool_true_false_are_defined
12079 "error: __bool_true_false_are_defined is not defined"
12080 #endif
12081
12082 struct s { _Bool s: 1; _Bool t; } s;
12083
12084 char a[true == 1 ? 1 : -1];
12085 char b[false == 0 ? 1 : -1];
12086 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12087 char d[(bool) 0.5 == true ? 1 : -1];
12088 /* See body of main program for 'e'. */
12089 char f[(_Bool) 0.0 == false ? 1 : -1];
12090 char g[true];
12091 char h[sizeof (_Bool)];
12092 char i[sizeof s.t];
12093 enum { j = false, k = true, l = false * true, m = true * 256 };
12094 /* The following fails for
12095 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12096 _Bool n[m];
12097 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12098 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12099 /* Catch a bug in an HP-UX C compiler. See
12100 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12101 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12102 */
12103 _Bool q = true;
12104 _Bool *pq = &q;
12105
12106 int
12107 main ()
12108 {
12109
12110 bool e = &s;
12111 *pq |= q;
12112 *pq |= ! q;
12113 /* Refer to every declared value, to avoid compiler optimizations. */
12114 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12115 + !m + !n + !o + !p + !q + !pq);
12116
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122 ac_cv_header_stdbool_h=yes
12123 else
12124 ac_cv_header_stdbool_h=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12129 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12130 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12131 if test "x$ac_cv_type__Bool" = xyes; then :
12132
12133 cat >>confdefs.h <<_ACEOF
12134 #define HAVE__BOOL 1
12135 _ACEOF
12136
12137
12138 fi
12139
12140
12141 if test $ac_cv_header_stdbool_h = yes; then
12142
12143 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12144
12145 fi
12146
12147
12148
12149 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12150
12151 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12152
12153 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12154
12155 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12156
12157 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12158
12159 ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
12160
12161 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12162
12163 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12164
12165 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12166
12167 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12168
12169 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12170
12171
12172
12173
12174 ac_config_headers="$ac_config_headers $cfghdrs_tup"
12175
12176
12177
12178 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12179
12180
12181
12182 cat >confcache <<\_ACEOF
12183 # This file is a shell script that caches the results of configure
12184 # tests run on this system so they can be shared between configure
12185 # scripts and configure runs, see configure's option --config-cache.
12186 # It is not useful on other systems. If it contains results you don't
12187 # want to keep, you may remove or edit it.
12188 #
12189 # config.status only pays attention to the cache file if you give it
12190 # the --recheck option to rerun configure.
12191 #
12192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12194 # following values.
12195
12196 _ACEOF
12197
12198 # The following way of writing the cache mishandles newlines in values,
12199 # but we know of no workaround that is simple, portable, and efficient.
12200 # So, we kill variables containing newlines.
12201 # Ultrix sh set writes to stderr and can't be redirected directly,
12202 # and sets the high bit in the cache file unless we assign to the vars.
12203 (
12204 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12205 eval ac_val=\$$ac_var
12206 case $ac_val in #(
12207 *${as_nl}*)
12208 case $ac_var in #(
12209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12211 esac
12212 case $ac_var in #(
12213 _ | IFS | as_nl) ;; #(
12214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12215 *) { eval $ac_var=; unset $ac_var;} ;;
12216 esac ;;
12217 esac
12218 done
12219
12220 (set) 2>&1 |
12221 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12222 *${as_nl}ac_space=\ *)
12223 # `set' does not quote correctly, so add quotes: double-quote
12224 # substitution turns \\\\ into \\, and sed turns \\ into \.
12225 sed -n \
12226 "s/'/'\\\\''/g;
12227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12228 ;; #(
12229 *)
12230 # `set' quotes correctly as required by POSIX, so do not add quotes.
12231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12232 ;;
12233 esac |
12234 sort
12235 ) |
12236 sed '
12237 /^ac_cv_env_/b end
12238 t clear
12239 :clear
12240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12241 t end
12242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12243 :end' >>confcache
12244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12245 if test -w "$cache_file"; then
12246 if test "x$cache_file" != "x/dev/null"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12248 $as_echo "$as_me: updating cache $cache_file" >&6;}
12249 if test ! -f "$cache_file" || test -h "$cache_file"; then
12250 cat confcache >"$cache_file"
12251 else
12252 case $cache_file in #(
12253 */* | ?:*)
12254 mv -f confcache "$cache_file"$$ &&
12255 mv -f "$cache_file"$$ "$cache_file" ;; #(
12256 *)
12257 mv -f confcache "$cache_file" ;;
12258 esac
12259 fi
12260 fi
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12263 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12264 fi
12265 fi
12266 rm -f confcache
12267
12268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12269 # Let make expand exec_prefix.
12270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12271
12272 DEFS=-DHAVE_CONFIG_H
12273
12274 ac_libobjs=
12275 ac_ltlibobjs=
12276 U=
12277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12278 # 1. Remove the extension, and $U if already installed.
12279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12282 # will be set to the directory where LIBOBJS objects are built.
12283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12285 done
12286 LIBOBJS=$ac_libobjs
12287
12288 LTLIBOBJS=$ac_ltlibobjs
12289
12290
12291
12292
12293 : "${CONFIG_STATUS=./config.status}"
12294 ac_write_fail=0
12295 ac_clean_files_save=$ac_clean_files
12296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12299 as_write_fail=0
12300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12301 #! $SHELL
12302 # Generated by $as_me.
12303 # Run this file to recreate the current configuration.
12304 # Compiler output produced by configure, useful for debugging
12305 # configure, is in config.log if it exists.
12306
12307 debug=false
12308 ac_cs_recheck=false
12309 ac_cs_silent=false
12310
12311 SHELL=\${CONFIG_SHELL-$SHELL}
12312 export SHELL
12313 _ASEOF
12314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12315 ## -------------------- ##
12316 ## M4sh Initialization. ##
12317 ## -------------------- ##
12318
12319 # Be more Bourne compatible
12320 DUALCASE=1; export DUALCASE # for MKS sh
12321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12322 emulate sh
12323 NULLCMD=:
12324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12325 # is contrary to our usage. Disable this feature.
12326 alias -g '${1+"$@"}'='"$@"'
12327 setopt NO_GLOB_SUBST
12328 else
12329 case `(set -o) 2>/dev/null` in #(
12330 *posix*) :
12331 set -o posix ;; #(
12332 *) :
12333 ;;
12334 esac
12335 fi
12336
12337
12338 as_nl='
12339 '
12340 export as_nl
12341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12345 # Prefer a ksh shell builtin over an external printf program on Solaris,
12346 # but without wasting forks for bash or zsh.
12347 if test -z "$BASH_VERSION$ZSH_VERSION" \
12348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12349 as_echo='print -r --'
12350 as_echo_n='print -rn --'
12351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12352 as_echo='printf %s\n'
12353 as_echo_n='printf %s'
12354 else
12355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12357 as_echo_n='/usr/ucb/echo -n'
12358 else
12359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12360 as_echo_n_body='eval
12361 arg=$1;
12362 case $arg in #(
12363 *"$as_nl"*)
12364 expr "X$arg" : "X\\(.*\\)$as_nl";
12365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12366 esac;
12367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12368 '
12369 export as_echo_n_body
12370 as_echo_n='sh -c $as_echo_n_body as_echo'
12371 fi
12372 export as_echo_body
12373 as_echo='sh -c $as_echo_body as_echo'
12374 fi
12375
12376 # The user is always right.
12377 if test "${PATH_SEPARATOR+set}" != set; then
12378 PATH_SEPARATOR=:
12379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12381 PATH_SEPARATOR=';'
12382 }
12383 fi
12384
12385
12386 # IFS
12387 # We need space, tab and new line, in precisely that order. Quoting is
12388 # there to prevent editors from complaining about space-tab.
12389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12390 # splitting by setting IFS to empty value.)
12391 IFS=" "" $as_nl"
12392
12393 # Find who we are. Look in the path if we contain no directory separator.
12394 as_myself=
12395 case $0 in #((
12396 *[\\/]* ) as_myself=$0 ;;
12397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12399 do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12403 done
12404 IFS=$as_save_IFS
12405
12406 ;;
12407 esac
12408 # We did not find ourselves, most probably we were run as `sh COMMAND'
12409 # in which case we are not to be found in the path.
12410 if test "x$as_myself" = x; then
12411 as_myself=$0
12412 fi
12413 if test ! -f "$as_myself"; then
12414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12415 exit 1
12416 fi
12417
12418 # Unset variables that we do not need and which cause bugs (e.g. in
12419 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12420 # suppresses any "Segmentation fault" message there. '((' could
12421 # trigger a bug in pdksh 5.2.14.
12422 for as_var in BASH_ENV ENV MAIL MAILPATH
12423 do eval test x\${$as_var+set} = xset \
12424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12425 done
12426 PS1='$ '
12427 PS2='> '
12428 PS4='+ '
12429
12430 # NLS nuisances.
12431 LC_ALL=C
12432 export LC_ALL
12433 LANGUAGE=C
12434 export LANGUAGE
12435
12436 # CDPATH.
12437 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12438
12439
12440 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12441 # ----------------------------------------
12442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12444 # script with STATUS, using 1 if that was 0.
12445 as_fn_error ()
12446 {
12447 as_status=$1; test $as_status -eq 0 && as_status=1
12448 if test "$4"; then
12449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12451 fi
12452 $as_echo "$as_me: error: $2" >&2
12453 as_fn_exit $as_status
12454 } # as_fn_error
12455
12456
12457 # as_fn_set_status STATUS
12458 # -----------------------
12459 # Set $? to STATUS, without forking.
12460 as_fn_set_status ()
12461 {
12462 return $1
12463 } # as_fn_set_status
12464
12465 # as_fn_exit STATUS
12466 # -----------------
12467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12468 as_fn_exit ()
12469 {
12470 set +e
12471 as_fn_set_status $1
12472 exit $1
12473 } # as_fn_exit
12474
12475 # as_fn_unset VAR
12476 # ---------------
12477 # Portably unset VAR.
12478 as_fn_unset ()
12479 {
12480 { eval $1=; unset $1;}
12481 }
12482 as_unset=as_fn_unset
12483 # as_fn_append VAR VALUE
12484 # ----------------------
12485 # Append the text in VALUE to the end of the definition contained in VAR. Take
12486 # advantage of any shell optimizations that allow amortized linear growth over
12487 # repeated appends, instead of the typical quadratic growth present in naive
12488 # implementations.
12489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12490 eval 'as_fn_append ()
12491 {
12492 eval $1+=\$2
12493 }'
12494 else
12495 as_fn_append ()
12496 {
12497 eval $1=\$$1\$2
12498 }
12499 fi # as_fn_append
12500
12501 # as_fn_arith ARG...
12502 # ------------------
12503 # Perform arithmetic evaluation on the ARGs, and store the result in the
12504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12505 # must be portable across $(()) and expr.
12506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12507 eval 'as_fn_arith ()
12508 {
12509 as_val=$(( $* ))
12510 }'
12511 else
12512 as_fn_arith ()
12513 {
12514 as_val=`expr "$@" || test $? -eq 1`
12515 }
12516 fi # as_fn_arith
12517
12518
12519 if expr a : '\(a\)' >/dev/null 2>&1 &&
12520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12521 as_expr=expr
12522 else
12523 as_expr=false
12524 fi
12525
12526 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12527 as_basename=basename
12528 else
12529 as_basename=false
12530 fi
12531
12532 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12533 as_dirname=dirname
12534 else
12535 as_dirname=false
12536 fi
12537
12538 as_me=`$as_basename -- "$0" ||
12539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12540 X"$0" : 'X\(//\)$' \| \
12541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12542 $as_echo X/"$0" |
12543 sed '/^.*\/\([^/][^/]*\)\/*$/{
12544 s//\1/
12545 q
12546 }
12547 /^X\/\(\/\/\)$/{
12548 s//\1/
12549 q
12550 }
12551 /^X\/\(\/\).*/{
12552 s//\1/
12553 q
12554 }
12555 s/.*/./; q'`
12556
12557 # Avoid depending upon Character Ranges.
12558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12561 as_cr_digits='0123456789'
12562 as_cr_alnum=$as_cr_Letters$as_cr_digits
12563
12564 ECHO_C= ECHO_N= ECHO_T=
12565 case `echo -n x` in #(((((
12566 -n*)
12567 case `echo 'xy\c'` in
12568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12569 xy) ECHO_C='\c';;
12570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12571 ECHO_T=' ';;
12572 esac;;
12573 *)
12574 ECHO_N='-n';;
12575 esac
12576
12577 rm -f conf$$ conf$$.exe conf$$.file
12578 if test -d conf$$.dir; then
12579 rm -f conf$$.dir/conf$$.file
12580 else
12581 rm -f conf$$.dir
12582 mkdir conf$$.dir 2>/dev/null
12583 fi
12584 if (echo >conf$$.file) 2>/dev/null; then
12585 if ln -s conf$$.file conf$$ 2>/dev/null; then
12586 as_ln_s='ln -s'
12587 # ... but there are two gotchas:
12588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12590 # In both cases, we have to default to `cp -pR'.
12591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12592 as_ln_s='cp -pR'
12593 elif ln conf$$.file conf$$ 2>/dev/null; then
12594 as_ln_s=ln
12595 else
12596 as_ln_s='cp -pR'
12597 fi
12598 else
12599 as_ln_s='cp -pR'
12600 fi
12601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12602 rmdir conf$$.dir 2>/dev/null
12603
12604
12605 # as_fn_mkdir_p
12606 # -------------
12607 # Create "$as_dir" as a directory, including parents if necessary.
12608 as_fn_mkdir_p ()
12609 {
12610
12611 case $as_dir in #(
12612 -*) as_dir=./$as_dir;;
12613 esac
12614 test -d "$as_dir" || eval $as_mkdir_p || {
12615 as_dirs=
12616 while :; do
12617 case $as_dir in #(
12618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12619 *) as_qdir=$as_dir;;
12620 esac
12621 as_dirs="'$as_qdir' $as_dirs"
12622 as_dir=`$as_dirname -- "$as_dir" ||
12623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624 X"$as_dir" : 'X\(//\)[^/]' \| \
12625 X"$as_dir" : 'X\(//\)$' \| \
12626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12627 $as_echo X"$as_dir" |
12628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12629 s//\1/
12630 q
12631 }
12632 /^X\(\/\/\)[^/].*/{
12633 s//\1/
12634 q
12635 }
12636 /^X\(\/\/\)$/{
12637 s//\1/
12638 q
12639 }
12640 /^X\(\/\).*/{
12641 s//\1/
12642 q
12643 }
12644 s/.*/./; q'`
12645 test -d "$as_dir" && break
12646 done
12647 test -z "$as_dirs" || eval "mkdir $as_dirs"
12648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12649
12650
12651 } # as_fn_mkdir_p
12652 if mkdir -p . 2>/dev/null; then
12653 as_mkdir_p='mkdir -p "$as_dir"'
12654 else
12655 test -d ./-p && rmdir ./-p
12656 as_mkdir_p=false
12657 fi
12658
12659
12660 # as_fn_executable_p FILE
12661 # -----------------------
12662 # Test if FILE is an executable regular file.
12663 as_fn_executable_p ()
12664 {
12665 test -f "$1" && test -x "$1"
12666 } # as_fn_executable_p
12667 as_test_x='test -x'
12668 as_executable_p=as_fn_executable_p
12669
12670 # Sed expression to map a string onto a valid CPP name.
12671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12672
12673 # Sed expression to map a string onto a valid variable name.
12674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12675
12676
12677 exec 6>&1
12678 ## ----------------------------------- ##
12679 ## Main body of $CONFIG_STATUS script. ##
12680 ## ----------------------------------- ##
12681 _ASEOF
12682 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12683
12684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12685 # Save the log message, to keep $0 and so on meaningful, and to
12686 # report actual input values of CONFIG_FILES etc. instead of their
12687 # values after options handling.
12688 ac_log="
12689 This file was extended by $as_me, which was
12690 generated by GNU Autoconf 2.69. Invocation command line was
12691
12692 CONFIG_FILES = $CONFIG_FILES
12693 CONFIG_HEADERS = $CONFIG_HEADERS
12694 CONFIG_LINKS = $CONFIG_LINKS
12695 CONFIG_COMMANDS = $CONFIG_COMMANDS
12696 $ $0 $@
12697
12698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12699 "
12700
12701 _ACEOF
12702
12703 case $ac_config_files in *"
12704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12705 esac
12706
12707 case $ac_config_headers in *"
12708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12709 esac
12710
12711
12712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12713 # Files that config.status was made for.
12714 config_files="$ac_config_files"
12715 config_headers="$ac_config_headers"
12716 config_commands="$ac_config_commands"
12717
12718 _ACEOF
12719
12720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12721 ac_cs_usage="\
12722 \`$as_me' instantiates files and other configuration actions
12723 from templates according to the current configuration. Unless the files
12724 and actions are specified as TAGs, all are instantiated by default.
12725
12726 Usage: $0 [OPTION]... [TAG]...
12727
12728 -h, --help print this help, then exit
12729 -V, --version print version number and configuration settings, then exit
12730 --config print configuration, then exit
12731 -q, --quiet, --silent
12732 do not print progress messages
12733 -d, --debug don't remove temporary files
12734 --recheck update $as_me by reconfiguring in the same conditions
12735 --file=FILE[:TEMPLATE]
12736 instantiate the configuration file FILE
12737 --header=FILE[:TEMPLATE]
12738 instantiate the configuration header FILE
12739
12740 Configuration files:
12741 $config_files
12742
12743 Configuration headers:
12744 $config_headers
12745
12746 Configuration commands:
12747 $config_commands
12748
12749 Report bugs to the package provider."
12750
12751 _ACEOF
12752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12754 ac_cs_version="\\
12755 config.status
12756 configured by $0, generated by GNU Autoconf 2.69,
12757 with options \\"\$ac_cs_config\\"
12758
12759 Copyright (C) 2012 Free Software Foundation, Inc.
12760 This config.status script is free software; the Free Software Foundation
12761 gives unlimited permission to copy, distribute and modify it."
12762
12763 ac_pwd='$ac_pwd'
12764 srcdir='$srcdir'
12765 INSTALL='$INSTALL'
12766 AWK='$AWK'
12767 test -n "\$AWK" || AWK=awk
12768 _ACEOF
12769
12770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771 # The default lists apply if the user does not specify any file.
12772 ac_need_defaults=:
12773 while test $# != 0
12774 do
12775 case $1 in
12776 --*=?*)
12777 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12778 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12779 ac_shift=:
12780 ;;
12781 --*=)
12782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12783 ac_optarg=
12784 ac_shift=:
12785 ;;
12786 *)
12787 ac_option=$1
12788 ac_optarg=$2
12789 ac_shift=shift
12790 ;;
12791 esac
12792
12793 case $ac_option in
12794 # Handling of the options.
12795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12796 ac_cs_recheck=: ;;
12797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12798 $as_echo "$ac_cs_version"; exit ;;
12799 --config | --confi | --conf | --con | --co | --c )
12800 $as_echo "$ac_cs_config"; exit ;;
12801 --debug | --debu | --deb | --de | --d | -d )
12802 debug=: ;;
12803 --file | --fil | --fi | --f )
12804 $ac_shift
12805 case $ac_optarg in
12806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12807 '') as_fn_error $? "missing file argument" ;;
12808 esac
12809 as_fn_append CONFIG_FILES " '$ac_optarg'"
12810 ac_need_defaults=false;;
12811 --header | --heade | --head | --hea )
12812 $ac_shift
12813 case $ac_optarg in
12814 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12815 esac
12816 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12817 ac_need_defaults=false;;
12818 --he | --h)
12819 # Conflict between --help and --header
12820 as_fn_error $? "ambiguous option: \`$1'
12821 Try \`$0 --help' for more information.";;
12822 --help | --hel | -h )
12823 $as_echo "$ac_cs_usage"; exit ;;
12824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12826 ac_cs_silent=: ;;
12827
12828 # This is an error.
12829 -*) as_fn_error $? "unrecognized option: \`$1'
12830 Try \`$0 --help' for more information." ;;
12831
12832 *) as_fn_append ac_config_targets " $1"
12833 ac_need_defaults=false ;;
12834
12835 esac
12836 shift
12837 done
12838
12839 ac_configure_extra_args=
12840
12841 if $ac_cs_silent; then
12842 exec 6>/dev/null
12843 ac_configure_extra_args="$ac_configure_extra_args --silent"
12844 fi
12845
12846 _ACEOF
12847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12848 if \$ac_cs_recheck; then
12849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12850 shift
12851 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12852 CONFIG_SHELL='$SHELL'
12853 export CONFIG_SHELL
12854 exec "\$@"
12855 fi
12856
12857 _ACEOF
12858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859 exec 5>>config.log
12860 {
12861 echo
12862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12863 ## Running $as_me. ##
12864 _ASBOX
12865 $as_echo "$ac_log"
12866 } >&5
12867
12868 _ACEOF
12869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12870 #
12871 # INIT-COMMANDS
12872 #
12873
12874 srcdir="${srcdir}"
12875 objroot="${objroot}"
12876 mangling_map="${mangling_map}"
12877 public_syms="${public_syms}"
12878 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12879
12880
12881 srcdir="${srcdir}"
12882 objroot="${objroot}"
12883 public_syms="${public_syms}"
12884 wrap_syms="${wrap_syms}"
12885 SYM_PREFIX="${SYM_PREFIX}"
12886 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12887
12888
12889 srcdir="${srcdir}"
12890 objroot="${objroot}"
12891 public_syms="${public_syms}"
12892 wrap_syms="${wrap_syms}"
12893 SYM_PREFIX="${SYM_PREFIX}"
12894
12895
12896 srcdir="${srcdir}"
12897 objroot="${objroot}"
12898
12899
12900 srcdir="${srcdir}"
12901 objroot="${objroot}"
12902
12903
12904 SHELL="${SHELL}"
12905 srcdir="${srcdir}"
12906 objroot="${objroot}"
12907 LG_QUANTA="${LG_QUANTA}"
12908 LG_PAGE_SIZES="${LG_PAGE_SIZES}"
12909
12910
12911 srcdir="${srcdir}"
12912 objroot="${objroot}"
12913
12914
12915 srcdir="${srcdir}"
12916 objroot="${objroot}"
12917
12918
12919 srcdir="${srcdir}"
12920 objroot="${objroot}"
12921
12922
12923 srcdir="${srcdir}"
12924 objroot="${objroot}"
12925
12926
12927 srcdir="${srcdir}"
12928 objroot="${objroot}"
12929 install_suffix="${install_suffix}"
12930
12931
12932 _ACEOF
12933
12934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12935
12936 # Handling of arguments.
12937 for ac_config_target in $ac_config_targets
12938 do
12939 case $ac_config_target in
12940 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
12941 "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
12942 "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
12943 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
12944 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
12945 "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
12946 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
12947 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
12948 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
12949 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
12950 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
12951 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
12952 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
12953 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
12954 "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
12955 "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
12956 "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
12957
12958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12959 esac
12960 done
12961
12962
12963 # If the user did not use the arguments to specify the items to instantiate,
12964 # then the envvar interface is used. Set only those that are not.
12965 # We use the long form for the default assignment because of an extremely
12966 # bizarre bug on SunOS 4.1.3.
12967 if $ac_need_defaults; then
12968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12971 fi
12972
12973 # Have a temporary directory for convenience. Make it in the build tree
12974 # simply because there is no reason against having it here, and in addition,
12975 # creating and moving files from /tmp can sometimes cause problems.
12976 # Hook for its removal unless debugging.
12977 # Note that there is a small window in which the directory will not be cleaned:
12978 # after its creation but before its name has been assigned to `$tmp'.
12979 $debug ||
12980 {
12981 tmp= ac_tmp=
12982 trap 'exit_status=$?
12983 : "${ac_tmp:=$tmp}"
12984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12985 ' 0
12986 trap 'as_fn_exit 1' 1 2 13 15
12987 }
12988 # Create a (secure) tmp directory for tmp files.
12989
12990 {
12991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12992 test -d "$tmp"
12993 } ||
12994 {
12995 tmp=./conf$$-$RANDOM
12996 (umask 077 && mkdir "$tmp")
12997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12998 ac_tmp=$tmp
12999
13000 # Set up the scripts for CONFIG_FILES section.
13001 # No need to generate them if there are no CONFIG_FILES.
13002 # This happens for instance with `./config.status config.h'.
13003 if test -n "$CONFIG_FILES"; then
13004
13005
13006 ac_cr=`echo X | tr X '\015'`
13007 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13008 # But we know of no other shell where ac_cr would be empty at this
13009 # point, so we can use a bashism as a fallback.
13010 if test "x$ac_cr" = x; then
13011 eval ac_cr=\$\'\\r\'
13012 fi
13013 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13014 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13015 ac_cs_awk_cr='\\r'
13016 else
13017 ac_cs_awk_cr=$ac_cr
13018 fi
13019
13020 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13021 _ACEOF
13022
13023
13024 {
13025 echo "cat >conf$$subs.awk <<_ACEOF" &&
13026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13027 echo "_ACEOF"
13028 } >conf$$subs.sh ||
13029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13030 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13031 ac_delim='%!_!# '
13032 for ac_last_try in false false false false false :; do
13033 . ./conf$$subs.sh ||
13034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13035
13036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13037 if test $ac_delim_n = $ac_delim_num; then
13038 break
13039 elif $ac_last_try; then
13040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13041 else
13042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13043 fi
13044 done
13045 rm -f conf$$subs.sh
13046
13047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13048 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13049 _ACEOF
13050 sed -n '
13051 h
13052 s/^/S["/; s/!.*/"]=/
13053 p
13054 g
13055 s/^[^!]*!//
13056 :repl
13057 t repl
13058 s/'"$ac_delim"'$//
13059 t delim
13060 :nl
13061 h
13062 s/\(.\{148\}\)..*/\1/
13063 t more1
13064 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13065 p
13066 n
13067 b repl
13068 :more1
13069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13070 p
13071 g
13072 s/.\{148\}//
13073 t nl
13074 :delim
13075 h
13076 s/\(.\{148\}\)..*/\1/
13077 t more2
13078 s/["\\]/\\&/g; s/^/"/; s/$/"/
13079 p
13080 b
13081 :more2
13082 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13083 p
13084 g
13085 s/.\{148\}//
13086 t delim
13087 ' <conf$$subs.awk | sed '
13088 /^[^""]/{
13089 N
13090 s/\n//
13091 }
13092 ' >>$CONFIG_STATUS || ac_write_fail=1
13093 rm -f conf$$subs.awk
13094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13095 _ACAWK
13096 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13097 for (key in S) S_is_set[key] = 1
13098 FS = ""
13099
13100 }
13101 {
13102 line = $ 0
13103 nfields = split(line, field, "@")
13104 substed = 0
13105 len = length(field[1])
13106 for (i = 2; i < nfields; i++) {
13107 key = field[i]
13108 keylen = length(key)
13109 if (S_is_set[key]) {
13110 value = S[key]
13111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13112 len += length(value) + length(field[++i])
13113 substed = 1
13114 } else
13115 len += 1 + keylen
13116 }
13117
13118 print line
13119 }
13120
13121 _ACAWK
13122 _ACEOF
13123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13124 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13126 else
13127 cat
13128 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13130 _ACEOF
13131
13132 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13133 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13134 # trailing colons and then remove the whole line if VPATH becomes empty
13135 # (actually we leave an empty line to preserve line numbers).
13136 if test "x$srcdir" = x.; then
13137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13138 h
13139 s///
13140 s/^/:/
13141 s/[ ]*$/:/
13142 s/:\$(srcdir):/:/g
13143 s/:\${srcdir}:/:/g
13144 s/:@srcdir@:/:/g
13145 s/^:*//
13146 s/:*$//
13147 x
13148 s/\(=[ ]*\).*/\1/
13149 G
13150 s/\n//
13151 s/^[^=]*=[ ]*$//
13152 }'
13153 fi
13154
13155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 fi # test -n "$CONFIG_FILES"
13157
13158 # Set up the scripts for CONFIG_HEADERS section.
13159 # No need to generate them if there are no CONFIG_HEADERS.
13160 # This happens for instance with `./config.status Makefile'.
13161 if test -n "$CONFIG_HEADERS"; then
13162 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13163 BEGIN {
13164 _ACEOF
13165
13166 # Transform confdefs.h into an awk script `defines.awk', embedded as
13167 # here-document in config.status, that substitutes the proper values into
13168 # config.h.in to produce config.h.
13169
13170 # Create a delimiter string that does not exist in confdefs.h, to ease
13171 # handling of long lines.
13172 ac_delim='%!_!# '
13173 for ac_last_try in false false :; do
13174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13175 if test -z "$ac_tt"; then
13176 break
13177 elif $ac_last_try; then
13178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13179 else
13180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13181 fi
13182 done
13183
13184 # For the awk script, D is an array of macro values keyed by name,
13185 # likewise P contains macro parameters if any. Preserve backslash
13186 # newline sequences.
13187
13188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13189 sed -n '
13190 s/.\{148\}/&'"$ac_delim"'/g
13191 t rset
13192 :rset
13193 s/^[ ]*#[ ]*define[ ][ ]*/ /
13194 t def
13195 d
13196 :def
13197 s/\\$//
13198 t bsnl
13199 s/["\\]/\\&/g
13200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13201 D["\1"]=" \3"/p
13202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13203 d
13204 :bsnl
13205 s/["\\]/\\&/g
13206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13207 D["\1"]=" \3\\\\\\n"\\/p
13208 t cont
13209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13210 t cont
13211 d
13212 :cont
13213 n
13214 s/.\{148\}/&'"$ac_delim"'/g
13215 t clear
13216 :clear
13217 s/\\$//
13218 t bsnlc
13219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13220 d
13221 :bsnlc
13222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13223 b cont
13224 ' <confdefs.h | sed '
13225 s/'"$ac_delim"'/"\\\
13226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13227
13228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229 for (key in D) D_is_set[key] = 1
13230 FS = ""
13231 }
13232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13233 line = \$ 0
13234 split(line, arg, " ")
13235 if (arg[1] == "#") {
13236 defundef = arg[2]
13237 mac1 = arg[3]
13238 } else {
13239 defundef = substr(arg[1], 2)
13240 mac1 = arg[2]
13241 }
13242 split(mac1, mac2, "(") #)
13243 macro = mac2[1]
13244 prefix = substr(line, 1, index(line, defundef) - 1)
13245 if (D_is_set[macro]) {
13246 # Preserve the white space surrounding the "#".
13247 print prefix "define", macro P[macro] D[macro]
13248 next
13249 } else {
13250 # Replace #undef with comments. This is necessary, for example,
13251 # in the case of _POSIX_SOURCE, which is predefined and required
13252 # on some systems where configure will not decide to define it.
13253 if (defundef == "undef") {
13254 print "/*", prefix defundef, macro, "*/"
13255 next
13256 }
13257 }
13258 }
13259 { print }
13260 _ACAWK
13261 _ACEOF
13262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13264 fi # test -n "$CONFIG_HEADERS"
13265
13266
13267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13268 shift
13269 for ac_tag
13270 do
13271 case $ac_tag in
13272 :[FHLC]) ac_mode=$ac_tag; continue;;
13273 esac
13274 case $ac_mode$ac_tag in
13275 :[FHL]*:*);;
13276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13277 :[FH]-) ac_tag=-:-;;
13278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13279 esac
13280 ac_save_IFS=$IFS
13281 IFS=:
13282 set x $ac_tag
13283 IFS=$ac_save_IFS
13284 shift
13285 ac_file=$1
13286 shift
13287
13288 case $ac_mode in
13289 :L) ac_source=$1;;
13290 :[FH])
13291 ac_file_inputs=
13292 for ac_f
13293 do
13294 case $ac_f in
13295 -) ac_f="$ac_tmp/stdin";;
13296 *) # Look for the file first in the build tree, then in the source tree
13297 # (if the path is not absolute). The absolute path cannot be DOS-style,
13298 # because $ac_f cannot contain `:'.
13299 test -f "$ac_f" ||
13300 case $ac_f in
13301 [\\/$]*) false;;
13302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13303 esac ||
13304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13305 esac
13306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13307 as_fn_append ac_file_inputs " '$ac_f'"
13308 done
13309
13310 # Let's still pretend it is `configure' which instantiates (i.e., don't
13311 # use $as_me), people would be surprised to read:
13312 # /* config.h. Generated by config.status. */
13313 configure_input='Generated from '`
13314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13315 `' by configure.'
13316 if test x"$ac_file" != x-; then
13317 configure_input="$ac_file. $configure_input"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13319 $as_echo "$as_me: creating $ac_file" >&6;}
13320 fi
13321 # Neutralize special characters interpreted by sed in replacement strings.
13322 case $configure_input in #(
13323 *\&* | *\|* | *\\* )
13324 ac_sed_conf_input=`$as_echo "$configure_input" |
13325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13326 *) ac_sed_conf_input=$configure_input;;
13327 esac
13328
13329 case $ac_tag in
13330 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13332 esac
13333 ;;
13334 esac
13335
13336 ac_dir=`$as_dirname -- "$ac_file" ||
13337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13338 X"$ac_file" : 'X\(//\)[^/]' \| \
13339 X"$ac_file" : 'X\(//\)$' \| \
13340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13341 $as_echo X"$ac_file" |
13342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13343 s//\1/
13344 q
13345 }
13346 /^X\(\/\/\)[^/].*/{
13347 s//\1/
13348 q
13349 }
13350 /^X\(\/\/\)$/{
13351 s//\1/
13352 q
13353 }
13354 /^X\(\/\).*/{
13355 s//\1/
13356 q
13357 }
13358 s/.*/./; q'`
13359 as_dir="$ac_dir"; as_fn_mkdir_p
13360 ac_builddir=.
13361
13362 case "$ac_dir" in
13363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13364 *)
13365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13366 # A ".." for each directory in $ac_dir_suffix.
13367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13368 case $ac_top_builddir_sub in
13369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13371 esac ;;
13372 esac
13373 ac_abs_top_builddir=$ac_pwd
13374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13375 # for backward compatibility:
13376 ac_top_builddir=$ac_top_build_prefix
13377
13378 case $srcdir in
13379 .) # We are building in place.
13380 ac_srcdir=.
13381 ac_top_srcdir=$ac_top_builddir_sub
13382 ac_abs_top_srcdir=$ac_pwd ;;
13383 [\\/]* | ?:[\\/]* ) # Absolute name.
13384 ac_srcdir=$srcdir$ac_dir_suffix;
13385 ac_top_srcdir=$srcdir
13386 ac_abs_top_srcdir=$srcdir ;;
13387 *) # Relative name.
13388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13389 ac_top_srcdir=$ac_top_build_prefix$srcdir
13390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13391 esac
13392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13393
13394
13395 case $ac_mode in
13396 :F)
13397 #
13398 # CONFIG_FILE
13399 #
13400
13401 case $INSTALL in
13402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13404 esac
13405 _ACEOF
13406
13407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 # If the template does not know about datarootdir, expand it.
13409 # FIXME: This hack should be removed a few years after 2.60.
13410 ac_datarootdir_hack=; ac_datarootdir_seen=
13411 ac_sed_dataroot='
13412 /datarootdir/ {
13413 p
13414 q
13415 }
13416 /@datadir@/p
13417 /@docdir@/p
13418 /@infodir@/p
13419 /@localedir@/p
13420 /@mandir@/p'
13421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13422 *datarootdir*) ac_datarootdir_seen=yes;;
13423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13426 _ACEOF
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 ac_datarootdir_hack='
13429 s&@datadir@&$datadir&g
13430 s&@docdir@&$docdir&g
13431 s&@infodir@&$infodir&g
13432 s&@localedir@&$localedir&g
13433 s&@mandir@&$mandir&g
13434 s&\\\${datarootdir}&$datarootdir&g' ;;
13435 esac
13436 _ACEOF
13437
13438 # Neutralize VPATH when `$srcdir' = `.'.
13439 # Shell code in configure.ac might set extrasub.
13440 # FIXME: do we really want to maintain this feature?
13441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442 ac_sed_extra="$ac_vpsub
13443 $extrasub
13444 _ACEOF
13445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446 :t
13447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13448 s|@configure_input@|$ac_sed_conf_input|;t t
13449 s&@top_builddir@&$ac_top_builddir_sub&;t t
13450 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13451 s&@srcdir@&$ac_srcdir&;t t
13452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13453 s&@top_srcdir@&$ac_top_srcdir&;t t
13454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13455 s&@builddir@&$ac_builddir&;t t
13456 s&@abs_builddir@&$ac_abs_builddir&;t t
13457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13458 s&@INSTALL@&$ac_INSTALL&;t t
13459 $ac_datarootdir_hack
13460 "
13461 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13462 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13463
13464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13465 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13467 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13469 which seems to be undefined. Please make sure it is defined" >&5
13470 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13471 which seems to be undefined. Please make sure it is defined" >&2;}
13472
13473 rm -f "$ac_tmp/stdin"
13474 case $ac_file in
13475 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13476 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13477 esac \
13478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13479 ;;
13480 :H)
13481 #
13482 # CONFIG_HEADER
13483 #
13484 if test x"$ac_file" != x-; then
13485 {
13486 $as_echo "/* $configure_input */" \
13487 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13488 } >"$ac_tmp/config.h" \
13489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13490 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13492 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13493 else
13494 rm -f "$ac_file"
13495 mv "$ac_tmp/config.h" "$ac_file" \
13496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13497 fi
13498 else
13499 $as_echo "/* $configure_input */" \
13500 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13501 || as_fn_error $? "could not create -" "$LINENO" 5
13502 fi
13503 ;;
13504
13505 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13506 $as_echo "$as_me: executing $ac_file commands" >&6;}
13507 ;;
13508 esac
13509
13510
13511 case $ac_file$ac_mode in
13512 "include/jemalloc/internal/public_symbols.txt":C)
13513 f="${objroot}include/jemalloc/internal/public_symbols.txt"
13514 mkdir -p "${objroot}include/jemalloc/internal"
13515 cp /dev/null "${f}"
13516 for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13517 n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13518 m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13519 echo "${n}:${m}" >> "${f}"
13520 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13521 done
13522 for sym in ${public_syms} ; do
13523 n="${sym}"
13524 m="${JEMALLOC_PREFIX}${sym}"
13525 echo "${n}:${m}" >> "${f}"
13526 done
13527 ;;
13528 "include/jemalloc/internal/private_symbols.awk":C)
13529 f="${objroot}include/jemalloc/internal/private_symbols.awk"
13530 mkdir -p "${objroot}include/jemalloc/internal"
13531 export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13532 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13533 ;;
13534 "include/jemalloc/internal/private_symbols_jet.awk":C)
13535 f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13536 mkdir -p "${objroot}include/jemalloc/internal"
13537 export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13538 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13539 ;;
13540 "include/jemalloc/internal/public_namespace.h":C)
13541 mkdir -p "${objroot}include/jemalloc/internal"
13542 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13543 ;;
13544 "include/jemalloc/internal/public_unnamespace.h":C)
13545 mkdir -p "${objroot}include/jemalloc/internal"
13546 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13547 ;;
13548 "include/jemalloc/internal/size_classes.h":C)
13549 mkdir -p "${objroot}include/jemalloc/internal"
13550 "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
13551 ;;
13552 "include/jemalloc/jemalloc_protos_jet.h":C)
13553 mkdir -p "${objroot}include/jemalloc"
13554 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13555 ;;
13556 "include/jemalloc/jemalloc_rename.h":C)
13557 mkdir -p "${objroot}include/jemalloc"
13558 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13559 ;;
13560 "include/jemalloc/jemalloc_mangle.h":C)
13561 mkdir -p "${objroot}include/jemalloc"
13562 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13563 ;;
13564 "include/jemalloc/jemalloc_mangle_jet.h":C)
13565 mkdir -p "${objroot}include/jemalloc"
13566 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13567 ;;
13568 "include/jemalloc/jemalloc.h":C)
13569 mkdir -p "${objroot}include/jemalloc"
13570 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13571 ;;
13572
13573 esac
13574 done # for ac_tag
13575
13576
13577 as_fn_exit 0
13578 _ACEOF
13579 ac_clean_files=$ac_clean_files_save
13580
13581 test $ac_write_fail = 0 ||
13582 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13583
13584
13585 # configure is writing to config.log, and then calls config.status.
13586 # config.status does its own redirection, appending to config.log.
13587 # Unfortunately, on DOS this fails, as config.log is still kept open
13588 # by configure, so config.status won't be able to write to it; its
13589 # output is simply discarded. So we exec the FD to /dev/null,
13590 # effectively closing config.log, so it can be properly (re)opened and
13591 # appended to by config.status. When coming back to configure, we
13592 # need to make the FD available again.
13593 if test "$no_create" != yes; then
13594 ac_cs_success=:
13595 ac_config_status_args=
13596 test "$silent" = yes &&
13597 ac_config_status_args="$ac_config_status_args --quiet"
13598 exec 5>/dev/null
13599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13600 exec 5>>config.log
13601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13602 # would make configure fail if this is the last instruction.
13603 $ac_cs_success || as_fn_exit 1
13604 fi
13605 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13607 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13608 fi
13609
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13612 $as_echo "===============================================================================" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
13614 $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
13616 $as_echo "library revision : ${rev}" >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13618 $as_echo "" >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
13620 $as_echo "CONFIG : ${CONFIG}" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
13622 $as_echo "CC : ${CC}" >&6; }
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
13624 $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
13626 $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
13628 $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
13630 $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5
13632 $as_echo "CXX : ${CXX}" >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
13634 $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
13636 $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5
13638 $as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
13640 $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
13642 $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5
13644 $as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
13646 $as_echo "LIBS : ${LIBS}" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
13648 $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13650 $as_echo "" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
13652 $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
13654 $as_echo "XSLROOT : ${XSLROOT}" >&6; }
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13656 $as_echo "" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
13658 $as_echo "PREFIX : ${PREFIX}" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
13660 $as_echo "BINDIR : ${BINDIR}" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
13662 $as_echo "DATADIR : ${DATADIR}" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
13664 $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
13666 $as_echo "LIBDIR : ${LIBDIR}" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
13668 $as_echo "MANDIR : ${MANDIR}" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13670 $as_echo "" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
13672 $as_echo "srcroot : ${srcroot}" >&6; }
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
13674 $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
13676 $as_echo "objroot : ${objroot}" >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
13678 $as_echo "abs_objroot : ${abs_objroot}" >&6; }
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13680 $as_echo "" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
13682 $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
13684 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
13686 $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
13688 $as_echo "install_suffix : ${install_suffix}" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
13690 $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
13692 $as_echo "autogen : ${enable_autogen}" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
13694 $as_echo "debug : ${enable_debug}" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
13696 $as_echo "stats : ${enable_stats}" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
13698 $as_echo "prof : ${enable_prof}" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
13700 $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
13702 $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
13704 $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
13706 $as_echo "fill : ${enable_fill}" >&6; }
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
13708 $as_echo "utrace : ${enable_utrace}" >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
13710 $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5
13712 $as_echo "log : ${enable_log}" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
13714 $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
13716 $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5
13718 $as_echo "cxx : ${enable_cxx}" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13720 $as_echo "===============================================================================" >&6; }
13721