]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
e36ba31a | 3 | # Generated by GNU Autoconf 2.63 for systemtap 1.2. |
2f1a1aea FCE |
4 | # |
5 | # Report bugs to <systemtap@sources.redhat.com>. | |
6 | # | |
7fbd9d09 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
e6364d79 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
e6364d79 MW |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
2f1a1aea | 14 | |
7fbd9d09 FCE |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
e6364d79 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
2f1a1aea FCE |
18 | emulate sh |
19 | NULLCMD=: | |
0710d850 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
23 | setopt NO_GLOB_SUBST |
24 | else | |
e6364d79 MW |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; | |
7fbd9d09 | 27 | esac |
e6364d79 | 28 | |
7fbd9d09 FCE |
29 | fi |
30 | ||
31 | ||
e6364d79 MW |
32 | |
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
0710d850 DS |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
e6364d79 | 49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
0710d850 DS |
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' | |
31f9baea | 56 | else |
0710d850 DS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
e6364d79 | 60 | case $arg in |
0710d850 DS |
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' | |
31f9baea | 69 | fi |
0710d850 DS |
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 | } | |
2f1a1aea | 81 | fi |
2f1a1aea | 82 | |
e6364d79 MW |
83 | # Support unset when possible. |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
2f1a1aea | 90 | |
7fbd9d09 FCE |
91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
e6364d79 | 99 | case $0 in |
7fbd9d09 FCE |
100 | *[\\/]* ) as_myself=$0 ;; |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
e6364d79 MW |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
107 | done | |
7fbd9d09 FCE |
108 | IFS=$as_save_IFS |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
0710d850 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
e6364d79 | 119 | { (exit 1); exit 1; } |
7fbd9d09 FCE |
120 | fi |
121 | ||
e6364d79 MW |
122 | # Work around bugs in pre-3.0 UWIN ksh. |
123 | for as_var in ENV MAIL MAILPATH | |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7fbd9d09 | 125 | done |
2f1a1aea FCE |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
0710d850 DS |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
2f1a1aea | 135 | |
e6364d79 | 136 | # Required to use basename. |
412e1bf7 FCE |
137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
139 | as_expr=expr | |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
145 | as_basename=basename | |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
e6364d79 | 151 | # Name of the executable. |
412e1bf7 FCE |
152 | as_me=`$as_basename -- "$0" || |
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
154 | X"$0" : 'X\(//\)$' \| \ | |
155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
0710d850 | 156 | $as_echo X/"$0" | |
412e1bf7 FCE |
157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
170 | ||
e6364d79 MW |
171 | # CDPATH. |
172 | $as_unset CDPATH | |
412e1bf7 | 173 | |
5e0d2ebf | 174 | |
e6364d79 MW |
175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
412e1bf7 | 181 | |
e6364d79 MW |
182 | if test $as_have_required = yes && (eval ": |
183 | (as_func_return () { | |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
412e1bf7 | 197 | } |
5e0d2ebf | 198 | |
e6364d79 MW |
199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
4b5627b1 | 202 | else |
e6364d79 MW |
203 | exitcode=1 |
204 | echo as_func_success failed. | |
7fbd9d09 | 205 | fi |
e6364d79 MW |
206 | |
207 | if as_func_failure; then | |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
412e1bf7 FCE |
210 | fi |
211 | ||
e6364d79 MW |
212 | if as_func_ret_success; then |
213 | : | |
4b5627b1 | 214 | else |
e6364d79 MW |
215 | exitcode=1 |
216 | echo as_func_ret_success failed. | |
412e1bf7 FCE |
217 | fi |
218 | ||
e6364d79 MW |
219 | if as_func_ret_failure; then |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
412e1bf7 | 226 | else |
e6364d79 MW |
227 | exitcode=1 |
228 | echo positional parameters were not saved. | |
412e1bf7 FCE |
229 | fi |
230 | ||
e6364d79 | 231 | test \$exitcode = 0) || { (exit 1); exit 1; } |
412e1bf7 | 232 | |
e6364d79 MW |
233 | ( |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
247 | case $as_dir in | |
248 | /*) | |
249 | for as_base in sh bash ksh sh5; do | |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
7fbd9d09 FCE |
255 | |
256 | ||
e6364d79 MW |
257 | for as_shell in $as_candidate_shells $SHELL; do |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
2f1a1aea | 272 | |
e6364d79 MW |
273 | fi |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
286 | # is contrary to our usage. Disable this feature. | |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
349 | as_lineno_1=$LINENO | |
350 | as_lineno_2=$LINENO | |
351 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
369 | fi | |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
437 | echo Please tell bug-autoconf@gnu.org about your system, | |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
441 | } | |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
449 | ||
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
452 | # line-number line after each line using $LINENO; the second 'sed' | |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
458 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
464 | sed ' | |
465 | s/[$]LINENO.*/&-/ | |
466 | t lineno | |
467 | b | |
468 | :lineno | |
469 | N | |
470 | :loop | |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
472 | t loop | |
473 | s/-\n.*// | |
474 | ' >$as_me.lineno && | |
475 | chmod +x "$as_me.lineno" || | |
476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
477 | { (exit 1); exit 1; }; } | |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
481 | # original and so on. Autoconf is especially sensitive to this). | |
482 | . "./$as_me.lineno" | |
483 | # Exit status is that of the last command. | |
484 | exit | |
485 | } | |
486 | ||
487 | ||
488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
503 | esac | |
504 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
506 | as_expr=expr | |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
512 | if test -d conf$$.dir; then | |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
516 | mkdir conf$$.dir 2>/dev/null | |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
530 | as_ln_s='cp -p' | |
531 | fi | |
532 | else | |
533 | as_ln_s='cp -p' | |
534 | fi | |
535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
536 | rmdir conf$$.dir 2>/dev/null | |
537 | ||
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
545 | if test -x / >/dev/null 2>&1; then | |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
556 | test -d "$1/."; | |
557 | else | |
558 | case $1 in | |
559 | -*)set "./$1";; | |
560 | esac; | |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
567 | ||
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
575 | ||
576 | exec 7<&0 </dev/null 6>&1 | |
577 | ||
578 | # Name of the host. | |
2f1a1aea FCE |
579 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
580 | # so uname gets run too. | |
581 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
582 | ||
2f1a1aea FCE |
583 | # |
584 | # Initializations. | |
585 | # | |
586 | ac_default_prefix=/usr/local | |
7fbd9d09 | 587 | ac_clean_files= |
2f1a1aea | 588 | ac_config_libobj_dir=. |
7fbd9d09 | 589 | LIBOBJS= |
2f1a1aea FCE |
590 | cross_compiling=no |
591 | subdirs= | |
592 | MFLAGS= | |
593 | MAKEFLAGS= | |
e6364d79 | 594 | SHELL=${CONFIG_SHELL-/bin/sh} |
2f1a1aea | 595 | |
2f1a1aea FCE |
596 | # Identity of this package. |
597 | PACKAGE_NAME='systemtap' | |
598 | PACKAGE_TARNAME='systemtap' | |
e36ba31a FCE |
599 | PACKAGE_VERSION='1.2' |
600 | PACKAGE_STRING='systemtap 1.2' | |
2f1a1aea FCE |
601 | PACKAGE_BUGREPORT='systemtap@sources.redhat.com' |
602 | ||
603 | # Factoring default headers for most tests. | |
604 | ac_includes_default="\ | |
605 | #include <stdio.h> | |
7fbd9d09 | 606 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
607 | # include <sys/types.h> |
608 | #endif | |
7fbd9d09 | 609 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
610 | # include <sys/stat.h> |
611 | #endif | |
7fbd9d09 | 612 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
7fbd9d09 | 616 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
7fbd9d09 FCE |
620 | #ifdef HAVE_STRING_H |
621 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
622 | # include <memory.h> |
623 | # endif | |
624 | # include <string.h> | |
625 | #endif | |
7fbd9d09 | 626 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
627 | # include <strings.h> |
628 | #endif | |
7fbd9d09 | 629 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 630 | # include <inttypes.h> |
2f1a1aea | 631 | #endif |
7fbd9d09 FCE |
632 | #ifdef HAVE_STDINT_H |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
636 | # include <unistd.h> |
637 | #endif" | |
638 | ||
0710d850 DS |
639 | enable_option_checking=no |
640 | ac_subst_vars='am__EXEEXT_FALSE | |
641 | am__EXEEXT_TRUE | |
642 | LTLIBOBJS | |
643 | LIBOBJS | |
644 | subdirs | |
645 | DATE | |
646 | stap_LIBS | |
647 | elfutils_abs_srcdir | |
648 | BUILD_ELFUTILS_FALSE | |
649 | BUILD_ELFUTILS_TRUE | |
0710d850 DS |
650 | BUILD_GRAPHER_FALSE |
651 | BUILD_GRAPHER_TRUE | |
652 | CXXCPP | |
653 | libglade_LIBS | |
654 | libglade_CFLAGS | |
655 | gtkmm_LIBS | |
656 | gtkmm_CFLAGS | |
657 | PKG_CONFIG | |
658 | HAVE_NSS_FALSE | |
659 | HAVE_NSS_TRUE | |
660 | BUILD_SERVER_FALSE | |
661 | BUILD_SERVER_TRUE | |
662 | nspr_CFLAGS | |
663 | nss_CFLAGS | |
664 | have_certutil | |
665 | BUILD_PDFREFDOCS_FALSE | |
666 | BUILD_PDFREFDOCS_TRUE | |
667 | XMLTO_STRINGPARAM_FALSE | |
668 | XMLTO_STRINGPARAM_TRUE | |
669 | BUILD_REFDOCS_FALSE | |
670 | BUILD_REFDOCS_TRUE | |
671 | have_xmlto | |
53ade4da MW |
672 | PUBLICAN_BRAND |
673 | BUILD_PUBLICAN_FALSE | |
674 | BUILD_PUBLICAN_TRUE | |
675 | have_publican | |
0710d850 DS |
676 | BUILD_DOCS_FALSE |
677 | BUILD_DOCS_TRUE | |
678 | have_latex2html | |
679 | have_ps2pdf | |
680 | have_dvips | |
681 | have_latex | |
682 | BUILD_CRASHMOD_FALSE | |
683 | BUILD_CRASHMOD_TRUE | |
684 | staplog_CPPFLAGS | |
685 | BUILD_TRANSLATOR_FALSE | |
686 | BUILD_TRANSLATOR_TRUE | |
687 | sqlite3_LIBS | |
688 | PIECXXFLAGS | |
689 | PIECFLAGS | |
690 | PIELDFLAGS | |
691 | RANLIB | |
692 | ANSI2KNR | |
693 | U | |
694 | EGREP | |
695 | GREP | |
696 | CPP | |
697 | am__fastdepCXX_FALSE | |
698 | am__fastdepCXX_TRUE | |
699 | CXXDEPMODE | |
700 | ac_ct_CXX | |
701 | CXXFLAGS | |
702 | CXX | |
703 | am__fastdepCC_FALSE | |
704 | am__fastdepCC_TRUE | |
705 | CCDEPMODE | |
706 | AMDEPBACKSLASH | |
707 | AMDEP_FALSE | |
708 | AMDEP_TRUE | |
709 | am__quote | |
710 | am__include | |
711 | DEPDIR | |
712 | OBJEXT | |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
719 | LN_S | |
720 | AM_BACKSLASH | |
721 | AM_DEFAULT_VERBOSITY | |
31f9baea | 722 | MAINT |
0710d850 DS |
723 | MAINTAINER_MODE_FALSE |
724 | MAINTAINER_MODE_TRUE | |
725 | am__untar | |
726 | am__tar | |
727 | AMTAR | |
728 | am__leading_dot | |
729 | SET_MAKE | |
730 | AWK | |
731 | mkdir_p | |
7fbd9d09 | 732 | MKDIR_P |
0710d850 DS |
733 | INSTALL_STRIP_PROGRAM |
734 | STRIP | |
735 | install_sh | |
736 | MAKEINFO | |
737 | AUTOHEADER | |
738 | AUTOMAKE | |
739 | AUTOCONF | |
740 | ACLOCAL | |
741 | VERSION | |
742 | PACKAGE | |
743 | CYGPATH_W | |
744 | am__isrc | |
745 | INSTALL_DATA | |
746 | INSTALL_SCRIPT | |
747 | INSTALL_PROGRAM | |
748 | target_alias | |
749 | host_alias | |
750 | build_alias | |
751 | LIBS | |
752 | ECHO_T | |
753 | ECHO_N | |
754 | ECHO_C | |
755 | DEFS | |
756 | mandir | |
757 | localedir | |
758 | libdir | |
759 | psdir | |
760 | pdfdir | |
761 | dvidir | |
762 | htmldir | |
763 | infodir | |
764 | docdir | |
765 | oldincludedir | |
766 | includedir | |
767 | localstatedir | |
768 | sharedstatedir | |
769 | sysconfdir | |
770 | datadir | |
771 | datarootdir | |
772 | libexecdir | |
773 | sbindir | |
774 | bindir | |
775 | program_transform_name | |
776 | prefix | |
777 | exec_prefix | |
778 | PACKAGE_BUGREPORT | |
779 | PACKAGE_STRING | |
780 | PACKAGE_VERSION | |
781 | PACKAGE_TARNAME | |
782 | PACKAGE_NAME | |
783 | PATH_SEPARATOR | |
784 | SHELL' | |
2f1a1aea | 785 | ac_subst_files='' |
0710d850 DS |
786 | ac_user_opts=' |
787 | enable_option_checking | |
788 | enable_maintainer_mode | |
789 | enable_silent_rules | |
790 | enable_dependency_tracking | |
791 | enable_perfmon | |
792 | enable_prologues | |
793 | enable_ssp | |
794 | enable_pie | |
795 | enable_sqlite | |
796 | enable_translator | |
797 | enable_crash | |
798 | enable_docs | |
53ade4da MW |
799 | enable_publican |
800 | with_publican_brand | |
0710d850 DS |
801 | enable_refdocs |
802 | enable_server | |
803 | enable_grapher | |
804 | with_rpm | |
805 | with_elfutils | |
806 | ' | |
7fbd9d09 FCE |
807 | ac_precious_vars='build_alias |
808 | host_alias | |
809 | target_alias | |
810 | CC | |
811 | CFLAGS | |
812 | LDFLAGS | |
813 | LIBS | |
814 | CPPFLAGS | |
815 | CXX | |
816 | CXXFLAGS | |
817 | CCC | |
818 | CPP | |
1087b83f | 819 | PKG_CONFIG |
c3f070d9 DS |
820 | gtkmm_CFLAGS |
821 | gtkmm_LIBS | |
f8a49389 DS |
822 | libglade_CFLAGS |
823 | libglade_LIBS | |
7f9ad862 | 824 | CXXCPP' |
1087b83f | 825 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
826 | |
827 | # Initialize some variables set by options. | |
828 | ac_init_help= | |
829 | ac_init_version=false | |
0710d850 DS |
830 | ac_unrecognized_opts= |
831 | ac_unrecognized_sep= | |
2f1a1aea FCE |
832 | # The variables have the same names as the options, with |
833 | # dashes changed to underlines. | |
834 | cache_file=/dev/null | |
835 | exec_prefix=NONE | |
836 | no_create= | |
837 | no_recursion= | |
838 | prefix=NONE | |
839 | program_prefix=NONE | |
840 | program_suffix=NONE | |
841 | program_transform_name=s,x,x, | |
842 | silent= | |
843 | site= | |
844 | srcdir= | |
845 | verbose= | |
846 | x_includes=NONE | |
847 | x_libraries=NONE | |
848 | ||
849 | # Installation directory options. | |
850 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
851 | # and all the variables that are supposed to be based on exec_prefix | |
852 | # by default will actually change. | |
853 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 854 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
855 | bindir='${exec_prefix}/bin' |
856 | sbindir='${exec_prefix}/sbin' | |
857 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
858 | datarootdir='${prefix}/share' |
859 | datadir='${datarootdir}' | |
2f1a1aea FCE |
860 | sysconfdir='${prefix}/etc' |
861 | sharedstatedir='${prefix}/com' | |
862 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
863 | includedir='${prefix}/include' |
864 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
865 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
866 | infodir='${datarootdir}/info' | |
867 | htmldir='${docdir}' | |
868 | dvidir='${docdir}' | |
869 | pdfdir='${docdir}' | |
870 | psdir='${docdir}' | |
871 | libdir='${exec_prefix}/lib' | |
872 | localedir='${datarootdir}/locale' | |
873 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
874 | |
875 | ac_prev= | |
7fbd9d09 | 876 | ac_dashdash= |
2f1a1aea FCE |
877 | for ac_option |
878 | do | |
879 | # If the previous option needs an argument, assign it. | |
880 | if test -n "$ac_prev"; then | |
7fbd9d09 | 881 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
882 | ac_prev= |
883 | continue | |
884 | fi | |
885 | ||
7fbd9d09 FCE |
886 | case $ac_option in |
887 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
888 | *) ac_optarg=yes ;; | |
889 | esac | |
2f1a1aea FCE |
890 | |
891 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
892 | ||
7fbd9d09 FCE |
893 | case $ac_dashdash$ac_option in |
894 | --) | |
895 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
896 | |
897 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
898 | ac_prev=bindir ;; | |
899 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
900 | bindir=$ac_optarg ;; | |
901 | ||
902 | -build | --build | --buil | --bui | --bu) | |
903 | ac_prev=build_alias ;; | |
904 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
905 | build_alias=$ac_optarg ;; | |
906 | ||
907 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
908 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
909 | ac_prev=cache_file ;; | |
910 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
911 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
912 | cache_file=$ac_optarg ;; | |
913 | ||
914 | --config-cache | -C) | |
915 | cache_file=config.cache ;; | |
916 | ||
7fbd9d09 | 917 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 918 | ac_prev=datadir ;; |
7fbd9d09 | 919 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
920 | datadir=$ac_optarg ;; |
921 | ||
7fbd9d09 FCE |
922 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
923 | | --dataroo | --dataro | --datar) | |
924 | ac_prev=datarootdir ;; | |
925 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
926 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
927 | datarootdir=$ac_optarg ;; | |
928 | ||
2f1a1aea | 929 | -disable-* | --disable-*) |
0710d850 | 930 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 931 | # Reject names that are not valid shell variable names. |
0710d850 | 932 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
e6364d79 MW |
933 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
934 | { (exit 1); exit 1; }; } | |
0710d850 DS |
935 | ac_useropt_orig=$ac_useropt |
936 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
937 | case $ac_user_opts in | |
938 | *" | |
939 | "enable_$ac_useropt" | |
940 | "*) ;; | |
941 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
942 | ac_unrecognized_sep=', ';; | |
943 | esac | |
944 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
945 | |
946 | -docdir | --docdir | --docdi | --doc | --do) | |
947 | ac_prev=docdir ;; | |
948 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
949 | docdir=$ac_optarg ;; | |
950 | ||
951 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
952 | ac_prev=dvidir ;; | |
953 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
954 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
955 | |
956 | -enable-* | --enable-*) | |
0710d850 | 957 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 958 | # Reject names that are not valid shell variable names. |
0710d850 | 959 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
e6364d79 MW |
960 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
961 | { (exit 1); exit 1; }; } | |
0710d850 DS |
962 | ac_useropt_orig=$ac_useropt |
963 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
964 | case $ac_user_opts in | |
965 | *" | |
966 | "enable_$ac_useropt" | |
967 | "*) ;; | |
968 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
969 | ac_unrecognized_sep=', ';; | |
970 | esac | |
971 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
972 | |
973 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
974 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
975 | | --exec | --exe | --ex) | |
976 | ac_prev=exec_prefix ;; | |
977 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
978 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
979 | | --exec=* | --exe=* | --ex=*) | |
980 | exec_prefix=$ac_optarg ;; | |
981 | ||
982 | -gas | --gas | --ga | --g) | |
983 | # Obsolete; use --with-gas. | |
984 | with_gas=yes ;; | |
985 | ||
986 | -help | --help | --hel | --he | -h) | |
987 | ac_init_help=long ;; | |
988 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
989 | ac_init_help=recursive ;; | |
990 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
991 | ac_init_help=short ;; | |
992 | ||
993 | -host | --host | --hos | --ho) | |
994 | ac_prev=host_alias ;; | |
995 | -host=* | --host=* | --hos=* | --ho=*) | |
996 | host_alias=$ac_optarg ;; | |
997 | ||
7fbd9d09 FCE |
998 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
999 | ac_prev=htmldir ;; | |
1000 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1001 | | --ht=*) | |
1002 | htmldir=$ac_optarg ;; | |
1003 | ||
2f1a1aea FCE |
1004 | -includedir | --includedir | --includedi | --included | --include \ |
1005 | | --includ | --inclu | --incl | --inc) | |
1006 | ac_prev=includedir ;; | |
1007 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1008 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1009 | includedir=$ac_optarg ;; | |
1010 | ||
1011 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1012 | ac_prev=infodir ;; | |
1013 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1014 | infodir=$ac_optarg ;; | |
1015 | ||
1016 | -libdir | --libdir | --libdi | --libd) | |
1017 | ac_prev=libdir ;; | |
1018 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1019 | libdir=$ac_optarg ;; | |
1020 | ||
1021 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1022 | | --libexe | --libex | --libe) | |
1023 | ac_prev=libexecdir ;; | |
1024 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1025 | | --libexe=* | --libex=* | --libe=*) | |
1026 | libexecdir=$ac_optarg ;; | |
1027 | ||
7fbd9d09 FCE |
1028 | -localedir | --localedir | --localedi | --localed | --locale) |
1029 | ac_prev=localedir ;; | |
1030 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1031 | localedir=$ac_optarg ;; | |
1032 | ||
2f1a1aea | 1033 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1034 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1035 | ac_prev=localstatedir ;; |
1036 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1037 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1038 | localstatedir=$ac_optarg ;; |
1039 | ||
1040 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1041 | ac_prev=mandir ;; | |
1042 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1043 | mandir=$ac_optarg ;; | |
1044 | ||
1045 | -nfp | --nfp | --nf) | |
1046 | # Obsolete; use --without-fp. | |
1047 | with_fp=no ;; | |
1048 | ||
1049 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1050 | | --no-cr | --no-c | -n) | |
1051 | no_create=yes ;; | |
1052 | ||
1053 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1054 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1055 | no_recursion=yes ;; | |
1056 | ||
1057 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1058 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1059 | | --oldin | --oldi | --old | --ol | --o) | |
1060 | ac_prev=oldincludedir ;; | |
1061 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1062 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1063 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1064 | oldincludedir=$ac_optarg ;; | |
1065 | ||
1066 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1067 | ac_prev=prefix ;; | |
1068 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1069 | prefix=$ac_optarg ;; | |
1070 | ||
1071 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1072 | | --program-pre | --program-pr | --program-p) | |
1073 | ac_prev=program_prefix ;; | |
1074 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1075 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1076 | program_prefix=$ac_optarg ;; | |
1077 | ||
1078 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1079 | | --program-suf | --program-su | --program-s) | |
1080 | ac_prev=program_suffix ;; | |
1081 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1082 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1083 | program_suffix=$ac_optarg ;; | |
1084 | ||
1085 | -program-transform-name | --program-transform-name \ | |
1086 | | --program-transform-nam | --program-transform-na \ | |
1087 | | --program-transform-n | --program-transform- \ | |
1088 | | --program-transform | --program-transfor \ | |
1089 | | --program-transfo | --program-transf \ | |
1090 | | --program-trans | --program-tran \ | |
1091 | | --progr-tra | --program-tr | --program-t) | |
1092 | ac_prev=program_transform_name ;; | |
1093 | -program-transform-name=* | --program-transform-name=* \ | |
1094 | | --program-transform-nam=* | --program-transform-na=* \ | |
1095 | | --program-transform-n=* | --program-transform-=* \ | |
1096 | | --program-transform=* | --program-transfor=* \ | |
1097 | | --program-transfo=* | --program-transf=* \ | |
1098 | | --program-trans=* | --program-tran=* \ | |
1099 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1100 | program_transform_name=$ac_optarg ;; | |
1101 | ||
7fbd9d09 FCE |
1102 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1103 | ac_prev=pdfdir ;; | |
1104 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1105 | pdfdir=$ac_optarg ;; | |
1106 | ||
1107 | -psdir | --psdir | --psdi | --psd | --ps) | |
1108 | ac_prev=psdir ;; | |
1109 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1110 | psdir=$ac_optarg ;; | |
1111 | ||
2f1a1aea FCE |
1112 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1113 | | -silent | --silent | --silen | --sile | --sil) | |
1114 | silent=yes ;; | |
1115 | ||
1116 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1117 | ac_prev=sbindir ;; | |
1118 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1119 | | --sbi=* | --sb=*) | |
1120 | sbindir=$ac_optarg ;; | |
1121 | ||
1122 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1123 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1124 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1125 | | --sha | --sh) | |
1126 | ac_prev=sharedstatedir ;; | |
1127 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1128 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1129 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1130 | | --sha=* | --sh=*) | |
1131 | sharedstatedir=$ac_optarg ;; | |
1132 | ||
1133 | -site | --site | --sit) | |
1134 | ac_prev=site ;; | |
1135 | -site=* | --site=* | --sit=*) | |
1136 | site=$ac_optarg ;; | |
1137 | ||
1138 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1139 | ac_prev=srcdir ;; | |
1140 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1141 | srcdir=$ac_optarg ;; | |
1142 | ||
1143 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1144 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1145 | ac_prev=sysconfdir ;; | |
1146 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1147 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1148 | sysconfdir=$ac_optarg ;; | |
1149 | ||
1150 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1151 | ac_prev=target_alias ;; | |
1152 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1153 | target_alias=$ac_optarg ;; | |
1154 | ||
1155 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1156 | verbose=yes ;; | |
1157 | ||
1158 | -version | --version | --versio | --versi | --vers | -V) | |
1159 | ac_init_version=: ;; | |
1160 | ||
1161 | -with-* | --with-*) | |
0710d850 | 1162 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1163 | # Reject names that are not valid shell variable names. |
0710d850 | 1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
e6364d79 MW |
1165 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1166 | { (exit 1); exit 1; }; } | |
0710d850 DS |
1167 | ac_useropt_orig=$ac_useropt |
1168 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1169 | case $ac_user_opts in | |
1170 | *" | |
1171 | "with_$ac_useropt" | |
1172 | "*) ;; | |
1173 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1174 | ac_unrecognized_sep=', ';; | |
1175 | esac | |
1176 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1177 | |
1178 | -without-* | --without-*) | |
0710d850 | 1179 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1180 | # Reject names that are not valid shell variable names. |
0710d850 | 1181 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
e6364d79 MW |
1182 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1183 | { (exit 1); exit 1; }; } | |
0710d850 DS |
1184 | ac_useropt_orig=$ac_useropt |
1185 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1186 | case $ac_user_opts in | |
1187 | *" | |
1188 | "with_$ac_useropt" | |
1189 | "*) ;; | |
1190 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1191 | ac_unrecognized_sep=', ';; | |
1192 | esac | |
1193 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1194 | |
1195 | --x) | |
1196 | # Obsolete; use --with-x. | |
1197 | with_x=yes ;; | |
1198 | ||
1199 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1200 | | --x-incl | --x-inc | --x-in | --x-i) | |
1201 | ac_prev=x_includes ;; | |
1202 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1203 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1204 | x_includes=$ac_optarg ;; | |
1205 | ||
1206 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1207 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1208 | ac_prev=x_libraries ;; | |
1209 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1210 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1211 | x_libraries=$ac_optarg ;; | |
1212 | ||
e6364d79 MW |
1213 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
1214 | Try \`$0 --help' for more information." >&2 | |
1215 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
1216 | ;; |
1217 | ||
1218 | *=*) | |
1219 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1220 | # Reject names that are not valid shell variable names. | |
e6364d79 MW |
1221 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1222 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1223 | { (exit 1); exit 1; }; } | |
7fbd9d09 | 1224 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1225 | export $ac_envvar ;; |
1226 | ||
1227 | *) | |
1228 | # FIXME: should be removed in autoconf 3.0. | |
0710d850 | 1229 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1230 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
0710d850 | 1231 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2f1a1aea FCE |
1232 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1233 | ;; | |
1234 | ||
1235 | esac | |
1236 | done | |
1237 | ||
1238 | if test -n "$ac_prev"; then | |
1239 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
e6364d79 MW |
1240 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
1241 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
1242 | fi |
1243 | ||
0710d850 DS |
1244 | if test -n "$ac_unrecognized_opts"; then |
1245 | case $enable_option_checking in | |
1246 | no) ;; | |
e6364d79 MW |
1247 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
1248 | { (exit 1); exit 1; }; } ;; | |
0710d850 DS |
1249 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1250 | esac | |
1251 | fi | |
1252 | ||
1253 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1254 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1255 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1256 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1257 | libdir localedir mandir | |
818ba2bc | 1258 | do |
7fbd9d09 | 1259 | eval ac_val=\$$ac_var |
0710d850 DS |
1260 | # Remove trailing slashes. |
1261 | case $ac_val in | |
1262 | */ ) | |
1263 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1264 | eval $ac_var=\$ac_val;; | |
1265 | esac | |
1266 | # Be sure to have absolute directory names. | |
8ae7a94a | 1267 | case $ac_val in |
7fbd9d09 FCE |
1268 | [\\/$]* | ?:[\\/]* ) continue;; |
1269 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1270 | esac |
e6364d79 MW |
1271 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1272 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
1273 | done |
1274 | ||
1275 | # There might be people who depend on the old broken behavior: `$host' | |
1276 | # used to hold the argument of --host etc. | |
1277 | # FIXME: To remove some day. | |
1278 | build=$build_alias | |
1279 | host=$host_alias | |
1280 | target=$target_alias | |
1281 | ||
1282 | # FIXME: To remove some day. | |
1283 | if test "x$host_alias" != x; then | |
1284 | if test "x$build_alias" = x; then | |
1285 | cross_compiling=maybe | |
0710d850 | 1286 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2f1a1aea FCE |
1287 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1288 | elif test "x$build_alias" != "x$host_alias"; then | |
1289 | cross_compiling=yes | |
1290 | fi | |
1291 | fi | |
1292 | ||
1293 | ac_tool_prefix= | |
1294 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1295 | ||
1296 | test "$silent" = yes && exec 6>/dev/null | |
1297 | ||
1298 | ||
7fbd9d09 FCE |
1299 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1300 | ac_ls_di=`ls -di .` && | |
1301 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
e6364d79 MW |
1302 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
1303 | { (exit 1); exit 1; }; } | |
7fbd9d09 | 1304 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
e6364d79 MW |
1305 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
1306 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
1307 | |
1308 | ||
2f1a1aea FCE |
1309 | # Find the source files, if location was not specified. |
1310 | if test -z "$srcdir"; then | |
1311 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1312 | # Try the directory containing this script, then the parent directory. |
0710d850 DS |
1313 | ac_confdir=`$as_dirname -- "$as_myself" || |
1314 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1315 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1316 | X"$as_myself" : 'X\(//\)$' \| \ | |
1317 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1318 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1320 | s//\1/ | |
1321 | q | |
1322 | } | |
1323 | /^X\(\/\/\)[^/].*/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)$/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\).*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | s/.*/./; q'` | |
2f1a1aea | 1336 | srcdir=$ac_confdir |
7fbd9d09 | 1337 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1338 | srcdir=.. |
1339 | fi | |
1340 | else | |
1341 | ac_srcdir_defaulted=no | |
1342 | fi | |
7fbd9d09 FCE |
1343 | if test ! -r "$srcdir/$ac_unique_file"; then |
1344 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
e6364d79 MW |
1345 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1346 | { (exit 1); exit 1; }; } | |
8ae7a94a | 1347 | fi |
7fbd9d09 FCE |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1349 | ac_abs_confdir=`( | |
e6364d79 MW |
1350 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
1351 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
1352 | pwd)` |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
1363 | for ac_var in $ac_precious_vars; do | |
1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1365 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1368 | done | |
2f1a1aea FCE |
1369 | |
1370 | # | |
1371 | # Report the --help message. | |
1372 | # | |
1373 | if test "$ac_init_help" = "long"; then | |
1374 | # Omit some internal or obsolete options to make the list less imposing. | |
1375 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1376 | cat <<_ACEOF | |
e36ba31a | 1377 | \`configure' configures systemtap 1.2 to adapt to many kinds of systems. |
2f1a1aea FCE |
1378 | |
1379 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1380 | ||
1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1382 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1383 | ||
1384 | Defaults for the options are specified in brackets. | |
1385 | ||
1386 | Configuration: | |
1387 | -h, --help display this help and exit | |
1388 | --help=short display options specific to this package | |
1389 | --help=recursive display the short help of all the included packages | |
1390 | -V, --version display version information and exit | |
1391 | -q, --quiet, --silent do not print \`checking...' messages | |
1392 | --cache-file=FILE cache test results in FILE [disabled] | |
1393 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1394 | -n, --no-create do not create output files | |
1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1396 | ||
2f1a1aea FCE |
1397 | Installation directories: |
1398 | --prefix=PREFIX install architecture-independent files in PREFIX | |
0710d850 | 1399 | [$ac_default_prefix] |
2f1a1aea | 1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
0710d850 | 1401 | [PREFIX] |
2f1a1aea FCE |
1402 | |
1403 | By default, \`make install' will install all the files in | |
1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1406 | for instance \`--prefix=\$HOME'. | |
1407 | ||
1408 | For better control, use the options below. | |
1409 | ||
1410 | Fine tuning of the installation directories: | |
0710d850 DS |
1411 | --bindir=DIR user executables [EPREFIX/bin] |
1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1413 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1417 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1418 | --includedir=DIR C header files [PREFIX/include] | |
1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1422 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1424 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1426 | --htmldir=DIR html documentation [DOCDIR] | |
1427 | --dvidir=DIR dvi documentation [DOCDIR] | |
1428 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1429 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1430 | _ACEOF |
1431 | ||
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | Program names: | |
1435 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1436 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1437 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1438 | _ACEOF | |
1439 | fi | |
1440 | ||
1441 | if test -n "$ac_init_help"; then | |
1442 | case $ac_init_help in | |
e36ba31a | 1443 | short | recursive ) echo "Configuration of systemtap 1.2:";; |
2f1a1aea FCE |
1444 | esac |
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | Optional Features: | |
0710d850 | 1448 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1449 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1450 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1451 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1452 | (and sometimes confusing) to the casual installer | |
0710d850 DS |
1453 | --enable-silent-rules less verbose build output (undo: `make V=1') |
1454 | --disable-silent-rules verbose build output (undo: `make V=0') | |
2f1a1aea FCE |
1455 | --disable-dependency-tracking speeds up one-time build |
1456 | --enable-dependency-tracking do not reject slow dependency extractors | |
e8f3c2c2 DS |
1457 | --enable-perfmon[=DIRECTORY] |
1458 | enable perfmon support (default is disabled). | |
1459 | Optional DIRECTORY is the path to the perfmon | |
1460 | installation (needed if installed in a non-standard | |
1461 | location). | |
44f75386 | 1462 | --enable-prologues make -P prologue-searching default |
bbfd8c1a | 1463 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1464 | --enable-pie enable position-independent-executable |
9921a199 | 1465 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1466 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1467 | --enable-crash[=DIRECTORY] |
1468 | enable crash extension (default is disabled). | |
1469 | Optional DIRECTORY is the path to the crash header | |
1470 | file (needed if installed in a non-standard | |
1471 | location). | |
465e8fbf FCE |
1472 | --enable-docs enable building documentation (default on if latex |
1473 | etc. found). | |
53ade4da MW |
1474 | --enable-publican enable building publican documentation guides |
1475 | (default on if publican found and other | |
1476 | documentation built). | |
92aff3c7 WC |
1477 | --enable-refdocs enable building reference documentation (default on |
1478 | if xmlto etc. found and other documentation built). | |
6275c8d7 | 1479 | --enable-server enable building of stap-server/client (default on if |
19a0d4b6 | 1480 | nss etc. found). |
f8a49389 DS |
1481 | --enable-grapher enable building of grapher (default on if needed |
1482 | requirements are found). | |
2f1a1aea | 1483 | |
4d9087fc RM |
1484 | Optional Packages: |
1485 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1486 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ade4da MW |
1487 | --with-publican-brand=BRAND |
1488 | building publican documentation guides using given | |
89bc1a6a | 1489 | brand (defaults to "common"). |
bcfa72ed | 1490 | --with-rpm query rpm database for missing debuginfos |
4d9087fc RM |
1491 | --with-elfutils=DIRECTORY |
1492 | find elfutils source code in DIRECTORY | |
1493 | ||
2f1a1aea FCE |
1494 | Some influential environment variables: |
1495 | CC C compiler command | |
1496 | CFLAGS C compiler flags | |
1497 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1498 | nonstandard directory <lib dir> | |
7fbd9d09 | 1499 | LIBS libraries to pass to the linker, e.g. -l<library> |
e6364d79 | 1500 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
7fbd9d09 | 1501 | you have headers in a nonstandard directory <include dir> |
2f1a1aea FCE |
1502 | CXX C++ compiler command |
1503 | CXXFLAGS C++ compiler flags | |
1504 | CPP C preprocessor | |
1087b83f | 1505 | PKG_CONFIG path to pkg-config utility |
c3f070d9 DS |
1506 | gtkmm_CFLAGS |
1507 | C compiler flags for gtkmm, overriding pkg-config | |
1508 | gtkmm_LIBS linker flags for gtkmm, overriding pkg-config | |
f8a49389 DS |
1509 | libglade_CFLAGS |
1510 | C compiler flags for libglade, overriding pkg-config | |
1511 | libglade_LIBS | |
1512 | linker flags for libglade, overriding pkg-config | |
1513 | CXXCPP C++ preprocessor | |
2f1a1aea FCE |
1514 | |
1515 | Use these variables to override the choices made by `configure' or to help | |
1516 | it to find libraries and programs with nonstandard names/locations. | |
1517 | ||
1518 | Report bugs to <systemtap@sources.redhat.com>. | |
1519 | _ACEOF | |
7fbd9d09 | 1520 | ac_status=$? |
2f1a1aea FCE |
1521 | fi |
1522 | ||
1523 | if test "$ac_init_help" = "recursive"; then | |
1524 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0710d850 DS |
1526 | test -d "$ac_dir" || |
1527 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1528 | continue | |
2f1a1aea FCE |
1529 | ac_builddir=. |
1530 | ||
7fbd9d09 FCE |
1531 | case "$ac_dir" in |
1532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1533 | *) | |
0710d850 | 1534 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1535 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 1536 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1537 | case $ac_top_builddir_sub in |
1538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1540 | esac ;; | |
1541 | esac | |
1542 | ac_abs_top_builddir=$ac_pwd | |
1543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1544 | # for backward compatibility: | |
1545 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1546 | |
1547 | case $srcdir in | |
7fbd9d09 | 1548 | .) # We are building in place. |
2f1a1aea | 1549 | ac_srcdir=. |
7fbd9d09 FCE |
1550 | ac_top_srcdir=$ac_top_builddir_sub |
1551 | ac_abs_top_srcdir=$ac_pwd ;; | |
1552 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1553 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1554 | ac_top_srcdir=$srcdir |
1555 | ac_abs_top_srcdir=$srcdir ;; | |
1556 | *) # Relative name. | |
1557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1558 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1560 | esac |
7fbd9d09 FCE |
1561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1562 | ||
1563 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1564 | # Check for guested configure. | |
1565 | if test -f "$ac_srcdir/configure.gnu"; then | |
1566 | echo && | |
1567 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1568 | elif test -f "$ac_srcdir/configure"; then | |
1569 | echo && | |
1570 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1571 | else |
0710d850 | 1572 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1573 | fi || ac_status=$? |
1574 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1575 | done |
1576 | fi | |
1577 | ||
7fbd9d09 | 1578 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1579 | if $ac_init_version; then |
1580 | cat <<\_ACEOF | |
e36ba31a | 1581 | systemtap configure 1.2 |
e6364d79 | 1582 | generated by GNU Autoconf 2.63 |
2f1a1aea | 1583 | |
e6364d79 MW |
1584 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1585 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
2f1a1aea FCE |
1586 | This configure script is free software; the Free Software Foundation |
1587 | gives unlimited permission to copy, distribute and modify it. | |
1588 | _ACEOF | |
7fbd9d09 | 1589 | exit |
2f1a1aea | 1590 | fi |
e6364d79 MW |
1591 | cat >config.log <<_ACEOF |
1592 | This file contains any messages produced by compilers while | |
1593 | running configure, to aid debugging if configure makes a mistake. | |
2f1a1aea | 1594 | |
e36ba31a | 1595 | It was created by systemtap $as_me 1.2, which was |
e6364d79 | 1596 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea | 1597 | |
e6364d79 | 1598 | $ $0 $@ |
2f1a1aea | 1599 | |
e6364d79 MW |
1600 | _ACEOF |
1601 | exec 5>>config.log | |
4b5627b1 | 1602 | { |
e6364d79 MW |
1603 | cat <<_ASUNAME |
1604 | ## --------- ## | |
1605 | ## Platform. ## | |
1606 | ## --------- ## | |
2f1a1aea | 1607 | |
e6364d79 MW |
1608 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1609 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1610 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1611 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1612 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4b5627b1 | 1613 | |
e6364d79 MW |
1614 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1615 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
4b5627b1 EM |
1616 | |
1617 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1618 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1619 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1620 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1621 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1622 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1623 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1624 | ||
1625 | _ASUNAME | |
2f1a1aea FCE |
1626 | |
1627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1628 | for as_dir in $PATH | |
1629 | do | |
1630 | IFS=$as_save_IFS | |
1631 | test -z "$as_dir" && as_dir=. | |
e6364d79 MW |
1632 | $as_echo "PATH: $as_dir" |
1633 | done | |
7fbd9d09 | 1634 | IFS=$as_save_IFS |
2f1a1aea FCE |
1635 | |
1636 | } >&5 | |
1637 | ||
1638 | cat >&5 <<_ACEOF | |
1639 | ||
1640 | ||
1641 | ## ----------- ## | |
1642 | ## Core tests. ## | |
1643 | ## ----------- ## | |
1644 | ||
1645 | _ACEOF | |
1646 | ||
1647 | ||
1648 | # Keep a trace of the command line. | |
1649 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1650 | # Strip out --silent because we don't want to record it for future runs. | |
1651 | # Also quote any args containing shell meta-characters. | |
1652 | # Make two passes to allow for proper duplicate-argument suppression. | |
1653 | ac_configure_args= | |
1654 | ac_configure_args0= | |
1655 | ac_configure_args1= | |
2f1a1aea FCE |
1656 | ac_must_keep_next=false |
1657 | for ac_pass in 1 2 | |
1658 | do | |
1659 | for ac_arg | |
1660 | do | |
1661 | case $ac_arg in | |
1662 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1663 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1664 | | -silent | --silent | --silen | --sile | --sil) | |
1665 | continue ;; | |
7fbd9d09 | 1666 | *\'*) |
0710d850 | 1667 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1668 | esac |
1669 | case $ac_pass in | |
e6364d79 | 1670 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
2f1a1aea | 1671 | 2) |
e6364d79 | 1672 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
2f1a1aea FCE |
1673 | if test $ac_must_keep_next = true; then |
1674 | ac_must_keep_next=false # Got value, back to normal. | |
1675 | else | |
1676 | case $ac_arg in | |
1677 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1678 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1679 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1680 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1681 | case "$ac_configure_args0 " in | |
1682 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1683 | esac | |
1684 | ;; | |
1685 | -* ) ac_must_keep_next=true ;; | |
1686 | esac | |
1687 | fi | |
e6364d79 | 1688 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2f1a1aea FCE |
1689 | ;; |
1690 | esac | |
1691 | done | |
1692 | done | |
e6364d79 MW |
1693 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1694 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
2f1a1aea FCE |
1695 | |
1696 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1697 | # config.log. We remove comments because anyway the quotes in there | |
1698 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
1699 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1700 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
1701 | trap 'exit_status=$? |
1702 | # Save into config.log some information that might help in debugging. | |
1703 | { | |
1704 | echo | |
1705 | ||
1706 | cat <<\_ASBOX | |
1707 | ## ---------------- ## | |
1708 | ## Cache variables. ## | |
1709 | ## ---------------- ## | |
1710 | _ASBOX | |
1711 | echo | |
1712 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
1713 | ( |
1714 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1715 | eval ac_val=\$$ac_var | |
1716 | case $ac_val in #( | |
1717 | *${as_nl}*) | |
1718 | case $ac_var in #( | |
e6364d79 | 1719 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 1720 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
1721 | esac |
1722 | case $ac_var in #( | |
1723 | _ | IFS | as_nl) ;; #( | |
0710d850 | 1724 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
e6364d79 | 1725 | *) $as_unset $ac_var ;; |
7fbd9d09 FCE |
1726 | esac ;; |
1727 | esac | |
1728 | done | |
2f1a1aea | 1729 | (set) 2>&1 | |
7fbd9d09 FCE |
1730 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1731 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 1732 | sed -n \ |
7fbd9d09 FCE |
1733 | "s/'\''/'\''\\\\'\'''\''/g; |
1734 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1735 | ;; #( | |
2f1a1aea | 1736 | *) |
7fbd9d09 | 1737 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 1738 | ;; |
7fbd9d09 FCE |
1739 | esac | |
1740 | sort | |
1741 | ) | |
2f1a1aea FCE |
1742 | echo |
1743 | ||
1744 | cat <<\_ASBOX | |
1745 | ## ----------------- ## | |
1746 | ## Output variables. ## | |
1747 | ## ----------------- ## | |
1748 | _ASBOX | |
1749 | echo | |
1750 | for ac_var in $ac_subst_vars | |
1751 | do | |
7fbd9d09 FCE |
1752 | eval ac_val=\$$ac_var |
1753 | case $ac_val in | |
0710d850 | 1754 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1755 | esac |
0710d850 | 1756 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1757 | done | sort |
1758 | echo | |
1759 | ||
1760 | if test -n "$ac_subst_files"; then | |
1761 | cat <<\_ASBOX | |
7fbd9d09 FCE |
1762 | ## ------------------- ## |
1763 | ## File substitutions. ## | |
1764 | ## ------------------- ## | |
2f1a1aea FCE |
1765 | _ASBOX |
1766 | echo | |
1767 | for ac_var in $ac_subst_files | |
1768 | do | |
7fbd9d09 FCE |
1769 | eval ac_val=\$$ac_var |
1770 | case $ac_val in | |
0710d850 | 1771 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1772 | esac |
0710d850 | 1773 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1774 | done | sort |
1775 | echo | |
1776 | fi | |
1777 | ||
1778 | if test -s confdefs.h; then | |
1779 | cat <<\_ASBOX | |
1780 | ## ----------- ## | |
1781 | ## confdefs.h. ## | |
1782 | ## ----------- ## | |
1783 | _ASBOX | |
1784 | echo | |
7fbd9d09 | 1785 | cat confdefs.h |
2f1a1aea FCE |
1786 | echo |
1787 | fi | |
1788 | test "$ac_signal" != 0 && | |
0710d850 DS |
1789 | $as_echo "$as_me: caught signal $ac_signal" |
1790 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 1791 | } >&5 |
7fbd9d09 FCE |
1792 | rm -f core *.core core.conftest.* && |
1793 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 1794 | exit $exit_status |
7fbd9d09 | 1795 | ' 0 |
2f1a1aea | 1796 | for ac_signal in 1 2 13 15; do |
e6364d79 | 1797 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
2f1a1aea FCE |
1798 | done |
1799 | ac_signal=0 | |
1800 | ||
1801 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 1802 | rm -f -r conftest* confdefs.h |
2f1a1aea FCE |
1803 | |
1804 | # Predefined preprocessor variables. | |
1805 | ||
1806 | cat >>confdefs.h <<_ACEOF | |
1807 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1808 | _ACEOF | |
1809 | ||
e6364d79 | 1810 | |
2f1a1aea FCE |
1811 | cat >>confdefs.h <<_ACEOF |
1812 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1813 | _ACEOF | |
1814 | ||
e6364d79 | 1815 | |
2f1a1aea FCE |
1816 | cat >>confdefs.h <<_ACEOF |
1817 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1818 | _ACEOF | |
1819 | ||
e6364d79 | 1820 | |
2f1a1aea FCE |
1821 | cat >>confdefs.h <<_ACEOF |
1822 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1823 | _ACEOF | |
1824 | ||
4a3c19da | 1825 | |
4b5627b1 | 1826 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 1827 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
4b5627b1 EM |
1828 | _ACEOF |
1829 | ||
2f1a1aea FCE |
1830 | |
1831 | # Let the site file select an alternate cache file if it wants to. | |
0710d850 DS |
1832 | # Prefer an explicitly selected file to automatically selected ones. |
1833 | ac_site_file1=NONE | |
1834 | ac_site_file2=NONE | |
7fbd9d09 | 1835 | if test -n "$CONFIG_SITE"; then |
0710d850 | 1836 | ac_site_file1=$CONFIG_SITE |
7fbd9d09 | 1837 | elif test "x$prefix" != xNONE; then |
0710d850 DS |
1838 | ac_site_file1=$prefix/share/config.site |
1839 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 1840 | else |
0710d850 DS |
1841 | ac_site_file1=$ac_default_prefix/share/config.site |
1842 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 1843 | fi |
0710d850 | 1844 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 1845 | do |
0710d850 | 1846 | test "x$ac_site_file" = xNONE && continue |
e6364d79 MW |
1847 | if test -r "$ac_site_file"; then |
1848 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
0710d850 | 1849 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2f1a1aea FCE |
1850 | sed 's/^/| /' "$ac_site_file" >&5 |
1851 | . "$ac_site_file" | |
1852 | fi | |
1853 | done | |
1854 | ||
1855 | if test -r "$cache_file"; then | |
e6364d79 MW |
1856 | # Some versions of bash will fail to source /dev/null (special |
1857 | # files actually), so we avoid doing that. | |
1858 | if test -f "$cache_file"; then | |
1859 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
0710d850 | 1860 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2f1a1aea | 1861 | case $cache_file in |
7fbd9d09 FCE |
1862 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1863 | *) . "./$cache_file";; | |
2f1a1aea FCE |
1864 | esac |
1865 | fi | |
1866 | else | |
e6364d79 | 1867 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
0710d850 | 1868 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2f1a1aea FCE |
1869 | >$cache_file |
1870 | fi | |
1871 | ||
1872 | # Check that the precious variables saved in the cache have kept the same | |
1873 | # value. | |
1874 | ac_cache_corrupted=false | |
7fbd9d09 | 1875 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
1876 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1877 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
1878 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1879 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
1880 | case $ac_old_set,$ac_new_set in |
1881 | set,) | |
e6364d79 | 1882 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
0710d850 | 1883 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2f1a1aea FCE |
1884 | ac_cache_corrupted=: ;; |
1885 | ,set) | |
e6364d79 | 1886 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
0710d850 | 1887 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2f1a1aea FCE |
1888 | ac_cache_corrupted=: ;; |
1889 | ,);; | |
1890 | *) | |
1891 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
0710d850 DS |
1892 | # differences in whitespace do not lead to failure. |
1893 | ac_old_val_w=`echo x $ac_old_val` | |
1894 | ac_new_val_w=`echo x $ac_new_val` | |
1895 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
e6364d79 | 1896 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
0710d850 DS |
1897 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1898 | ac_cache_corrupted=: | |
1899 | else | |
e6364d79 | 1900 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
0710d850 DS |
1901 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1902 | eval $ac_var=\$ac_old_val | |
1903 | fi | |
e6364d79 | 1904 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
0710d850 | 1905 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
e6364d79 | 1906 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
0710d850 | 1907 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2f1a1aea FCE |
1908 | fi;; |
1909 | esac | |
1910 | # Pass precious variables to config.status. | |
1911 | if test "$ac_new_set" = set; then | |
1912 | case $ac_new_val in | |
0710d850 | 1913 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
1914 | *) ac_arg=$ac_var=$ac_new_val ;; |
1915 | esac | |
1916 | case " $ac_configure_args " in | |
1917 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
e6364d79 | 1918 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
4a3c19da EM |
1919 | esac |
1920 | fi | |
1921 | done | |
1922 | if $ac_cache_corrupted; then | |
e6364d79 | 1923 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 1924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 | 1925 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
0710d850 | 1926 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
e6364d79 MW |
1927 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1928 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1929 | { (exit 1); exit 1; }; } | |
4a3c19da | 1930 | fi |
e6364d79 MW |
1931 | |
1932 | ||
1933 | ||
1934 | ||
1935 | ||
1936 | ||
1937 | ||
1938 | ||
1939 | ||
1940 | ||
1941 | ||
1942 | ||
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
2f1a1aea | 1955 | |
7fbd9d09 FCE |
1956 | ac_ext=c |
1957 | ac_cpp='$CPP $CPPFLAGS' | |
1958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
1961 | |
1962 | ||
1963 | ||
2f1a1aea | 1964 | |
0710d850 | 1965 | am__api_version='1.11' |
10b20266 | 1966 | |
2f1a1aea | 1967 | ac_aux_dir= |
412e1bf7 | 1968 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
e6364d79 MW |
1969 | if test -f "$ac_dir/install-sh"; then |
1970 | ac_aux_dir=$ac_dir | |
1971 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1972 | break | |
1973 | elif test -f "$ac_dir/install.sh"; then | |
1974 | ac_aux_dir=$ac_dir | |
1975 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1976 | break | |
1977 | elif test -f "$ac_dir/shtool"; then | |
1978 | ac_aux_dir=$ac_dir | |
1979 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1980 | break | |
1981 | fi | |
2f1a1aea FCE |
1982 | done |
1983 | if test -z "$ac_aux_dir"; then | |
e6364d79 MW |
1984 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1985 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1986 | { (exit 1); exit 1; }; } | |
2f1a1aea | 1987 | fi |
7fbd9d09 FCE |
1988 | |
1989 | # These three variables are undocumented and unsupported, | |
1990 | # and are intended to be withdrawn in a future Autoconf release. | |
1991 | # They can cause serious problems if a builder's source tree is in a directory | |
1992 | # whose full name contains unusual characters. | |
1993 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1994 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1995 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1996 | ||
2f1a1aea FCE |
1997 | |
1998 | # Find a good install program. We prefer a C program (faster), | |
1999 | # so one script is as good as another. But avoid the broken or | |
2000 | # incompatible versions: | |
2001 | # SysV /etc/install, /usr/sbin/install | |
2002 | # SunOS /usr/etc/install | |
2003 | # IRIX /sbin/install | |
2004 | # AIX /bin/install | |
2005 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2006 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2007 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2008 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2009 | # OS/2's system install, which has a completely different semantic | |
2010 | # ./install, which can be erroneously created by make from ./install.sh. | |
0710d850 | 2011 | # Reject install programs that cannot install multiple files. |
e6364d79 | 2012 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
0710d850 | 2013 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2f1a1aea | 2014 | if test -z "$INSTALL"; then |
e6364d79 | 2015 | if test "${ac_cv_path_install+set}" = set; then |
0710d850 | 2016 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2017 | else |
2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2019 | for as_dir in $PATH | |
2020 | do | |
2021 | IFS=$as_save_IFS | |
2022 | test -z "$as_dir" && as_dir=. | |
e6364d79 MW |
2023 | # Account for people who put trailing slashes in PATH elements. |
2024 | case $as_dir/ in | |
2025 | ./ | .// | /cC/* | \ | |
2f1a1aea | 2026 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
e6364d79 | 2027 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2f1a1aea FCE |
2028 | /usr/ucb/* ) ;; |
2029 | *) | |
2030 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2031 | # Don't use installbsd from OSF since it installs stuff as root | |
2032 | # by default. | |
2033 | for ac_prog in ginstall scoinst install; do | |
2034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2035 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
2036 | if test $ac_prog = install && |
2037 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2038 | # AIX install. It has an incompatible calling convention. | |
2039 | : | |
2040 | elif test $ac_prog = install && | |
2041 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2042 | # program-specific install script used by HP pwplus--don't use. | |
2043 | : | |
2044 | else | |
0710d850 DS |
2045 | rm -rf conftest.one conftest.two conftest.dir |
2046 | echo one > conftest.one | |
2047 | echo two > conftest.two | |
2048 | mkdir conftest.dir | |
2049 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2050 | test -s conftest.one && test -s conftest.two && | |
2051 | test -s conftest.dir/conftest.one && | |
2052 | test -s conftest.dir/conftest.two | |
2053 | then | |
2054 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2055 | break 3 | |
2056 | fi | |
2f1a1aea FCE |
2057 | fi |
2058 | fi | |
2059 | done | |
2060 | done | |
2061 | ;; | |
2062 | esac | |
0710d850 | 2063 | |
e6364d79 | 2064 | done |
7fbd9d09 | 2065 | IFS=$as_save_IFS |
2f1a1aea | 2066 | |
0710d850 | 2067 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2068 | |
2069 | fi | |
2070 | if test "${ac_cv_path_install+set}" = set; then | |
2071 | INSTALL=$ac_cv_path_install | |
2072 | else | |
7fbd9d09 FCE |
2073 | # As a last resort, use the slow shell script. Don't cache a |
2074 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2075 | # break other packages using the cache if that directory is |
7fbd9d09 | 2076 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2077 | INSTALL=$ac_install_sh |
2078 | fi | |
2079 | fi | |
e6364d79 | 2080 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
0710d850 | 2081 | $as_echo "$INSTALL" >&6; } |
2f1a1aea FCE |
2082 | |
2083 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2084 | # It thinks the first close brace ends the variable substitution. | |
2085 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2086 | ||
2087 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2088 | ||
2089 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2090 | ||
e6364d79 | 2091 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
0710d850 | 2092 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2f1a1aea FCE |
2093 | # Just in case |
2094 | sleep 1 | |
2095 | echo timestamp > conftest.file | |
0710d850 DS |
2096 | # Reject unsafe characters in $srcdir or the absolute working directory |
2097 | # name. Accept space and tab only in the latter. | |
2098 | am_lf=' | |
2099 | ' | |
2100 | case `pwd` in | |
2101 | *[\\\"\#\$\&\'\`$am_lf]*) | |
e6364d79 MW |
2102 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 |
2103 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2104 | { (exit 1); exit 1; }; };; | |
0710d850 DS |
2105 | esac |
2106 | case $srcdir in | |
2107 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
e6364d79 MW |
2108 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 |
2109 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2110 | { (exit 1); exit 1; }; };; | |
0710d850 DS |
2111 | esac |
2112 | ||
2f1a1aea FCE |
2113 | # Do `set' in a subshell so we don't clobber the current shell's |
2114 | # arguments. Must try -L first in case configure is actually a | |
2115 | # symlink; some systems play weird games with the mod time of symlinks | |
2116 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2117 | # directory). | |
2118 | if ( | |
0710d850 | 2119 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2f1a1aea FCE |
2120 | if test "$*" = "X"; then |
2121 | # -L didn't work. | |
0710d850 | 2122 | set X `ls -t "$srcdir/configure" conftest.file` |
2f1a1aea FCE |
2123 | fi |
2124 | rm -f conftest.file | |
2125 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2126 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2127 | ||
2128 | # If neither matched, then we have a broken ls. This can happen | |
2129 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2130 | # broken ls alias from the environment. This has actually | |
2131 | # happened. Such a system could not be considered "sane". | |
e6364d79 MW |
2132 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2133 | alias in your environment" >&5 | |
2134 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2135 | alias in your environment" >&2;} | |
2136 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
2137 | fi |
2138 | ||
2139 | test "$2" = conftest.file | |
2140 | ) | |
2141 | then | |
2142 | # Ok. | |
2143 | : | |
2144 | else | |
e6364d79 MW |
2145 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2146 | Check your system clock" >&5 | |
2147 | $as_echo "$as_me: error: newly created file is older than distributed files! | |
2148 | Check your system clock" >&2;} | |
2149 | { (exit 1); exit 1; }; } | |
2f1a1aea | 2150 | fi |
e6364d79 | 2151 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 2152 | $as_echo "yes" >&6; } |
2f1a1aea | 2153 | test "$program_prefix" != NONE && |
7fbd9d09 | 2154 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2155 | # Use a double $ so make ignores it. |
2156 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2157 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
0710d850 | 2158 | # Double any \ or $. |
2f1a1aea | 2159 | # By default was `s,x,x', remove it if useless. |
0710d850 DS |
2160 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2161 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2162 | |
2163 | # expand $ac_aux_dir to an absolute path | |
2164 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2165 | ||
0710d850 DS |
2166 | if test x"${MISSING+set}" != xset; then |
2167 | case $am_aux_dir in | |
2168 | *\ * | *\ *) | |
2169 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2170 | *) | |
2171 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2172 | esac | |
2173 | fi | |
2f1a1aea FCE |
2174 | # Use eval to expand $SHELL |
2175 | if eval "$MISSING --run true"; then | |
2176 | am_missing_run="$MISSING --run " | |
2177 | else | |
2178 | am_missing_run= | |
e6364d79 | 2179 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
0710d850 DS |
2180 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2181 | fi | |
2182 | ||
2183 | if test x"${install_sh}" != xset; then | |
2184 | case $am_aux_dir in | |
2185 | *\ * | *\ *) | |
2186 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2187 | *) | |
2188 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2189 | esac | |
8d9d8fe1 DB |
2190 | fi |
2191 | ||
0710d850 DS |
2192 | # Installed binaries are usually stripped using `strip' when the user |
2193 | # run `make install-strip'. However `strip' might not be the right | |
2194 | # tool to use in cross-compilation environments, therefore Automake | |
2195 | # will honor the `STRIP' environment variable to overrule this program. | |
2196 | if test "$cross_compiling" != no; then | |
2197 | if test -n "$ac_tool_prefix"; then | |
2198 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2199 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6364d79 | 2200 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2201 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2202 | if test "${ac_cv_prog_STRIP+set}" = set; then |
0710d850 DS |
2203 | $as_echo_n "(cached) " >&6 |
2204 | else | |
2205 | if test -n "$STRIP"; then | |
2206 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2207 | else | |
2208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2209 | for as_dir in $PATH | |
2210 | do | |
2211 | IFS=$as_save_IFS | |
2212 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2213 | for ac_exec_ext in '' $ac_executable_extensions; do |
0710d850 DS |
2214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2215 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
e6364d79 | 2216 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2217 | break 2 |
2218 | fi | |
2219 | done | |
e6364d79 | 2220 | done |
0710d850 DS |
2221 | IFS=$as_save_IFS |
2222 | ||
2223 | fi | |
2224 | fi | |
2225 | STRIP=$ac_cv_prog_STRIP | |
2226 | if test -n "$STRIP"; then | |
e6364d79 | 2227 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
0710d850 DS |
2228 | $as_echo "$STRIP" >&6; } |
2229 | else | |
e6364d79 | 2230 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 DS |
2231 | $as_echo "no" >&6; } |
2232 | fi | |
2233 | ||
2234 | ||
2235 | fi | |
2236 | if test -z "$ac_cv_prog_STRIP"; then | |
2237 | ac_ct_STRIP=$STRIP | |
2238 | # Extract the first word of "strip", so it can be a program name with args. | |
2239 | set dummy strip; ac_word=$2 | |
e6364d79 | 2240 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2241 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2242 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
0710d850 DS |
2243 | $as_echo_n "(cached) " >&6 |
2244 | else | |
2245 | if test -n "$ac_ct_STRIP"; then | |
2246 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2247 | else | |
2248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2249 | for as_dir in $PATH | |
2250 | do | |
2251 | IFS=$as_save_IFS | |
2252 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2253 | for ac_exec_ext in '' $ac_executable_extensions; do |
0710d850 DS |
2254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2255 | ac_cv_prog_ac_ct_STRIP="strip" | |
e6364d79 | 2256 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2257 | break 2 |
2258 | fi | |
2259 | done | |
e6364d79 | 2260 | done |
0710d850 DS |
2261 | IFS=$as_save_IFS |
2262 | ||
2263 | fi | |
2264 | fi | |
2265 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2266 | if test -n "$ac_ct_STRIP"; then | |
e6364d79 | 2267 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
0710d850 DS |
2268 | $as_echo "$ac_ct_STRIP" >&6; } |
2269 | else | |
e6364d79 | 2270 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 DS |
2271 | $as_echo "no" >&6; } |
2272 | fi | |
2273 | ||
2274 | if test "x$ac_ct_STRIP" = x; then | |
2275 | STRIP=":" | |
2276 | else | |
2277 | case $cross_compiling:$ac_tool_warned in | |
2278 | yes:) | |
e6364d79 | 2279 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 DS |
2280 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2281 | ac_tool_warned=yes ;; | |
2282 | esac | |
2283 | STRIP=$ac_ct_STRIP | |
2284 | fi | |
2285 | else | |
2286 | STRIP="$ac_cv_prog_STRIP" | |
2287 | fi | |
2288 | ||
2289 | fi | |
2290 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2291 | ||
e6364d79 | 2292 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
0710d850 | 2293 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7fbd9d09 | 2294 | if test -z "$MKDIR_P"; then |
e6364d79 | 2295 | if test "${ac_cv_path_mkdir+set}" = set; then |
0710d850 | 2296 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
2297 | else |
2298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2299 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2300 | do | |
2301 | IFS=$as_save_IFS | |
2302 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2303 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 FCE |
2304 | for ac_exec_ext in '' $ac_executable_extensions; do |
2305 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2306 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2307 | 'mkdir (GNU coreutils) '* | \ | |
2308 | 'mkdir (coreutils) '* | \ | |
2309 | 'mkdir (fileutils) '4.1*) | |
2310 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2311 | break 3;; | |
2312 | esac | |
2313 | done | |
2314 | done | |
e6364d79 | 2315 | done |
7fbd9d09 FCE |
2316 | IFS=$as_save_IFS |
2317 | ||
2318 | fi | |
2319 | ||
2320 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2321 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2322 | else |
7fbd9d09 FCE |
2323 | # As a last resort, use the slow shell script. Don't cache a |
2324 | # value for MKDIR_P within a source directory, because that will | |
2325 | # break other packages using the cache if that directory is | |
2326 | # removed, or if the value is a relative name. | |
e6364d79 | 2327 | test -d ./--version && rmdir ./--version |
7fbd9d09 | 2328 | MKDIR_P="$ac_install_sh -d" |
2f1a1aea FCE |
2329 | fi |
2330 | fi | |
e6364d79 | 2331 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
0710d850 | 2332 | $as_echo "$MKDIR_P" >&6; } |
7fbd9d09 FCE |
2333 | |
2334 | mkdir_p="$MKDIR_P" | |
2335 | case $mkdir_p in | |
2336 | [\\/$]* | ?:[\\/]*) ;; | |
2337 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2338 | esac | |
2f1a1aea FCE |
2339 | |
2340 | for ac_prog in gawk mawk nawk awk | |
2341 | do | |
2342 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2343 | set dummy $ac_prog; ac_word=$2 | |
e6364d79 | 2344 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2345 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2346 | if test "${ac_cv_prog_AWK+set}" = set; then |
0710d850 | 2347 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2348 | else |
2349 | if test -n "$AWK"; then | |
2350 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2351 | else | |
2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | for as_dir in $PATH | |
2354 | do | |
2355 | IFS=$as_save_IFS | |
2356 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2357 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2359 | ac_cv_prog_AWK="$ac_prog" |
e6364d79 | 2360 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2361 | break 2 |
2362 | fi | |
2363 | done | |
e6364d79 | 2364 | done |
7fbd9d09 | 2365 | IFS=$as_save_IFS |
2f1a1aea FCE |
2366 | |
2367 | fi | |
2368 | fi | |
2369 | AWK=$ac_cv_prog_AWK | |
2370 | if test -n "$AWK"; then | |
e6364d79 | 2371 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
0710d850 | 2372 | $as_echo "$AWK" >&6; } |
2f1a1aea | 2373 | else |
e6364d79 | 2374 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2375 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2376 | fi |
2377 | ||
7fbd9d09 | 2378 | |
2f1a1aea FCE |
2379 | test -n "$AWK" && break |
2380 | done | |
2381 | ||
e6364d79 | 2382 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
2383 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2384 | set x ${MAKE-make} | |
2385 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
e6364d79 | 2386 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
0710d850 | 2387 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2388 | else |
2389 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
2390 | SHELL = /bin/sh |
2391 | all: | |
2392 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2393 | _ACEOF | |
2394 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2395 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2396 | *@@@%%%=?*=@@@%%%*) | |
2397 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2398 | *) | |
2399 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2400 | esac | |
2401 | rm -f conftest.make | |
4a3c19da | 2402 | fi |
412e1bf7 | 2403 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
e6364d79 | 2404 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 2405 | $as_echo "yes" >&6; } |
412e1bf7 | 2406 | SET_MAKE= |
4a3c19da | 2407 | else |
e6364d79 | 2408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2409 | $as_echo "no" >&6; } |
412e1bf7 | 2410 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
2411 | fi |
2412 | ||
412e1bf7 FCE |
2413 | rm -rf .tst 2>/dev/null |
2414 | mkdir .tst 2>/dev/null | |
2415 | if test -d .tst; then | |
2416 | am__leading_dot=. | |
4a3c19da | 2417 | else |
412e1bf7 | 2418 | am__leading_dot=_ |
2f1a1aea | 2419 | fi |
412e1bf7 | 2420 | rmdir .tst 2>/dev/null |
2f1a1aea | 2421 | |
412e1bf7 FCE |
2422 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2423 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2424 | # is not polluted with repeated "-I." | |
2425 | am__isrc=' -I$(srcdir)' | |
2426 | # test to see if srcdir already configured | |
2427 | if test -f $srcdir/config.status; then | |
e6364d79 MW |
2428 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2429 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2430 | { (exit 1); exit 1; }; } | |
412e1bf7 | 2431 | fi |
4a3c19da | 2432 | fi |
412e1bf7 FCE |
2433 | |
2434 | # test whether we have cygpath | |
2435 | if test -z "$CYGPATH_W"; then | |
2436 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2437 | CYGPATH_W='cygpath -w' | |
2438 | else | |
2439 | CYGPATH_W=echo | |
2440 | fi | |
2441 | fi | |
2442 | ||
2443 | ||
2444 | # Define the identity of the package. | |
2445 | PACKAGE='systemtap' | |
e36ba31a | 2446 | VERSION='1.2' |
412e1bf7 FCE |
2447 | |
2448 | ||
2449 | cat >>confdefs.h <<_ACEOF | |
2450 | #define PACKAGE "$PACKAGE" | |
2451 | _ACEOF | |
2452 | ||
2453 | ||
2454 | cat >>confdefs.h <<_ACEOF | |
2455 | #define VERSION "$VERSION" | |
2456 | _ACEOF | |
2457 | ||
2458 | # Some tools Automake needs. | |
2459 | ||
2460 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2461 | ||
2462 | ||
2463 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2464 | ||
2465 | ||
0710d850 | 2466 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
31f9baea | 2467 | |
0710d850 DS |
2468 | |
2469 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2470 | ||
2471 | ||
2472 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2f1a1aea | 2473 | |
2f1a1aea FCE |
2474 | # We need awk for the "check" target. The system "awk" is bad on |
2475 | # some platforms. | |
2476 | # Always define AMTAR for backward compatibility. | |
2477 | ||
2478 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2479 | ||
2480 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2481 | ||
2482 | ||
2483 | ||
2484 | ||
2485 | ||
0710d850 | 2486 | |
e6364d79 | 2487 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
0710d850 | 2488 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
7fbd9d09 | 2489 | # Check whether --enable-maintainer-mode was given. |
e6364d79 | 2490 | if test "${enable_maintainer_mode+set}" = set; then |
7fbd9d09 | 2491 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
2492 | else |
2493 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 2494 | fi |
2f1a1aea | 2495 | |
e6364d79 | 2496 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
0710d850 | 2497 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
7fbd9d09 | 2498 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
2499 | MAINTAINER_MODE_TRUE= |
2500 | MAINTAINER_MODE_FALSE='#' | |
2501 | else | |
2502 | MAINTAINER_MODE_TRUE='#' | |
2503 | MAINTAINER_MODE_FALSE= | |
2504 | fi | |
2505 | ||
2506 | MAINT=$MAINTAINER_MODE_TRUE | |
2507 | ||
2508 | ||
2509 | ||
0710d850 | 2510 | # Check whether --enable-silent-rules was given. |
e6364d79 | 2511 | if test "${enable_silent_rules+set}" = set; then |
0710d850 DS |
2512 | enableval=$enable_silent_rules; |
2513 | fi | |
2514 | ||
2515 | case $enable_silent_rules in | |
2516 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2517 | no) AM_DEFAULT_VERBOSITY=1;; | |
2518 | *) AM_DEFAULT_VERBOSITY=0;; | |
2519 | esac | |
2520 | AM_BACKSLASH='\' | |
618a8a63 JS |
2521 | |
2522 | ||
7fbd9d09 FCE |
2523 | mkdir_p="$MKDIR_P" |
2524 | case $mkdir_p in | |
2525 | [\\/$]* | ?:[\\/]*) ;; | |
2526 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2527 | esac | |
2528 | ||
98aab489 | 2529 | |
e6364d79 | 2530 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
0710d850 | 2531 | $as_echo_n "checking whether ln -s works... " >&6; } |
2f1a1aea FCE |
2532 | LN_S=$as_ln_s |
2533 | if test "$LN_S" = "ln -s"; then | |
e6364d79 | 2534 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 2535 | $as_echo "yes" >&6; } |
2f1a1aea | 2536 | else |
e6364d79 | 2537 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
0710d850 | 2538 | $as_echo "no, using $LN_S" >&6; } |
2f1a1aea FCE |
2539 | fi |
2540 | ||
2541 | ac_ext=c | |
2542 | ac_cpp='$CPP $CPPFLAGS' | |
2543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2546 | if test -n "$ac_tool_prefix"; then | |
2547 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2548 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
e6364d79 | 2549 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2550 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2551 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 2552 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2553 | else |
2554 | if test -n "$CC"; then | |
2555 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2556 | else | |
2557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2558 | for as_dir in $PATH | |
2559 | do | |
2560 | IFS=$as_save_IFS | |
2561 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2562 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2564 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
e6364d79 | 2565 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2566 | break 2 |
2567 | fi | |
2568 | done | |
e6364d79 | 2569 | done |
7fbd9d09 | 2570 | IFS=$as_save_IFS |
2f1a1aea FCE |
2571 | |
2572 | fi | |
2573 | fi | |
2574 | CC=$ac_cv_prog_CC | |
2575 | if test -n "$CC"; then | |
e6364d79 | 2576 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 2577 | $as_echo "$CC" >&6; } |
2f1a1aea | 2578 | else |
e6364d79 | 2579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2580 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2581 | fi |
2582 | ||
7fbd9d09 | 2583 | |
2f1a1aea FCE |
2584 | fi |
2585 | if test -z "$ac_cv_prog_CC"; then | |
2586 | ac_ct_CC=$CC | |
2587 | # Extract the first word of "gcc", so it can be a program name with args. | |
2588 | set dummy gcc; ac_word=$2 | |
e6364d79 | 2589 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2590 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2591 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
0710d850 | 2592 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2593 | else |
2594 | if test -n "$ac_ct_CC"; then | |
2595 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2596 | else | |
2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2598 | for as_dir in $PATH | |
2599 | do | |
2600 | IFS=$as_save_IFS | |
2601 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2602 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2604 | ac_cv_prog_ac_ct_CC="gcc" |
e6364d79 | 2605 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2606 | break 2 |
2607 | fi | |
2608 | done | |
e6364d79 | 2609 | done |
7fbd9d09 | 2610 | IFS=$as_save_IFS |
2f1a1aea FCE |
2611 | |
2612 | fi | |
2613 | fi | |
2614 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2615 | if test -n "$ac_ct_CC"; then | |
e6364d79 | 2616 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
0710d850 | 2617 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 2618 | else |
e6364d79 | 2619 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2620 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2621 | fi |
2622 | ||
7fbd9d09 FCE |
2623 | if test "x$ac_ct_CC" = x; then |
2624 | CC="" | |
2625 | else | |
2626 | case $cross_compiling:$ac_tool_warned in | |
2627 | yes:) | |
e6364d79 | 2628 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 2629 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
2630 | ac_tool_warned=yes ;; |
2631 | esac | |
2632 | CC=$ac_ct_CC | |
2633 | fi | |
2f1a1aea FCE |
2634 | else |
2635 | CC="$ac_cv_prog_CC" | |
2636 | fi | |
2637 | ||
2638 | if test -z "$CC"; then | |
7fbd9d09 FCE |
2639 | if test -n "$ac_tool_prefix"; then |
2640 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 2641 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
e6364d79 | 2642 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2643 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2644 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 2645 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2646 | else |
2647 | if test -n "$CC"; then | |
2648 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2649 | else | |
2650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2651 | for as_dir in $PATH | |
2652 | do | |
2653 | IFS=$as_save_IFS | |
2654 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2655 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2657 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
e6364d79 | 2658 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2659 | break 2 |
2660 | fi | |
2661 | done | |
e6364d79 | 2662 | done |
7fbd9d09 | 2663 | IFS=$as_save_IFS |
2f1a1aea FCE |
2664 | |
2665 | fi | |
2666 | fi | |
2667 | CC=$ac_cv_prog_CC | |
2668 | if test -n "$CC"; then | |
e6364d79 | 2669 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 2670 | $as_echo "$CC" >&6; } |
818ba2bc | 2671 | else |
e6364d79 | 2672 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2673 | $as_echo "no" >&6; } |
818ba2bc MW |
2674 | fi |
2675 | ||
818ba2bc | 2676 | |
7fbd9d09 | 2677 | fi |
2f1a1aea FCE |
2678 | fi |
2679 | if test -z "$CC"; then | |
2680 | # Extract the first word of "cc", so it can be a program name with args. | |
2681 | set dummy cc; ac_word=$2 | |
e6364d79 | 2682 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2683 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2684 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 2685 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2686 | else |
2687 | if test -n "$CC"; then | |
2688 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2689 | else | |
2690 | ac_prog_rejected=no | |
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2692 | for as_dir in $PATH | |
2693 | do | |
2694 | IFS=$as_save_IFS | |
2695 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2696 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
2698 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2699 | ac_prog_rejected=yes | |
2700 | continue | |
2701 | fi | |
2702 | ac_cv_prog_CC="cc" | |
e6364d79 | 2703 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2704 | break 2 |
2705 | fi | |
2706 | done | |
e6364d79 | 2707 | done |
7fbd9d09 | 2708 | IFS=$as_save_IFS |
2f1a1aea FCE |
2709 | |
2710 | if test $ac_prog_rejected = yes; then | |
2711 | # We found a bogon in the path, so make sure we never use it. | |
2712 | set dummy $ac_cv_prog_CC | |
2713 | shift | |
2714 | if test $# != 0; then | |
2715 | # We chose a different compiler from the bogus one. | |
2716 | # However, it has the same basename, so the bogon will be chosen | |
2717 | # first if we set CC to just the basename; use the full file name. | |
2718 | shift | |
2719 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2720 | fi | |
2721 | fi | |
2722 | fi | |
2723 | fi | |
2724 | CC=$ac_cv_prog_CC | |
2725 | if test -n "$CC"; then | |
e6364d79 | 2726 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 2727 | $as_echo "$CC" >&6; } |
2f1a1aea | 2728 | else |
e6364d79 | 2729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2730 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2731 | fi |
2732 | ||
7fbd9d09 | 2733 | |
2f1a1aea FCE |
2734 | fi |
2735 | if test -z "$CC"; then | |
2736 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 2737 | for ac_prog in cl.exe |
2f1a1aea FCE |
2738 | do |
2739 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2740 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e6364d79 | 2741 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2742 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2743 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 2744 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2745 | else |
2746 | if test -n "$CC"; then | |
2747 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2748 | else | |
2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2750 | for as_dir in $PATH | |
2751 | do | |
2752 | IFS=$as_save_IFS | |
2753 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2756 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
e6364d79 | 2757 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2758 | break 2 |
2759 | fi | |
2760 | done | |
e6364d79 | 2761 | done |
7fbd9d09 | 2762 | IFS=$as_save_IFS |
2f1a1aea FCE |
2763 | |
2764 | fi | |
2765 | fi | |
2766 | CC=$ac_cv_prog_CC | |
2767 | if test -n "$CC"; then | |
e6364d79 | 2768 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 2769 | $as_echo "$CC" >&6; } |
2f1a1aea | 2770 | else |
e6364d79 | 2771 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2772 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2773 | fi |
2774 | ||
7fbd9d09 | 2775 | |
2f1a1aea FCE |
2776 | test -n "$CC" && break |
2777 | done | |
2778 | fi | |
2779 | if test -z "$CC"; then | |
2780 | ac_ct_CC=$CC | |
7fbd9d09 | 2781 | for ac_prog in cl.exe |
2f1a1aea FCE |
2782 | do |
2783 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2784 | set dummy $ac_prog; ac_word=$2 | |
e6364d79 | 2785 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 2786 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 2787 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
0710d850 | 2788 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2789 | else |
2790 | if test -n "$ac_ct_CC"; then | |
2791 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2792 | else | |
2793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2794 | for as_dir in $PATH | |
2795 | do | |
2796 | IFS=$as_save_IFS | |
2797 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 2798 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2800 | ac_cv_prog_ac_ct_CC="$ac_prog" |
e6364d79 | 2801 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2802 | break 2 |
2803 | fi | |
2804 | done | |
e6364d79 | 2805 | done |
7fbd9d09 | 2806 | IFS=$as_save_IFS |
2f1a1aea FCE |
2807 | |
2808 | fi | |
2809 | fi | |
2810 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2811 | if test -n "$ac_ct_CC"; then | |
e6364d79 | 2812 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
0710d850 | 2813 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 2814 | else |
e6364d79 | 2815 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 2816 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2817 | fi |
2818 | ||
7fbd9d09 | 2819 | |
2f1a1aea FCE |
2820 | test -n "$ac_ct_CC" && break |
2821 | done | |
2822 | ||
7fbd9d09 FCE |
2823 | if test "x$ac_ct_CC" = x; then |
2824 | CC="" | |
2825 | else | |
2826 | case $cross_compiling:$ac_tool_warned in | |
2827 | yes:) | |
e6364d79 | 2828 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 2829 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
2830 | ac_tool_warned=yes ;; |
2831 | esac | |
2832 | CC=$ac_ct_CC | |
2833 | fi | |
2f1a1aea FCE |
2834 | fi |
2835 | ||
2836 | fi | |
2837 | ||
2838 | ||
e6364d79 | 2839 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 2840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
2841 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2842 | See \`config.log' for more details." >&5 | |
2843 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2844 | See \`config.log' for more details." >&2;} | |
2845 | { (exit 1); exit 1; }; }; } | |
2f1a1aea FCE |
2846 | |
2847 | # Provide some information about the compiler. | |
e6364d79 | 2848 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
0710d850 DS |
2849 | set X $ac_compile |
2850 | ac_compiler=$2 | |
e6364d79 | 2851 | { (ac_try="$ac_compiler --version >&5" |
412e1bf7 FCE |
2852 | case "(($ac_try" in |
2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2854 | *) ac_try_echo=$ac_try;; | |
2855 | esac | |
e6364d79 MW |
2856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2857 | $as_echo "$ac_try_echo") >&5 | |
2858 | (eval "$ac_compiler --version >&5") 2>&5 | |
412e1bf7 | 2859 | ac_status=$? |
e6364d79 MW |
2860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2861 | (exit $ac_status); } | |
2862 | { (ac_try="$ac_compiler -v >&5" | |
2863 | case "(($ac_try" in | |
2864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2865 | *) ac_try_echo=$ac_try;; | |
2866 | esac | |
2867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2868 | $as_echo "$ac_try_echo") >&5 | |
2869 | (eval "$ac_compiler -v >&5") 2>&5 | |
2870 | ac_status=$? | |
2871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2872 | (exit $ac_status); } | |
2873 | { (ac_try="$ac_compiler -V >&5" | |
2874 | case "(($ac_try" in | |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2876 | *) ac_try_echo=$ac_try;; | |
2877 | esac | |
2878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2879 | $as_echo "$ac_try_echo") >&5 | |
2880 | (eval "$ac_compiler -V >&5") 2>&5 | |
2881 | ac_status=$? | |
2882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2883 | (exit $ac_status); } | |
2f1a1aea | 2884 | |
e6364d79 MW |
2885 | cat >conftest.$ac_ext <<_ACEOF |
2886 | /* confdefs.h. */ | |
2887 | _ACEOF | |
2888 | cat confdefs.h >>conftest.$ac_ext | |
2889 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 2890 | /* end confdefs.h. */ |
412e1bf7 | 2891 | |
2f1a1aea FCE |
2892 | int |
2893 | main () | |
2894 | { | |
2895 | ||
2896 | ; | |
2897 | return 0; | |
2898 | } | |
2899 | _ACEOF | |
2900 | ac_clean_files_save=$ac_clean_files | |
0710d850 | 2901 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
2902 | # Try to create an executable without -o first, disregard a.out. |
2903 | # It will help us diagnose broken compilers, and finding out an intuition | |
2904 | # of exeext. | |
e6364d79 MW |
2905 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2906 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
0710d850 DS |
2907 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2908 | ||
2909 | # The possible output files: | |
2910 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2911 | ||
7fbd9d09 FCE |
2912 | ac_rmfiles= |
2913 | for ac_file in $ac_files | |
2914 | do | |
2915 | case $ac_file in | |
0710d850 | 2916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
2917 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2918 | esac | |
2919 | done | |
2920 | rm -f $ac_rmfiles | |
2921 | ||
e6364d79 | 2922 | if { (ac_try="$ac_link_default" |
7fbd9d09 FCE |
2923 | case "(($ac_try" in |
2924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2925 | *) ac_try_echo=$ac_try;; | |
2926 | esac | |
e6364d79 MW |
2927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2928 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2929 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 2930 | ac_status=$? |
e6364d79 MW |
2931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2932 | (exit $ac_status); }; then | |
7fbd9d09 FCE |
2933 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2934 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2935 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2936 | # so that the user can short-circuit this test for compilers unknown to | |
2937 | # Autoconf. | |
2938 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
2939 | do |
2940 | test -f "$ac_file" || continue | |
2941 | case $ac_file in | |
0710d850 | 2942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
2943 | ;; |
2944 | [ab].out ) | |
2945 | # We found the default executable, but exeext='' is most | |
2946 | # certainly right. | |
2947 | break;; | |
2948 | *.* ) | |
e6364d79 | 2949 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
2950 | then :; else |
2951 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2952 | fi | |
2953 | # We set ac_cv_exeext here because the later test for it is not | |
2954 | # safe: cross compilers may not add the suffix if given an `-o' | |
2955 | # argument, so we may need to know it at that point already. | |
2956 | # Even if this section looks crufty: it has the advantage of | |
2957 | # actually working. | |
2f1a1aea FCE |
2958 | break;; |
2959 | * ) | |
2960 | break;; | |
2961 | esac | |
2962 | done | |
7fbd9d09 FCE |
2963 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2964 | ||
2f1a1aea | 2965 | else |
7fbd9d09 FCE |
2966 | ac_file='' |
2967 | fi | |
e6364d79 MW |
2968 | |
2969 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2970 | $as_echo "$ac_file" >&6; } | |
2971 | if test -z "$ac_file"; then | |
2972 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
2974 | ||
e6364d79 | 2975 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 2976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
2977 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
2978 | See \`config.log' for more details." >&5 | |
2979 | $as_echo "$as_me: error: C compiler cannot create executables | |
2980 | See \`config.log' for more details." >&2;} | |
2981 | { (exit 77); exit 77; }; }; } | |
2f1a1aea | 2982 | fi |
e6364d79 | 2983 | |
2f1a1aea | 2984 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 2985 | |
e6364d79 MW |
2986 | # Check that the compiler produces executables we can run. If not, either |
2987 | # the compiler is broken, or we cross compile. | |
2988 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2989 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2990 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2991 | # If not cross compiling, check that we can run a simple program. | |
2992 | if test "$cross_compiling" != yes; then | |
2993 | if { ac_try='./$ac_file' | |
2994 | { (case "(($ac_try" in | |
2995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2996 | *) ac_try_echo=$ac_try;; | |
2997 | esac | |
2998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2999 | $as_echo "$ac_try_echo") >&5 | |
3000 | (eval "$ac_try") 2>&5 | |
3001 | ac_status=$? | |
3002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3003 | (exit $ac_status); }; }; then | |
3004 | cross_compiling=no | |
3005 | else | |
3006 | if test "$cross_compiling" = maybe; then | |
3007 | cross_compiling=yes | |
3008 | else | |
3009 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3011 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3012 | If you meant to cross compile, use \`--host'. | |
3013 | See \`config.log' for more details." >&5 | |
3014 | $as_echo "$as_me: error: cannot run C compiled programs. | |
3015 | If you meant to cross compile, use \`--host'. | |
3016 | See \`config.log' for more details." >&2;} | |
3017 | { (exit 1); exit 1; }; }; } | |
3018 | fi | |
3019 | fi | |
3020 | fi | |
3021 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3022 | $as_echo "yes" >&6; } | |
3023 | ||
0710d850 | 3024 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 3025 | ac_clean_files=$ac_clean_files_save |
e6364d79 MW |
3026 | # Check that the compiler produces executables we can run. If not, either |
3027 | # the compiler is broken, or we cross compile. | |
3028 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3029 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3030 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3031 | $as_echo "$cross_compiling" >&6; } | |
3032 | ||
3033 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
0710d850 | 3034 | $as_echo_n "checking for suffix of executables... " >&6; } |
e6364d79 | 3035 | if { (ac_try="$ac_link" |
7fbd9d09 FCE |
3036 | case "(($ac_try" in |
3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3038 | *) ac_try_echo=$ac_try;; | |
3039 | esac | |
e6364d79 MW |
3040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3041 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3042 | (eval "$ac_link") 2>&5 |
2f1a1aea | 3043 | ac_status=$? |
e6364d79 MW |
3044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3045 | (exit $ac_status); }; then | |
2f1a1aea FCE |
3046 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3047 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3048 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3049 | # `rm'. | |
3050 | for ac_file in conftest.exe conftest conftest.*; do | |
3051 | test -f "$ac_file" || continue | |
3052 | case $ac_file in | |
0710d850 | 3053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 3054 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
3055 | break;; |
3056 | * ) break;; | |
3057 | esac | |
3058 | done | |
3059 | else | |
e6364d79 | 3060 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 3061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
3062 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3063 | See \`config.log' for more details." >&5 | |
3064 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3065 | See \`config.log' for more details." >&2;} | |
3066 | { (exit 1); exit 1; }; }; } | |
2f1a1aea | 3067 | fi |
e6364d79 MW |
3068 | |
3069 | rm -f conftest$ac_cv_exeext | |
3070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
0710d850 | 3071 | $as_echo "$ac_cv_exeext" >&6; } |
2f1a1aea FCE |
3072 | |
3073 | rm -f conftest.$ac_ext | |
3074 | EXEEXT=$ac_cv_exeext | |
3075 | ac_exeext=$EXEEXT | |
e6364d79 | 3076 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
0710d850 | 3077 | $as_echo_n "checking for suffix of object files... " >&6; } |
e6364d79 | 3078 | if test "${ac_cv_objext+set}" = set; then |
0710d850 | 3079 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3080 | else |
e6364d79 MW |
3081 | cat >conftest.$ac_ext <<_ACEOF |
3082 | /* confdefs.h. */ | |
3083 | _ACEOF | |
3084 | cat confdefs.h >>conftest.$ac_ext | |
3085 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3086 | /* end confdefs.h. */ |
3087 | ||
3088 | int | |
3089 | main () | |
3090 | { | |
3091 | ||
3092 | ; | |
3093 | return 0; | |
3094 | } | |
3095 | _ACEOF | |
3096 | rm -f conftest.o conftest.obj | |
e6364d79 | 3097 | if { (ac_try="$ac_compile" |
7fbd9d09 FCE |
3098 | case "(($ac_try" in |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
3101 | esac | |
e6364d79 MW |
3102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3103 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3104 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3105 | ac_status=$? |
e6364d79 MW |
3106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3107 | (exit $ac_status); }; then | |
7fbd9d09 FCE |
3108 | for ac_file in conftest.o conftest.obj conftest.*; do |
3109 | test -f "$ac_file" || continue; | |
2f1a1aea | 3110 | case $ac_file in |
0710d850 | 3111 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3112 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3113 | break;; | |
3114 | esac | |
3115 | done | |
3116 | else | |
0710d850 | 3117 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
3119 | ||
e6364d79 | 3120 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 3121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
3122 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3123 | See \`config.log' for more details." >&5 | |
3124 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3125 | See \`config.log' for more details." >&2;} | |
3126 | { (exit 1); exit 1; }; }; } | |
2f1a1aea | 3127 | fi |
e6364d79 | 3128 | |
2f1a1aea FCE |
3129 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3130 | fi | |
e6364d79 | 3131 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
0710d850 | 3132 | $as_echo "$ac_cv_objext" >&6; } |
2f1a1aea FCE |
3133 | OBJEXT=$ac_cv_objext |
3134 | ac_objext=$OBJEXT | |
e6364d79 | 3135 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 3136 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
e6364d79 | 3137 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
0710d850 | 3138 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3139 | else |
e6364d79 MW |
3140 | cat >conftest.$ac_ext <<_ACEOF |
3141 | /* confdefs.h. */ | |
3142 | _ACEOF | |
3143 | cat confdefs.h >>conftest.$ac_ext | |
3144 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3145 | /* end confdefs.h. */ |
3146 | ||
3147 | int | |
3148 | main () | |
3149 | { | |
3150 | #ifndef __GNUC__ | |
3151 | choke me | |
3152 | #endif | |
3153 | ||
3154 | ; | |
3155 | return 0; | |
3156 | } | |
3157 | _ACEOF | |
e6364d79 MW |
3158 | rm -f conftest.$ac_objext |
3159 | if { (ac_try="$ac_compile" | |
3160 | case "(($ac_try" in | |
3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3162 | *) ac_try_echo=$ac_try;; | |
3163 | esac | |
3164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3165 | $as_echo "$ac_try_echo") >&5 | |
3166 | (eval "$ac_compile") 2>conftest.er1 | |
3167 | ac_status=$? | |
3168 | grep -v '^ *+' conftest.er1 >conftest.err | |
3169 | rm -f conftest.er1 | |
3170 | cat conftest.err >&5 | |
3171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3172 | (exit $ac_status); } && { | |
3173 | test -z "$ac_c_werror_flag" || | |
3174 | test ! -s conftest.err | |
3175 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3176 | ac_compiler_gnu=yes |
3177 | else | |
e6364d79 MW |
3178 | $as_echo "$as_me: failed program was:" >&5 |
3179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3180 | ||
3181 | ac_compiler_gnu=no | |
2f1a1aea | 3182 | fi |
e6364d79 | 3183 | |
7fbd9d09 | 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3185 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3186 | ||
3187 | fi | |
e6364d79 | 3188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
3189 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3190 | if test $ac_compiler_gnu = yes; then | |
3191 | GCC=yes | |
3192 | else | |
3193 | GCC= | |
3194 | fi | |
2f1a1aea FCE |
3195 | ac_test_CFLAGS=${CFLAGS+set} |
3196 | ac_save_CFLAGS=$CFLAGS | |
e6364d79 | 3197 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
0710d850 | 3198 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
e6364d79 | 3199 | if test "${ac_cv_prog_cc_g+set}" = set; then |
0710d850 | 3200 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3201 | else |
7fbd9d09 FCE |
3202 | ac_save_c_werror_flag=$ac_c_werror_flag |
3203 | ac_c_werror_flag=yes | |
3204 | ac_cv_prog_cc_g=no | |
3205 | CFLAGS="-g" | |
e6364d79 MW |
3206 | cat >conftest.$ac_ext <<_ACEOF |
3207 | /* confdefs.h. */ | |
3208 | _ACEOF | |
3209 | cat confdefs.h >>conftest.$ac_ext | |
3210 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3211 | /* end confdefs.h. */ |
3212 | ||
3213 | int | |
3214 | main () | |
3215 | { | |
3216 | ||
3217 | ; | |
3218 | return 0; | |
3219 | } | |
3220 | _ACEOF | |
e6364d79 MW |
3221 | rm -f conftest.$ac_objext |
3222 | if { (ac_try="$ac_compile" | |
3223 | case "(($ac_try" in | |
3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3225 | *) ac_try_echo=$ac_try;; | |
3226 | esac | |
3227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3228 | $as_echo "$ac_try_echo") >&5 | |
3229 | (eval "$ac_compile") 2>conftest.er1 | |
3230 | ac_status=$? | |
3231 | grep -v '^ *+' conftest.er1 >conftest.err | |
3232 | rm -f conftest.er1 | |
3233 | cat conftest.err >&5 | |
3234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3235 | (exit $ac_status); } && { | |
3236 | test -z "$ac_c_werror_flag" || | |
3237 | test ! -s conftest.err | |
3238 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 FCE |
3239 | ac_cv_prog_cc_g=yes |
3240 | else | |
e6364d79 MW |
3241 | $as_echo "$as_me: failed program was:" >&5 |
3242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3243 | ||
3244 | CFLAGS="" | |
3245 | cat >conftest.$ac_ext <<_ACEOF | |
3246 | /* confdefs.h. */ | |
3247 | _ACEOF | |
3248 | cat confdefs.h >>conftest.$ac_ext | |
3249 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
3250 | /* end confdefs.h. */ |
3251 | ||
3252 | int | |
3253 | main () | |
3254 | { | |
3255 | ||
3256 | ; | |
3257 | return 0; | |
3258 | } | |
3259 | _ACEOF | |
e6364d79 MW |
3260 | rm -f conftest.$ac_objext |
3261 | if { (ac_try="$ac_compile" | |
3262 | case "(($ac_try" in | |
3263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3264 | *) ac_try_echo=$ac_try;; | |
3265 | esac | |
3266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3267 | $as_echo "$ac_try_echo") >&5 | |
3268 | (eval "$ac_compile") 2>conftest.er1 | |
3269 | ac_status=$? | |
3270 | grep -v '^ *+' conftest.er1 >conftest.err | |
3271 | rm -f conftest.er1 | |
3272 | cat conftest.err >&5 | |
3273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3274 | (exit $ac_status); } && { | |
3275 | test -z "$ac_c_werror_flag" || | |
3276 | test ! -s conftest.err | |
3277 | } && test -s conftest.$ac_objext; then | |
3278 | : | |
4b5627b1 | 3279 | else |
e6364d79 MW |
3280 | $as_echo "$as_me: failed program was:" >&5 |
3281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3282 | ||
3283 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 3284 | CFLAGS="-g" |
e6364d79 MW |
3285 | cat >conftest.$ac_ext <<_ACEOF |
3286 | /* confdefs.h. */ | |
3287 | _ACEOF | |
3288 | cat confdefs.h >>conftest.$ac_ext | |
3289 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
3290 | /* end confdefs.h. */ |
3291 | ||
3292 | int | |
3293 | main () | |
3294 | { | |
3295 | ||
3296 | ; | |
3297 | return 0; | |
3298 | } | |
3299 | _ACEOF | |
e6364d79 MW |
3300 | rm -f conftest.$ac_objext |
3301 | if { (ac_try="$ac_compile" | |
3302 | case "(($ac_try" in | |
3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3304 | *) ac_try_echo=$ac_try;; | |
3305 | esac | |
3306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3307 | $as_echo "$ac_try_echo") >&5 | |
3308 | (eval "$ac_compile") 2>conftest.er1 | |
3309 | ac_status=$? | |
3310 | grep -v '^ *+' conftest.er1 >conftest.err | |
3311 | rm -f conftest.er1 | |
3312 | cat conftest.err >&5 | |
3313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3314 | (exit $ac_status); } && { | |
3315 | test -z "$ac_c_werror_flag" || | |
3316 | test ! -s conftest.err | |
3317 | } && test -s conftest.$ac_objext; then | |
2f1a1aea | 3318 | ac_cv_prog_cc_g=yes |
e6364d79 MW |
3319 | else |
3320 | $as_echo "$as_me: failed program was:" >&5 | |
3321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3322 | ||
3323 | ||
7fbd9d09 | 3324 | fi |
e6364d79 | 3325 | |
7fbd9d09 | 3326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 3327 | fi |
e6364d79 | 3328 | |
7fbd9d09 FCE |
3329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3330 | fi | |
e6364d79 | 3331 | |
7fbd9d09 FCE |
3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3333 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3334 | fi |
e6364d79 | 3335 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 3336 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2f1a1aea FCE |
3337 | if test "$ac_test_CFLAGS" = set; then |
3338 | CFLAGS=$ac_save_CFLAGS | |
3339 | elif test $ac_cv_prog_cc_g = yes; then | |
3340 | if test "$GCC" = yes; then | |
3341 | CFLAGS="-g -O2" | |
3342 | else | |
3343 | CFLAGS="-g" | |
3344 | fi | |
3345 | else | |
3346 | if test "$GCC" = yes; then | |
3347 | CFLAGS="-O2" | |
3348 | else | |
3349 | CFLAGS= | |
3350 | fi | |
3351 | fi | |
e6364d79 | 3352 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 3353 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
e6364d79 | 3354 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
0710d850 | 3355 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3356 | else |
7fbd9d09 | 3357 | ac_cv_prog_cc_c89=no |
2f1a1aea | 3358 | ac_save_CC=$CC |
e6364d79 MW |
3359 | cat >conftest.$ac_ext <<_ACEOF |
3360 | /* confdefs.h. */ | |
3361 | _ACEOF | |
3362 | cat confdefs.h >>conftest.$ac_ext | |
3363 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3364 | /* end confdefs.h. */ |
3365 | #include <stdarg.h> | |
3366 | #include <stdio.h> | |
3367 | #include <sys/types.h> | |
3368 | #include <sys/stat.h> | |
3369 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3370 | struct buf { int x; }; | |
3371 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3372 | static char *e (p, i) | |
3373 | char **p; | |
3374 | int i; | |
3375 | { | |
3376 | return p[i]; | |
3377 | } | |
3378 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3379 | { | |
3380 | char *s; | |
3381 | va_list v; | |
3382 | va_start (v,p); | |
3383 | s = g (p, va_arg (v,int)); | |
3384 | va_end (v); | |
3385 | return s; | |
3386 | } | |
3387 | ||
3388 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3389 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3390 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 3391 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3392 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3393 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 3394 | that's true only with -std. */ |
2f1a1aea FCE |
3395 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3396 | ||
7fbd9d09 FCE |
3397 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3398 | inside strings and character constants. */ | |
3399 | #define FOO(x) 'x' | |
3400 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3401 | ||
2f1a1aea FCE |
3402 | int test (int i, double x); |
3403 | struct s1 {int (*f) (int a);}; | |
3404 | struct s2 {int (*f) (double a);}; | |
3405 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3406 | int argc; | |
3407 | char **argv; | |
3408 | int | |
3409 | main () | |
3410 | { | |
3411 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3412 | ; | |
3413 | return 0; | |
3414 | } | |
3415 | _ACEOF | |
7fbd9d09 FCE |
3416 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3417 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3418 | do |
3419 | CC="$ac_save_CC $ac_arg" | |
e6364d79 MW |
3420 | rm -f conftest.$ac_objext |
3421 | if { (ac_try="$ac_compile" | |
3422 | case "(($ac_try" in | |
3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3424 | *) ac_try_echo=$ac_try;; | |
3425 | esac | |
3426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3427 | $as_echo "$ac_try_echo") >&5 | |
3428 | (eval "$ac_compile") 2>conftest.er1 | |
3429 | ac_status=$? | |
3430 | grep -v '^ *+' conftest.er1 >conftest.err | |
3431 | rm -f conftest.er1 | |
3432 | cat conftest.err >&5 | |
3433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3434 | (exit $ac_status); } && { | |
3435 | test -z "$ac_c_werror_flag" || | |
3436 | test ! -s conftest.err | |
3437 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 | 3438 | ac_cv_prog_cc_c89=$ac_arg |
e6364d79 MW |
3439 | else |
3440 | $as_echo "$as_me: failed program was:" >&5 | |
3441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3442 | ||
3443 | ||
2f1a1aea | 3444 | fi |
e6364d79 | 3445 | |
7fbd9d09 FCE |
3446 | rm -f core conftest.err conftest.$ac_objext |
3447 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3448 | done |
7fbd9d09 | 3449 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3450 | CC=$ac_save_CC |
3451 | ||
3452 | fi | |
7fbd9d09 FCE |
3453 | # AC_CACHE_VAL |
3454 | case "x$ac_cv_prog_cc_c89" in | |
3455 | x) | |
e6364d79 | 3456 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
0710d850 | 3457 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 3458 | xno) |
e6364d79 | 3459 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
0710d850 | 3460 | $as_echo "unsupported" >&6; } ;; |
2f1a1aea | 3461 | *) |
7fbd9d09 | 3462 | CC="$CC $ac_cv_prog_cc_c89" |
e6364d79 | 3463 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 3464 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2f1a1aea FCE |
3465 | esac |
3466 | ||
818ba2bc | 3467 | |
818ba2bc MW |
3468 | ac_ext=c |
3469 | ac_cpp='$CPP $CPPFLAGS' | |
3470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3473 | DEPDIR="${am__leading_dot}deps" | |
3474 | ||
7fbd9d09 | 3475 | ac_config_commands="$ac_config_commands depfiles" |
818ba2bc MW |
3476 | |
3477 | ||
3478 | am_make=${MAKE-make} | |
3479 | cat > confinc << 'END' | |
3480 | am__doit: | |
0710d850 | 3481 | @echo this is the am__doit target |
8ae7a94a FCE |
3482 | .PHONY: am__doit |
3483 | END | |
3484 | # If we don't find an include directive, just comment out the code. | |
e6364d79 | 3485 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
0710d850 | 3486 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
8ae7a94a FCE |
3487 | am__include="#" |
3488 | am__quote= | |
3489 | _am_result=none | |
3490 | # First try GNU make style include. | |
3491 | echo "include confinc" > confmf | |
0710d850 DS |
3492 | # Ignore all kinds of additional output from `make'. |
3493 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3494 | *the\ am__doit\ target*) | |
3495 | am__include=include | |
3496 | am__quote= | |
3497 | _am_result=GNU | |
3498 | ;; | |
3499 | esac | |
8ae7a94a FCE |
3500 | # Now try BSD make style include. |
3501 | if test "$am__include" = "#"; then | |
3502 | echo '.include "confinc"' > confmf | |
0710d850 DS |
3503 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3504 | *the\ am__doit\ target*) | |
3505 | am__include=.include | |
3506 | am__quote="\"" | |
3507 | _am_result=BSD | |
3508 | ;; | |
3509 | esac | |
8ae7a94a | 3510 | fi |
2f1a1aea | 3511 | |
8ae7a94a | 3512 | |
e6364d79 | 3513 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
0710d850 | 3514 | $as_echo "$_am_result" >&6; } |
2f1a1aea FCE |
3515 | rm -f confinc confmf |
3516 | ||
7fbd9d09 | 3517 | # Check whether --enable-dependency-tracking was given. |
e6364d79 | 3518 | if test "${enable_dependency_tracking+set}" = set; then |
7fbd9d09 FCE |
3519 | enableval=$enable_dependency_tracking; |
3520 | fi | |
2f1a1aea | 3521 | |
2f1a1aea FCE |
3522 | if test "x$enable_dependency_tracking" != xno; then |
3523 | am_depcomp="$ac_aux_dir/depcomp" | |
3524 | AMDEPBACKSLASH='\' | |
3525 | fi | |
7fbd9d09 | 3526 | if test "x$enable_dependency_tracking" != xno; then |
2f1a1aea FCE |
3527 | AMDEP_TRUE= |
3528 | AMDEP_FALSE='#' | |
3529 | else | |
3530 | AMDEP_TRUE='#' | |
3531 | AMDEP_FALSE= | |
3532 | fi | |
3533 | ||
3534 | ||
3535 | ||
2f1a1aea FCE |
3536 | depcc="$CC" am_compiler_list= |
3537 | ||
e6364d79 | 3538 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
0710d850 | 3539 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
e6364d79 | 3540 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
0710d850 | 3541 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3542 | else |
3543 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3544 | # We make a subdir and do the tests there. Otherwise we can end up | |
3545 | # making bogus files that we don't know about and never remove. For | |
3546 | # instance it was reported that on HP-UX the gcc test will end up | |
3547 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3548 | # in D'. | |
3549 | mkdir conftest.dir | |
3550 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3551 | # using a relative directory. | |
3552 | cp "$am_depcomp" conftest.dir | |
3553 | cd conftest.dir | |
3554 | # We will build objects and dependencies in a subdirectory because | |
3555 | # it helps to detect inapplicable dependency modes. For instance | |
3556 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3557 | # side effect of compilation, but ICC will put the dependencies in | |
3558 | # the current directory while Tru64 will put them in the object | |
3559 | # directory. | |
3560 | mkdir sub | |
3561 | ||
3562 | am_cv_CC_dependencies_compiler_type=none | |
3563 | if test "$am_compiler_list" = ""; then | |
3564 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3565 | fi | |
0710d850 DS |
3566 | am__universal=false |
3567 | case " $depcc " in #( | |
3568 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3569 | esac | |
3570 | ||
2f1a1aea FCE |
3571 | for depmode in $am_compiler_list; do |
3572 | # Setup a source with many dependencies, because some compilers | |
3573 | # like to wrap large dependency lists on column 80 (with \), and | |
3574 | # we should not choose a depcomp mode which is confused by this. | |
3575 | # | |
3576 | # We need to recreate these files for each test, as the compiler may | |
3577 | # overwrite some of them when testing with obscure command lines. | |
3578 | # This happens at least with the AIX C compiler. | |
3579 | : > sub/conftest.c | |
3580 | for i in 1 2 3 4 5 6; do | |
3581 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3582 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3583 | # Solaris 8's {/usr,}/bin/sh. | |
3584 | touch sub/conftst$i.h | |
3585 | done | |
3586 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3587 | ||
0710d850 DS |
3588 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3589 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3590 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3591 | # versions had trouble with output in subdirs | |
3592 | am__obj=sub/conftest.${OBJEXT-o} | |
3593 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 3594 | case $depmode in |
0710d850 DS |
3595 | gcc) |
3596 | # This depmode causes a compiler race in universal mode. | |
3597 | test "$am__universal" = false || continue | |
3598 | ;; | |
2f1a1aea FCE |
3599 | nosideeffect) |
3600 | # after this tag, mechanisms are not by side-effect, so they'll | |
3601 | # only be used when explicitly requested | |
3602 | if test "x$enable_dependency_tracking" = xyes; then | |
3603 | continue | |
3604 | else | |
3605 | break | |
3606 | fi | |
3607 | ;; | |
0710d850 DS |
3608 | msvisualcpp | msvcmsys) |
3609 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3610 | # not run yet. These depmodes are late enough in the game, and | |
3611 | # so weak that their functioning should not be impacted. | |
3612 | am__obj=conftest.${OBJEXT-o} | |
3613 | am__minus_obj= | |
3614 | ;; | |
2f1a1aea FCE |
3615 | none) break ;; |
3616 | esac | |
2f1a1aea | 3617 | if depmode=$depmode \ |
0710d850 | 3618 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 3619 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 3620 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 3621 | >/dev/null 2>conftest.err && |
7fbd9d09 | 3622 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 3623 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 3624 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3625 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3626 | # icc doesn't choke on unknown options, it will just issue warnings | |
3627 | # or remarks (even with -Werror). So we grep stderr for any message | |
3628 | # that says an option was ignored or not supported. | |
3629 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3630 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3631 | # The diagnosis changed in icc 8.0: | |
3632 | # icc: Command line remark: option '-MP' not supported | |
3633 | if (grep 'ignoring option' conftest.err || | |
3634 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3635 | am_cv_CC_dependencies_compiler_type=$depmode | |
3636 | break | |
3637 | fi | |
3638 | fi | |
3639 | done | |
3640 | ||
3641 | cd .. | |
3642 | rm -rf conftest.dir | |
3643 | else | |
3644 | am_cv_CC_dependencies_compiler_type=none | |
3645 | fi | |
3646 | ||
3647 | fi | |
e6364d79 | 3648 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 3649 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
3650 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3651 | ||
7fbd9d09 | 3652 | if |
2f1a1aea FCE |
3653 | test "x$enable_dependency_tracking" != xno \ |
3654 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3655 | am__fastdepCC_TRUE= | |
3656 | am__fastdepCC_FALSE='#' | |
3657 | else | |
3658 | am__fastdepCC_TRUE='#' | |
3659 | am__fastdepCC_FALSE= | |
3660 | fi | |
3661 | ||
3662 | ||
7fbd9d09 | 3663 | ac_ext=cpp |
2f1a1aea FCE |
3664 | ac_cpp='$CXXCPP $CPPFLAGS' |
3665 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3666 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3667 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7fbd9d09 FCE |
3668 | if test -z "$CXX"; then |
3669 | if test -n "$CCC"; then | |
3670 | CXX=$CCC | |
3671 | else | |
3672 | if test -n "$ac_tool_prefix"; then | |
3673 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2f1a1aea FCE |
3674 | do |
3675 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3676 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e6364d79 | 3677 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 3678 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 3679 | if test "${ac_cv_prog_CXX+set}" = set; then |
0710d850 | 3680 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3681 | else |
3682 | if test -n "$CXX"; then | |
3683 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3684 | else | |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 3690 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3692 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
e6364d79 | 3693 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3694 | break 2 |
3695 | fi | |
3696 | done | |
e6364d79 | 3697 | done |
7fbd9d09 | 3698 | IFS=$as_save_IFS |
2f1a1aea FCE |
3699 | |
3700 | fi | |
3701 | fi | |
3702 | CXX=$ac_cv_prog_CXX | |
3703 | if test -n "$CXX"; then | |
e6364d79 | 3704 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
0710d850 | 3705 | $as_echo "$CXX" >&6; } |
2f1a1aea | 3706 | else |
e6364d79 | 3707 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 3708 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3709 | fi |
3710 | ||
7fbd9d09 | 3711 | |
2f1a1aea FCE |
3712 | test -n "$CXX" && break |
3713 | done | |
3714 | fi | |
3715 | if test -z "$CXX"; then | |
3716 | ac_ct_CXX=$CXX | |
7fbd9d09 | 3717 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2f1a1aea FCE |
3718 | do |
3719 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3720 | set dummy $ac_prog; ac_word=$2 | |
e6364d79 | 3721 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 3722 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 3723 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
0710d850 | 3724 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3725 | else |
3726 | if test -n "$ac_ct_CXX"; then | |
3727 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3728 | else | |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3730 | for as_dir in $PATH | |
3731 | do | |
3732 | IFS=$as_save_IFS | |
3733 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 3734 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3736 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
e6364d79 | 3737 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3738 | break 2 |
3739 | fi | |
3740 | done | |
e6364d79 | 3741 | done |
7fbd9d09 | 3742 | IFS=$as_save_IFS |
2f1a1aea FCE |
3743 | |
3744 | fi | |
3745 | fi | |
3746 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3747 | if test -n "$ac_ct_CXX"; then | |
e6364d79 | 3748 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
0710d850 | 3749 | $as_echo "$ac_ct_CXX" >&6; } |
2f1a1aea | 3750 | else |
e6364d79 | 3751 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 3752 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3753 | fi |
3754 | ||
7fbd9d09 | 3755 | |
2f1a1aea FCE |
3756 | test -n "$ac_ct_CXX" && break |
3757 | done | |
2f1a1aea | 3758 | |
7fbd9d09 FCE |
3759 | if test "x$ac_ct_CXX" = x; then |
3760 | CXX="g++" | |
3761 | else | |
3762 | case $cross_compiling:$ac_tool_warned in | |
3763 | yes:) | |
e6364d79 | 3764 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3765 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3766 | ac_tool_warned=yes ;; |
3767 | esac | |
3768 | CXX=$ac_ct_CXX | |
3769 | fi | |
2f1a1aea FCE |
3770 | fi |
3771 | ||
7fbd9d09 FCE |
3772 | fi |
3773 | fi | |
2f1a1aea | 3774 | # Provide some information about the compiler. |
e6364d79 | 3775 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
0710d850 DS |
3776 | set X $ac_compile |
3777 | ac_compiler=$2 | |
e6364d79 | 3778 | { (ac_try="$ac_compiler --version >&5" |
412e1bf7 FCE |
3779 | case "(($ac_try" in |
3780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3781 | *) ac_try_echo=$ac_try;; | |
3782 | esac | |
e6364d79 MW |
3783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3784 | $as_echo "$ac_try_echo") >&5 | |
3785 | (eval "$ac_compiler --version >&5") 2>&5 | |
412e1bf7 | 3786 | ac_status=$? |
e6364d79 MW |
3787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3788 | (exit $ac_status); } | |
3789 | { (ac_try="$ac_compiler -v >&5" | |
3790 | case "(($ac_try" in | |
3791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3792 | *) ac_try_echo=$ac_try;; | |
3793 | esac | |
3794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3795 | $as_echo "$ac_try_echo") >&5 | |
3796 | (eval "$ac_compiler -v >&5") 2>&5 | |
3797 | ac_status=$? | |
3798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3799 | (exit $ac_status); } | |
3800 | { (ac_try="$ac_compiler -V >&5" | |
3801 | case "(($ac_try" in | |
3802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3803 | *) ac_try_echo=$ac_try;; | |
3804 | esac | |
3805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3806 | $as_echo "$ac_try_echo") >&5 | |
3807 | (eval "$ac_compiler -V >&5") 2>&5 | |
3808 | ac_status=$? | |
3809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3810 | (exit $ac_status); } | |
2f1a1aea | 3811 | |
e6364d79 | 3812 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
0710d850 | 3813 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
e6364d79 | 3814 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
0710d850 | 3815 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3816 | else |
e6364d79 MW |
3817 | cat >conftest.$ac_ext <<_ACEOF |
3818 | /* confdefs.h. */ | |
3819 | _ACEOF | |
3820 | cat confdefs.h >>conftest.$ac_ext | |
3821 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3822 | /* end confdefs.h. */ |
3823 | ||
3824 | int | |
3825 | main () | |
3826 | { | |
3827 | #ifndef __GNUC__ | |
3828 | choke me | |
3829 | #endif | |
3830 | ||
3831 | ; | |
3832 | return 0; | |
3833 | } | |
3834 | _ACEOF | |
e6364d79 MW |
3835 | rm -f conftest.$ac_objext |
3836 | if { (ac_try="$ac_compile" | |
3837 | case "(($ac_try" in | |
3838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3839 | *) ac_try_echo=$ac_try;; | |
3840 | esac | |
3841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3842 | $as_echo "$ac_try_echo") >&5 | |
3843 | (eval "$ac_compile") 2>conftest.er1 | |
3844 | ac_status=$? | |
3845 | grep -v '^ *+' conftest.er1 >conftest.err | |
3846 | rm -f conftest.er1 | |
3847 | cat conftest.err >&5 | |
3848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3849 | (exit $ac_status); } && { | |
3850 | test -z "$ac_cxx_werror_flag" || | |
3851 | test ! -s conftest.err | |
3852 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3853 | ac_compiler_gnu=yes |
3854 | else | |
e6364d79 MW |
3855 | $as_echo "$as_me: failed program was:" >&5 |
3856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3857 | ||
3858 | ac_compiler_gnu=no | |
2f1a1aea | 3859 | fi |
e6364d79 | 3860 | |
7fbd9d09 | 3861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3862 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3863 | ||
3864 | fi | |
e6364d79 | 3865 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
0710d850 DS |
3866 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
3867 | if test $ac_compiler_gnu = yes; then | |
3868 | GXX=yes | |
3869 | else | |
3870 | GXX= | |
3871 | fi | |
2f1a1aea FCE |
3872 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3873 | ac_save_CXXFLAGS=$CXXFLAGS | |
e6364d79 | 3874 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
0710d850 | 3875 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
e6364d79 | 3876 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
0710d850 | 3877 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3878 | else |
7fbd9d09 FCE |
3879 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3880 | ac_cxx_werror_flag=yes | |
3881 | ac_cv_prog_cxx_g=no | |
3882 | CXXFLAGS="-g" | |
e6364d79 MW |
3883 | cat >conftest.$ac_ext <<_ACEOF |
3884 | /* confdefs.h. */ | |
3885 | _ACEOF | |
3886 | cat confdefs.h >>conftest.$ac_ext | |
3887 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3888 | /* end confdefs.h. */ |
3889 | ||
3890 | int | |
3891 | main () | |
3892 | { | |
3893 | ||
3894 | ; | |
3895 | return 0; | |
3896 | } | |
3897 | _ACEOF | |
e6364d79 MW |
3898 | rm -f conftest.$ac_objext |
3899 | if { (ac_try="$ac_compile" | |
3900 | case "(($ac_try" in | |
3901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3902 | *) ac_try_echo=$ac_try;; | |
3903 | esac | |
3904 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3905 | $as_echo "$ac_try_echo") >&5 | |
3906 | (eval "$ac_compile") 2>conftest.er1 | |
3907 | ac_status=$? | |
3908 | grep -v '^ *+' conftest.er1 >conftest.err | |
3909 | rm -f conftest.er1 | |
3910 | cat conftest.err >&5 | |
3911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 | (exit $ac_status); } && { | |
3913 | test -z "$ac_cxx_werror_flag" || | |
3914 | test ! -s conftest.err | |
3915 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3916 | ac_cv_prog_cxx_g=yes |
3917 | else | |
e6364d79 MW |
3918 | $as_echo "$as_me: failed program was:" >&5 |
3919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3920 | ||
3921 | CXXFLAGS="" | |
3922 | cat >conftest.$ac_ext <<_ACEOF | |
3923 | /* confdefs.h. */ | |
3924 | _ACEOF | |
3925 | cat confdefs.h >>conftest.$ac_ext | |
3926 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 3927 | /* end confdefs.h. */ |
7fbd9d09 | 3928 | |
2f1a1aea FCE |
3929 | int |
3930 | main () | |
3931 | { | |
7fbd9d09 | 3932 | |
2f1a1aea FCE |
3933 | ; |
3934 | return 0; | |
3935 | } | |
3936 | _ACEOF | |
e6364d79 MW |
3937 | rm -f conftest.$ac_objext |
3938 | if { (ac_try="$ac_compile" | |
3939 | case "(($ac_try" in | |
3940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3941 | *) ac_try_echo=$ac_try;; | |
3942 | esac | |
3943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3944 | $as_echo "$ac_try_echo") >&5 | |
3945 | (eval "$ac_compile") 2>conftest.er1 | |
3946 | ac_status=$? | |
3947 | grep -v '^ *+' conftest.er1 >conftest.err | |
3948 | rm -f conftest.er1 | |
3949 | cat conftest.err >&5 | |
3950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3951 | (exit $ac_status); } && { | |
3952 | test -z "$ac_cxx_werror_flag" || | |
3953 | test ! -s conftest.err | |
3954 | } && test -s conftest.$ac_objext; then | |
3955 | : | |
4b5627b1 | 3956 | else |
e6364d79 MW |
3957 | $as_echo "$as_me: failed program was:" >&5 |
3958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3959 | ||
3960 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
7fbd9d09 | 3961 | CXXFLAGS="-g" |
e6364d79 MW |
3962 | cat >conftest.$ac_ext <<_ACEOF |
3963 | /* confdefs.h. */ | |
3964 | _ACEOF | |
3965 | cat confdefs.h >>conftest.$ac_ext | |
3966 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 3967 | /* end confdefs.h. */ |
7fbd9d09 | 3968 | |
2f1a1aea FCE |
3969 | int |
3970 | main () | |
3971 | { | |
7fbd9d09 | 3972 | |
2f1a1aea FCE |
3973 | ; |
3974 | return 0; | |
3975 | } | |
4a3c19da | 3976 | _ACEOF |
e6364d79 MW |
3977 | rm -f conftest.$ac_objext |
3978 | if { (ac_try="$ac_compile" | |
3979 | case "(($ac_try" in | |
3980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3981 | *) ac_try_echo=$ac_try;; | |
3982 | esac | |
3983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3984 | $as_echo "$ac_try_echo") >&5 | |
3985 | (eval "$ac_compile") 2>conftest.er1 | |
3986 | ac_status=$? | |
3987 | grep -v '^ *+' conftest.er1 >conftest.err | |
3988 | rm -f conftest.er1 | |
3989 | cat conftest.err >&5 | |
3990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3991 | (exit $ac_status); } && { | |
3992 | test -z "$ac_cxx_werror_flag" || | |
3993 | test ! -s conftest.err | |
3994 | } && test -s conftest.$ac_objext; then | |
4a3c19da | 3995 | ac_cv_prog_cxx_g=yes |
e6364d79 MW |
3996 | else |
3997 | $as_echo "$as_me: failed program was:" >&5 | |
3998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3999 | ||
4000 | ||
70d28673 | 4001 | fi |
e6364d79 | 4002 | |
7fbd9d09 FCE |
4003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4004 | fi | |
e6364d79 | 4005 | |
7fbd9d09 | 4006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 4007 | fi |
e6364d79 | 4008 | |
7fbd9d09 FCE |
4009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4010 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4011 | fi | |
e6364d79 | 4012 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
0710d850 | 4013 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
7fbd9d09 FCE |
4014 | if test "$ac_test_CXXFLAGS" = set; then |
4015 | CXXFLAGS=$ac_save_CXXFLAGS | |
4016 | elif test $ac_cv_prog_cxx_g = yes; then | |
4017 | if test "$GXX" = yes; then | |
4018 | CXXFLAGS="-g -O2" | |
4019 | else | |
4020 | CXXFLAGS="-g" | |
4021 | fi | |
4022 | else | |
4023 | if test "$GXX" = yes; then | |
4024 | CXXFLAGS="-O2" | |
4025 | else | |
4026 | CXXFLAGS= | |
4027 | fi | |
4028 | fi | |
2f1a1aea FCE |
4029 | ac_ext=c |
4030 | ac_cpp='$CPP $CPPFLAGS' | |
4031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4034 | ||
4035 | depcc="$CXX" am_compiler_list= | |
4036 | ||
e6364d79 | 4037 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
0710d850 | 4038 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
e6364d79 | 4039 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
0710d850 | 4040 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4041 | else |
4042 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4043 | # We make a subdir and do the tests there. Otherwise we can end up | |
4044 | # making bogus files that we don't know about and never remove. For | |
4045 | # instance it was reported that on HP-UX the gcc test will end up | |
4046 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4047 | # in D'. | |
4048 | mkdir conftest.dir | |
4049 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4050 | # using a relative directory. | |
4051 | cp "$am_depcomp" conftest.dir | |
4052 | cd conftest.dir | |
4053 | # We will build objects and dependencies in a subdirectory because | |
4054 | # it helps to detect inapplicable dependency modes. For instance | |
4055 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4056 | # side effect of compilation, but ICC will put the dependencies in | |
4057 | # the current directory while Tru64 will put them in the object | |
4058 | # directory. | |
4059 | mkdir sub | |
4060 | ||
4061 | am_cv_CXX_dependencies_compiler_type=none | |
4062 | if test "$am_compiler_list" = ""; then | |
4063 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4064 | fi | |
0710d850 DS |
4065 | am__universal=false |
4066 | case " $depcc " in #( | |
4067 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4068 | esac | |
4069 | ||
2f1a1aea FCE |
4070 | for depmode in $am_compiler_list; do |
4071 | # Setup a source with many dependencies, because some compilers | |
4072 | # like to wrap large dependency lists on column 80 (with \), and | |
4073 | # we should not choose a depcomp mode which is confused by this. | |
4074 | # | |
4075 | # We need to recreate these files for each test, as the compiler may | |
4076 | # overwrite some of them when testing with obscure command lines. | |
4077 | # This happens at least with the AIX C compiler. | |
4078 | : > sub/conftest.c | |
4079 | for i in 1 2 3 4 5 6; do | |
4080 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4081 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4082 | # Solaris 8's {/usr,}/bin/sh. | |
4083 | touch sub/conftst$i.h | |
4084 | done | |
4085 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4086 | ||
0710d850 DS |
4087 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4088 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4089 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4090 | # versions had trouble with output in subdirs | |
4091 | am__obj=sub/conftest.${OBJEXT-o} | |
4092 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 4093 | case $depmode in |
0710d850 DS |
4094 | gcc) |
4095 | # This depmode causes a compiler race in universal mode. | |
4096 | test "$am__universal" = false || continue | |
4097 | ;; | |
2f1a1aea FCE |
4098 | nosideeffect) |
4099 | # after this tag, mechanisms are not by side-effect, so they'll | |
4100 | # only be used when explicitly requested | |
4101 | if test "x$enable_dependency_tracking" = xyes; then | |
4102 | continue | |
4103 | else | |
4104 | break | |
4105 | fi | |
4106 | ;; | |
0710d850 DS |
4107 | msvisualcpp | msvcmsys) |
4108 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4109 | # not run yet. These depmodes are late enough in the game, and | |
4110 | # so weak that their functioning should not be impacted. | |
4111 | am__obj=conftest.${OBJEXT-o} | |
4112 | am__minus_obj= | |
4113 | ;; | |
2f1a1aea FCE |
4114 | none) break ;; |
4115 | esac | |
2f1a1aea | 4116 | if depmode=$depmode \ |
0710d850 | 4117 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 4118 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 4119 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 4120 | >/dev/null 2>conftest.err && |
7fbd9d09 | 4121 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 4122 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 4123 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4124 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4125 | # icc doesn't choke on unknown options, it will just issue warnings | |
4126 | # or remarks (even with -Werror). So we grep stderr for any message | |
4127 | # that says an option was ignored or not supported. | |
4128 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4129 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4130 | # The diagnosis changed in icc 8.0: | |
4131 | # icc: Command line remark: option '-MP' not supported | |
4132 | if (grep 'ignoring option' conftest.err || | |
4133 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4134 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4135 | break | |
4136 | fi | |
4137 | fi | |
4138 | done | |
4139 | ||
4140 | cd .. | |
4141 | rm -rf conftest.dir | |
4142 | else | |
4143 | am_cv_CXX_dependencies_compiler_type=none | |
4144 | fi | |
4145 | ||
4146 | fi | |
e6364d79 | 4147 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
0710d850 | 4148 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
4149 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4150 | ||
7fbd9d09 | 4151 | if |
2f1a1aea FCE |
4152 | test "x$enable_dependency_tracking" != xno \ |
4153 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4154 | am__fastdepCXX_TRUE= | |
4155 | am__fastdepCXX_FALSE='#' | |
4156 | else | |
4157 | am__fastdepCXX_TRUE='#' | |
4158 | am__fastdepCXX_FALSE= | |
4159 | fi | |
4160 | ||
4161 | ||
4162 | ac_ext=c | |
4163 | ac_cpp='$CPP $CPPFLAGS' | |
4164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e6364d79 | 4167 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
0710d850 | 4168 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
2f1a1aea FCE |
4169 | # On Suns, sometimes $CPP names a directory. |
4170 | if test -n "$CPP" && test -d "$CPP"; then | |
4171 | CPP= | |
4172 | fi | |
4173 | if test -z "$CPP"; then | |
e6364d79 | 4174 | if test "${ac_cv_prog_CPP+set}" = set; then |
0710d850 | 4175 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4176 | else |
4177 | # Double quotes because CPP needs to be expanded | |
4178 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4179 | do | |
4180 | ac_preproc_ok=false | |
4181 | for ac_c_preproc_warn_flag in '' yes | |
4182 | do | |
4183 | # Use a header file that comes with gcc, so configuring glibc | |
4184 | # with a fresh cross-compiler works. | |
4185 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4186 | # <limits.h> exists even on freestanding compilers. | |
4187 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4188 | # not just through cpp. "Syntax error" is here to catch this case. | |
e6364d79 MW |
4189 | cat >conftest.$ac_ext <<_ACEOF |
4190 | /* confdefs.h. */ | |
4191 | _ACEOF | |
4192 | cat confdefs.h >>conftest.$ac_ext | |
4193 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4194 | /* end confdefs.h. */ |
4195 | #ifdef __STDC__ | |
4196 | # include <limits.h> | |
4197 | #else | |
4198 | # include <assert.h> | |
4199 | #endif | |
4200 | Syntax error | |
4201 | _ACEOF | |
e6364d79 MW |
4202 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4203 | case "(($ac_try" in | |
4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4205 | *) ac_try_echo=$ac_try;; | |
4206 | esac | |
4207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4208 | $as_echo "$ac_try_echo") >&5 | |
4209 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4210 | ac_status=$? | |
4211 | grep -v '^ *+' conftest.er1 >conftest.err | |
4212 | rm -f conftest.er1 | |
4213 | cat conftest.err >&5 | |
4214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 | (exit $ac_status); } >/dev/null && { | |
4216 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4217 | test ! -s conftest.err | |
4218 | }; then | |
4219 | : | |
4b5627b1 | 4220 | else |
e6364d79 MW |
4221 | $as_echo "$as_me: failed program was:" >&5 |
4222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4223 | ||
2f1a1aea FCE |
4224 | # Broken: fails on valid input. |
4225 | continue | |
4226 | fi | |
e6364d79 | 4227 | |
2f1a1aea FCE |
4228 | rm -f conftest.err conftest.$ac_ext |
4229 | ||
7fbd9d09 | 4230 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea | 4231 | # can be detected and how. |
e6364d79 MW |
4232 | cat >conftest.$ac_ext <<_ACEOF |
4233 | /* confdefs.h. */ | |
4234 | _ACEOF | |
4235 | cat confdefs.h >>conftest.$ac_ext | |
4236 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4237 | /* end confdefs.h. */ |
4238 | #include <ac_nonexistent.h> | |
4239 | _ACEOF | |
e6364d79 MW |
4240 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4241 | case "(($ac_try" in | |
4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4243 | *) ac_try_echo=$ac_try;; | |
4244 | esac | |
4245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4246 | $as_echo "$ac_try_echo") >&5 | |
4247 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4248 | ac_status=$? | |
4249 | grep -v '^ *+' conftest.er1 >conftest.err | |
4250 | rm -f conftest.er1 | |
4251 | cat conftest.err >&5 | |
4252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4253 | (exit $ac_status); } >/dev/null && { | |
4254 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4255 | test ! -s conftest.err | |
4256 | }; then | |
2f1a1aea FCE |
4257 | # Broken: success on invalid input. |
4258 | continue | |
4259 | else | |
e6364d79 MW |
4260 | $as_echo "$as_me: failed program was:" >&5 |
4261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4262 | ||
4263 | # Passes both tests. | |
4264 | ac_preproc_ok=: | |
2f1a1aea FCE |
4265 | break |
4266 | fi | |
e6364d79 | 4267 | |
2f1a1aea FCE |
4268 | rm -f conftest.err conftest.$ac_ext |
4269 | ||
4270 | done | |
4271 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4272 | rm -f conftest.err conftest.$ac_ext | |
e6364d79 | 4273 | if $ac_preproc_ok; then |
2f1a1aea FCE |
4274 | break |
4275 | fi | |
4276 | ||
4277 | done | |
4278 | ac_cv_prog_CPP=$CPP | |
4279 | ||
4280 | fi | |
4281 | CPP=$ac_cv_prog_CPP | |
4282 | else | |
4283 | ac_cv_prog_CPP=$CPP | |
4284 | fi | |
e6364d79 | 4285 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
0710d850 | 4286 | $as_echo "$CPP" >&6; } |
2f1a1aea FCE |
4287 | ac_preproc_ok=false |
4288 | for ac_c_preproc_warn_flag in '' yes | |
4289 | do | |
4290 | # Use a header file that comes with gcc, so configuring glibc | |
4291 | # with a fresh cross-compiler works. | |
4292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4293 | # <limits.h> exists even on freestanding compilers. | |
4294 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4295 | # not just through cpp. "Syntax error" is here to catch this case. | |
e6364d79 MW |
4296 | cat >conftest.$ac_ext <<_ACEOF |
4297 | /* confdefs.h. */ | |
4298 | _ACEOF | |
4299 | cat confdefs.h >>conftest.$ac_ext | |
4300 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4301 | /* end confdefs.h. */ |
4302 | #ifdef __STDC__ | |
4303 | # include <limits.h> | |
4304 | #else | |
4305 | # include <assert.h> | |
4306 | #endif | |
4307 | Syntax error | |
4308 | _ACEOF | |
e6364d79 MW |
4309 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4310 | case "(($ac_try" in | |
4311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4312 | *) ac_try_echo=$ac_try;; | |
4313 | esac | |
4314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4315 | $as_echo "$ac_try_echo") >&5 | |
4316 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4317 | ac_status=$? | |
4318 | grep -v '^ *+' conftest.er1 >conftest.err | |
4319 | rm -f conftest.er1 | |
4320 | cat conftest.err >&5 | |
4321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4322 | (exit $ac_status); } >/dev/null && { | |
4323 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4324 | test ! -s conftest.err | |
4325 | }; then | |
4326 | : | |
4b5627b1 | 4327 | else |
e6364d79 MW |
4328 | $as_echo "$as_me: failed program was:" >&5 |
4329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4330 | ||
2f1a1aea FCE |
4331 | # Broken: fails on valid input. |
4332 | continue | |
4333 | fi | |
e6364d79 | 4334 | |
2f1a1aea FCE |
4335 | rm -f conftest.err conftest.$ac_ext |
4336 | ||
7fbd9d09 | 4337 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea | 4338 | # can be detected and how. |
e6364d79 MW |
4339 | cat >conftest.$ac_ext <<_ACEOF |
4340 | /* confdefs.h. */ | |
4341 | _ACEOF | |
4342 | cat confdefs.h >>conftest.$ac_ext | |
4343 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4344 | /* end confdefs.h. */ |
4345 | #include <ac_nonexistent.h> | |
4346 | _ACEOF | |
e6364d79 MW |
4347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
4352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4353 | $as_echo "$ac_try_echo") >&5 | |
4354 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4355 | ac_status=$? | |
4356 | grep -v '^ *+' conftest.er1 >conftest.err | |
4357 | rm -f conftest.er1 | |
4358 | cat conftest.err >&5 | |
4359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4360 | (exit $ac_status); } >/dev/null && { | |
4361 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4362 | test ! -s conftest.err | |
4363 | }; then | |
2f1a1aea FCE |
4364 | # Broken: success on invalid input. |
4365 | continue | |
4366 | else | |
e6364d79 MW |
4367 | $as_echo "$as_me: failed program was:" >&5 |
4368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4369 | ||
2f1a1aea FCE |
4370 | # Passes both tests. |
4371 | ac_preproc_ok=: | |
4372 | break | |
4373 | fi | |
e6364d79 | 4374 | |
2f1a1aea FCE |
4375 | rm -f conftest.err conftest.$ac_ext |
4376 | ||
4377 | done | |
4378 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4379 | rm -f conftest.err conftest.$ac_ext | |
e6364d79 MW |
4380 | if $ac_preproc_ok; then |
4381 | : | |
2f1a1aea | 4382 | else |
e6364d79 | 4383 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 4384 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
4385 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4386 | See \`config.log' for more details." >&5 | |
4387 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4388 | See \`config.log' for more details." >&2;} | |
4389 | { (exit 1); exit 1; }; }; } | |
2f1a1aea FCE |
4390 | fi |
4391 | ||
4392 | ac_ext=c | |
4393 | ac_cpp='$CPP $CPPFLAGS' | |
4394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4397 | ||
4398 | ac_ext=c | |
4399 | ac_cpp='$CPP $CPPFLAGS' | |
4400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4403 | if test -n "$ac_tool_prefix"; then | |
4404 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4405 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
e6364d79 | 4406 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4407 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4408 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 4409 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4410 | else |
4411 | if test -n "$CC"; then | |
4412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4413 | else | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4419 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4421 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
e6364d79 | 4422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4423 | break 2 |
4424 | fi | |
4425 | done | |
e6364d79 | 4426 | done |
7fbd9d09 | 4427 | IFS=$as_save_IFS |
2f1a1aea FCE |
4428 | |
4429 | fi | |
4430 | fi | |
4431 | CC=$ac_cv_prog_CC | |
4432 | if test -n "$CC"; then | |
e6364d79 | 4433 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 4434 | $as_echo "$CC" >&6; } |
2f1a1aea | 4435 | else |
e6364d79 | 4436 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4437 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4438 | fi |
4439 | ||
7fbd9d09 | 4440 | |
2f1a1aea FCE |
4441 | fi |
4442 | if test -z "$ac_cv_prog_CC"; then | |
4443 | ac_ct_CC=$CC | |
4444 | # Extract the first word of "gcc", so it can be a program name with args. | |
4445 | set dummy gcc; ac_word=$2 | |
e6364d79 | 4446 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4447 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
0710d850 | 4449 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4450 | else |
4451 | if test -n "$ac_ct_CC"; then | |
4452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4453 | else | |
4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4455 | for as_dir in $PATH | |
4456 | do | |
4457 | IFS=$as_save_IFS | |
4458 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4459 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4461 | ac_cv_prog_ac_ct_CC="gcc" |
e6364d79 | 4462 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4463 | break 2 |
4464 | fi | |
4465 | done | |
e6364d79 | 4466 | done |
7fbd9d09 | 4467 | IFS=$as_save_IFS |
2f1a1aea FCE |
4468 | |
4469 | fi | |
4470 | fi | |
4471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4472 | if test -n "$ac_ct_CC"; then | |
e6364d79 | 4473 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
0710d850 | 4474 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4475 | else |
e6364d79 | 4476 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4477 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4478 | fi |
4479 | ||
7fbd9d09 FCE |
4480 | if test "x$ac_ct_CC" = x; then |
4481 | CC="" | |
4482 | else | |
4483 | case $cross_compiling:$ac_tool_warned in | |
4484 | yes:) | |
e6364d79 | 4485 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4487 | ac_tool_warned=yes ;; |
4488 | esac | |
4489 | CC=$ac_ct_CC | |
4490 | fi | |
2f1a1aea FCE |
4491 | else |
4492 | CC="$ac_cv_prog_CC" | |
4493 | fi | |
4494 | ||
4495 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4496 | if test -n "$ac_tool_prefix"; then |
4497 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4498 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
e6364d79 | 4499 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4500 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4501 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 4502 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4503 | else |
4504 | if test -n "$CC"; then | |
4505 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4506 | else | |
4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4508 | for as_dir in $PATH | |
4509 | do | |
4510 | IFS=$as_save_IFS | |
4511 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4512 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4514 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
e6364d79 | 4515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4516 | break 2 |
4517 | fi | |
4518 | done | |
e6364d79 | 4519 | done |
7fbd9d09 | 4520 | IFS=$as_save_IFS |
2f1a1aea FCE |
4521 | |
4522 | fi | |
4523 | fi | |
4524 | CC=$ac_cv_prog_CC | |
4525 | if test -n "$CC"; then | |
e6364d79 | 4526 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 4527 | $as_echo "$CC" >&6; } |
818ba2bc | 4528 | else |
e6364d79 | 4529 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4530 | $as_echo "no" >&6; } |
818ba2bc MW |
4531 | fi |
4532 | ||
818ba2bc | 4533 | |
7fbd9d09 | 4534 | fi |
8ae7a94a FCE |
4535 | fi |
4536 | if test -z "$CC"; then | |
4537 | # Extract the first word of "cc", so it can be a program name with args. | |
4538 | set dummy cc; ac_word=$2 | |
e6364d79 | 4539 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4540 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4541 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 4542 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4543 | else |
4544 | if test -n "$CC"; then | |
2f1a1aea FCE |
4545 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4546 | else | |
4547 | ac_prog_rejected=no | |
4548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4549 | for as_dir in $PATH | |
4550 | do | |
4551 | IFS=$as_save_IFS | |
4552 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4553 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4555 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4556 | ac_prog_rejected=yes | |
4557 | continue | |
4558 | fi | |
4559 | ac_cv_prog_CC="cc" | |
e6364d79 | 4560 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4561 | break 2 |
4562 | fi | |
4563 | done | |
e6364d79 | 4564 | done |
7fbd9d09 | 4565 | IFS=$as_save_IFS |
2f1a1aea FCE |
4566 | |
4567 | if test $ac_prog_rejected = yes; then | |
4568 | # We found a bogon in the path, so make sure we never use it. | |
4569 | set dummy $ac_cv_prog_CC | |
4570 | shift | |
4571 | if test $# != 0; then | |
4572 | # We chose a different compiler from the bogus one. | |
4573 | # However, it has the same basename, so the bogon will be chosen | |
4574 | # first if we set CC to just the basename; use the full file name. | |
4575 | shift | |
4576 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4577 | fi | |
4578 | fi | |
4579 | fi | |
4580 | fi | |
4581 | CC=$ac_cv_prog_CC | |
4582 | if test -n "$CC"; then | |
e6364d79 | 4583 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 4584 | $as_echo "$CC" >&6; } |
2f1a1aea | 4585 | else |
e6364d79 | 4586 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4587 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4588 | fi |
4589 | ||
7fbd9d09 | 4590 | |
2f1a1aea FCE |
4591 | fi |
4592 | if test -z "$CC"; then | |
4593 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4594 | for ac_prog in cl.exe |
2f1a1aea FCE |
4595 | do |
4596 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4597 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e6364d79 | 4598 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4599 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4600 | if test "${ac_cv_prog_CC+set}" = set; then |
0710d850 | 4601 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4602 | else |
4603 | if test -n "$CC"; then | |
4604 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4605 | else | |
4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4607 | for as_dir in $PATH | |
4608 | do | |
4609 | IFS=$as_save_IFS | |
4610 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4611 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4613 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
e6364d79 | 4614 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4615 | break 2 |
4616 | fi | |
4617 | done | |
e6364d79 | 4618 | done |
7fbd9d09 | 4619 | IFS=$as_save_IFS |
2f1a1aea FCE |
4620 | |
4621 | fi | |
4622 | fi | |
4623 | CC=$ac_cv_prog_CC | |
4624 | if test -n "$CC"; then | |
e6364d79 | 4625 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
0710d850 | 4626 | $as_echo "$CC" >&6; } |
2f1a1aea | 4627 | else |
e6364d79 | 4628 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4629 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4630 | fi |
4631 | ||
7fbd9d09 | 4632 | |
2f1a1aea FCE |
4633 | test -n "$CC" && break |
4634 | done | |
4635 | fi | |
4636 | if test -z "$CC"; then | |
4637 | ac_ct_CC=$CC | |
7fbd9d09 | 4638 | for ac_prog in cl.exe |
2f1a1aea FCE |
4639 | do |
4640 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4641 | set dummy $ac_prog; ac_word=$2 | |
e6364d79 | 4642 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 4643 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 4644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
0710d850 | 4645 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4646 | else |
4647 | if test -n "$ac_ct_CC"; then | |
4648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4649 | else | |
4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4651 | for as_dir in $PATH | |
4652 | do | |
4653 | IFS=$as_save_IFS | |
4654 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 4655 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4657 | ac_cv_prog_ac_ct_CC="$ac_prog" |
e6364d79 | 4658 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4659 | break 2 |
4660 | fi | |
4661 | done | |
e6364d79 | 4662 | done |
7fbd9d09 | 4663 | IFS=$as_save_IFS |
2f1a1aea FCE |
4664 | |
4665 | fi | |
4666 | fi | |
4667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4668 | if test -n "$ac_ct_CC"; then | |
e6364d79 | 4669 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
0710d850 | 4670 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4671 | else |
e6364d79 | 4672 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 4673 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4674 | fi |
4675 | ||
7fbd9d09 | 4676 | |
2f1a1aea FCE |
4677 | test -n "$ac_ct_CC" && break |
4678 | done | |
4679 | ||
7fbd9d09 FCE |
4680 | if test "x$ac_ct_CC" = x; then |
4681 | CC="" | |
4682 | else | |
4683 | case $cross_compiling:$ac_tool_warned in | |
4684 | yes:) | |
e6364d79 | 4685 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4687 | ac_tool_warned=yes ;; |
4688 | esac | |
4689 | CC=$ac_ct_CC | |
4690 | fi | |
2f1a1aea FCE |
4691 | fi |
4692 | ||
4693 | fi | |
4694 | ||
4695 | ||
e6364d79 | 4696 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 4697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
4698 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
4699 | See \`config.log' for more details." >&5 | |
4700 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4701 | See \`config.log' for more details." >&2;} | |
4702 | { (exit 1); exit 1; }; }; } | |
2f1a1aea FCE |
4703 | |
4704 | # Provide some information about the compiler. | |
e6364d79 | 4705 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
0710d850 DS |
4706 | set X $ac_compile |
4707 | ac_compiler=$2 | |
e6364d79 | 4708 | { (ac_try="$ac_compiler --version >&5" |
7fbd9d09 FCE |
4709 | case "(($ac_try" in |
4710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4711 | *) ac_try_echo=$ac_try;; | |
4712 | esac | |
e6364d79 MW |
4713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4714 | $as_echo "$ac_try_echo") >&5 | |
4715 | (eval "$ac_compiler --version >&5") 2>&5 | |
2f1a1aea | 4716 | ac_status=$? |
e6364d79 MW |
4717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4718 | (exit $ac_status); } | |
4719 | { (ac_try="$ac_compiler -v >&5" | |
4720 | case "(($ac_try" in | |
4721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4722 | *) ac_try_echo=$ac_try;; | |
4723 | esac | |
4724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4725 | $as_echo "$ac_try_echo") >&5 | |
4726 | (eval "$ac_compiler -v >&5") 2>&5 | |
4727 | ac_status=$? | |
4728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4729 | (exit $ac_status); } | |
4730 | { (ac_try="$ac_compiler -V >&5" | |
4731 | case "(($ac_try" in | |
4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4733 | *) ac_try_echo=$ac_try;; | |
4734 | esac | |
4735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4736 | $as_echo "$ac_try_echo") >&5 | |
4737 | (eval "$ac_compiler -V >&5") 2>&5 | |
4738 | ac_status=$? | |
4739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4740 | (exit $ac_status); } | |
2f1a1aea | 4741 | |
e6364d79 | 4742 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 4743 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
e6364d79 | 4744 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
0710d850 | 4745 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4746 | else |
e6364d79 MW |
4747 | cat >conftest.$ac_ext <<_ACEOF |
4748 | /* confdefs.h. */ | |
4749 | _ACEOF | |
4750 | cat confdefs.h >>conftest.$ac_ext | |
4751 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4752 | /* end confdefs.h. */ |
4753 | ||
4754 | int | |
4755 | main () | |
4756 | { | |
4757 | #ifndef __GNUC__ | |
4758 | choke me | |
4759 | #endif | |
4760 | ||
4761 | ; | |
4762 | return 0; | |
4763 | } | |
4764 | _ACEOF | |
e6364d79 MW |
4765 | rm -f conftest.$ac_objext |
4766 | if { (ac_try="$ac_compile" | |
4767 | case "(($ac_try" in | |
4768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4769 | *) ac_try_echo=$ac_try;; | |
4770 | esac | |
4771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4772 | $as_echo "$ac_try_echo") >&5 | |
4773 | (eval "$ac_compile") 2>conftest.er1 | |
4774 | ac_status=$? | |
4775 | grep -v '^ *+' conftest.er1 >conftest.err | |
4776 | rm -f conftest.er1 | |
4777 | cat conftest.err >&5 | |
4778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4779 | (exit $ac_status); } && { | |
4780 | test -z "$ac_c_werror_flag" || | |
4781 | test ! -s conftest.err | |
4782 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
4783 | ac_compiler_gnu=yes |
4784 | else | |
e6364d79 MW |
4785 | $as_echo "$as_me: failed program was:" >&5 |
4786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4787 | ||
4788 | ac_compiler_gnu=no | |
2f1a1aea | 4789 | fi |
e6364d79 | 4790 | |
7fbd9d09 | 4791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
4792 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4793 | ||
4794 | fi | |
e6364d79 | 4795 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
4796 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4797 | if test $ac_compiler_gnu = yes; then | |
4798 | GCC=yes | |
4799 | else | |
4800 | GCC= | |
4801 | fi | |
2f1a1aea FCE |
4802 | ac_test_CFLAGS=${CFLAGS+set} |
4803 | ac_save_CFLAGS=$CFLAGS | |
e6364d79 | 4804 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
0710d850 | 4805 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
e6364d79 | 4806 | if test "${ac_cv_prog_cc_g+set}" = set; then |
0710d850 | 4807 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4808 | else |
7fbd9d09 FCE |
4809 | ac_save_c_werror_flag=$ac_c_werror_flag |
4810 | ac_c_werror_flag=yes | |
4811 | ac_cv_prog_cc_g=no | |
4812 | CFLAGS="-g" | |
e6364d79 MW |
4813 | cat >conftest.$ac_ext <<_ACEOF |
4814 | /* confdefs.h. */ | |
4815 | _ACEOF | |
4816 | cat confdefs.h >>conftest.$ac_ext | |
4817 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4818 | /* end confdefs.h. */ |
4819 | ||
4820 | int | |
4821 | main () | |
4822 | { | |
4823 | ||
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
e6364d79 MW |
4828 | rm -f conftest.$ac_objext |
4829 | if { (ac_try="$ac_compile" | |
4830 | case "(($ac_try" in | |
4831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4832 | *) ac_try_echo=$ac_try;; | |
4833 | esac | |
4834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4835 | $as_echo "$ac_try_echo") >&5 | |
4836 | (eval "$ac_compile") 2>conftest.er1 | |
4837 | ac_status=$? | |
4838 | grep -v '^ *+' conftest.er1 >conftest.err | |
4839 | rm -f conftest.er1 | |
4840 | cat conftest.err >&5 | |
4841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4842 | (exit $ac_status); } && { | |
4843 | test -z "$ac_c_werror_flag" || | |
4844 | test ! -s conftest.err | |
4845 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 FCE |
4846 | ac_cv_prog_cc_g=yes |
4847 | else | |
e6364d79 MW |
4848 | $as_echo "$as_me: failed program was:" >&5 |
4849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4850 | ||
4851 | CFLAGS="" | |
4852 | cat >conftest.$ac_ext <<_ACEOF | |
4853 | /* confdefs.h. */ | |
4854 | _ACEOF | |
4855 | cat confdefs.h >>conftest.$ac_ext | |
4856 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
4857 | /* end confdefs.h. */ |
4858 | ||
4859 | int | |
4860 | main () | |
4861 | { | |
4862 | ||
4863 | ; | |
4864 | return 0; | |
4865 | } | |
4866 | _ACEOF | |
e6364d79 MW |
4867 | rm -f conftest.$ac_objext |
4868 | if { (ac_try="$ac_compile" | |
4869 | case "(($ac_try" in | |
4870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4871 | *) ac_try_echo=$ac_try;; | |
4872 | esac | |
4873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4874 | $as_echo "$ac_try_echo") >&5 | |
4875 | (eval "$ac_compile") 2>conftest.er1 | |
4876 | ac_status=$? | |
4877 | grep -v '^ *+' conftest.er1 >conftest.err | |
4878 | rm -f conftest.er1 | |
4879 | cat conftest.err >&5 | |
4880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4881 | (exit $ac_status); } && { | |
4882 | test -z "$ac_c_werror_flag" || | |
4883 | test ! -s conftest.err | |
4884 | } && test -s conftest.$ac_objext; then | |
4885 | : | |
4b5627b1 | 4886 | else |
e6364d79 MW |
4887 | $as_echo "$as_me: failed program was:" >&5 |
4888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4889 | ||
4890 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4891 | CFLAGS="-g" |
e6364d79 MW |
4892 | cat >conftest.$ac_ext <<_ACEOF |
4893 | /* confdefs.h. */ | |
4894 | _ACEOF | |
4895 | cat confdefs.h >>conftest.$ac_ext | |
4896 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
4897 | /* end confdefs.h. */ |
4898 | ||
4899 | int | |
4900 | main () | |
4901 | { | |
4902 | ||
4903 | ; | |
4904 | return 0; | |
4905 | } | |
4906 | _ACEOF | |
e6364d79 MW |
4907 | rm -f conftest.$ac_objext |
4908 | if { (ac_try="$ac_compile" | |
4909 | case "(($ac_try" in | |
4910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4911 | *) ac_try_echo=$ac_try;; | |
4912 | esac | |
4913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4914 | $as_echo "$ac_try_echo") >&5 | |
4915 | (eval "$ac_compile") 2>conftest.er1 | |
4916 | ac_status=$? | |
4917 | grep -v '^ *+' conftest.er1 >conftest.err | |
4918 | rm -f conftest.er1 | |
4919 | cat conftest.err >&5 | |
4920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4921 | (exit $ac_status); } && { | |
4922 | test -z "$ac_c_werror_flag" || | |
4923 | test ! -s conftest.err | |
4924 | } && test -s conftest.$ac_objext; then | |
5e0d2ebf | 4925 | ac_cv_prog_cc_g=yes |
e6364d79 MW |
4926 | else |
4927 | $as_echo "$as_me: failed program was:" >&5 | |
4928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4929 | ||
4930 | ||
7fbd9d09 | 4931 | fi |
e6364d79 | 4932 | |
7fbd9d09 FCE |
4933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4934 | fi | |
e6364d79 | 4935 | |
7fbd9d09 | 4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 4937 | fi |
e6364d79 | 4938 | |
7fbd9d09 FCE |
4939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4940 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4941 | fi |
e6364d79 | 4942 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 4943 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
70d28673 DS |
4944 | if test "$ac_test_CFLAGS" = set; then |
4945 | CFLAGS=$ac_save_CFLAGS | |
4946 | elif test $ac_cv_prog_cc_g = yes; then | |
4947 | if test "$GCC" = yes; then | |
4948 | CFLAGS="-g -O2" | |
4949 | else | |
4950 | CFLAGS="-g" | |
4951 | fi | |
4952 | else | |
4953 | if test "$GCC" = yes; then | |
4954 | CFLAGS="-O2" | |
4955 | else | |
4956 | CFLAGS= | |
4957 | fi | |
4958 | fi | |
e6364d79 | 4959 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 4960 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
e6364d79 | 4961 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
0710d850 | 4962 | $as_echo_n "(cached) " >&6 |
70d28673 | 4963 | else |
7fbd9d09 | 4964 | ac_cv_prog_cc_c89=no |
70d28673 | 4965 | ac_save_CC=$CC |
e6364d79 MW |
4966 | cat >conftest.$ac_ext <<_ACEOF |
4967 | /* confdefs.h. */ | |
4968 | _ACEOF | |
4969 | cat confdefs.h >>conftest.$ac_ext | |
4970 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 4971 | /* end confdefs.h. */ |
70d28673 DS |
4972 | #include <stdarg.h> |
4973 | #include <stdio.h> | |
4974 | #include <sys/types.h> | |
4975 | #include <sys/stat.h> | |
4976 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4977 | struct buf { int x; }; | |
4978 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4979 | static char *e (p, i) | |
4980 | char **p; | |
4981 | int i; | |
4982 | { | |
4983 | return p[i]; | |
4984 | } | |
4985 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4986 | { | |
4987 | char *s; | |
4988 | va_list v; | |
4989 | va_start (v,p); | |
4990 | s = g (p, va_arg (v,int)); | |
4991 | va_end (v); | |
4992 | return s; | |
4993 | } | |
4994 | ||
4995 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4996 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4997 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4998 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4999 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5000 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 5001 | that's true only with -std. */ |
70d28673 DS |
5002 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5003 | ||
7fbd9d09 FCE |
5004 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5005 | inside strings and character constants. */ | |
5006 | #define FOO(x) 'x' | |
5007 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5008 | ||
70d28673 DS |
5009 | int test (int i, double x); |
5010 | struct s1 {int (*f) (int a);}; | |
5011 | struct s2 {int (*f) (double a);}; | |
5012 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5013 | int argc; | |
5014 | char **argv; | |
2f1a1aea FCE |
5015 | int |
5016 | main () | |
5017 | { | |
70d28673 | 5018 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
5019 | ; |
5020 | return 0; | |
5021 | } | |
5022 | _ACEOF | |
7fbd9d09 FCE |
5023 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5024 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
5025 | do |
5026 | CC="$ac_save_CC $ac_arg" | |
e6364d79 MW |
5027 | rm -f conftest.$ac_objext |
5028 | if { (ac_try="$ac_compile" | |
5029 | case "(($ac_try" in | |
5030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5031 | *) ac_try_echo=$ac_try;; | |
5032 | esac | |
5033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5034 | $as_echo "$ac_try_echo") >&5 | |
5035 | (eval "$ac_compile") 2>conftest.er1 | |
5036 | ac_status=$? | |
5037 | grep -v '^ *+' conftest.er1 >conftest.err | |
5038 | rm -f conftest.er1 | |
5039 | cat conftest.err >&5 | |
5040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5041 | (exit $ac_status); } && { | |
5042 | test -z "$ac_c_werror_flag" || | |
5043 | test ! -s conftest.err | |
5044 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 | 5045 | ac_cv_prog_cc_c89=$ac_arg |
e6364d79 MW |
5046 | else |
5047 | $as_echo "$as_me: failed program was:" >&5 | |
5048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5049 | ||
5050 | ||
2f1a1aea | 5051 | fi |
e6364d79 | 5052 | |
7fbd9d09 FCE |
5053 | rm -f core conftest.err conftest.$ac_objext |
5054 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 5055 | done |
7fbd9d09 | 5056 | rm -f conftest.$ac_ext |
70d28673 DS |
5057 | CC=$ac_save_CC |
5058 | ||
2f1a1aea | 5059 | fi |
7fbd9d09 FCE |
5060 | # AC_CACHE_VAL |
5061 | case "x$ac_cv_prog_cc_c89" in | |
5062 | x) | |
e6364d79 | 5063 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
0710d850 | 5064 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 5065 | xno) |
e6364d79 | 5066 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
0710d850 | 5067 | $as_echo "unsupported" >&6; } ;; |
70d28673 | 5068 | *) |
7fbd9d09 | 5069 | CC="$CC $ac_cv_prog_cc_c89" |
e6364d79 | 5070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 5071 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
70d28673 | 5072 | esac |
2f1a1aea | 5073 | |
2f1a1aea | 5074 | |
2f1a1aea FCE |
5075 | ac_ext=c |
5076 | ac_cpp='$CPP $CPPFLAGS' | |
5077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5080 | ||
5081 | depcc="$CC" am_compiler_list= | |
5082 | ||
e6364d79 | 5083 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
0710d850 | 5084 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
e6364d79 | 5085 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
0710d850 | 5086 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5087 | else |
5088 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5089 | # We make a subdir and do the tests there. Otherwise we can end up | |
5090 | # making bogus files that we don't know about and never remove. For | |
5091 | # instance it was reported that on HP-UX the gcc test will end up | |
5092 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5093 | # in D'. | |
5094 | mkdir conftest.dir | |
5095 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5096 | # using a relative directory. | |
5097 | cp "$am_depcomp" conftest.dir | |
5098 | cd conftest.dir | |
5099 | # We will build objects and dependencies in a subdirectory because | |
5100 | # it helps to detect inapplicable dependency modes. For instance | |
5101 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5102 | # side effect of compilation, but ICC will put the dependencies in | |
5103 | # the current directory while Tru64 will put them in the object | |
5104 | # directory. | |
5105 | mkdir sub | |
5106 | ||
5107 | am_cv_CC_dependencies_compiler_type=none | |
5108 | if test "$am_compiler_list" = ""; then | |
5109 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5110 | fi | |
0710d850 DS |
5111 | am__universal=false |
5112 | case " $depcc " in #( | |
5113 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5114 | esac | |
5115 | ||
2f1a1aea FCE |
5116 | for depmode in $am_compiler_list; do |
5117 | # Setup a source with many dependencies, because some compilers | |
5118 | # like to wrap large dependency lists on column 80 (with \), and | |
5119 | # we should not choose a depcomp mode which is confused by this. | |
5120 | # | |
5121 | # We need to recreate these files for each test, as the compiler may | |
5122 | # overwrite some of them when testing with obscure command lines. | |
5123 | # This happens at least with the AIX C compiler. | |
5124 | : > sub/conftest.c | |
5125 | for i in 1 2 3 4 5 6; do | |
5126 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5127 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5128 | # Solaris 8's {/usr,}/bin/sh. | |
5129 | touch sub/conftst$i.h | |
5130 | done | |
5131 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5132 | ||
0710d850 DS |
5133 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5134 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5135 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5136 | # versions had trouble with output in subdirs | |
5137 | am__obj=sub/conftest.${OBJEXT-o} | |
5138 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 5139 | case $depmode in |
0710d850 DS |
5140 | gcc) |
5141 | # This depmode causes a compiler race in universal mode. | |
5142 | test "$am__universal" = false || continue | |
5143 | ;; | |
2f1a1aea FCE |
5144 | nosideeffect) |
5145 | # after this tag, mechanisms are not by side-effect, so they'll | |
5146 | # only be used when explicitly requested | |
5147 | if test "x$enable_dependency_tracking" = xyes; then | |
5148 | continue | |
5149 | else | |
5150 | break | |
5151 | fi | |
5152 | ;; | |
0710d850 DS |
5153 | msvisualcpp | msvcmsys) |
5154 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5155 | # not run yet. These depmodes are late enough in the game, and | |
5156 | # so weak that their functioning should not be impacted. | |
5157 | am__obj=conftest.${OBJEXT-o} | |
5158 | am__minus_obj= | |
5159 | ;; | |
2f1a1aea FCE |
5160 | none) break ;; |
5161 | esac | |
2f1a1aea | 5162 | if depmode=$depmode \ |
0710d850 | 5163 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 5164 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 5165 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 5166 | >/dev/null 2>conftest.err && |
7fbd9d09 | 5167 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 5168 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 5169 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5170 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5171 | # icc doesn't choke on unknown options, it will just issue warnings | |
5172 | # or remarks (even with -Werror). So we grep stderr for any message | |
5173 | # that says an option was ignored or not supported. | |
5174 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5175 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5176 | # The diagnosis changed in icc 8.0: | |
5177 | # icc: Command line remark: option '-MP' not supported | |
5178 | if (grep 'ignoring option' conftest.err || | |
5179 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5180 | am_cv_CC_dependencies_compiler_type=$depmode | |
5181 | break | |
5182 | fi | |
5183 | fi | |
5184 | done | |
5185 | ||
5186 | cd .. | |
5187 | rm -rf conftest.dir | |
5188 | else | |
5189 | am_cv_CC_dependencies_compiler_type=none | |
5190 | fi | |
5191 | ||
5192 | fi | |
e6364d79 | 5193 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 5194 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
5195 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5196 | ||
7fbd9d09 | 5197 | if |
2f1a1aea FCE |
5198 | test "x$enable_dependency_tracking" != xno \ |
5199 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5200 | am__fastdepCC_TRUE= | |
5201 | am__fastdepCC_FALSE='#' | |
5202 | else | |
5203 | am__fastdepCC_TRUE='#' | |
5204 | am__fastdepCC_FALSE= | |
5205 | fi | |
5206 | ||
5207 | ||
5208 | ||
5209 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
5210 | ||
8ae7a94a | 5211 | if test "x$CC" != xcc; then |
e6364d79 | 5212 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
0710d850 | 5213 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
8ae7a94a | 5214 | else |
e6364d79 | 5215 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
0710d850 | 5216 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
8ae7a94a | 5217 | fi |
0710d850 | 5218 | set dummy $CC; ac_cc=`$as_echo "$2" | |
8ae7a94a | 5219 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
e6364d79 | 5220 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
0710d850 | 5221 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 5222 | else |
e6364d79 MW |
5223 | cat >conftest.$ac_ext <<_ACEOF |
5224 | /* confdefs.h. */ | |
5225 | _ACEOF | |
5226 | cat confdefs.h >>conftest.$ac_ext | |
5227 | cat >>conftest.$ac_ext <<_ACEOF | |
8ae7a94a FCE |
5228 | /* end confdefs.h. */ |
5229 | ||
5230 | int | |
5231 | main () | |
5232 | { | |
5233 | ||
5234 | ; | |
5235 | return 0; | |
5236 | } | |
5237 | _ACEOF | |
5238 | # Make sure it works both with $CC and with simple cc. | |
5239 | # We do the test twice because some compilers refuse to overwrite an | |
5240 | # existing .o file with -o, though they will create one. | |
7fbd9d09 FCE |
5241 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5242 | rm -f conftest2.* | |
e6364d79 | 5243 | if { (case "(($ac_try" in |
7fbd9d09 FCE |
5244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5245 | *) ac_try_echo=$ac_try;; | |
5246 | esac | |
e6364d79 MW |
5247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5248 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5249 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5250 | ac_status=$? |
e6364d79 MW |
5251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5252 | (exit $ac_status); } && | |
5253 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
7fbd9d09 FCE |
5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5255 | *) ac_try_echo=$ac_try;; | |
5256 | esac | |
e6364d79 MW |
5257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5258 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5259 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5260 | ac_status=$? |
e6364d79 MW |
5261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5262 | (exit $ac_status); }; | |
8ae7a94a FCE |
5263 | then |
5264 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5265 | if test "x$CC" != xcc; then | |
5266 | # Test first that cc exists at all. | |
5267 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
e6364d79 | 5268 | { (case "(($ac_try" in |
7fbd9d09 FCE |
5269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5270 | *) ac_try_echo=$ac_try;; | |
5271 | esac | |
e6364d79 MW |
5272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5273 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5274 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5275 | ac_status=$? |
e6364d79 MW |
5276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5277 | (exit $ac_status); }; }; then | |
7fbd9d09 FCE |
5278 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5279 | rm -f conftest2.* | |
e6364d79 | 5280 | if { (case "(($ac_try" in |
7fbd9d09 FCE |
5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5282 | *) ac_try_echo=$ac_try;; | |
5283 | esac | |
e6364d79 MW |
5284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5285 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5286 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5287 | ac_status=$? |
e6364d79 MW |
5288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5289 | (exit $ac_status); } && | |
5290 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
7fbd9d09 FCE |
5291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5292 | *) ac_try_echo=$ac_try;; | |
5293 | esac | |
e6364d79 MW |
5294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5295 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5296 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5297 | ac_status=$? |
e6364d79 MW |
5298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5299 | (exit $ac_status); }; | |
8ae7a94a FCE |
5300 | then |
5301 | # cc works too. | |
5302 | : | |
5303 | else | |
5304 | # cc exists but doesn't like -o. | |
5305 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5306 | fi | |
5307 | fi | |
5308 | fi | |
5309 | else | |
5310 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5311 | fi | |
7fbd9d09 | 5312 | rm -f core conftest* |
8ae7a94a FCE |
5313 | |
5314 | fi | |
7fbd9d09 | 5315 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
e6364d79 | 5316 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 5317 | $as_echo "yes" >&6; } |
8ae7a94a | 5318 | else |
e6364d79 | 5319 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 5320 | $as_echo "no" >&6; } |
8ae7a94a | 5321 | |
e6364d79 MW |
5322 | cat >>confdefs.h <<\_ACEOF |
5323 | #define NO_MINUS_C_MINUS_O 1 | |
5324 | _ACEOF | |
8ae7a94a FCE |
5325 | |
5326 | fi | |
5327 | ||
5328 | # FIXME: we rely on the cache variable name because | |
5329 | # there is no other way. | |
5330 | set dummy $CC | |
0710d850 DS |
5331 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5332 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
5333 | if test "$am_t" != yes; then | |
8ae7a94a FCE |
5334 | # Losing compiler, so override with the script. |
5335 | # FIXME: It is wrong to rewrite CC. | |
5336 | # But if we don't then we get into trouble of one sort or another. | |
5337 | # A longer-term fix would be to have automake use am__CC in this case, | |
5338 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5339 | CC="$am_aux_dir/compile $CC" | |
5340 | fi | |
5341 | ||
7fbd9d09 | 5342 | |
e6364d79 | 5343 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
0710d850 | 5344 | $as_echo_n "checking for function prototypes... " >&6; } |
7fbd9d09 | 5345 | if test "$ac_cv_prog_cc_c89" != no; then |
e6364d79 | 5346 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 5347 | $as_echo "yes" >&6; } |
2f1a1aea | 5348 | |
e6364d79 MW |
5349 | cat >>confdefs.h <<\_ACEOF |
5350 | #define PROTOTYPES 1 | |
5351 | _ACEOF | |
2f1a1aea FCE |
5352 | |
5353 | ||
e6364d79 MW |
5354 | cat >>confdefs.h <<\_ACEOF |
5355 | #define __PROTOTYPES 1 | |
5356 | _ACEOF | |
2f1a1aea FCE |
5357 | |
5358 | else | |
e6364d79 | 5359 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 5360 | $as_echo "no" >&6; } |
7fbd9d09 FCE |
5361 | fi |
5362 | ||
5363 | ||
5364 | ||
e6364d79 | 5365 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
0710d850 | 5366 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
e6364d79 | 5367 | if test "${ac_cv_path_GREP+set}" = set; then |
0710d850 | 5368 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 5369 | else |
0710d850 | 5370 | if test -z "$GREP"; then |
7fbd9d09 | 5371 | ac_path_GREP_found=false |
0710d850 DS |
5372 | # Loop through the user's path and test for each of PROGNAME-LIST |
5373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5374 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5375 | do | |
5376 | IFS=$as_save_IFS | |
5377 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 5378 | for ac_prog in grep ggrep; do |
0710d850 DS |
5379 | for ac_exec_ext in '' $ac_executable_extensions; do |
5380 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5381 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5382 | # Check for GNU ac_path_GREP and select it if it is found. | |
7fbd9d09 FCE |
5383 | # Check for GNU $ac_path_GREP |
5384 | case `"$ac_path_GREP" --version 2>&1` in | |
5385 | *GNU*) | |
5386 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5387 | *) | |
5388 | ac_count=0 | |
0710d850 | 5389 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5390 | while : |
5391 | do | |
5392 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5393 | mv "conftest.tmp" "conftest.in" | |
5394 | cp "conftest.in" "conftest.nl" | |
0710d850 | 5395 | $as_echo 'GREP' >> "conftest.nl" |
7fbd9d09 FCE |
5396 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5397 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
e6364d79 | 5398 | ac_count=`expr $ac_count + 1` |
7fbd9d09 FCE |
5399 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
5400 | # Best one so far, save it but keep looking for a better one | |
5401 | ac_cv_path_GREP="$ac_path_GREP" | |
5402 | ac_path_GREP_max=$ac_count | |
5403 | fi | |
5404 | # 10*(2^10) chars as input seems more than enough | |
5405 | test $ac_count -gt 10 && break | |
5406 | done | |
5407 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5408 | esac | |
5409 | ||
0710d850 DS |
5410 | $ac_path_GREP_found && break 3 |
5411 | done | |
7fbd9d09 | 5412 | done |
e6364d79 | 5413 | done |
7fbd9d09 | 5414 | IFS=$as_save_IFS |
0710d850 | 5415 | if test -z "$ac_cv_path_GREP"; then |
e6364d79 MW |
5416 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
5417 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5418 | { (exit 1); exit 1; }; } | |
0710d850 | 5419 | fi |
7fbd9d09 FCE |
5420 | else |
5421 | ac_cv_path_GREP=$GREP | |
70d28673 DS |
5422 | fi |
5423 | ||
7fbd9d09 | 5424 | fi |
e6364d79 | 5425 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
0710d850 | 5426 | $as_echo "$ac_cv_path_GREP" >&6; } |
7fbd9d09 FCE |
5427 | GREP="$ac_cv_path_GREP" |
5428 | ||
70d28673 | 5429 | |
e6364d79 | 5430 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
0710d850 | 5431 | $as_echo_n "checking for egrep... " >&6; } |
e6364d79 | 5432 | if test "${ac_cv_path_EGREP+set}" = set; then |
0710d850 | 5433 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
5434 | else |
5435 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5436 | then ac_cv_path_EGREP="$GREP -E" | |
5437 | else | |
0710d850 | 5438 | if test -z "$EGREP"; then |
7fbd9d09 | 5439 | ac_path_EGREP_found=false |
0710d850 DS |
5440 | # Loop through the user's path and test for each of PROGNAME-LIST |
5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5442 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5443 | do | |
5444 | IFS=$as_save_IFS | |
5445 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 5446 | for ac_prog in egrep; do |
0710d850 DS |
5447 | for ac_exec_ext in '' $ac_executable_extensions; do |
5448 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5449 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5450 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7fbd9d09 FCE |
5451 | # Check for GNU $ac_path_EGREP |
5452 | case `"$ac_path_EGREP" --version 2>&1` in | |
5453 | *GNU*) | |
5454 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5455 | *) | |
5456 | ac_count=0 | |
0710d850 | 5457 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5458 | while : |
5459 | do | |
5460 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5461 | mv "conftest.tmp" "conftest.in" | |
5462 | cp "conftest.in" "conftest.nl" | |
0710d850 | 5463 | $as_echo 'EGREP' >> "conftest.nl" |
7fbd9d09 FCE |
5464 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5465 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
e6364d79 | 5466 | ac_count=`expr $ac_count + 1` |
7fbd9d09 FCE |
5467 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5468 | # Best one so far, save it but keep looking for a better one | |
5469 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5470 | ac_path_EGREP_max=$ac_count | |
2f1a1aea | 5471 | fi |
7fbd9d09 FCE |
5472 | # 10*(2^10) chars as input seems more than enough |
5473 | test $ac_count -gt 10 && break | |
5474 | done | |
5475 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5476 | esac | |
5477 | ||
0710d850 DS |
5478 | $ac_path_EGREP_found && break 3 |
5479 | done | |
7fbd9d09 | 5480 | done |
e6364d79 | 5481 | done |
7fbd9d09 | 5482 | IFS=$as_save_IFS |
0710d850 | 5483 | if test -z "$ac_cv_path_EGREP"; then |
e6364d79 MW |
5484 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
5485 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5486 | { (exit 1); exit 1; }; } | |
0710d850 | 5487 | fi |
7fbd9d09 FCE |
5488 | else |
5489 | ac_cv_path_EGREP=$EGREP | |
5490 | fi | |
5491 | ||
7fbd9d09 | 5492 | fi |
2f1a1aea | 5493 | fi |
e6364d79 | 5494 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
0710d850 | 5495 | $as_echo "$ac_cv_path_EGREP" >&6; } |
7fbd9d09 | 5496 | EGREP="$ac_cv_path_EGREP" |
2f1a1aea FCE |
5497 | |
5498 | ||
e6364d79 | 5499 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
0710d850 | 5500 | $as_echo_n "checking for ANSI C header files... " >&6; } |
e6364d79 | 5501 | if test "${ac_cv_header_stdc+set}" = set; then |
0710d850 | 5502 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5503 | else |
e6364d79 MW |
5504 | cat >conftest.$ac_ext <<_ACEOF |
5505 | /* confdefs.h. */ | |
5506 | _ACEOF | |
5507 | cat confdefs.h >>conftest.$ac_ext | |
5508 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5509 | /* end confdefs.h. */ |
5510 | #include <stdlib.h> | |
5511 | #include <stdarg.h> | |
5512 | #include <string.h> | |
5513 | #include <float.h> | |
5514 | ||
5515 | int | |
5516 | main () | |
5517 | { | |
5518 | ||
5519 | ; | |
5520 | return 0; | |
5521 | } | |
5522 | _ACEOF | |
e6364d79 MW |
5523 | rm -f conftest.$ac_objext |
5524 | if { (ac_try="$ac_compile" | |
5525 | case "(($ac_try" in | |
5526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5527 | *) ac_try_echo=$ac_try;; | |
5528 | esac | |
5529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5530 | $as_echo "$ac_try_echo") >&5 | |
5531 | (eval "$ac_compile") 2>conftest.er1 | |
5532 | ac_status=$? | |
5533 | grep -v '^ *+' conftest.er1 >conftest.err | |
5534 | rm -f conftest.er1 | |
5535 | cat conftest.err >&5 | |
5536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5537 | (exit $ac_status); } && { | |
5538 | test -z "$ac_c_werror_flag" || | |
5539 | test ! -s conftest.err | |
5540 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5541 | ac_cv_header_stdc=yes |
5542 | else | |
e6364d79 MW |
5543 | $as_echo "$as_me: failed program was:" >&5 |
5544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5545 | ||
5546 | ac_cv_header_stdc=no | |
2f1a1aea | 5547 | fi |
e6364d79 | 5548 | |
7fbd9d09 | 5549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
5550 | |
5551 | if test $ac_cv_header_stdc = yes; then | |
5552 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
e6364d79 MW |
5553 | cat >conftest.$ac_ext <<_ACEOF |
5554 | /* confdefs.h. */ | |
5555 | _ACEOF | |
5556 | cat confdefs.h >>conftest.$ac_ext | |
5557 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5558 | /* end confdefs.h. */ |
5559 | #include <string.h> | |
5560 | ||
5561 | _ACEOF | |
5562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
e6364d79 MW |
5563 | $EGREP "memchr" >/dev/null 2>&1; then |
5564 | : | |
2f1a1aea FCE |
5565 | else |
5566 | ac_cv_header_stdc=no | |
5567 | fi | |
5568 | rm -f conftest* | |
5569 | ||
5570 | fi | |
5571 | ||
5572 | if test $ac_cv_header_stdc = yes; then | |
5573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
e6364d79 MW |
5574 | cat >conftest.$ac_ext <<_ACEOF |
5575 | /* confdefs.h. */ | |
5576 | _ACEOF | |
5577 | cat confdefs.h >>conftest.$ac_ext | |
5578 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5579 | /* end confdefs.h. */ |
5580 | #include <stdlib.h> | |
5581 | ||
5582 | _ACEOF | |
5583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
e6364d79 MW |
5584 | $EGREP "free" >/dev/null 2>&1; then |
5585 | : | |
2f1a1aea FCE |
5586 | else |
5587 | ac_cv_header_stdc=no | |
5588 | fi | |
5589 | rm -f conftest* | |
5590 | ||
5591 | fi | |
5592 | ||
5593 | if test $ac_cv_header_stdc = yes; then | |
5594 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
e6364d79 | 5595 | if test "$cross_compiling" = yes; then |
2f1a1aea FCE |
5596 | : |
5597 | else | |
e6364d79 MW |
5598 | cat >conftest.$ac_ext <<_ACEOF |
5599 | /* confdefs.h. */ | |
5600 | _ACEOF | |
5601 | cat confdefs.h >>conftest.$ac_ext | |
5602 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5603 | /* end confdefs.h. */ |
5604 | #include <ctype.h> | |
7fbd9d09 | 5605 | #include <stdlib.h> |
2f1a1aea FCE |
5606 | #if ((' ' & 0x0FF) == 0x020) |
5607 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5608 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5609 | #else | |
5610 | # define ISLOWER(c) \ | |
5611 | (('a' <= (c) && (c) <= 'i') \ | |
5612 | || ('j' <= (c) && (c) <= 'r') \ | |
5613 | || ('s' <= (c) && (c) <= 'z')) | |
5614 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5615 | #endif | |
5616 | ||
5617 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5618 | int | |
5619 | main () | |
5620 | { | |
5621 | int i; | |
5622 | for (i = 0; i < 256; i++) | |
5623 | if (XOR (islower (i), ISLOWER (i)) | |
5624 | || toupper (i) != TOUPPER (i)) | |
7fbd9d09 FCE |
5625 | return 2; |
5626 | return 0; | |
2f1a1aea FCE |
5627 | } |
5628 | _ACEOF | |
e6364d79 MW |
5629 | rm -f conftest$ac_exeext |
5630 | if { (ac_try="$ac_link" | |
5631 | case "(($ac_try" in | |
5632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5633 | *) ac_try_echo=$ac_try;; | |
5634 | esac | |
5635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5636 | $as_echo "$ac_try_echo") >&5 | |
5637 | (eval "$ac_link") 2>&5 | |
5638 | ac_status=$? | |
5639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5641 | { (case "(($ac_try" in | |
5642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5643 | *) ac_try_echo=$ac_try;; | |
5644 | esac | |
5645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5646 | $as_echo "$ac_try_echo") >&5 | |
5647 | (eval "$ac_try") 2>&5 | |
5648 | ac_status=$? | |
5649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5650 | (exit $ac_status); }; }; then | |
5651 | : | |
4b5627b1 | 5652 | else |
e6364d79 MW |
5653 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5654 | $as_echo "$as_me: failed program was:" >&5 | |
5655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5656 | ||
5657 | ( exit $ac_status ) | |
5658 | ac_cv_header_stdc=no | |
412e1bf7 | 5659 | fi |
e6364d79 MW |
5660 | rm -rf conftest.dSYM |
5661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
412e1bf7 FCE |
5662 | fi |
5663 | ||
e6364d79 | 5664 | |
412e1bf7 FCE |
5665 | fi |
5666 | fi | |
e6364d79 | 5667 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
0710d850 | 5668 | $as_echo "$ac_cv_header_stdc" >&6; } |
412e1bf7 FCE |
5669 | if test $ac_cv_header_stdc = yes; then |
5670 | ||
e6364d79 MW |
5671 | cat >>confdefs.h <<\_ACEOF |
5672 | #define STDC_HEADERS 1 | |
5673 | _ACEOF | |
412e1bf7 FCE |
5674 | |
5675 | fi | |
5676 | ||
5677 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
e6364d79 MW |
5678 | |
5679 | ||
5680 | ||
5681 | ||
5682 | ||
5683 | ||
5684 | ||
5685 | ||
5686 | ||
412e1bf7 FCE |
5687 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5688 | inttypes.h stdint.h unistd.h | |
e6364d79 MW |
5689 | do |
5690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5691 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5692 | $as_echo_n "checking for $ac_header... " >&6; } | |
5693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5694 | $as_echo_n "(cached) " >&6 | |
5695 | else | |
5696 | cat >conftest.$ac_ext <<_ACEOF | |
5697 | /* confdefs.h. */ | |
5698 | _ACEOF | |
5699 | cat confdefs.h >>conftest.$ac_ext | |
5700 | cat >>conftest.$ac_ext <<_ACEOF | |
5701 | /* end confdefs.h. */ | |
5702 | $ac_includes_default | |
5703 | ||
5704 | #include <$ac_header> | |
5705 | _ACEOF | |
5706 | rm -f conftest.$ac_objext | |
5707 | if { (ac_try="$ac_compile" | |
5708 | case "(($ac_try" in | |
5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5710 | *) ac_try_echo=$ac_try;; | |
5711 | esac | |
5712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5713 | $as_echo "$ac_try_echo") >&5 | |
5714 | (eval "$ac_compile") 2>conftest.er1 | |
5715 | ac_status=$? | |
5716 | grep -v '^ *+' conftest.er1 >conftest.err | |
5717 | rm -f conftest.er1 | |
5718 | cat conftest.err >&5 | |
5719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5720 | (exit $ac_status); } && { | |
5721 | test -z "$ac_c_werror_flag" || | |
5722 | test ! -s conftest.err | |
5723 | } && test -s conftest.$ac_objext; then | |
5724 | eval "$as_ac_Header=yes" | |
5725 | else | |
5726 | $as_echo "$as_me: failed program was:" >&5 | |
5727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5728 | ||
5729 | eval "$as_ac_Header=no" | |
5730 | fi | |
5731 | ||
5732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5733 | fi | |
5734 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5735 | $as_echo "$as_val"'` | |
5736 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5737 | $as_echo "$ac_res" >&6; } | |
5738 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5739 | $as_echo "$as_val"'` | |
5740 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5741 | cat >>confdefs.h <<_ACEOF |
0710d850 | 5742 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5743 | _ACEOF |
5744 | ||
5745 | fi | |
5746 | ||
5747 | done | |
5748 | ||
5749 | ||
5750 | ||
5751 | if test "$ac_cv_prog_cc_stdc" != no; then | |
5752 | U= ANSI2KNR= | |
5753 | else | |
5754 | U=_ ANSI2KNR=./ansi2knr | |
5755 | fi | |
5756 | # Ensure some checks needed by ansi2knr itself. | |
5757 | ||
e6364d79 | 5758 | |
2f1a1aea | 5759 | for ac_header in string.h |
e6364d79 MW |
5760 | do |
5761 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5763 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5764 | $as_echo_n "checking for $ac_header... " >&6; } | |
5765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5766 | $as_echo_n "(cached) " >&6 | |
5767 | fi | |
5768 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5769 | $as_echo "$as_val"'` | |
5770 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5771 | $as_echo "$ac_res" >&6; } | |
5772 | else | |
5773 | # Is the header compilable? | |
5774 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5775 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5776 | cat >conftest.$ac_ext <<_ACEOF | |
5777 | /* confdefs.h. */ | |
5778 | _ACEOF | |
5779 | cat confdefs.h >>conftest.$ac_ext | |
5780 | cat >>conftest.$ac_ext <<_ACEOF | |
5781 | /* end confdefs.h. */ | |
5782 | $ac_includes_default | |
5783 | #include <$ac_header> | |
412e1bf7 | 5784 | _ACEOF |
e6364d79 MW |
5785 | rm -f conftest.$ac_objext |
5786 | if { (ac_try="$ac_compile" | |
5787 | case "(($ac_try" in | |
5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5789 | *) ac_try_echo=$ac_try;; | |
5790 | esac | |
5791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5792 | $as_echo "$ac_try_echo") >&5 | |
5793 | (eval "$ac_compile") 2>conftest.er1 | |
5794 | ac_status=$? | |
5795 | grep -v '^ *+' conftest.er1 >conftest.err | |
5796 | rm -f conftest.er1 | |
5797 | cat conftest.err >&5 | |
5798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5799 | (exit $ac_status); } && { | |
5800 | test -z "$ac_c_werror_flag" || | |
5801 | test ! -s conftest.err | |
5802 | } && test -s conftest.$ac_objext; then | |
5803 | ac_header_compiler=yes | |
5804 | else | |
5805 | $as_echo "$as_me: failed program was:" >&5 | |
5806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
412e1bf7 | 5807 | |
e6364d79 | 5808 | ac_header_compiler=no |
412e1bf7 FCE |
5809 | fi |
5810 | ||
e6364d79 MW |
5811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5812 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5813 | $as_echo "$ac_header_compiler" >&6; } | |
2f1a1aea | 5814 | |
e6364d79 MW |
5815 | # Is the header present? |
5816 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5817 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5818 | cat >conftest.$ac_ext <<_ACEOF | |
5819 | /* confdefs.h. */ | |
5820 | _ACEOF | |
5821 | cat confdefs.h >>conftest.$ac_ext | |
5822 | cat >>conftest.$ac_ext <<_ACEOF | |
5823 | /* end confdefs.h. */ | |
5824 | #include <$ac_header> | |
5825 | _ACEOF | |
5826 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5827 | case "(($ac_try" in | |
5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5829 | *) ac_try_echo=$ac_try;; | |
5830 | esac | |
5831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5832 | $as_echo "$ac_try_echo") >&5 | |
5833 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5834 | ac_status=$? | |
5835 | grep -v '^ *+' conftest.er1 >conftest.err | |
5836 | rm -f conftest.er1 | |
5837 | cat conftest.err >&5 | |
5838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5839 | (exit $ac_status); } >/dev/null && { | |
5840 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5841 | test ! -s conftest.err | |
5842 | }; then | |
5843 | ac_header_preproc=yes | |
2f1a1aea | 5844 | else |
e6364d79 MW |
5845 | $as_echo "$as_me: failed program was:" >&5 |
5846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5847 | ||
5848 | ac_header_preproc=no | |
5849 | fi | |
5850 | ||
5851 | rm -f conftest.err conftest.$ac_ext | |
5852 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5853 | $as_echo "$ac_header_preproc" >&6; } | |
5854 | ||
5855 | # So? What about this header? | |
5856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5857 | yes:no: ) | |
5858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5859 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5861 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5862 | ac_header_preproc=yes | |
5863 | ;; | |
5864 | no:yes:* ) | |
5865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5866 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5868 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5870 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5872 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5874 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5876 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5877 | ( cat <<\_ASBOX | |
5878 | ## ------------------------------------------- ## | |
5879 | ## Report this to systemtap@sources.redhat.com ## | |
5880 | ## ------------------------------------------- ## | |
5881 | _ASBOX | |
5882 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5883 | ;; | |
5884 | esac | |
5885 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5886 | $as_echo_n "checking for $ac_header... " >&6; } | |
5887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | eval "$as_ac_Header=\$ac_header_preproc" | |
5891 | fi | |
5892 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5893 | $as_echo "$as_val"'` | |
5894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5895 | $as_echo "$ac_res" >&6; } | |
5896 | ||
5897 | fi | |
5898 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5899 | $as_echo "$as_val"'` | |
5900 | if test "x$as_val" = x""yes; then | |
5901 | cat >>confdefs.h <<_ACEOF | |
5902 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5903 | _ACEOF | |
5904 | ||
5905 | fi | |
5906 | ||
5907 | done | |
5908 | ||
5909 | ||
5910 | if test -n "$ac_tool_prefix"; then | |
5911 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5912 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5913 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5914 | $as_echo_n "checking for $ac_word... " >&6; } | |
5915 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5916 | $as_echo_n "(cached) " >&6 | |
5917 | else | |
5918 | if test -n "$RANLIB"; then | |
2f1a1aea FCE |
5919 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5920 | else | |
5921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5922 | for as_dir in $PATH | |
5923 | do | |
5924 | IFS=$as_save_IFS | |
5925 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 5926 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 5927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5928 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
e6364d79 | 5929 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5930 | break 2 |
5931 | fi | |
5932 | done | |
e6364d79 | 5933 | done |
7fbd9d09 | 5934 | IFS=$as_save_IFS |
2f1a1aea FCE |
5935 | |
5936 | fi | |
5937 | fi | |
5938 | RANLIB=$ac_cv_prog_RANLIB | |
5939 | if test -n "$RANLIB"; then | |
e6364d79 | 5940 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
0710d850 | 5941 | $as_echo "$RANLIB" >&6; } |
2f1a1aea | 5942 | else |
e6364d79 | 5943 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 5944 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5945 | fi |
5946 | ||
7fbd9d09 | 5947 | |
2f1a1aea FCE |
5948 | fi |
5949 | if test -z "$ac_cv_prog_RANLIB"; then | |
5950 | ac_ct_RANLIB=$RANLIB | |
5951 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5952 | set dummy ranlib; ac_word=$2 | |
e6364d79 | 5953 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 5954 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 5955 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
0710d850 | 5956 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5957 | else |
5958 | if test -n "$ac_ct_RANLIB"; then | |
5959 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5960 | else | |
5961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5962 | for as_dir in $PATH | |
5963 | do | |
5964 | IFS=$as_save_IFS | |
5965 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 5966 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 5967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5968 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
e6364d79 | 5969 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5970 | break 2 |
5971 | fi | |
5972 | done | |
e6364d79 | 5973 | done |
7fbd9d09 | 5974 | IFS=$as_save_IFS |
2f1a1aea | 5975 | |
2f1a1aea FCE |
5976 | fi |
5977 | fi | |
5978 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5979 | if test -n "$ac_ct_RANLIB"; then | |
e6364d79 | 5980 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
0710d850 | 5981 | $as_echo "$ac_ct_RANLIB" >&6; } |
2f1a1aea | 5982 | else |
e6364d79 | 5983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 5984 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5985 | fi |
5986 | ||
7fbd9d09 FCE |
5987 | if test "x$ac_ct_RANLIB" = x; then |
5988 | RANLIB=":" | |
5989 | else | |
5990 | case $cross_compiling:$ac_tool_warned in | |
5991 | yes:) | |
e6364d79 | 5992 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 5993 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
5994 | ac_tool_warned=yes ;; |
5995 | esac | |
5996 | RANLIB=$ac_ct_RANLIB | |
5997 | fi | |
2f1a1aea FCE |
5998 | else |
5999 | RANLIB="$ac_cv_prog_RANLIB" | |
6000 | fi | |
6001 | ||
6002 | ||
6003 | ||
e6364d79 MW |
6004 | # Find a good install program. We prefer a C program (faster), |
6005 | # so one script is as good as another. But avoid the broken or | |
6006 | # incompatible versions: | |
6007 | # SysV /etc/install, /usr/sbin/install | |
6008 | # SunOS /usr/etc/install | |
6009 | # IRIX /sbin/install | |
6010 | # AIX /bin/install | |
6011 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6012 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6013 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6014 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6015 | # OS/2's system install, which has a completely different semantic | |
6016 | # ./install, which can be erroneously created by make from ./install.sh. | |
6017 | # Reject install programs that cannot install multiple files. | |
6018 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
6019 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6020 | if test -z "$INSTALL"; then | |
6021 | if test "${ac_cv_path_install+set}" = set; then | |
6022 | $as_echo_n "(cached) " >&6 | |
6023 | else | |
6024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6025 | for as_dir in $PATH | |
6026 | do | |
6027 | IFS=$as_save_IFS | |
6028 | test -z "$as_dir" && as_dir=. | |
6029 | # Account for people who put trailing slashes in PATH elements. | |
6030 | case $as_dir/ in | |
6031 | ./ | .// | /cC/* | \ | |
6032 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6033 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
6034 | /usr/ucb/* ) ;; | |
6035 | *) | |
6036 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6037 | # Don't use installbsd from OSF since it installs stuff as root | |
6038 | # by default. | |
6039 | for ac_prog in ginstall scoinst install; do | |
6040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6041 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
6042 | if test $ac_prog = install && | |
6043 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6044 | # AIX install. It has an incompatible calling convention. | |
6045 | : | |
6046 | elif test $ac_prog = install && | |
6047 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6048 | # program-specific install script used by HP pwplus--don't use. | |
6049 | : | |
6050 | else | |
6051 | rm -rf conftest.one conftest.two conftest.dir | |
6052 | echo one > conftest.one | |
6053 | echo two > conftest.two | |
6054 | mkdir conftest.dir | |
6055 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
6056 | test -s conftest.one && test -s conftest.two && | |
6057 | test -s conftest.dir/conftest.one && | |
6058 | test -s conftest.dir/conftest.two | |
6059 | then | |
6060 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6061 | break 3 | |
6062 | fi | |
6063 | fi | |
6064 | fi | |
6065 | done | |
6066 | done | |
6067 | ;; | |
6068 | esac | |
6069 | ||
6070 | done | |
6071 | IFS=$as_save_IFS | |
6072 | ||
6073 | rm -rf conftest.one conftest.two conftest.dir | |
6074 | ||
6075 | fi | |
6076 | if test "${ac_cv_path_install+set}" = set; then | |
6077 | INSTALL=$ac_cv_path_install | |
6078 | else | |
6079 | # As a last resort, use the slow shell script. Don't cache a | |
6080 | # value for INSTALL within a source directory, because that will | |
6081 | # break other packages using the cache if that directory is | |
6082 | # removed, or if the value is a relative name. | |
6083 | INSTALL=$ac_install_sh | |
6084 | fi | |
6085 | fi | |
6086 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
6087 | $as_echo "$INSTALL" >&6; } | |
6088 | ||
6089 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6090 | # It thinks the first close brace ends the variable substitution. | |
6091 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6092 | ||
6093 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6094 | ||
6095 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2f1a1aea | 6096 | |
e6364d79 | 6097 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
6098 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
6099 | set x ${MAKE-make} | |
6100 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
e6364d79 | 6101 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
0710d850 | 6102 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
6103 | else |
6104 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 6105 | SHELL = /bin/sh |
2f1a1aea | 6106 | all: |
7fbd9d09 | 6107 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
6108 | _ACEOF |
6109 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
6110 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6111 | *@@@%%%=?*=@@@%%%*) | |
6112 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6113 | *) | |
6114 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6115 | esac | |
2f1a1aea FCE |
6116 | rm -f conftest.make |
6117 | fi | |
7fbd9d09 | 6118 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
e6364d79 | 6119 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 6120 | $as_echo "yes" >&6; } |
2f1a1aea FCE |
6121 | SET_MAKE= |
6122 | else | |
e6364d79 | 6123 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6124 | $as_echo "no" >&6; } |
2f1a1aea FCE |
6125 | SET_MAKE="MAKE=${MAKE-make}" |
6126 | fi | |
6127 | ||
6128 | ||
6129 | ||
6130 | ||
7fbd9d09 | 6131 | # Check whether --enable-perfmon was given. |
e6364d79 | 6132 | if test "${enable_perfmon+set}" = set; then |
7fbd9d09 | 6133 | enableval=$enable_perfmon; |
564eb0a8 DS |
6134 | if test "$enable_perfmon" != "no"; then |
6135 | CPPFLAGS="$CPPFLAGS -DPERFMON" | |
6136 | LIBS="$LIBS -lpfm" | |
6137 | if test "$enable_perfmon" != "yes"; then | |
6138 | CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include" | |
6139 | LDFLAGS="$LDFLAGS -L$enable_perfmon/lib" | |
6140 | fi | |
e6364d79 MW |
6141 | |
6142 | { $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5 | |
0710d850 | 6143 | $as_echo_n "checking for pfm_start in -lpfm... " >&6; } |
e6364d79 | 6144 | if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then |
0710d850 | 6145 | $as_echo_n "(cached) " >&6 |
47dd066d WC |
6146 | else |
6147 | ac_check_lib_save_LIBS=$LIBS | |
6148 | LIBS="-lpfm $LIBS" | |
e6364d79 MW |
6149 | cat >conftest.$ac_ext <<_ACEOF |
6150 | /* confdefs.h. */ | |
6151 | _ACEOF | |
6152 | cat confdefs.h >>conftest.$ac_ext | |
6153 | cat >>conftest.$ac_ext <<_ACEOF | |
47dd066d WC |
6154 | /* end confdefs.h. */ |
6155 | ||
7fbd9d09 FCE |
6156 | /* Override any GCC internal prototype to avoid an error. |
6157 | Use char because int might match the return type of a GCC | |
6158 | builtin and then its argument prototype would still apply. */ | |
47dd066d WC |
6159 | #ifdef __cplusplus |
6160 | extern "C" | |
6161 | #endif | |
47dd066d WC |
6162 | char pfm_start (); |
6163 | int | |
6164 | main () | |
6165 | { | |
7fbd9d09 | 6166 | return pfm_start (); |
47dd066d WC |
6167 | ; |
6168 | return 0; | |
6169 | } | |
6170 | _ACEOF | |
e6364d79 MW |
6171 | rm -f conftest.$ac_objext conftest$ac_exeext |
6172 | if { (ac_try="$ac_link" | |
6173 | case "(($ac_try" in | |
6174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6175 | *) ac_try_echo=$ac_try;; | |
6176 | esac | |
6177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6178 | $as_echo "$ac_try_echo") >&5 | |
6179 | (eval "$ac_link") 2>conftest.er1 | |
6180 | ac_status=$? | |
6181 | grep -v '^ *+' conftest.er1 >conftest.err | |
6182 | rm -f conftest.er1 | |
6183 | cat conftest.err >&5 | |
6184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6185 | (exit $ac_status); } && { | |
6186 | test -z "$ac_c_werror_flag" || | |
6187 | test ! -s conftest.err | |
6188 | } && test -s conftest$ac_exeext && { | |
6189 | test "$cross_compiling" = yes || | |
6190 | $as_test_x conftest$ac_exeext | |
6191 | }; then | |
47dd066d WC |
6192 | ac_cv_lib_pfm_pfm_start=yes |
6193 | else | |
e6364d79 MW |
6194 | $as_echo "$as_me: failed program was:" >&5 |
6195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6196 | ||
6197 | ac_cv_lib_pfm_pfm_start=no | |
47dd066d | 6198 | fi |
e6364d79 MW |
6199 | |
6200 | rm -rf conftest.dSYM | |
6201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6202 | conftest$ac_exeext conftest.$ac_ext | |
47dd066d WC |
6203 | LIBS=$ac_check_lib_save_LIBS |
6204 | fi | |
e6364d79 | 6205 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5 |
0710d850 | 6206 | $as_echo "$ac_cv_lib_pfm_pfm_start" >&6; } |
e6364d79 | 6207 | if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then |
47dd066d WC |
6208 | cat >>confdefs.h <<_ACEOF |
6209 | #define HAVE_LIBPFM 1 | |
6210 | _ACEOF | |
6211 | ||
6212 | LIBS="-lpfm $LIBS" | |
6213 | ||
6214 | else | |
6215 | ||
e6364d79 MW |
6216 | { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5 |
6217 | $as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;} | |
6218 | { (exit 1); exit 1; }; } | |
47dd066d WC |
6219 | fi |
6220 | ||
564eb0a8 | 6221 | fi |
7fbd9d09 FCE |
6222 | fi |
6223 | ||
70d28673 DS |
6224 | |
6225 | if test "${enable_prologues+set}" != set; then | |
e6364d79 | 6226 | { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5 |
0710d850 | 6227 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } |
70d28673 DS |
6228 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
6229 | echo ' yes ' | |
6230 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6231 | enable_prologues=yes | |
e6364d79 | 6232 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 6233 | $as_echo "yes" >&6; } |
70d28673 | 6234 | else |
e6364d79 | 6235 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6236 | $as_echo "no" >&6; } |
70d28673 DS |
6237 | fi |
6238 | fi | |
7fbd9d09 | 6239 | # Check whether --enable-prologues was given. |
e6364d79 | 6240 | if test "${enable_prologues+set}" = set; then |
7fbd9d09 | 6241 | enableval=$enable_prologues; |
70d28673 | 6242 | if test "$enable_prologues" = yes; then |
44f75386 | 6243 | |
e6364d79 MW |
6244 | cat >>confdefs.h <<\_ACEOF |
6245 | #define ENABLE_PROLOGUES /**/ | |
6246 | _ACEOF | |
44f75386 | 6247 | |
70d28673 | 6248 | fi |
7fbd9d09 | 6249 | fi |
70d28673 | 6250 | |
7fbd9d09 FCE |
6251 | |
6252 | # Check whether --enable-ssp was given. | |
e6364d79 | 6253 | if test "${enable_ssp+set}" = set; then |
7fbd9d09 FCE |
6254 | enableval=$enable_ssp; |
6255 | fi | |
9921a199 | 6256 | |
e6364d79 | 6257 | if test "x$enable_ssp" != xno; then |
bbfd8c1a FCE |
6258 | |
6259 | save_CFLAGS="$CFLAGS" | |
6260 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
6261 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6262 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
e6364d79 | 6263 | cat >conftest.$ac_ext <<_ACEOF |
bbfd8c1a FCE |
6264 | int something (); |
6265 | _ACEOF | |
e6364d79 MW |
6266 | rm -f conftest.$ac_objext |
6267 | if { (ac_try="$ac_compile" | |
6268 | case "(($ac_try" in | |
6269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6270 | *) ac_try_echo=$ac_try;; | |
6271 | esac | |
6272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6273 | $as_echo "$ac_try_echo") >&5 | |
6274 | (eval "$ac_compile") 2>conftest.er1 | |
6275 | ac_status=$? | |
6276 | grep -v '^ *+' conftest.er1 >conftest.err | |
6277 | rm -f conftest.er1 | |
6278 | cat conftest.err >&5 | |
6279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6280 | (exit $ac_status); } && { | |
6281 | test -z "$ac_c_werror_flag" || | |
6282 | test ! -s conftest.err | |
6283 | } && test -s conftest.$ac_objext; then | |
818ba2bc | 6284 | |
e6364d79 | 6285 | { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5 |
0710d850 | 6286 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} |
f0510eaa FCE |
6287 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6288 | CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a | 6289 | else |
e6364d79 MW |
6290 | $as_echo "$as_me: failed program was:" >&5 |
6291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bbfd8c1a | 6292 | |
e6364d79 MW |
6293 | |
6294 | { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5 | |
0710d850 | 6295 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} |
bbfd8c1a FCE |
6296 | CFLAGS="$save_CFLAGS" |
6297 | CXXFLAGS="$save_CXXFLAGS" | |
6298 | fi | |
e6364d79 | 6299 | |
7fbd9d09 | 6300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 6301 | fi |
70d28673 | 6302 | |
e6364d79 | 6303 | |
e1e3ba36 | 6304 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 6305 | # Check whether --enable-pie was given. |
e6364d79 | 6306 | if test "${enable_pie+set}" = set; then |
7fbd9d09 FCE |
6307 | enableval=$enable_pie; |
6308 | fi | |
8730f377 | 6309 | |
e6364d79 | 6310 | if test "x$enable_pie" == xyes; then |
8730f377 FCE |
6311 | |
6312 | save_CFLAGS="$CFLAGS" | |
6313 | save_CXXFLAGS="$CXXFLAGS" | |
6314 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
6315 | CFLAGS="$CFLAGS -fPIE" |
6316 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 | 6317 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
e6364d79 | 6318 | cat >conftest.$ac_ext <<_ACEOF |
8730f377 FCE |
6319 | void main () {} |
6320 | _ACEOF | |
e6364d79 MW |
6321 | rm -f conftest.$ac_objext conftest$ac_exeext |
6322 | if { (ac_try="$ac_link" | |
6323 | case "(($ac_try" in | |
6324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6325 | *) ac_try_echo=$ac_try;; | |
6326 | esac | |
6327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6328 | $as_echo "$ac_try_echo") >&5 | |
6329 | (eval "$ac_link") 2>conftest.er1 | |
6330 | ac_status=$? | |
6331 | grep -v '^ *+' conftest.er1 >conftest.err | |
6332 | rm -f conftest.er1 | |
6333 | cat conftest.err >&5 | |
6334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6335 | (exit $ac_status); } && { | |
6336 | test -z "$ac_c_werror_flag" || | |
6337 | test ! -s conftest.err | |
6338 | } && test -s conftest$ac_exeext && { | |
6339 | test "$cross_compiling" = yes || | |
6340 | $as_test_x conftest$ac_exeext | |
6341 | }; then | |
818ba2bc | 6342 | |
e6364d79 | 6343 | { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5 |
0710d850 | 6344 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} |
8730f377 FCE |
6345 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
6346 | # and interfere with the .so's built therein | |
5574ef2c | 6347 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 6348 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
6349 | PIECFLAGS="$CFLAGS" |
6350 | CFLAGS="$save_CFLAGS" | |
6351 | PIECXXFLAGS="$CXXFLAGS" | |
6352 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
6353 | |
6354 | else | |
e6364d79 MW |
6355 | $as_echo "$as_me: failed program was:" >&5 |
6356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8730f377 | 6357 | |
e6364d79 MW |
6358 | |
6359 | { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5 | |
0710d850 | 6360 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} |
5574ef2c | 6361 | PIECFLAGS="" |
8730f377 | 6362 | CFLAGS="$save_CFLAGS" |
5574ef2c | 6363 | PIECXXFLAGS="" |
8730f377 FCE |
6364 | CXXFLAGS="$save_CXXFLAGS" |
6365 | PIELDFLAGS="" | |
6366 | LDFLAGS="$save_LDFLAGS" | |
6367 | fi | |
e6364d79 MW |
6368 | |
6369 | rm -rf conftest.dSYM | |
6370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6371 | conftest$ac_exeext conftest.$ac_ext | |
8730f377 FCE |
6372 | fi |
6373 | ||
6374 | ||
6375 | ||
5574ef2c | 6376 | |
e6364d79 | 6377 | |
7fbd9d09 | 6378 | # Check whether --enable-sqlite was given. |
e6364d79 | 6379 | if test "${enable_sqlite+set}" = set; then |
7fbd9d09 | 6380 | enableval=$enable_sqlite; |
9921a199 | 6381 | else |
e8f3c2c2 | 6382 | enable_sqlite=check |
7fbd9d09 FCE |
6383 | fi |
6384 | sqlite3_LIBS= | |
e6364d79 MW |
6385 | if test "x$enable_sqlite" != xno; then |
6386 | { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 | |
0710d850 | 6387 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
e6364d79 | 6388 | if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then |
0710d850 | 6389 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
6390 | else |
6391 | ac_check_lib_save_LIBS=$LIBS | |
6392 | LIBS="-lsqlite3 $LIBS" | |
e6364d79 MW |
6393 | cat >conftest.$ac_ext <<_ACEOF |
6394 | /* confdefs.h. */ | |
6395 | _ACEOF | |
6396 | cat confdefs.h >>conftest.$ac_ext | |
6397 | cat >>conftest.$ac_ext <<_ACEOF | |
42feb3c0 WC |
6398 | /* end confdefs.h. */ |
6399 | ||
7fbd9d09 FCE |
6400 | /* Override any GCC internal prototype to avoid an error. |
6401 | Use char because int might match the return type of a GCC | |
6402 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
6403 | #ifdef __cplusplus |
6404 | extern "C" | |
6405 | #endif | |
6406 | char sqlite3_open (); | |
6407 | int | |
6408 | main () | |
6409 | { | |
7fbd9d09 | 6410 | return sqlite3_open (); |
42feb3c0 WC |
6411 | ; |
6412 | return 0; | |
6413 | } | |
6414 | _ACEOF | |
e6364d79 MW |
6415 | rm -f conftest.$ac_objext conftest$ac_exeext |
6416 | if { (ac_try="$ac_link" | |
6417 | case "(($ac_try" in | |
6418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6419 | *) ac_try_echo=$ac_try;; | |
6420 | esac | |
6421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6422 | $as_echo "$ac_try_echo") >&5 | |
6423 | (eval "$ac_link") 2>conftest.er1 | |
6424 | ac_status=$? | |
6425 | grep -v '^ *+' conftest.er1 >conftest.err | |
6426 | rm -f conftest.er1 | |
6427 | cat conftest.err >&5 | |
6428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6429 | (exit $ac_status); } && { | |
6430 | test -z "$ac_c_werror_flag" || | |
6431 | test ! -s conftest.err | |
6432 | } && test -s conftest$ac_exeext && { | |
6433 | test "$cross_compiling" = yes || | |
6434 | $as_test_x conftest$ac_exeext | |
6435 | }; then | |
42feb3c0 WC |
6436 | ac_cv_lib_sqlite3_sqlite3_open=yes |
6437 | else | |
e6364d79 MW |
6438 | $as_echo "$as_me: failed program was:" >&5 |
6439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6440 | ||
6441 | ac_cv_lib_sqlite3_sqlite3_open=no | |
42feb3c0 | 6442 | fi |
e6364d79 MW |
6443 | |
6444 | rm -rf conftest.dSYM | |
6445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6446 | conftest$ac_exeext conftest.$ac_ext | |
42feb3c0 WC |
6447 | LIBS=$ac_check_lib_save_LIBS |
6448 | fi | |
e6364d79 | 6449 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
0710d850 | 6450 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
e6364d79 | 6451 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then |
9921a199 | 6452 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 6453 | |
0d563e60 | 6454 | |
e6364d79 MW |
6455 | cat >>confdefs.h <<\_ACEOF |
6456 | #define HAVE_LIBSQLITE3 1 | |
6457 | _ACEOF | |
07606685 | 6458 | |
9921a199 DS |
6459 | else |
6460 | if test "x$enable_sqlite" != xcheck; then | |
e6364d79 | 6461 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 6462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
6463 | { { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed |
6464 | See \`config.log' for more details." >&5 | |
6465 | $as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed | |
6466 | See \`config.log' for more details." >&2;} | |
6467 | { (exit 1); exit 1; }; }; } | |
9921a199 | 6468 | fi |
42feb3c0 WC |
6469 | fi |
6470 | ||
9921a199 | 6471 | fi |
44f75386 | 6472 | |
e6364d79 | 6473 | |
6d14a4a9 | 6474 | # Check whether --enable-translator was given. |
e6364d79 | 6475 | if test "${enable_translator+set}" = set; then |
6d14a4a9 EB |
6476 | enableval=$enable_translator; |
6477 | else | |
6478 | enable_translator="yes" | |
6479 | fi | |
6480 | ||
6481 | if test "$enable_translator" == "yes"; then | |
6482 | BUILD_TRANSLATOR_TRUE= | |
6483 | BUILD_TRANSLATOR_FALSE='#' | |
6484 | else | |
6485 | BUILD_TRANSLATOR_TRUE='#' | |
6486 | BUILD_TRANSLATOR_FALSE= | |
6487 | fi | |
6488 | ||
6489 | ||
7fbd9d09 | 6490 | # Check whether --enable-crash was given. |
e6364d79 | 6491 | if test "${enable_crash+set}" = set; then |
7fbd9d09 | 6492 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
6493 | save_CPPFLAGS="$CPPFLAGS" |
6494 | if test "$enable_crash" != "yes"; then | |
6495 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 6496 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 6497 | |
412e1bf7 | 6498 | fi |
e6364d79 MW |
6499 | |
6500 | for ac_header in crash/defs.h | |
6501 | do | |
6502 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6503 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6504 | $as_echo_n "checking for $ac_header... " >&6; } | |
6505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6506 | $as_echo_n "(cached) " >&6 | |
6507 | else | |
6508 | cat >conftest.$ac_ext <<_ACEOF | |
6509 | /* confdefs.h. */ | |
6510 | _ACEOF | |
6511 | cat confdefs.h >>conftest.$ac_ext | |
6512 | cat >>conftest.$ac_ext <<_ACEOF | |
6513 | /* end confdefs.h. */ | |
6514 | ||
4a3c19da | 6515 | #define NR_CPUS 256 |
7fbd9d09 | 6516 | |
e6364d79 MW |
6517 | |
6518 | #include <$ac_header> | |
6519 | _ACEOF | |
6520 | rm -f conftest.$ac_objext | |
6521 | if { (ac_try="$ac_compile" | |
6522 | case "(($ac_try" in | |
6523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6524 | *) ac_try_echo=$ac_try;; | |
6525 | esac | |
6526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6527 | $as_echo "$ac_try_echo") >&5 | |
6528 | (eval "$ac_compile") 2>conftest.er1 | |
6529 | ac_status=$? | |
6530 | grep -v '^ *+' conftest.er1 >conftest.err | |
6531 | rm -f conftest.er1 | |
6532 | cat conftest.err >&5 | |
6533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6534 | (exit $ac_status); } && { | |
6535 | test -z "$ac_c_werror_flag" || | |
6536 | test ! -s conftest.err | |
6537 | } && test -s conftest.$ac_objext; then | |
6538 | eval "$as_ac_Header=yes" | |
6539 | else | |
6540 | $as_echo "$as_me: failed program was:" >&5 | |
6541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6542 | ||
6543 | eval "$as_ac_Header=no" | |
6544 | fi | |
6545 | ||
6546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6547 | fi | |
6548 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6549 | $as_echo "$as_val"'` | |
6550 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6551 | $as_echo "$ac_res" >&6; } | |
6552 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6553 | $as_echo "$as_val"'` | |
6554 | if test "x$as_val" = x""yes; then | |
35a04c8e | 6555 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 6556 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35a04c8e | 6557 | _ACEOF |
564eb0a8 | 6558 | |
35a04c8e | 6559 | else |
e6364d79 MW |
6560 | { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5 |
6561 | $as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;} | |
6562 | { (exit 1); exit 1; }; } | |
35a04c8e FCE |
6563 | fi |
6564 | ||
6565 | done | |
6566 | ||
564eb0a8 DS |
6567 | CPPFLAGS="$save_CPPFLAGS" |
6568 | fi | |
6569 | else | |
6570 | enable_crash="no" | |
7fbd9d09 | 6571 | fi |
564eb0a8 | 6572 | |
7fbd9d09 | 6573 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
6574 | BUILD_CRASHMOD_TRUE= |
6575 | BUILD_CRASHMOD_FALSE='#' | |
6576 | else | |
6577 | BUILD_CRASHMOD_TRUE='#' | |
6578 | BUILD_CRASHMOD_FALSE= | |
6579 | fi | |
6580 | ||
6581 | ||
92aff3c7 | 6582 | building_docs="no" |
7fbd9d09 | 6583 | # Check whether --enable-docs was given. |
e6364d79 | 6584 | if test "${enable_docs+set}" = set; then |
7fbd9d09 | 6585 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
6586 | else |
6587 | enable_docs="check" | |
7fbd9d09 FCE |
6588 | fi |
6589 | ||
465e8fbf FCE |
6590 | # Extract the first word of "latex", so it can be a program name with args. |
6591 | set dummy latex; ac_word=$2 | |
e6364d79 | 6592 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6593 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6594 | if test "${ac_cv_prog_have_latex+set}" = set; then |
0710d850 | 6595 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6596 | else |
6597 | if test -n "$have_latex"; then | |
6598 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
6599 | else | |
6600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6601 | for as_dir in $PATH | |
6602 | do | |
6603 | IFS=$as_save_IFS | |
6604 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6605 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6607 | ac_cv_prog_have_latex="yes" |
e6364d79 | 6608 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6609 | break 2 |
6610 | fi | |
6611 | done | |
e6364d79 | 6612 | done |
7fbd9d09 | 6613 | IFS=$as_save_IFS |
465e8fbf FCE |
6614 | |
6615 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
6616 | fi | |
6617 | fi | |
6618 | have_latex=$ac_cv_prog_have_latex | |
6619 | if test -n "$have_latex"; then | |
e6364d79 | 6620 | { $as_echo "$as_me:$LINENO: result: $have_latex" >&5 |
0710d850 | 6621 | $as_echo "$have_latex" >&6; } |
465e8fbf | 6622 | else |
e6364d79 | 6623 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6624 | $as_echo "no" >&6; } |
465e8fbf FCE |
6625 | fi |
6626 | ||
7fbd9d09 | 6627 | |
465e8fbf FCE |
6628 | # Extract the first word of "dvips", so it can be a program name with args. |
6629 | set dummy dvips; ac_word=$2 | |
e6364d79 | 6630 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6631 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6632 | if test "${ac_cv_prog_have_dvips+set}" = set; then |
0710d850 | 6633 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6634 | else |
6635 | if test -n "$have_dvips"; then | |
6636 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
6637 | else | |
6638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6639 | for as_dir in $PATH | |
6640 | do | |
6641 | IFS=$as_save_IFS | |
6642 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6643 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6645 | ac_cv_prog_have_dvips="yes" |
e6364d79 | 6646 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6647 | break 2 |
6648 | fi | |
6649 | done | |
e6364d79 | 6650 | done |
7fbd9d09 | 6651 | IFS=$as_save_IFS |
465e8fbf FCE |
6652 | |
6653 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
6654 | fi | |
6655 | fi | |
6656 | have_dvips=$ac_cv_prog_have_dvips | |
6657 | if test -n "$have_dvips"; then | |
e6364d79 | 6658 | { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5 |
0710d850 | 6659 | $as_echo "$have_dvips" >&6; } |
465e8fbf | 6660 | else |
e6364d79 | 6661 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6662 | $as_echo "no" >&6; } |
465e8fbf FCE |
6663 | fi |
6664 | ||
7fbd9d09 | 6665 | |
465e8fbf FCE |
6666 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
6667 | set dummy ps2pdf; ac_word=$2 | |
e6364d79 | 6668 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6669 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6670 | if test "${ac_cv_prog_have_ps2pdf+set}" = set; then |
0710d850 | 6671 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6672 | else |
6673 | if test -n "$have_ps2pdf"; then | |
6674 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
6675 | else | |
6676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6677 | for as_dir in $PATH | |
6678 | do | |
6679 | IFS=$as_save_IFS | |
6680 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6681 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6683 | ac_cv_prog_have_ps2pdf="yes" |
e6364d79 | 6684 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6685 | break 2 |
6686 | fi | |
6687 | done | |
e6364d79 | 6688 | done |
7fbd9d09 | 6689 | IFS=$as_save_IFS |
465e8fbf FCE |
6690 | |
6691 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
6692 | fi | |
6693 | fi | |
6694 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
6695 | if test -n "$have_ps2pdf"; then | |
e6364d79 | 6696 | { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5 |
0710d850 | 6697 | $as_echo "$have_ps2pdf" >&6; } |
465e8fbf | 6698 | else |
e6364d79 | 6699 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6700 | $as_echo "no" >&6; } |
465e8fbf FCE |
6701 | fi |
6702 | ||
7fbd9d09 | 6703 | |
b62c413b EM |
6704 | # Extract the first word of "latex2html", so it can be a program name with args. |
6705 | set dummy latex2html; ac_word=$2 | |
e6364d79 | 6706 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6707 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6708 | if test "${ac_cv_prog_have_latex2html+set}" = set; then |
0710d850 | 6709 | $as_echo_n "(cached) " >&6 |
b62c413b EM |
6710 | else |
6711 | if test -n "$have_latex2html"; then | |
6712 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
6713 | else | |
6714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6715 | for as_dir in $PATH | |
6716 | do | |
6717 | IFS=$as_save_IFS | |
6718 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6719 | for ac_exec_ext in '' $ac_executable_extensions; do |
b62c413b EM |
6720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6721 | ac_cv_prog_have_latex2html="yes" | |
e6364d79 | 6722 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b62c413b EM |
6723 | break 2 |
6724 | fi | |
6725 | done | |
e6364d79 | 6726 | done |
b62c413b EM |
6727 | IFS=$as_save_IFS |
6728 | ||
6729 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
6730 | fi | |
6731 | fi | |
6732 | have_latex2html=$ac_cv_prog_have_latex2html | |
6733 | if test -n "$have_latex2html"; then | |
e6364d79 | 6734 | { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5 |
0710d850 | 6735 | $as_echo "$have_latex2html" >&6; } |
b62c413b | 6736 | else |
e6364d79 | 6737 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6738 | $as_echo "no" >&6; } |
b62c413b EM |
6739 | fi |
6740 | ||
6741 | ||
6742 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then | |
2d4b8ddf | 6743 | if test "$enable_docs" == "yes"; then |
e6364d79 MW |
6744 | { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5 |
6745 | $as_echo "$as_me: error: cannot find all tools for building documentation" >&2;} | |
6746 | { (exit 1); exit 1; }; } | |
465e8fbf | 6747 | fi |
2d4b8ddf | 6748 | if test "$enable_docs" == "check"; then |
e6364d79 | 6749 | { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5 |
0710d850 | 6750 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} |
2d4b8ddf | 6751 | fi |
465e8fbf | 6752 | fi |
b62c413b | 6753 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
6754 | building_docs="yes" |
6755 | fi | |
7fbd9d09 | 6756 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
6757 | BUILD_DOCS_TRUE= |
6758 | BUILD_DOCS_FALSE='#' | |
6759 | else | |
6760 | BUILD_DOCS_TRUE='#' | |
6761 | BUILD_DOCS_FALSE= | |
6762 | fi | |
6763 | ||
6764 | ||
53ade4da MW |
6765 | building_publican="no" |
6766 | # Check whether --enable-publican was given. | |
e6364d79 | 6767 | if test "${enable_publican+set}" = set; then |
53ade4da MW |
6768 | enableval=$enable_publican; enable_publican=$enableval |
6769 | else | |
6770 | enable_publican="check" | |
6771 | fi | |
6772 | ||
6773 | if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then | |
e6364d79 MW |
6774 | { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-publican" >&5 |
6775 | $as_echo "$as_me: error: must use --enable-docs with --enable-publican" >&2;} | |
6776 | { (exit 1); exit 1; }; } | |
53ade4da MW |
6777 | fi |
6778 | # Extract the first word of "publican", so it can be a program name with args. | |
6779 | set dummy publican; ac_word=$2 | |
e6364d79 | 6780 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
53ade4da | 6781 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6782 | if test "${ac_cv_prog_have_publican+set}" = set; then |
53ade4da MW |
6783 | $as_echo_n "(cached) " >&6 |
6784 | else | |
6785 | if test -n "$have_publican"; then | |
6786 | ac_cv_prog_have_publican="$have_publican" # Let the user override the test. | |
6787 | else | |
6788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6789 | for as_dir in $PATH | |
6790 | do | |
6791 | IFS=$as_save_IFS | |
6792 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6793 | for ac_exec_ext in '' $ac_executable_extensions; do |
53ade4da MW |
6794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6795 | ac_cv_prog_have_publican="yes" | |
e6364d79 | 6796 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
53ade4da MW |
6797 | break 2 |
6798 | fi | |
6799 | done | |
e6364d79 | 6800 | done |
53ade4da MW |
6801 | IFS=$as_save_IFS |
6802 | ||
6803 | test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no" | |
6804 | fi | |
6805 | fi | |
6806 | have_publican=$ac_cv_prog_have_publican | |
6807 | if test -n "$have_publican"; then | |
e6364d79 | 6808 | { $as_echo "$as_me:$LINENO: result: $have_publican" >&5 |
53ade4da MW |
6809 | $as_echo "$have_publican" >&6; } |
6810 | else | |
e6364d79 | 6811 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
53ade4da MW |
6812 | $as_echo "no" >&6; } |
6813 | fi | |
6814 | ||
6815 | ||
6816 | if test "$enable_publican" == "yes"; then | |
6817 | if test "x${have_publican}" != "xyes"; then | |
e6364d79 MW |
6818 | { { $as_echo "$as_me:$LINENO: error: cannot find publican for building publican guides" >&5 |
6819 | $as_echo "$as_me: error: cannot find publican for building publican guides" >&2;} | |
6820 | { (exit 1); exit 1; }; } | |
53ade4da MW |
6821 | fi |
6822 | fi | |
6823 | if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then | |
6824 | building_publican="yes" | |
6825 | fi | |
6826 | if test "$building_publican" == "yes"; then | |
6827 | BUILD_PUBLICAN_TRUE= | |
6828 | BUILD_PUBLICAN_FALSE='#' | |
6829 | else | |
6830 | BUILD_PUBLICAN_TRUE='#' | |
6831 | BUILD_PUBLICAN_FALSE= | |
6832 | fi | |
6833 | ||
89bc1a6a | 6834 | publican_brand="common" |
53ade4da MW |
6835 | |
6836 | # Check whether --with-publican-brand was given. | |
e6364d79 | 6837 | if test "${with_publican_brand+set}" = set; then |
53ade4da MW |
6838 | withval=$with_publican_brand; publican_brand=$withval |
6839 | else | |
89bc1a6a | 6840 | publican_brand="common" |
53ade4da MW |
6841 | fi |
6842 | ||
6843 | PUBLICAN_BRAND=$publican_brand | |
6844 | ||
6845 | ||
92aff3c7 | 6846 | building_refdocs="no" |
7fbd9d09 | 6847 | # Check whether --enable-refdocs was given. |
e6364d79 | 6848 | if test "${enable_refdocs+set}" = set; then |
7fbd9d09 | 6849 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
6850 | else |
6851 | enable_refdocs="check" | |
7fbd9d09 FCE |
6852 | fi |
6853 | ||
92aff3c7 | 6854 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
e6364d79 MW |
6855 | { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5 |
6856 | $as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;} | |
6857 | { (exit 1); exit 1; }; } | |
92aff3c7 WC |
6858 | fi |
6859 | # Extract the first word of "xmlto", so it can be a program name with args. | |
6860 | set dummy xmlto; ac_word=$2 | |
e6364d79 | 6861 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6862 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6863 | if test "${ac_cv_prog_have_xmlto+set}" = set; then |
0710d850 | 6864 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
6865 | else |
6866 | if test -n "$have_xmlto"; then | |
6867 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
6868 | else | |
6869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6870 | for as_dir in $PATH | |
6871 | do | |
6872 | IFS=$as_save_IFS | |
6873 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 6874 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
92aff3c7 | 6876 | ac_cv_prog_have_xmlto="yes" |
e6364d79 | 6877 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
6878 | break 2 |
6879 | fi | |
6880 | done | |
e6364d79 | 6881 | done |
7fbd9d09 | 6882 | IFS=$as_save_IFS |
92aff3c7 WC |
6883 | |
6884 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
6885 | fi | |
6886 | fi | |
6887 | have_xmlto=$ac_cv_prog_have_xmlto | |
6888 | if test -n "$have_xmlto"; then | |
e6364d79 | 6889 | { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5 |
0710d850 | 6890 | $as_echo "$have_xmlto" >&6; } |
92aff3c7 | 6891 | else |
e6364d79 | 6892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6893 | $as_echo "no" >&6; } |
92aff3c7 WC |
6894 | fi |
6895 | ||
7fbd9d09 | 6896 | |
ccf8bc85 EM |
6897 | if test "$enable_refdocs" == "yes"; then |
6898 | if test "x${have_xmlto}" != "xyes"; then | |
e6364d79 MW |
6899 | { { $as_echo "$as_me:$LINENO: error: cannot find xmlto for building reference documentation" >&5 |
6900 | $as_echo "$as_me: error: cannot find xmlto for building reference documentation" >&2;} | |
6901 | { (exit 1); exit 1; }; } | |
ccf8bc85 EM |
6902 | fi |
6903 | fi | |
6904 | if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then | |
6905 | building_refdocs="yes" | |
6906 | fi | |
6907 | if test "$building_refdocs" == "yes"; then | |
6908 | BUILD_REFDOCS_TRUE= | |
6909 | BUILD_REFDOCS_FALSE='#' | |
6910 | else | |
6911 | BUILD_REFDOCS_TRUE='#' | |
6912 | BUILD_REFDOCS_FALSE= | |
6913 | fi | |
6914 | ||
6915 | ||
468abaf4 | 6916 | cat > conftest.xml << 'EOF' |
aa5951be WC |
6917 | <?xml version="1.0" encoding="UTF-8"?> |
6918 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
6919 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
6920 | <book lang="en"> |
6921 | <bookinfo><title>foo</title></bookinfo> | |
a8fcf687 MW |
6922 | <chapter id="logging.stp"><title>Logging Tapset</title> |
6923 | <refentry id="API-log"><refnamediv><refname>log</refname> | |
6924 | <refpurpose>logging</refpurpose></refnamediv> | |
6925 | <refsect1><title>Description</title> | |
6926 | <para>baz</para></refsect1></refentry></chapter> | |
aa5951be WC |
6927 | </book> |
6928 | EOF | |
468abaf4 FCE |
6929 | |
6930 | if test "x${have_xmlto}" == "xyes"; then | |
e6364d79 | 6931 | { $as_echo "$as_me:$LINENO: checking for xmlto --stringparam support" >&5 |
0710d850 | 6932 | $as_echo_n "checking for xmlto --stringparam support... " >&6; } |
4b5627b1 | 6933 | xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
6934 | if test $? == 0; then |
6935 | have_xmlto_stringparam="yes" | |
e6364d79 | 6936 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 6937 | $as_echo "yes" >&6; } |
468abaf4 | 6938 | else |
e6364d79 | 6939 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6940 | $as_echo "no" >&6; } |
468abaf4 | 6941 | fi |
4b5627b1 | 6942 | rm -f conftest.html |
468abaf4 FCE |
6943 | fi |
6944 | if test "$have_xmlto_stringparam" == "yes"; then | |
6945 | XMLTO_STRINGPARAM_TRUE= | |
6946 | XMLTO_STRINGPARAM_FALSE='#' | |
6947 | else | |
6948 | XMLTO_STRINGPARAM_TRUE='#' | |
6949 | XMLTO_STRINGPARAM_FALSE= | |
6950 | fi | |
6951 | ||
6952 | ||
6953 | if test "x${building_refdocs}" == "xyes"; then | |
e6364d79 | 6954 | { $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5 |
0710d850 | 6955 | $as_echo_n "checking for xmlto pdf support... " >&6; } |
468abaf4 | 6956 | xmlto pdf conftest.xml >& /dev/null |
aa5951be WC |
6957 | if test $? == 0; then |
6958 | have_xmlto_pdf="yes" | |
e6364d79 | 6959 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 6960 | $as_echo "yes" >&6; } |
aa5951be | 6961 | else |
e6364d79 | 6962 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 6963 | $as_echo "no" >&6; } |
e6364d79 | 6964 | { $as_echo "$as_me:$LINENO: WARNING: Not building reference documentation in PDF format" >&5 |
0710d850 | 6965 | $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;} |
aa5951be | 6966 | fi |
468abaf4 | 6967 | rm -f conftest.pdf |
aa5951be | 6968 | fi |
a8fcf687 | 6969 | if test "$have_xmlto_pdf" == "yes"; then |
ccf8bc85 EM |
6970 | BUILD_PDFREFDOCS_TRUE= |
6971 | BUILD_PDFREFDOCS_FALSE='#' | |
92aff3c7 | 6972 | else |
ccf8bc85 EM |
6973 | BUILD_PDFREFDOCS_TRUE='#' |
6974 | BUILD_PDFREFDOCS_FALSE= | |
92aff3c7 WC |
6975 | fi |
6976 | ||
6977 | ||
468abaf4 FCE |
6978 | rm -f conftest.xml |
6979 | ||
6980 | ||
7fbd9d09 | 6981 | # Check whether --enable-server was given. |
e6364d79 | 6982 | if test "${enable_server+set}" = set; then |
7fbd9d09 | 6983 | enableval=$enable_server; enable_server=$enableval |
19a0d4b6 MW |
6984 | else |
6985 | enable_server="check" | |
7fbd9d09 FCE |
6986 | fi |
6987 | ||
6462165c JS |
6988 | if test "$enable_server" != "no"; then |
6989 | # Extract the first word of "certutil", so it can be a program name with args. | |
07f82253 | 6990 | set dummy certutil; ac_word=$2 |
e6364d79 | 6991 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 6992 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 6993 | if test "${ac_cv_prog_have_certutil+set}" = set; then |
0710d850 | 6994 | $as_echo_n "(cached) " >&6 |
07f82253 MW |
6995 | else |
6996 | if test -n "$have_certutil"; then | |
6997 | ac_cv_prog_have_certutil="$have_certutil" # Let the user override the test. | |
6998 | else | |
6999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7000 | for as_dir in $PATH | |
7001 | do | |
7002 | IFS=$as_save_IFS | |
7003 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 7004 | for ac_exec_ext in '' $ac_executable_extensions; do |
07f82253 MW |
7005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7006 | ac_cv_prog_have_certutil="yes" | |
e6364d79 | 7007 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
07f82253 MW |
7008 | break 2 |
7009 | fi | |
7010 | done | |
e6364d79 | 7011 | done |
07f82253 MW |
7012 | IFS=$as_save_IFS |
7013 | ||
7014 | test -z "$ac_cv_prog_have_certutil" && ac_cv_prog_have_certutil="no" | |
7015 | fi | |
7016 | fi | |
7017 | have_certutil=$ac_cv_prog_have_certutil | |
7018 | if test -n "$have_certutil"; then | |
e6364d79 | 7019 | { $as_echo "$as_me:$LINENO: result: $have_certutil" >&5 |
0710d850 | 7020 | $as_echo "$have_certutil" >&6; } |
07f82253 | 7021 | else |
e6364d79 | 7022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7023 | $as_echo "no" >&6; } |
07f82253 MW |
7024 | fi |
7025 | ||
7026 | ||
e6364d79 | 7027 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5 |
0710d850 | 7028 | $as_echo_n "checking for /usr/include/nss3... " >&6; } |
e6364d79 | 7029 | if test "${ac_cv_file__usr_include_nss3+set}" = set; then |
0710d850 | 7030 | $as_echo_n "(cached) " >&6 |
43498922 | 7031 | else |
8ca54d60 | 7032 | test "$cross_compiling" = yes && |
e6364d79 MW |
7033 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
7034 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
7035 | { (exit 1); exit 1; }; } | |
8ca54d60 EB |
7036 | if test -r "/usr/include/nss3"; then |
7037 | ac_cv_file__usr_include_nss3=yes | |
7038 | else | |
7039 | ac_cv_file__usr_include_nss3=no | |
43498922 | 7040 | fi |
8ca54d60 | 7041 | fi |
e6364d79 | 7042 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5 |
0710d850 | 7043 | $as_echo "$ac_cv_file__usr_include_nss3" >&6; } |
e6364d79 | 7044 | if test "x$ac_cv_file__usr_include_nss3" = x""yes; then |
8ca54d60 | 7045 | nssdir=nss3 |
43498922 | 7046 | else |
8ca54d60 | 7047 | |
e6364d79 | 7048 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5 |
0710d850 | 7049 | $as_echo_n "checking for /usr/include/nss... " >&6; } |
e6364d79 | 7050 | if test "${ac_cv_file__usr_include_nss+set}" = set; then |
0710d850 | 7051 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
7052 | else |
7053 | test "$cross_compiling" = yes && | |
e6364d79 MW |
7054 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
7055 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
7056 | { (exit 1); exit 1; }; } | |
8ca54d60 EB |
7057 | if test -r "/usr/include/nss"; then |
7058 | ac_cv_file__usr_include_nss=yes | |
7059 | else | |
7060 | ac_cv_file__usr_include_nss=no | |
7061 | fi | |
7062 | fi | |
e6364d79 | 7063 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5 |
0710d850 | 7064 | $as_echo "$ac_cv_file__usr_include_nss" >&6; } |
e6364d79 | 7065 | if test "x$ac_cv_file__usr_include_nss" = x""yes; then |
8ca54d60 | 7066 | nssdir=nss |
43498922 DB |
7067 | fi |
7068 | ||
7069 | ||
7070 | fi | |
8ca54d60 | 7071 | |
e6364d79 | 7072 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5 |
0710d850 | 7073 | $as_echo_n "checking for /usr/include/nspr4... " >&6; } |
e6364d79 | 7074 | if test "${ac_cv_file__usr_include_nspr4+set}" = set; then |
0710d850 | 7075 | $as_echo_n "(cached) " >&6 |
43498922 | 7076 | else |
8ca54d60 | 7077 | test "$cross_compiling" = yes && |
e6364d79 MW |
7078 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
7079 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
7080 | { (exit 1); exit 1; }; } | |
8ca54d60 EB |
7081 | if test -r "/usr/include/nspr4"; then |
7082 | ac_cv_file__usr_include_nspr4=yes | |
43498922 | 7083 | else |
8ca54d60 EB |
7084 | ac_cv_file__usr_include_nspr4=no |
7085 | fi | |
43498922 | 7086 | fi |
e6364d79 | 7087 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5 |
0710d850 | 7088 | $as_echo "$ac_cv_file__usr_include_nspr4" >&6; } |
e6364d79 | 7089 | if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then |
8ca54d60 EB |
7090 | nsprdir=nspr4 |
7091 | else | |
43498922 | 7092 | |
e6364d79 | 7093 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5 |
0710d850 | 7094 | $as_echo_n "checking for /usr/include/nspr... " >&6; } |
e6364d79 | 7095 | if test "${ac_cv_file__usr_include_nspr+set}" = set; then |
0710d850 | 7096 | $as_echo_n "(cached) " >&6 |
43498922 | 7097 | else |
8ca54d60 | 7098 | test "$cross_compiling" = yes && |
e6364d79 MW |
7099 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
7100 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
7101 | { (exit 1); exit 1; }; } | |
8ca54d60 EB |
7102 | if test -r "/usr/include/nspr"; then |
7103 | ac_cv_file__usr_include_nspr=yes | |
7104 | else | |
7105 | ac_cv_file__usr_include_nspr=no | |
43498922 | 7106 | fi |
43498922 | 7107 | fi |
e6364d79 | 7108 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5 |
0710d850 | 7109 | $as_echo "$ac_cv_file__usr_include_nspr" >&6; } |
e6364d79 | 7110 | if test "x$ac_cv_file__usr_include_nspr" = x""yes; then |
8ca54d60 EB |
7111 | nsprdir=nspr |
7112 | fi | |
7113 | ||
43498922 DB |
7114 | |
7115 | fi | |
7116 | ||
6462165c JS |
7117 | if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then |
7118 | nss_CFLAGS="-I/usr/include/$nssdir" | |
7119 | nspr_CFLAGS="-I/usr/include/$nsprdir" | |
8ca54d60 EB |
7120 | |
7121 | ||
6462165c JS |
7122 | save_CPPFLAGS="$CPPFLAGS" |
7123 | CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS" | |
7124 | have_nss_includes=yes | |
412e1bf7 FCE |
7125 | |
7126 | ||
8ca54d60 | 7127 | |
e6364d79 MW |
7128 | |
7129 | ||
7130 | ||
7131 | ||
7132 | for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h" | |
7133 | do | |
7134 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7136 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7137 | $as_echo_n "checking for $ac_header... " >&6; } | |
7138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7139 | $as_echo_n "(cached) " >&6 | |
7140 | fi | |
7141 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7142 | $as_echo "$as_val"'` | |
7143 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7144 | $as_echo "$ac_res" >&6; } | |
7145 | else | |
7146 | # Is the header compilable? | |
7147 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7148 | $as_echo_n "checking $ac_header usability... " >&6; } | |
7149 | cat >conftest.$ac_ext <<_ACEOF | |
7150 | /* confdefs.h. */ | |
7151 | _ACEOF | |
7152 | cat confdefs.h >>conftest.$ac_ext | |
7153 | cat >>conftest.$ac_ext <<_ACEOF | |
7154 | /* end confdefs.h. */ | |
7155 | $ac_includes_default | |
7156 | #include <$ac_header> | |
7157 | _ACEOF | |
7158 | rm -f conftest.$ac_objext | |
7159 | if { (ac_try="$ac_compile" | |
7160 | case "(($ac_try" in | |
7161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7162 | *) ac_try_echo=$ac_try;; | |
7163 | esac | |
7164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7165 | $as_echo "$ac_try_echo") >&5 | |
7166 | (eval "$ac_compile") 2>conftest.er1 | |
7167 | ac_status=$? | |
7168 | grep -v '^ *+' conftest.er1 >conftest.err | |
7169 | rm -f conftest.er1 | |
7170 | cat conftest.err >&5 | |
7171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7172 | (exit $ac_status); } && { | |
7173 | test -z "$ac_c_werror_flag" || | |
7174 | test ! -s conftest.err | |
7175 | } && test -s conftest.$ac_objext; then | |
7176 | ac_header_compiler=yes | |
7177 | else | |
7178 | $as_echo "$as_me: failed program was:" >&5 | |
7179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7180 | ||
7181 | ac_header_compiler=no | |
7182 | fi | |
7183 | ||
7184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7185 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7186 | $as_echo "$ac_header_compiler" >&6; } | |
7187 | ||
7188 | # Is the header present? | |
7189 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7190 | $as_echo_n "checking $ac_header presence... " >&6; } | |
7191 | cat >conftest.$ac_ext <<_ACEOF | |
7192 | /* confdefs.h. */ | |
7193 | _ACEOF | |
7194 | cat confdefs.h >>conftest.$ac_ext | |
7195 | cat >>conftest.$ac_ext <<_ACEOF | |
7196 | /* end confdefs.h. */ | |
7197 | #include <$ac_header> | |
7198 | _ACEOF | |
7199 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7200 | case "(($ac_try" in | |
7201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7202 | *) ac_try_echo=$ac_try;; | |
7203 | esac | |
7204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7205 | $as_echo "$ac_try_echo") >&5 | |
7206 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7207 | ac_status=$? | |
7208 | grep -v '^ *+' conftest.er1 >conftest.err | |
7209 | rm -f conftest.er1 | |
7210 | cat conftest.err >&5 | |
7211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7212 | (exit $ac_status); } >/dev/null && { | |
7213 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7214 | test ! -s conftest.err | |
7215 | }; then | |
7216 | ac_header_preproc=yes | |
7217 | else | |
7218 | $as_echo "$as_me: failed program was:" >&5 | |
7219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7220 | ||
7221 | ac_header_preproc=no | |
7222 | fi | |
7223 | ||
7224 | rm -f conftest.err conftest.$ac_ext | |
7225 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7226 | $as_echo "$ac_header_preproc" >&6; } | |
7227 | ||
7228 | # So? What about this header? | |
7229 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7230 | yes:no: ) | |
7231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7232 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7234 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7235 | ac_header_preproc=yes | |
7236 | ;; | |
7237 | no:yes:* ) | |
7238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7239 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7241 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7243 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7245 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7247 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7249 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7250 | ( cat <<\_ASBOX | |
7251 | ## ------------------------------------------- ## | |
7252 | ## Report this to systemtap@sources.redhat.com ## | |
7253 | ## ------------------------------------------- ## | |
7254 | _ASBOX | |
7255 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
7256 | ;; | |
7257 | esac | |
7258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7259 | $as_echo_n "checking for $ac_header... " >&6; } | |
7260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7261 | $as_echo_n "(cached) " >&6 | |
7262 | else | |
7263 | eval "$as_ac_Header=\$ac_header_preproc" | |
7264 | fi | |
7265 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7266 | $as_echo "$as_val"'` | |
7267 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7268 | $as_echo "$ac_res" >&6; } | |
7269 | ||
7270 | fi | |
7271 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7272 | $as_echo "$as_val"'` | |
7273 | if test "x$as_val" = x""yes; then | |
7274 | cat >>confdefs.h <<_ACEOF | |
7275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7276 | _ACEOF | |
7277 | ||
7278 | else | |
7279 | have_nss_includes=no | |
7280 | fi | |
7281 | ||
7282 | done | |
7283 | ||
7284 | CPPFLAGS="$save_CPPFLAGS" | |
7285 | have_nss_libs=no | |
7286 | { $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5 | |
7287 | $as_echo_n "checking for PR_Connect in -lnspr4... " >&6; } | |
7288 | if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then | |
7289 | $as_echo_n "(cached) " >&6 | |
7290 | else | |
8ca54d60 EB |
7291 | ac_check_lib_save_LIBS=$LIBS |
7292 | LIBS="-lnspr4 $LIBS" | |
e6364d79 MW |
7293 | cat >conftest.$ac_ext <<_ACEOF |
7294 | /* confdefs.h. */ | |
7295 | _ACEOF | |
7296 | cat confdefs.h >>conftest.$ac_ext | |
7297 | cat >>conftest.$ac_ext <<_ACEOF | |
8ca54d60 | 7298 | /* end confdefs.h. */ |
19a0d4b6 | 7299 | |
7fbd9d09 FCE |
7300 | /* Override any GCC internal prototype to avoid an error. |
7301 | Use char because int might match the return type of a GCC | |
7302 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
7303 | #ifdef __cplusplus |
7304 | extern "C" | |
7305 | #endif | |
7306 | char PR_Connect (); | |
7307 | int | |
7308 | main () | |
7309 | { | |
7fbd9d09 | 7310 | return PR_Connect (); |
8ca54d60 EB |
7311 | ; |
7312 | return 0; | |
7313 | } | |
7314 | _ACEOF | |
e6364d79 MW |
7315 | rm -f conftest.$ac_objext conftest$ac_exeext |
7316 | if { (ac_try="$ac_link" | |
7317 | case "(($ac_try" in | |
7318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7319 | *) ac_try_echo=$ac_try;; | |
7320 | esac | |
7321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7322 | $as_echo "$ac_try_echo") >&5 | |
7323 | (eval "$ac_link") 2>conftest.er1 | |
7324 | ac_status=$? | |
7325 | grep -v '^ *+' conftest.er1 >conftest.err | |
7326 | rm -f conftest.er1 | |
7327 | cat conftest.err >&5 | |
7328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7329 | (exit $ac_status); } && { | |
7330 | test -z "$ac_c_werror_flag" || | |
7331 | test ! -s conftest.err | |
7332 | } && test -s conftest$ac_exeext && { | |
7333 | test "$cross_compiling" = yes || | |
7334 | $as_test_x conftest$ac_exeext | |
7335 | }; then | |
8ca54d60 | 7336 | ac_cv_lib_nspr4_PR_Connect=yes |
43498922 | 7337 | else |
e6364d79 MW |
7338 | $as_echo "$as_me: failed program was:" >&5 |
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7340 | ||
7341 | ac_cv_lib_nspr4_PR_Connect=no | |
43498922 | 7342 | fi |
e6364d79 MW |
7343 | |
7344 | rm -rf conftest.dSYM | |
7345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7346 | conftest$ac_exeext conftest.$ac_ext | |
8ca54d60 | 7347 | LIBS=$ac_check_lib_save_LIBS |
43498922 | 7348 | fi |
e6364d79 | 7349 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5 |
0710d850 | 7350 | $as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; } |
e6364d79 | 7351 | if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then |
8ca54d60 | 7352 | |
e6364d79 | 7353 | { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5 |
0710d850 | 7354 | $as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; } |
e6364d79 | 7355 | if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then |
0710d850 | 7356 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
7357 | else |
7358 | ac_check_lib_save_LIBS=$LIBS | |
7359 | LIBS="-lssl3 $LIBS" | |
e6364d79 MW |
7360 | cat >conftest.$ac_ext <<_ACEOF |
7361 | /* confdefs.h. */ | |
7362 | _ACEOF | |
7363 | cat confdefs.h >>conftest.$ac_ext | |
7364 | cat >>conftest.$ac_ext <<_ACEOF | |
8ca54d60 EB |
7365 | /* end confdefs.h. */ |
7366 | ||
7fbd9d09 FCE |
7367 | /* Override any GCC internal prototype to avoid an error. |
7368 | Use char because int might match the return type of a GCC | |
7369 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
7370 | #ifdef __cplusplus |
7371 | extern "C" | |
7372 | #endif | |
7373 | char SSL_ReHandshake (); | |
7374 | int | |
7375 | main () | |
7376 | { | |
7fbd9d09 | 7377 | return SSL_ReHandshake (); |
8ca54d60 EB |
7378 | ; |
7379 | return 0; | |
7380 | } | |
7381 | _ACEOF | |
e6364d79 MW |
7382 | rm -f conftest.$ac_objext conftest$ac_exeext |
7383 | if { (ac_try="$ac_link" | |
7384 | case "(($ac_try" in | |
7385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7386 | *) ac_try_echo=$ac_try;; | |
7387 | esac | |
7388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7389 | $as_echo "$ac_try_echo") >&5 | |
7390 | (eval "$ac_link") 2>conftest.er1 | |
7391 | ac_status=$? | |
7392 | grep -v '^ *+' conftest.er1 >conftest.err | |
7393 | rm -f conftest.er1 | |
7394 | cat conftest.err >&5 | |
7395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7396 | (exit $ac_status); } && { | |
7397 | test -z "$ac_c_werror_flag" || | |
7398 | test ! -s conftest.err | |
7399 | } && test -s conftest$ac_exeext && { | |
7400 | test "$cross_compiling" = yes || | |
7401 | $as_test_x conftest$ac_exeext | |
7402 | }; then | |
8ca54d60 | 7403 | ac_cv_lib_ssl3_SSL_ReHandshake=yes |
43498922 | 7404 | else |
e6364d79 MW |
7405 | $as_echo "$as_me: failed program was:" >&5 |
7406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7407 | ||
7408 | ac_cv_lib_ssl3_SSL_ReHandshake=no | |
8ca54d60 | 7409 | fi |
e6364d79 MW |
7410 | |
7411 | rm -rf conftest.dSYM | |
7412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7413 | conftest$ac_exeext conftest.$ac_ext | |
8ca54d60 EB |
7414 | LIBS=$ac_check_lib_save_LIBS |
7415 | fi | |
e6364d79 | 7416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5 |
0710d850 | 7417 | $as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; } |
e6364d79 | 7418 | if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then |
8ca54d60 EB |
7419 | have_nss_libs=yes |
7420 | fi | |
43498922 | 7421 | |
43498922 | 7422 | |
43498922 | 7423 | fi |
43498922 | 7424 | |
19a0d4b6 | 7425 | fi |
6462165c JS |
7426 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" != "xyesyesyes"; then |
7427 | if test "$enable_server" == "yes"; then | |
e6364d79 MW |
7428 | { { $as_echo "$as_me:$LINENO: error: cannot find all libraries or tools for stap-server" >&5 |
7429 | $as_echo "$as_me: error: cannot find all libraries or tools for stap-server" >&2;} | |
7430 | { (exit 1); exit 1; }; } | |
6462165c JS |
7431 | fi |
7432 | if test "$enable_server" == "check"; then | |
e6364d79 | 7433 | { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries or tools" >&5 |
0710d850 | 7434 | $as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries or tools" >&2;} |
6462165c JS |
7435 | fi |
7436 | else | |
2035bcd4 | 7437 | |
e6364d79 MW |
7438 | cat >>confdefs.h <<\_ACEOF |
7439 | #define HAVE_NSS 1 | |
7440 | _ACEOF | |
2035bcd4 | 7441 | |
6462165c | 7442 | fi |
19a0d4b6 | 7443 | fi |
d450a957 | 7444 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes" -a "$enable_server" != "no"; then |
19a0d4b6 MW |
7445 | BUILD_SERVER_TRUE= |
7446 | BUILD_SERVER_FALSE='#' | |
7447 | else | |
7448 | BUILD_SERVER_TRUE='#' | |
7449 | BUILD_SERVER_FALSE= | |
43498922 DB |
7450 | fi |
7451 | ||
07f82253 | 7452 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes"; then |
2035bcd4 DB |
7453 | HAVE_NSS_TRUE= |
7454 | HAVE_NSS_FALSE='#' | |
7455 | else | |
7456 | HAVE_NSS_TRUE='#' | |
7457 | HAVE_NSS_FALSE= | |
7458 | fi | |
7459 | ||
19a0d4b6 | 7460 | |
1087b83f | 7461 | # Check whether --enable-grapher was given. |
e6364d79 | 7462 | if test "${enable_grapher+set}" = set; then |
c3f070d9 | 7463 | enableval=$enable_grapher; |
1087b83f | 7464 | else |
c3f070d9 | 7465 | enable_grapher="check" |
1087b83f TM |
7466 | fi |
7467 | ||
7468 | ||
1087b83f TM |
7469 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
7470 | if test -n "$ac_tool_prefix"; then | |
7471 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7472 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
e6364d79 | 7473 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 7474 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 7475 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
0710d850 | 7476 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
7477 | else |
7478 | case $PKG_CONFIG in | |
7479 | [\\/]* | ?:[\\/]*) | |
7480 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7481 | ;; | |
7482 | *) | |
7483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7484 | for as_dir in $PATH | |
7485 | do | |
7486 | IFS=$as_save_IFS | |
7487 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 7488 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
7489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7490 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
e6364d79 | 7491 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
7492 | break 2 |
7493 | fi | |
7494 | done | |
e6364d79 | 7495 | done |
1087b83f TM |
7496 | IFS=$as_save_IFS |
7497 | ||
7498 | ;; | |
7499 | esac | |
7500 | fi | |
7501 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7502 | if test -n "$PKG_CONFIG"; then | |
e6364d79 | 7503 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
0710d850 | 7504 | $as_echo "$PKG_CONFIG" >&6; } |
1087b83f | 7505 | else |
e6364d79 | 7506 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7507 | $as_echo "no" >&6; } |
1087b83f TM |
7508 | fi |
7509 | ||
7510 | ||
7511 | fi | |
7512 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7513 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7514 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7515 | set dummy pkg-config; ac_word=$2 | |
e6364d79 | 7516 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
0710d850 | 7517 | $as_echo_n "checking for $ac_word... " >&6; } |
e6364d79 | 7518 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
0710d850 | 7519 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
7520 | else |
7521 | case $ac_pt_PKG_CONFIG in | |
7522 | [\\/]* | ?:[\\/]*) | |
7523 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
7524 | ;; | |
7525 | *) | |
7526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7527 | for as_dir in $PATH | |
7528 | do | |
7529 | IFS=$as_save_IFS | |
7530 | test -z "$as_dir" && as_dir=. | |
e6364d79 | 7531 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
7532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7533 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
e6364d79 | 7534 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
7535 | break 2 |
7536 | fi | |
7537 | done | |
e6364d79 | 7538 | done |
1087b83f TM |
7539 | IFS=$as_save_IFS |
7540 | ||
7541 | ;; | |
7542 | esac | |
7543 | fi | |
7544 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7545 | if test -n "$ac_pt_PKG_CONFIG"; then | |
e6364d79 | 7546 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
0710d850 | 7547 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
1087b83f | 7548 | else |
e6364d79 | 7549 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7550 | $as_echo "no" >&6; } |
1087b83f TM |
7551 | fi |
7552 | ||
7553 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7554 | PKG_CONFIG="" | |
7555 | else | |
7556 | case $cross_compiling:$ac_tool_warned in | |
7557 | yes:) | |
e6364d79 | 7558 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 7559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1087b83f TM |
7560 | ac_tool_warned=yes ;; |
7561 | esac | |
7562 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7563 | fi | |
7564 | else | |
7565 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
7566 | fi | |
7567 | ||
7568 | fi | |
7569 | if test -n "$PKG_CONFIG"; then | |
7570 | _pkg_min_version=0.9.0 | |
e6364d79 | 7571 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
0710d850 | 7572 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
1087b83f | 7573 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
e6364d79 | 7574 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 7575 | $as_echo "yes" >&6; } |
1087b83f | 7576 | else |
e6364d79 | 7577 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7578 | $as_echo "no" >&6; } |
1087b83f TM |
7579 | PKG_CONFIG="" |
7580 | fi | |
7581 | ||
7582 | fi | |
f8a49389 DS |
7583 | |
7584 | ac_ext=cpp | |
7585 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7586 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7587 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7588 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e6364d79 | 7589 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
0710d850 | 7590 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
f8a49389 | 7591 | if test -z "$CXXCPP"; then |
e6364d79 | 7592 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
0710d850 | 7593 | $as_echo_n "(cached) " >&6 |
f8a49389 DS |
7594 | else |
7595 | # Double quotes because CXXCPP needs to be expanded | |
7596 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7597 | do | |
7598 | ac_preproc_ok=false | |
7599 | for ac_cxx_preproc_warn_flag in '' yes | |
7600 | do | |
7601 | # Use a header file that comes with gcc, so configuring glibc | |
7602 | # with a fresh cross-compiler works. | |
7603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7604 | # <limits.h> exists even on freestanding compilers. | |
7605 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7606 | # not just through cpp. "Syntax error" is here to catch this case. | |
e6364d79 MW |
7607 | cat >conftest.$ac_ext <<_ACEOF |
7608 | /* confdefs.h. */ | |
7609 | _ACEOF | |
7610 | cat confdefs.h >>conftest.$ac_ext | |
7611 | cat >>conftest.$ac_ext <<_ACEOF | |
f8a49389 DS |
7612 | /* end confdefs.h. */ |
7613 | #ifdef __STDC__ | |
7614 | # include <limits.h> | |
7615 | #else | |
7616 | # include <assert.h> | |
7617 | #endif | |
7618 | Syntax error | |
7619 | _ACEOF | |
e6364d79 MW |
7620 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7621 | case "(($ac_try" in | |
7622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7623 | *) ac_try_echo=$ac_try;; | |
7624 | esac | |
7625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7626 | $as_echo "$ac_try_echo") >&5 | |
7627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7628 | ac_status=$? | |
7629 | grep -v '^ *+' conftest.er1 >conftest.err | |
7630 | rm -f conftest.er1 | |
7631 | cat conftest.err >&5 | |
7632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7633 | (exit $ac_status); } >/dev/null && { | |
7634 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7635 | test ! -s conftest.err | |
7636 | }; then | |
7637 | : | |
4b5627b1 | 7638 | else |
e6364d79 MW |
7639 | $as_echo "$as_me: failed program was:" >&5 |
7640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7641 | ||
f8a49389 DS |
7642 | # Broken: fails on valid input. |
7643 | continue | |
7644 | fi | |
e6364d79 | 7645 | |
f8a49389 DS |
7646 | rm -f conftest.err conftest.$ac_ext |
7647 | ||
7648 | # OK, works on sane cases. Now check whether nonexistent headers | |
7649 | # can be detected and how. | |
e6364d79 MW |
7650 | cat >conftest.$ac_ext <<_ACEOF |
7651 | /* confdefs.h. */ | |
7652 | _ACEOF | |
7653 | cat confdefs.h >>conftest.$ac_ext | |
7654 | cat >>conftest.$ac_ext <<_ACEOF | |
f8a49389 DS |
7655 | /* end confdefs.h. */ |
7656 | #include <ac_nonexistent.h> | |
7657 | _ACEOF | |
e6364d79 MW |
7658 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7659 | case "(($ac_try" in | |
7660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7661 | *) ac_try_echo=$ac_try;; | |
7662 | esac | |
7663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7664 | $as_echo "$ac_try_echo") >&5 | |
7665 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7666 | ac_status=$? | |
7667 | grep -v '^ *+' conftest.er1 >conftest.err | |
7668 | rm -f conftest.er1 | |
7669 | cat conftest.err >&5 | |
7670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7671 | (exit $ac_status); } >/dev/null && { | |
7672 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7673 | test ! -s conftest.err | |
7674 | }; then | |
f8a49389 DS |
7675 | # Broken: success on invalid input. |
7676 | continue | |
7677 | else | |
e6364d79 MW |
7678 | $as_echo "$as_me: failed program was:" >&5 |
7679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7680 | ||
f8a49389 DS |
7681 | # Passes both tests. |
7682 | ac_preproc_ok=: | |
7683 | break | |
7684 | fi | |
e6364d79 | 7685 | |
f8a49389 DS |
7686 | rm -f conftest.err conftest.$ac_ext |
7687 | ||
7688 | done | |
7689 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7690 | rm -f conftest.err conftest.$ac_ext | |
e6364d79 | 7691 | if $ac_preproc_ok; then |
f8a49389 DS |
7692 | break |
7693 | fi | |
7694 | ||
7695 | done | |
7696 | ac_cv_prog_CXXCPP=$CXXCPP | |
7697 | ||
7698 | fi | |
7699 | CXXCPP=$ac_cv_prog_CXXCPP | |
7700 | else | |
7701 | ac_cv_prog_CXXCPP=$CXXCPP | |
7702 | fi | |
e6364d79 | 7703 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
0710d850 | 7704 | $as_echo "$CXXCPP" >&6; } |
f8a49389 DS |
7705 | ac_preproc_ok=false |
7706 | for ac_cxx_preproc_warn_flag in '' yes | |
7707 | do | |
7708 | # Use a header file that comes with gcc, so configuring glibc | |
7709 | # with a fresh cross-compiler works. | |
7710 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7711 | # <limits.h> exists even on freestanding compilers. | |
7712 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7713 | # not just through cpp. "Syntax error" is here to catch this case. | |
e6364d79 MW |
7714 | cat >conftest.$ac_ext <<_ACEOF |
7715 | /* confdefs.h. */ | |
7716 | _ACEOF | |
7717 | cat confdefs.h >>conftest.$ac_ext | |
7718 | cat >>conftest.$ac_ext <<_ACEOF | |
f8a49389 DS |
7719 | /* end confdefs.h. */ |
7720 | #ifdef __STDC__ | |
7721 | # include <limits.h> | |
7722 | #else | |
7723 | # include <assert.h> | |
7724 | #endif | |
7725 | Syntax error | |
7726 | _ACEOF | |
e6364d79 MW |
7727 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7728 | case "(($ac_try" in | |
7729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7730 | *) ac_try_echo=$ac_try;; | |
7731 | esac | |
7732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7733 | $as_echo "$ac_try_echo") >&5 | |
7734 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7735 | ac_status=$? | |
7736 | grep -v '^ *+' conftest.er1 >conftest.err | |
7737 | rm -f conftest.er1 | |
7738 | cat conftest.err >&5 | |
7739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7740 | (exit $ac_status); } >/dev/null && { | |
7741 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7742 | test ! -s conftest.err | |
7743 | }; then | |
7744 | : | |
4b5627b1 | 7745 | else |
e6364d79 MW |
7746 | $as_echo "$as_me: failed program was:" >&5 |
7747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7748 | ||
f8a49389 DS |
7749 | # Broken: fails on valid input. |
7750 | continue | |
7751 | fi | |
e6364d79 | 7752 | |
f8a49389 DS |
7753 | rm -f conftest.err conftest.$ac_ext |
7754 | ||
7755 | # OK, works on sane cases. Now check whether nonexistent headers | |
7756 | # can be detected and how. | |
e6364d79 MW |
7757 | cat >conftest.$ac_ext <<_ACEOF |
7758 | /* confdefs.h. */ | |
7759 | _ACEOF | |
7760 | cat confdefs.h >>conftest.$ac_ext | |
7761 | cat >>conftest.$ac_ext <<_ACEOF | |
f8a49389 DS |
7762 | /* end confdefs.h. */ |
7763 | #include <ac_nonexistent.h> | |
7764 | _ACEOF | |
e6364d79 MW |
7765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7766 | case "(($ac_try" in | |
7767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7768 | *) ac_try_echo=$ac_try;; | |
7769 | esac | |
7770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7771 | $as_echo "$ac_try_echo") >&5 | |
7772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7773 | ac_status=$? | |
7774 | grep -v '^ *+' conftest.er1 >conftest.err | |
7775 | rm -f conftest.er1 | |
7776 | cat conftest.err >&5 | |
7777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); } >/dev/null && { | |
7779 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7780 | test ! -s conftest.err | |
7781 | }; then | |
f8a49389 DS |
7782 | # Broken: success on invalid input. |
7783 | continue | |
7784 | else | |
e6364d79 MW |
7785 | $as_echo "$as_me: failed program was:" >&5 |
7786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7787 | ||
f8a49389 DS |
7788 | # Passes both tests. |
7789 | ac_preproc_ok=: | |
7790 | break | |
7791 | fi | |
e6364d79 | 7792 | |
f8a49389 DS |
7793 | rm -f conftest.err conftest.$ac_ext |
7794 | ||
7795 | done | |
7796 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7797 | rm -f conftest.err conftest.$ac_ext | |
e6364d79 MW |
7798 | if $ac_preproc_ok; then |
7799 | : | |
f8a49389 | 7800 | else |
e6364d79 | 7801 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
0710d850 | 7802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
e6364d79 MW |
7803 | { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
7804 | See \`config.log' for more details." >&5 | |
7805 | $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
7806 | See \`config.log' for more details." >&2;} | |
7807 | { (exit 1); exit 1; }; }; } | |
f8a49389 DS |
7808 | fi |
7809 | ||
7810 | ac_ext=cpp | |
7811 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7812 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7813 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7814 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7815 | ||
7816 | ||
e6364d79 | 7817 | if test "x$enable_grapher" != xno; then |
1087b83f | 7818 | |
f8a49389 | 7819 | |
1087b83f | 7820 | pkg_failed=no |
e6364d79 | 7821 | { $as_echo "$as_me:$LINENO: checking for gtkmm" >&5 |
0710d850 DS |
7822 | $as_echo_n "checking for gtkmm... " >&6; } |
7823 | ||
6462165c JS |
7824 | if test -n "$gtkmm_CFLAGS"; then |
7825 | pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS" | |
7826 | elif test -n "$PKG_CONFIG"; then | |
7827 | if test -n "$PKG_CONFIG" && \ | |
e6364d79 | 7828 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 |
f8a49389 | 7829 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 7830 | ac_status=$? |
e6364d79 MW |
7831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7832 | (exit $ac_status); }; then | |
f8a49389 | 7833 | pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
7834 | else |
7835 | pkg_failed=yes | |
7836 | fi | |
6462165c JS |
7837 | else |
7838 | pkg_failed=untried | |
1087b83f | 7839 | fi |
6462165c JS |
7840 | if test -n "$gtkmm_LIBS"; then |
7841 | pkg_cv_gtkmm_LIBS="$gtkmm_LIBS" | |
7842 | elif test -n "$PKG_CONFIG"; then | |
7843 | if test -n "$PKG_CONFIG" && \ | |
e6364d79 | 7844 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 |
f8a49389 | 7845 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 7846 | ac_status=$? |
e6364d79 MW |
7847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7848 | (exit $ac_status); }; then | |
f8a49389 | 7849 | pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
7850 | else |
7851 | pkg_failed=yes | |
7852 | fi | |
6462165c JS |
7853 | else |
7854 | pkg_failed=untried | |
1087b83f TM |
7855 | fi |
7856 | ||
7857 | ||
7858 | ||
7859 | if test $pkg_failed = yes; then | |
7860 | ||
7861 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7862 | _pkg_short_errors_supported=yes | |
7863 | else | |
7864 | _pkg_short_errors_supported=no | |
7865 | fi | |
7866 | if test $_pkg_short_errors_supported = yes; then | |
6462165c | 7867 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` |
1087b83f | 7868 | else |
6462165c | 7869 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` |
1087b83f TM |
7870 | fi |
7871 | # Put the nasty error message in config.log where it belongs | |
c3f070d9 | 7872 | echo "$gtkmm_PKG_ERRORS" >&5 |
1087b83f | 7873 | |
e6364d79 | 7874 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7875 | $as_echo "no" >&6; } |
c3f070d9 | 7876 | have_gtkmm="no" |
1087b83f | 7877 | elif test $pkg_failed = untried; then |
c3f070d9 | 7878 | have_gtkmm="no" |
1087b83f | 7879 | else |
c3f070d9 DS |
7880 | gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS |
7881 | gtkmm_LIBS=$pkg_cv_gtkmm_LIBS | |
e6364d79 | 7882 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 7883 | $as_echo "yes" >&6; } |
c3f070d9 DS |
7884 | have_gtkmm="yes" |
7885 | fi | |
e6364d79 MW |
7886 | if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then |
7887 | { $as_echo "$as_me:$LINENO: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5 | |
0710d850 | 7888 | $as_echo "$as_me: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&2;} |
c3f070d9 DS |
7889 | fi |
7890 | ||
f8a49389 | 7891 | |
e6364d79 | 7892 | |
f8a49389 | 7893 | pkg_failed=no |
e6364d79 | 7894 | { $as_echo "$as_me:$LINENO: checking for libglade" >&5 |
0710d850 DS |
7895 | $as_echo_n "checking for libglade... " >&6; } |
7896 | ||
6462165c JS |
7897 | if test -n "$libglade_CFLAGS"; then |
7898 | pkg_cv_libglade_CFLAGS="$libglade_CFLAGS" | |
7899 | elif test -n "$PKG_CONFIG"; then | |
7900 | if test -n "$PKG_CONFIG" && \ | |
e6364d79 | 7901 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5 |
f8a49389 DS |
7902 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
7903 | ac_status=$? | |
e6364d79 MW |
7904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7905 | (exit $ac_status); }; then | |
f8a49389 DS |
7906 | pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null` |
7907 | else | |
7908 | pkg_failed=yes | |
7909 | fi | |
6462165c JS |
7910 | else |
7911 | pkg_failed=untried | |
f8a49389 | 7912 | fi |
6462165c JS |
7913 | if test -n "$libglade_LIBS"; then |
7914 | pkg_cv_libglade_LIBS="$libglade_LIBS" | |
7915 | elif test -n "$PKG_CONFIG"; then | |
7916 | if test -n "$PKG_CONFIG" && \ | |
e6364d79 | 7917 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5 |
f8a49389 DS |
7918 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
7919 | ac_status=$? | |
e6364d79 MW |
7920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7921 | (exit $ac_status); }; then | |
f8a49389 DS |
7922 | pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null` |
7923 | else | |
7924 | pkg_failed=yes | |
7925 | fi | |
6462165c JS |
7926 | else |
7927 | pkg_failed=untried | |
f8a49389 DS |
7928 | fi |
7929 | ||
7930 | ||
7931 | ||
7932 | if test $pkg_failed = yes; then | |
7933 | ||
7934 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7935 | _pkg_short_errors_supported=yes | |
7936 | else | |
7937 | _pkg_short_errors_supported=no | |
7938 | fi | |
7939 | if test $_pkg_short_errors_supported = yes; then | |
6462165c | 7940 | libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglademm-2.4 >= 2.6.7" 2>&1` |
f8a49389 | 7941 | else |
6462165c | 7942 | libglade_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglademm-2.4 >= 2.6.7" 2>&1` |
f8a49389 DS |
7943 | fi |
7944 | # Put the nasty error message in config.log where it belongs | |
7945 | echo "$libglade_PKG_ERRORS" >&5 | |
7946 | ||
e6364d79 | 7947 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0710d850 | 7948 | $as_echo "no" >&6; } |
f8a49389 DS |
7949 | have_libglade="no" |
7950 | elif test $pkg_failed = untried; then | |
7951 | have_libglade="no" | |
7952 | else | |
7953 | libglade_CFLAGS=$pkg_cv_libglade_CFLAGS | |
7954 | libglade_LIBS=$pkg_cv_libglade_LIBS | |
e6364d79 | 7955 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
0710d850 | 7956 | $as_echo "yes" >&6; } |
f8a49389 DS |
7957 | have_libglade="yes" |
7958 | fi | |
e6364d79 MW |
7959 | if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then |
7960 | { $as_echo "$as_me:$LINENO: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5 | |
0710d850 | 7961 | $as_echo "$as_me: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&2;} |
f8a49389 DS |
7962 | fi |
7963 | ||
e6364d79 | 7964 | |
f8a49389 DS |
7965 | have_boost_headers="yes" |
7966 | ac_ext=cpp | |
7967 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7971 | ||
e6364d79 MW |
7972 | |
7973 | ||
7974 | for ac_header in boost/algorithm/string.hpp boost/range.hpp | |
7975 | do | |
7976 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7978 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7979 | $as_echo_n "checking for $ac_header... " >&6; } | |
7980 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7981 | $as_echo_n "(cached) " >&6 | |
7982 | fi | |
7983 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7984 | $as_echo "$as_val"'` | |
7985 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7986 | $as_echo "$ac_res" >&6; } | |
7987 | else | |
7988 | # Is the header compilable? | |
7989 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7990 | $as_echo_n "checking $ac_header usability... " >&6; } | |
7991 | cat >conftest.$ac_ext <<_ACEOF | |
7992 | /* confdefs.h. */ | |
7993 | _ACEOF | |
7994 | cat confdefs.h >>conftest.$ac_ext | |
7995 | cat >>conftest.$ac_ext <<_ACEOF | |
7996 | /* end confdefs.h. */ | |
7997 | $ac_includes_default | |
7998 | #include <$ac_header> | |
7999 | _ACEOF | |
8000 | rm -f conftest.$ac_objext | |
8001 | if { (ac_try="$ac_compile" | |
8002 | case "(($ac_try" in | |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8004 | *) ac_try_echo=$ac_try;; | |
8005 | esac | |
8006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8007 | $as_echo "$ac_try_echo") >&5 | |
8008 | (eval "$ac_compile") 2>conftest.er1 | |
8009 | ac_status=$? | |
8010 | grep -v '^ *+' conftest.er1 >conftest.err | |
8011 | rm -f conftest.er1 | |
8012 | cat conftest.err >&5 | |
8013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8014 | (exit $ac_status); } && { | |
8015 | test -z "$ac_cxx_werror_flag" || | |
8016 | test ! -s conftest.err | |
8017 | } && test -s conftest.$ac_objext; then | |
8018 | ac_header_compiler=yes | |
8019 | else | |
8020 | $as_echo "$as_me: failed program was:" >&5 | |
8021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8022 | ||
8023 | ac_header_compiler=no | |
8024 | fi | |
8025 | ||
8026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8027 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8028 | $as_echo "$ac_header_compiler" >&6; } | |
8029 | ||
8030 | # Is the header present? | |
8031 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8032 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8033 | cat >conftest.$ac_ext <<_ACEOF | |
8034 | /* confdefs.h. */ | |
8035 | _ACEOF | |
8036 | cat confdefs.h >>conftest.$ac_ext | |
8037 | cat >>conftest.$ac_ext <<_ACEOF | |
8038 | /* end confdefs.h. */ | |
8039 | #include <$ac_header> | |
8040 | _ACEOF | |
8041 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8042 | case "(($ac_try" in | |
8043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8044 | *) ac_try_echo=$ac_try;; | |
8045 | esac | |
8046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8047 | $as_echo "$ac_try_echo") >&5 | |
8048 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8049 | ac_status=$? | |
8050 | grep -v '^ *+' conftest.er1 >conftest.err | |
8051 | rm -f conftest.er1 | |
8052 | cat conftest.err >&5 | |
8053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8054 | (exit $ac_status); } >/dev/null && { | |
8055 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8056 | test ! -s conftest.err | |
8057 | }; then | |
8058 | ac_header_preproc=yes | |
8059 | else | |
8060 | $as_echo "$as_me: failed program was:" >&5 | |
8061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8062 | ||
8063 | ac_header_preproc=no | |
8064 | fi | |
8065 | ||
8066 | rm -f conftest.err conftest.$ac_ext | |
8067 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8068 | $as_echo "$ac_header_preproc" >&6; } | |
8069 | ||
8070 | # So? What about this header? | |
8071 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8072 | yes:no: ) | |
8073 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8074 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8075 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8076 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8077 | ac_header_preproc=yes | |
8078 | ;; | |
8079 | no:yes:* ) | |
8080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8081 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8083 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8085 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8087 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8089 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8091 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8092 | ( cat <<\_ASBOX | |
8093 | ## ------------------------------------------- ## | |
8094 | ## Report this to systemtap@sources.redhat.com ## | |
8095 | ## ------------------------------------------- ## | |
8096 | _ASBOX | |
8097 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8098 | ;; | |
8099 | esac | |
8100 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8101 | $as_echo_n "checking for $ac_header... " >&6; } | |
8102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8103 | $as_echo_n "(cached) " >&6 | |
8104 | else | |
8105 | eval "$as_ac_Header=\$ac_header_preproc" | |
8106 | fi | |
8107 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8108 | $as_echo "$as_val"'` | |
8109 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8110 | $as_echo "$ac_res" >&6; } | |
8111 | ||
8112 | fi | |
8113 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8114 | $as_echo "$as_val"'` | |
8115 | if test "x$as_val" = x""yes; then | |
f8a49389 | 8116 | cat >>confdefs.h <<_ACEOF |
0710d850 | 8117 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f8a49389 DS |
8118 | _ACEOF |
8119 | ||
8120 | else | |
8121 | have_boost_headers="no" | |
8122 | fi | |
8123 | ||
8124 | done | |
8125 | ||
8126 | ac_ext=c | |
8127 | ac_cpp='$CPP $CPPFLAGS' | |
8128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8131 | ||
e6364d79 MW |
8132 | if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then |
8133 | { $as_echo "$as_me:$LINENO: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5 | |
0710d850 | 8134 | $as_echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;} |
f8a49389 DS |
8135 | fi |
8136 | ||
e6364d79 MW |
8137 | |
8138 | if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then | |
f8a49389 DS |
8139 | have_grapher_reqs="yes" |
8140 | else | |
8141 | have_grapher_reqs="no" | |
8142 | fi | |
8143 | ||
e6364d79 | 8144 | |
f8a49389 | 8145 | fi |
e6364d79 MW |
8146 | |
8147 | if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then | |
8148 | { { $as_echo "$as_me:$LINENO: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&5 | |
8149 | $as_echo "$as_me: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&2;} | |
8150 | { (exit 1); exit 1; }; } | |
f8a49389 | 8151 | fi |
e6364d79 | 8152 | |
f8a49389 DS |
8153 | if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then |
8154 | BUILD_GRAPHER_TRUE= | |
8155 | BUILD_GRAPHER_FALSE='#' | |
8156 | else | |
8157 | BUILD_GRAPHER_TRUE='#' | |
8158 | BUILD_GRAPHER_FALSE= | |
8159 | fi | |
1087b83f TM |
8160 | |
8161 | ||
2ed04863 | 8162 | |
2ed04863 WC |
8163 | |
8164 | # Check whether --with-rpm was given. | |
e6364d79 | 8165 | if test "${with_rpm+set}" = set; then |
2ed04863 WC |
8166 | withval=$with_rpm; |
8167 | else | |
8168 | with_rpm="auto" | |
8169 | fi | |
8170 | ||
bcfa72ed | 8171 | if test "$with_rpm" != "no"; then |
7f9ad862 | 8172 | { $as_echo "$as_me:$LINENO: checking for rpmtsInitIterator in -lrpm" >&5 |
bcfa72ed FCE |
8173 | $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; } |
8174 | if test "${ac_cv_lib_rpm_rpmtsInitIterator+set}" = set; then | |
8175 | $as_echo_n "(cached) " >&6 | |
e6364d79 | 8176 | else |
bcfa72ed FCE |
8177 | ac_check_lib_save_LIBS=$LIBS |
8178 | LIBS="-lrpm $LIBS" | |
8179 | cat >conftest.$ac_ext <<_ACEOF | |
e6364d79 MW |
8180 | /* confdefs.h. */ |
8181 | _ACEOF | |
8182 | cat confdefs.h >>conftest.$ac_ext | |
8183 | cat >>conftest.$ac_ext <<_ACEOF | |
2ed04863 WC |
8184 | /* end confdefs.h. */ |
8185 | ||
bcfa72ed FCE |
8186 | /* Override any GCC internal prototype to avoid an error. |
8187 | Use char because int might match the return type of a GCC | |
8188 | builtin and then its argument prototype would still apply. */ | |
8189 | #ifdef __cplusplus | |
8190 | extern "C" | |
8191 | #endif | |
8192 | char rpmtsInitIterator (); | |
2ed04863 WC |
8193 | int |
8194 | main () | |
8195 | { | |
bcfa72ed | 8196 | return rpmtsInitIterator (); |
2ed04863 WC |
8197 | ; |
8198 | return 0; | |
8199 | } | |
8200 | _ACEOF | |
bcfa72ed | 8201 | rm -f conftest.$ac_objext conftest$ac_exeext |
e6364d79 MW |
8202 | if { (ac_try="$ac_link" |
8203 | case "(($ac_try" in | |
8204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8205 | *) ac_try_echo=$ac_try;; | |
8206 | esac | |
8207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8208 | $as_echo "$ac_try_echo") >&5 | |
bcfa72ed | 8209 | (eval "$ac_link") 2>conftest.er1 |
e6364d79 MW |
8210 | ac_status=$? |
8211 | grep -v '^ *+' conftest.er1 >conftest.err | |
8212 | rm -f conftest.er1 | |
8213 | cat conftest.err >&5 | |
8214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8215 | (exit $ac_status); } && { | |
8216 | test -z "$ac_c_werror_flag" || | |
8217 | test ! -s conftest.err | |
bcfa72ed FCE |
8218 | } && test -s conftest$ac_exeext && { |
8219 | test "$cross_compiling" = yes || | |
8220 | $as_test_x conftest$ac_exeext | |
8221 | }; then | |
8222 | ac_cv_lib_rpm_rpmtsInitIterator=yes | |
2ed04863 | 8223 | else |
e6364d79 MW |
8224 | $as_echo "$as_me: failed program was:" >&5 |
8225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8226 | ||
bcfa72ed | 8227 | ac_cv_lib_rpm_rpmtsInitIterator=no |
2ed04863 | 8228 | fi |
2ed04863 | 8229 | |
bcfa72ed FCE |
8230 | rm -rf conftest.dSYM |
8231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8232 | conftest$ac_exeext conftest.$ac_ext | |
8233 | LIBS=$ac_check_lib_save_LIBS | |
2ed04863 | 8234 | fi |
bcfa72ed FCE |
8235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5 |
8236 | $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; } | |
8237 | if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = x""yes; then | |
12c1a007 FCE |
8238 | |
8239 | ||
8240 | cat >>confdefs.h <<\_ACEOF | |
8241 | #define HAVE_LIBRPM 1 | |
8242 | _ACEOF | |
8243 | ||
8244 | stap_LIBS="$stap_LIBS -lrpm" | |
8245 | have_librpm="yes" | |
7f9ad862 SC |
8246 | else |
8247 | have_librpm="no" | |
2ed04863 | 8248 | fi |
e6364d79 | 8249 | |
bcfa72ed FCE |
8250 | if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then |
8251 | { { $as_echo "$as_me:$LINENO: error: cannot find librpm" >&5 | |
8252 | $as_echo "$as_me: error: cannot find librpm" >&2;} | |
e6364d79 | 8253 | { (exit 1); exit 1; }; } |
2ed04863 WC |
8254 | fi |
8255 | fi | |
8256 | ||
8257 | ||
e8f3c2c2 DS |
8258 | build_elfutils=no |
8259 | ||
7fbd9d09 | 8260 | # Check whether --with-elfutils was given. |
e6364d79 | 8261 | if test "${with_elfutils+set}" = set; then |
7fbd9d09 | 8262 | withval=$with_elfutils; |
e8f3c2c2 | 8263 | case "$with_elfutils" in |
e6364d79 MW |
8264 | yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5 |
8265 | $as_echo "$as_me: error: --with-elfutils requires an argument" >&2;} | |
8266 | { (exit 1); exit 1; }; } ;; | |
e8f3c2c2 DS |
8267 | ''|no) ;; |
8268 | *) build_elfutils=yes ;; | |
8269 | esac | |
7fbd9d09 | 8270 | fi |
e8f3c2c2 | 8271 | |
7fbd9d09 | 8272 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
8273 | BUILD_ELFUTILS_TRUE= |
8274 | BUILD_ELFUTILS_FALSE='#' | |
8275 | else | |
8276 | BUILD_ELFUTILS_TRUE='#' | |
8277 | BUILD_ELFUTILS_FALSE= | |
8278 | fi | |
8279 | ||
e6364d79 | 8280 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then |
e8f3c2c2 | 8281 | cd $with_elfutils && pwd |
e6364d79 MW |
8282 | fi |
8283 | ` | |
e8f3c2c2 DS |
8284 | |
8285 | ||
efa6ba96 PP |
8286 | if test $enable_translator = yes; then |
8287 | if test $build_elfutils = no; then | |
8288 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ | |
8289 | save_LIBS="$LIBS" | |
e6364d79 MW |
8290 | |
8291 | { $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 | |
0710d850 | 8292 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } |
e6364d79 | 8293 | if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then |
0710d850 | 8294 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
8295 | else |
8296 | ac_check_lib_save_LIBS=$LIBS | |
8297 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
e6364d79 MW |
8298 | cat >conftest.$ac_ext <<_ACEOF |
8299 | /* confdefs.h. */ | |
8300 | _ACEOF | |
8301 | cat confdefs.h >>conftest.$ac_ext | |
8302 | cat >>conftest.$ac_ext <<_ACEOF | |
4645fadb JS |
8303 | /* end confdefs.h. */ |
8304 | ||
7fbd9d09 FCE |
8305 | /* Override any GCC internal prototype to avoid an error. |
8306 | Use char because int might match the return type of a GCC | |
8307 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
8308 | #ifdef __cplusplus |
8309 | extern "C" | |
8310 | #endif | |
8311 | char dwfl_module_getsym (); | |
8312 | int | |
8313 | main () | |
8314 | { | |
7fbd9d09 | 8315 | return dwfl_module_getsym (); |
4645fadb JS |
8316 | ; |
8317 | return 0; | |
8318 | } | |
8319 | _ACEOF | |
e6364d79 MW |
8320 | rm -f conftest.$ac_objext conftest$ac_exeext |
8321 | if { (ac_try="$ac_link" | |
8322 | case "(($ac_try" in | |
8323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8324 | *) ac_try_echo=$ac_try;; | |
8325 | esac | |
8326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8327 | $as_echo "$ac_try_echo") >&5 | |
8328 | (eval "$ac_link") 2>conftest.er1 | |
8329 | ac_status=$? | |
8330 | grep -v '^ *+' conftest.er1 >conftest.err | |
8331 | rm -f conftest.er1 | |
8332 | cat conftest.err >&5 | |
8333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8334 | (exit $ac_status); } && { | |
8335 | test -z "$ac_c_werror_flag" || | |
8336 | test ! -s conftest.err | |
8337 | } && test -s conftest$ac_exeext && { | |
8338 | test "$cross_compiling" = yes || | |
8339 | $as_test_x conftest$ac_exeext | |
8340 | }; then | |
4645fadb JS |
8341 | ac_cv_lib_dw_dwfl_module_getsym=yes |
8342 | else | |
e6364d79 MW |
8343 | $as_echo "$as_me: failed program was:" >&5 |
8344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8345 | ||
8346 | ac_cv_lib_dw_dwfl_module_getsym=no | |
4645fadb | 8347 | fi |
e6364d79 MW |
8348 | |
8349 | rm -rf conftest.dSYM | |
8350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8351 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
8352 | LIBS=$ac_check_lib_save_LIBS |
8353 | fi | |
e6364d79 | 8354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
0710d850 | 8355 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } |
e6364d79 | 8356 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then |
4645fadb JS |
8357 | cat >>confdefs.h <<_ACEOF |
8358 | #define HAVE_LIBDW 1 | |
8359 | _ACEOF | |
8360 | ||
8361 | LIBS="-ldw $LIBS" | |
8362 | ||
8363 | else | |
8364 | ||
efa6ba96 | 8365 | { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 |
e6364d79 MW |
8366 | $as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} |
8367 | { (exit 1); exit 1; }; } | |
4645fadb JS |
8368 | fi |
8369 | ||
e6364d79 MW |
8370 | |
8371 | { $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5 | |
0710d850 | 8372 | $as_echo_n "checking for dwarf_getelf in -ldw... " >&6; } |
e6364d79 | 8373 | if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then |
0710d850 | 8374 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
8375 | else |
8376 | ac_check_lib_save_LIBS=$LIBS | |
8377 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
e6364d79 MW |
8378 | cat >conftest.$ac_ext <<_ACEOF |
8379 | /* confdefs.h. */ | |
8380 | _ACEOF | |
8381 | cat confdefs.h >>conftest.$ac_ext | |
8382 | cat >>conftest.$ac_ext <<_ACEOF | |
87cb1275 MW |
8383 | /* end confdefs.h. */ |
8384 | ||
7fbd9d09 FCE |
8385 | /* Override any GCC internal prototype to avoid an error. |
8386 | Use char because int might match the return type of a GCC | |
8387 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
8388 | #ifdef __cplusplus |
8389 | extern "C" | |
8390 | #endif | |
8391 | char dwarf_getelf (); | |
8392 | int | |
8393 | main () | |
8394 | { | |
7fbd9d09 | 8395 | return dwarf_getelf (); |
87cb1275 MW |
8396 | ; |
8397 | return 0; | |
8398 | } | |
8399 | _ACEOF | |
e6364d79 MW |
8400 | rm -f conftest.$ac_objext conftest$ac_exeext |
8401 | if { (ac_try="$ac_link" | |
8402 | case "(($ac_try" in | |
8403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8404 | *) ac_try_echo=$ac_try;; | |
8405 | esac | |
8406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8407 | $as_echo "$ac_try_echo") >&5 | |
8408 | (eval "$ac_link") 2>conftest.er1 | |
8409 | ac_status=$? | |
8410 | grep -v '^ *+' conftest.er1 >conftest.err | |
8411 | rm -f conftest.er1 | |
8412 | cat conftest.err >&5 | |
8413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8414 | (exit $ac_status); } && { | |
8415 | test -z "$ac_c_werror_flag" || | |
8416 | test ! -s conftest.err | |
8417 | } && test -s conftest$ac_exeext && { | |
8418 | test "$cross_compiling" = yes || | |
8419 | $as_test_x conftest$ac_exeext | |
8420 | }; then | |
87cb1275 MW |
8421 | ac_cv_lib_dw_dwarf_getelf=yes |
8422 | else | |
e6364d79 MW |
8423 | $as_echo "$as_me: failed program was:" >&5 |
8424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8425 | ||
8426 | ac_cv_lib_dw_dwarf_getelf=no | |
87cb1275 | 8427 | fi |
e6364d79 MW |
8428 | |
8429 | rm -rf conftest.dSYM | |
8430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8431 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
8432 | LIBS=$ac_check_lib_save_LIBS |
8433 | fi | |
e6364d79 | 8434 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5 |
0710d850 | 8435 | $as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; } |
e6364d79 | 8436 | if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then |
87cb1275 MW |
8437 | cat >>confdefs.h <<_ACEOF |
8438 | #define HAVE_LIBDW 1 | |
8439 | _ACEOF | |
8440 | ||
8441 | LIBS="-ldw $LIBS" | |
8442 | ||
8443 | else | |
8444 | ||
efa6ba96 | 8445 | { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 |
e6364d79 MW |
8446 | $as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} |
8447 | { (exit 1); exit 1; }; } | |
87cb1275 MW |
8448 | fi |
8449 | ||
12c1a007 | 8450 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 PP |
8451 | LIBS="$save_LIBS" |
8452 | else | |
8453 | # We built our own and stap_LDFLAGS points at the install. | |
12c1a007 | 8454 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 | 8455 | fi |
4645fadb JS |
8456 | fi |
8457 | ||
6b1a0274 | 8458 | |
e6364d79 | 8459 | { $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5 |
0710d850 | 8460 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} |
c3a3c0c9 | 8461 | |
69c68955 FCE |
8462 | date=`date +%Y-%m-%d` |
8463 | ||
8464 | cat >>confdefs.h <<_ACEOF | |
8465 | #define DATE "$date" | |
8466 | _ACEOF | |
8467 | ||
82fab474 | 8468 | DATE="$date" |
69c68955 FCE |
8469 | |
8470 | ||
47f390f9 FCE |
8471 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
8472 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
8473 | # This is no longer necessary. | |
5566993b | 8474 | |
3bf6ac45 | 8475 | # Use tr1/unordered_map if available |
7fbd9d09 | 8476 | ac_ext=cpp |
3bf6ac45 TM |
8477 | ac_cpp='$CXXCPP $CPPFLAGS' |
8478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8481 | ||
e6364d79 | 8482 | |
3bf6ac45 | 8483 | for ac_header in tr1/unordered_map |
e6364d79 MW |
8484 | do |
8485 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8487 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8488 | $as_echo_n "checking for $ac_header... " >&6; } | |
8489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8490 | $as_echo_n "(cached) " >&6 | |
8491 | fi | |
8492 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8493 | $as_echo "$as_val"'` | |
8494 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8495 | $as_echo "$ac_res" >&6; } | |
8496 | else | |
8497 | # Is the header compilable? | |
8498 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8499 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8500 | cat >conftest.$ac_ext <<_ACEOF | |
8501 | /* confdefs.h. */ | |
8502 | _ACEOF | |
8503 | cat confdefs.h >>conftest.$ac_ext | |
8504 | cat >>conftest.$ac_ext <<_ACEOF | |
8505 | /* end confdefs.h. */ | |
8506 | $ac_includes_default | |
8507 | #include <$ac_header> | |
8508 | _ACEOF | |
8509 | rm -f conftest.$ac_objext | |
8510 | if { (ac_try="$ac_compile" | |
8511 | case "(($ac_try" in | |
8512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8513 | *) ac_try_echo=$ac_try;; | |
8514 | esac | |
8515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8516 | $as_echo "$ac_try_echo") >&5 | |
8517 | (eval "$ac_compile") 2>conftest.er1 | |
8518 | ac_status=$? | |
8519 | grep -v '^ *+' conftest.er1 >conftest.err | |
8520 | rm -f conftest.er1 | |
8521 | cat conftest.err >&5 | |
8522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8523 | (exit $ac_status); } && { | |
8524 | test -z "$ac_cxx_werror_flag" || | |
8525 | test ! -s conftest.err | |
8526 | } && test -s conftest.$ac_objext; then | |
8527 | ac_header_compiler=yes | |
8528 | else | |
8529 | $as_echo "$as_me: failed program was:" >&5 | |
8530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8531 | ||
8532 | ac_header_compiler=no | |
8533 | fi | |
8534 | ||
8535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8536 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8537 | $as_echo "$ac_header_compiler" >&6; } | |
8538 | ||
8539 | # Is the header present? | |
8540 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8541 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8542 | cat >conftest.$ac_ext <<_ACEOF | |
8543 | /* confdefs.h. */ | |
8544 | _ACEOF | |
8545 | cat confdefs.h >>conftest.$ac_ext | |
8546 | cat >>conftest.$ac_ext <<_ACEOF | |
8547 | /* end confdefs.h. */ | |
8548 | #include <$ac_header> | |
8549 | _ACEOF | |
8550 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8551 | case "(($ac_try" in | |
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8553 | *) ac_try_echo=$ac_try;; | |
8554 | esac | |
8555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8556 | $as_echo "$ac_try_echo") >&5 | |
8557 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8558 | ac_status=$? | |
8559 | grep -v '^ *+' conftest.er1 >conftest.err | |
8560 | rm -f conftest.er1 | |
8561 | cat conftest.err >&5 | |
8562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8563 | (exit $ac_status); } >/dev/null && { | |
8564 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8565 | test ! -s conftest.err | |
8566 | }; then | |
8567 | ac_header_preproc=yes | |
8568 | else | |
8569 | $as_echo "$as_me: failed program was:" >&5 | |
8570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8571 | ||
8572 | ac_header_preproc=no | |
8573 | fi | |
8574 | ||
8575 | rm -f conftest.err conftest.$ac_ext | |
8576 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8577 | $as_echo "$ac_header_preproc" >&6; } | |
8578 | ||
8579 | # So? What about this header? | |
8580 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8581 | yes:no: ) | |
8582 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8583 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8584 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8585 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8586 | ac_header_preproc=yes | |
8587 | ;; | |
8588 | no:yes:* ) | |
8589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8590 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8591 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8592 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8593 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8594 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8595 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8596 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8597 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8598 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8599 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8600 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8601 | ( cat <<\_ASBOX | |
8602 | ## ------------------------------------------- ## | |
8603 | ## Report this to systemtap@sources.redhat.com ## | |
8604 | ## ------------------------------------------- ## | |
8605 | _ASBOX | |
8606 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8607 | ;; | |
8608 | esac | |
8609 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8610 | $as_echo_n "checking for $ac_header... " >&6; } | |
8611 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8612 | $as_echo_n "(cached) " >&6 | |
8613 | else | |
8614 | eval "$as_ac_Header=\$ac_header_preproc" | |
8615 | fi | |
8616 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8617 | $as_echo "$as_val"'` | |
8618 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8619 | $as_echo "$ac_res" >&6; } | |
8620 | ||
8621 | fi | |
8622 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8623 | $as_echo "$as_val"'` | |
8624 | if test "x$as_val" = x""yes; then | |
469c1a1b | 8625 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 8626 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
469c1a1b FCE |
8627 | _ACEOF |
8628 | ||
8629 | fi | |
8630 | ||
8631 | done | |
8632 | ||
e6364d79 | 8633 | |
469c1a1b | 8634 | for ac_header in tr1/memory |
e6364d79 MW |
8635 | do |
8636 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8639 | $as_echo_n "checking for $ac_header... " >&6; } | |
8640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8641 | $as_echo_n "(cached) " >&6 | |
8642 | fi | |
8643 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8644 | $as_echo "$as_val"'` | |
8645 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8646 | $as_echo "$ac_res" >&6; } | |
8647 | else | |
8648 | # Is the header compilable? | |
8649 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8650 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8651 | cat >conftest.$ac_ext <<_ACEOF | |
8652 | /* confdefs.h. */ | |
8653 | _ACEOF | |
8654 | cat confdefs.h >>conftest.$ac_ext | |
8655 | cat >>conftest.$ac_ext <<_ACEOF | |
8656 | /* end confdefs.h. */ | |
8657 | $ac_includes_default | |
8658 | #include <$ac_header> | |
8659 | _ACEOF | |
8660 | rm -f conftest.$ac_objext | |
8661 | if { (ac_try="$ac_compile" | |
8662 | case "(($ac_try" in | |
8663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8664 | *) ac_try_echo=$ac_try;; | |
8665 | esac | |
8666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8667 | $as_echo "$ac_try_echo") >&5 | |
8668 | (eval "$ac_compile") 2>conftest.er1 | |
8669 | ac_status=$? | |
8670 | grep -v '^ *+' conftest.er1 >conftest.err | |
8671 | rm -f conftest.er1 | |
8672 | cat conftest.err >&5 | |
8673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8674 | (exit $ac_status); } && { | |
8675 | test -z "$ac_cxx_werror_flag" || | |
8676 | test ! -s conftest.err | |
8677 | } && test -s conftest.$ac_objext; then | |
8678 | ac_header_compiler=yes | |
8679 | else | |
8680 | $as_echo "$as_me: failed program was:" >&5 | |
8681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8682 | ||
8683 | ac_header_compiler=no | |
8684 | fi | |
8685 | ||
8686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8687 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8688 | $as_echo "$ac_header_compiler" >&6; } | |
8689 | ||
8690 | # Is the header present? | |
8691 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8692 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8693 | cat >conftest.$ac_ext <<_ACEOF | |
8694 | /* confdefs.h. */ | |
8695 | _ACEOF | |
8696 | cat confdefs.h >>conftest.$ac_ext | |
8697 | cat >>conftest.$ac_ext <<_ACEOF | |
8698 | /* end confdefs.h. */ | |
8699 | #include <$ac_header> | |
8700 | _ACEOF | |
8701 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8702 | case "(($ac_try" in | |
8703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8704 | *) ac_try_echo=$ac_try;; | |
8705 | esac | |
8706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8707 | $as_echo "$ac_try_echo") >&5 | |
8708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8709 | ac_status=$? | |
8710 | grep -v '^ *+' conftest.er1 >conftest.err | |
8711 | rm -f conftest.er1 | |
8712 | cat conftest.err >&5 | |
8713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8714 | (exit $ac_status); } >/dev/null && { | |
8715 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8716 | test ! -s conftest.err | |
8717 | }; then | |
8718 | ac_header_preproc=yes | |
8719 | else | |
8720 | $as_echo "$as_me: failed program was:" >&5 | |
8721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8722 | ||
8723 | ac_header_preproc=no | |
8724 | fi | |
8725 | ||
8726 | rm -f conftest.err conftest.$ac_ext | |
8727 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8728 | $as_echo "$ac_header_preproc" >&6; } | |
8729 | ||
8730 | # So? What about this header? | |
8731 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8732 | yes:no: ) | |
8733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8734 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8736 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8737 | ac_header_preproc=yes | |
8738 | ;; | |
8739 | no:yes:* ) | |
8740 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8741 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8742 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8743 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8745 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8746 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8747 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8749 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8751 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8752 | ( cat <<\_ASBOX | |
8753 | ## ------------------------------------------- ## | |
8754 | ## Report this to systemtap@sources.redhat.com ## | |
8755 | ## ------------------------------------------- ## | |
8756 | _ASBOX | |
8757 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8758 | ;; | |
8759 | esac | |
8760 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8761 | $as_echo_n "checking for $ac_header... " >&6; } | |
8762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8763 | $as_echo_n "(cached) " >&6 | |
8764 | else | |
8765 | eval "$as_ac_Header=\$ac_header_preproc" | |
8766 | fi | |
8767 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8768 | $as_echo "$as_val"'` | |
8769 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8770 | $as_echo "$ac_res" >&6; } | |
8771 | ||
8772 | fi | |
8773 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8774 | $as_echo "$as_val"'` | |
8775 | if test "x$as_val" = x""yes; then | |
469c1a1b | 8776 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 8777 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
469c1a1b FCE |
8778 | _ACEOF |
8779 | ||
8780 | fi | |
8781 | ||
8782 | done | |
8783 | ||
e6364d79 | 8784 | |
469c1a1b | 8785 | for ac_header in boost/shared_ptr.hpp |
e6364d79 MW |
8786 | do |
8787 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8789 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8790 | $as_echo_n "checking for $ac_header... " >&6; } | |
8791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8792 | $as_echo_n "(cached) " >&6 | |
8793 | fi | |
8794 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8795 | $as_echo "$as_val"'` | |
8796 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8797 | $as_echo "$ac_res" >&6; } | |
8798 | else | |
8799 | # Is the header compilable? | |
8800 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8801 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8802 | cat >conftest.$ac_ext <<_ACEOF | |
8803 | /* confdefs.h. */ | |
8804 | _ACEOF | |
8805 | cat confdefs.h >>conftest.$ac_ext | |
8806 | cat >>conftest.$ac_ext <<_ACEOF | |
8807 | /* end confdefs.h. */ | |
8808 | $ac_includes_default | |
8809 | #include <$ac_header> | |
8810 | _ACEOF | |
8811 | rm -f conftest.$ac_objext | |
8812 | if { (ac_try="$ac_compile" | |
8813 | case "(($ac_try" in | |
8814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8815 | *) ac_try_echo=$ac_try;; | |
8816 | esac | |
8817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8818 | $as_echo "$ac_try_echo") >&5 | |
8819 | (eval "$ac_compile") 2>conftest.er1 | |
8820 | ac_status=$? | |
8821 | grep -v '^ *+' conftest.er1 >conftest.err | |
8822 | rm -f conftest.er1 | |
8823 | cat conftest.err >&5 | |
8824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8825 | (exit $ac_status); } && { | |
8826 | test -z "$ac_cxx_werror_flag" || | |
8827 | test ! -s conftest.err | |
8828 | } && test -s conftest.$ac_objext; then | |
8829 | ac_header_compiler=yes | |
8830 | else | |
8831 | $as_echo "$as_me: failed program was:" >&5 | |
8832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8833 | ||
8834 | ac_header_compiler=no | |
8835 | fi | |
8836 | ||
8837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8838 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8839 | $as_echo "$ac_header_compiler" >&6; } | |
8840 | ||
8841 | # Is the header present? | |
8842 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8843 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8844 | cat >conftest.$ac_ext <<_ACEOF | |
8845 | /* confdefs.h. */ | |
8846 | _ACEOF | |
8847 | cat confdefs.h >>conftest.$ac_ext | |
8848 | cat >>conftest.$ac_ext <<_ACEOF | |
8849 | /* end confdefs.h. */ | |
8850 | #include <$ac_header> | |
8851 | _ACEOF | |
8852 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8853 | case "(($ac_try" in | |
8854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8855 | *) ac_try_echo=$ac_try;; | |
8856 | esac | |
8857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8858 | $as_echo "$ac_try_echo") >&5 | |
8859 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8860 | ac_status=$? | |
8861 | grep -v '^ *+' conftest.er1 >conftest.err | |
8862 | rm -f conftest.er1 | |
8863 | cat conftest.err >&5 | |
8864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8865 | (exit $ac_status); } >/dev/null && { | |
8866 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8867 | test ! -s conftest.err | |
8868 | }; then | |
8869 | ac_header_preproc=yes | |
8870 | else | |
8871 | $as_echo "$as_me: failed program was:" >&5 | |
8872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8873 | ||
8874 | ac_header_preproc=no | |
8875 | fi | |
8876 | ||
8877 | rm -f conftest.err conftest.$ac_ext | |
8878 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8879 | $as_echo "$ac_header_preproc" >&6; } | |
8880 | ||
8881 | # So? What about this header? | |
8882 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8883 | yes:no: ) | |
8884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8885 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8887 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8888 | ac_header_preproc=yes | |
8889 | ;; | |
8890 | no:yes:* ) | |
8891 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8892 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8893 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8894 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8895 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8896 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8898 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8900 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8902 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8903 | ( cat <<\_ASBOX | |
8904 | ## ------------------------------------------- ## | |
8905 | ## Report this to systemtap@sources.redhat.com ## | |
8906 | ## ------------------------------------------- ## | |
8907 | _ASBOX | |
8908 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8909 | ;; | |
8910 | esac | |
8911 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8912 | $as_echo_n "checking for $ac_header... " >&6; } | |
8913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8914 | $as_echo_n "(cached) " >&6 | |
8915 | else | |
8916 | eval "$as_ac_Header=\$ac_header_preproc" | |
8917 | fi | |
8918 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8919 | $as_echo "$as_val"'` | |
8920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8921 | $as_echo "$ac_res" >&6; } | |
8922 | ||
8923 | fi | |
8924 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8925 | $as_echo "$as_val"'` | |
8926 | if test "x$as_val" = x""yes; then | |
3bf6ac45 | 8927 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 8928 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3bf6ac45 TM |
8929 | _ACEOF |
8930 | ||
8931 | fi | |
8932 | ||
8933 | done | |
8934 | ||
8935 | ac_ext=c | |
8936 | ac_cpp='$CPP $CPPFLAGS' | |
8937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8940 | ||
8941 | ||
e016a49a | 8942 | |
efa6ba96 | 8943 | if test $build_elfutils = yes -a $enable_translator = yes; then |
e016a49a FCE |
8944 | case "$with_elfutils" in |
8945 | /*) elfutils_srcdir="$with_elfutils" ;; | |
8946 | *) elfutils_srcdir="../$with_elfutils" ;; | |
8947 | esac | |
e6364d79 | 8948 | { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5 |
0710d850 | 8949 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} |
29b694a7 DS |
8950 | |
8951 | save_CFLAGS="$CFLAGS" | |
8952 | save_CXXFLAGS="$CXXFLAGS" | |
8953 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
8954 | CFLAGS="$CFLAGS -fgnu89-inline" | |
8955 | gnu89_inline_flag="" | |
e6364d79 | 8956 | cat >conftest.$ac_ext <<_ACEOF |
29b694a7 DS |
8957 | int something (); |
8958 | _ACEOF | |
e6364d79 MW |
8959 | rm -f conftest.$ac_objext |
8960 | if { (ac_try="$ac_compile" | |
8961 | case "(($ac_try" in | |
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8963 | *) ac_try_echo=$ac_try;; | |
8964 | esac | |
8965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8966 | $as_echo "$ac_try_echo") >&5 | |
8967 | (eval "$ac_compile") 2>conftest.er1 | |
8968 | ac_status=$? | |
8969 | grep -v '^ *+' conftest.er1 >conftest.err | |
8970 | rm -f conftest.er1 | |
8971 | cat conftest.err >&5 | |
8972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8973 | (exit $ac_status); } && { | |
8974 | test -z "$ac_c_werror_flag" || | |
8975 | test ! -s conftest.err | |
8976 | } && test -s conftest.$ac_objext; then | |
29b694a7 | 8977 | |
e6364d79 | 8978 | { $as_echo "$as_me:$LINENO: Compiling elfutils with gcc -fgnu89-inline" >&5 |
0710d850 | 8979 | $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} |
29b694a7 DS |
8980 | gnu89_inline_flag="-fgnu89-inline" |
8981 | else | |
e6364d79 MW |
8982 | $as_echo "$as_me: failed program was:" >&5 |
8983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8984 | ||
29b694a7 | 8985 | |
e6364d79 | 8986 | { $as_echo "$as_me:$LINENO: Compiler does not support -fgnu89-inline" >&5 |
0710d850 | 8987 | $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} |
29b694a7 | 8988 | fi |
e6364d79 | 8989 | |
29b694a7 DS |
8990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8991 | CFLAGS="$save_CFLAGS" | |
8992 | CXXFLAGS="$save_CXXFLAGS" | |
8993 | ||
e016a49a FCE |
8994 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
8995 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
8996 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
8997 | # So we must make sure to pass those settings to elfutils configure. | |
8998 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
8999 | here=`pwd` | |
9000 | (mkdir -p build-elfutils && cd build-elfutils && | |
412e1bf7 | 9001 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
9002 | --includedir="${here}/include-elfutils" \ |
9003 | --libdir="${here}/lib-elfutils" \ | |
9004 | --exec-prefix="$exec_prefix" \ | |
9005 | --prefix="$prefix" \ | |
29b694a7 | 9006 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \ |
e016a49a | 9007 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 MW |
9008 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
9009 | echo Trying to install elfutils version header... | |
9010 | make install-pkgincludeHEADERS | |
9011 | fi | |
9012 | # so that elfutils/version.h - available from 0.138 - may be found. | |
93f86457 | 9013 | # Don't use install-data because that will fail (installing in $prefix). |
e016a49a | 9014 | ) |
93f86457 | 9015 | if test $? != 0; then exit; fi |
1c4cf93d MW |
9016 | save_CPPFLAGS=${CPPFLAGS} |
9017 | CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils | |
e6364d79 MW |
9018 | |
9019 | for ac_header in elfutils/version.h | |
9020 | do | |
9021 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9023 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9024 | $as_echo_n "checking for $ac_header... " >&6; } | |
9025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9026 | $as_echo_n "(cached) " >&6 | |
9027 | fi | |
9028 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9029 | $as_echo "$as_val"'` | |
9030 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9031 | $as_echo "$ac_res" >&6; } | |
9032 | else | |
9033 | # Is the header compilable? | |
9034 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9035 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9036 | cat >conftest.$ac_ext <<_ACEOF | |
9037 | /* confdefs.h. */ | |
9038 | _ACEOF | |
9039 | cat confdefs.h >>conftest.$ac_ext | |
9040 | cat >>conftest.$ac_ext <<_ACEOF | |
9041 | /* end confdefs.h. */ | |
9042 | $ac_includes_default | |
9043 | #include <$ac_header> | |
9044 | _ACEOF | |
9045 | rm -f conftest.$ac_objext | |
9046 | if { (ac_try="$ac_compile" | |
9047 | case "(($ac_try" in | |
9048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9049 | *) ac_try_echo=$ac_try;; | |
9050 | esac | |
9051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9052 | $as_echo "$ac_try_echo") >&5 | |
9053 | (eval "$ac_compile") 2>conftest.er1 | |
9054 | ac_status=$? | |
9055 | grep -v '^ *+' conftest.er1 >conftest.err | |
9056 | rm -f conftest.er1 | |
9057 | cat conftest.err >&5 | |
9058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9059 | (exit $ac_status); } && { | |
9060 | test -z "$ac_c_werror_flag" || | |
9061 | test ! -s conftest.err | |
9062 | } && test -s conftest.$ac_objext; then | |
9063 | ac_header_compiler=yes | |
9064 | else | |
9065 | $as_echo "$as_me: failed program was:" >&5 | |
9066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9067 | ||
9068 | ac_header_compiler=no | |
9069 | fi | |
9070 | ||
9071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9072 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9073 | $as_echo "$ac_header_compiler" >&6; } | |
9074 | ||
9075 | # Is the header present? | |
9076 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9077 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9078 | cat >conftest.$ac_ext <<_ACEOF | |
9079 | /* confdefs.h. */ | |
9080 | _ACEOF | |
9081 | cat confdefs.h >>conftest.$ac_ext | |
9082 | cat >>conftest.$ac_ext <<_ACEOF | |
9083 | /* end confdefs.h. */ | |
9084 | #include <$ac_header> | |
9085 | _ACEOF | |
9086 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9087 | case "(($ac_try" in | |
9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9089 | *) ac_try_echo=$ac_try;; | |
9090 | esac | |
9091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9092 | $as_echo "$ac_try_echo") >&5 | |
9093 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9094 | ac_status=$? | |
9095 | grep -v '^ *+' conftest.er1 >conftest.err | |
9096 | rm -f conftest.er1 | |
9097 | cat conftest.err >&5 | |
9098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9099 | (exit $ac_status); } >/dev/null && { | |
9100 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9101 | test ! -s conftest.err | |
9102 | }; then | |
9103 | ac_header_preproc=yes | |
9104 | else | |
9105 | $as_echo "$as_me: failed program was:" >&5 | |
9106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9107 | ||
9108 | ac_header_preproc=no | |
9109 | fi | |
9110 | ||
9111 | rm -f conftest.err conftest.$ac_ext | |
9112 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9113 | $as_echo "$ac_header_preproc" >&6; } | |
9114 | ||
9115 | # So? What about this header? | |
9116 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9117 | yes:no: ) | |
9118 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9119 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9120 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9121 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9122 | ac_header_preproc=yes | |
9123 | ;; | |
9124 | no:yes:* ) | |
9125 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9126 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9127 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9128 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9130 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9132 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9134 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9136 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9137 | ( cat <<\_ASBOX | |
9138 | ## ------------------------------------------- ## | |
9139 | ## Report this to systemtap@sources.redhat.com ## | |
9140 | ## ------------------------------------------- ## | |
9141 | _ASBOX | |
9142 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9143 | ;; | |
9144 | esac | |
9145 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9146 | $as_echo_n "checking for $ac_header... " >&6; } | |
9147 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9148 | $as_echo_n "(cached) " >&6 | |
9149 | else | |
9150 | eval "$as_ac_Header=\$ac_header_preproc" | |
9151 | fi | |
9152 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9153 | $as_echo "$as_val"'` | |
9154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9155 | $as_echo "$ac_res" >&6; } | |
9156 | ||
9157 | fi | |
9158 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9159 | $as_echo "$as_val"'` | |
9160 | if test "x$as_val" = x""yes; then | |
1c4cf93d | 9161 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 9162 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1c4cf93d MW |
9163 | _ACEOF |
9164 | ||
9165 | fi | |
9166 | ||
9167 | done | |
9168 | ||
9169 | CPPFLAGS="$save_CPPFLAGS" | |
4b5627b1 | 9170 | else |
e6364d79 MW |
9171 | |
9172 | for ac_header in elfutils/version.h | |
9173 | do | |
9174 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9175 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9176 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9177 | $as_echo_n "checking for $ac_header... " >&6; } | |
9178 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9179 | $as_echo_n "(cached) " >&6 | |
9180 | fi | |
9181 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9182 | $as_echo "$as_val"'` | |
9183 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9184 | $as_echo "$ac_res" >&6; } | |
9185 | else | |
9186 | # Is the header compilable? | |
9187 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9188 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9189 | cat >conftest.$ac_ext <<_ACEOF | |
9190 | /* confdefs.h. */ | |
9191 | _ACEOF | |
9192 | cat confdefs.h >>conftest.$ac_ext | |
9193 | cat >>conftest.$ac_ext <<_ACEOF | |
9194 | /* end confdefs.h. */ | |
9195 | $ac_includes_default | |
9196 | #include <$ac_header> | |
9197 | _ACEOF | |
9198 | rm -f conftest.$ac_objext | |
9199 | if { (ac_try="$ac_compile" | |
9200 | case "(($ac_try" in | |
9201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9202 | *) ac_try_echo=$ac_try;; | |
9203 | esac | |
9204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9205 | $as_echo "$ac_try_echo") >&5 | |
9206 | (eval "$ac_compile") 2>conftest.er1 | |
9207 | ac_status=$? | |
9208 | grep -v '^ *+' conftest.er1 >conftest.err | |
9209 | rm -f conftest.er1 | |
9210 | cat conftest.err >&5 | |
9211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9212 | (exit $ac_status); } && { | |
9213 | test -z "$ac_c_werror_flag" || | |
9214 | test ! -s conftest.err | |
9215 | } && test -s conftest.$ac_objext; then | |
9216 | ac_header_compiler=yes | |
9217 | else | |
9218 | $as_echo "$as_me: failed program was:" >&5 | |
9219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9220 | ||
9221 | ac_header_compiler=no | |
9222 | fi | |
9223 | ||
9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9225 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9226 | $as_echo "$ac_header_compiler" >&6; } | |
9227 | ||
9228 | # Is the header present? | |
9229 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9230 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9231 | cat >conftest.$ac_ext <<_ACEOF | |
9232 | /* confdefs.h. */ | |
9233 | _ACEOF | |
9234 | cat confdefs.h >>conftest.$ac_ext | |
9235 | cat >>conftest.$ac_ext <<_ACEOF | |
9236 | /* end confdefs.h. */ | |
9237 | #include <$ac_header> | |
9238 | _ACEOF | |
9239 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9240 | case "(($ac_try" in | |
9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9242 | *) ac_try_echo=$ac_try;; | |
9243 | esac | |
9244 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9245 | $as_echo "$ac_try_echo") >&5 | |
9246 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9247 | ac_status=$? | |
9248 | grep -v '^ *+' conftest.er1 >conftest.err | |
9249 | rm -f conftest.er1 | |
9250 | cat conftest.err >&5 | |
9251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9252 | (exit $ac_status); } >/dev/null && { | |
9253 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9254 | test ! -s conftest.err | |
9255 | }; then | |
9256 | ac_header_preproc=yes | |
9257 | else | |
9258 | $as_echo "$as_me: failed program was:" >&5 | |
9259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9260 | ||
9261 | ac_header_preproc=no | |
9262 | fi | |
9263 | ||
9264 | rm -f conftest.err conftest.$ac_ext | |
9265 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9266 | $as_echo "$ac_header_preproc" >&6; } | |
9267 | ||
9268 | # So? What about this header? | |
9269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9270 | yes:no: ) | |
9271 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9272 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9273 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9274 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9275 | ac_header_preproc=yes | |
9276 | ;; | |
9277 | no:yes:* ) | |
9278 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9279 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9280 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9281 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9282 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9283 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9285 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9286 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9287 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9288 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9289 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9290 | ( cat <<\_ASBOX | |
9291 | ## ------------------------------------------- ## | |
9292 | ## Report this to systemtap@sources.redhat.com ## | |
9293 | ## ------------------------------------------- ## | |
9294 | _ASBOX | |
9295 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9296 | ;; | |
9297 | esac | |
9298 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9299 | $as_echo_n "checking for $ac_header... " >&6; } | |
9300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9301 | $as_echo_n "(cached) " >&6 | |
9302 | else | |
9303 | eval "$as_ac_Header=\$ac_header_preproc" | |
9304 | fi | |
9305 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9306 | $as_echo "$as_val"'` | |
9307 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9308 | $as_echo "$ac_res" >&6; } | |
9309 | ||
9310 | fi | |
9311 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9312 | $as_echo "$as_val"'` | |
9313 | if test "x$as_val" = x""yes; then | |
e016a49a | 9314 | cat >>confdefs.h <<_ACEOF |
e6364d79 | 9315 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e016a49a FCE |
9316 | _ACEOF |
9317 | ||
9318 | fi | |
9319 | ||
9320 | done | |
9321 | ||
1c4cf93d | 9322 | fi |
e016a49a | 9323 | |
2a1c9b5d FCE |
9324 | stap_prefix=$prefix |
9325 | test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix | |
50431f30 MW |
9326 | |
9327 | cat >>confdefs.h <<_ACEOF | |
2a1c9b5d | 9328 | #define STAP_PREFIX "$stap_prefix" |
50431f30 MW |
9329 | _ACEOF |
9330 | ||
9331 | ||
7fbd9d09 | 9332 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 9333 | |
c24a9d9a | 9334 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-client.8 stap-server.8 stap-authorize-server-cert.8 stap-authorize-signing-cert.8 initscript/systemtap initscript/stap-server dtrace.1" |
8d9d8fe1 | 9335 | |
0710d850 DS |
9336 | |
9337 | ||
1087b83f | 9338 | subdirs="$subdirs testsuite" |
5ba96b90 | 9339 | |
6d14a4a9 EB |
9340 | if test $enable_translator == "yes"; then |
9341 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 9342 | |
6d14a4a9 | 9343 | fi |
65ffc3f3 | 9344 | ac_config_files="$ac_config_files run-staprun" |
3c960a7c | 9345 | |
e4aaabda MW |
9346 | ac_config_files="$ac_config_files dtrace" |
9347 | ||
53ade4da MW |
9348 | |
9349 | # Setup "shadow" directory doc/beginners that has everything setup for | |
9350 | # publican in one directory (through directory links if necessary). | |
9351 | # It would be nice to use AC_CONFIG_LINKS, but automake complains when | |
9352 | # the src is a directory and not a file. | |
9353 | ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" | |
9354 | ||
9355 | ac_config_commands="$ac_config_commands doc/beginners" | |
9356 | ||
9357 | ||
2f1a1aea FCE |
9358 | cat >confcache <<\_ACEOF |
9359 | # This file is a shell script that caches the results of configure | |
9360 | # tests run on this system so they can be shared between configure | |
9361 | # scripts and configure runs, see configure's option --config-cache. | |
9362 | # It is not useful on other systems. If it contains results you don't | |
9363 | # want to keep, you may remove or edit it. | |
9364 | # | |
9365 | # config.status only pays attention to the cache file if you give it | |
9366 | # the --recheck option to rerun configure. | |
9367 | # | |
9368 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9369 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9370 | # following values. | |
9371 | ||
9372 | _ACEOF | |
9373 | ||
9374 | # The following way of writing the cache mishandles newlines in values, | |
9375 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 9376 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
9377 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9378 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
9379 | ( |
9380 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9381 | eval ac_val=\$$ac_var | |
9382 | case $ac_val in #( | |
9383 | *${as_nl}*) | |
9384 | case $ac_var in #( | |
e6364d79 | 9385 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 9386 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
9387 | esac |
9388 | case $ac_var in #( | |
9389 | _ | IFS | as_nl) ;; #( | |
0710d850 | 9390 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
e6364d79 | 9391 | *) $as_unset $ac_var ;; |
7fbd9d09 FCE |
9392 | esac ;; |
9393 | esac | |
9394 | done | |
9395 | ||
2f1a1aea | 9396 | (set) 2>&1 | |
7fbd9d09 FCE |
9397 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9398 | *${as_nl}ac_space=\ *) | |
e6364d79 MW |
9399 | # `set' does not quote correctly, so add quotes (double-quote |
9400 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2f1a1aea FCE |
9401 | sed -n \ |
9402 | "s/'/'\\\\''/g; | |
9403 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 9404 | ;; #( |
2f1a1aea FCE |
9405 | *) |
9406 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 9407 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 9408 | ;; |
7fbd9d09 FCE |
9409 | esac | |
9410 | sort | |
9411 | ) | | |
2f1a1aea | 9412 | sed ' |
7fbd9d09 | 9413 | /^ac_cv_env_/b end |
2f1a1aea | 9414 | t clear |
7fbd9d09 | 9415 | :clear |
2f1a1aea FCE |
9416 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9417 | t end | |
7fbd9d09 FCE |
9418 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9419 | :end' >>confcache | |
9420 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9421 | if test -w "$cache_file"; then | |
9422 | test "x$cache_file" != "x/dev/null" && | |
e6364d79 | 9423 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
0710d850 | 9424 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
2f1a1aea FCE |
9425 | cat confcache >$cache_file |
9426 | else | |
e6364d79 | 9427 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
0710d850 | 9428 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2f1a1aea FCE |
9429 | fi |
9430 | fi | |
9431 | rm -f confcache | |
9432 | ||
9433 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9434 | # Let make expand exec_prefix. | |
9435 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9436 | ||
2f1a1aea FCE |
9437 | DEFS=-DHAVE_CONFIG_H |
9438 | ||
9439 | ac_libobjs= | |
9440 | ac_ltlibobjs= | |
9441 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9442 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 9443 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
0710d850 | 9444 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
9445 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9446 | # will be set to the directory where LIBOBJS objects are built. | |
e6364d79 MW |
9447 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9448 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
9449 | done |
9450 | LIBOBJS=$ac_libobjs | |
9451 | ||
9452 | LTLIBOBJS=$ac_ltlibobjs | |
9453 | ||
9454 | ||
0710d850 DS |
9455 | if test -n "$EXEEXT"; then |
9456 | am__EXEEXT_TRUE= | |
9457 | am__EXEEXT_FALSE='#' | |
9458 | else | |
9459 | am__EXEEXT_TRUE='#' | |
9460 | am__EXEEXT_FALSE= | |
9461 | fi | |
9462 | ||
2f1a1aea | 9463 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
e6364d79 MW |
9464 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
9465 | Usually this means the macro was only invoked conditionally." >&5 | |
9466 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
9467 | Usually this means the macro was only invoked conditionally." >&2;} | |
9468 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9469 | fi |
9470 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
e6364d79 MW |
9471 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
9472 | Usually this means the macro was only invoked conditionally." >&5 | |
9473 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
9474 | Usually this means the macro was only invoked conditionally." >&2;} | |
9475 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9476 | fi |
9477 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
e6364d79 MW |
9478 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
9479 | Usually this means the macro was only invoked conditionally." >&5 | |
9480 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
9481 | Usually this means the macro was only invoked conditionally." >&2;} | |
9482 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9483 | fi |
9484 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
e6364d79 MW |
9485 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
9486 | Usually this means the macro was only invoked conditionally." >&5 | |
9487 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
9488 | Usually this means the macro was only invoked conditionally." >&2;} | |
9489 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9490 | fi |
9491 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
e6364d79 MW |
9492 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
9493 | Usually this means the macro was only invoked conditionally." >&5 | |
9494 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
9495 | Usually this means the macro was only invoked conditionally." >&2;} | |
9496 | { (exit 1); exit 1; }; } | |
2f1a1aea | 9497 | fi |
6d14a4a9 | 9498 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
e6364d79 MW |
9499 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TRANSLATOR\" was never defined. |
9500 | Usually this means the macro was only invoked conditionally." >&5 | |
9501 | $as_echo "$as_me: error: conditional \"BUILD_TRANSLATOR\" was never defined. | |
9502 | Usually this means the macro was only invoked conditionally." >&2;} | |
9503 | { (exit 1); exit 1; }; } | |
6d14a4a9 | 9504 | fi |
e8f3c2c2 | 9505 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
e6364d79 MW |
9506 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined. |
9507 | Usually this means the macro was only invoked conditionally." >&5 | |
9508 | $as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined. | |
9509 | Usually this means the macro was only invoked conditionally." >&2;} | |
9510 | { (exit 1); exit 1; }; } | |
4d9087fc | 9511 | fi |
465e8fbf | 9512 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
e6364d79 MW |
9513 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
9514 | Usually this means the macro was only invoked conditionally." >&5 | |
9515 | $as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. | |
9516 | Usually this means the macro was only invoked conditionally." >&2;} | |
9517 | { (exit 1); exit 1; }; } | |
92aff3c7 | 9518 | fi |
53ade4da | 9519 | if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then |
e6364d79 MW |
9520 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PUBLICAN\" was never defined. |
9521 | Usually this means the macro was only invoked conditionally." >&5 | |
9522 | $as_echo "$as_me: error: conditional \"BUILD_PUBLICAN\" was never defined. | |
9523 | Usually this means the macro was only invoked conditionally." >&2;} | |
9524 | { (exit 1); exit 1; }; } | |
53ade4da | 9525 | fi |
92aff3c7 | 9526 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then |
e6364d79 MW |
9527 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined. |
9528 | Usually this means the macro was only invoked conditionally." >&5 | |
9529 | $as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined. | |
9530 | Usually this means the macro was only invoked conditionally." >&2;} | |
9531 | { (exit 1); exit 1; }; } | |
468abaf4 FCE |
9532 | fi |
9533 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then | |
e6364d79 MW |
9534 | { { $as_echo "$as_me:$LINENO: error: conditional \"XMLTO_STRINGPARAM\" was never defined. |
9535 | Usually this means the macro was only invoked conditionally." >&5 | |
9536 | $as_echo "$as_me: error: conditional \"XMLTO_STRINGPARAM\" was never defined. | |
9537 | Usually this means the macro was only invoked conditionally." >&2;} | |
9538 | { (exit 1); exit 1; }; } | |
19a0d4b6 | 9539 | fi |
ccf8bc85 | 9540 | if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then |
e6364d79 MW |
9541 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFREFDOCS\" was never defined. |
9542 | Usually this means the macro was only invoked conditionally." >&5 | |
9543 | $as_echo "$as_me: error: conditional \"BUILD_PDFREFDOCS\" was never defined. | |
9544 | Usually this means the macro was only invoked conditionally." >&2;} | |
9545 | { (exit 1); exit 1; }; } | |
ccf8bc85 | 9546 | fi |
19a0d4b6 | 9547 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
e6364d79 MW |
9548 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined. |
9549 | Usually this means the macro was only invoked conditionally." >&5 | |
9550 | $as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined. | |
9551 | Usually this means the macro was only invoked conditionally." >&2;} | |
9552 | { (exit 1); exit 1; }; } | |
2035bcd4 DB |
9553 | fi |
9554 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then | |
e6364d79 MW |
9555 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NSS\" was never defined. |
9556 | Usually this means the macro was only invoked conditionally." >&5 | |
9557 | $as_echo "$as_me: error: conditional \"HAVE_NSS\" was never defined. | |
9558 | Usually this means the macro was only invoked conditionally." >&2;} | |
9559 | { (exit 1); exit 1; }; } | |
465e8fbf | 9560 | fi |
1087b83f | 9561 | if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then |
e6364d79 MW |
9562 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined. |
9563 | Usually this means the macro was only invoked conditionally." >&5 | |
9564 | $as_echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined. | |
9565 | Usually this means the macro was only invoked conditionally." >&2;} | |
9566 | { (exit 1); exit 1; }; } | |
1087b83f | 9567 | fi |
e8f3c2c2 | 9568 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
e6364d79 MW |
9569 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined. |
9570 | Usually this means the macro was only invoked conditionally." >&5 | |
9571 | $as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined. | |
9572 | Usually this means the macro was only invoked conditionally." >&2;} | |
9573 | { (exit 1); exit 1; }; } | |
35a04c8e | 9574 | fi |
2f1a1aea FCE |
9575 | |
9576 | : ${CONFIG_STATUS=./config.status} | |
0710d850 | 9577 | ac_write_fail=0 |
2f1a1aea FCE |
9578 | ac_clean_files_save=$ac_clean_files |
9579 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
e6364d79 | 9580 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
0710d850 | 9581 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
e6364d79 | 9582 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
9583 | #! $SHELL |
9584 | # Generated by $as_me. | |
9585 | # Run this file to recreate the current configuration. | |
9586 | # Compiler output produced by configure, useful for debugging | |
9587 | # configure, is in config.log if it exists. | |
9588 | ||
9589 | debug=false | |
9590 | ac_cs_recheck=false | |
9591 | ac_cs_silent=false | |
4b5627b1 | 9592 | SHELL=\${CONFIG_SHELL-$SHELL} |
e6364d79 MW |
9593 | _ACEOF |
9594 | ||
9595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9596 | ## --------------------- ## | |
9597 | ## M4sh Initialization. ## | |
9598 | ## --------------------- ## | |
2f1a1aea | 9599 | |
7fbd9d09 FCE |
9600 | # Be more Bourne compatible |
9601 | DUALCASE=1; export DUALCASE # for MKS sh | |
e6364d79 | 9602 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
2f1a1aea FCE |
9603 | emulate sh |
9604 | NULLCMD=: | |
0710d850 | 9605 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
9606 | # is contrary to our usage. Disable this feature. |
9607 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 9608 | setopt NO_GLOB_SUBST |
4a3c19da | 9609 | else |
e6364d79 MW |
9610 | case `(set -o) 2>/dev/null` in |
9611 | *posix*) set -o posix ;; | |
4a3c19da | 9612 | esac |
e6364d79 | 9613 | |
4a3c19da EM |
9614 | fi |
9615 | ||
7fbd9d09 | 9616 | |
e6364d79 MW |
9617 | |
9618 | ||
9619 | # PATH needs CR | |
9620 | # Avoid depending upon Character Ranges. | |
9621 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9622 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9623 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9624 | as_cr_digits='0123456789' | |
9625 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9626 | ||
0710d850 DS |
9627 | as_nl=' |
9628 | ' | |
9629 | export as_nl | |
9630 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
9631 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
9632 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
9633 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
e6364d79 | 9634 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
0710d850 DS |
9635 | as_echo='printf %s\n' |
9636 | as_echo_n='printf %s' | |
9637 | else | |
9638 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
9639 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
9640 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 9641 | else |
0710d850 DS |
9642 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
9643 | as_echo_n_body='eval | |
9644 | arg=$1; | |
e6364d79 | 9645 | case $arg in |
0710d850 DS |
9646 | *"$as_nl"*) |
9647 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
9648 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
9649 | esac; | |
9650 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
9651 | ' | |
9652 | export as_echo_n_body | |
9653 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 9654 | fi |
0710d850 DS |
9655 | export as_echo_body |
9656 | as_echo='sh -c $as_echo_body as_echo' | |
9657 | fi | |
9658 | ||
9659 | # The user is always right. | |
9660 | if test "${PATH_SEPARATOR+set}" != set; then | |
9661 | PATH_SEPARATOR=: | |
9662 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9663 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9664 | PATH_SEPARATOR=';' | |
9665 | } | |
7fbd9d09 FCE |
9666 | fi |
9667 | ||
e6364d79 MW |
9668 | # Support unset when possible. |
9669 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
9670 | as_unset=unset | |
9671 | else | |
9672 | as_unset=false | |
9673 | fi | |
9674 | ||
7fbd9d09 FCE |
9675 | |
9676 | # IFS | |
9677 | # We need space, tab and new line, in precisely that order. Quoting is | |
9678 | # there to prevent editors from complaining about space-tab. | |
9679 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9680 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
9681 | IFS=" "" $as_nl" |
9682 | ||
9683 | # Find who we are. Look in the path if we contain no directory separator. | |
e6364d79 | 9684 | case $0 in |
7fbd9d09 FCE |
9685 | *[\\/]* ) as_myself=$0 ;; |
9686 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9687 | for as_dir in $PATH | |
9688 | do | |
9689 | IFS=$as_save_IFS | |
9690 | test -z "$as_dir" && as_dir=. | |
e6364d79 MW |
9691 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9692 | done | |
7fbd9d09 FCE |
9693 | IFS=$as_save_IFS |
9694 | ||
9695 | ;; | |
9696 | esac | |
9697 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9698 | # in which case we are not to be found in the path. | |
9699 | if test "x$as_myself" = x; then | |
9700 | as_myself=$0 | |
9701 | fi | |
9702 | if test ! -f "$as_myself"; then | |
0710d850 | 9703 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
e6364d79 | 9704 | { (exit 1); exit 1; } |
7fbd9d09 FCE |
9705 | fi |
9706 | ||
e6364d79 MW |
9707 | # Work around bugs in pre-3.0 UWIN ksh. |
9708 | for as_var in ENV MAIL MAILPATH | |
9709 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7fbd9d09 FCE |
9710 | done |
9711 | PS1='$ ' | |
2f1a1aea FCE |
9712 | PS2='> ' |
9713 | PS4='+ ' | |
9714 | ||
9715 | # NLS nuisances. | |
0710d850 DS |
9716 | LC_ALL=C |
9717 | export LC_ALL | |
9718 | LANGUAGE=C | |
9719 | export LANGUAGE | |
2f1a1aea | 9720 | |
e6364d79 | 9721 | # Required to use basename. |
7fbd9d09 FCE |
9722 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9723 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
9724 | as_expr=expr |
9725 | else | |
9726 | as_expr=false | |
9727 | fi | |
9728 | ||
7fbd9d09 | 9729 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
9730 | as_basename=basename |
9731 | else | |
9732 | as_basename=false | |
9733 | fi | |
9734 | ||
9735 | ||
e6364d79 | 9736 | # Name of the executable. |
7fbd9d09 | 9737 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
9738 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9739 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9740 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 9741 | $as_echo X/"$0" | |
7fbd9d09 FCE |
9742 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9743 | s//\1/ | |
9744 | q | |
9745 | } | |
9746 | /^X\/\(\/\/\)$/{ | |
9747 | s//\1/ | |
9748 | q | |
9749 | } | |
9750 | /^X\/\(\/\).*/{ | |
9751 | s//\1/ | |
9752 | q | |
9753 | } | |
9754 | s/.*/./; q'` | |
8ae7a94a | 9755 | |
e6364d79 MW |
9756 | # CDPATH. |
9757 | $as_unset CDPATH | |
9758 | ||
9759 | ||
9760 | ||
9761 | as_lineno_1=$LINENO | |
9762 | as_lineno_2=$LINENO | |
9763 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9764 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
9765 | ||
9766 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
9767 | # uniformly replaced by the line number. The first 'sed' inserts a | |
9768 | # line-number line after each line using $LINENO; the second 'sed' | |
9769 | # does the real work. The second script uses 'N' to pair each | |
9770 | # line-number line with the line containing $LINENO, and appends | |
9771 | # trailing '-' during substitution so that $LINENO is not a special | |
9772 | # case at line end. | |
9773 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
9774 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
9775 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
9776 | sed -n ' | |
9777 | p | |
9778 | /[$]LINENO/= | |
9779 | ' <$as_myself | | |
9780 | sed ' | |
9781 | s/[$]LINENO.*/&-/ | |
9782 | t lineno | |
9783 | b | |
9784 | :lineno | |
9785 | N | |
9786 | :loop | |
9787 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
9788 | t loop | |
9789 | s/-\n.*// | |
9790 | ' >$as_me.lineno && | |
9791 | chmod +x "$as_me.lineno" || | |
9792 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
9793 | { (exit 1); exit 1; }; } | |
9794 | ||
9795 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9796 | # (the dirname of $[0] is not the place where we might find the | |
9797 | # original and so on. Autoconf is especially sensitive to this). | |
9798 | . "./$as_me.lineno" | |
9799 | # Exit status is that of the last command. | |
9800 | exit | |
9801 | } | |
9802 | ||
9803 | ||
9804 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
9805 | as_dirname=dirname | |
9806 | else | |
9807 | as_dirname=false | |
9808 | fi | |
7fbd9d09 FCE |
9809 | |
9810 | ECHO_C= ECHO_N= ECHO_T= | |
e6364d79 | 9811 | case `echo -n x` in |
7fbd9d09 | 9812 | -n*) |
e6364d79 | 9813 | case `echo 'x\c'` in |
7fbd9d09 | 9814 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
e6364d79 | 9815 | *) ECHO_C='\c';; |
7fbd9d09 FCE |
9816 | esac;; |
9817 | *) | |
9818 | ECHO_N='-n';; | |
2f1a1aea | 9819 | esac |
e6364d79 MW |
9820 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9821 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
9822 | as_expr=expr | |
9823 | else | |
9824 | as_expr=false | |
9825 | fi | |
2f1a1aea FCE |
9826 | |
9827 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
9828 | if test -d conf$$.dir; then |
9829 | rm -f conf$$.dir/conf$$.file | |
9830 | else | |
9831 | rm -f conf$$.dir | |
0710d850 DS |
9832 | mkdir conf$$.dir 2>/dev/null |
9833 | fi | |
9834 | if (echo >conf$$.file) 2>/dev/null; then | |
9835 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9836 | as_ln_s='ln -s' | |
9837 | # ... but there are two gotchas: | |
9838 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9839 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9840 | # In both cases, we have to default to `cp -p'. | |
9841 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9842 | as_ln_s='cp -p' | |
9843 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9844 | as_ln_s=ln | |
9845 | else | |
2f1a1aea | 9846 | as_ln_s='cp -p' |
0710d850 | 9847 | fi |
2f1a1aea FCE |
9848 | else |
9849 | as_ln_s='cp -p' | |
9850 | fi | |
7fbd9d09 FCE |
9851 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9852 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
9853 | |
9854 | if mkdir -p . 2>/dev/null; then | |
e6364d79 | 9855 | as_mkdir_p=: |
2f1a1aea FCE |
9856 | else |
9857 | test -d ./-p && rmdir ./-p | |
9858 | as_mkdir_p=false | |
9859 | fi | |
9860 | ||
7fbd9d09 FCE |
9861 | if test -x / >/dev/null 2>&1; then |
9862 | as_test_x='test -x' | |
9863 | else | |
9864 | if ls -dL / >/dev/null 2>&1; then | |
9865 | as_ls_L_option=L | |
9866 | else | |
9867 | as_ls_L_option= | |
9868 | fi | |
9869 | as_test_x=' | |
9870 | eval sh -c '\'' | |
9871 | if test -d "$1"; then | |
0710d850 | 9872 | test -d "$1/."; |
7fbd9d09 | 9873 | else |
e6364d79 | 9874 | case $1 in |
0710d850 | 9875 | -*)set "./$1";; |
7fbd9d09 | 9876 | esac; |
e6364d79 | 9877 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
7fbd9d09 FCE |
9878 | ???[sx]*):;;*)false;;esac;fi |
9879 | '\'' sh | |
9880 | ' | |
9881 | fi | |
9882 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
9883 | |
9884 | # Sed expression to map a string onto a valid CPP name. | |
9885 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9886 | ||
9887 | # Sed expression to map a string onto a valid variable name. | |
9888 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9889 | ||
9890 | ||
2f1a1aea FCE |
9891 | exec 6>&1 |
9892 | ||
e6364d79 | 9893 | # Save the log message, to keep $[0] and so on meaningful, and to |
2f1a1aea | 9894 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
9895 | # values after options handling. |
9896 | ac_log=" | |
e36ba31a | 9897 | This file was extended by systemtap $as_me 1.2, which was |
e6364d79 | 9898 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea FCE |
9899 | |
9900 | CONFIG_FILES = $CONFIG_FILES | |
9901 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9902 | CONFIG_LINKS = $CONFIG_LINKS | |
9903 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9904 | $ $0 $@ | |
9905 | ||
7fbd9d09 FCE |
9906 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9907 | " | |
9908 | ||
2f1a1aea FCE |
9909 | _ACEOF |
9910 | ||
0710d850 DS |
9911 | case $ac_config_files in *" |
9912 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
9913 | esac | |
9914 | ||
9915 | case $ac_config_headers in *" | |
9916 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
9917 | esac | |
9918 | ||
9919 | ||
9920 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 9921 | # Files that config.status was made for. |
7fbd9d09 FCE |
9922 | config_files="$ac_config_files" |
9923 | config_headers="$ac_config_headers" | |
9924 | config_commands="$ac_config_commands" | |
daae650d | 9925 | |
7fbd9d09 | 9926 | _ACEOF |
8ae7a94a | 9927 | |
0710d850 | 9928 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea | 9929 | ac_cs_usage="\ |
e6364d79 MW |
9930 | \`$as_me' instantiates files from templates according to the |
9931 | current configuration. | |
2f1a1aea | 9932 | |
e6364d79 | 9933 | Usage: $0 [OPTION]... [FILE]... |
2f1a1aea FCE |
9934 | |
9935 | -h, --help print this help, then exit | |
7fbd9d09 | 9936 | -V, --version print version number and configuration settings, then exit |
0710d850 DS |
9937 | -q, --quiet, --silent |
9938 | do not print progress messages | |
2f1a1aea FCE |
9939 | -d, --debug don't remove temporary files |
9940 | --recheck update $as_me by reconfiguring in the same conditions | |
0710d850 DS |
9941 | --file=FILE[:TEMPLATE] |
9942 | instantiate the configuration file FILE | |
9943 | --header=FILE[:TEMPLATE] | |
9944 | instantiate the configuration header FILE | |
2f1a1aea FCE |
9945 | |
9946 | Configuration files: | |
9947 | $config_files | |
9948 | ||
9949 | Configuration headers: | |
9950 | $config_headers | |
9951 | ||
9952 | Configuration commands: | |
9953 | $config_commands | |
9954 | ||
e6364d79 | 9955 | Report bugs to <bug-autoconf@gnu.org>." |
818ba2bc | 9956 | |
7fbd9d09 | 9957 | _ACEOF |
0710d850 | 9958 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 9959 | ac_cs_version="\\ |
e36ba31a | 9960 | systemtap config.status 1.2 |
e6364d79 MW |
9961 | configured by $0, generated by GNU Autoconf 2.63, |
9962 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
2f1a1aea | 9963 | |
e6364d79 | 9964 | Copyright (C) 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
9965 | This config.status script is free software; the Free Software Foundation |
9966 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
9967 | |
9968 | ac_pwd='$ac_pwd' | |
9969 | srcdir='$srcdir' | |
9970 | INSTALL='$INSTALL' | |
9971 | MKDIR_P='$MKDIR_P' | |
0710d850 DS |
9972 | AWK='$AWK' |
9973 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
9974 | _ACEOF |
9975 | ||
0710d850 DS |
9976 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9977 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
9978 | ac_need_defaults=: |
9979 | while test $# != 0 | |
9980 | do | |
9981 | case $1 in | |
9982 | --*=*) | |
7fbd9d09 FCE |
9983 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9984 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
9985 | ac_shift=: |
9986 | ;; | |
7fbd9d09 | 9987 | *) |
2f1a1aea FCE |
9988 | ac_option=$1 |
9989 | ac_optarg=$2 | |
9990 | ac_shift=shift | |
9991 | ;; | |
2f1a1aea FCE |
9992 | esac |
9993 | ||
9994 | case $ac_option in | |
9995 | # Handling of the options. | |
2f1a1aea FCE |
9996 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9997 | ac_cs_recheck=: ;; | |
7fbd9d09 | 9998 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
0710d850 | 9999 | $as_echo "$ac_cs_version"; exit ;; |
7fbd9d09 | 10000 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
10001 | debug=: ;; |
10002 | --file | --fil | --fi | --f ) | |
10003 | $ac_shift | |
0710d850 DS |
10004 | case $ac_optarg in |
10005 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10006 | esac | |
e6364d79 | 10007 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
2f1a1aea FCE |
10008 | ac_need_defaults=false;; |
10009 | --header | --heade | --head | --hea ) | |
10010 | $ac_shift | |
0710d850 DS |
10011 | case $ac_optarg in |
10012 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10013 | esac | |
e6364d79 | 10014 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
2f1a1aea | 10015 | ac_need_defaults=false;; |
7fbd9d09 FCE |
10016 | --he | --h) |
10017 | # Conflict between --help and --header | |
e6364d79 MW |
10018 | { $as_echo "$as_me: error: ambiguous option: $1 |
10019 | Try \`$0 --help' for more information." >&2 | |
10020 | { (exit 1); exit 1; }; };; | |
7fbd9d09 | 10021 | --help | --hel | -h ) |
0710d850 | 10022 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
10023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10024 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10025 | ac_cs_silent=: ;; | |
10026 | ||
10027 | # This is an error. | |
e6364d79 MW |
10028 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
10029 | Try \`$0 --help' for more information." >&2 | |
10030 | { (exit 1); exit 1; }; } ;; | |
2f1a1aea | 10031 | |
e6364d79 | 10032 | *) ac_config_targets="$ac_config_targets $1" |
7fbd9d09 | 10033 | ac_need_defaults=false ;; |
2f1a1aea FCE |
10034 | |
10035 | esac | |
10036 | shift | |
10037 | done | |
10038 | ||
10039 | ac_configure_extra_args= | |
10040 | ||
10041 | if $ac_cs_silent; then | |
10042 | exec 6>/dev/null | |
10043 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10044 | fi | |
10045 | ||
10046 | _ACEOF | |
0710d850 | 10047 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 10048 | if \$ac_cs_recheck; then |
0710d850 DS |
10049 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10050 | shift | |
10051 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10052 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 10053 | export CONFIG_SHELL |
0710d850 | 10054 | exec "\$@" |
2f1a1aea FCE |
10055 | fi |
10056 | ||
10057 | _ACEOF | |
0710d850 | 10058 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
10059 | exec 5>>config.log |
10060 | { | |
10061 | echo | |
10062 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10063 | ## Running $as_me. ## | |
10064 | _ASBOX | |
0710d850 | 10065 | $as_echo "$ac_log" |
7fbd9d09 | 10066 | } >&5 |
2f1a1aea | 10067 | |
7fbd9d09 | 10068 | _ACEOF |
0710d850 | 10069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 10070 | # |
7fbd9d09 | 10071 | # INIT-COMMANDS |
2f1a1aea | 10072 | # |
2f1a1aea FCE |
10073 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
10074 | ||
10075 | _ACEOF | |
10076 | ||
0710d850 | 10077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
10078 | |
10079 | # Handling of arguments. | |
2f1a1aea FCE |
10080 | for ac_config_target in $ac_config_targets |
10081 | do | |
7fbd9d09 FCE |
10082 | case $ac_config_target in |
10083 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
10084 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
10085 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10086 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
53ade4da | 10087 | "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;; |
7fbd9d09 | 10088 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
1087b83f | 10089 | "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;; |
9ed28fbc | 10090 | "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;; |
7fbd9d09 | 10091 | "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;; |
e97c0b29 WC |
10092 | "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;; |
10093 | "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;; | |
10094 | "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;; | |
10095 | "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;; | |
7fbd9d09 | 10096 | "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;; |
31f9baea | 10097 | "stap-client.8") CONFIG_FILES="$CONFIG_FILES stap-client.8" ;; |
7fbd9d09 | 10098 | "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;; |
31f9baea DB |
10099 | "stap-authorize-server-cert.8") CONFIG_FILES="$CONFIG_FILES stap-authorize-server-cert.8" ;; |
10100 | "stap-authorize-signing-cert.8") CONFIG_FILES="$CONFIG_FILES stap-authorize-signing-cert.8" ;; | |
7fbd9d09 | 10101 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 10102 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
4e6d866f | 10103 | "dtrace.1") CONFIG_FILES="$CONFIG_FILES dtrace.1" ;; |
7fbd9d09 | 10104 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
65ffc3f3 | 10105 | "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;; |
e4aaabda | 10106 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
53ade4da MW |
10107 | "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;; |
10108 | "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;; | |
7fbd9d09 | 10109 | |
e6364d79 MW |
10110 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
10111 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10112 | { (exit 1); exit 1; }; };; | |
2f1a1aea FCE |
10113 | esac |
10114 | done | |
10115 | ||
7fbd9d09 | 10116 | |
2f1a1aea FCE |
10117 | # If the user did not use the arguments to specify the items to instantiate, |
10118 | # then the envvar interface is used. Set only those that are not. | |
10119 | # We use the long form for the default assignment because of an extremely | |
10120 | # bizarre bug on SunOS 4.1.3. | |
10121 | if $ac_need_defaults; then | |
10122 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10123 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10124 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
10125 | fi | |
10126 | ||
10127 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 10128 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 10129 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
10130 | # Hook for its removal unless debugging. |
10131 | # Note that there is a small window in which the directory will not be cleaned: | |
10132 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
10133 | $debug || |
10134 | { | |
7fbd9d09 FCE |
10135 | tmp= |
10136 | trap 'exit_status=$? | |
10137 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10138 | ' 0 | |
e6364d79 | 10139 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
2f1a1aea | 10140 | } |
2f1a1aea FCE |
10141 | # Create a (secure) tmp directory for tmp files. |
10142 | ||
10143 | { | |
7fbd9d09 | 10144 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
2f1a1aea FCE |
10145 | test -n "$tmp" && test -d "$tmp" |
10146 | } || | |
10147 | { | |
7fbd9d09 FCE |
10148 | tmp=./conf$$-$RANDOM |
10149 | (umask 077 && mkdir "$tmp") | |
e6364d79 MW |
10150 | } || |
10151 | { | |
10152 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
10153 | { (exit 1); exit 1; } | |
10154 | } | |
2f1a1aea | 10155 | |
0710d850 DS |
10156 | # Set up the scripts for CONFIG_FILES section. |
10157 | # No need to generate them if there are no CONFIG_FILES. | |
10158 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
10159 | if test -n "$CONFIG_FILES"; then |
10160 | ||
31f9baea | 10161 | |
e6364d79 | 10162 | ac_cr='\r' |
0710d850 DS |
10163 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
10164 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
e6364d79 | 10165 | ac_cs_awk_cr='\\r' |
0710d850 DS |
10166 | else |
10167 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 10168 | fi |
5e0d2ebf | 10169 | |
0710d850 | 10170 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
7fbd9d09 FCE |
10171 | _ACEOF |
10172 | ||
10173 | ||
0710d850 DS |
10174 | { |
10175 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10176 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10177 | echo "_ACEOF" | |
10178 | } >conf$$subs.sh || | |
e6364d79 MW |
10179 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
10180 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10181 | { (exit 1); exit 1; }; } | |
0710d850 | 10182 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
7fbd9d09 FCE |
10183 | ac_delim='%!_!# ' |
10184 | for ac_last_try in false false false false false :; do | |
0710d850 | 10185 | . ./conf$$subs.sh || |
e6364d79 MW |
10186 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
10187 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10188 | { (exit 1); exit 1; }; } | |
0710d850 DS |
10189 | |
10190 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10191 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
10192 | break |
10193 | elif $ac_last_try; then | |
e6364d79 MW |
10194 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
10195 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10196 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
10197 | else |
10198 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10199 | fi | |
10200 | done | |
0710d850 DS |
10201 | rm -f conf$$subs.sh |
10202 | ||
10203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10204 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
10205 | _ACEOF | |
10206 | sed -n ' | |
10207 | h | |
10208 | s/^/S["/; s/!.*/"]=/ | |
10209 | p | |
10210 | g | |
10211 | s/^[^!]*!// | |
10212 | :repl | |
10213 | t repl | |
10214 | s/'"$ac_delim"'$// | |
10215 | t delim | |
10216 | :nl | |
10217 | h | |
e6364d79 | 10218 | s/\(.\{148\}\).*/\1/ |
0710d850 DS |
10219 | t more1 |
10220 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10221 | p | |
10222 | n | |
10223 | b repl | |
10224 | :more1 | |
10225 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10226 | p | |
10227 | g | |
10228 | s/.\{148\}// | |
10229 | t nl | |
10230 | :delim | |
10231 | h | |
e6364d79 | 10232 | s/\(.\{148\}\).*/\1/ |
0710d850 DS |
10233 | t more2 |
10234 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10235 | p | |
10236 | b | |
10237 | :more2 | |
10238 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10239 | p | |
10240 | g | |
10241 | s/.\{148\}// | |
10242 | t delim | |
10243 | ' <conf$$subs.awk | sed ' | |
10244 | /^[^""]/{ | |
10245 | N | |
10246 | s/\n// | |
10247 | } | |
10248 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10249 | rm -f conf$$subs.awk | |
10250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10251 | _ACAWK | |
10252 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
10253 | for (key in S) S_is_set[key] = 1 | |
10254 | FS = "\a" | |
7fbd9d09 | 10255 | |
0710d850 DS |
10256 | } |
10257 | { | |
10258 | line = $ 0 | |
10259 | nfields = split(line, field, "@") | |
10260 | substed = 0 | |
10261 | len = length(field[1]) | |
10262 | for (i = 2; i < nfields; i++) { | |
10263 | key = field[i] | |
10264 | keylen = length(key) | |
10265 | if (S_is_set[key]) { | |
10266 | value = S[key] | |
10267 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10268 | len += length(value) + length(field[++i]) | |
10269 | substed = 1 | |
10270 | } else | |
10271 | len += 1 + keylen | |
10272 | } | |
10273 | ||
10274 | print line | |
10275 | } | |
7fbd9d09 | 10276 | |
0710d850 | 10277 | _ACAWK |
7fbd9d09 | 10278 | _ACEOF |
0710d850 DS |
10279 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10280 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10281 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10282 | else | |
10283 | cat | |
10284 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
e6364d79 MW |
10285 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
10286 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
10287 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
10288 | _ACEOF |
10289 | ||
7fbd9d09 FCE |
10290 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
10291 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10292 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10293 | # (actually we leave an empty line to preserve line numbers). | |
10294 | if test "x$srcdir" = x.; then | |
10295 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10296 | s/:*\$(srcdir):*/:/ | |
10297 | s/:*\${srcdir}:*/:/ | |
10298 | s/:*@srcdir@:*/:/ | |
10299 | s/^\([^=]*=[ ]*\):*/\1/ | |
10300 | s/:*$// | |
10301 | s/^[^=]*=[ ]*$// | |
10302 | }' | |
10303 | fi | |
10304 | ||
0710d850 | 10305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
10306 | fi # test -n "$CONFIG_FILES" |
10307 | ||
0710d850 DS |
10308 | # Set up the scripts for CONFIG_HEADERS section. |
10309 | # No need to generate them if there are no CONFIG_HEADERS. | |
10310 | # This happens for instance with `./config.status Makefile'. | |
10311 | if test -n "$CONFIG_HEADERS"; then | |
10312 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
10313 | BEGIN { | |
10314 | _ACEOF | |
10315 | ||
10316 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10317 | # here-document in config.status, that substitutes the proper values into | |
10318 | # config.h.in to produce config.h. | |
10319 | ||
10320 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10321 | # handling of long lines. | |
10322 | ac_delim='%!_!# ' | |
10323 | for ac_last_try in false false :; do | |
10324 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
10325 | if test -z "$ac_t"; then | |
10326 | break | |
10327 | elif $ac_last_try; then | |
e6364d79 MW |
10328 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
10329 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
10330 | { (exit 1); exit 1; }; } | |
0710d850 DS |
10331 | else |
10332 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10333 | fi | |
10334 | done | |
10335 | ||
10336 | # For the awk script, D is an array of macro values keyed by name, | |
10337 | # likewise P contains macro parameters if any. Preserve backslash | |
10338 | # newline sequences. | |
10339 | ||
10340 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10341 | sed -n ' | |
10342 | s/.\{148\}/&'"$ac_delim"'/g | |
10343 | t rset | |
10344 | :rset | |
10345 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10346 | t def | |
10347 | d | |
10348 | :def | |
10349 | s/\\$// | |
10350 | t bsnl | |
10351 | s/["\\]/\\&/g | |
10352 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10353 | D["\1"]=" \3"/p | |
10354 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10355 | d | |
10356 | :bsnl | |
10357 | s/["\\]/\\&/g | |
10358 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10359 | D["\1"]=" \3\\\\\\n"\\/p | |
10360 | t cont | |
10361 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10362 | t cont | |
10363 | d | |
10364 | :cont | |
10365 | n | |
10366 | s/.\{148\}/&'"$ac_delim"'/g | |
10367 | t clear | |
10368 | :clear | |
10369 | s/\\$// | |
10370 | t bsnlc | |
10371 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10372 | d | |
10373 | :bsnlc | |
10374 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10375 | b cont | |
10376 | ' <confdefs.h | sed ' | |
10377 | s/'"$ac_delim"'/"\\\ | |
10378 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10379 | ||
10380 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10381 | for (key in D) D_is_set[key] = 1 | |
10382 | FS = "\a" | |
10383 | } | |
10384 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10385 | line = \$ 0 | |
10386 | split(line, arg, " ") | |
10387 | if (arg[1] == "#") { | |
10388 | defundef = arg[2] | |
10389 | mac1 = arg[3] | |
10390 | } else { | |
10391 | defundef = substr(arg[1], 2) | |
10392 | mac1 = arg[2] | |
10393 | } | |
10394 | split(mac1, mac2, "(") #) | |
10395 | macro = mac2[1] | |
10396 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10397 | if (D_is_set[macro]) { | |
10398 | # Preserve the white space surrounding the "#". | |
10399 | print prefix "define", macro P[macro] D[macro] | |
10400 | next | |
10401 | } else { | |
10402 | # Replace #undef with comments. This is necessary, for example, | |
10403 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10404 | # on some systems where configure will not decide to define it. | |
10405 | if (defundef == "undef") { | |
10406 | print "/*", prefix defundef, macro, "*/" | |
10407 | next | |
10408 | } | |
10409 | } | |
10410 | } | |
10411 | { print } | |
10412 | _ACAWK | |
10413 | _ACEOF | |
10414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
e6364d79 MW |
10415 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
10416 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
10417 | { (exit 1); exit 1; }; } | |
0710d850 DS |
10418 | fi # test -n "$CONFIG_HEADERS" |
10419 | ||
27aba29a | 10420 | |
0710d850 DS |
10421 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
10422 | shift | |
10423 | for ac_tag | |
7fbd9d09 FCE |
10424 | do |
10425 | case $ac_tag in | |
10426 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 10427 | esac |
7fbd9d09 FCE |
10428 | case $ac_mode$ac_tag in |
10429 | :[FHL]*:*);; | |
e6364d79 MW |
10430 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
10431 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
10432 | { (exit 1); exit 1; }; };; | |
7fbd9d09 FCE |
10433 | :[FH]-) ac_tag=-:-;; |
10434 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10435 | esac | |
10436 | ac_save_IFS=$IFS | |
10437 | IFS=: | |
10438 | set x $ac_tag | |
10439 | IFS=$ac_save_IFS | |
10440 | shift | |
10441 | ac_file=$1 | |
10442 | shift | |
2f1a1aea | 10443 | |
7fbd9d09 FCE |
10444 | case $ac_mode in |
10445 | :L) ac_source=$1;; | |
10446 | :[FH]) | |
10447 | ac_file_inputs= | |
10448 | for ac_f | |
10449 | do | |
10450 | case $ac_f in | |
10451 | -) ac_f="$tmp/stdin";; | |
10452 | *) # Look for the file first in the build tree, then in the source tree | |
10453 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10454 | # because $ac_f cannot contain `:'. | |
10455 | test -f "$ac_f" || | |
10456 | case $ac_f in | |
10457 | [\\/$]*) false;; | |
10458 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10459 | esac || | |
e6364d79 MW |
10460 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
10461 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
10462 | { (exit 1); exit 1; }; };; | |
7fbd9d09 | 10463 | esac |
0710d850 | 10464 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
e6364d79 | 10465 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
7fbd9d09 FCE |
10466 | done |
10467 | ||
10468 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10469 | # use $as_me), people would be surprised to read: | |
10470 | # /* config.h. Generated by config.status. */ | |
0710d850 DS |
10471 | configure_input='Generated from '` |
10472 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10473 | `' by configure.' | |
7fbd9d09 FCE |
10474 | if test x"$ac_file" != x-; then |
10475 | configure_input="$ac_file. $configure_input" | |
e6364d79 | 10476 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
0710d850 | 10477 | $as_echo "$as_me: creating $ac_file" >&6;} |
7fbd9d09 | 10478 | fi |
0710d850 DS |
10479 | # Neutralize special characters interpreted by sed in replacement strings. |
10480 | case $configure_input in #( | |
10481 | *\&* | *\|* | *\\* ) | |
10482 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10483 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10484 | *) ac_sed_conf_input=$configure_input;; | |
10485 | esac | |
7fbd9d09 FCE |
10486 | |
10487 | case $ac_tag in | |
0710d850 | 10488 | *:-:* | *:-) cat >"$tmp/stdin" \ |
e6364d79 MW |
10489 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
10490 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10491 | { (exit 1); exit 1; }; } ;; | |
7fbd9d09 FCE |
10492 | esac |
10493 | ;; | |
10494 | esac | |
10495 | ||
10496 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
10497 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10498 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10499 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10500 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 10501 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
10502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10503 | s//\1/ | |
10504 | q | |
10505 | } | |
10506 | /^X\(\/\/\)[^/].*/{ | |
10507 | s//\1/ | |
10508 | q | |
10509 | } | |
10510 | /^X\(\/\/\)$/{ | |
10511 | s//\1/ | |
10512 | q | |
10513 | } | |
10514 | /^X\(\/\).*/{ | |
10515 | s//\1/ | |
10516 | q | |
10517 | } | |
10518 | s/.*/./; q'` | |
e6364d79 MW |
10519 | { as_dir="$ac_dir" |
10520 | case $as_dir in #( | |
10521 | -*) as_dir=./$as_dir;; | |
10522 | esac | |
10523 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10524 | as_dirs= | |
10525 | while :; do | |
10526 | case $as_dir in #( | |
10527 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10528 | *) as_qdir=$as_dir;; | |
10529 | esac | |
10530 | as_dirs="'$as_qdir' $as_dirs" | |
10531 | as_dir=`$as_dirname -- "$as_dir" || | |
10532 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10533 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10534 | X"$as_dir" : 'X\(//\)$' \| \ | |
10535 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10536 | $as_echo X"$as_dir" | | |
10537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10538 | s//\1/ | |
10539 | q | |
10540 | } | |
10541 | /^X\(\/\/\)[^/].*/{ | |
10542 | s//\1/ | |
10543 | q | |
10544 | } | |
10545 | /^X\(\/\/\)$/{ | |
10546 | s//\1/ | |
10547 | q | |
10548 | } | |
10549 | /^X\(\/\).*/{ | |
10550 | s//\1/ | |
10551 | q | |
10552 | } | |
10553 | s/.*/./; q'` | |
10554 | test -d "$as_dir" && break | |
10555 | done | |
10556 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10557 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
10558 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
10559 | { (exit 1); exit 1; }; }; } | |
2f1a1aea FCE |
10560 | ac_builddir=. |
10561 | ||
7fbd9d09 FCE |
10562 | case "$ac_dir" in |
10563 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10564 | *) | |
0710d850 | 10565 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 10566 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 10567 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
10568 | case $ac_top_builddir_sub in |
10569 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10570 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10571 | esac ;; | |
10572 | esac | |
10573 | ac_abs_top_builddir=$ac_pwd | |
10574 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10575 | # for backward compatibility: | |
10576 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
10577 | |
10578 | case $srcdir in | |
7fbd9d09 | 10579 | .) # We are building in place. |
2f1a1aea | 10580 | ac_srcdir=. |
7fbd9d09 FCE |
10581 | ac_top_srcdir=$ac_top_builddir_sub |
10582 | ac_abs_top_srcdir=$ac_pwd ;; | |
10583 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 10584 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
10585 | ac_top_srcdir=$srcdir |
10586 | ac_abs_top_srcdir=$srcdir ;; | |
10587 | *) # Relative name. | |
10588 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10589 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10590 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 10591 | esac |
7fbd9d09 | 10592 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 10593 | |
2f1a1aea | 10594 | |
7fbd9d09 FCE |
10595 | case $ac_mode in |
10596 | :F) | |
10597 | # | |
10598 | # CONFIG_FILE | |
10599 | # | |
2f1a1aea FCE |
10600 | |
10601 | case $INSTALL in | |
10602 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
10603 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
10604 | esac | |
10605 | ac_MKDIR_P=$MKDIR_P | |
10606 | case $MKDIR_P in | |
10607 | [\\/$]* | ?:[\\/]* ) ;; | |
10608 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 10609 | esac |
7fbd9d09 | 10610 | _ACEOF |
5e0d2ebf | 10611 | |
0710d850 | 10612 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
10613 | # If the template does not know about datarootdir, expand it. |
10614 | # FIXME: This hack should be removed a few years after 2.60. | |
10615 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
e6364d79 | 10616 | |
0710d850 DS |
10617 | ac_sed_dataroot=' |
10618 | /datarootdir/ { | |
7fbd9d09 FCE |
10619 | p |
10620 | q | |
10621 | } | |
10622 | /@datadir@/p | |
10623 | /@docdir@/p | |
10624 | /@infodir@/p | |
10625 | /@localedir@/p | |
e6364d79 MW |
10626 | /@mandir@/p |
10627 | ' | |
0710d850 | 10628 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7fbd9d09 FCE |
10629 | *datarootdir*) ac_datarootdir_seen=yes;; |
10630 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
e6364d79 | 10631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
0710d850 | 10632 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
7fbd9d09 | 10633 | _ACEOF |
0710d850 | 10634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
10635 | ac_datarootdir_hack=' |
10636 | s&@datadir@&$datadir&g | |
10637 | s&@docdir@&$docdir&g | |
10638 | s&@infodir@&$infodir&g | |
10639 | s&@localedir@&$localedir&g | |
10640 | s&@mandir@&$mandir&g | |
e6364d79 | 10641 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 10642 | esac |
70d28673 | 10643 | _ACEOF |
7fbd9d09 FCE |
10644 | |
10645 | # Neutralize VPATH when `$srcdir' = `.'. | |
10646 | # Shell code in configure.ac might set extrasub. | |
10647 | # FIXME: do we really want to maintain this feature? | |
0710d850 DS |
10648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10649 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
10650 | $extrasub |
10651 | _ACEOF | |
0710d850 | 10652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
10653 | :t |
10654 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0710d850 | 10655 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 10656 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
0710d850 | 10657 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
10658 | s&@srcdir@&$ac_srcdir&;t t |
10659 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10660 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10661 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10662 | s&@builddir@&$ac_builddir&;t t | |
10663 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10664 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10665 | s&@INSTALL@&$ac_INSTALL&;t t | |
10666 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
10667 | $ac_datarootdir_hack | |
0710d850 DS |
10668 | " |
10669 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
e6364d79 MW |
10670 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
10671 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10672 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
10673 | |
10674 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10675 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
10676 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
e6364d79 | 10677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 | 10678 | which seems to be undefined. Please make sure it is defined." >&5 |
0710d850 | 10679 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 FCE |
10680 | which seems to be undefined. Please make sure it is defined." >&2;} |
10681 | ||
10682 | rm -f "$tmp/stdin" | |
818ba2bc | 10683 | case $ac_file in |
0710d850 DS |
10684 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
10685 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
10686 | esac \ | |
e6364d79 MW |
10687 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
10688 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10689 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
10690 | ;; |
10691 | :H) | |
10692 | # | |
10693 | # CONFIG_HEADER | |
10694 | # | |
818ba2bc | 10695 | if test x"$ac_file" != x-; then |
0710d850 DS |
10696 | { |
10697 | $as_echo "/* $configure_input */" \ | |
10698 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
10699 | } >"$tmp/config.h" \ | |
e6364d79 MW |
10700 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
10701 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10702 | { (exit 1); exit 1; }; } | |
0710d850 | 10703 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
e6364d79 | 10704 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
0710d850 | 10705 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
2f1a1aea | 10706 | else |
0710d850 DS |
10707 | rm -f "$ac_file" |
10708 | mv "$tmp/config.h" "$ac_file" \ | |
e6364d79 MW |
10709 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
10710 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10711 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
10712 | fi |
10713 | else | |
0710d850 DS |
10714 | $as_echo "/* $configure_input */" \ |
10715 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
e6364d79 MW |
10716 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
10717 | $as_echo "$as_me: error: could not create -" >&2;} | |
10718 | { (exit 1); exit 1; }; } | |
2f1a1aea | 10719 | fi |
0710d850 DS |
10720 | # Compute "$ac_file"'s index in $config_headers. |
10721 | _am_arg="$ac_file" | |
2f1a1aea FCE |
10722 | _am_stamp_count=1 |
10723 | for _am_header in $config_headers :; do | |
10724 | case $_am_header in | |
0710d850 | 10725 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
10726 | break ;; |
10727 | * ) | |
10728 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
10729 | esac | |
10730 | done | |
0710d850 DS |
10731 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
10732 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10733 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
10734 | X"$_am_arg" : 'X\(//\)$' \| \ | |
10735 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
10736 | $as_echo X"$_am_arg" | | |
7fbd9d09 FCE |
10737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10738 | s//\1/ | |
10739 | q | |
10740 | } | |
10741 | /^X\(\/\/\)[^/].*/{ | |
10742 | s//\1/ | |
10743 | q | |
10744 | } | |
10745 | /^X\(\/\/\)$/{ | |
10746 | s//\1/ | |
10747 | q | |
10748 | } | |
10749 | /^X\(\/\).*/{ | |
10750 | s//\1/ | |
10751 | q | |
10752 | } | |
10753 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
10754 | ;; | |
818ba2bc | 10755 | |
e6364d79 | 10756 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
0710d850 | 10757 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
7fbd9d09 FCE |
10758 | ;; |
10759 | esac | |
818ba2bc MW |
10760 | |
10761 | ||
7fbd9d09 | 10762 | case $ac_file$ac_mode in |
0710d850 DS |
10763 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
10764 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
10765 | # are listed without --file. Let's play safe and only enable the eval | |
10766 | # if we detect the quoting. | |
10767 | case $CONFIG_FILES in | |
10768 | *\'*) eval set x "$CONFIG_FILES" ;; | |
10769 | *) set x $CONFIG_FILES ;; | |
10770 | esac | |
10771 | shift | |
10772 | for mf | |
10773 | do | |
10774 | # Strip MF so we end up with the name of the file. | |
10775 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
10776 | # Check whether this is an Automake generated Makefile or not. | |
10777 | # We used to match only the files named `Makefile.in', but | |
10778 | # some people rename them; so instead we look at the file content. | |
10779 | # Grep'ing the first line is not enough: some people post-process | |
10780 | # each Makefile.in and add a new line on top of each file to say so. | |
10781 | # Grep'ing the whole file is not good either: AIX grep has a line | |
10782 | # limit of 2048, but all sed's we know have understand at least 4000. | |
10783 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
10784 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
10785 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10786 | X"$mf" : 'X\(//\)[^/]' \| \ | |
10787 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10788 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 10789 | $as_echo X"$mf" | |
7fbd9d09 FCE |
10790 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10791 | s//\1/ | |
10792 | q | |
10793 | } | |
10794 | /^X\(\/\/\)[^/].*/{ | |
10795 | s//\1/ | |
10796 | q | |
10797 | } | |
10798 | /^X\(\/\/\)$/{ | |
10799 | s//\1/ | |
10800 | q | |
10801 | } | |
10802 | /^X\(\/\).*/{ | |
10803 | s//\1/ | |
10804 | q | |
10805 | } | |
10806 | s/.*/./; q'` | |
0710d850 DS |
10807 | else |
10808 | continue | |
10809 | fi | |
10810 | # Extract the definition of DEPDIR, am__include, and am__quote | |
10811 | # from the Makefile without running `make'. | |
10812 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
10813 | test -z "$DEPDIR" && continue | |
10814 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
10815 | test -z "am__include" && continue | |
10816 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
10817 | # When using ansi2knr, U may be empty or an underscore; expand it | |
10818 | U=`sed -n 's/^U = //p' < "$mf"` | |
10819 | # Find all dependency output files, they are included files with | |
10820 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
10821 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
10822 | # expansion. | |
10823 | for file in `sed -n " | |
10824 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
10825 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
10826 | # Make sure the directory exists. | |
10827 | test -f "$dirpart/$file" && continue | |
10828 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
10829 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10830 | X"$file" : 'X\(//\)[^/]' \| \ | |
10831 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10832 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 10833 | $as_echo X"$file" | |
7fbd9d09 FCE |
10834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10835 | s//\1/ | |
10836 | q | |
10837 | } | |
10838 | /^X\(\/\/\)[^/].*/{ | |
10839 | s//\1/ | |
10840 | q | |
10841 | } | |
10842 | /^X\(\/\/\)$/{ | |
10843 | s//\1/ | |
10844 | q | |
10845 | } | |
10846 | /^X\(\/\).*/{ | |
10847 | s//\1/ | |
10848 | q | |
10849 | } | |
10850 | s/.*/./; q'` | |
e6364d79 MW |
10851 | { as_dir=$dirpart/$fdir |
10852 | case $as_dir in #( | |
10853 | -*) as_dir=./$as_dir;; | |
10854 | esac | |
10855 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10856 | as_dirs= | |
10857 | while :; do | |
10858 | case $as_dir in #( | |
10859 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10860 | *) as_qdir=$as_dir;; | |
10861 | esac | |
10862 | as_dirs="'$as_qdir' $as_dirs" | |
10863 | as_dir=`$as_dirname -- "$as_dir" || | |
10864 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10865 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10866 | X"$as_dir" : 'X\(//\)$' \| \ | |
10867 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10868 | $as_echo X"$as_dir" | | |
10869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10870 | s//\1/ | |
10871 | q | |
10872 | } | |
10873 | /^X\(\/\/\)[^/].*/{ | |
10874 | s//\1/ | |
10875 | q | |
10876 | } | |
10877 | /^X\(\/\/\)$/{ | |
10878 | s//\1/ | |
10879 | q | |
10880 | } | |
10881 | /^X\(\/\).*/{ | |
10882 | s//\1/ | |
10883 | q | |
10884 | } | |
10885 | s/.*/./; q'` | |
10886 | test -d "$as_dir" && break | |
10887 | done | |
10888 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10889 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
10890 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
10891 | { (exit 1); exit 1; }; }; } | |
0710d850 DS |
10892 | # echo "creating $dirpart/$file" |
10893 | echo '# dummy' > "$dirpart/$file" | |
10894 | done | |
2f1a1aea | 10895 | done |
0710d850 | 10896 | } |
2f1a1aea | 10897 | ;; |
7fbd9d09 | 10898 | "run-stap":F) chmod +x run-stap ;; |
65ffc3f3 | 10899 | "run-staprun":F) chmod +x run-staprun ;; |
e4aaabda | 10900 | "dtrace":F) chmod +x dtrace ;; |
53ade4da | 10901 | "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;; |
7fbd9d09 | 10902 | |
2f1a1aea | 10903 | esac |
7fbd9d09 | 10904 | done # for ac_tag |
2f1a1aea | 10905 | |
2f1a1aea | 10906 | |
e6364d79 | 10907 | { (exit 0); exit 0; } |
2f1a1aea | 10908 | _ACEOF |
e6364d79 | 10909 | chmod +x $CONFIG_STATUS |
2f1a1aea FCE |
10910 | ac_clean_files=$ac_clean_files_save |
10911 | ||
0710d850 | 10912 | test $ac_write_fail = 0 || |
e6364d79 MW |
10913 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
10914 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
10915 | { (exit 1); exit 1; }; } | |
0710d850 | 10916 | |
2f1a1aea FCE |
10917 | |
10918 | # configure is writing to config.log, and then calls config.status. | |
10919 | # config.status does its own redirection, appending to config.log. | |
10920 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10921 | # by configure, so config.status won't be able to write to it; its | |
10922 | # output is simply discarded. So we exec the FD to /dev/null, | |
10923 | # effectively closing config.log, so it can be properly (re)opened and | |
10924 | # appended to by config.status. When coming back to configure, we | |
10925 | # need to make the FD available again. | |
10926 | if test "$no_create" != yes; then | |
10927 | ac_cs_success=: | |
10928 | ac_config_status_args= | |
10929 | test "$silent" = yes && | |
10930 | ac_config_status_args="$ac_config_status_args --quiet" | |
10931 | exec 5>/dev/null | |
10932 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10933 | exec 5>>config.log | |
10934 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10935 | # would make configure fail if this is the last instruction. | |
e6364d79 | 10936 | $ac_cs_success || { (exit 1); exit 1; } |
2f1a1aea FCE |
10937 | fi |
10938 | ||
5ba96b90 FCE |
10939 | # |
10940 | # CONFIG_SUBDIRS section. | |
10941 | # | |
10942 | if test "$no_recursion" != yes; then | |
10943 | ||
0710d850 DS |
10944 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10945 | # so they do not pile up. | |
5ba96b90 FCE |
10946 | ac_sub_configure_args= |
10947 | ac_prev= | |
7fbd9d09 FCE |
10948 | eval "set x $ac_configure_args" |
10949 | shift | |
10950 | for ac_arg | |
10951 | do | |
5ba96b90 FCE |
10952 | if test -n "$ac_prev"; then |
10953 | ac_prev= | |
10954 | continue | |
10955 | fi | |
10956 | case $ac_arg in | |
10957 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10958 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10959 | ac_prev=cache_file ;; | |
10960 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10961 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10962 | | --c=*) | |
10963 | ;; | |
10964 | --config-cache | -C) | |
10965 | ;; | |
10966 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10967 | ac_prev=srcdir ;; | |
10968 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10969 | ;; | |
10970 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10971 | ac_prev=prefix ;; | |
10972 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10973 | ;; | |
0710d850 DS |
10974 | --disable-option-checking) |
10975 | ;; | |
7fbd9d09 FCE |
10976 | *) |
10977 | case $ac_arg in | |
0710d850 | 10978 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 10979 | esac |
e6364d79 | 10980 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
5ba96b90 FCE |
10981 | esac |
10982 | done | |
10983 | ||
10984 | # Always prepend --prefix to ensure using the same prefix | |
10985 | # in subdir configurations. | |
7fbd9d09 FCE |
10986 | ac_arg="--prefix=$prefix" |
10987 | case $ac_arg in | |
0710d850 | 10988 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
10989 | esac |
10990 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10991 | ||
10992 | # Pass --silent | |
10993 | if test "$silent" = yes; then | |
10994 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10995 | fi | |
daae650d | 10996 | |
0710d850 DS |
10997 | # Always prepend --disable-option-checking to silence warnings, since |
10998 | # different subdirs can have different --enable and --with options. | |
10999 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
11000 | ||
5ba96b90 FCE |
11001 | ac_popdir=`pwd` |
11002 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
11003 | ||
11004 | # Do not complain, so a configure script can configure whichever | |
11005 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
11006 | test -d "$srcdir/$ac_dir" || continue |
11007 | ||
11008 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
e6364d79 | 11009 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
0710d850 | 11010 | $as_echo "$ac_msg" >&6 |
e6364d79 MW |
11011 | { as_dir="$ac_dir" |
11012 | case $as_dir in #( | |
11013 | -*) as_dir=./$as_dir;; | |
11014 | esac | |
11015 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
11016 | as_dirs= | |
11017 | while :; do | |
11018 | case $as_dir in #( | |
11019 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11020 | *) as_qdir=$as_dir;; | |
11021 | esac | |
11022 | as_dirs="'$as_qdir' $as_dirs" | |
11023 | as_dir=`$as_dirname -- "$as_dir" || | |
11024 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11025 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11026 | X"$as_dir" : 'X\(//\)$' \| \ | |
11027 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11028 | $as_echo X"$as_dir" | | |
11029 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11030 | s//\1/ | |
11031 | q | |
11032 | } | |
11033 | /^X\(\/\/\)[^/].*/{ | |
11034 | s//\1/ | |
11035 | q | |
11036 | } | |
11037 | /^X\(\/\/\)$/{ | |
11038 | s//\1/ | |
11039 | q | |
11040 | } | |
11041 | /^X\(\/\).*/{ | |
11042 | s//\1/ | |
11043 | q | |
11044 | } | |
11045 | s/.*/./; q'` | |
11046 | test -d "$as_dir" && break | |
11047 | done | |
11048 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11049 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
11050 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
11051 | { (exit 1); exit 1; }; }; } | |
5ba96b90 FCE |
11052 | ac_builddir=. |
11053 | ||
7fbd9d09 FCE |
11054 | case "$ac_dir" in |
11055 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11056 | *) | |
0710d850 | 11057 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 11058 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 11059 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
11060 | case $ac_top_builddir_sub in |
11061 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11062 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11063 | esac ;; | |
11064 | esac | |
11065 | ac_abs_top_builddir=$ac_pwd | |
11066 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11067 | # for backward compatibility: | |
11068 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
11069 | |
11070 | case $srcdir in | |
7fbd9d09 | 11071 | .) # We are building in place. |
5ba96b90 | 11072 | ac_srcdir=. |
7fbd9d09 FCE |
11073 | ac_top_srcdir=$ac_top_builddir_sub |
11074 | ac_abs_top_srcdir=$ac_pwd ;; | |
11075 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 11076 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
11077 | ac_top_srcdir=$srcdir |
11078 | ac_abs_top_srcdir=$srcdir ;; | |
11079 | *) # Relative name. | |
11080 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11081 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11082 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 11083 | esac |
7fbd9d09 | 11084 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
11085 | |
11086 | ||
7fbd9d09 | 11087 | cd "$ac_dir" |
5ba96b90 FCE |
11088 | |
11089 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
11090 | if test -f "$ac_srcdir/configure.gnu"; then |
11091 | ac_sub_configure=$ac_srcdir/configure.gnu | |
11092 | elif test -f "$ac_srcdir/configure"; then | |
11093 | ac_sub_configure=$ac_srcdir/configure | |
11094 | elif test -f "$ac_srcdir/configure.in"; then | |
11095 | # This should be Cygnus configure. | |
11096 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 11097 | else |
e6364d79 | 11098 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
0710d850 | 11099 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
5ba96b90 FCE |
11100 | ac_sub_configure= |
11101 | fi | |
11102 | ||
11103 | # The recursion is here. | |
11104 | if test -n "$ac_sub_configure"; then | |
11105 | # Make the cache file name correct relative to the subdirectory. | |
11106 | case $cache_file in | |
11107 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
11108 | *) # Relative name. |
11109 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
11110 | esac |
11111 | ||
e6364d79 | 11112 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
0710d850 | 11113 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
5ba96b90 | 11114 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
11115 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
11116 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
e6364d79 MW |
11117 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
11118 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
11119 | { (exit 1); exit 1; }; } | |
5ba96b90 FCE |
11120 | fi |
11121 | ||
7fbd9d09 | 11122 | cd "$ac_popdir" |
5ba96b90 FCE |
11123 | done |
11124 | fi | |
0710d850 | 11125 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
e6364d79 | 11126 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
0710d850 DS |
11127 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11128 | fi | |
5ba96b90 | 11129 | |
4d9087fc | 11130 | |
af29024d | 11131 | if test "${prefix}" = "/usr/local"; then |
e6364d79 | 11132 | { $as_echo "$as_me:$LINENO: " >&5 |
0710d850 | 11133 | $as_echo "$as_me: " >&6;} |
e6364d79 | 11134 | { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 |
0710d850 | 11135 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} |
e6364d79 | 11136 | { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 |
0710d850 | 11137 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} |
e6364d79 | 11138 | { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 |
0710d850 | 11139 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} |
e6364d79 | 11140 | { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 |
0710d850 | 11141 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} |
e6364d79 | 11142 | { $as_echo "$as_me:$LINENO: is not supported." >&5 |
0710d850 | 11143 | $as_echo "$as_me: is not supported." >&6;} |
af29024d | 11144 | fi |