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