]> git.saurik.com Git - redis.git/blob - deps/jemalloc/configure
If the computer running the Redis test is slow, we revert to --clients 1 to avoid...
[redis.git] / deps / jemalloc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="Makefile.in"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 cfgoutputs_out
597 cfgoutputs_in
598 cfghdrs_out
599 cfghdrs_in
600 enable_tls
601 enable_lazy_lock
602 jemalloc_version_gid
603 jemalloc_version_nrev
604 jemalloc_version_bugfix
605 jemalloc_version_minor
606 jemalloc_version_major
607 jemalloc_version
608 enable_dynamic_page_shift
609 enable_sysv
610 enable_xmalloc
611 enable_fill
612 enable_dss
613 enable_swap
614 enable_tcache
615 enable_tiny
616 enable_prof
617 enable_stats
618 enable_debug
619 install_suffix
620 AUTOCONF
621 LD
622 AR
623 RANLIB
624 INSTALL_DATA
625 INSTALL_SCRIPT
626 INSTALL_PROGRAM
627 enable_autogen
628 RPATH_EXTRA
629 RPATH
630 abi
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 EGREP
640 GREP
641 CPP
642 OBJEXT
643 EXEEXT
644 ac_ct_CC
645 CPPFLAGS
646 LDFLAGS
647 CFLAGS
648 CC
649 XSLROOT
650 XSLTPROC
651 MANDIR
652 DATADIR
653 LIBDIR
654 INCLUDEDIR
655 BINDIR
656 PREFIX
657 abs_objroot
658 objroot
659 abs_srcroot
660 srcroot
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 with_xslroot
703 with_rpath
704 enable_autogen
705 with_jemalloc_prefix
706 with_private_namespace
707 with_install_suffix
708 enable_cc_silence
709 enable_debug
710 enable_stats
711 enable_prof
712 enable_prof_libunwind
713 with_static_libunwind
714 enable_prof_libgcc
715 enable_prof_gcc
716 enable_tiny
717 enable_tcache
718 enable_swap
719 enable_dss
720 enable_fill
721 enable_xmalloc
722 enable_sysv
723 enable_dynamic_page_shift
724 enable_lazy_lock
725 enable_tls
726 '
727 ac_precious_vars='build_alias
728 host_alias
729 target_alias
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CPP'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 ac_unrecognized_opts=
742 ac_unrecognized_sep=
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
745 cache_file=/dev/null
746 exec_prefix=NONE
747 no_create=
748 no_recursion=
749 prefix=NONE
750 program_prefix=NONE
751 program_suffix=NONE
752 program_transform_name=s,x,x,
753 silent=
754 site=
755 srcdir=
756 verbose=
757 x_includes=NONE
758 x_libraries=NONE
759
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE}'
777 infodir='${datarootdir}/info'
778 htmldir='${docdir}'
779 dvidir='${docdir}'
780 pdfdir='${docdir}'
781 psdir='${docdir}'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
785
786 ac_prev=
787 ac_dashdash=
788 for ac_option
789 do
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
793 ac_prev=
794 continue
795 fi
796
797 case $ac_option in
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
848 *"
849 "enable_$ac_useropt"
850 "*) ;;
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
853 esac
854 eval enable_$ac_useropt=no ;;
855
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
860
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
865
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=\$ac_optarg ;;
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=\$ac_optarg ;;
1085
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
1101
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1105
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1112
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1119
1120 -*) as_fn_error "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information."
1122 ;;
1123
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1133
1134 *)
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1140 ;;
1141
1142 esac
1143 done
1144
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error "missing argument to $ac_option"
1148 fi
1149
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 esac
1156 fi
1157
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1163 do
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1166 case $ac_val in
1167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1170 esac
1171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 as_fn_error "working directory cannot be determined"
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 as_fn_error "pwd does not report name of working directory"
1209
1210
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)[^/].*/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\).*/{
1234 s//\1/
1235 q
1236 }
1237 s/.*/./; q'`
1238 srcdir=$ac_confdir
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1240 srcdir=..
1241 fi
1242 else
1243 ac_srcdir_defaulted=no
1244 fi
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1248 fi
1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 ac_abs_confdir=`(
1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1252 pwd)`
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 srcdir=.
1256 fi
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1260 case $srcdir in
1261 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 esac
1263 for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268 done
1269
1270 #
1271 # Report the --help message.
1272 #
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1276 cat <<_ACEOF
1277 \`configure' configures this package to adapt to many kinds of systems.
1278
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1280
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1283
1284 Defaults for the options are specified in brackets.
1285
1286 Configuration:
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1301 [PREFIX]
1302
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1307
1308 For better control, use the options below.
1309
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1331
1332 cat <<\_ACEOF
1333
1334 System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337 _ACEOF
1338 fi
1339
1340 if test -n "$ac_init_help"; then
1341
1342 cat <<\_ACEOF
1343
1344 Optional Features:
1345 --disable-option-checking ignore unrecognized --enable/--with options
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --enable-autogen Automatically regenerate configure output
1349 --enable-cc-silence Silence irrelevant compiler warnings
1350 --enable-debug Build debugging code
1351 --enable-stats Enable statistics calculation/reporting
1352 --enable-prof Enable allocation profiling
1353 --enable-prof-libunwind Use libunwind for backtracing
1354 --disable-prof-libgcc Do not use libgcc for backtracing
1355 --disable-prof-gcc Do not use gcc intrinsics for backtracing
1356 --disable-tiny Disable tiny (sub-quantum) allocations
1357 --disable-tcache Disable per thread caches
1358 --enable-swap Enable mmap()ped swap files
1359 --enable-dss Enable allocation from DSS
1360 --enable-fill Support junk/zero filling option
1361 --enable-xmalloc Support xmalloc option
1362 --enable-sysv Support SYSV semantics option
1363 --enable-dynamic-page-shift
1364 Determine page size at run time (don't trust
1365 configure result)
1366 --disable-lazy-lock Disable lazy locking (always lock, even when
1367 single-threaded)
1368 --disable-tls Disable thread-local storage (__thread keyword)
1369
1370 Optional Packages:
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-xslroot=<path> XSL stylesheet root path
1374 --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
1375 --with-jemalloc-prefix=<prefix>
1376 Prefix to prepend to all public APIs
1377 --with-private-namespace=<prefix>
1378 Prefix to prepend to all library-private APIs
1379 --with-install-suffix=<suffix>
1380 Suffix to append to all installed files
1381 --with-static-libunwind=<libunwind.a>
1382 Path to static libunwind library; use rather than
1383 dynamically linking
1384
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1394
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to the package provider.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
1409 ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 configure
1462 generated by GNU Autoconf 2.65
1463
1464 Copyright (C) 2009 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468 exit
1469 fi
1470
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507 fi
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_run LINENO
1514 # ----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1516 # that executables *can* be run.
1517 ac_fn_c_try_run ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if { { ac_try="$ac_link"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>&5
1528 ac_status=$?
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1531 { { case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_try") 2>&5
1538 ac_status=$?
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; }; }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: program exited with status $ac_status" >&5
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=$ac_status
1548 fi
1549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_run
1554
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_cpp ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } >/dev/null && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_cpp
1591
1592 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1593 # --------------------------------------------
1594 # Tries to find the compile-time value of EXPR in a program that includes
1595 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1596 # computed
1597 ac_fn_c_compute_int ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if test "$cross_compiling" = yes; then
1601 # Depending upon the size, compute the lo and hi bounds.
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 $4
1605 int
1606 main ()
1607 {
1608 static int test_array [1 - 2 * !(($2) >= 0)];
1609 test_array [0] = 0
1610
1611 ;
1612 return 0;
1613 }
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_lo=0 ac_mid=0
1617 while :; do
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 int
1622 main ()
1623 {
1624 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1625 test_array [0] = 0
1626
1627 ;
1628 return 0;
1629 }
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 ac_hi=$ac_mid; break
1633 else
1634 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1635 if test $ac_lo -le $ac_mid; then
1636 ac_lo= ac_hi=
1637 break
1638 fi
1639 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 done
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main ()
1649 {
1650 static int test_array [1 - 2 * !(($2) < 0)];
1651 test_array [0] = 0
1652
1653 ;
1654 return 0;
1655 }
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_hi=-1 ac_mid=-1
1659 while :; do
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 int
1664 main ()
1665 {
1666 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1667 test_array [0] = 0
1668
1669 ;
1670 return 0;
1671 }
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_lo=$ac_mid; break
1675 else
1676 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1677 if test $ac_mid -le $ac_hi; then
1678 ac_lo= ac_hi=
1679 break
1680 fi
1681 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 done
1685 else
1686 ac_lo= ac_hi=
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 # Binary search between lo and hi bounds.
1692 while test "x$ac_lo" != "x$ac_hi"; do
1693 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 $4
1697 int
1698 main ()
1699 {
1700 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1701 test_array [0] = 0
1702
1703 ;
1704 return 0;
1705 }
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_hi=$ac_mid
1709 else
1710 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 done
1714 case $ac_lo in #((
1715 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1716 '') ac_retval=1 ;;
1717 esac
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 static long int longval () { return $2; }
1723 static unsigned long int ulongval () { return $2; }
1724 #include <stdio.h>
1725 #include <stdlib.h>
1726 int
1727 main ()
1728 {
1729
1730 FILE *f = fopen ("conftest.val", "w");
1731 if (! f)
1732 return 1;
1733 if (($2) < 0)
1734 {
1735 long int i = longval ();
1736 if (i != ($2))
1737 return 1;
1738 fprintf (f, "%ld", i);
1739 }
1740 else
1741 {
1742 unsigned long int i = ulongval ();
1743 if (i != ($2))
1744 return 1;
1745 fprintf (f, "%lu", i);
1746 }
1747 /* Do not output a trailing newline, as this causes \r\n confusion
1748 on some platforms. */
1749 return ferror (f) || fclose (f) != 0;
1750
1751 ;
1752 return 0;
1753 }
1754 _ACEOF
1755 if ac_fn_c_try_run "$LINENO"; then :
1756 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1757 else
1758 ac_retval=1
1759 fi
1760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1761 conftest.$ac_objext conftest.beam conftest.$ac_ext
1762 rm -f conftest.val
1763
1764 fi
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_compute_int
1769
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799 } # ac_fn_c_check_header_compile
1800
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_header_mongrel ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 $as_echo_n "(cached) " >&6
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 else
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1829 else
1830 ac_header_compiler=no
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1835
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1845 else
1846 ac_header_preproc=no
1847 fi
1848 rm -f conftest.err conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1851
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 yes:no: )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860 no:yes:* )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ;;
1872 esac
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 eval "$3=\$ac_header_compiler"
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 fi
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885
1886 } # ac_fn_c_check_header_mongrel
1887
1888 # ac_fn_c_try_link LINENO
1889 # -----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_c_try_link ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext conftest$ac_exeext
1895 if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_c_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest$ac_exeext && {
1914 test "$cross_compiling" = yes ||
1915 $as_test_x conftest$ac_exeext
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923 fi
1924 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926 # interfere with the next link command; also delete a directory that is
1927 # left behind by Apple's compiler. We do this before executing the actions.
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 as_fn_set_status $ac_retval
1931
1932 } # ac_fn_c_try_link
1933
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1949 #define $2 innocuous_$2
1950
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $2 (); below.
1953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954 <limits.h> exists even on freestanding compilers. */
1955
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1961
1962 #undef $2
1963
1964 /* Override any GCC internal prototype to avoid an error.
1965 Use char because int might match the return type of a GCC
1966 builtin and then its argument prototype would still apply. */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1977
1978 int
1979 main ()
1980 {
1981 return $2 ();
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext \
1992 conftest$ac_exeext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998
1999 } # ac_fn_c_check_func
2000
2001 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2002 # -------------------------------------------
2003 # Tests whether TYPE exists after having included INCLUDES, setting cache
2004 # variable VAR accordingly.
2005 ac_fn_c_check_type ()
2006 {
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 eval "$3=no"
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 int
2018 main ()
2019 {
2020 if (sizeof ($2))
2021 return 0;
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main ()
2032 {
2033 if (sizeof (($2)))
2034 return 0;
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040
2041 else
2042 eval "$3=yes"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053 } # ac_fn_c_check_type
2054 cat >config.log <<_ACEOF
2055 This file contains any messages produced by compilers while
2056 running configure, to aid debugging if configure makes a mistake.
2057
2058 It was created by $as_me, which was
2059 generated by GNU Autoconf 2.65. Invocation command line was
2060
2061 $ $0 $@
2062
2063 _ACEOF
2064 exec 5>>config.log
2065 {
2066 cat <<_ASUNAME
2067 ## --------- ##
2068 ## Platform. ##
2069 ## --------- ##
2070
2071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076
2077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079
2080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2083 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087
2088 _ASUNAME
2089
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 $as_echo "PATH: $as_dir"
2096 done
2097 IFS=$as_save_IFS
2098
2099 } >&5
2100
2101 cat >&5 <<_ACEOF
2102
2103
2104 ## ----------- ##
2105 ## Core tests. ##
2106 ## ----------- ##
2107
2108 _ACEOF
2109
2110
2111 # Keep a trace of the command line.
2112 # Strip out --no-create and --no-recursion so they do not pile up.
2113 # Strip out --silent because we don't want to record it for future runs.
2114 # Also quote any args containing shell meta-characters.
2115 # Make two passes to allow for proper duplicate-argument suppression.
2116 ac_configure_args=
2117 ac_configure_args0=
2118 ac_configure_args1=
2119 ac_must_keep_next=false
2120 for ac_pass in 1 2
2121 do
2122 for ac_arg
2123 do
2124 case $ac_arg in
2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2127 | -silent | --silent | --silen | --sile | --sil)
2128 continue ;;
2129 *\'*)
2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 esac
2132 case $ac_pass in
2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2134 2)
2135 as_fn_append ac_configure_args1 " '$ac_arg'"
2136 if test $ac_must_keep_next = true; then
2137 ac_must_keep_next=false # Got value, back to normal.
2138 else
2139 case $ac_arg in
2140 *=* | --config-cache | -C | -disable-* | --disable-* \
2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2143 | -with-* | --with-* | -without-* | --without-* | --x)
2144 case "$ac_configure_args0 " in
2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146 esac
2147 ;;
2148 -* ) ac_must_keep_next=true ;;
2149 esac
2150 fi
2151 as_fn_append ac_configure_args " '$ac_arg'"
2152 ;;
2153 esac
2154 done
2155 done
2156 { ac_configure_args0=; unset ac_configure_args0;}
2157 { ac_configure_args1=; unset ac_configure_args1;}
2158
2159 # When interrupted or exit'd, cleanup temporary files, and complete
2160 # config.log. We remove comments because anyway the quotes in there
2161 # would cause problems or look ugly.
2162 # WARNING: Use '\'' to represent an apostrophe within the trap.
2163 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2164 trap 'exit_status=$?
2165 # Save into config.log some information that might help in debugging.
2166 {
2167 echo
2168
2169 cat <<\_ASBOX
2170 ## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##
2173 _ASBOX
2174 echo
2175 # The following way of writing the cache mishandles newlines in values,
2176 (
2177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in #(
2180 *${as_nl}*)
2181 case $ac_var in #(
2182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2184 esac
2185 case $ac_var in #(
2186 _ | IFS | as_nl) ;; #(
2187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2188 *) { eval $ac_var=; unset $ac_var;} ;;
2189 esac ;;
2190 esac
2191 done
2192 (set) 2>&1 |
2193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2194 *${as_nl}ac_space=\ *)
2195 sed -n \
2196 "s/'\''/'\''\\\\'\'''\''/g;
2197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2198 ;; #(
2199 *)
2200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2201 ;;
2202 esac |
2203 sort
2204 )
2205 echo
2206
2207 cat <<\_ASBOX
2208 ## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##
2211 _ASBOX
2212 echo
2213 for ac_var in $ac_subst_vars
2214 do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 esac
2219 $as_echo "$ac_var='\''$ac_val'\''"
2220 done | sort
2221 echo
2222
2223 if test -n "$ac_subst_files"; then
2224 cat <<\_ASBOX
2225 ## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##
2228 _ASBOX
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 cat <<\_ASBOX
2243 ## ----------- ##
2244 ## confdefs.h. ##
2245 ## ----------- ##
2246 _ASBOX
2247 echo
2248 cat confdefs.h
2249 echo
2250 fi
2251 test "$ac_signal" != 0 &&
2252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
2254 } >&5
2255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257 exit $exit_status
2258 ' 0
2259 for ac_signal in 1 2 13 15; do
2260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 done
2262 ac_signal=0
2263
2264 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2265 rm -f -r conftest* confdefs.h
2266
2267 $as_echo "/* confdefs.h */" > confdefs.h
2268
2269 # Predefined preprocessor variables.
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_NAME "$PACKAGE_NAME"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_STRING "$PACKAGE_STRING"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_URL "$PACKAGE_URL"
2293 _ACEOF
2294
2295
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2298 ac_site_file1=NONE
2299 ac_site_file2=NONE
2300 if test -n "$CONFIG_SITE"; then
2301 ac_site_file1=$CONFIG_SITE
2302 elif test "x$prefix" != xNONE; then
2303 ac_site_file1=$prefix/share/config.site
2304 ac_site_file2=$prefix/etc/config.site
2305 else
2306 ac_site_file1=$ac_default_prefix/share/config.site
2307 ac_site_file2=$ac_default_prefix/etc/config.site
2308 fi
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2310 do
2311 test "x$ac_site_file" = xNONE && continue
2312 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315 sed 's/^/| /' "$ac_site_file" >&5
2316 . "$ac_site_file"
2317 fi
2318 done
2319
2320 if test -r "$cache_file"; then
2321 # Some versions of bash will fail to source /dev/null (special files
2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 $as_echo "$as_me: loading cache $cache_file" >&6;}
2326 case $cache_file in
2327 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328 *) . "./$cache_file";;
2329 esac
2330 fi
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 >$cache_file
2335 fi
2336
2337 # Check that the precious variables saved in the cache have kept the same
2338 # value.
2339 ac_cache_corrupted=false
2340 for ac_var in $ac_precious_vars; do
2341 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2342 eval ac_new_set=\$ac_env_${ac_var}_set
2343 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2344 eval ac_new_val=\$ac_env_${ac_var}_value
2345 case $ac_old_set,$ac_new_set in
2346 set,)
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2350 ,set)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2353 ac_cache_corrupted=: ;;
2354 ,);;
2355 *)
2356 if test "x$ac_old_val" != "x$ac_new_val"; then
2357 # differences in whitespace do not lead to failure.
2358 ac_old_val_w=`echo x $ac_old_val`
2359 ac_new_val_w=`echo x $ac_new_val`
2360 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2362 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363 ac_cache_corrupted=:
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2366 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2367 eval $ac_var=\$ac_old_val
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2370 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2372 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2373 fi;;
2374 esac
2375 # Pass precious variables to config.status.
2376 if test "$ac_new_set" = set; then
2377 case $ac_new_val in
2378 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 *) ac_arg=$ac_var=$ac_new_val ;;
2380 esac
2381 case " $ac_configure_args " in
2382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2383 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2384 esac
2385 fi
2386 done
2387 if $ac_cache_corrupted; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2391 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2392 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2393 fi
2394 ## -------------------- ##
2395 ## Main body of script. ##
2396 ## -------------------- ##
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412 srcroot=$srcdir
2413 if test "x${srcroot}" = "x." ; then
2414 srcroot=""
2415 else
2416 srcroot="${srcroot}/"
2417 fi
2418
2419 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2420
2421
2422 objroot=""
2423
2424 abs_objroot="`pwd`/"
2425
2426
2427 if test "x$prefix" = "xNONE" ; then
2428 prefix="/usr/local"
2429 fi
2430 if test "x$exec_prefix" = "xNONE" ; then
2431 exec_prefix=$prefix
2432 fi
2433 PREFIX=$prefix
2434
2435 BINDIR=`eval echo $bindir`
2436 BINDIR=`eval echo $BINDIR`
2437
2438 INCLUDEDIR=`eval echo $includedir`
2439 INCLUDEDIR=`eval echo $INCLUDEDIR`
2440
2441 LIBDIR=`eval echo $libdir`
2442 LIBDIR=`eval echo $LIBDIR`
2443
2444 DATADIR=`eval echo $datadir`
2445 DATADIR=`eval echo $DATADIR`
2446
2447 MANDIR=`eval echo $mandir`
2448 MANDIR=`eval echo $MANDIR`
2449
2450
2451 # Extract the first word of "xsltproc", so it can be a program name with args.
2452 set dummy xsltproc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 case $XSLTPROC in
2459 [\\/]* | ?:[\\/]*)
2460 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2461 ;;
2462 *)
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 ;;
2479 esac
2480 fi
2481 XSLTPROC=$ac_cv_path_XSLTPROC
2482 if test -n "$XSLTPROC"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2484 $as_echo "$XSLTPROC" >&6; }
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490
2491
2492 # Check whether --with-xslroot was given.
2493 if test "${with_xslroot+set}" = set; then :
2494 withval=$with_xslroot; if test "x$with_xslroot" = "xno" ; then
2495 XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2496 else
2497 XSLROOT="${with_xslroot}"
2498 fi
2499 else
2500 XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2501
2502 fi
2503
2504
2505
2506 CFLAGS=$CFLAGS
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$ac_cv_prog_CC"; then
2552 ac_ct_CC=$CC
2553 # Extract the first word of "gcc", so it can be a program name with args.
2554 set dummy gcc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$ac_ct_CC"; then
2561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_ac_ct_CC="gcc"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2581 if test -n "$ac_ct_CC"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2583 $as_echo "$ac_ct_CC" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589 if test "x$ac_ct_CC" = x; then
2590 CC=""
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598 CC=$ac_ct_CC
2599 fi
2600 else
2601 CC="$ac_cv_prog_CC"
2602 fi
2603
2604 if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="${ac_tool_prefix}cc"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 fi
2645 if test -z "$CC"; then
2646 # Extract the first word of "cc", so it can be a program name with args.
2647 set dummy cc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_CC+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 ac_prog_rejected=no
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2665 ac_prog_rejected=yes
2666 continue
2667 fi
2668 ac_cv_prog_CC="cc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 if test $ac_prog_rejected = yes; then
2677 # We found a bogon in the path, so make sure we never use it.
2678 set dummy $ac_cv_prog_CC
2679 shift
2680 if test $# != 0; then
2681 # We chose a different compiler from the bogus one.
2682 # However, it has the same basename, so the bogon will be chosen
2683 # first if we set CC to just the basename; use the full file name.
2684 shift
2685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2686 fi
2687 fi
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
2703 for ac_prog in cl.exe
2704 do
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 test -n "$CC" && break
2743 done
2744 fi
2745 if test -z "$CC"; then
2746 ac_ct_CC=$CC
2747 for ac_prog in cl.exe
2748 do
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2779 $as_echo "$ac_ct_CC" >&6; }
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 test -n "$ac_ct_CC" && break
2787 done
2788
2789 if test "x$ac_ct_CC" = x; then
2790 CC=""
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 CC=$ac_ct_CC
2799 fi
2800 fi
2801
2802 fi
2803
2804
2805 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 as_fn_error "no acceptable C compiler found in \$PATH
2808 See \`config.log' for more details." "$LINENO" 5; }
2809
2810 # Provide some information about the compiler.
2811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2812 set X $ac_compile
2813 ac_compiler=$2
2814 for ac_option in --version -v -V -qversion; do
2815 { { ac_try="$ac_compiler $ac_option >&5"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2823 ac_status=$?
2824 if test -s conftest.err; then
2825 sed '10a\
2826 ... rest of stderr output deleted ...
2827 10q' conftest.err >conftest.er1
2828 cat conftest.er1 >&5
2829 fi
2830 rm -f conftest.er1 conftest.err
2831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832 test $ac_status = 0; }
2833 done
2834
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2837
2838 int
2839 main ()
2840 {
2841
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 ac_clean_files_save=$ac_clean_files
2847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2848 # Try to create an executable without -o first, disregard a.out.
2849 # It will help us diagnose broken compilers, and finding out an intuition
2850 # of exeext.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2852 $as_echo_n "checking whether the C compiler works... " >&6; }
2853 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2854
2855 # The possible output files:
2856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2857
2858 ac_rmfiles=
2859 for ac_file in $ac_files
2860 do
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864 esac
2865 done
2866 rm -f $ac_rmfiles
2867
2868 if { { ac_try="$ac_link_default"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874 $as_echo "$ac_try_echo"; } >&5
2875 (eval "$ac_link_default") 2>&5
2876 ac_status=$?
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }; then :
2879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2880 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2881 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2882 # so that the user can short-circuit this test for compilers unknown to
2883 # Autoconf.
2884 for ac_file in $ac_files ''
2885 do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2889 ;;
2890 [ab].out )
2891 # We found the default executable, but exeext='' is most
2892 # certainly right.
2893 break;;
2894 *.* )
2895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2896 then :; else
2897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898 fi
2899 # We set ac_cv_exeext here because the later test for it is not
2900 # safe: cross compilers may not add the suffix if given an `-o'
2901 # argument, so we may need to know it at that point already.
2902 # Even if this section looks crufty: it has the advantage of
2903 # actually working.
2904 break;;
2905 * )
2906 break;;
2907 esac
2908 done
2909 test "$ac_cv_exeext" = no && ac_cv_exeext=
2910
2911 else
2912 ac_file=''
2913 fi
2914 if test -z "$ac_file"; then :
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 $as_echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 { as_fn_set_status 77
2923 as_fn_error "C compiler cannot create executables
2924 See \`config.log' for more details." "$LINENO" 5; }; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 $as_echo "yes" >&6; }
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2930 $as_echo_n "checking for C compiler default output file name... " >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2932 $as_echo "$ac_file" >&6; }
2933 ac_exeext=$ac_cv_exeext
2934
2935 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2936 ac_clean_files=$ac_clean_files_save
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2938 $as_echo_n "checking for suffix of executables... " >&6; }
2939 if { { ac_try="$ac_link"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945 $as_echo "$ac_try_echo"; } >&5
2946 (eval "$ac_link") 2>&5
2947 ac_status=$?
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }; then :
2950 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2951 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2952 # work properly (i.e., refer to `conftest.exe'), while it won't with
2953 # `rm'.
2954 for ac_file in conftest.exe conftest conftest.*; do
2955 test -f "$ac_file" || continue
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2958 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959 break;;
2960 * ) break;;
2961 esac
2962 done
2963 else
2964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error "cannot compute suffix of executables: cannot compile and link
2967 See \`config.log' for more details." "$LINENO" 5; }
2968 fi
2969 rm -f conftest conftest$ac_cv_exeext
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2971 $as_echo "$ac_cv_exeext" >&6; }
2972
2973 rm -f conftest.$ac_ext
2974 EXEEXT=$ac_cv_exeext
2975 ac_exeext=$EXEEXT
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 #include <stdio.h>
2979 int
2980 main ()
2981 {
2982 FILE *f = fopen ("conftest.out", "w");
2983 return ferror (f) || fclose (f) != 0;
2984
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 ac_clean_files="$ac_clean_files conftest.out"
2990 # Check that the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2993 $as_echo_n "checking whether we are cross compiling... " >&6; }
2994 if test "$cross_compiling" != yes; then
2995 { { ac_try="$ac_link"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_link") 2>&5
3003 ac_status=$?
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006 if { ac_try='./conftest$ac_cv_exeext'
3007 { { case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; }; then
3017 cross_compiling=no
3018 else
3019 if test "$cross_compiling" = maybe; then
3020 cross_compiling=yes
3021 else
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error "cannot run C compiled programs.
3025 If you meant to cross compile, use \`--host'.
3026 See \`config.log' for more details." "$LINENO" 5; }
3027 fi
3028 fi
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3031 $as_echo "$cross_compiling" >&6; }
3032
3033 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3034 ac_clean_files=$ac_clean_files_save
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3036 $as_echo_n "checking for suffix of object files... " >&6; }
3037 if test "${ac_cv_objext+set}" = set; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042
3043 int
3044 main ()
3045 {
3046
3047 ;
3048 return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.o conftest.obj
3052 if { { ac_try="$ac_compile"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compile") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 for ac_file in conftest.o conftest.obj conftest.*; do
3064 test -f "$ac_file" || continue;
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068 break;;
3069 esac
3070 done
3071 else
3072 $as_echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error "cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." "$LINENO" 5; }
3079 fi
3080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3083 $as_echo "$ac_cv_objext" >&6; }
3084 OBJEXT=$ac_cv_objext
3085 ac_objext=$OBJEXT
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3088 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093
3094 int
3095 main ()
3096 {
3097 #ifndef __GNUC__
3098 choke me
3099 #endif
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 if ac_fn_c_try_compile "$LINENO"; then :
3106 ac_compiler_gnu=yes
3107 else
3108 ac_compiler_gnu=no
3109 fi
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3116 if test $ac_compiler_gnu = yes; then
3117 GCC=yes
3118 else
3119 GCC=
3120 fi
3121 ac_test_CFLAGS=${CFLAGS+set}
3122 ac_save_CFLAGS=$CFLAGS
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3125 if test "${ac_cv_prog_cc_g+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 ac_save_c_werror_flag=$ac_c_werror_flag
3129 ac_c_werror_flag=yes
3130 ac_cv_prog_cc_g=no
3131 CFLAGS="-g"
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 if ac_fn_c_try_compile "$LINENO"; then :
3144 ac_cv_prog_cc_g=yes
3145 else
3146 CFLAGS=""
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159
3160 else
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3162 CFLAGS="-g"
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_g=yes
3176 fi
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3185 $as_echo "$ac_cv_prog_cc_g" >&6; }
3186 if test "$ac_test_CFLAGS" = set; then
3187 CFLAGS=$ac_save_CFLAGS
3188 elif test $ac_cv_prog_cc_g = yes; then
3189 if test "$GCC" = yes; then
3190 CFLAGS="-g -O2"
3191 else
3192 CFLAGS="-g"
3193 fi
3194 else
3195 if test "$GCC" = yes; then
3196 CFLAGS="-O2"
3197 else
3198 CFLAGS=
3199 fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3203 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 ac_cv_prog_cc_c89=no
3207 ac_save_CC=$CC
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210 #include <stdarg.h>
3211 #include <stdio.h>
3212 #include <sys/types.h>
3213 #include <sys/stat.h>
3214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3215 struct buf { int x; };
3216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217 static char *e (p, i)
3218 char **p;
3219 int i;
3220 {
3221 return p[i];
3222 }
3223 static char *f (char * (*g) (char **, int), char **p, ...)
3224 {
3225 char *s;
3226 va_list v;
3227 va_start (v,p);
3228 s = g (p, va_arg (v,int));
3229 va_end (v);
3230 return s;
3231 }
3232
3233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3234 function prototypes and stuff, but not '\xHH' hex character constants.
3235 These don't provoke an error unfortunately, instead are silently treated
3236 as 'x'. The following induces an error, until -std is added to get
3237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3238 array size at least. It's necessary to write '\x00'==0 to get something
3239 that's true only with -std. */
3240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3241
3242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3243 inside strings and character constants. */
3244 #define FOO(x) 'x'
3245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3246
3247 int test (int i, double x);
3248 struct s1 {int (*f) (int a);};
3249 struct s2 {int (*f) (double a);};
3250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3251 int argc;
3252 char **argv;
3253 int
3254 main ()
3255 {
3256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3263 do
3264 CC="$ac_save_CC $ac_arg"
3265 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_cv_prog_cc_c89=$ac_arg
3267 fi
3268 rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
3270 done
3271 rm -f conftest.$ac_ext
3272 CC=$ac_save_CC
3273
3274 fi
3275 # AC_CACHE_VAL
3276 case "x$ac_cv_prog_cc_c89" in
3277 x)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3279 $as_echo "none needed" >&6; } ;;
3280 xno)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3282 $as_echo "unsupported" >&6; } ;;
3283 *)
3284 CC="$CC $ac_cv_prog_cc_c89"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3287 esac
3288 if test "x$ac_cv_prog_cc_c89" != xno; then :
3289
3290 fi
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298 if test "x$CFLAGS" = "x" ; then
3299 no_CFLAGS="yes"
3300 if test "x$GCC" = "xyes" ; then
3301
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3304 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3305 TCFLAGS="${CFLAGS}"
3306 if test "x${CFLAGS}" = "x" ; then
3307 CFLAGS="-std=gnu99"
3308 else
3309 CFLAGS="${CFLAGS} -std=gnu99"
3310 fi
3311 if test "$cross_compiling" = yes; then :
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error "cannot run test program while cross compiling
3315 See \`config.log' for more details." "$LINENO" 5; }
3316 else
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319
3320
3321 int
3322 main ()
3323 {
3324
3325 return 0;
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 if ac_fn_c_try_run "$LINENO"; then :
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 CFLAGS="${TCFLAGS}"
3338
3339 fi
3340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3341 conftest.$ac_objext conftest.beam conftest.$ac_ext
3342 fi
3343
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3347 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
3348 TCFLAGS="${CFLAGS}"
3349 if test "x${CFLAGS}" = "x" ; then
3350 CFLAGS="-Wall"
3351 else
3352 CFLAGS="${CFLAGS} -Wall"
3353 fi
3354 if test "$cross_compiling" = yes; then :
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error "cannot run test program while cross compiling
3358 See \`config.log' for more details." "$LINENO" 5; }
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362
3363
3364 int
3365 main ()
3366 {
3367
3368 return 0;
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 if ac_fn_c_try_run "$LINENO"; then :
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 CFLAGS="${TCFLAGS}"
3381
3382 fi
3383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3384 conftest.$ac_objext conftest.beam conftest.$ac_ext
3385 fi
3386
3387
3388
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3390 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
3391 TCFLAGS="${CFLAGS}"
3392 if test "x${CFLAGS}" = "x" ; then
3393 CFLAGS="-pipe"
3394 else
3395 CFLAGS="${CFLAGS} -pipe"
3396 fi
3397 if test "$cross_compiling" = yes; then :
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error "cannot run test program while cross compiling
3401 See \`config.log' for more details." "$LINENO" 5; }
3402 else
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406
3407 int
3408 main ()
3409 {
3410
3411 return 0;
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 if ac_fn_c_try_run "$LINENO"; then :
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3419 $as_echo "yes" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 CFLAGS="${TCFLAGS}"
3424
3425 fi
3426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3427 conftest.$ac_objext conftest.beam conftest.$ac_ext
3428 fi
3429
3430
3431
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
3433 $as_echo_n "checking whether compiler supports -g3... " >&6; }
3434 TCFLAGS="${CFLAGS}"
3435 if test "x${CFLAGS}" = "x" ; then
3436 CFLAGS="-g3"
3437 else
3438 CFLAGS="${CFLAGS} -g3"
3439 fi
3440 if test "$cross_compiling" = yes; then :
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error "cannot run test program while cross compiling
3444 See \`config.log' for more details." "$LINENO" 5; }
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449
3450 int
3451 main ()
3452 {
3453
3454 return 0;
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_run "$LINENO"; then :
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 CFLAGS="${TCFLAGS}"
3467
3468 fi
3469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3470 conftest.$ac_objext conftest.beam conftest.$ac_ext
3471 fi
3472
3473
3474 fi
3475 fi
3476 if test "x$EXTRA_CFLAGS" != "x" ; then
3477
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5
3479 $as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; }
3480 TCFLAGS="${CFLAGS}"
3481 if test "x${CFLAGS}" = "x" ; then
3482 CFLAGS="$EXTRA_CFLAGS"
3483 else
3484 CFLAGS="${CFLAGS} $EXTRA_CFLAGS"
3485 fi
3486 if test "$cross_compiling" = yes; then :
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot run test program while cross compiling
3490 See \`config.log' for more details." "$LINENO" 5; }
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495
3496 int
3497 main ()
3498 {
3499
3500 return 0;
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_run "$LINENO"; then :
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3508 $as_echo "yes" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 CFLAGS="${TCFLAGS}"
3513
3514 fi
3515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3516 conftest.$ac_objext conftest.beam conftest.$ac_ext
3517 fi
3518
3519
3520 fi
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3530 CPP=
3531 fi
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 # Double quotes because CPP needs to be expanded
3537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3538 do
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3541 do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555 Syntax error
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558
3559 else
3560 # Broken: fails on valid input.
3561 continue
3562 fi
3563 rm -f conftest.err conftest.$ac_ext
3564
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3570 _ACEOF
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3573 continue
3574 else
3575 # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579 rm -f conftest.err conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3585 break
3586 fi
3587
3588 done
3589 ac_cv_prog_CPP=$CPP
3590
3591 fi
3592 CPP=$ac_cv_prog_CPP
3593 else
3594 ac_cv_prog_CPP=$CPP
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3597 $as_echo "$CPP" >&6; }
3598 ac_preproc_ok=false
3599 for ac_c_preproc_warn_flag in '' yes
3600 do
3601 # Use a header file that comes with gcc, so configuring glibc
3602 # with a fresh cross-compiler works.
3603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 # <limits.h> exists even on freestanding compilers.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error" is here to catch this case.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #ifdef __STDC__
3610 # include <limits.h>
3611 #else
3612 # include <assert.h>
3613 #endif
3614 Syntax error
3615 _ACEOF
3616 if ac_fn_c_try_cpp "$LINENO"; then :
3617
3618 else
3619 # Broken: fails on valid input.
3620 continue
3621 fi
3622 rm -f conftest.err conftest.$ac_ext
3623
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <ac_nonexistent.h>
3629 _ACEOF
3630 if ac_fn_c_try_cpp "$LINENO"; then :
3631 # Broken: success on invalid input.
3632 continue
3633 else
3634 # Passes both tests.
3635 ac_preproc_ok=:
3636 break
3637 fi
3638 rm -f conftest.err conftest.$ac_ext
3639
3640 done
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.err conftest.$ac_ext
3643 if $ac_preproc_ok; then :
3644
3645 else
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." "$LINENO" 5; }
3650 fi
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
3658
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3662 if test "${ac_cv_path_GREP+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -z "$GREP"; then
3666 ac_path_GREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in grep ggrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3682 *)
3683 ac_count=0
3684 $as_echo_n 0123456789 >"conftest.in"
3685 while :
3686 do
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 $as_echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 as_fn_arith $ac_count + 1 && ac_count=$as_val
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP="$ac_path_GREP"
3697 ac_path_GREP_max=$ac_count
3698 fi
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3704
3705 $ac_path_GREP_found && break 3
3706 done
3707 done
3708 done
3709 IFS=$as_save_IFS
3710 if test -z "$ac_cv_path_GREP"; then
3711 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3712 fi
3713 else
3714 ac_cv_path_GREP=$GREP
3715 fi
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3719 $as_echo "$ac_cv_path_GREP" >&6; }
3720 GREP="$ac_cv_path_GREP"
3721
3722
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3724 $as_echo_n "checking for egrep... " >&6; }
3725 if test "${ac_cv_path_EGREP+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3729 then ac_cv_path_EGREP="$GREP -E"
3730 else
3731 if test -z "$EGREP"; then
3732 ac_path_EGREP_found=false
3733 # Loop through the user's path and test for each of PROGNAME-LIST
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_prog in egrep; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3742 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3743 # Check for GNU ac_path_EGREP and select it if it is found.
3744 # Check for GNU $ac_path_EGREP
3745 case `"$ac_path_EGREP" --version 2>&1` in
3746 *GNU*)
3747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3748 *)
3749 ac_count=0
3750 $as_echo_n 0123456789 >"conftest.in"
3751 while :
3752 do
3753 cat "conftest.in" "conftest.in" >"conftest.tmp"
3754 mv "conftest.tmp" "conftest.in"
3755 cp "conftest.in" "conftest.nl"
3756 $as_echo 'EGREP' >> "conftest.nl"
3757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3759 as_fn_arith $ac_count + 1 && ac_count=$as_val
3760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3761 # Best one so far, save it but keep looking for a better one
3762 ac_cv_path_EGREP="$ac_path_EGREP"
3763 ac_path_EGREP_max=$ac_count
3764 fi
3765 # 10*(2^10) chars as input seems more than enough
3766 test $ac_count -gt 10 && break
3767 done
3768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3769 esac
3770
3771 $ac_path_EGREP_found && break 3
3772 done
3773 done
3774 done
3775 IFS=$as_save_IFS
3776 if test -z "$ac_cv_path_EGREP"; then
3777 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3778 fi
3779 else
3780 ac_cv_path_EGREP=$EGREP
3781 fi
3782
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3786 $as_echo "$ac_cv_path_EGREP" >&6; }
3787 EGREP="$ac_cv_path_EGREP"
3788
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3791 $as_echo_n "checking for ANSI C header files... " >&6; }
3792 if test "${ac_cv_header_stdc+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <stdlib.h>
3798 #include <stdarg.h>
3799 #include <string.h>
3800 #include <float.h>
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_header_stdc=yes
3812 else
3813 ac_cv_header_stdc=no
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817 if test $ac_cv_header_stdc = yes; then
3818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <string.h>
3822
3823 _ACEOF
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 $EGREP "memchr" >/dev/null 2>&1; then :
3826
3827 else
3828 ac_cv_header_stdc=no
3829 fi
3830 rm -f conftest*
3831
3832 fi
3833
3834 if test $ac_cv_header_stdc = yes; then
3835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <stdlib.h>
3839
3840 _ACEOF
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842 $EGREP "free" >/dev/null 2>&1; then :
3843
3844 else
3845 ac_cv_header_stdc=no
3846 fi
3847 rm -f conftest*
3848
3849 fi
3850
3851 if test $ac_cv_header_stdc = yes; then
3852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3853 if test "$cross_compiling" = yes; then :
3854 :
3855 else
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858 #include <ctype.h>
3859 #include <stdlib.h>
3860 #if ((' ' & 0x0FF) == 0x020)
3861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3863 #else
3864 # define ISLOWER(c) \
3865 (('a' <= (c) && (c) <= 'i') \
3866 || ('j' <= (c) && (c) <= 'r') \
3867 || ('s' <= (c) && (c) <= 'z'))
3868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3869 #endif
3870
3871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3872 int
3873 main ()
3874 {
3875 int i;
3876 for (i = 0; i < 256; i++)
3877 if (XOR (islower (i), ISLOWER (i))
3878 || toupper (i) != TOUPPER (i))
3879 return 2;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_run "$LINENO"; then :
3884
3885 else
3886 ac_cv_header_stdc=no
3887 fi
3888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3889 conftest.$ac_objext conftest.beam conftest.$ac_ext
3890 fi
3891
3892 fi
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3895 $as_echo "$ac_cv_header_stdc" >&6; }
3896 if test $ac_cv_header_stdc = yes; then
3897
3898 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3899
3900 fi
3901
3902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3903 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3904 inttypes.h stdint.h unistd.h
3905 do :
3906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3907 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3908 "
3909 eval as_val=\$$as_ac_Header
3910 if test "x$as_val" = x""yes; then :
3911 cat >>confdefs.h <<_ACEOF
3912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3913 _ACEOF
3914
3915 fi
3916
3917 done
3918
3919
3920 # The cast to long int works around a bug in the HP C Compiler
3921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3923 # This bug is HP SR number 8606223364.
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3925 $as_echo_n "checking size of void *... " >&6; }
3926 if test "${ac_cv_sizeof_void_p+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3930
3931 else
3932 if test "$ac_cv_type_void_p" = yes; then
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 { as_fn_set_status 77
3936 as_fn_error "cannot compute sizeof (void *)
3937 See \`config.log' for more details." "$LINENO" 5; }; }
3938 else
3939 ac_cv_sizeof_void_p=0
3940 fi
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3945 $as_echo "$ac_cv_sizeof_void_p" >&6; }
3946
3947
3948
3949 cat >>confdefs.h <<_ACEOF
3950 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3951 _ACEOF
3952
3953
3954 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
3955 LG_SIZEOF_PTR=3
3956 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
3957 LG_SIZEOF_PTR=2
3958 else
3959 as_fn_error "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
3960 fi
3961 cat >>confdefs.h <<_ACEOF
3962 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
3963 _ACEOF
3964
3965
3966 # The cast to long int works around a bug in the HP C Compiler
3967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3969 # This bug is HP SR number 8606223364.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
3971 $as_echo_n "checking size of int... " >&6; }
3972 if test "${ac_cv_sizeof_int+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
3976
3977 else
3978 if test "$ac_cv_type_int" = yes; then
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 { as_fn_set_status 77
3982 as_fn_error "cannot compute sizeof (int)
3983 See \`config.log' for more details." "$LINENO" 5; }; }
3984 else
3985 ac_cv_sizeof_int=0
3986 fi
3987 fi
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
3991 $as_echo "$ac_cv_sizeof_int" >&6; }
3992
3993
3994
3995 cat >>confdefs.h <<_ACEOF
3996 #define SIZEOF_INT $ac_cv_sizeof_int
3997 _ACEOF
3998
3999
4000 if test "x${ac_cv_sizeof_int}" = "x8" ; then
4001 LG_SIZEOF_INT=3
4002 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
4003 LG_SIZEOF_INT=2
4004 else
4005 as_fn_error "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
4006 fi
4007 cat >>confdefs.h <<_ACEOF
4008 #define LG_SIZEOF_INT $LG_SIZEOF_INT
4009 _ACEOF
4010
4011
4012 # The cast to long int works around a bug in the HP C Compiler
4013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4015 # This bug is HP SR number 8606223364.
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4017 $as_echo_n "checking size of long... " >&6; }
4018 if test "${ac_cv_sizeof_long+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4022
4023 else
4024 if test "$ac_cv_type_long" = yes; then
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 { as_fn_set_status 77
4028 as_fn_error "cannot compute sizeof (long)
4029 See \`config.log' for more details." "$LINENO" 5; }; }
4030 else
4031 ac_cv_sizeof_long=0
4032 fi
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4037 $as_echo "$ac_cv_sizeof_long" >&6; }
4038
4039
4040
4041 cat >>confdefs.h <<_ACEOF
4042 #define SIZEOF_LONG $ac_cv_sizeof_long
4043 _ACEOF
4044
4045
4046 if test "x${ac_cv_sizeof_long}" = "x8" ; then
4047 LG_SIZEOF_LONG=3
4048 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
4049 LG_SIZEOF_LONG=2
4050 else
4051 as_fn_error "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
4052 fi
4053 cat >>confdefs.h <<_ACEOF
4054 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
4055 _ACEOF
4056
4057
4058 ac_aux_dir=
4059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4060 for ac_t in install-sh install.sh shtool; do
4061 if test -f "$ac_dir/$ac_t"; then
4062 ac_aux_dir=$ac_dir
4063 ac_install_sh="$ac_aux_dir/$ac_t -c"
4064 break 2
4065 fi
4066 done
4067 done
4068 if test -z "$ac_aux_dir"; then
4069 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4070 fi
4071
4072 # These three variables are undocumented and unsupported,
4073 # and are intended to be withdrawn in a future Autoconf release.
4074 # They can cause serious problems if a builder's source tree is in a directory
4075 # whose full name contains unusual characters.
4076 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4077 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4078 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4079
4080
4081 # Make sure we can run config.sub.
4082 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4083 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4086 $as_echo_n "checking build system type... " >&6; }
4087 if test "${ac_cv_build+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_build_alias=$build_alias
4091 test "x$ac_build_alias" = x &&
4092 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4093 test "x$ac_build_alias" = x &&
4094 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4095 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4096 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4097
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4100 $as_echo "$ac_cv_build" >&6; }
4101 case $ac_cv_build in
4102 *-*-*) ;;
4103 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4104 esac
4105 build=$ac_cv_build
4106 ac_save_IFS=$IFS; IFS='-'
4107 set x $ac_cv_build
4108 shift
4109 build_cpu=$1
4110 build_vendor=$2
4111 shift; shift
4112 # Remember, the first character of IFS is used to create $*,
4113 # except with old shells:
4114 build_os=$*
4115 IFS=$ac_save_IFS
4116 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4117
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4120 $as_echo_n "checking host system type... " >&6; }
4121 if test "${ac_cv_host+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test "x$host_alias" = x; then
4125 ac_cv_host=$ac_cv_build
4126 else
4127 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4128 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4129 fi
4130
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4133 $as_echo "$ac_cv_host" >&6; }
4134 case $ac_cv_host in
4135 *-*-*) ;;
4136 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4137 esac
4138 host=$ac_cv_host
4139 ac_save_IFS=$IFS; IFS='-'
4140 set x $ac_cv_host
4141 shift
4142 host_cpu=$1
4143 host_vendor=$2
4144 shift; shift
4145 # Remember, the first character of IFS is used to create $*,
4146 # except with old shells:
4147 host_os=$*
4148 IFS=$ac_save_IFS
4149 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4150
4151
4152 CPU_SPINWAIT=""
4153 case "${host_cpu}" in
4154 i[345]86)
4155 ;;
4156 i686)
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ is compilable" >&5
4159 $as_echo_n "checking whether __asm__ is compilable... " >&6; }
4160 if test "$cross_compiling" = yes; then :
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 as_fn_error "cannot run test program while cross compiling
4164 See \`config.log' for more details." "$LINENO" 5; }
4165 else
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main ()
4171 {
4172 __asm__ volatile("pause"); return 0;
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_run "$LINENO"; then :
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180 asm="yes"
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 asm="no"
4185
4186 fi
4187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4188 conftest.$ac_objext conftest.beam conftest.$ac_ext
4189 fi
4190
4191
4192 if test "x${asm}" = "xyes" ; then
4193 CPU_SPINWAIT='__asm__ volatile("pause")'
4194 fi
4195 ;;
4196 x86_64)
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ syntax is compilable" >&5
4199 $as_echo_n "checking whether __asm__ syntax is compilable... " >&6; }
4200 if test "$cross_compiling" = yes; then :
4201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error "cannot run test program while cross compiling
4204 See \`config.log' for more details." "$LINENO" 5; }
4205 else
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208
4209 int
4210 main ()
4211 {
4212 __asm__ volatile("pause"); return 0;
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_c_try_run "$LINENO"; then :
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4219 $as_echo "yes" >&6; }
4220 asm="yes"
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 asm="no"
4225
4226 fi
4227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4228 conftest.$ac_objext conftest.beam conftest.$ac_ext
4229 fi
4230
4231
4232 if test "x${asm}" = "xyes" ; then
4233 CPU_SPINWAIT='__asm__ volatile("pause")'
4234 fi
4235 ;;
4236 *)
4237 ;;
4238 esac
4239 cat >>confdefs.h <<_ACEOF
4240 #define CPU_SPINWAIT $CPU_SPINWAIT
4241 _ACEOF
4242
4243
4244 case "${host}" in
4245 *-*-darwin*)
4246 CFLAGS="$CFLAGS -fno-common -no-cpp-precomp"
4247 abi="macho"
4248 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE 1" >>confdefs.h
4249
4250 RPATH=""
4251 ;;
4252 *-*-freebsd*)
4253 CFLAGS="$CFLAGS"
4254 abi="elf"
4255 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE 1" >>confdefs.h
4256
4257 RPATH="-Wl,-rpath,"
4258 ;;
4259 *-*-linux*)
4260 CFLAGS="$CFLAGS"
4261 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
4262 abi="elf"
4263 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED 1" >>confdefs.h
4264
4265 RPATH="-Wl,-rpath,"
4266 ;;
4267 *-*-netbsd*)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
4269 $as_echo_n "checking ABI... " >&6; }
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #ifdef __ELF__
4273 /* ELF */
4274 #else
4275 #error aout
4276 #endif
4277
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 CFLAGS="$CFLAGS"; abi="elf"
4288 else
4289 abi="aout"
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
4293 $as_echo "$abi" >&6; }
4294 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE 1" >>confdefs.h
4295
4296 RPATH="-Wl,-rpath,"
4297 ;;
4298 *-*-solaris2*)
4299 CFLAGS="$CFLAGS"
4300 abi="elf"
4301 RPATH="-Wl,-R,"
4302 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
4303 LIBS="$LIBS -lposix4 -lsocket -lnsl"
4304 ;;
4305 *)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
4307 $as_echo "Unsupported operating system: ${host}" >&6; }
4308 abi="elf"
4309 RPATH="-Wl,-rpath,"
4310 ;;
4311 esac
4312
4313
4314
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
4317 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
4318 if test "$cross_compiling" = yes; then :
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error "cannot run test program while cross compiling
4322 See \`config.log' for more details." "$LINENO" 5; }
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 static __attribute__((unused)) void foo(void){}
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_run "$LINENO"; then :
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337 $as_echo "yes" >&6; }
4338 attribute="yes"
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 attribute="no"
4343
4344 fi
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4346 conftest.$ac_objext conftest.beam conftest.$ac_ext
4347 fi
4348
4349
4350 if test "x${attribute}" = "xyes" ; then
4351 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
4352
4353 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
4356 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
4357 TCFLAGS="${CFLAGS}"
4358 if test "x${CFLAGS}" = "x" ; then
4359 CFLAGS="-fvisibility=hidden"
4360 else
4361 CFLAGS="${CFLAGS} -fvisibility=hidden"
4362 fi
4363 if test "$cross_compiling" = yes; then :
4364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366 as_fn_error "cannot run test program while cross compiling
4367 See \`config.log' for more details." "$LINENO" 5; }
4368 else
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371
4372
4373 int
4374 main ()
4375 {
4376
4377 return 0;
4378
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 if ac_fn_c_try_run "$LINENO"; then :
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4385 $as_echo "yes" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 CFLAGS="${TCFLAGS}"
4390
4391 fi
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4393 conftest.$ac_objext conftest.beam conftest.$ac_ext
4394 fi
4395
4396
4397 fi
4398 fi
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mremap(...MREMAP_FIXED...) is compilable" >&5
4402 $as_echo_n "checking whether mremap(...MREMAP_FIXED...) is compilable... " >&6; }
4403 if test "$cross_compiling" = yes; then :
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error "cannot run test program while cross compiling
4407 See \`config.log' for more details." "$LINENO" 5; }
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 #define _GNU_SOURCE
4413 #include <sys/mman.h>
4414
4415 int
4416 main ()
4417 {
4418
4419 void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0);
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_run "$LINENO"; then :
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4427 $as_echo "yes" >&6; }
4428 mremap_fixed="yes"
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 mremap_fixed="no"
4433
4434 fi
4435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4436 conftest.$ac_objext conftest.beam conftest.$ac_ext
4437 fi
4438
4439
4440 if test "x${mremap_fixed}" = "xyes" ; then
4441 $as_echo "#define JEMALLOC_MREMAP_FIXED 1" >>confdefs.h
4442
4443 fi
4444
4445
4446 # Check whether --with-rpath was given.
4447 if test "${with_rpath+set}" = set; then :
4448 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
4449 RPATH_EXTRA=
4450 else
4451 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
4452 fi
4453 else
4454 RPATH_EXTRA=
4455
4456 fi
4457
4458
4459
4460 # Check whether --enable-autogen was given.
4461 if test "${enable_autogen+set}" = set; then :
4462 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
4463 enable_autogen="0"
4464 else
4465 enable_autogen="1"
4466 fi
4467
4468 else
4469 enable_autogen="0"
4470
4471 fi
4472
4473
4474
4475 # Find a good install program. We prefer a C program (faster),
4476 # so one script is as good as another. But avoid the broken or
4477 # incompatible versions:
4478 # SysV /etc/install, /usr/sbin/install
4479 # SunOS /usr/etc/install
4480 # IRIX /sbin/install
4481 # AIX /bin/install
4482 # AmigaOS /C/install, which installs bootblocks on floppy discs
4483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4486 # OS/2's system install, which has a completely different semantic
4487 # ./install, which can be erroneously created by make from ./install.sh.
4488 # Reject install programs that cannot install multiple files.
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4491 if test -z "$INSTALL"; then
4492 if test "${ac_cv_path_install+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 # Account for people who put trailing slashes in PATH elements.
4501 case $as_dir/ in #((
4502 ./ | .// | /[cC]/* | \
4503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4505 /usr/ucb/* ) ;;
4506 *)
4507 # OSF1 and SCO ODT 3.0 have their own names for install.
4508 # Don't use installbsd from OSF since it installs stuff as root
4509 # by default.
4510 for ac_prog in ginstall scoinst install; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4513 if test $ac_prog = install &&
4514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4515 # AIX install. It has an incompatible calling convention.
4516 :
4517 elif test $ac_prog = install &&
4518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4519 # program-specific install script used by HP pwplus--don't use.
4520 :
4521 else
4522 rm -rf conftest.one conftest.two conftest.dir
4523 echo one > conftest.one
4524 echo two > conftest.two
4525 mkdir conftest.dir
4526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4527 test -s conftest.one && test -s conftest.two &&
4528 test -s conftest.dir/conftest.one &&
4529 test -s conftest.dir/conftest.two
4530 then
4531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4532 break 3
4533 fi
4534 fi
4535 fi
4536 done
4537 done
4538 ;;
4539 esac
4540
4541 done
4542 IFS=$as_save_IFS
4543
4544 rm -rf conftest.one conftest.two conftest.dir
4545
4546 fi
4547 if test "${ac_cv_path_install+set}" = set; then
4548 INSTALL=$ac_cv_path_install
4549 else
4550 # As a last resort, use the slow shell script. Don't cache a
4551 # value for INSTALL within a source directory, because that will
4552 # break other packages using the cache if that directory is
4553 # removed, or if the value is a relative name.
4554 INSTALL=$ac_install_sh
4555 fi
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4558 $as_echo "$INSTALL" >&6; }
4559
4560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4561 # It thinks the first close brace ends the variable substitution.
4562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4563
4564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4565
4566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4567
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$RANLIB"; then
4577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 RANLIB=$ac_cv_prog_RANLIB
4597 if test -n "$RANLIB"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4599 $as_echo "$RANLIB" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 fi
4607 if test -z "$ac_cv_prog_RANLIB"; then
4608 ac_ct_RANLIB=$RANLIB
4609 # Extract the first word of "ranlib", so it can be a program name with args.
4610 set dummy ranlib; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$ac_ct_RANLIB"; then
4617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_ac_ct_RANLIB="ranlib"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4637 if test -n "$ac_ct_RANLIB"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4639 $as_echo "$ac_ct_RANLIB" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645 if test "x$ac_ct_RANLIB" = x; then
4646 RANLIB=":"
4647 else
4648 case $cross_compiling:$ac_tool_warned in
4649 yes:)
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652 ac_tool_warned=yes ;;
4653 esac
4654 RANLIB=$ac_ct_RANLIB
4655 fi
4656 else
4657 RANLIB="$ac_cv_prog_RANLIB"
4658 fi
4659
4660 # Extract the first word of "ar", so it can be a program name with args.
4661 set dummy ar; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_path_AR+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 case $AR in
4668 [\\/]* | ?:[\\/]*)
4669 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4670 ;;
4671 *)
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687 ;;
4688 esac
4689 fi
4690 AR=$ac_cv_path_AR
4691 if test -n "$AR"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4693 $as_echo "$AR" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699
4700 # Extract the first word of "ld", so it can be a program name with args.
4701 set dummy ld; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_path_LD+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 case $LD in
4708 [\\/]* | ?:[\\/]*)
4709 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4710 ;;
4711 *)
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4722 fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4726
4727 ;;
4728 esac
4729 fi
4730 LD=$ac_cv_path_LD
4731 if test -n "$LD"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4733 $as_echo "$LD" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 # Extract the first word of "autoconf", so it can be a program name with args.
4741 set dummy autoconf; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_path_AUTOCONF+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 case $AUTOCONF in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 ;;
4768 esac
4769 fi
4770 AUTOCONF=$ac_cv_path_AUTOCONF
4771 if test -n "$AUTOCONF"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4773 $as_echo "$AUTOCONF" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780
4781
4782 # Check whether --with-jemalloc_prefix was given.
4783 if test "${with_jemalloc_prefix+set}" = set; then :
4784 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
4785 else
4786 if test "x$abi" != "xmacho" ; then
4787 JEMALLOC_PREFIX=""
4788 else
4789 JEMALLOC_PREFIX="je_"
4790 fi
4791
4792 fi
4793
4794 if test "x$JEMALLOC_PREFIX" != "x" ; then
4795 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
4796 cat >>confdefs.h <<_ACEOF
4797 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
4798 _ACEOF
4799
4800 cat >>confdefs.h <<_ACEOF
4801 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
4802 _ACEOF
4803
4804 cat >>confdefs.h <<_ACEOF
4805 #define JEMALLOC_P(string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix) ${JEMALLOC_PREFIX}##string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix
4806 _ACEOF
4807
4808 fi
4809
4810
4811 # Check whether --with-private_namespace was given.
4812 if test "${with_private_namespace+set}" = set; then :
4813 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="$with_private_namespace"
4814 else
4815 JEMALLOC_PRIVATE_NAMESPACE=""
4816
4817 fi
4818
4819 cat >>confdefs.h <<_ACEOF
4820 #define JEMALLOC_PRIVATE_NAMESPACE "$JEMALLOC_PRIVATE_NAMESPACE"
4821 _ACEOF
4822
4823 if test "x$JEMALLOC_PRIVATE_NAMESPACE" != "x" ; then
4824 cat >>confdefs.h <<_ACEOF
4825 #define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) ${JEMALLOC_PRIVATE_NAMESPACE}##string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix
4826 _ACEOF
4827
4828 else
4829 cat >>confdefs.h <<_ACEOF
4830 #define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix
4831 _ACEOF
4832
4833 fi
4834
4835
4836 # Check whether --with-install_suffix was given.
4837 if test "${with_install_suffix+set}" = set; then :
4838 withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
4839 else
4840 INSTALL_SUFFIX=
4841
4842 fi
4843
4844 install_suffix="$INSTALL_SUFFIX"
4845
4846
4847 cfgoutputs_in="${srcroot}Makefile.in"
4848 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in"
4849 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in"
4850 cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in"
4851 cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc.h.in"
4852 cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in"
4853 cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/jemalloc_test.h.in"
4854
4855 cfgoutputs_out="Makefile"
4856 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
4857 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
4858 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc${install_suffix}.xml"
4859 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h"
4860 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
4861 cfgoutputs_out="${cfgoutputs_out} test/jemalloc_test.h"
4862
4863 cfgoutputs_tup="Makefile"
4864 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
4865 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
4866 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc${install_suffix}.xml:doc/jemalloc.xml.in"
4867 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in"
4868 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
4869 cfgoutputs_tup="${cfgoutputs_tup} test/jemalloc_test.h:test/jemalloc_test.h.in"
4870
4871 cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in"
4872
4873 cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h"
4874
4875 cfghdrs_tup="include/jemalloc/jemalloc_defs${install_suffix}.h:include/jemalloc/jemalloc_defs.h.in"
4876
4877 # Check whether --enable-cc-silence was given.
4878 if test "${enable_cc_silence+set}" = set; then :
4879 enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
4880 enable_cc_silence="0"
4881 else
4882 enable_cc_silence="1"
4883 fi
4884
4885 else
4886 enable_cc_silence="0"
4887
4888 fi
4889
4890 if test "x$enable_cc_silence" = "x1" ; then
4891 $as_echo "#define JEMALLOC_CC_SILENCE 1" >>confdefs.h
4892
4893 fi
4894
4895 # Check whether --enable-debug was given.
4896 if test "${enable_debug+set}" = set; then :
4897 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
4898 enable_debug="0"
4899 else
4900 enable_debug="1"
4901 fi
4902
4903 else
4904 enable_debug="0"
4905
4906 fi
4907
4908 if test "x$enable_debug" = "x1" ; then
4909 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
4910
4911 $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h
4912
4913 fi
4914
4915
4916 if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
4917 optimize="no"
4918 echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes"
4919 if test "x${optimize}" = "xyes" ; then
4920 if test "x$GCC" = "xyes" ; then
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
4923 $as_echo_n "checking whether compiler supports -O3... " >&6; }
4924 TCFLAGS="${CFLAGS}"
4925 if test "x${CFLAGS}" = "x" ; then
4926 CFLAGS="-O3"
4927 else
4928 CFLAGS="${CFLAGS} -O3"
4929 fi
4930 if test "$cross_compiling" = yes; then :
4931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4933 as_fn_error "cannot run test program while cross compiling
4934 See \`config.log' for more details." "$LINENO" 5; }
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939
4940 int
4941 main ()
4942 {
4943
4944 return 0;
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_c_try_run "$LINENO"; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952 $as_echo "yes" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 CFLAGS="${TCFLAGS}"
4957
4958 fi
4959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4960 conftest.$ac_objext conftest.beam conftest.$ac_ext
4961 fi
4962
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
4966 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
4967 TCFLAGS="${CFLAGS}"
4968 if test "x${CFLAGS}" = "x" ; then
4969 CFLAGS="-funroll-loops"
4970 else
4971 CFLAGS="${CFLAGS} -funroll-loops"
4972 fi
4973 if test "$cross_compiling" = yes; then :
4974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4976 as_fn_error "cannot run test program while cross compiling
4977 See \`config.log' for more details." "$LINENO" 5; }
4978 else
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981
4982
4983 int
4984 main ()
4985 {
4986
4987 return 0;
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_run "$LINENO"; then :
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4995 $as_echo "yes" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 CFLAGS="${TCFLAGS}"
5000
5001 fi
5002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5003 conftest.$ac_objext conftest.beam conftest.$ac_ext
5004 fi
5005
5006
5007 else
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
5010 $as_echo_n "checking whether compiler supports -O... " >&6; }
5011 TCFLAGS="${CFLAGS}"
5012 if test "x${CFLAGS}" = "x" ; then
5013 CFLAGS="-O"
5014 else
5015 CFLAGS="${CFLAGS} -O"
5016 fi
5017 if test "$cross_compiling" = yes; then :
5018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020 as_fn_error "cannot run test program while cross compiling
5021 See \`config.log' for more details." "$LINENO" 5; }
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025
5026
5027 int
5028 main ()
5029 {
5030
5031 return 0;
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_run "$LINENO"; then :
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039 $as_echo "yes" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 CFLAGS="${TCFLAGS}"
5044
5045 fi
5046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5047 conftest.$ac_objext conftest.beam conftest.$ac_ext
5048 fi
5049
5050
5051 fi
5052 fi
5053 fi
5054
5055 # Check whether --enable-stats was given.
5056 if test "${enable_stats+set}" = set; then :
5057 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
5058 enable_stats="0"
5059 else
5060 enable_stats="1"
5061 fi
5062
5063 else
5064 enable_stats="0"
5065
5066 fi
5067
5068 if test "x$enable_stats" = "x1" ; then
5069 $as_echo "#define JEMALLOC_STATS " >>confdefs.h
5070
5071 fi
5072
5073
5074 # Check whether --enable-prof was given.
5075 if test "${enable_prof+set}" = set; then :
5076 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
5077 enable_prof="0"
5078 else
5079 enable_prof="1"
5080 fi
5081
5082 else
5083 enable_prof="0"
5084
5085 fi
5086
5087 if test "x$enable_prof" = "x1" ; then
5088 backtrace_method=""
5089 else
5090 backtrace_method="N/A"
5091 fi
5092
5093 # Check whether --enable-prof-libunwind was given.
5094 if test "${enable_prof_libunwind+set}" = set; then :
5095 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
5096 enable_prof_libunwind="0"
5097 else
5098 enable_prof_libunwind="1"
5099 fi
5100
5101 else
5102 enable_prof_libunwind="0"
5103
5104 fi
5105
5106
5107 # Check whether --with-static_libunwind was given.
5108 if test "${with_static_libunwind+set}" = set; then :
5109 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
5110 LUNWIND="-lunwind"
5111 else
5112 if test ! -f "$with_static_libunwind" ; then
5113 as_fn_error "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
5114 fi
5115 LUNWIND="$with_static_libunwind"
5116 fi
5117 else
5118 LUNWIND="-lunwind"
5119
5120 fi
5121
5122 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
5123 for ac_header in libunwind.h
5124 do :
5125 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
5126 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
5127 cat >>confdefs.h <<_ACEOF
5128 #define HAVE_LIBUNWIND_H 1
5129 _ACEOF
5130
5131 else
5132 enable_prof_libunwind="0"
5133 fi
5134
5135 done
5136
5137 if test "x$LUNWIND" = "x-lunwind" ; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
5139 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
5140 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 ac_check_lib_save_LIBS=$LIBS
5144 LIBS="-lunwind $LIBS"
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5151 #ifdef __cplusplus
5152 extern "C"
5153 #endif
5154 char backtrace ();
5155 int
5156 main ()
5157 {
5158 return backtrace ();
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_link "$LINENO"; then :
5164 ac_cv_lib_unwind_backtrace=yes
5165 else
5166 ac_cv_lib_unwind_backtrace=no
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_check_lib_save_LIBS
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
5173 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
5174 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
5175 LIBS="$LIBS $LUNWIND"
5176 else
5177 enable_prof_libunwind="0"
5178 fi
5179
5180 else
5181 LIBS="$LIBS $LUNWIND"
5182 fi
5183 if test "x${enable_prof_libunwind}" = "x1" ; then
5184 backtrace_method="libunwind"
5185 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
5186
5187 fi
5188 fi
5189
5190 # Check whether --enable-prof-libgcc was given.
5191 if test "${enable_prof_libgcc+set}" = set; then :
5192 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
5193 enable_prof_libgcc="0"
5194 else
5195 enable_prof_libgcc="1"
5196 fi
5197
5198 else
5199 enable_prof_libgcc="1"
5200
5201 fi
5202
5203 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
5204 -a "x$GCC" = "xyes" ; then
5205 for ac_header in unwind.h
5206 do :
5207 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
5208 if test "x$ac_cv_header_unwind_h" = x""yes; then :
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_UNWIND_H 1
5211 _ACEOF
5212
5213 else
5214 enable_prof_libgcc="0"
5215 fi
5216
5217 done
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
5220 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
5221 if test "${ac_cv_lib_gcc__Unwind_Backtrace+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 ac_check_lib_save_LIBS=$LIBS
5225 LIBS="-lgcc $LIBS"
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228
5229 /* Override any GCC internal prototype to avoid an error.
5230 Use char because int might match the return type of a GCC
5231 builtin and then its argument prototype would still apply. */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 char _Unwind_Backtrace ();
5236 int
5237 main ()
5238 {
5239 return _Unwind_Backtrace ();
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_link "$LINENO"; then :
5245 ac_cv_lib_gcc__Unwind_Backtrace=yes
5246 else
5247 ac_cv_lib_gcc__Unwind_Backtrace=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251 LIBS=$ac_check_lib_save_LIBS
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
5254 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
5255 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = x""yes; then :
5256 LIBS="$LIBS -lgcc"
5257 else
5258 enable_prof_libgcc="0"
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcc-based backtracing reliability on ${host_cpu}" >&5
5262 $as_echo_n "checking libgcc-based backtracing reliability on ${host_cpu}... " >&6; }
5263 case "${host_cpu}" in
5264 i[3456]86)
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
5266 $as_echo "unreliable" >&6; }
5267 enable_prof_libgcc="0";
5268 ;;
5269 x86_64)
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reliable" >&5
5271 $as_echo "reliable" >&6; }
5272 ;;
5273 *)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
5275 $as_echo "unreliable" >&6; }
5276 enable_prof_libgcc="0";
5277 ;;
5278 esac
5279 if test "x${enable_prof_libgcc}" = "x1" ; then
5280 backtrace_method="libgcc"
5281 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
5282
5283 fi
5284 else
5285 enable_prof_libgcc="0"
5286 fi
5287
5288 # Check whether --enable-prof-gcc was given.
5289 if test "${enable_prof_gcc+set}" = set; then :
5290 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
5291 enable_prof_gcc="0"
5292 else
5293 enable_prof_gcc="1"
5294 fi
5295
5296 else
5297 enable_prof_gcc="1"
5298
5299 fi
5300
5301 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
5302 -a "x$GCC" = "xyes" ; then
5303 backtrace_method="gcc intrinsics"
5304 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
5305
5306 else
5307 enable_prof_gcc="0"
5308 fi
5309
5310 if test "x$backtrace_method" = "x" ; then
5311 backtrace_method="none (disabling profiling)"
5312 enable_prof="0"
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
5315 $as_echo_n "checking configured backtracing method... " >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
5317 $as_echo "$backtrace_method" >&6; }
5318 if test "x$enable_prof" = "x1" ; then
5319 LIBS="$LIBS -lm"
5320 $as_echo "#define JEMALLOC_PROF " >>confdefs.h
5321
5322 fi
5323
5324
5325 # Check whether --enable-tiny was given.
5326 if test "${enable_tiny+set}" = set; then :
5327 enableval=$enable_tiny; if test "x$enable_tiny" = "xno" ; then
5328 enable_tiny="0"
5329 else
5330 enable_tiny="1"
5331 fi
5332
5333 else
5334 enable_tiny="1"
5335
5336 fi
5337
5338 if test "x$enable_tiny" = "x1" ; then
5339 $as_echo "#define JEMALLOC_TINY " >>confdefs.h
5340
5341 fi
5342
5343
5344 # Check whether --enable-tcache was given.
5345 if test "${enable_tcache+set}" = set; then :
5346 enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
5347 enable_tcache="0"
5348 else
5349 enable_tcache="1"
5350 fi
5351
5352 else
5353 enable_tcache="1"
5354
5355 fi
5356
5357 if test "x$enable_tcache" = "x1" ; then
5358 $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h
5359
5360 fi
5361
5362
5363 # Check whether --enable-swap was given.
5364 if test "${enable_swap+set}" = set; then :
5365 enableval=$enable_swap; if test "x$enable_swap" = "xno" ; then
5366 enable_swap="0"
5367 else
5368 enable_swap="1"
5369 fi
5370
5371 else
5372 enable_swap="0"
5373
5374 fi
5375
5376 if test "x$enable_swap" = "x1" ; then
5377 $as_echo "#define JEMALLOC_SWAP " >>confdefs.h
5378
5379 fi
5380
5381
5382 # Check whether --enable-dss was given.
5383 if test "${enable_dss+set}" = set; then :
5384 enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then
5385 enable_dss="0"
5386 else
5387 enable_dss="1"
5388 fi
5389
5390 else
5391 enable_dss="0"
5392
5393 fi
5394
5395 if test "x$enable_dss" = "x1" ; then
5396 $as_echo "#define JEMALLOC_DSS " >>confdefs.h
5397
5398 fi
5399
5400
5401 # Check whether --enable-fill was given.
5402 if test "${enable_fill+set}" = set; then :
5403 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
5404 enable_fill="0"
5405 else
5406 enable_fill="1"
5407 fi
5408
5409 else
5410 enable_fill="0"
5411
5412 fi
5413
5414 if test "x$enable_fill" = "x1" ; then
5415 $as_echo "#define JEMALLOC_FILL " >>confdefs.h
5416
5417 fi
5418
5419
5420 # Check whether --enable-xmalloc was given.
5421 if test "${enable_xmalloc+set}" = set; then :
5422 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
5423 enable_xmalloc="0"
5424 else
5425 enable_xmalloc="1"
5426 fi
5427
5428 else
5429 enable_xmalloc="0"
5430
5431 fi
5432
5433 if test "x$enable_xmalloc" = "x1" ; then
5434 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
5435
5436 fi
5437
5438
5439 # Check whether --enable-sysv was given.
5440 if test "${enable_sysv+set}" = set; then :
5441 enableval=$enable_sysv; if test "x$enable_sysv" = "xno" ; then
5442 enable_sysv="0"
5443 else
5444 enable_sysv="1"
5445 fi
5446
5447 else
5448 enable_sysv="0"
5449
5450 fi
5451
5452 if test "x$enable_sysv" = "x1" ; then
5453 $as_echo "#define JEMALLOC_SYSV " >>confdefs.h
5454
5455 fi
5456
5457
5458 # Check whether --enable-dynamic_page_shift was given.
5459 if test "${enable_dynamic_page_shift+set}" = set; then :
5460 enableval=$enable_dynamic_page_shift; if test "x$enable_dynamic_page_shift" = "xno" ; then
5461 enable_dynamic_page_shift="0"
5462 else
5463 enable_dynamic_page_shift="1"
5464 fi
5465
5466 else
5467 enable_dynamic_page_shift="0"
5468
5469 fi
5470
5471 if test "x$enable_dynamic_page_shift" = "x1" ; then
5472 $as_echo "#define DYNAMIC_PAGE_SHIFT " >>confdefs.h
5473
5474 fi
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking STATIC_PAGE_SHIFT" >&5
5478 $as_echo_n "checking STATIC_PAGE_SHIFT... " >&6; }
5479 if test "$cross_compiling" = yes; then :
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5482 as_fn_error "cannot run test program while cross compiling
5483 See \`config.log' for more details." "$LINENO" 5; }
5484 else
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <stdio.h>
5488 #include <unistd.h>
5489 #include <strings.h>
5490
5491 int
5492 main ()
5493 {
5494
5495 long result;
5496 FILE *f;
5497
5498 result = sysconf(_SC_PAGESIZE);
5499 if (result == -1) {
5500 return 1;
5501 }
5502 f = fopen("conftest.out", "w");
5503 if (f == NULL) {
5504 return 1;
5505 }
5506 fprintf(f, "%u\n", ffs((int)result) - 1);
5507 close(f);
5508
5509 return 0;
5510
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_run "$LINENO"; then :
5516 STATIC_PAGE_SHIFT=`cat conftest.out`
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_PAGE_SHIFT" >&5
5518 $as_echo "$STATIC_PAGE_SHIFT" >&6; }
5519 cat >>confdefs.h <<_ACEOF
5520 #define STATIC_PAGE_SHIFT $STATIC_PAGE_SHIFT
5521 _ACEOF
5522
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
5525 $as_echo "error" >&6; }
5526 fi
5527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5528 conftest.$ac_objext conftest.beam conftest.$ac_ext
5529 fi
5530
5531
5532
5533 if test -d "${srcroot}.git" ; then
5534 git describe --long --abbrev=40 > ${srcroot}VERSION
5535 fi
5536 jemalloc_version=`cat ${srcroot}VERSION`
5537 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
5538 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
5539 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
5540 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
5541 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
5542
5543
5544
5545
5546
5547
5548
5549
5550 for ac_header in pthread.h
5551 do :
5552 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5553 if test "x$ac_cv_header_pthread_h" = x""yes; then :
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_PTHREAD_H 1
5556 _ACEOF
5557
5558 else
5559 as_fn_error "pthread.h is missing" "$LINENO" 5
5560 fi
5561
5562 done
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5565 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5566 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_check_lib_save_LIBS=$LIBS
5570 LIBS="-lpthread $LIBS"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573
5574 /* Override any GCC internal prototype to avoid an error.
5575 Use char because int might match the return type of a GCC
5576 builtin and then its argument prototype would still apply. */
5577 #ifdef __cplusplus
5578 extern "C"
5579 #endif
5580 char pthread_create ();
5581 int
5582 main ()
5583 {
5584 return pthread_create ();
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_link "$LINENO"; then :
5590 ac_cv_lib_pthread_pthread_create=yes
5591 else
5592 ac_cv_lib_pthread_pthread_create=no
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5599 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5600 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
5601 LIBS="$LIBS -lpthread"
5602 else
5603 as_fn_error "libpthread is missing" "$LINENO" 5
5604 fi
5605
5606
5607 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5608
5609 # Check whether --enable-lazy_lock was given.
5610 if test "${enable_lazy_lock+set}" = set; then :
5611 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
5612 enable_lazy_lock="0"
5613 else
5614 enable_lazy_lock="1"
5615 fi
5616
5617 else
5618 enable_lazy_lock="1"
5619
5620 fi
5621
5622 if test "x$enable_lazy_lock" = "x1" ; then
5623 for ac_header in dlfcn.h
5624 do :
5625 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5626 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_DLFCN_H 1
5629 _ACEOF
5630
5631 else
5632 as_fn_error "dlfcn.h is missing" "$LINENO" 5
5633 fi
5634
5635 done
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-ldl $LIBS"
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646
5647 /* Override any GCC internal prototype to avoid an error.
5648 Use char because int might match the return type of a GCC
5649 builtin and then its argument prototype would still apply. */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 char dlopen ();
5654 int
5655 main ()
5656 {
5657 return dlopen ();
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_c_try_link "$LINENO"; then :
5663 ac_cv_lib_dl_dlopen=yes
5664 else
5665 ac_cv_lib_dl_dlopen=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext \
5668 conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5673 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5674 LIBS="$LIBS -ldl"
5675 else
5676 as_fn_error "libdl is missing" "$LINENO" 5
5677 fi
5678
5679 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
5680
5681 fi
5682
5683
5684 # Check whether --enable-tls was given.
5685 if test "${enable_tls+set}" = set; then :
5686 enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then
5687 enable_tls="0"
5688 else
5689 enable_tls="1"
5690 fi
5691
5692 else
5693 enable_tls="1"
5694
5695 fi
5696
5697 if test "x${enable_tls}" = "x1" ; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
5699 $as_echo_n "checking for TLS... " >&6; }
5700 if test "$cross_compiling" = yes; then :
5701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5703 as_fn_error "cannot run test program while cross compiling
5704 See \`config.log' for more details." "$LINENO" 5; }
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708
5709 __thread int x;
5710
5711 int
5712 main ()
5713 {
5714
5715 x = 42;
5716
5717 return 0;
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_run "$LINENO"; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 enable_tls="0"
5730 fi
5731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732 conftest.$ac_objext conftest.beam conftest.$ac_ext
5733 fi
5734
5735 fi
5736
5737 if test "x${enable_tls}" = "x0" ; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define NO_TLS
5740 _ACEOF
5741
5742 fi
5743
5744
5745 ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl"
5746 if test "x$ac_cv_func_ffsl" = x""yes; then :
5747
5748 else
5749 as_fn_error "Cannot build without ffsl(3)" "$LINENO" 5
5750 fi
5751
5752
5753
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
5756 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
5757 if test "$cross_compiling" = yes; then :
5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760 as_fn_error "cannot run test program while cross compiling
5761 See \`config.log' for more details." "$LINENO" 5; }
5762 else
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765
5766 #include <libkern/OSAtomic.h>
5767 #include <inttypes.h>
5768
5769 int
5770 main ()
5771 {
5772
5773 {
5774 int32_t x32 = 0;
5775 volatile int32_t *x32p = &x32;
5776 OSAtomicAdd32(1, x32p);
5777 }
5778 {
5779 int64_t x64 = 0;
5780 volatile int64_t *x64p = &x64;
5781 OSAtomicAdd64(1, x64p);
5782 }
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_run "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5791 osatomic="yes"
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 osatomic="no"
5796
5797 fi
5798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5799 conftest.$ac_objext conftest.beam conftest.$ac_ext
5800 fi
5801
5802
5803 if test "x${osatomic}" = "xyes" ; then
5804 $as_echo "#define JEMALLOC_OSATOMIC 1" >>confdefs.h
5805
5806 fi
5807
5808
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
5811 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
5812 if test "$cross_compiling" = yes; then :
5813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5815 as_fn_error "cannot run test program while cross compiling
5816 See \`config.log' for more details." "$LINENO" 5; }
5817 else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820
5821 #include <libkern/OSAtomic.h>
5822 #include <inttypes.h>
5823
5824 int
5825 main ()
5826 {
5827
5828 OSSpinLock lock = 0;
5829 OSSpinLockLock(&lock);
5830 OSSpinLockUnlock(&lock);
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_run "$LINENO"; then :
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5838 $as_echo "yes" >&6; }
5839 osspin="yes"
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 osspin="no"
5844
5845 fi
5846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5847 conftest.$ac_objext conftest.beam conftest.$ac_ext
5848 fi
5849
5850
5851 if test "x${osspin}" = "xyes" ; then
5852 $as_echo "#define JEMALLOC_OSSPIN 1" >>confdefs.h
5853
5854 fi
5855
5856
5857 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
5858 if test "x$ac_cv_func_memalign" = x""yes; then :
5859 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN 1" >>confdefs.h
5860
5861 fi
5862
5863 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
5864 if test "x$ac_cv_func_valloc" = x""yes; then :
5865 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC 1" >>confdefs.h
5866
5867 fi
5868
5869
5870
5871 if test "x${abi}" = "xmacho" ; then
5872 $as_echo "#define JEMALLOC_IVSALLOC 1" >>confdefs.h
5873
5874 $as_echo "#define JEMALLOC_ZONE 1" >>confdefs.h
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5
5878 $as_echo_n "checking malloc zone version... " >&6; }
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include <stdlib.h>
5882 #include <malloc/malloc.h>
5883 int
5884 main ()
5885 {
5886
5887 static malloc_zone_t zone;
5888 static struct malloc_introspection_t zone_introspect;
5889
5890 zone.size = NULL;
5891 zone.malloc = NULL;
5892 zone.calloc = NULL;
5893 zone.valloc = NULL;
5894 zone.free = NULL;
5895 zone.realloc = NULL;
5896 zone.destroy = NULL;
5897 zone.zone_name = "jemalloc_zone";
5898 zone.batch_malloc = NULL;
5899 zone.batch_free = NULL;
5900 zone.introspect = &zone_introspect;
5901 zone.version = 6;
5902 zone.memalign = NULL;
5903 zone.free_definite_size = NULL;
5904
5905 zone_introspect.enumerator = NULL;
5906 zone_introspect.good_size = NULL;
5907 zone_introspect.check = NULL;
5908 zone_introspect.print = NULL;
5909 zone_introspect.log = NULL;
5910 zone_introspect.force_lock = NULL;
5911 zone_introspect.force_unlock = NULL;
5912 zone_introspect.statistics = NULL;
5913 zone_introspect.zone_locked = NULL;
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_c_try_compile "$LINENO"; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define JEMALLOC_ZONE_VERSION 6
5922 _ACEOF
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
5925 $as_echo "6" >&6; }
5926 else
5927 cat >>confdefs.h <<_ACEOF
5928 #define JEMALLOC_ZONE_VERSION 3
5929 _ACEOF
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
5932 $as_echo "3" >&6; }
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 fi
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5938 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5939 if test "${ac_cv_header_stdbool_h+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944
5945 #include <stdbool.h>
5946 #ifndef bool
5947 "error: bool is not defined"
5948 #endif
5949 #ifndef false
5950 "error: false is not defined"
5951 #endif
5952 #if false
5953 "error: false is not 0"
5954 #endif
5955 #ifndef true
5956 "error: true is not defined"
5957 #endif
5958 #if true != 1
5959 "error: true is not 1"
5960 #endif
5961 #ifndef __bool_true_false_are_defined
5962 "error: __bool_true_false_are_defined is not defined"
5963 #endif
5964
5965 struct s { _Bool s: 1; _Bool t; } s;
5966
5967 char a[true == 1 ? 1 : -1];
5968 char b[false == 0 ? 1 : -1];
5969 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5970 char d[(bool) 0.5 == true ? 1 : -1];
5971 bool e = &s;
5972 char f[(_Bool) 0.0 == false ? 1 : -1];
5973 char g[true];
5974 char h[sizeof (_Bool)];
5975 char i[sizeof s.t];
5976 enum { j = false, k = true, l = false * true, m = true * 256 };
5977 /* The following fails for
5978 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5979 _Bool n[m];
5980 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5981 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5982 # if defined __xlc__ || defined __GNUC__
5983 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5984 reported by James Lemley on 2005-10-05; see
5985 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5986 This test is not quite right, since xlc is allowed to
5987 reject this program, as the initializer for xlcbug is
5988 not one of the forms that C requires support for.
5989 However, doing the test right would require a runtime
5990 test, and that would make cross-compilation harder.
5991 Let us hope that IBM fixes the xlc bug, and also adds
5992 support for this kind of constant expression. In the
5993 meantime, this test will reject xlc, which is OK, since
5994 our stdbool.h substitute should suffice. We also test
5995 this with GCC, where it should work, to detect more
5996 quickly whether someone messes up the test in the
5997 future. */
5998 char digs[] = "0123456789";
5999 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6000 # endif
6001 /* Catch a bug in an HP-UX C compiler. See
6002 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6003 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6004 */
6005 _Bool q = true;
6006 _Bool *pq = &q;
6007
6008 int
6009 main ()
6010 {
6011
6012 *pq |= q;
6013 *pq |= ! q;
6014 /* Refer to every declared value, to avoid compiler optimizations. */
6015 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6016 + !m + !n + !o + !p + !q + !pq);
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_header_stdbool_h=yes
6024 else
6025 ac_cv_header_stdbool_h=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6030 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6031 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6032 if test "x$ac_cv_type__Bool" = x""yes; then :
6033
6034 cat >>confdefs.h <<_ACEOF
6035 #define HAVE__BOOL 1
6036 _ACEOF
6037
6038
6039 fi
6040
6041 if test $ac_cv_header_stdbool_h = yes; then
6042
6043 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6044
6045 fi
6046
6047
6048
6049
6050 ac_config_headers="$ac_config_headers $cfghdrs_tup"
6051
6052
6053 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp"
6054
6055
6056
6057 cat >confcache <<\_ACEOF
6058 # This file is a shell script that caches the results of configure
6059 # tests run on this system so they can be shared between configure
6060 # scripts and configure runs, see configure's option --config-cache.
6061 # It is not useful on other systems. If it contains results you don't
6062 # want to keep, you may remove or edit it.
6063 #
6064 # config.status only pays attention to the cache file if you give it
6065 # the --recheck option to rerun configure.
6066 #
6067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6069 # following values.
6070
6071 _ACEOF
6072
6073 # The following way of writing the cache mishandles newlines in values,
6074 # but we know of no workaround that is simple, portable, and efficient.
6075 # So, we kill variables containing newlines.
6076 # Ultrix sh set writes to stderr and can't be redirected directly,
6077 # and sets the high bit in the cache file unless we assign to the vars.
6078 (
6079 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6080 eval ac_val=\$$ac_var
6081 case $ac_val in #(
6082 *${as_nl}*)
6083 case $ac_var in #(
6084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6086 esac
6087 case $ac_var in #(
6088 _ | IFS | as_nl) ;; #(
6089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6090 *) { eval $ac_var=; unset $ac_var;} ;;
6091 esac ;;
6092 esac
6093 done
6094
6095 (set) 2>&1 |
6096 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6097 *${as_nl}ac_space=\ *)
6098 # `set' does not quote correctly, so add quotes: double-quote
6099 # substitution turns \\\\ into \\, and sed turns \\ into \.
6100 sed -n \
6101 "s/'/'\\\\''/g;
6102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6103 ;; #(
6104 *)
6105 # `set' quotes correctly as required by POSIX, so do not add quotes.
6106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6107 ;;
6108 esac |
6109 sort
6110 ) |
6111 sed '
6112 /^ac_cv_env_/b end
6113 t clear
6114 :clear
6115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6116 t end
6117 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6118 :end' >>confcache
6119 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6120 if test -w "$cache_file"; then
6121 test "x$cache_file" != "x/dev/null" &&
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6123 $as_echo "$as_me: updating cache $cache_file" >&6;}
6124 cat confcache >$cache_file
6125 else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6128 fi
6129 fi
6130 rm -f confcache
6131
6132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6133 # Let make expand exec_prefix.
6134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6135
6136 DEFS=-DHAVE_CONFIG_H
6137
6138 ac_libobjs=
6139 ac_ltlibobjs=
6140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6141 # 1. Remove the extension, and $U if already installed.
6142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6145 # will be set to the directory where LIBOBJS objects are built.
6146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6148 done
6149 LIBOBJS=$ac_libobjs
6150
6151 LTLIBOBJS=$ac_ltlibobjs
6152
6153
6154
6155 : ${CONFIG_STATUS=./config.status}
6156 ac_write_fail=0
6157 ac_clean_files_save=$ac_clean_files
6158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6160 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6161 as_write_fail=0
6162 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6163 #! $SHELL
6164 # Generated by $as_me.
6165 # Run this file to recreate the current configuration.
6166 # Compiler output produced by configure, useful for debugging
6167 # configure, is in config.log if it exists.
6168
6169 debug=false
6170 ac_cs_recheck=false
6171 ac_cs_silent=false
6172
6173 SHELL=\${CONFIG_SHELL-$SHELL}
6174 export SHELL
6175 _ASEOF
6176 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6177 ## -------------------- ##
6178 ## M4sh Initialization. ##
6179 ## -------------------- ##
6180
6181 # Be more Bourne compatible
6182 DUALCASE=1; export DUALCASE # for MKS sh
6183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6184 emulate sh
6185 NULLCMD=:
6186 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6187 # is contrary to our usage. Disable this feature.
6188 alias -g '${1+"$@"}'='"$@"'
6189 setopt NO_GLOB_SUBST
6190 else
6191 case `(set -o) 2>/dev/null` in #(
6192 *posix*) :
6193 set -o posix ;; #(
6194 *) :
6195 ;;
6196 esac
6197 fi
6198
6199
6200 as_nl='
6201 '
6202 export as_nl
6203 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6204 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6207 # Prefer a ksh shell builtin over an external printf program on Solaris,
6208 # but without wasting forks for bash or zsh.
6209 if test -z "$BASH_VERSION$ZSH_VERSION" \
6210 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6211 as_echo='print -r --'
6212 as_echo_n='print -rn --'
6213 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6214 as_echo='printf %s\n'
6215 as_echo_n='printf %s'
6216 else
6217 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6218 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6219 as_echo_n='/usr/ucb/echo -n'
6220 else
6221 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6222 as_echo_n_body='eval
6223 arg=$1;
6224 case $arg in #(
6225 *"$as_nl"*)
6226 expr "X$arg" : "X\\(.*\\)$as_nl";
6227 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6228 esac;
6229 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6230 '
6231 export as_echo_n_body
6232 as_echo_n='sh -c $as_echo_n_body as_echo'
6233 fi
6234 export as_echo_body
6235 as_echo='sh -c $as_echo_body as_echo'
6236 fi
6237
6238 # The user is always right.
6239 if test "${PATH_SEPARATOR+set}" != set; then
6240 PATH_SEPARATOR=:
6241 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6242 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6243 PATH_SEPARATOR=';'
6244 }
6245 fi
6246
6247
6248 # IFS
6249 # We need space, tab and new line, in precisely that order. Quoting is
6250 # there to prevent editors from complaining about space-tab.
6251 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6252 # splitting by setting IFS to empty value.)
6253 IFS=" "" $as_nl"
6254
6255 # Find who we are. Look in the path if we contain no directory separator.
6256 case $0 in #((
6257 *[\\/]* ) as_myself=$0 ;;
6258 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6264 done
6265 IFS=$as_save_IFS
6266
6267 ;;
6268 esac
6269 # We did not find ourselves, most probably we were run as `sh COMMAND'
6270 # in which case we are not to be found in the path.
6271 if test "x$as_myself" = x; then
6272 as_myself=$0
6273 fi
6274 if test ! -f "$as_myself"; then
6275 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6276 exit 1
6277 fi
6278
6279 # Unset variables that we do not need and which cause bugs (e.g. in
6280 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6281 # suppresses any "Segmentation fault" message there. '((' could
6282 # trigger a bug in pdksh 5.2.14.
6283 for as_var in BASH_ENV ENV MAIL MAILPATH
6284 do eval test x\${$as_var+set} = xset \
6285 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6286 done
6287 PS1='$ '
6288 PS2='> '
6289 PS4='+ '
6290
6291 # NLS nuisances.
6292 LC_ALL=C
6293 export LC_ALL
6294 LANGUAGE=C
6295 export LANGUAGE
6296
6297 # CDPATH.
6298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6299
6300
6301 # as_fn_error ERROR [LINENO LOG_FD]
6302 # ---------------------------------
6303 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6304 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6305 # script with status $?, using 1 if that was 0.
6306 as_fn_error ()
6307 {
6308 as_status=$?; test $as_status -eq 0 && as_status=1
6309 if test "$3"; then
6310 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6311 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6312 fi
6313 $as_echo "$as_me: error: $1" >&2
6314 as_fn_exit $as_status
6315 } # as_fn_error
6316
6317
6318 # as_fn_set_status STATUS
6319 # -----------------------
6320 # Set $? to STATUS, without forking.
6321 as_fn_set_status ()
6322 {
6323 return $1
6324 } # as_fn_set_status
6325
6326 # as_fn_exit STATUS
6327 # -----------------
6328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6329 as_fn_exit ()
6330 {
6331 set +e
6332 as_fn_set_status $1
6333 exit $1
6334 } # as_fn_exit
6335
6336 # as_fn_unset VAR
6337 # ---------------
6338 # Portably unset VAR.
6339 as_fn_unset ()
6340 {
6341 { eval $1=; unset $1;}
6342 }
6343 as_unset=as_fn_unset
6344 # as_fn_append VAR VALUE
6345 # ----------------------
6346 # Append the text in VALUE to the end of the definition contained in VAR. Take
6347 # advantage of any shell optimizations that allow amortized linear growth over
6348 # repeated appends, instead of the typical quadratic growth present in naive
6349 # implementations.
6350 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6351 eval 'as_fn_append ()
6352 {
6353 eval $1+=\$2
6354 }'
6355 else
6356 as_fn_append ()
6357 {
6358 eval $1=\$$1\$2
6359 }
6360 fi # as_fn_append
6361
6362 # as_fn_arith ARG...
6363 # ------------------
6364 # Perform arithmetic evaluation on the ARGs, and store the result in the
6365 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6366 # must be portable across $(()) and expr.
6367 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6368 eval 'as_fn_arith ()
6369 {
6370 as_val=$(( $* ))
6371 }'
6372 else
6373 as_fn_arith ()
6374 {
6375 as_val=`expr "$@" || test $? -eq 1`
6376 }
6377 fi # as_fn_arith
6378
6379
6380 if expr a : '\(a\)' >/dev/null 2>&1 &&
6381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6382 as_expr=expr
6383 else
6384 as_expr=false
6385 fi
6386
6387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6388 as_basename=basename
6389 else
6390 as_basename=false
6391 fi
6392
6393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6394 as_dirname=dirname
6395 else
6396 as_dirname=false
6397 fi
6398
6399 as_me=`$as_basename -- "$0" ||
6400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6401 X"$0" : 'X\(//\)$' \| \
6402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6403 $as_echo X/"$0" |
6404 sed '/^.*\/\([^/][^/]*\)\/*$/{
6405 s//\1/
6406 q
6407 }
6408 /^X\/\(\/\/\)$/{
6409 s//\1/
6410 q
6411 }
6412 /^X\/\(\/\).*/{
6413 s//\1/
6414 q
6415 }
6416 s/.*/./; q'`
6417
6418 # Avoid depending upon Character Ranges.
6419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6422 as_cr_digits='0123456789'
6423 as_cr_alnum=$as_cr_Letters$as_cr_digits
6424
6425 ECHO_C= ECHO_N= ECHO_T=
6426 case `echo -n x` in #(((((
6427 -n*)
6428 case `echo 'xy\c'` in
6429 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6430 xy) ECHO_C='\c';;
6431 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6432 ECHO_T=' ';;
6433 esac;;
6434 *)
6435 ECHO_N='-n';;
6436 esac
6437
6438 rm -f conf$$ conf$$.exe conf$$.file
6439 if test -d conf$$.dir; then
6440 rm -f conf$$.dir/conf$$.file
6441 else
6442 rm -f conf$$.dir
6443 mkdir conf$$.dir 2>/dev/null
6444 fi
6445 if (echo >conf$$.file) 2>/dev/null; then
6446 if ln -s conf$$.file conf$$ 2>/dev/null; then
6447 as_ln_s='ln -s'
6448 # ... but there are two gotchas:
6449 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6450 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6451 # In both cases, we have to default to `cp -p'.
6452 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6453 as_ln_s='cp -p'
6454 elif ln conf$$.file conf$$ 2>/dev/null; then
6455 as_ln_s=ln
6456 else
6457 as_ln_s='cp -p'
6458 fi
6459 else
6460 as_ln_s='cp -p'
6461 fi
6462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6463 rmdir conf$$.dir 2>/dev/null
6464
6465
6466 # as_fn_mkdir_p
6467 # -------------
6468 # Create "$as_dir" as a directory, including parents if necessary.
6469 as_fn_mkdir_p ()
6470 {
6471
6472 case $as_dir in #(
6473 -*) as_dir=./$as_dir;;
6474 esac
6475 test -d "$as_dir" || eval $as_mkdir_p || {
6476 as_dirs=
6477 while :; do
6478 case $as_dir in #(
6479 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6480 *) as_qdir=$as_dir;;
6481 esac
6482 as_dirs="'$as_qdir' $as_dirs"
6483 as_dir=`$as_dirname -- "$as_dir" ||
6484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6485 X"$as_dir" : 'X\(//\)[^/]' \| \
6486 X"$as_dir" : 'X\(//\)$' \| \
6487 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6488 $as_echo X"$as_dir" |
6489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6490 s//\1/
6491 q
6492 }
6493 /^X\(\/\/\)[^/].*/{
6494 s//\1/
6495 q
6496 }
6497 /^X\(\/\/\)$/{
6498 s//\1/
6499 q
6500 }
6501 /^X\(\/\).*/{
6502 s//\1/
6503 q
6504 }
6505 s/.*/./; q'`
6506 test -d "$as_dir" && break
6507 done
6508 test -z "$as_dirs" || eval "mkdir $as_dirs"
6509 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6510
6511
6512 } # as_fn_mkdir_p
6513 if mkdir -p . 2>/dev/null; then
6514 as_mkdir_p='mkdir -p "$as_dir"'
6515 else
6516 test -d ./-p && rmdir ./-p
6517 as_mkdir_p=false
6518 fi
6519
6520 if test -x / >/dev/null 2>&1; then
6521 as_test_x='test -x'
6522 else
6523 if ls -dL / >/dev/null 2>&1; then
6524 as_ls_L_option=L
6525 else
6526 as_ls_L_option=
6527 fi
6528 as_test_x='
6529 eval sh -c '\''
6530 if test -d "$1"; then
6531 test -d "$1/.";
6532 else
6533 case $1 in #(
6534 -*)set "./$1";;
6535 esac;
6536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6537 ???[sx]*):;;*)false;;esac;fi
6538 '\'' sh
6539 '
6540 fi
6541 as_executable_p=$as_test_x
6542
6543 # Sed expression to map a string onto a valid CPP name.
6544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6545
6546 # Sed expression to map a string onto a valid variable name.
6547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6548
6549
6550 exec 6>&1
6551 ## ----------------------------------- ##
6552 ## Main body of $CONFIG_STATUS script. ##
6553 ## ----------------------------------- ##
6554 _ASEOF
6555 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6556
6557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6558 # Save the log message, to keep $0 and so on meaningful, and to
6559 # report actual input values of CONFIG_FILES etc. instead of their
6560 # values after options handling.
6561 ac_log="
6562 This file was extended by $as_me, which was
6563 generated by GNU Autoconf 2.65. Invocation command line was
6564
6565 CONFIG_FILES = $CONFIG_FILES
6566 CONFIG_HEADERS = $CONFIG_HEADERS
6567 CONFIG_LINKS = $CONFIG_LINKS
6568 CONFIG_COMMANDS = $CONFIG_COMMANDS
6569 $ $0 $@
6570
6571 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6572 "
6573
6574 _ACEOF
6575
6576 case $ac_config_files in *"
6577 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6578 esac
6579
6580 case $ac_config_headers in *"
6581 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6582 esac
6583
6584
6585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6586 # Files that config.status was made for.
6587 config_files="$ac_config_files"
6588 config_headers="$ac_config_headers"
6589
6590 _ACEOF
6591
6592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6593 ac_cs_usage="\
6594 \`$as_me' instantiates files and other configuration actions
6595 from templates according to the current configuration. Unless the files
6596 and actions are specified as TAGs, all are instantiated by default.
6597
6598 Usage: $0 [OPTION]... [TAG]...
6599
6600 -h, --help print this help, then exit
6601 -V, --version print version number and configuration settings, then exit
6602 --config print configuration, then exit
6603 -q, --quiet, --silent
6604 do not print progress messages
6605 -d, --debug don't remove temporary files
6606 --recheck update $as_me by reconfiguring in the same conditions
6607 --file=FILE[:TEMPLATE]
6608 instantiate the configuration file FILE
6609 --header=FILE[:TEMPLATE]
6610 instantiate the configuration header FILE
6611
6612 Configuration files:
6613 $config_files
6614
6615 Configuration headers:
6616 $config_headers
6617
6618 Report bugs to the package provider."
6619
6620 _ACEOF
6621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6623 ac_cs_version="\\
6624 config.status
6625 configured by $0, generated by GNU Autoconf 2.65,
6626 with options \\"\$ac_cs_config\\"
6627
6628 Copyright (C) 2009 Free Software Foundation, Inc.
6629 This config.status script is free software; the Free Software Foundation
6630 gives unlimited permission to copy, distribute and modify it."
6631
6632 ac_pwd='$ac_pwd'
6633 srcdir='$srcdir'
6634 INSTALL='$INSTALL'
6635 test -n "\$AWK" || AWK=awk
6636 _ACEOF
6637
6638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6639 # The default lists apply if the user does not specify any file.
6640 ac_need_defaults=:
6641 while test $# != 0
6642 do
6643 case $1 in
6644 --*=*)
6645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6647 ac_shift=:
6648 ;;
6649 *)
6650 ac_option=$1
6651 ac_optarg=$2
6652 ac_shift=shift
6653 ;;
6654 esac
6655
6656 case $ac_option in
6657 # Handling of the options.
6658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6659 ac_cs_recheck=: ;;
6660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6661 $as_echo "$ac_cs_version"; exit ;;
6662 --config | --confi | --conf | --con | --co | --c )
6663 $as_echo "$ac_cs_config"; exit ;;
6664 --debug | --debu | --deb | --de | --d | -d )
6665 debug=: ;;
6666 --file | --fil | --fi | --f )
6667 $ac_shift
6668 case $ac_optarg in
6669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6670 esac
6671 as_fn_append CONFIG_FILES " '$ac_optarg'"
6672 ac_need_defaults=false;;
6673 --header | --heade | --head | --hea )
6674 $ac_shift
6675 case $ac_optarg in
6676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6677 esac
6678 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6679 ac_need_defaults=false;;
6680 --he | --h)
6681 # Conflict between --help and --header
6682 as_fn_error "ambiguous option: \`$1'
6683 Try \`$0 --help' for more information.";;
6684 --help | --hel | -h )
6685 $as_echo "$ac_cs_usage"; exit ;;
6686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6688 ac_cs_silent=: ;;
6689
6690 # This is an error.
6691 -*) as_fn_error "unrecognized option: \`$1'
6692 Try \`$0 --help' for more information." ;;
6693
6694 *) as_fn_append ac_config_targets " $1"
6695 ac_need_defaults=false ;;
6696
6697 esac
6698 shift
6699 done
6700
6701 ac_configure_extra_args=
6702
6703 if $ac_cs_silent; then
6704 exec 6>/dev/null
6705 ac_configure_extra_args="$ac_configure_extra_args --silent"
6706 fi
6707
6708 _ACEOF
6709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6710 if \$ac_cs_recheck; then
6711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6712 shift
6713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6714 CONFIG_SHELL='$SHELL'
6715 export CONFIG_SHELL
6716 exec "\$@"
6717 fi
6718
6719 _ACEOF
6720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6721 exec 5>>config.log
6722 {
6723 echo
6724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6725 ## Running $as_me. ##
6726 _ASBOX
6727 $as_echo "$ac_log"
6728 } >&5
6729
6730 _ACEOF
6731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6732 _ACEOF
6733
6734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6735
6736 # Handling of arguments.
6737 for ac_config_target in $ac_config_targets
6738 do
6739 case $ac_config_target in
6740 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
6741 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
6742 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
6743
6744 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6745 esac
6746 done
6747
6748
6749 # If the user did not use the arguments to specify the items to instantiate,
6750 # then the envvar interface is used. Set only those that are not.
6751 # We use the long form for the default assignment because of an extremely
6752 # bizarre bug on SunOS 4.1.3.
6753 if $ac_need_defaults; then
6754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6756 fi
6757
6758 # Have a temporary directory for convenience. Make it in the build tree
6759 # simply because there is no reason against having it here, and in addition,
6760 # creating and moving files from /tmp can sometimes cause problems.
6761 # Hook for its removal unless debugging.
6762 # Note that there is a small window in which the directory will not be cleaned:
6763 # after its creation but before its name has been assigned to `$tmp'.
6764 $debug ||
6765 {
6766 tmp=
6767 trap 'exit_status=$?
6768 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6769 ' 0
6770 trap 'as_fn_exit 1' 1 2 13 15
6771 }
6772 # Create a (secure) tmp directory for tmp files.
6773
6774 {
6775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6776 test -n "$tmp" && test -d "$tmp"
6777 } ||
6778 {
6779 tmp=./conf$$-$RANDOM
6780 (umask 077 && mkdir "$tmp")
6781 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6782
6783 # Set up the scripts for CONFIG_FILES section.
6784 # No need to generate them if there are no CONFIG_FILES.
6785 # This happens for instance with `./config.status config.h'.
6786 if test -n "$CONFIG_FILES"; then
6787
6788
6789 ac_cr=`echo X | tr X '\015'`
6790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6791 # But we know of no other shell where ac_cr would be empty at this
6792 # point, so we can use a bashism as a fallback.
6793 if test "x$ac_cr" = x; then
6794 eval ac_cr=\$\'\\r\'
6795 fi
6796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6798 ac_cs_awk_cr='\r'
6799 else
6800 ac_cs_awk_cr=$ac_cr
6801 fi
6802
6803 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6804 _ACEOF
6805
6806
6807 {
6808 echo "cat >conf$$subs.awk <<_ACEOF" &&
6809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6810 echo "_ACEOF"
6811 } >conf$$subs.sh ||
6812 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6814 ac_delim='%!_!# '
6815 for ac_last_try in false false false false false :; do
6816 . ./conf$$subs.sh ||
6817 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6818
6819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6820 if test $ac_delim_n = $ac_delim_num; then
6821 break
6822 elif $ac_last_try; then
6823 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6824 else
6825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6826 fi
6827 done
6828 rm -f conf$$subs.sh
6829
6830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6831 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6832 _ACEOF
6833 sed -n '
6834 h
6835 s/^/S["/; s/!.*/"]=/
6836 p
6837 g
6838 s/^[^!]*!//
6839 :repl
6840 t repl
6841 s/'"$ac_delim"'$//
6842 t delim
6843 :nl
6844 h
6845 s/\(.\{148\}\)..*/\1/
6846 t more1
6847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6848 p
6849 n
6850 b repl
6851 :more1
6852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6853 p
6854 g
6855 s/.\{148\}//
6856 t nl
6857 :delim
6858 h
6859 s/\(.\{148\}\)..*/\1/
6860 t more2
6861 s/["\\]/\\&/g; s/^/"/; s/$/"/
6862 p
6863 b
6864 :more2
6865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6866 p
6867 g
6868 s/.\{148\}//
6869 t delim
6870 ' <conf$$subs.awk | sed '
6871 /^[^""]/{
6872 N
6873 s/\n//
6874 }
6875 ' >>$CONFIG_STATUS || ac_write_fail=1
6876 rm -f conf$$subs.awk
6877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6878 _ACAWK
6879 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6880 for (key in S) S_is_set[key] = 1
6881 FS = "\a"
6882
6883 }
6884 {
6885 line = $ 0
6886 nfields = split(line, field, "@")
6887 substed = 0
6888 len = length(field[1])
6889 for (i = 2; i < nfields; i++) {
6890 key = field[i]
6891 keylen = length(key)
6892 if (S_is_set[key]) {
6893 value = S[key]
6894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6895 len += length(value) + length(field[++i])
6896 substed = 1
6897 } else
6898 len += 1 + keylen
6899 }
6900
6901 print line
6902 }
6903
6904 _ACAWK
6905 _ACEOF
6906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6909 else
6910 cat
6911 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6912 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6913 _ACEOF
6914
6915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6917 # trailing colons and then remove the whole line if VPATH becomes empty
6918 # (actually we leave an empty line to preserve line numbers).
6919 if test "x$srcdir" = x.; then
6920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6921 s/:*\$(srcdir):*/:/
6922 s/:*\${srcdir}:*/:/
6923 s/:*@srcdir@:*/:/
6924 s/^\([^=]*=[ ]*\):*/\1/
6925 s/:*$//
6926 s/^[^=]*=[ ]*$//
6927 }'
6928 fi
6929
6930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6931 fi # test -n "$CONFIG_FILES"
6932
6933 # Set up the scripts for CONFIG_HEADERS section.
6934 # No need to generate them if there are no CONFIG_HEADERS.
6935 # This happens for instance with `./config.status Makefile'.
6936 if test -n "$CONFIG_HEADERS"; then
6937 cat >"$tmp/defines.awk" <<\_ACAWK ||
6938 BEGIN {
6939 _ACEOF
6940
6941 # Transform confdefs.h into an awk script `defines.awk', embedded as
6942 # here-document in config.status, that substitutes the proper values into
6943 # config.h.in to produce config.h.
6944
6945 # Create a delimiter string that does not exist in confdefs.h, to ease
6946 # handling of long lines.
6947 ac_delim='%!_!# '
6948 for ac_last_try in false false :; do
6949 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6950 if test -z "$ac_t"; then
6951 break
6952 elif $ac_last_try; then
6953 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6954 else
6955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6956 fi
6957 done
6958
6959 # For the awk script, D is an array of macro values keyed by name,
6960 # likewise P contains macro parameters if any. Preserve backslash
6961 # newline sequences.
6962
6963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6964 sed -n '
6965 s/.\{148\}/&'"$ac_delim"'/g
6966 t rset
6967 :rset
6968 s/^[ ]*#[ ]*define[ ][ ]*/ /
6969 t def
6970 d
6971 :def
6972 s/\\$//
6973 t bsnl
6974 s/["\\]/\\&/g
6975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6976 D["\1"]=" \3"/p
6977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6978 d
6979 :bsnl
6980 s/["\\]/\\&/g
6981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6982 D["\1"]=" \3\\\\\\n"\\/p
6983 t cont
6984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6985 t cont
6986 d
6987 :cont
6988 n
6989 s/.\{148\}/&'"$ac_delim"'/g
6990 t clear
6991 :clear
6992 s/\\$//
6993 t bsnlc
6994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6995 d
6996 :bsnlc
6997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6998 b cont
6999 ' <confdefs.h | sed '
7000 s/'"$ac_delim"'/"\\\
7001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7002
7003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7004 for (key in D) D_is_set[key] = 1
7005 FS = "\a"
7006 }
7007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7008 line = \$ 0
7009 split(line, arg, " ")
7010 if (arg[1] == "#") {
7011 defundef = arg[2]
7012 mac1 = arg[3]
7013 } else {
7014 defundef = substr(arg[1], 2)
7015 mac1 = arg[2]
7016 }
7017 split(mac1, mac2, "(") #)
7018 macro = mac2[1]
7019 prefix = substr(line, 1, index(line, defundef) - 1)
7020 if (D_is_set[macro]) {
7021 # Preserve the white space surrounding the "#".
7022 print prefix "define", macro P[macro] D[macro]
7023 next
7024 } else {
7025 # Replace #undef with comments. This is necessary, for example,
7026 # in the case of _POSIX_SOURCE, which is predefined and required
7027 # on some systems where configure will not decide to define it.
7028 if (defundef == "undef") {
7029 print "/*", prefix defundef, macro, "*/"
7030 next
7031 }
7032 }
7033 }
7034 { print }
7035 _ACAWK
7036 _ACEOF
7037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7038 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7039 fi # test -n "$CONFIG_HEADERS"
7040
7041
7042 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7043 shift
7044 for ac_tag
7045 do
7046 case $ac_tag in
7047 :[FHLC]) ac_mode=$ac_tag; continue;;
7048 esac
7049 case $ac_mode$ac_tag in
7050 :[FHL]*:*);;
7051 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7052 :[FH]-) ac_tag=-:-;;
7053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7054 esac
7055 ac_save_IFS=$IFS
7056 IFS=:
7057 set x $ac_tag
7058 IFS=$ac_save_IFS
7059 shift
7060 ac_file=$1
7061 shift
7062
7063 case $ac_mode in
7064 :L) ac_source=$1;;
7065 :[FH])
7066 ac_file_inputs=
7067 for ac_f
7068 do
7069 case $ac_f in
7070 -) ac_f="$tmp/stdin";;
7071 *) # Look for the file first in the build tree, then in the source tree
7072 # (if the path is not absolute). The absolute path cannot be DOS-style,
7073 # because $ac_f cannot contain `:'.
7074 test -f "$ac_f" ||
7075 case $ac_f in
7076 [\\/$]*) false;;
7077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7078 esac ||
7079 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7080 esac
7081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7082 as_fn_append ac_file_inputs " '$ac_f'"
7083 done
7084
7085 # Let's still pretend it is `configure' which instantiates (i.e., don't
7086 # use $as_me), people would be surprised to read:
7087 # /* config.h. Generated by config.status. */
7088 configure_input='Generated from '`
7089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7090 `' by configure.'
7091 if test x"$ac_file" != x-; then
7092 configure_input="$ac_file. $configure_input"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7094 $as_echo "$as_me: creating $ac_file" >&6;}
7095 fi
7096 # Neutralize special characters interpreted by sed in replacement strings.
7097 case $configure_input in #(
7098 *\&* | *\|* | *\\* )
7099 ac_sed_conf_input=`$as_echo "$configure_input" |
7100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7101 *) ac_sed_conf_input=$configure_input;;
7102 esac
7103
7104 case $ac_tag in
7105 *:-:* | *:-) cat >"$tmp/stdin" \
7106 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7107 esac
7108 ;;
7109 esac
7110
7111 ac_dir=`$as_dirname -- "$ac_file" ||
7112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7113 X"$ac_file" : 'X\(//\)[^/]' \| \
7114 X"$ac_file" : 'X\(//\)$' \| \
7115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7116 $as_echo X"$ac_file" |
7117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7118 s//\1/
7119 q
7120 }
7121 /^X\(\/\/\)[^/].*/{
7122 s//\1/
7123 q
7124 }
7125 /^X\(\/\/\)$/{
7126 s//\1/
7127 q
7128 }
7129 /^X\(\/\).*/{
7130 s//\1/
7131 q
7132 }
7133 s/.*/./; q'`
7134 as_dir="$ac_dir"; as_fn_mkdir_p
7135 ac_builddir=.
7136
7137 case "$ac_dir" in
7138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7139 *)
7140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7141 # A ".." for each directory in $ac_dir_suffix.
7142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7143 case $ac_top_builddir_sub in
7144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7146 esac ;;
7147 esac
7148 ac_abs_top_builddir=$ac_pwd
7149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7150 # for backward compatibility:
7151 ac_top_builddir=$ac_top_build_prefix
7152
7153 case $srcdir in
7154 .) # We are building in place.
7155 ac_srcdir=.
7156 ac_top_srcdir=$ac_top_builddir_sub
7157 ac_abs_top_srcdir=$ac_pwd ;;
7158 [\\/]* | ?:[\\/]* ) # Absolute name.
7159 ac_srcdir=$srcdir$ac_dir_suffix;
7160 ac_top_srcdir=$srcdir
7161 ac_abs_top_srcdir=$srcdir ;;
7162 *) # Relative name.
7163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7164 ac_top_srcdir=$ac_top_build_prefix$srcdir
7165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7166 esac
7167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7168
7169
7170 case $ac_mode in
7171 :F)
7172 #
7173 # CONFIG_FILE
7174 #
7175
7176 case $INSTALL in
7177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7179 esac
7180 _ACEOF
7181
7182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7183 # If the template does not know about datarootdir, expand it.
7184 # FIXME: This hack should be removed a few years after 2.60.
7185 ac_datarootdir_hack=; ac_datarootdir_seen=
7186 ac_sed_dataroot='
7187 /datarootdir/ {
7188 p
7189 q
7190 }
7191 /@datadir@/p
7192 /@docdir@/p
7193 /@infodir@/p
7194 /@localedir@/p
7195 /@mandir@/p'
7196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7197 *datarootdir*) ac_datarootdir_seen=yes;;
7198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7201 _ACEOF
7202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7203 ac_datarootdir_hack='
7204 s&@datadir@&$datadir&g
7205 s&@docdir@&$docdir&g
7206 s&@infodir@&$infodir&g
7207 s&@localedir@&$localedir&g
7208 s&@mandir@&$mandir&g
7209 s&\\\${datarootdir}&$datarootdir&g' ;;
7210 esac
7211 _ACEOF
7212
7213 # Neutralize VPATH when `$srcdir' = `.'.
7214 # Shell code in configure.ac might set extrasub.
7215 # FIXME: do we really want to maintain this feature?
7216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7217 ac_sed_extra="$ac_vpsub
7218 $extrasub
7219 _ACEOF
7220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7221 :t
7222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7223 s|@configure_input@|$ac_sed_conf_input|;t t
7224 s&@top_builddir@&$ac_top_builddir_sub&;t t
7225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7226 s&@srcdir@&$ac_srcdir&;t t
7227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7228 s&@top_srcdir@&$ac_top_srcdir&;t t
7229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7230 s&@builddir@&$ac_builddir&;t t
7231 s&@abs_builddir@&$ac_abs_builddir&;t t
7232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7233 s&@INSTALL@&$ac_INSTALL&;t t
7234 $ac_datarootdir_hack
7235 "
7236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7237 || as_fn_error "could not create $ac_file" "$LINENO" 5
7238
7239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7243 which seems to be undefined. Please make sure it is defined." >&5
7244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7245 which seems to be undefined. Please make sure it is defined." >&2;}
7246
7247 rm -f "$tmp/stdin"
7248 case $ac_file in
7249 -) cat "$tmp/out" && rm -f "$tmp/out";;
7250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7251 esac \
7252 || as_fn_error "could not create $ac_file" "$LINENO" 5
7253 ;;
7254 :H)
7255 #
7256 # CONFIG_HEADER
7257 #
7258 if test x"$ac_file" != x-; then
7259 {
7260 $as_echo "/* $configure_input */" \
7261 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7262 } >"$tmp/config.h" \
7263 || as_fn_error "could not create $ac_file" "$LINENO" 5
7264 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7267 else
7268 rm -f "$ac_file"
7269 mv "$tmp/config.h" "$ac_file" \
7270 || as_fn_error "could not create $ac_file" "$LINENO" 5
7271 fi
7272 else
7273 $as_echo "/* $configure_input */" \
7274 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7275 || as_fn_error "could not create -" "$LINENO" 5
7276 fi
7277 ;;
7278
7279
7280 esac
7281
7282 done # for ac_tag
7283
7284
7285 as_fn_exit 0
7286 _ACEOF
7287 ac_clean_files=$ac_clean_files_save
7288
7289 test $ac_write_fail = 0 ||
7290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7291
7292
7293 # configure is writing to config.log, and then calls config.status.
7294 # config.status does its own redirection, appending to config.log.
7295 # Unfortunately, on DOS this fails, as config.log is still kept open
7296 # by configure, so config.status won't be able to write to it; its
7297 # output is simply discarded. So we exec the FD to /dev/null,
7298 # effectively closing config.log, so it can be properly (re)opened and
7299 # appended to by config.status. When coming back to configure, we
7300 # need to make the FD available again.
7301 if test "$no_create" != yes; then
7302 ac_cs_success=:
7303 ac_config_status_args=
7304 test "$silent" = yes &&
7305 ac_config_status_args="$ac_config_status_args --quiet"
7306 exec 5>/dev/null
7307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7308 exec 5>>config.log
7309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7310 # would make configure fail if this is the last instruction.
7311 $ac_cs_success || as_fn_exit $?
7312 fi
7313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7316 fi
7317
7318
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
7320 $as_echo "===============================================================================" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : $jemalloc_version" >&5
7322 $as_echo "jemalloc version : $jemalloc_version" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7324 $as_echo "" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
7326 $as_echo "CC : ${CC}" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
7328 $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS : ${CFLAGS}" >&5
7330 $as_echo "CFLAGS : ${CFLAGS}" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
7332 $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
7334 $as_echo "LIBS : ${LIBS}" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
7336 $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7338 $as_echo "" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
7340 $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
7342 $as_echo "XSLROOT : ${XSLROOT}" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7344 $as_echo "" >&6; }
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
7346 $as_echo "PREFIX : ${PREFIX}" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
7348 $as_echo "BINDIR : ${BINDIR}" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
7350 $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
7352 $as_echo "LIBDIR : ${LIBDIR}" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
7354 $as_echo "DATADIR : ${DATADIR}" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
7356 $as_echo "MANDIR : ${MANDIR}" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7358 $as_echo "" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
7360 $as_echo "srcroot : ${srcroot}" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
7362 $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
7364 $as_echo "objroot : ${objroot}" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
7366 $as_echo "abs_objroot : ${abs_objroot}" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7368 $as_echo "" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
7370 $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
7372 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
7374 $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
7376 $as_echo "install_suffix : ${install_suffix}" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
7378 $as_echo "autogen : ${enable_autogen}" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5
7380 $as_echo "cc-silence : ${enable_cc_silence}" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
7382 $as_echo "debug : ${enable_debug}" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
7384 $as_echo "stats : ${enable_stats}" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
7386 $as_echo "prof : ${enable_prof}" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
7388 $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
7390 $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
7392 $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiny : ${enable_tiny}" >&5
7394 $as_echo "tiny : ${enable_tiny}" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5
7396 $as_echo "tcache : ${enable_tcache}" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
7398 $as_echo "fill : ${enable_fill}" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
7400 $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysv : ${enable_sysv}" >&5
7402 $as_echo "sysv : ${enable_sysv}" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: swap : ${enable_swap}" >&5
7404 $as_echo "swap : ${enable_swap}" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dss : ${enable_dss}" >&5
7406 $as_echo "dss : ${enable_dss}" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic_page_shift : ${enable_dynamic_page_shift}" >&5
7408 $as_echo "dynamic_page_shift : ${enable_dynamic_page_shift}" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
7410 $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5
7412 $as_echo "tls : ${enable_tls}" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
7414 $as_echo "===============================================================================" >&6; }