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