]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
562d60b0 | 3 | # Generated by GNU Autoconf 2.61 for systemtap 1.0. |
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, |
562d60b0 | 8 | # 2002, 2003, 2004, 2005, 2006 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. | |
412e1bf7 FCE |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
2f1a1aea | 14 | |
7fbd9d09 FCE |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
412e1bf7 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
2f1a1aea FCE |
18 | emulate sh |
19 | NULLCMD=: | |
562d60b0 | 20 | # Zsh 3.x and 4.x performs 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 | |
412e1bf7 FCE |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; | |
7fbd9d09 | 27 | esac |
412e1bf7 | 28 | |
7fbd9d09 FCE |
29 | fi |
30 | ||
31 | ||
412e1bf7 FCE |
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 | ||
8d9ee48a JS |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
562d60b0 DB |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
2f1a1aea | 53 | fi |
2f1a1aea | 54 | |
412e1bf7 FCE |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
2f1a1aea | 62 | |
7fbd9d09 FCE |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
562d60b0 DB |
68 | as_nl=' |
69 | ' | |
7fbd9d09 FCE |
70 | IFS=" "" $as_nl" |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
412e1bf7 | 73 | case $0 in |
7fbd9d09 FCE |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
412e1bf7 FCE |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done | |
7fbd9d09 FCE |
82 | IFS=$as_save_IFS |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
562d60b0 | 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
412e1bf7 | 93 | { (exit 1); exit 1; } |
7fbd9d09 FCE |
94 | fi |
95 | ||
412e1bf7 FCE |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
97 | for as_var in ENV MAIL MAILPATH | |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7fbd9d09 | 99 | done |
2f1a1aea FCE |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
562d60b0 DB |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
114 | fi | |
115 | done | |
2f1a1aea | 116 | |
412e1bf7 FCE |
117 | # Required to use basename. |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
120 | as_expr=expr | |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
126 | as_basename=basename | |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
133 | as_me=`$as_basename -- "$0" || | |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
135 | X"$0" : 'X\(//\)$' \| \ | |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
562d60b0 | 137 | echo X/"$0" | |
412e1bf7 FCE |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
151 | ||
7fbd9d09 | 152 | # CDPATH. |
412e1bf7 FCE |
153 | $as_unset CDPATH |
154 | ||
5e0d2ebf | 155 | |
7fbd9d09 | 156 | if test "x$CONFIG_SHELL" = x; then |
412e1bf7 FCE |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes | |
7fbd9d09 | 159 | else |
412e1bf7 | 160 | as_have_required=no |
5e0d2ebf | 161 | fi |
412e1bf7 | 162 | |
562d60b0 | 163 | if test $as_have_required = yes && (eval ": |
412e1bf7 FCE |
164 | (as_func_return () { |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
5e0d2ebf | 179 | |
7fbd9d09 | 180 | exitcode=0 |
412e1bf7 FCE |
181 | if as_func_success; then |
182 | : | |
7fbd9d09 | 183 | else |
412e1bf7 FCE |
184 | exitcode=1 |
185 | echo as_func_success failed. | |
186 | fi | |
187 | ||
188 | if as_func_failure; then | |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
7fbd9d09 FCE |
191 | fi |
192 | ||
412e1bf7 FCE |
193 | if as_func_ret_success; then |
194 | : | |
7fbd9d09 | 195 | else |
412e1bf7 FCE |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2f1a1aea FCE |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 228 | case $as_dir in |
2f1a1aea | 229 | /*) |
7fbd9d09 | 230 | for as_base in sh bash ksh sh5; do |
412e1bf7 | 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
7fbd9d09 FCE |
232 | done;; |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
412e1bf7 FCE |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
562d60b0 | 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
412e1bf7 FCE |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
7fbd9d09 | 253 | |
7fbd9d09 | 254 | fi |
412e1bf7 FCE |
255 | |
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
562d60b0 | 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
412e1bf7 FCE |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
7fbd9d09 FCE |
275 | fi |
276 | ||
412e1bf7 FCE |
277 | |
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
4a3c19da | 293 | } |
7fbd9d09 | 294 | |
412e1bf7 FCE |
295 | exitcode=0 |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
7fbd9d09 | 302 | |
412e1bf7 FCE |
303 | if as_func_failure; then |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
7fbd9d09 | 307 | |
412e1bf7 FCE |
308 | if as_func_ret_success; then |
309 | : | |
7fbd9d09 | 310 | else |
412e1bf7 FCE |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
4a3c19da | 322 | else |
412e1bf7 FCE |
323 | exitcode=1 |
324 | echo positional parameters were not saved. | |
325 | fi | |
7fbd9d09 | 326 | |
412e1bf7 | 327 | test $exitcode = 0) || { (exit 1); exit 1; } |
7fbd9d09 | 328 | |
412e1bf7 FCE |
329 | ( |
330 | as_lineno_1=$LINENO | |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
4a3c19da | 334 | |
412e1bf7 FCE |
335 | _ASEOF |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
562d60b0 DB |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
412e1bf7 FCE |
350 | fi |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
7fbd9d09 | 387 | else |
412e1bf7 FCE |
388 | exitcode=1 |
389 | echo as_func_success failed. | |
7fbd9d09 FCE |
390 | fi |
391 | ||
412e1bf7 FCE |
392 | if as_func_failure; then |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
4a3c19da | 399 | else |
412e1bf7 FCE |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. | |
7fbd9d09 FCE |
402 | fi |
403 | ||
412e1bf7 FCE |
404 | if as_func_ret_failure; then |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
7fbd9d09 | 411 | else |
412e1bf7 FCE |
412 | exitcode=1 |
413 | echo positional parameters were not saved. | |
7fbd9d09 FCE |
414 | fi |
415 | ||
412e1bf7 FCE |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. | |
562d60b0 DB |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this | |
420 | echo message | |
412e1bf7 | 421 | } |
7fbd9d09 FCE |
422 | |
423 | ||
2f1a1aea | 424 | |
412e1bf7 FCE |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
429 | ||
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
432 | # line-number line after each line using $LINENO; the second 'sed' | |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
7fbd9d09 FCE |
440 | sed -n ' |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
2f1a1aea | 444 | sed ' |
7fbd9d09 FCE |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
2f1a1aea | 449 | N |
7fbd9d09 FCE |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 452 | t loop |
7fbd9d09 | 453 | s/-\n.*// |
2f1a1aea | 454 | ' >$as_me.lineno && |
7fbd9d09 | 455 | chmod +x "$as_me.lineno" || |
562d60b0 | 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
412e1bf7 | 457 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
7fbd9d09 FCE |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
2f1a1aea FCE |
463 | # Exit status is that of the last command. |
464 | exit | |
4a3c19da | 465 | } |
7fbd9d09 | 466 | |
412e1bf7 FCE |
467 | |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
7fbd9d09 | 474 | ECHO_C= ECHO_N= ECHO_T= |
412e1bf7 | 475 | case `echo -n x` in |
7fbd9d09 | 476 | -n*) |
412e1bf7 | 477 | case `echo 'x\c'` in |
7fbd9d09 | 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
412e1bf7 | 479 | *) ECHO_C='\c';; |
7fbd9d09 FCE |
480 | esac;; |
481 | *) | |
482 | ECHO_N='-n';; | |
2f1a1aea | 483 | esac |
562d60b0 | 484 | |
412e1bf7 FCE |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
487 | as_expr=expr | |
488 | else | |
489 | as_expr=false | |
490 | fi | |
2f1a1aea FCE |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
562d60b0 DB |
497 | mkdir conf$$.dir |
498 | fi | |
499 | echo >conf$$.file | |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
501 | as_ln_s='ln -s' | |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
2f1a1aea | 507 | as_ln_s='cp -p' |
562d60b0 DB |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln | |
2f1a1aea FCE |
510 | else |
511 | as_ln_s='cp -p' | |
512 | fi | |
7fbd9d09 FCE |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
412e1bf7 | 517 | as_mkdir_p=: |
2f1a1aea FCE |
518 | else |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
7fbd9d09 FCE |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
562d60b0 | 534 | test -d "$1/."; |
7fbd9d09 | 535 | else |
412e1bf7 | 536 | case $1 in |
562d60b0 | 537 | -*)set "./$1";; |
7fbd9d09 | 538 | esac; |
412e1bf7 | 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
7fbd9d09 FCE |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
412e1bf7 | 553 | |
7fbd9d09 | 554 | exec 7<&0 </dev/null 6>&1 |
2f1a1aea FCE |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
2f1a1aea FCE |
561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
7fbd9d09 | 565 | ac_clean_files= |
2f1a1aea | 566 | ac_config_libobj_dir=. |
7fbd9d09 | 567 | LIBOBJS= |
2f1a1aea FCE |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
412e1bf7 | 572 | SHELL=${CONFIG_SHELL-/bin/sh} |
2f1a1aea | 573 | |
2f1a1aea FCE |
574 | # Identity of this package. |
575 | PACKAGE_NAME='systemtap' | |
576 | PACKAGE_TARNAME='systemtap' | |
6a7aa1a1 JS |
577 | PACKAGE_VERSION='1.0' |
578 | PACKAGE_STRING='systemtap 1.0' | |
2f1a1aea FCE |
579 | PACKAGE_BUGREPORT='systemtap@sources.redhat.com' |
580 | ||
581 | # Factoring default headers for most tests. | |
582 | ac_includes_default="\ | |
583 | #include <stdio.h> | |
7fbd9d09 | 584 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
585 | # include <sys/types.h> |
586 | #endif | |
7fbd9d09 | 587 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
588 | # include <sys/stat.h> |
589 | #endif | |
7fbd9d09 | 590 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
7fbd9d09 | 594 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
7fbd9d09 FCE |
598 | #ifdef HAVE_STRING_H |
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
600 | # include <memory.h> |
601 | # endif | |
602 | # include <string.h> | |
603 | #endif | |
7fbd9d09 | 604 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
605 | # include <strings.h> |
606 | #endif | |
7fbd9d09 | 607 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 608 | # include <inttypes.h> |
2f1a1aea | 609 | #endif |
7fbd9d09 FCE |
610 | #ifdef HAVE_STDINT_H |
611 | # include <stdint.h> | |
612 | #endif | |
613 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
614 | # include <unistd.h> |
615 | #endif" | |
616 | ||
562d60b0 DB |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | INSTALL_PROGRAM | |
655 | INSTALL_SCRIPT | |
656 | INSTALL_DATA | |
657 | am__isrc | |
658 | CYGPATH_W | |
659 | PACKAGE | |
660 | VERSION | |
661 | ACLOCAL | |
662 | AUTOCONF | |
663 | AUTOMAKE | |
664 | AUTOHEADER | |
665 | MAKEINFO | |
666 | install_sh | |
667 | STRIP | |
668 | INSTALL_STRIP_PROGRAM | |
8d9ee48a | 669 | mkdir_p |
562d60b0 DB |
670 | AWK |
671 | SET_MAKE | |
672 | am__leading_dot | |
673 | AMTAR | |
674 | am__tar | |
675 | am__untar | |
676 | MAINTAINER_MODE_TRUE | |
677 | MAINTAINER_MODE_FALSE | |
678 | MAINT | |
7fbd9d09 | 679 | MKDIR_P |
562d60b0 DB |
680 | LN_S |
681 | CC | |
682 | CFLAGS | |
683 | LDFLAGS | |
684 | CPPFLAGS | |
685 | ac_ct_CC | |
686 | EXEEXT | |
687 | OBJEXT | |
688 | DEPDIR | |
689 | am__include | |
690 | am__quote | |
691 | AMDEP_TRUE | |
692 | AMDEP_FALSE | |
693 | AMDEPBACKSLASH | |
694 | CCDEPMODE | |
695 | am__fastdepCC_TRUE | |
696 | am__fastdepCC_FALSE | |
697 | CXX | |
698 | CXXFLAGS | |
699 | ac_ct_CXX | |
700 | CXXDEPMODE | |
701 | am__fastdepCXX_TRUE | |
702 | am__fastdepCXX_FALSE | |
703 | CPP | |
704 | GREP | |
705 | EGREP | |
706 | U | |
707 | ANSI2KNR | |
708 | RANLIB | |
709 | PIELDFLAGS | |
710 | PIECFLAGS | |
711 | PIECXXFLAGS | |
712 | sqlite3_LIBS | |
713 | BUILD_TRANSLATOR_TRUE | |
714 | BUILD_TRANSLATOR_FALSE | |
715 | staplog_CPPFLAGS | |
716 | BUILD_CRASHMOD_TRUE | |
717 | BUILD_CRASHMOD_FALSE | |
718 | have_latex | |
719 | have_dvips | |
720 | have_ps2pdf | |
721 | have_latex2html | |
722 | BUILD_DOCS_TRUE | |
723 | BUILD_DOCS_FALSE | |
724 | have_xmlto | |
725 | BUILD_REFDOCS_TRUE | |
726 | BUILD_REFDOCS_FALSE | |
727 | XMLTO_STRINGPARAM_TRUE | |
728 | XMLTO_STRINGPARAM_FALSE | |
729 | BUILD_PDFREFDOCS_TRUE | |
730 | BUILD_PDFREFDOCS_FALSE | |
731 | have_certutil | |
732 | nss_CFLAGS | |
733 | nspr_CFLAGS | |
734 | BUILD_SERVER_TRUE | |
735 | BUILD_SERVER_FALSE | |
736 | HAVE_NSS_TRUE | |
737 | HAVE_NSS_FALSE | |
738 | PKG_CONFIG | |
739 | gtkmm_CFLAGS | |
740 | gtkmm_LIBS | |
741 | libglade_CFLAGS | |
742 | libglade_LIBS | |
743 | CXXCPP | |
744 | BUILD_GRAPHER_TRUE | |
745 | BUILD_GRAPHER_FALSE | |
746 | rpm_LIBS | |
747 | RPM_CFLAGS | |
748 | RPM_LIBS | |
749 | BUILD_ELFUTILS_TRUE | |
750 | BUILD_ELFUTILS_FALSE | |
751 | elfutils_abs_srcdir | |
752 | stap_LIBS | |
753 | DATE | |
562d60b0 DB |
754 | subdirs |
755 | LIBOBJS | |
756 | LTLIBOBJS' | |
2f1a1aea | 757 | ac_subst_files='' |
7fbd9d09 FCE |
758 | ac_precious_vars='build_alias |
759 | host_alias | |
760 | target_alias | |
761 | CC | |
762 | CFLAGS | |
763 | LDFLAGS | |
764 | LIBS | |
765 | CPPFLAGS | |
766 | CXX | |
767 | CXXFLAGS | |
768 | CCC | |
769 | CPP | |
1087b83f | 770 | PKG_CONFIG |
c3f070d9 DS |
771 | gtkmm_CFLAGS |
772 | gtkmm_LIBS | |
f8a49389 DS |
773 | libglade_CFLAGS |
774 | libglade_LIBS | |
775 | CXXCPP | |
2ed04863 | 776 | RPM_CFLAGS |
f8a49389 | 777 | RPM_LIBS' |
1087b83f | 778 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
779 | |
780 | # Initialize some variables set by options. | |
781 | ac_init_help= | |
782 | ac_init_version=false | |
783 | # The variables have the same names as the options, with | |
784 | # dashes changed to underlines. | |
785 | cache_file=/dev/null | |
786 | exec_prefix=NONE | |
787 | no_create= | |
788 | no_recursion= | |
789 | prefix=NONE | |
790 | program_prefix=NONE | |
791 | program_suffix=NONE | |
792 | program_transform_name=s,x,x, | |
793 | silent= | |
794 | site= | |
795 | srcdir= | |
796 | verbose= | |
797 | x_includes=NONE | |
798 | x_libraries=NONE | |
799 | ||
800 | # Installation directory options. | |
801 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
802 | # and all the variables that are supposed to be based on exec_prefix | |
803 | # by default will actually change. | |
804 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 805 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
806 | bindir='${exec_prefix}/bin' |
807 | sbindir='${exec_prefix}/sbin' | |
808 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
809 | datarootdir='${prefix}/share' |
810 | datadir='${datarootdir}' | |
2f1a1aea FCE |
811 | sysconfdir='${prefix}/etc' |
812 | sharedstatedir='${prefix}/com' | |
813 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
814 | includedir='${prefix}/include' |
815 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
816 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
817 | infodir='${datarootdir}/info' | |
818 | htmldir='${docdir}' | |
819 | dvidir='${docdir}' | |
820 | pdfdir='${docdir}' | |
821 | psdir='${docdir}' | |
822 | libdir='${exec_prefix}/lib' | |
823 | localedir='${datarootdir}/locale' | |
824 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
825 | |
826 | ac_prev= | |
7fbd9d09 | 827 | ac_dashdash= |
2f1a1aea FCE |
828 | for ac_option |
829 | do | |
830 | # If the previous option needs an argument, assign it. | |
831 | if test -n "$ac_prev"; then | |
7fbd9d09 | 832 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
833 | ac_prev= |
834 | continue | |
835 | fi | |
836 | ||
7fbd9d09 FCE |
837 | case $ac_option in |
838 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
839 | *) ac_optarg=yes ;; | |
840 | esac | |
2f1a1aea FCE |
841 | |
842 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
843 | ||
7fbd9d09 FCE |
844 | case $ac_dashdash$ac_option in |
845 | --) | |
846 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
847 | |
848 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
849 | ac_prev=bindir ;; | |
850 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
851 | bindir=$ac_optarg ;; | |
852 | ||
853 | -build | --build | --buil | --bui | --bu) | |
854 | ac_prev=build_alias ;; | |
855 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
856 | build_alias=$ac_optarg ;; | |
857 | ||
858 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
859 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
860 | ac_prev=cache_file ;; | |
861 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
862 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
863 | cache_file=$ac_optarg ;; | |
864 | ||
865 | --config-cache | -C) | |
866 | cache_file=config.cache ;; | |
867 | ||
7fbd9d09 | 868 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 869 | ac_prev=datadir ;; |
7fbd9d09 | 870 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
871 | datadir=$ac_optarg ;; |
872 | ||
7fbd9d09 FCE |
873 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
874 | | --dataroo | --dataro | --datar) | |
875 | ac_prev=datarootdir ;; | |
876 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
877 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
878 | datarootdir=$ac_optarg ;; | |
879 | ||
2f1a1aea | 880 | -disable-* | --disable-*) |
562d60b0 | 881 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 882 | # Reject names that are not valid shell variable names. |
562d60b0 DB |
883 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
884 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412e1bf7 | 885 | { (exit 1); exit 1; }; } |
562d60b0 DB |
886 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
887 | eval enable_$ac_feature=no ;; | |
7fbd9d09 FCE |
888 | |
889 | -docdir | --docdir | --docdi | --doc | --do) | |
890 | ac_prev=docdir ;; | |
891 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
892 | docdir=$ac_optarg ;; | |
893 | ||
894 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
895 | ac_prev=dvidir ;; | |
896 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
897 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
898 | |
899 | -enable-* | --enable-*) | |
562d60b0 | 900 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 901 | # Reject names that are not valid shell variable names. |
562d60b0 DB |
902 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
903 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412e1bf7 | 904 | { (exit 1); exit 1; }; } |
562d60b0 DB |
905 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
906 | eval enable_$ac_feature=\$ac_optarg ;; | |
2f1a1aea FCE |
907 | |
908 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
909 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
910 | | --exec | --exe | --ex) | |
911 | ac_prev=exec_prefix ;; | |
912 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
913 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
914 | | --exec=* | --exe=* | --ex=*) | |
915 | exec_prefix=$ac_optarg ;; | |
916 | ||
917 | -gas | --gas | --ga | --g) | |
918 | # Obsolete; use --with-gas. | |
919 | with_gas=yes ;; | |
920 | ||
921 | -help | --help | --hel | --he | -h) | |
922 | ac_init_help=long ;; | |
923 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
924 | ac_init_help=recursive ;; | |
925 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
926 | ac_init_help=short ;; | |
927 | ||
928 | -host | --host | --hos | --ho) | |
929 | ac_prev=host_alias ;; | |
930 | -host=* | --host=* | --hos=* | --ho=*) | |
931 | host_alias=$ac_optarg ;; | |
932 | ||
7fbd9d09 FCE |
933 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
934 | ac_prev=htmldir ;; | |
935 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
936 | | --ht=*) | |
937 | htmldir=$ac_optarg ;; | |
938 | ||
2f1a1aea FCE |
939 | -includedir | --includedir | --includedi | --included | --include \ |
940 | | --includ | --inclu | --incl | --inc) | |
941 | ac_prev=includedir ;; | |
942 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
943 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
944 | includedir=$ac_optarg ;; | |
945 | ||
946 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
947 | ac_prev=infodir ;; | |
948 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
949 | infodir=$ac_optarg ;; | |
950 | ||
951 | -libdir | --libdir | --libdi | --libd) | |
952 | ac_prev=libdir ;; | |
953 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
954 | libdir=$ac_optarg ;; | |
955 | ||
956 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
957 | | --libexe | --libex | --libe) | |
958 | ac_prev=libexecdir ;; | |
959 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
960 | | --libexe=* | --libex=* | --libe=*) | |
961 | libexecdir=$ac_optarg ;; | |
962 | ||
7fbd9d09 FCE |
963 | -localedir | --localedir | --localedi | --localed | --locale) |
964 | ac_prev=localedir ;; | |
965 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
966 | localedir=$ac_optarg ;; | |
967 | ||
2f1a1aea | 968 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 969 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
970 | ac_prev=localstatedir ;; |
971 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 972 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
973 | localstatedir=$ac_optarg ;; |
974 | ||
975 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
976 | ac_prev=mandir ;; | |
977 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
978 | mandir=$ac_optarg ;; | |
979 | ||
980 | -nfp | --nfp | --nf) | |
981 | # Obsolete; use --without-fp. | |
982 | with_fp=no ;; | |
983 | ||
984 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
985 | | --no-cr | --no-c | -n) | |
986 | no_create=yes ;; | |
987 | ||
988 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
989 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
990 | no_recursion=yes ;; | |
991 | ||
992 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
993 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
994 | | --oldin | --oldi | --old | --ol | --o) | |
995 | ac_prev=oldincludedir ;; | |
996 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
997 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
998 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
999 | oldincludedir=$ac_optarg ;; | |
1000 | ||
1001 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1002 | ac_prev=prefix ;; | |
1003 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1004 | prefix=$ac_optarg ;; | |
1005 | ||
1006 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1007 | | --program-pre | --program-pr | --program-p) | |
1008 | ac_prev=program_prefix ;; | |
1009 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1010 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1011 | program_prefix=$ac_optarg ;; | |
1012 | ||
1013 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1014 | | --program-suf | --program-su | --program-s) | |
1015 | ac_prev=program_suffix ;; | |
1016 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1017 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1018 | program_suffix=$ac_optarg ;; | |
1019 | ||
1020 | -program-transform-name | --program-transform-name \ | |
1021 | | --program-transform-nam | --program-transform-na \ | |
1022 | | --program-transform-n | --program-transform- \ | |
1023 | | --program-transform | --program-transfor \ | |
1024 | | --program-transfo | --program-transf \ | |
1025 | | --program-trans | --program-tran \ | |
1026 | | --progr-tra | --program-tr | --program-t) | |
1027 | ac_prev=program_transform_name ;; | |
1028 | -program-transform-name=* | --program-transform-name=* \ | |
1029 | | --program-transform-nam=* | --program-transform-na=* \ | |
1030 | | --program-transform-n=* | --program-transform-=* \ | |
1031 | | --program-transform=* | --program-transfor=* \ | |
1032 | | --program-transfo=* | --program-transf=* \ | |
1033 | | --program-trans=* | --program-tran=* \ | |
1034 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1035 | program_transform_name=$ac_optarg ;; | |
1036 | ||
7fbd9d09 FCE |
1037 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1038 | ac_prev=pdfdir ;; | |
1039 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1040 | pdfdir=$ac_optarg ;; | |
1041 | ||
1042 | -psdir | --psdir | --psdi | --psd | --ps) | |
1043 | ac_prev=psdir ;; | |
1044 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1045 | psdir=$ac_optarg ;; | |
1046 | ||
2f1a1aea FCE |
1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1048 | | -silent | --silent | --silen | --sile | --sil) | |
1049 | silent=yes ;; | |
1050 | ||
1051 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1052 | ac_prev=sbindir ;; | |
1053 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1054 | | --sbi=* | --sb=*) | |
1055 | sbindir=$ac_optarg ;; | |
1056 | ||
1057 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1058 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1059 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1060 | | --sha | --sh) | |
1061 | ac_prev=sharedstatedir ;; | |
1062 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1063 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1064 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1065 | | --sha=* | --sh=*) | |
1066 | sharedstatedir=$ac_optarg ;; | |
1067 | ||
1068 | -site | --site | --sit) | |
1069 | ac_prev=site ;; | |
1070 | -site=* | --site=* | --sit=*) | |
1071 | site=$ac_optarg ;; | |
1072 | ||
1073 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1074 | ac_prev=srcdir ;; | |
1075 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1076 | srcdir=$ac_optarg ;; | |
1077 | ||
1078 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1079 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1080 | ac_prev=sysconfdir ;; | |
1081 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1082 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1083 | sysconfdir=$ac_optarg ;; | |
1084 | ||
1085 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1086 | ac_prev=target_alias ;; | |
1087 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1088 | target_alias=$ac_optarg ;; | |
1089 | ||
1090 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1091 | verbose=yes ;; | |
1092 | ||
1093 | -version | --version | --versio | --versi | --vers | -V) | |
1094 | ac_init_version=: ;; | |
1095 | ||
1096 | -with-* | --with-*) | |
562d60b0 | 1097 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1098 | # Reject names that are not valid shell variable names. |
562d60b0 DB |
1099 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1100 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
412e1bf7 | 1101 | { (exit 1); exit 1; }; } |
562d60b0 DB |
1102 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1103 | eval with_$ac_package=\$ac_optarg ;; | |
2f1a1aea FCE |
1104 | |
1105 | -without-* | --without-*) | |
562d60b0 | 1106 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1107 | # Reject names that are not valid shell variable names. |
562d60b0 DB |
1108 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1109 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
412e1bf7 | 1110 | { (exit 1); exit 1; }; } |
562d60b0 DB |
1111 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1112 | eval with_$ac_package=no ;; | |
2f1a1aea FCE |
1113 | |
1114 | --x) | |
1115 | # Obsolete; use --with-x. | |
1116 | with_x=yes ;; | |
1117 | ||
1118 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1119 | | --x-incl | --x-inc | --x-in | --x-i) | |
1120 | ac_prev=x_includes ;; | |
1121 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1122 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1123 | x_includes=$ac_optarg ;; | |
1124 | ||
1125 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1126 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1127 | ac_prev=x_libraries ;; | |
1128 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1129 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1130 | x_libraries=$ac_optarg ;; | |
1131 | ||
562d60b0 | 1132 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
412e1bf7 FCE |
1133 | Try \`$0 --help' for more information." >&2 |
1134 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
1135 | ;; |
1136 | ||
1137 | *=*) | |
1138 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1139 | # Reject names that are not valid shell variable names. | |
412e1bf7 | 1140 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
562d60b0 | 1141 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
412e1bf7 | 1142 | { (exit 1); exit 1; }; } |
7fbd9d09 | 1143 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1144 | export $ac_envvar ;; |
1145 | ||
1146 | *) | |
1147 | # FIXME: should be removed in autoconf 3.0. | |
562d60b0 | 1148 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1149 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
562d60b0 | 1150 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2f1a1aea FCE |
1151 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1152 | ;; | |
1153 | ||
1154 | esac | |
1155 | done | |
1156 | ||
1157 | if test -n "$ac_prev"; then | |
1158 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
562d60b0 | 1159 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
412e1bf7 | 1160 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
1161 | fi |
1162 | ||
562d60b0 | 1163 | # Be sure to have absolute directory names. |
7fbd9d09 FCE |
1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1165 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1167 | libdir localedir mandir | |
818ba2bc | 1168 | do |
7fbd9d09 | 1169 | eval ac_val=\$$ac_var |
8ae7a94a | 1170 | case $ac_val in |
7fbd9d09 FCE |
1171 | [\\/$]* | ?:[\\/]* ) continue;; |
1172 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1173 | esac |
562d60b0 | 1174 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
412e1bf7 | 1175 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
1176 | done |
1177 | ||
1178 | # There might be people who depend on the old broken behavior: `$host' | |
1179 | # used to hold the argument of --host etc. | |
1180 | # FIXME: To remove some day. | |
1181 | build=$build_alias | |
1182 | host=$host_alias | |
1183 | target=$target_alias | |
1184 | ||
1185 | # FIXME: To remove some day. | |
1186 | if test "x$host_alias" != x; then | |
1187 | if test "x$build_alias" = x; then | |
1188 | cross_compiling=maybe | |
562d60b0 | 1189 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2f1a1aea FCE |
1190 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1191 | elif test "x$build_alias" != "x$host_alias"; then | |
1192 | cross_compiling=yes | |
1193 | fi | |
1194 | fi | |
1195 | ||
1196 | ac_tool_prefix= | |
1197 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1198 | ||
1199 | test "$silent" = yes && exec 6>/dev/null | |
1200 | ||
1201 | ||
7fbd9d09 FCE |
1202 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1203 | ac_ls_di=`ls -di .` && | |
1204 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
562d60b0 | 1205 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
412e1bf7 | 1206 | { (exit 1); exit 1; }; } |
7fbd9d09 | 1207 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
562d60b0 | 1208 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
412e1bf7 | 1209 | { (exit 1); exit 1; }; } |
7fbd9d09 FCE |
1210 | |
1211 | ||
2f1a1aea FCE |
1212 | # Find the source files, if location was not specified. |
1213 | if test -z "$srcdir"; then | |
1214 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1215 | # Try the directory containing this script, then the parent directory. |
562d60b0 DB |
1216 | ac_confdir=`$as_dirname -- "$0" || |
1217 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1218 | X"$0" : 'X\(//\)[^/]' \| \ | |
1219 | X"$0" : 'X\(//\)$' \| \ | |
1220 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1221 | echo X"$0" | | |
7fbd9d09 FCE |
1222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1223 | s//\1/ | |
1224 | q | |
1225 | } | |
1226 | /^X\(\/\/\)[^/].*/{ | |
1227 | s//\1/ | |
1228 | q | |
1229 | } | |
1230 | /^X\(\/\/\)$/{ | |
1231 | s//\1/ | |
1232 | q | |
1233 | } | |
1234 | /^X\(\/\).*/{ | |
1235 | s//\1/ | |
1236 | q | |
1237 | } | |
1238 | s/.*/./; q'` | |
2f1a1aea | 1239 | srcdir=$ac_confdir |
7fbd9d09 | 1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1241 | srcdir=.. |
1242 | fi | |
1243 | else | |
1244 | ac_srcdir_defaulted=no | |
1245 | fi | |
7fbd9d09 FCE |
1246 | if test ! -r "$srcdir/$ac_unique_file"; then |
1247 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
562d60b0 | 1248 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
412e1bf7 | 1249 | { (exit 1); exit 1; }; } |
8ae7a94a | 1250 | fi |
7fbd9d09 FCE |
1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1252 | ac_abs_confdir=`( | |
562d60b0 | 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
412e1bf7 | 1254 | { (exit 1); exit 1; }; } |
7fbd9d09 FCE |
1255 | pwd)` |
1256 | # When building in place, set srcdir=. | |
1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1258 | srcdir=. | |
1259 | fi | |
1260 | # Remove unnecessary trailing slashes from srcdir. | |
1261 | # Double slashes in file names in object file debugging info | |
1262 | # mess up M-x gdb in Emacs. | |
1263 | case $srcdir in | |
1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1265 | esac | |
1266 | for ac_var in $ac_precious_vars; do | |
1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1268 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1271 | done | |
2f1a1aea FCE |
1272 | |
1273 | # | |
1274 | # Report the --help message. | |
1275 | # | |
1276 | if test "$ac_init_help" = "long"; then | |
1277 | # Omit some internal or obsolete options to make the list less imposing. | |
1278 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1279 | cat <<_ACEOF | |
6a7aa1a1 | 1280 | \`configure' configures systemtap 1.0 to adapt to many kinds of systems. |
2f1a1aea FCE |
1281 | |
1282 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1283 | ||
1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1285 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1286 | ||
1287 | Defaults for the options are specified in brackets. | |
1288 | ||
1289 | Configuration: | |
1290 | -h, --help display this help and exit | |
1291 | --help=short display options specific to this package | |
1292 | --help=recursive display the short help of all the included packages | |
1293 | -V, --version display version information and exit | |
1294 | -q, --quiet, --silent do not print \`checking...' messages | |
1295 | --cache-file=FILE cache test results in FILE [disabled] | |
1296 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1297 | -n, --no-create do not create output files | |
1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1299 | ||
2f1a1aea FCE |
1300 | Installation directories: |
1301 | --prefix=PREFIX install architecture-independent files in PREFIX | |
562d60b0 | 1302 | [$ac_default_prefix] |
2f1a1aea | 1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
562d60b0 | 1304 | [PREFIX] |
2f1a1aea FCE |
1305 | |
1306 | By default, \`make install' will install all the files in | |
1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1309 | for instance \`--prefix=\$HOME'. | |
1310 | ||
1311 | For better control, use the options below. | |
1312 | ||
1313 | Fine tuning of the installation directories: | |
562d60b0 DB |
1314 | --bindir=DIR user executables [EPREFIX/bin] |
1315 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1316 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1320 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1321 | --includedir=DIR C header files [PREFIX/include] | |
1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1325 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1327 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1329 | --htmldir=DIR html documentation [DOCDIR] | |
1330 | --dvidir=DIR dvi documentation [DOCDIR] | |
1331 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1332 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1333 | _ACEOF |
1334 | ||
1335 | cat <<\_ACEOF | |
1336 | ||
1337 | Program names: | |
1338 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1339 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1340 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1341 | _ACEOF | |
1342 | fi | |
1343 | ||
1344 | if test -n "$ac_init_help"; then | |
1345 | case $ac_init_help in | |
6a7aa1a1 | 1346 | short | recursive ) echo "Configuration of systemtap 1.0:";; |
2f1a1aea FCE |
1347 | esac |
1348 | cat <<\_ACEOF | |
1349 | ||
1350 | Optional Features: | |
1351 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1352 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1353 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1354 | (and sometimes confusing) to the casual installer | |
1355 | --disable-dependency-tracking speeds up one-time build | |
1356 | --enable-dependency-tracking do not reject slow dependency extractors | |
e8f3c2c2 DS |
1357 | --enable-perfmon[=DIRECTORY] |
1358 | enable perfmon support (default is disabled). | |
1359 | Optional DIRECTORY is the path to the perfmon | |
1360 | installation (needed if installed in a non-standard | |
1361 | location). | |
44f75386 | 1362 | --enable-prologues make -P prologue-searching default |
bbfd8c1a | 1363 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1364 | --enable-pie enable position-independent-executable |
9921a199 | 1365 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1366 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1367 | --enable-crash[=DIRECTORY] |
1368 | enable crash extension (default is disabled). | |
1369 | Optional DIRECTORY is the path to the crash header | |
1370 | file (needed if installed in a non-standard | |
1371 | location). | |
465e8fbf FCE |
1372 | --enable-docs enable building documentation (default on if latex |
1373 | etc. found). | |
92aff3c7 WC |
1374 | --enable-refdocs enable building reference documentation (default on |
1375 | if xmlto etc. found and other documentation built). | |
6275c8d7 | 1376 | --enable-server enable building of stap-server/client (default on if |
19a0d4b6 | 1377 | nss etc. found). |
f8a49389 DS |
1378 | --enable-grapher enable building of grapher (default on if needed |
1379 | requirements are found). | |
2f1a1aea | 1380 | |
4d9087fc RM |
1381 | Optional Packages: |
1382 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1383 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
4a3c19da EM |
1384 | --with-rpm query rpm database for missing debuginfos [yes/no, |
1385 | def. auto=librpm.so] | |
4d9087fc RM |
1386 | --with-elfutils=DIRECTORY |
1387 | find elfutils source code in DIRECTORY | |
1388 | ||
2f1a1aea FCE |
1389 | Some influential environment variables: |
1390 | CC C compiler command | |
1391 | CFLAGS C compiler flags | |
1392 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1393 | nonstandard directory <lib dir> | |
7fbd9d09 FCE |
1394 | LIBS libraries to pass to the linker, e.g. -l<library> |
1395 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1396 | you have headers in a nonstandard directory <include dir> | |
2f1a1aea FCE |
1397 | CXX C++ compiler command |
1398 | CXXFLAGS C++ compiler flags | |
1399 | CPP C preprocessor | |
1087b83f | 1400 | PKG_CONFIG path to pkg-config utility |
c3f070d9 DS |
1401 | gtkmm_CFLAGS |
1402 | C compiler flags for gtkmm, overriding pkg-config | |
1403 | gtkmm_LIBS linker flags for gtkmm, overriding pkg-config | |
f8a49389 DS |
1404 | libglade_CFLAGS |
1405 | C compiler flags for libglade, overriding pkg-config | |
1406 | libglade_LIBS | |
1407 | linker flags for libglade, overriding pkg-config | |
1408 | CXXCPP C++ preprocessor | |
2ed04863 WC |
1409 | RPM_CFLAGS C compiler flags for RPM, overriding pkg-config |
1410 | RPM_LIBS linker flags for RPM, overriding pkg-config | |
2f1a1aea FCE |
1411 | |
1412 | Use these variables to override the choices made by `configure' or to help | |
1413 | it to find libraries and programs with nonstandard names/locations. | |
1414 | ||
1415 | Report bugs to <systemtap@sources.redhat.com>. | |
1416 | _ACEOF | |
7fbd9d09 | 1417 | ac_status=$? |
2f1a1aea FCE |
1418 | fi |
1419 | ||
1420 | if test "$ac_init_help" = "recursive"; then | |
1421 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1422 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
562d60b0 | 1423 | test -d "$ac_dir" || continue |
2f1a1aea FCE |
1424 | ac_builddir=. |
1425 | ||
7fbd9d09 FCE |
1426 | case "$ac_dir" in |
1427 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1428 | *) | |
562d60b0 | 1429 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7fbd9d09 | 1430 | # A ".." for each directory in $ac_dir_suffix. |
562d60b0 | 1431 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7fbd9d09 FCE |
1432 | case $ac_top_builddir_sub in |
1433 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1434 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1435 | esac ;; | |
1436 | esac | |
1437 | ac_abs_top_builddir=$ac_pwd | |
1438 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1439 | # for backward compatibility: | |
1440 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1441 | |
1442 | case $srcdir in | |
7fbd9d09 | 1443 | .) # We are building in place. |
2f1a1aea | 1444 | ac_srcdir=. |
7fbd9d09 FCE |
1445 | ac_top_srcdir=$ac_top_builddir_sub |
1446 | ac_abs_top_srcdir=$ac_pwd ;; | |
1447 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1448 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1449 | ac_top_srcdir=$srcdir |
1450 | ac_abs_top_srcdir=$srcdir ;; | |
1451 | *) # Relative name. | |
1452 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1453 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1454 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1455 | esac |
7fbd9d09 FCE |
1456 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1457 | ||
1458 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1459 | # Check for guested configure. | |
1460 | if test -f "$ac_srcdir/configure.gnu"; then | |
1461 | echo && | |
1462 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1463 | elif test -f "$ac_srcdir/configure"; then | |
1464 | echo && | |
1465 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1466 | else |
562d60b0 | 1467 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1468 | fi || ac_status=$? |
1469 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1470 | done |
1471 | fi | |
1472 | ||
7fbd9d09 | 1473 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1474 | if $ac_init_version; then |
1475 | cat <<\_ACEOF | |
6a7aa1a1 | 1476 | systemtap configure 1.0 |
562d60b0 | 1477 | generated by GNU Autoconf 2.61 |
2f1a1aea | 1478 | |
412e1bf7 | 1479 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
562d60b0 | 1480 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
2f1a1aea FCE |
1481 | This configure script is free software; the Free Software Foundation |
1482 | gives unlimited permission to copy, distribute and modify it. | |
1483 | _ACEOF | |
7fbd9d09 | 1484 | exit |
2f1a1aea | 1485 | fi |
7fbd9d09 | 1486 | cat >config.log <<_ACEOF |
2f1a1aea FCE |
1487 | This file contains any messages produced by compilers while |
1488 | running configure, to aid debugging if configure makes a mistake. | |
1489 | ||
6a7aa1a1 | 1490 | It was created by systemtap $as_me 1.0, which was |
562d60b0 | 1491 | generated by GNU Autoconf 2.61. Invocation command line was |
2f1a1aea FCE |
1492 | |
1493 | $ $0 $@ | |
1494 | ||
1495 | _ACEOF | |
7fbd9d09 | 1496 | exec 5>>config.log |
2f1a1aea FCE |
1497 | { |
1498 | cat <<_ASUNAME | |
1499 | ## --------- ## | |
1500 | ## Platform. ## | |
1501 | ## --------- ## | |
1502 | ||
1503 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1504 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1505 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1506 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1507 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1508 | ||
1509 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1510 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1511 | ||
1512 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1513 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1514 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7fbd9d09 | 1515 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2f1a1aea FCE |
1516 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1517 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1518 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1519 | ||
1520 | _ASUNAME | |
1521 | ||
1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1523 | for as_dir in $PATH | |
1524 | do | |
1525 | IFS=$as_save_IFS | |
1526 | test -z "$as_dir" && as_dir=. | |
562d60b0 | 1527 | echo "PATH: $as_dir" |
412e1bf7 | 1528 | done |
7fbd9d09 | 1529 | IFS=$as_save_IFS |
2f1a1aea FCE |
1530 | |
1531 | } >&5 | |
1532 | ||
1533 | cat >&5 <<_ACEOF | |
1534 | ||
1535 | ||
1536 | ## ----------- ## | |
1537 | ## Core tests. ## | |
1538 | ## ----------- ## | |
1539 | ||
1540 | _ACEOF | |
1541 | ||
1542 | ||
1543 | # Keep a trace of the command line. | |
1544 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1545 | # Strip out --silent because we don't want to record it for future runs. | |
1546 | # Also quote any args containing shell meta-characters. | |
1547 | # Make two passes to allow for proper duplicate-argument suppression. | |
1548 | ac_configure_args= | |
1549 | ac_configure_args0= | |
1550 | ac_configure_args1= | |
2f1a1aea FCE |
1551 | ac_must_keep_next=false |
1552 | for ac_pass in 1 2 | |
1553 | do | |
1554 | for ac_arg | |
1555 | do | |
1556 | case $ac_arg in | |
1557 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1558 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1559 | | -silent | --silent | --silen | --sile | --sil) | |
1560 | continue ;; | |
7fbd9d09 | 1561 | *\'*) |
562d60b0 | 1562 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1563 | esac |
1564 | case $ac_pass in | |
412e1bf7 | 1565 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
2f1a1aea | 1566 | 2) |
412e1bf7 | 1567 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
2f1a1aea FCE |
1568 | if test $ac_must_keep_next = true; then |
1569 | ac_must_keep_next=false # Got value, back to normal. | |
1570 | else | |
1571 | case $ac_arg in | |
1572 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1573 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1574 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1575 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1576 | case "$ac_configure_args0 " in | |
1577 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1578 | esac | |
1579 | ;; | |
1580 | -* ) ac_must_keep_next=true ;; | |
1581 | esac | |
1582 | fi | |
412e1bf7 | 1583 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2f1a1aea FCE |
1584 | ;; |
1585 | esac | |
1586 | done | |
1587 | done | |
412e1bf7 FCE |
1588 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1589 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
2f1a1aea FCE |
1590 | |
1591 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1592 | # config.log. We remove comments because anyway the quotes in there | |
1593 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
1594 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1595 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
1596 | trap 'exit_status=$? |
1597 | # Save into config.log some information that might help in debugging. | |
1598 | { | |
1599 | echo | |
1600 | ||
1601 | cat <<\_ASBOX | |
1602 | ## ---------------- ## | |
1603 | ## Cache variables. ## | |
1604 | ## ---------------- ## | |
1605 | _ASBOX | |
1606 | echo | |
1607 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
1608 | ( |
1609 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1610 | eval ac_val=\$$ac_var | |
1611 | case $ac_val in #( | |
1612 | *${as_nl}*) | |
1613 | case $ac_var in #( | |
562d60b0 DB |
1614 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1615 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7fbd9d09 FCE |
1616 | esac |
1617 | case $ac_var in #( | |
1618 | _ | IFS | as_nl) ;; #( | |
412e1bf7 | 1619 | *) $as_unset $ac_var ;; |
7fbd9d09 FCE |
1620 | esac ;; |
1621 | esac | |
1622 | done | |
2f1a1aea | 1623 | (set) 2>&1 | |
7fbd9d09 FCE |
1624 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1625 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 1626 | sed -n \ |
7fbd9d09 FCE |
1627 | "s/'\''/'\''\\\\'\'''\''/g; |
1628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1629 | ;; #( | |
2f1a1aea | 1630 | *) |
7fbd9d09 | 1631 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 1632 | ;; |
7fbd9d09 FCE |
1633 | esac | |
1634 | sort | |
1635 | ) | |
2f1a1aea FCE |
1636 | echo |
1637 | ||
1638 | cat <<\_ASBOX | |
1639 | ## ----------------- ## | |
1640 | ## Output variables. ## | |
1641 | ## ----------------- ## | |
1642 | _ASBOX | |
1643 | echo | |
1644 | for ac_var in $ac_subst_vars | |
1645 | do | |
7fbd9d09 FCE |
1646 | eval ac_val=\$$ac_var |
1647 | case $ac_val in | |
562d60b0 | 1648 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1649 | esac |
562d60b0 | 1650 | echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1651 | done | sort |
1652 | echo | |
1653 | ||
1654 | if test -n "$ac_subst_files"; then | |
1655 | cat <<\_ASBOX | |
7fbd9d09 FCE |
1656 | ## ------------------- ## |
1657 | ## File substitutions. ## | |
1658 | ## ------------------- ## | |
2f1a1aea FCE |
1659 | _ASBOX |
1660 | echo | |
1661 | for ac_var in $ac_subst_files | |
1662 | do | |
7fbd9d09 FCE |
1663 | eval ac_val=\$$ac_var |
1664 | case $ac_val in | |
562d60b0 | 1665 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1666 | esac |
562d60b0 | 1667 | echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1668 | done | sort |
1669 | echo | |
1670 | fi | |
1671 | ||
1672 | if test -s confdefs.h; then | |
1673 | cat <<\_ASBOX | |
1674 | ## ----------- ## | |
1675 | ## confdefs.h. ## | |
1676 | ## ----------- ## | |
1677 | _ASBOX | |
1678 | echo | |
7fbd9d09 | 1679 | cat confdefs.h |
2f1a1aea FCE |
1680 | echo |
1681 | fi | |
1682 | test "$ac_signal" != 0 && | |
562d60b0 DB |
1683 | echo "$as_me: caught signal $ac_signal" |
1684 | echo "$as_me: exit $exit_status" | |
2f1a1aea | 1685 | } >&5 |
7fbd9d09 FCE |
1686 | rm -f core *.core core.conftest.* && |
1687 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 1688 | exit $exit_status |
7fbd9d09 | 1689 | ' 0 |
2f1a1aea | 1690 | for ac_signal in 1 2 13 15; do |
412e1bf7 | 1691 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
2f1a1aea FCE |
1692 | done |
1693 | ac_signal=0 | |
1694 | ||
1695 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 1696 | rm -f -r conftest* confdefs.h |
2f1a1aea FCE |
1697 | |
1698 | # Predefined preprocessor variables. | |
1699 | ||
1700 | cat >>confdefs.h <<_ACEOF | |
1701 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1702 | _ACEOF | |
1703 | ||
412e1bf7 | 1704 | |
2f1a1aea FCE |
1705 | cat >>confdefs.h <<_ACEOF |
1706 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1707 | _ACEOF | |
1708 | ||
412e1bf7 | 1709 | |
2f1a1aea FCE |
1710 | cat >>confdefs.h <<_ACEOF |
1711 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1712 | _ACEOF | |
1713 | ||
412e1bf7 | 1714 | |
2f1a1aea FCE |
1715 | cat >>confdefs.h <<_ACEOF |
1716 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1717 | _ACEOF | |
1718 | ||
2f1a1aea | 1719 | |
4a3c19da | 1720 | cat >>confdefs.h <<_ACEOF |
412e1bf7 | 1721 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
4a3c19da EM |
1722 | _ACEOF |
1723 | ||
2f1a1aea FCE |
1724 | |
1725 | # Let the site file select an alternate cache file if it wants to. | |
562d60b0 | 1726 | # Prefer explicitly selected file to automatically selected ones. |
7fbd9d09 | 1727 | if test -n "$CONFIG_SITE"; then |
562d60b0 | 1728 | set x "$CONFIG_SITE" |
7fbd9d09 | 1729 | elif test "x$prefix" != xNONE; then |
562d60b0 | 1730 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7fbd9d09 | 1731 | else |
562d60b0 DB |
1732 | set x "$ac_default_prefix/share/config.site" \ |
1733 | "$ac_default_prefix/etc/config.site" | |
818ba2bc | 1734 | fi |
562d60b0 DB |
1735 | shift |
1736 | for ac_site_file | |
7fbd9d09 | 1737 | do |
2f1a1aea | 1738 | if test -r "$ac_site_file"; then |
562d60b0 DB |
1739 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1740 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
2f1a1aea FCE |
1741 | sed 's/^/| /' "$ac_site_file" >&5 |
1742 | . "$ac_site_file" | |
1743 | fi | |
1744 | done | |
1745 | ||
1746 | if test -r "$cache_file"; then | |
1747 | # Some versions of bash will fail to source /dev/null (special | |
1748 | # files actually), so we avoid doing that. | |
1749 | if test -f "$cache_file"; then | |
562d60b0 DB |
1750 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1751 | echo "$as_me: loading cache $cache_file" >&6;} | |
2f1a1aea | 1752 | case $cache_file in |
7fbd9d09 FCE |
1753 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1754 | *) . "./$cache_file";; | |
2f1a1aea FCE |
1755 | esac |
1756 | fi | |
1757 | else | |
562d60b0 DB |
1758 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1759 | echo "$as_me: creating cache $cache_file" >&6;} | |
2f1a1aea FCE |
1760 | >$cache_file |
1761 | fi | |
1762 | ||
1763 | # Check that the precious variables saved in the cache have kept the same | |
1764 | # value. | |
1765 | ac_cache_corrupted=false | |
7fbd9d09 | 1766 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
1767 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1768 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
1769 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1770 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
1771 | case $ac_old_set,$ac_new_set in |
1772 | set,) | |
562d60b0 DB |
1773 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1774 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2f1a1aea FCE |
1775 | ac_cache_corrupted=: ;; |
1776 | ,set) | |
562d60b0 DB |
1777 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1778 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2f1a1aea FCE |
1779 | ac_cache_corrupted=: ;; |
1780 | ,);; | |
1781 | *) | |
1782 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
562d60b0 DB |
1783 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1784 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1785 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1786 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1787 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1788 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1789 | ac_cache_corrupted=: | |
2f1a1aea FCE |
1790 | fi;; |
1791 | esac | |
1792 | # Pass precious variables to config.status. | |
1793 | if test "$ac_new_set" = set; then | |
1794 | case $ac_new_val in | |
562d60b0 | 1795 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
1796 | *) ac_arg=$ac_var=$ac_new_val ;; |
1797 | esac | |
1798 | case " $ac_configure_args " in | |
1799 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
412e1bf7 | 1800 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
4a3c19da EM |
1801 | esac |
1802 | fi | |
1803 | done | |
1804 | if $ac_cache_corrupted; then | |
562d60b0 DB |
1805 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1806 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1807 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1808 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
412e1bf7 | 1809 | { (exit 1); exit 1; }; } |
4a3c19da | 1810 | fi |
412e1bf7 FCE |
1811 | |
1812 | ||
1813 | ||
1814 | ||
1815 | ||
1816 | ||
1817 | ||
1818 | ||
1819 | ||
1820 | ||
1821 | ||
1822 | ||
1823 | ||
1824 | ||
1825 | ||
1826 | ||
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
2f1a1aea | 1835 | |
7fbd9d09 FCE |
1836 | ac_ext=c |
1837 | ac_cpp='$CPP $CPPFLAGS' | |
1838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
1841 | |
1842 | ||
1843 | ||
2f1a1aea | 1844 | |
562d60b0 | 1845 | am__api_version='1.10' |
10b20266 | 1846 | |
2f1a1aea | 1847 | ac_aux_dir= |
412e1bf7 FCE |
1848 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1849 | if test -f "$ac_dir/install-sh"; then | |
1850 | ac_aux_dir=$ac_dir | |
1851 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1852 | break | |
1853 | elif test -f "$ac_dir/install.sh"; then | |
1854 | ac_aux_dir=$ac_dir | |
1855 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1856 | break | |
1857 | elif test -f "$ac_dir/shtool"; then | |
1858 | ac_aux_dir=$ac_dir | |
1859 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1860 | break | |
1861 | fi | |
2f1a1aea FCE |
1862 | done |
1863 | if test -z "$ac_aux_dir"; then | |
562d60b0 DB |
1864 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1865 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
412e1bf7 | 1866 | { (exit 1); exit 1; }; } |
2f1a1aea | 1867 | fi |
7fbd9d09 FCE |
1868 | |
1869 | # These three variables are undocumented and unsupported, | |
1870 | # and are intended to be withdrawn in a future Autoconf release. | |
1871 | # They can cause serious problems if a builder's source tree is in a directory | |
1872 | # whose full name contains unusual characters. | |
1873 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1874 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1875 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1876 | ||
2f1a1aea FCE |
1877 | |
1878 | # Find a good install program. We prefer a C program (faster), | |
1879 | # so one script is as good as another. But avoid the broken or | |
1880 | # incompatible versions: | |
1881 | # SysV /etc/install, /usr/sbin/install | |
1882 | # SunOS /usr/etc/install | |
1883 | # IRIX /sbin/install | |
1884 | # AIX /bin/install | |
1885 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1886 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1887 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1888 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1889 | # OS/2's system install, which has a completely different semantic | |
1890 | # ./install, which can be erroneously created by make from ./install.sh. | |
562d60b0 DB |
1891 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1892 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
2f1a1aea | 1893 | if test -z "$INSTALL"; then |
412e1bf7 | 1894 | if test "${ac_cv_path_install+set}" = set; then |
562d60b0 | 1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
1896 | else |
1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1898 | for as_dir in $PATH | |
1899 | do | |
1900 | IFS=$as_save_IFS | |
1901 | test -z "$as_dir" && as_dir=. | |
412e1bf7 FCE |
1902 | # Account for people who put trailing slashes in PATH elements. |
1903 | case $as_dir/ in | |
1904 | ./ | .// | /cC/* | \ | |
2f1a1aea | 1905 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
412e1bf7 | 1906 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2f1a1aea FCE |
1907 | /usr/ucb/* ) ;; |
1908 | *) | |
1909 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1910 | # Don't use installbsd from OSF since it installs stuff as root | |
1911 | # by default. | |
1912 | for ac_prog in ginstall scoinst install; do | |
1913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 1914 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
1915 | if test $ac_prog = install && |
1916 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1917 | # AIX install. It has an incompatible calling convention. | |
1918 | : | |
1919 | elif test $ac_prog = install && | |
1920 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1921 | # program-specific install script used by HP pwplus--don't use. | |
1922 | : | |
1923 | else | |
562d60b0 DB |
1924 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1925 | break 3 | |
2f1a1aea FCE |
1926 | fi |
1927 | fi | |
1928 | done | |
1929 | done | |
1930 | ;; | |
1931 | esac | |
412e1bf7 | 1932 | done |
7fbd9d09 | 1933 | IFS=$as_save_IFS |
2f1a1aea FCE |
1934 | |
1935 | ||
1936 | fi | |
1937 | if test "${ac_cv_path_install+set}" = set; then | |
1938 | INSTALL=$ac_cv_path_install | |
1939 | else | |
7fbd9d09 FCE |
1940 | # As a last resort, use the slow shell script. Don't cache a |
1941 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 1942 | # break other packages using the cache if that directory is |
7fbd9d09 | 1943 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
1944 | INSTALL=$ac_install_sh |
1945 | fi | |
1946 | fi | |
562d60b0 DB |
1947 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1948 | echo "${ECHO_T}$INSTALL" >&6; } | |
2f1a1aea FCE |
1949 | |
1950 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1951 | # It thinks the first close brace ends the variable substitution. | |
1952 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1953 | ||
1954 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1955 | ||
1956 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1957 | ||
562d60b0 DB |
1958 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1959 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2f1a1aea FCE |
1960 | # Just in case |
1961 | sleep 1 | |
1962 | echo timestamp > conftest.file | |
1963 | # Do `set' in a subshell so we don't clobber the current shell's | |
1964 | # arguments. Must try -L first in case configure is actually a | |
1965 | # symlink; some systems play weird games with the mod time of symlinks | |
1966 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1967 | # directory). | |
1968 | if ( | |
562d60b0 | 1969 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2f1a1aea FCE |
1970 | if test "$*" = "X"; then |
1971 | # -L didn't work. | |
562d60b0 | 1972 | set X `ls -t $srcdir/configure conftest.file` |
2f1a1aea FCE |
1973 | fi |
1974 | rm -f conftest.file | |
1975 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1976 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1977 | ||
1978 | # If neither matched, then we have a broken ls. This can happen | |
1979 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1980 | # broken ls alias from the environment. This has actually | |
1981 | # happened. Such a system could not be considered "sane". | |
562d60b0 | 1982 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
412e1bf7 | 1983 | alias in your environment" >&5 |
562d60b0 | 1984 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
412e1bf7 FCE |
1985 | alias in your environment" >&2;} |
1986 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
1987 | fi |
1988 | ||
1989 | test "$2" = conftest.file | |
1990 | ) | |
1991 | then | |
1992 | # Ok. | |
1993 | : | |
1994 | else | |
562d60b0 | 1995 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
412e1bf7 | 1996 | Check your system clock" >&5 |
562d60b0 | 1997 | echo "$as_me: error: newly created file is older than distributed files! |
412e1bf7 FCE |
1998 | Check your system clock" >&2;} |
1999 | { (exit 1); exit 1; }; } | |
2f1a1aea | 2000 | fi |
562d60b0 DB |
2001 | { echo "$as_me:$LINENO: result: yes" >&5 |
2002 | echo "${ECHO_T}yes" >&6; } | |
2f1a1aea | 2003 | test "$program_prefix" != NONE && |
7fbd9d09 | 2004 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2005 | # Use a double $ so make ignores it. |
2006 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2007 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
562d60b0 | 2008 | # Double any \ or $. echo might interpret backslashes. |
2f1a1aea | 2009 | # By default was `s,x,x', remove it if useless. |
562d60b0 DB |
2010 | cat <<\_ACEOF >conftest.sed |
2011 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2012 | _ACEOF | |
2013 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2014 | rm -f conftest.sed | |
2f1a1aea FCE |
2015 | |
2016 | # expand $ac_aux_dir to an absolute path | |
2017 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2018 | ||
562d60b0 | 2019 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2f1a1aea FCE |
2020 | # Use eval to expand $SHELL |
2021 | if eval "$MISSING --run true"; then | |
2022 | am_missing_run="$MISSING --run " | |
2023 | else | |
2024 | am_missing_run= | |
562d60b0 DB |
2025 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2026 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
8d9ee48a JS |
2027 | fi |
2028 | ||
562d60b0 DB |
2029 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2030 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
7fbd9d09 | 2031 | if test -z "$MKDIR_P"; then |
412e1bf7 | 2032 | if test "${ac_cv_path_mkdir+set}" = set; then |
562d60b0 | 2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fbd9d09 FCE |
2034 | else |
2035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2036 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2037 | do | |
2038 | IFS=$as_save_IFS | |
2039 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2040 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 FCE |
2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
2042 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2043 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2044 | 'mkdir (GNU coreutils) '* | \ | |
2045 | 'mkdir (coreutils) '* | \ | |
2046 | 'mkdir (fileutils) '4.1*) | |
2047 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2048 | break 3;; | |
2049 | esac | |
2050 | done | |
2051 | done | |
412e1bf7 | 2052 | done |
7fbd9d09 FCE |
2053 | IFS=$as_save_IFS |
2054 | ||
2055 | fi | |
2056 | ||
2057 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2058 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2059 | else |
7fbd9d09 FCE |
2060 | # As a last resort, use the slow shell script. Don't cache a |
2061 | # value for MKDIR_P within a source directory, because that will | |
2062 | # break other packages using the cache if that directory is | |
2063 | # removed, or if the value is a relative name. | |
2064 | test -d ./--version && rmdir ./--version | |
2065 | MKDIR_P="$ac_install_sh -d" | |
2f1a1aea FCE |
2066 | fi |
2067 | fi | |
562d60b0 DB |
2068 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2069 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
7fbd9d09 FCE |
2070 | |
2071 | mkdir_p="$MKDIR_P" | |
2072 | case $mkdir_p in | |
2073 | [\\/$]* | ?:[\\/]*) ;; | |
2074 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2075 | esac | |
2f1a1aea FCE |
2076 | |
2077 | for ac_prog in gawk mawk nawk awk | |
2078 | do | |
2079 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2080 | set dummy $ac_prog; ac_word=$2 | |
562d60b0 DB |
2081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2083 | if test "${ac_cv_prog_AWK+set}" = set; then |
562d60b0 | 2084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2085 | else |
2086 | if test -n "$AWK"; then | |
2087 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2088 | else | |
2089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2090 | for as_dir in $PATH | |
2091 | do | |
2092 | IFS=$as_save_IFS | |
2093 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2094 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2096 | ac_cv_prog_AWK="$ac_prog" |
562d60b0 | 2097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2098 | break 2 |
2099 | fi | |
2100 | done | |
412e1bf7 | 2101 | done |
7fbd9d09 | 2102 | IFS=$as_save_IFS |
2f1a1aea FCE |
2103 | |
2104 | fi | |
2105 | fi | |
2106 | AWK=$ac_cv_prog_AWK | |
2107 | if test -n "$AWK"; then | |
562d60b0 DB |
2108 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2109 | echo "${ECHO_T}$AWK" >&6; } | |
2f1a1aea | 2110 | else |
562d60b0 DB |
2111 | { echo "$as_me:$LINENO: result: no" >&5 |
2112 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2113 | fi |
2114 | ||
7fbd9d09 | 2115 | |
2f1a1aea FCE |
2116 | test -n "$AWK" && break |
2117 | done | |
2118 | ||
562d60b0 DB |
2119 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2120 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2121 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
412e1bf7 | 2122 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2124 | else |
2125 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
2126 | SHELL = /bin/sh |
2127 | all: | |
2128 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2129 | _ACEOF | |
2130 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2131 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2132 | *@@@%%%=?*=@@@%%%*) | |
2133 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2134 | *) | |
2135 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2136 | esac | |
2137 | rm -f conftest.make | |
4a3c19da | 2138 | fi |
412e1bf7 | 2139 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
562d60b0 DB |
2140 | { echo "$as_me:$LINENO: result: yes" >&5 |
2141 | echo "${ECHO_T}yes" >&6; } | |
412e1bf7 | 2142 | SET_MAKE= |
4a3c19da | 2143 | else |
562d60b0 DB |
2144 | { echo "$as_me:$LINENO: result: no" >&5 |
2145 | echo "${ECHO_T}no" >&6; } | |
412e1bf7 | 2146 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
2147 | fi |
2148 | ||
412e1bf7 FCE |
2149 | rm -rf .tst 2>/dev/null |
2150 | mkdir .tst 2>/dev/null | |
2151 | if test -d .tst; then | |
2152 | am__leading_dot=. | |
4a3c19da | 2153 | else |
412e1bf7 | 2154 | am__leading_dot=_ |
2f1a1aea | 2155 | fi |
412e1bf7 | 2156 | rmdir .tst 2>/dev/null |
2f1a1aea | 2157 | |
412e1bf7 FCE |
2158 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2159 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2160 | # is not polluted with repeated "-I." | |
2161 | am__isrc=' -I$(srcdir)' | |
2162 | # test to see if srcdir already configured | |
2163 | if test -f $srcdir/config.status; then | |
562d60b0 DB |
2164 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2165 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
412e1bf7 FCE |
2166 | { (exit 1); exit 1; }; } |
2167 | fi | |
4a3c19da | 2168 | fi |
412e1bf7 FCE |
2169 | |
2170 | # test whether we have cygpath | |
2171 | if test -z "$CYGPATH_W"; then | |
2172 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2173 | CYGPATH_W='cygpath -w' | |
2174 | else | |
2175 | CYGPATH_W=echo | |
2176 | fi | |
2177 | fi | |
2178 | ||
2179 | ||
2180 | # Define the identity of the package. | |
2181 | PACKAGE='systemtap' | |
6a7aa1a1 | 2182 | VERSION='1.0' |
412e1bf7 FCE |
2183 | |
2184 | ||
2185 | cat >>confdefs.h <<_ACEOF | |
2186 | #define PACKAGE "$PACKAGE" | |
2187 | _ACEOF | |
2188 | ||
2189 | ||
2190 | cat >>confdefs.h <<_ACEOF | |
2191 | #define VERSION "$VERSION" | |
2192 | _ACEOF | |
2193 | ||
2194 | # Some tools Automake needs. | |
2195 | ||
2196 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2197 | ||
2198 | ||
2199 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2200 | ||
2201 | ||
8d9ee48a | 2202 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2f78bee0 | 2203 | |
8d9ee48a JS |
2204 | |
2205 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2206 | ||
2207 | ||
562d60b0 DB |
2208 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2209 | ||
2210 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2211 | ||
2212 | # Installed binaries are usually stripped using `strip' when the user | |
2213 | # run `make install-strip'. However `strip' might not be the right | |
2214 | # tool to use in cross-compilation environments, therefore Automake | |
2215 | # will honor the `STRIP' environment variable to overrule this program. | |
2216 | if test "$cross_compiling" != no; then | |
2217 | if test -n "$ac_tool_prefix"; then | |
2218 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2219 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2222 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2224 | else | |
2225 | if test -n "$STRIP"; then | |
2226 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2227 | else | |
2228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2229 | for as_dir in $PATH | |
2230 | do | |
2231 | IFS=$as_save_IFS | |
2232 | test -z "$as_dir" && as_dir=. | |
2233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2235 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2237 | break 2 | |
2238 | fi | |
2239 | done | |
2240 | done | |
2241 | IFS=$as_save_IFS | |
2242 | ||
2243 | fi | |
2244 | fi | |
2245 | STRIP=$ac_cv_prog_STRIP | |
2246 | if test -n "$STRIP"; then | |
2247 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2248 | echo "${ECHO_T}$STRIP" >&6; } | |
2249 | else | |
2250 | { echo "$as_me:$LINENO: result: no" >&5 | |
2251 | echo "${ECHO_T}no" >&6; } | |
2252 | fi | |
2253 | ||
2254 | ||
2255 | fi | |
2256 | if test -z "$ac_cv_prog_STRIP"; then | |
2257 | ac_ct_STRIP=$STRIP | |
2258 | # Extract the first word of "strip", so it can be a program name with args. | |
2259 | set dummy strip; ac_word=$2 | |
2260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2262 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2264 | else | |
2265 | if test -n "$ac_ct_STRIP"; then | |
2266 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2267 | else | |
2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2269 | for as_dir in $PATH | |
2270 | do | |
2271 | IFS=$as_save_IFS | |
2272 | test -z "$as_dir" && as_dir=. | |
2273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2275 | ac_cv_prog_ac_ct_STRIP="strip" | |
2276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2277 | break 2 | |
2278 | fi | |
2279 | done | |
2280 | done | |
2281 | IFS=$as_save_IFS | |
2282 | ||
2283 | fi | |
2284 | fi | |
2285 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2286 | if test -n "$ac_ct_STRIP"; then | |
2287 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2288 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2289 | else | |
2290 | { echo "$as_me:$LINENO: result: no" >&5 | |
2291 | echo "${ECHO_T}no" >&6; } | |
2292 | fi | |
2293 | ||
2294 | if test "x$ac_ct_STRIP" = x; then | |
2295 | STRIP=":" | |
2296 | else | |
2297 | case $cross_compiling:$ac_tool_warned in | |
2298 | yes:) | |
2299 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2300 | whose name does not start with the host triplet. If you think this | |
2301 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2302 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2303 | whose name does not start with the host triplet. If you think this | |
2304 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2305 | ac_tool_warned=yes ;; | |
2306 | esac | |
2307 | STRIP=$ac_ct_STRIP | |
2308 | fi | |
2309 | else | |
2310 | STRIP="$ac_cv_prog_STRIP" | |
2311 | fi | |
2312 | ||
2313 | fi | |
2314 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2f1a1aea | 2315 | |
2f1a1aea FCE |
2316 | # We need awk for the "check" target. The system "awk" is bad on |
2317 | # some platforms. | |
2318 | # Always define AMTAR for backward compatibility. | |
2319 | ||
2320 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2321 | ||
2322 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2323 | ||
2324 | ||
2325 | ||
2326 | ||
2327 | ||
562d60b0 DB |
2328 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2329 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
7fbd9d09 | 2330 | # Check whether --enable-maintainer-mode was given. |
412e1bf7 | 2331 | if test "${enable_maintainer_mode+set}" = set; then |
7fbd9d09 | 2332 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
2333 | else |
2334 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 2335 | fi |
2f1a1aea | 2336 | |
562d60b0 DB |
2337 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2338 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
7fbd9d09 | 2339 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
2340 | MAINTAINER_MODE_TRUE= |
2341 | MAINTAINER_MODE_FALSE='#' | |
2342 | else | |
2343 | MAINTAINER_MODE_TRUE='#' | |
2344 | MAINTAINER_MODE_FALSE= | |
2345 | fi | |
2346 | ||
2347 | MAINT=$MAINTAINER_MODE_TRUE | |
2348 | ||
2349 | ||
2350 | ||
618a8a63 JS |
2351 | |
2352 | ||
7fbd9d09 FCE |
2353 | mkdir_p="$MKDIR_P" |
2354 | case $mkdir_p in | |
2355 | [\\/$]* | ?:[\\/]*) ;; | |
2356 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2357 | esac | |
2358 | ||
98aab489 | 2359 | |
562d60b0 DB |
2360 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2361 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
2f1a1aea FCE |
2362 | LN_S=$as_ln_s |
2363 | if test "$LN_S" = "ln -s"; then | |
562d60b0 DB |
2364 | { echo "$as_me:$LINENO: result: yes" >&5 |
2365 | echo "${ECHO_T}yes" >&6; } | |
2f1a1aea | 2366 | else |
562d60b0 DB |
2367 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2368 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
2f1a1aea FCE |
2369 | fi |
2370 | ||
2371 | ac_ext=c | |
2372 | ac_cpp='$CPP $CPPFLAGS' | |
2373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2376 | if test -n "$ac_tool_prefix"; then | |
2377 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2378 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
562d60b0 DB |
2379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2381 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 2382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2383 | else |
2384 | if test -n "$CC"; then | |
2385 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2386 | else | |
2387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2388 | for as_dir in $PATH | |
2389 | do | |
2390 | IFS=$as_save_IFS | |
2391 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2392 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2394 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
562d60b0 | 2395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2396 | break 2 |
2397 | fi | |
2398 | done | |
412e1bf7 | 2399 | done |
7fbd9d09 | 2400 | IFS=$as_save_IFS |
2f1a1aea FCE |
2401 | |
2402 | fi | |
2403 | fi | |
2404 | CC=$ac_cv_prog_CC | |
2405 | if test -n "$CC"; then | |
562d60b0 DB |
2406 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2407 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 2408 | else |
562d60b0 DB |
2409 | { echo "$as_me:$LINENO: result: no" >&5 |
2410 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2411 | fi |
2412 | ||
7fbd9d09 | 2413 | |
2f1a1aea FCE |
2414 | fi |
2415 | if test -z "$ac_cv_prog_CC"; then | |
2416 | ac_ct_CC=$CC | |
2417 | # Extract the first word of "gcc", so it can be a program name with args. | |
2418 | set dummy gcc; ac_word=$2 | |
562d60b0 DB |
2419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2421 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
562d60b0 | 2422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2423 | else |
2424 | if test -n "$ac_ct_CC"; then | |
2425 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2426 | else | |
2427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2428 | for as_dir in $PATH | |
2429 | do | |
2430 | IFS=$as_save_IFS | |
2431 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2432 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2434 | ac_cv_prog_ac_ct_CC="gcc" |
562d60b0 | 2435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2436 | break 2 |
2437 | fi | |
2438 | done | |
412e1bf7 | 2439 | done |
7fbd9d09 | 2440 | IFS=$as_save_IFS |
2f1a1aea FCE |
2441 | |
2442 | fi | |
2443 | fi | |
2444 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2445 | if test -n "$ac_ct_CC"; then | |
562d60b0 DB |
2446 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2447 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2f1a1aea | 2448 | else |
562d60b0 DB |
2449 | { echo "$as_me:$LINENO: result: no" >&5 |
2450 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2451 | fi |
2452 | ||
7fbd9d09 FCE |
2453 | if test "x$ac_ct_CC" = x; then |
2454 | CC="" | |
2455 | else | |
2456 | case $cross_compiling:$ac_tool_warned in | |
2457 | yes:) | |
562d60b0 DB |
2458 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2459 | whose name does not start with the host triplet. If you think this | |
2460 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2461 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2462 | whose name does not start with the host triplet. If you think this | |
2463 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
2464 | ac_tool_warned=yes ;; |
2465 | esac | |
2466 | CC=$ac_ct_CC | |
2467 | fi | |
2f1a1aea FCE |
2468 | else |
2469 | CC="$ac_cv_prog_CC" | |
2470 | fi | |
2471 | ||
2472 | if test -z "$CC"; then | |
7fbd9d09 FCE |
2473 | if test -n "$ac_tool_prefix"; then |
2474 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 2475 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
562d60b0 DB |
2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2478 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2480 | else |
2481 | if test -n "$CC"; then | |
2482 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2483 | else | |
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2485 | for as_dir in $PATH | |
2486 | do | |
2487 | IFS=$as_save_IFS | |
2488 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2489 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2491 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
562d60b0 | 2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2493 | break 2 |
2494 | fi | |
2495 | done | |
412e1bf7 | 2496 | done |
7fbd9d09 | 2497 | IFS=$as_save_IFS |
2f1a1aea FCE |
2498 | |
2499 | fi | |
2500 | fi | |
2501 | CC=$ac_cv_prog_CC | |
2502 | if test -n "$CC"; then | |
562d60b0 DB |
2503 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2504 | echo "${ECHO_T}$CC" >&6; } | |
818ba2bc | 2505 | else |
562d60b0 DB |
2506 | { echo "$as_me:$LINENO: result: no" >&5 |
2507 | echo "${ECHO_T}no" >&6; } | |
818ba2bc MW |
2508 | fi |
2509 | ||
818ba2bc | 2510 | |
7fbd9d09 | 2511 | fi |
2f1a1aea FCE |
2512 | fi |
2513 | if test -z "$CC"; then | |
2514 | # Extract the first word of "cc", so it can be a program name with args. | |
2515 | set dummy cc; ac_word=$2 | |
562d60b0 DB |
2516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2518 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2520 | else |
2521 | if test -n "$CC"; then | |
2522 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2523 | else | |
2524 | ac_prog_rejected=no | |
2525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2526 | for as_dir in $PATH | |
2527 | do | |
2528 | IFS=$as_save_IFS | |
2529 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2530 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
2532 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2533 | ac_prog_rejected=yes | |
2534 | continue | |
2535 | fi | |
2536 | ac_cv_prog_CC="cc" | |
562d60b0 | 2537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2538 | break 2 |
2539 | fi | |
2540 | done | |
412e1bf7 | 2541 | done |
7fbd9d09 | 2542 | IFS=$as_save_IFS |
2f1a1aea FCE |
2543 | |
2544 | if test $ac_prog_rejected = yes; then | |
2545 | # We found a bogon in the path, so make sure we never use it. | |
2546 | set dummy $ac_cv_prog_CC | |
2547 | shift | |
2548 | if test $# != 0; then | |
2549 | # We chose a different compiler from the bogus one. | |
2550 | # However, it has the same basename, so the bogon will be chosen | |
2551 | # first if we set CC to just the basename; use the full file name. | |
2552 | shift | |
2553 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2554 | fi | |
2555 | fi | |
2556 | fi | |
2557 | fi | |
2558 | CC=$ac_cv_prog_CC | |
2559 | if test -n "$CC"; then | |
562d60b0 DB |
2560 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2561 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 2562 | else |
562d60b0 DB |
2563 | { echo "$as_me:$LINENO: result: no" >&5 |
2564 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2565 | fi |
2566 | ||
7fbd9d09 | 2567 | |
2f1a1aea FCE |
2568 | fi |
2569 | if test -z "$CC"; then | |
2570 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 2571 | for ac_prog in cl.exe |
2f1a1aea FCE |
2572 | do |
2573 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2574 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
562d60b0 DB |
2575 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2577 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2579 | else |
2580 | if test -n "$CC"; then | |
2581 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2582 | else | |
2583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2584 | for as_dir in $PATH | |
2585 | do | |
2586 | IFS=$as_save_IFS | |
2587 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2588 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2590 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
562d60b0 | 2591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2592 | break 2 |
2593 | fi | |
2594 | done | |
412e1bf7 | 2595 | done |
7fbd9d09 | 2596 | IFS=$as_save_IFS |
2f1a1aea FCE |
2597 | |
2598 | fi | |
2599 | fi | |
2600 | CC=$ac_cv_prog_CC | |
2601 | if test -n "$CC"; then | |
562d60b0 DB |
2602 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2603 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 2604 | else |
562d60b0 DB |
2605 | { echo "$as_me:$LINENO: result: no" >&5 |
2606 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2607 | fi |
2608 | ||
7fbd9d09 | 2609 | |
2f1a1aea FCE |
2610 | test -n "$CC" && break |
2611 | done | |
2612 | fi | |
2613 | if test -z "$CC"; then | |
2614 | ac_ct_CC=$CC | |
7fbd9d09 | 2615 | for ac_prog in cl.exe |
2f1a1aea FCE |
2616 | do |
2617 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2618 | set dummy $ac_prog; ac_word=$2 | |
562d60b0 DB |
2619 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 2621 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
562d60b0 | 2622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
2623 | else |
2624 | if test -n "$ac_ct_CC"; then | |
2625 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2626 | else | |
2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2628 | for as_dir in $PATH | |
2629 | do | |
2630 | IFS=$as_save_IFS | |
2631 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 2632 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2634 | ac_cv_prog_ac_ct_CC="$ac_prog" |
562d60b0 | 2635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2636 | break 2 |
2637 | fi | |
2638 | done | |
412e1bf7 | 2639 | done |
7fbd9d09 | 2640 | IFS=$as_save_IFS |
2f1a1aea FCE |
2641 | |
2642 | fi | |
2643 | fi | |
2644 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2645 | if test -n "$ac_ct_CC"; then | |
562d60b0 DB |
2646 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2647 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2f1a1aea | 2648 | else |
562d60b0 DB |
2649 | { echo "$as_me:$LINENO: result: no" >&5 |
2650 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
2651 | fi |
2652 | ||
7fbd9d09 | 2653 | |
2f1a1aea FCE |
2654 | test -n "$ac_ct_CC" && break |
2655 | done | |
2656 | ||
7fbd9d09 FCE |
2657 | if test "x$ac_ct_CC" = x; then |
2658 | CC="" | |
2659 | else | |
2660 | case $cross_compiling:$ac_tool_warned in | |
2661 | yes:) | |
562d60b0 DB |
2662 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2663 | whose name does not start with the host triplet. If you think this | |
2664 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2665 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2666 | whose name does not start with the host triplet. If you think this | |
2667 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
2668 | ac_tool_warned=yes ;; |
2669 | esac | |
2670 | CC=$ac_ct_CC | |
2671 | fi | |
2f1a1aea FCE |
2672 | fi |
2673 | ||
2674 | fi | |
2675 | ||
2676 | ||
562d60b0 | 2677 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
412e1bf7 | 2678 | See \`config.log' for more details." >&5 |
562d60b0 | 2679 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
412e1bf7 | 2680 | See \`config.log' for more details." >&2;} |
562d60b0 | 2681 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
2682 | |
2683 | # Provide some information about the compiler. | |
562d60b0 DB |
2684 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2685 | ac_compiler=`set X $ac_compile; echo $2` | |
412e1bf7 | 2686 | { (ac_try="$ac_compiler --version >&5" |
7fbd9d09 FCE |
2687 | case "(($ac_try" in |
2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2689 | *) ac_try_echo=$ac_try;; | |
2690 | esac | |
562d60b0 | 2691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 | 2692 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 2693 | ac_status=$? |
562d60b0 | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
2695 | (exit $ac_status); } |
2696 | { (ac_try="$ac_compiler -v >&5" | |
2697 | case "(($ac_try" in | |
2698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2699 | *) ac_try_echo=$ac_try;; | |
2700 | esac | |
562d60b0 | 2701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
2702 | (eval "$ac_compiler -v >&5") 2>&5 |
2703 | ac_status=$? | |
562d60b0 | 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
2705 | (exit $ac_status); } |
2706 | { (ac_try="$ac_compiler -V >&5" | |
2707 | case "(($ac_try" in | |
2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2709 | *) ac_try_echo=$ac_try;; | |
2710 | esac | |
562d60b0 | 2711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
2712 | (eval "$ac_compiler -V >&5") 2>&5 |
2713 | ac_status=$? | |
562d60b0 | 2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 2715 | (exit $ac_status); } |
2f1a1aea | 2716 | |
412e1bf7 FCE |
2717 | cat >conftest.$ac_ext <<_ACEOF |
2718 | /* confdefs.h. */ | |
2719 | _ACEOF | |
2720 | cat confdefs.h >>conftest.$ac_ext | |
2721 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 2722 | /* end confdefs.h. */ |
412e1bf7 | 2723 | |
2f1a1aea FCE |
2724 | int |
2725 | main () | |
2726 | { | |
2727 | ||
2728 | ; | |
2729 | return 0; | |
2730 | } | |
2731 | _ACEOF | |
2732 | ac_clean_files_save=$ac_clean_files | |
562d60b0 | 2733 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2f1a1aea FCE |
2734 | # Try to create an executable without -o first, disregard a.out. |
2735 | # It will help us diagnose broken compilers, and finding out an intuition | |
2736 | # of exeext. | |
562d60b0 DB |
2737 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2738 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2739 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2740 | # | |
2741 | # List of possible output files, starting from the most likely. | |
2742 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2743 | # only as a last resort. b.out is created by i960 compilers. | |
2744 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2745 | # | |
2746 | # The IRIX 6 linker writes into existing files which may not be | |
2747 | # executable, retaining their permissions. Remove them first so a | |
2748 | # subsequent execution test works. | |
7fbd9d09 FCE |
2749 | ac_rmfiles= |
2750 | for ac_file in $ac_files | |
2751 | do | |
2752 | case $ac_file in | |
562d60b0 | 2753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7fbd9d09 FCE |
2754 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2755 | esac | |
2756 | done | |
2757 | rm -f $ac_rmfiles | |
2758 | ||
412e1bf7 | 2759 | if { (ac_try="$ac_link_default" |
7fbd9d09 FCE |
2760 | case "(($ac_try" in |
2761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2762 | *) ac_try_echo=$ac_try;; | |
2763 | esac | |
562d60b0 | 2764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 2765 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 2766 | ac_status=$? |
562d60b0 | 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 2768 | (exit $ac_status); }; then |
7fbd9d09 FCE |
2769 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2770 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2771 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2772 | # so that the user can short-circuit this test for compilers unknown to | |
2773 | # Autoconf. | |
2774 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
2775 | do |
2776 | test -f "$ac_file" || continue | |
2777 | case $ac_file in | |
562d60b0 | 2778 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2f1a1aea FCE |
2779 | ;; |
2780 | [ab].out ) | |
2781 | # We found the default executable, but exeext='' is most | |
2782 | # certainly right. | |
2783 | break;; | |
2784 | *.* ) | |
412e1bf7 | 2785 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
2786 | then :; else |
2787 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2788 | fi | |
2789 | # We set ac_cv_exeext here because the later test for it is not | |
2790 | # safe: cross compilers may not add the suffix if given an `-o' | |
2791 | # argument, so we may need to know it at that point already. | |
2792 | # Even if this section looks crufty: it has the advantage of | |
2793 | # actually working. | |
2f1a1aea FCE |
2794 | break;; |
2795 | * ) | |
2796 | break;; | |
2797 | esac | |
2798 | done | |
7fbd9d09 FCE |
2799 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2800 | ||
2f1a1aea | 2801 | else |
7fbd9d09 FCE |
2802 | ac_file='' |
2803 | fi | |
412e1bf7 | 2804 | |
562d60b0 DB |
2805 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2806 | echo "${ECHO_T}$ac_file" >&6; } | |
412e1bf7 | 2807 | if test -z "$ac_file"; then |
562d60b0 | 2808 | echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
2809 | sed 's/^/| /' conftest.$ac_ext >&5 |
2810 | ||
562d60b0 | 2811 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
412e1bf7 | 2812 | See \`config.log' for more details." >&5 |
562d60b0 | 2813 | echo "$as_me: error: C compiler cannot create executables |
412e1bf7 | 2814 | See \`config.log' for more details." >&2;} |
562d60b0 | 2815 | { (exit 77); exit 77; }; } |
2f1a1aea | 2816 | fi |
412e1bf7 | 2817 | |
2f1a1aea | 2818 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 2819 | |
7fbd9d09 | 2820 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2821 | # the compiler is broken, or we cross compile. |
562d60b0 DB |
2822 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2823 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
412e1bf7 | 2824 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2f1a1aea FCE |
2825 | # If not cross compiling, check that we can run a simple program. |
2826 | if test "$cross_compiling" != yes; then | |
2827 | if { ac_try='./$ac_file' | |
412e1bf7 | 2828 | { (case "(($ac_try" in |
7fbd9d09 FCE |
2829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2830 | *) ac_try_echo=$ac_try;; | |
2831 | esac | |
562d60b0 | 2832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 2833 | (eval "$ac_try") 2>&5 |
2f1a1aea | 2834 | ac_status=$? |
562d60b0 | 2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 2836 | (exit $ac_status); }; }; then |
2f1a1aea FCE |
2837 | cross_compiling=no |
2838 | else | |
2839 | if test "$cross_compiling" = maybe; then | |
2840 | cross_compiling=yes | |
2841 | else | |
562d60b0 | 2842 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2f1a1aea | 2843 | If you meant to cross compile, use \`--host'. |
412e1bf7 | 2844 | See \`config.log' for more details." >&5 |
562d60b0 | 2845 | echo "$as_me: error: cannot run C compiled programs. |
412e1bf7 FCE |
2846 | If you meant to cross compile, use \`--host'. |
2847 | See \`config.log' for more details." >&2;} | |
562d60b0 | 2848 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
2849 | fi |
2850 | fi | |
2851 | fi | |
562d60b0 DB |
2852 | { echo "$as_me:$LINENO: result: yes" >&5 |
2853 | echo "${ECHO_T}yes" >&6; } | |
2f1a1aea | 2854 | |
562d60b0 | 2855 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 2856 | ac_clean_files=$ac_clean_files_save |
7fbd9d09 | 2857 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2858 | # the compiler is broken, or we cross compile. |
562d60b0 DB |
2859 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2860 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2861 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2862 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7fbd9d09 | 2863 | |
562d60b0 DB |
2864 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2865 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
412e1bf7 | 2866 | if { (ac_try="$ac_link" |
7fbd9d09 FCE |
2867 | case "(($ac_try" in |
2868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2869 | *) ac_try_echo=$ac_try;; | |
2870 | esac | |
562d60b0 | 2871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 2872 | (eval "$ac_link") 2>&5 |
2f1a1aea | 2873 | ac_status=$? |
562d60b0 | 2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 2875 | (exit $ac_status); }; then |
2f1a1aea FCE |
2876 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2877 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2878 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2879 | # `rm'. | |
2880 | for ac_file in conftest.exe conftest conftest.*; do | |
2881 | test -f "$ac_file" || continue | |
2882 | case $ac_file in | |
562d60b0 | 2883 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2f1a1aea | 2884 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
2885 | break;; |
2886 | * ) break;; | |
2887 | esac | |
2888 | done | |
2889 | else | |
562d60b0 | 2890 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
412e1bf7 | 2891 | See \`config.log' for more details." >&5 |
562d60b0 | 2892 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
412e1bf7 | 2893 | See \`config.log' for more details." >&2;} |
562d60b0 | 2894 | { (exit 1); exit 1; }; } |
2f1a1aea | 2895 | fi |
412e1bf7 | 2896 | |
2f1a1aea | 2897 | rm -f conftest$ac_cv_exeext |
562d60b0 DB |
2898 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2899 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2f1a1aea FCE |
2900 | |
2901 | rm -f conftest.$ac_ext | |
2902 | EXEEXT=$ac_cv_exeext | |
2903 | ac_exeext=$EXEEXT | |
562d60b0 DB |
2904 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2905 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
412e1bf7 | 2906 | if test "${ac_cv_objext+set}" = set; then |
562d60b0 | 2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 2908 | else |
412e1bf7 FCE |
2909 | cat >conftest.$ac_ext <<_ACEOF |
2910 | /* confdefs.h. */ | |
2911 | _ACEOF | |
2912 | cat confdefs.h >>conftest.$ac_ext | |
2913 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
2914 | /* end confdefs.h. */ |
2915 | ||
2916 | int | |
2917 | main () | |
2918 | { | |
2919 | ||
2920 | ; | |
2921 | return 0; | |
2922 | } | |
2923 | _ACEOF | |
2924 | rm -f conftest.o conftest.obj | |
412e1bf7 | 2925 | if { (ac_try="$ac_compile" |
7fbd9d09 FCE |
2926 | case "(($ac_try" in |
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2928 | *) ac_try_echo=$ac_try;; | |
2929 | esac | |
562d60b0 | 2930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 2931 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 2932 | ac_status=$? |
562d60b0 | 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 2934 | (exit $ac_status); }; then |
7fbd9d09 FCE |
2935 | for ac_file in conftest.o conftest.obj conftest.*; do |
2936 | test -f "$ac_file" || continue; | |
2f1a1aea | 2937 | case $ac_file in |
562d60b0 | 2938 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2f1a1aea FCE |
2939 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2940 | break;; | |
2941 | esac | |
2942 | done | |
2943 | else | |
562d60b0 | 2944 | echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
2945 | sed 's/^/| /' conftest.$ac_ext >&5 |
2946 | ||
562d60b0 | 2947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
412e1bf7 | 2948 | See \`config.log' for more details." >&5 |
562d60b0 | 2949 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
412e1bf7 | 2950 | See \`config.log' for more details." >&2;} |
562d60b0 | 2951 | { (exit 1); exit 1; }; } |
2f1a1aea | 2952 | fi |
412e1bf7 | 2953 | |
2f1a1aea FCE |
2954 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2955 | fi | |
562d60b0 DB |
2956 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2957 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2f1a1aea FCE |
2958 | OBJEXT=$ac_cv_objext |
2959 | ac_objext=$OBJEXT | |
562d60b0 DB |
2960 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2961 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
412e1bf7 | 2962 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
562d60b0 | 2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 2964 | else |
412e1bf7 FCE |
2965 | cat >conftest.$ac_ext <<_ACEOF |
2966 | /* confdefs.h. */ | |
2967 | _ACEOF | |
2968 | cat confdefs.h >>conftest.$ac_ext | |
2969 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
2970 | /* end confdefs.h. */ |
2971 | ||
2972 | int | |
2973 | main () | |
2974 | { | |
2975 | #ifndef __GNUC__ | |
2976 | choke me | |
2977 | #endif | |
2978 | ||
2979 | ; | |
2980 | return 0; | |
2981 | } | |
2982 | _ACEOF | |
412e1bf7 FCE |
2983 | rm -f conftest.$ac_objext |
2984 | if { (ac_try="$ac_compile" | |
2985 | case "(($ac_try" in | |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2987 | *) ac_try_echo=$ac_try;; | |
2988 | esac | |
562d60b0 | 2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
2990 | (eval "$ac_compile") 2>conftest.er1 |
2991 | ac_status=$? | |
2992 | grep -v '^ *+' conftest.er1 >conftest.err | |
2993 | rm -f conftest.er1 | |
2994 | cat conftest.err >&5 | |
562d60b0 | 2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
2996 | (exit $ac_status); } && { |
2997 | test -z "$ac_c_werror_flag" || | |
2998 | test ! -s conftest.err | |
2999 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3000 | ac_compiler_gnu=yes |
3001 | else | |
562d60b0 | 3002 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3003 | sed 's/^/| /' conftest.$ac_ext >&5 |
3004 | ||
3005 | ac_compiler_gnu=no | |
2f1a1aea | 3006 | fi |
412e1bf7 | 3007 | |
7fbd9d09 | 3008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3009 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3010 | ||
3011 | fi | |
562d60b0 DB |
3012 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3013 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3014 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2f1a1aea FCE |
3015 | ac_test_CFLAGS=${CFLAGS+set} |
3016 | ac_save_CFLAGS=$CFLAGS | |
562d60b0 DB |
3017 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3018 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
412e1bf7 | 3019 | if test "${ac_cv_prog_cc_g+set}" = set; then |
562d60b0 | 3020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 3021 | else |
7fbd9d09 FCE |
3022 | ac_save_c_werror_flag=$ac_c_werror_flag |
3023 | ac_c_werror_flag=yes | |
3024 | ac_cv_prog_cc_g=no | |
3025 | CFLAGS="-g" | |
412e1bf7 FCE |
3026 | cat >conftest.$ac_ext <<_ACEOF |
3027 | /* confdefs.h. */ | |
3028 | _ACEOF | |
3029 | cat confdefs.h >>conftest.$ac_ext | |
3030 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3031 | /* end confdefs.h. */ |
3032 | ||
3033 | int | |
3034 | main () | |
3035 | { | |
3036 | ||
3037 | ; | |
3038 | return 0; | |
3039 | } | |
3040 | _ACEOF | |
412e1bf7 FCE |
3041 | rm -f conftest.$ac_objext |
3042 | if { (ac_try="$ac_compile" | |
3043 | case "(($ac_try" in | |
3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3045 | *) ac_try_echo=$ac_try;; | |
3046 | esac | |
562d60b0 | 3047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3048 | (eval "$ac_compile") 2>conftest.er1 |
3049 | ac_status=$? | |
3050 | grep -v '^ *+' conftest.er1 >conftest.err | |
3051 | rm -f conftest.er1 | |
3052 | cat conftest.err >&5 | |
562d60b0 | 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3054 | (exit $ac_status); } && { |
3055 | test -z "$ac_c_werror_flag" || | |
3056 | test ! -s conftest.err | |
3057 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 FCE |
3058 | ac_cv_prog_cc_g=yes |
3059 | else | |
562d60b0 | 3060 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3061 | sed 's/^/| /' conftest.$ac_ext >&5 |
3062 | ||
3063 | CFLAGS="" | |
3064 | cat >conftest.$ac_ext <<_ACEOF | |
3065 | /* confdefs.h. */ | |
3066 | _ACEOF | |
3067 | cat confdefs.h >>conftest.$ac_ext | |
3068 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
3069 | /* end confdefs.h. */ |
3070 | ||
3071 | int | |
3072 | main () | |
3073 | { | |
3074 | ||
3075 | ; | |
3076 | return 0; | |
3077 | } | |
3078 | _ACEOF | |
412e1bf7 FCE |
3079 | rm -f conftest.$ac_objext |
3080 | if { (ac_try="$ac_compile" | |
3081 | case "(($ac_try" in | |
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | *) ac_try_echo=$ac_try;; | |
3084 | esac | |
562d60b0 | 3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3086 | (eval "$ac_compile") 2>conftest.er1 |
3087 | ac_status=$? | |
3088 | grep -v '^ *+' conftest.er1 >conftest.err | |
3089 | rm -f conftest.er1 | |
3090 | cat conftest.err >&5 | |
562d60b0 | 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3092 | (exit $ac_status); } && { |
3093 | test -z "$ac_c_werror_flag" || | |
3094 | test ! -s conftest.err | |
3095 | } && test -s conftest.$ac_objext; then | |
3096 | : | |
4a3c19da | 3097 | else |
562d60b0 | 3098 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3099 | sed 's/^/| /' conftest.$ac_ext >&5 |
3100 | ||
3101 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 3102 | CFLAGS="-g" |
412e1bf7 FCE |
3103 | cat >conftest.$ac_ext <<_ACEOF |
3104 | /* confdefs.h. */ | |
3105 | _ACEOF | |
3106 | cat confdefs.h >>conftest.$ac_ext | |
3107 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
3108 | /* end confdefs.h. */ |
3109 | ||
3110 | int | |
3111 | main () | |
3112 | { | |
3113 | ||
3114 | ; | |
3115 | return 0; | |
3116 | } | |
3117 | _ACEOF | |
412e1bf7 FCE |
3118 | rm -f conftest.$ac_objext |
3119 | if { (ac_try="$ac_compile" | |
3120 | case "(($ac_try" in | |
3121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3122 | *) ac_try_echo=$ac_try;; | |
3123 | esac | |
562d60b0 | 3124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3125 | (eval "$ac_compile") 2>conftest.er1 |
3126 | ac_status=$? | |
3127 | grep -v '^ *+' conftest.er1 >conftest.err | |
3128 | rm -f conftest.er1 | |
3129 | cat conftest.err >&5 | |
562d60b0 | 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3131 | (exit $ac_status); } && { |
3132 | test -z "$ac_c_werror_flag" || | |
3133 | test ! -s conftest.err | |
3134 | } && test -s conftest.$ac_objext; then | |
2f1a1aea | 3135 | ac_cv_prog_cc_g=yes |
412e1bf7 | 3136 | else |
562d60b0 | 3137 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
3139 | ||
3140 | ||
7fbd9d09 | 3141 | fi |
412e1bf7 | 3142 | |
7fbd9d09 | 3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 3144 | fi |
412e1bf7 | 3145 | |
7fbd9d09 FCE |
3146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3147 | fi | |
412e1bf7 | 3148 | |
7fbd9d09 FCE |
3149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3150 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3151 | fi |
562d60b0 DB |
3152 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3153 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2f1a1aea FCE |
3154 | if test "$ac_test_CFLAGS" = set; then |
3155 | CFLAGS=$ac_save_CFLAGS | |
3156 | elif test $ac_cv_prog_cc_g = yes; then | |
3157 | if test "$GCC" = yes; then | |
3158 | CFLAGS="-g -O2" | |
3159 | else | |
3160 | CFLAGS="-g" | |
3161 | fi | |
3162 | else | |
3163 | if test "$GCC" = yes; then | |
3164 | CFLAGS="-O2" | |
3165 | else | |
3166 | CFLAGS= | |
3167 | fi | |
3168 | fi | |
562d60b0 DB |
3169 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3170 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
412e1bf7 | 3171 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
562d60b0 | 3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 3173 | else |
7fbd9d09 | 3174 | ac_cv_prog_cc_c89=no |
2f1a1aea | 3175 | ac_save_CC=$CC |
412e1bf7 FCE |
3176 | cat >conftest.$ac_ext <<_ACEOF |
3177 | /* confdefs.h. */ | |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3181 | /* end confdefs.h. */ |
3182 | #include <stdarg.h> | |
3183 | #include <stdio.h> | |
3184 | #include <sys/types.h> | |
3185 | #include <sys/stat.h> | |
3186 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3187 | struct buf { int x; }; | |
3188 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3189 | static char *e (p, i) | |
3190 | char **p; | |
3191 | int i; | |
3192 | { | |
3193 | return p[i]; | |
3194 | } | |
3195 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3196 | { | |
3197 | char *s; | |
3198 | va_list v; | |
3199 | va_start (v,p); | |
3200 | s = g (p, va_arg (v,int)); | |
3201 | va_end (v); | |
3202 | return s; | |
3203 | } | |
3204 | ||
3205 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3206 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3207 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 3208 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3209 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3210 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 3211 | that's true only with -std. */ |
2f1a1aea FCE |
3212 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3213 | ||
7fbd9d09 FCE |
3214 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3215 | inside strings and character constants. */ | |
3216 | #define FOO(x) 'x' | |
3217 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3218 | ||
2f1a1aea FCE |
3219 | int test (int i, double x); |
3220 | struct s1 {int (*f) (int a);}; | |
3221 | struct s2 {int (*f) (double a);}; | |
3222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3223 | int argc; | |
3224 | char **argv; | |
3225 | int | |
3226 | main () | |
3227 | { | |
3228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3229 | ; | |
3230 | return 0; | |
3231 | } | |
3232 | _ACEOF | |
7fbd9d09 FCE |
3233 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3234 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3235 | do |
3236 | CC="$ac_save_CC $ac_arg" | |
412e1bf7 FCE |
3237 | rm -f conftest.$ac_objext |
3238 | if { (ac_try="$ac_compile" | |
3239 | case "(($ac_try" in | |
3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3241 | *) ac_try_echo=$ac_try;; | |
3242 | esac | |
562d60b0 | 3243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3244 | (eval "$ac_compile") 2>conftest.er1 |
3245 | ac_status=$? | |
3246 | grep -v '^ *+' conftest.er1 >conftest.err | |
3247 | rm -f conftest.er1 | |
3248 | cat conftest.err >&5 | |
562d60b0 | 3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3250 | (exit $ac_status); } && { |
3251 | test -z "$ac_c_werror_flag" || | |
3252 | test ! -s conftest.err | |
3253 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 | 3254 | ac_cv_prog_cc_c89=$ac_arg |
412e1bf7 | 3255 | else |
562d60b0 | 3256 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3257 | sed 's/^/| /' conftest.$ac_ext >&5 |
3258 | ||
3259 | ||
2f1a1aea | 3260 | fi |
412e1bf7 | 3261 | |
7fbd9d09 FCE |
3262 | rm -f core conftest.err conftest.$ac_objext |
3263 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3264 | done |
7fbd9d09 | 3265 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3266 | CC=$ac_save_CC |
3267 | ||
3268 | fi | |
7fbd9d09 FCE |
3269 | # AC_CACHE_VAL |
3270 | case "x$ac_cv_prog_cc_c89" in | |
3271 | x) | |
562d60b0 DB |
3272 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3273 | echo "${ECHO_T}none needed" >&6; } ;; | |
7fbd9d09 | 3274 | xno) |
562d60b0 DB |
3275 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3276 | echo "${ECHO_T}unsupported" >&6; } ;; | |
2f1a1aea | 3277 | *) |
7fbd9d09 | 3278 | CC="$CC $ac_cv_prog_cc_c89" |
562d60b0 DB |
3279 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3280 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2f1a1aea FCE |
3281 | esac |
3282 | ||
818ba2bc | 3283 | |
818ba2bc MW |
3284 | ac_ext=c |
3285 | ac_cpp='$CPP $CPPFLAGS' | |
3286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3289 | DEPDIR="${am__leading_dot}deps" | |
3290 | ||
7fbd9d09 | 3291 | ac_config_commands="$ac_config_commands depfiles" |
818ba2bc MW |
3292 | |
3293 | ||
3294 | am_make=${MAKE-make} | |
3295 | cat > confinc << 'END' | |
3296 | am__doit: | |
562d60b0 | 3297 | @echo done |
8ae7a94a FCE |
3298 | .PHONY: am__doit |
3299 | END | |
3300 | # If we don't find an include directive, just comment out the code. | |
562d60b0 DB |
3301 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3302 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
8ae7a94a FCE |
3303 | am__include="#" |
3304 | am__quote= | |
3305 | _am_result=none | |
3306 | # First try GNU make style include. | |
3307 | echo "include confinc" > confmf | |
562d60b0 DB |
3308 | # We grep out `Entering directory' and `Leaving directory' |
3309 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3310 | # In particular we don't look at `^make:' because GNU make might | |
3311 | # be invoked under some other name (usually "gmake"), in which | |
3312 | # case it prints its new name instead of `make'. | |
3313 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3314 | am__include=include | |
3315 | am__quote= | |
3316 | _am_result=GNU | |
3317 | fi | |
8ae7a94a FCE |
3318 | # Now try BSD make style include. |
3319 | if test "$am__include" = "#"; then | |
3320 | echo '.include "confinc"' > confmf | |
562d60b0 DB |
3321 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3322 | am__include=.include | |
3323 | am__quote="\"" | |
3324 | _am_result=BSD | |
3325 | fi | |
8ae7a94a | 3326 | fi |
2f1a1aea | 3327 | |
8ae7a94a | 3328 | |
562d60b0 DB |
3329 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3330 | echo "${ECHO_T}$_am_result" >&6; } | |
2f1a1aea FCE |
3331 | rm -f confinc confmf |
3332 | ||
7fbd9d09 | 3333 | # Check whether --enable-dependency-tracking was given. |
412e1bf7 | 3334 | if test "${enable_dependency_tracking+set}" = set; then |
7fbd9d09 FCE |
3335 | enableval=$enable_dependency_tracking; |
3336 | fi | |
2f1a1aea | 3337 | |
2f1a1aea FCE |
3338 | if test "x$enable_dependency_tracking" != xno; then |
3339 | am_depcomp="$ac_aux_dir/depcomp" | |
3340 | AMDEPBACKSLASH='\' | |
3341 | fi | |
7fbd9d09 | 3342 | if test "x$enable_dependency_tracking" != xno; then |
2f1a1aea FCE |
3343 | AMDEP_TRUE= |
3344 | AMDEP_FALSE='#' | |
3345 | else | |
3346 | AMDEP_TRUE='#' | |
3347 | AMDEP_FALSE= | |
3348 | fi | |
3349 | ||
3350 | ||
3351 | ||
2f1a1aea FCE |
3352 | depcc="$CC" am_compiler_list= |
3353 | ||
562d60b0 DB |
3354 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3355 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
412e1bf7 | 3356 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
562d60b0 | 3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
3358 | else |
3359 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3360 | # We make a subdir and do the tests there. Otherwise we can end up | |
3361 | # making bogus files that we don't know about and never remove. For | |
3362 | # instance it was reported that on HP-UX the gcc test will end up | |
3363 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3364 | # in D'. | |
3365 | mkdir conftest.dir | |
3366 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3367 | # using a relative directory. | |
3368 | cp "$am_depcomp" conftest.dir | |
3369 | cd conftest.dir | |
3370 | # We will build objects and dependencies in a subdirectory because | |
3371 | # it helps to detect inapplicable dependency modes. For instance | |
3372 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3373 | # side effect of compilation, but ICC will put the dependencies in | |
3374 | # the current directory while Tru64 will put them in the object | |
3375 | # directory. | |
3376 | mkdir sub | |
3377 | ||
3378 | am_cv_CC_dependencies_compiler_type=none | |
3379 | if test "$am_compiler_list" = ""; then | |
3380 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3381 | fi | |
3382 | for depmode in $am_compiler_list; do | |
3383 | # Setup a source with many dependencies, because some compilers | |
3384 | # like to wrap large dependency lists on column 80 (with \), and | |
3385 | # we should not choose a depcomp mode which is confused by this. | |
3386 | # | |
3387 | # We need to recreate these files for each test, as the compiler may | |
3388 | # overwrite some of them when testing with obscure command lines. | |
3389 | # This happens at least with the AIX C compiler. | |
3390 | : > sub/conftest.c | |
3391 | for i in 1 2 3 4 5 6; do | |
3392 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3393 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3394 | # Solaris 8's {/usr,}/bin/sh. | |
3395 | touch sub/conftst$i.h | |
3396 | done | |
3397 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3398 | ||
3399 | case $depmode in | |
3400 | nosideeffect) | |
3401 | # after this tag, mechanisms are not by side-effect, so they'll | |
3402 | # only be used when explicitly requested | |
3403 | if test "x$enable_dependency_tracking" = xyes; then | |
3404 | continue | |
3405 | else | |
3406 | break | |
3407 | fi | |
3408 | ;; | |
3409 | none) break ;; | |
3410 | esac | |
562d60b0 DB |
3411 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3412 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3413 | # handle `-M -o', and we need to detect this. | |
2f1a1aea | 3414 | if depmode=$depmode \ |
562d60b0 | 3415 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
2f1a1aea | 3416 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
562d60b0 | 3417 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
2f1a1aea | 3418 | >/dev/null 2>conftest.err && |
7fbd9d09 | 3419 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 3420 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
562d60b0 | 3421 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3422 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3423 | # icc doesn't choke on unknown options, it will just issue warnings | |
3424 | # or remarks (even with -Werror). So we grep stderr for any message | |
3425 | # that says an option was ignored or not supported. | |
3426 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3427 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3428 | # The diagnosis changed in icc 8.0: | |
3429 | # icc: Command line remark: option '-MP' not supported | |
3430 | if (grep 'ignoring option' conftest.err || | |
3431 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3432 | am_cv_CC_dependencies_compiler_type=$depmode | |
3433 | break | |
3434 | fi | |
3435 | fi | |
3436 | done | |
3437 | ||
3438 | cd .. | |
3439 | rm -rf conftest.dir | |
3440 | else | |
3441 | am_cv_CC_dependencies_compiler_type=none | |
3442 | fi | |
3443 | ||
3444 | fi | |
562d60b0 DB |
3445 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3446 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
3447 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3448 | ||
7fbd9d09 | 3449 | if |
2f1a1aea FCE |
3450 | test "x$enable_dependency_tracking" != xno \ |
3451 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3452 | am__fastdepCC_TRUE= | |
3453 | am__fastdepCC_FALSE='#' | |
3454 | else | |
3455 | am__fastdepCC_TRUE='#' | |
3456 | am__fastdepCC_FALSE= | |
3457 | fi | |
3458 | ||
3459 | ||
7fbd9d09 | 3460 | ac_ext=cpp |
2f1a1aea FCE |
3461 | ac_cpp='$CXXCPP $CPPFLAGS' |
3462 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3463 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3464 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7fbd9d09 FCE |
3465 | if test -z "$CXX"; then |
3466 | if test -n "$CCC"; then | |
3467 | CXX=$CCC | |
3468 | else | |
3469 | if test -n "$ac_tool_prefix"; then | |
3470 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2f1a1aea FCE |
3471 | do |
3472 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3473 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
562d60b0 DB |
3474 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 3476 | if test "${ac_cv_prog_CXX+set}" = set; then |
562d60b0 | 3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
3478 | else |
3479 | if test -n "$CXX"; then | |
3480 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3481 | else | |
3482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3483 | for as_dir in $PATH | |
3484 | do | |
3485 | IFS=$as_save_IFS | |
3486 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 3487 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3489 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
562d60b0 | 3490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3491 | break 2 |
3492 | fi | |
3493 | done | |
412e1bf7 | 3494 | done |
7fbd9d09 | 3495 | IFS=$as_save_IFS |
2f1a1aea FCE |
3496 | |
3497 | fi | |
3498 | fi | |
3499 | CXX=$ac_cv_prog_CXX | |
3500 | if test -n "$CXX"; then | |
562d60b0 DB |
3501 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
3502 | echo "${ECHO_T}$CXX" >&6; } | |
2f1a1aea | 3503 | else |
562d60b0 DB |
3504 | { echo "$as_me:$LINENO: result: no" >&5 |
3505 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
3506 | fi |
3507 | ||
7fbd9d09 | 3508 | |
2f1a1aea FCE |
3509 | test -n "$CXX" && break |
3510 | done | |
3511 | fi | |
3512 | if test -z "$CXX"; then | |
3513 | ac_ct_CXX=$CXX | |
7fbd9d09 | 3514 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2f1a1aea FCE |
3515 | do |
3516 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3517 | set dummy $ac_prog; ac_word=$2 | |
562d60b0 DB |
3518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 3520 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
562d60b0 | 3521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
3522 | else |
3523 | if test -n "$ac_ct_CXX"; then | |
3524 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3525 | else | |
3526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3527 | for as_dir in $PATH | |
3528 | do | |
3529 | IFS=$as_save_IFS | |
3530 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 3531 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3533 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
562d60b0 | 3534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3535 | break 2 |
3536 | fi | |
3537 | done | |
412e1bf7 | 3538 | done |
7fbd9d09 | 3539 | IFS=$as_save_IFS |
2f1a1aea FCE |
3540 | |
3541 | fi | |
3542 | fi | |
3543 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3544 | if test -n "$ac_ct_CXX"; then | |
562d60b0 DB |
3545 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3546 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
2f1a1aea | 3547 | else |
562d60b0 DB |
3548 | { echo "$as_me:$LINENO: result: no" >&5 |
3549 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
3550 | fi |
3551 | ||
7fbd9d09 | 3552 | |
2f1a1aea FCE |
3553 | test -n "$ac_ct_CXX" && break |
3554 | done | |
2f1a1aea | 3555 | |
7fbd9d09 FCE |
3556 | if test "x$ac_ct_CXX" = x; then |
3557 | CXX="g++" | |
3558 | else | |
3559 | case $cross_compiling:$ac_tool_warned in | |
3560 | yes:) | |
562d60b0 DB |
3561 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3562 | whose name does not start with the host triplet. If you think this | |
3563 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3564 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3565 | whose name does not start with the host triplet. If you think this | |
3566 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
3567 | ac_tool_warned=yes ;; |
3568 | esac | |
3569 | CXX=$ac_ct_CXX | |
3570 | fi | |
2f1a1aea FCE |
3571 | fi |
3572 | ||
7fbd9d09 FCE |
3573 | fi |
3574 | fi | |
2f1a1aea | 3575 | # Provide some information about the compiler. |
562d60b0 DB |
3576 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3577 | ac_compiler=`set X $ac_compile; echo $2` | |
412e1bf7 | 3578 | { (ac_try="$ac_compiler --version >&5" |
7fbd9d09 FCE |
3579 | case "(($ac_try" in |
3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3581 | *) ac_try_echo=$ac_try;; | |
3582 | esac | |
562d60b0 | 3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 | 3584 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 3585 | ac_status=$? |
562d60b0 | 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3587 | (exit $ac_status); } |
3588 | { (ac_try="$ac_compiler -v >&5" | |
3589 | case "(($ac_try" in | |
3590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3591 | *) ac_try_echo=$ac_try;; | |
3592 | esac | |
562d60b0 | 3593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3594 | (eval "$ac_compiler -v >&5") 2>&5 |
3595 | ac_status=$? | |
562d60b0 | 3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3597 | (exit $ac_status); } |
3598 | { (ac_try="$ac_compiler -V >&5" | |
3599 | case "(($ac_try" in | |
3600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3601 | *) ac_try_echo=$ac_try;; | |
3602 | esac | |
562d60b0 | 3603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3604 | (eval "$ac_compiler -V >&5") 2>&5 |
3605 | ac_status=$? | |
562d60b0 | 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 3607 | (exit $ac_status); } |
2f1a1aea | 3608 | |
562d60b0 DB |
3609 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3610 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
412e1bf7 | 3611 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
562d60b0 | 3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 3613 | else |
412e1bf7 FCE |
3614 | cat >conftest.$ac_ext <<_ACEOF |
3615 | /* confdefs.h. */ | |
3616 | _ACEOF | |
3617 | cat confdefs.h >>conftest.$ac_ext | |
3618 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3619 | /* end confdefs.h. */ |
3620 | ||
3621 | int | |
3622 | main () | |
3623 | { | |
3624 | #ifndef __GNUC__ | |
3625 | choke me | |
3626 | #endif | |
3627 | ||
3628 | ; | |
3629 | return 0; | |
3630 | } | |
3631 | _ACEOF | |
412e1bf7 FCE |
3632 | rm -f conftest.$ac_objext |
3633 | if { (ac_try="$ac_compile" | |
3634 | case "(($ac_try" in | |
3635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3636 | *) ac_try_echo=$ac_try;; | |
3637 | esac | |
562d60b0 | 3638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3639 | (eval "$ac_compile") 2>conftest.er1 |
3640 | ac_status=$? | |
3641 | grep -v '^ *+' conftest.er1 >conftest.err | |
3642 | rm -f conftest.er1 | |
3643 | cat conftest.err >&5 | |
562d60b0 | 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3645 | (exit $ac_status); } && { |
3646 | test -z "$ac_cxx_werror_flag" || | |
3647 | test ! -s conftest.err | |
3648 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3649 | ac_compiler_gnu=yes |
3650 | else | |
562d60b0 | 3651 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3652 | sed 's/^/| /' conftest.$ac_ext >&5 |
3653 | ||
3654 | ac_compiler_gnu=no | |
2f1a1aea | 3655 | fi |
412e1bf7 | 3656 | |
7fbd9d09 | 3657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3658 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3659 | ||
3660 | fi | |
562d60b0 DB |
3661 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3662 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
3663 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2f1a1aea FCE |
3664 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3665 | ac_save_CXXFLAGS=$CXXFLAGS | |
562d60b0 DB |
3666 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3667 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
412e1bf7 | 3668 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
562d60b0 | 3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 3670 | else |
7fbd9d09 FCE |
3671 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3672 | ac_cxx_werror_flag=yes | |
3673 | ac_cv_prog_cxx_g=no | |
3674 | CXXFLAGS="-g" | |
412e1bf7 FCE |
3675 | cat >conftest.$ac_ext <<_ACEOF |
3676 | /* confdefs.h. */ | |
3677 | _ACEOF | |
3678 | cat confdefs.h >>conftest.$ac_ext | |
3679 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3680 | /* end confdefs.h. */ |
3681 | ||
3682 | int | |
3683 | main () | |
3684 | { | |
3685 | ||
3686 | ; | |
3687 | return 0; | |
3688 | } | |
3689 | _ACEOF | |
412e1bf7 FCE |
3690 | rm -f conftest.$ac_objext |
3691 | if { (ac_try="$ac_compile" | |
3692 | case "(($ac_try" in | |
3693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3694 | *) ac_try_echo=$ac_try;; | |
3695 | esac | |
562d60b0 | 3696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3697 | (eval "$ac_compile") 2>conftest.er1 |
3698 | ac_status=$? | |
3699 | grep -v '^ *+' conftest.er1 >conftest.err | |
3700 | rm -f conftest.er1 | |
3701 | cat conftest.err >&5 | |
562d60b0 | 3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3703 | (exit $ac_status); } && { |
3704 | test -z "$ac_cxx_werror_flag" || | |
3705 | test ! -s conftest.err | |
3706 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3707 | ac_cv_prog_cxx_g=yes |
3708 | else | |
562d60b0 | 3709 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3710 | sed 's/^/| /' conftest.$ac_ext >&5 |
3711 | ||
3712 | CXXFLAGS="" | |
3713 | cat >conftest.$ac_ext <<_ACEOF | |
3714 | /* confdefs.h. */ | |
3715 | _ACEOF | |
3716 | cat confdefs.h >>conftest.$ac_ext | |
3717 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 3718 | /* end confdefs.h. */ |
7fbd9d09 | 3719 | |
2f1a1aea FCE |
3720 | int |
3721 | main () | |
3722 | { | |
7fbd9d09 | 3723 | |
2f1a1aea FCE |
3724 | ; |
3725 | return 0; | |
3726 | } | |
3727 | _ACEOF | |
412e1bf7 FCE |
3728 | rm -f conftest.$ac_objext |
3729 | if { (ac_try="$ac_compile" | |
3730 | case "(($ac_try" in | |
3731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3732 | *) ac_try_echo=$ac_try;; | |
3733 | esac | |
562d60b0 | 3734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3735 | (eval "$ac_compile") 2>conftest.er1 |
3736 | ac_status=$? | |
3737 | grep -v '^ *+' conftest.er1 >conftest.err | |
3738 | rm -f conftest.er1 | |
3739 | cat conftest.err >&5 | |
562d60b0 | 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3741 | (exit $ac_status); } && { |
3742 | test -z "$ac_cxx_werror_flag" || | |
3743 | test ! -s conftest.err | |
3744 | } && test -s conftest.$ac_objext; then | |
3745 | : | |
4a3c19da | 3746 | else |
562d60b0 | 3747 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3748 | sed 's/^/| /' conftest.$ac_ext >&5 |
3749 | ||
3750 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
7fbd9d09 | 3751 | CXXFLAGS="-g" |
412e1bf7 FCE |
3752 | cat >conftest.$ac_ext <<_ACEOF |
3753 | /* confdefs.h. */ | |
3754 | _ACEOF | |
3755 | cat confdefs.h >>conftest.$ac_ext | |
3756 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 3757 | /* end confdefs.h. */ |
7fbd9d09 | 3758 | |
2f1a1aea FCE |
3759 | int |
3760 | main () | |
3761 | { | |
7fbd9d09 | 3762 | |
2f1a1aea FCE |
3763 | ; |
3764 | return 0; | |
3765 | } | |
4a3c19da | 3766 | _ACEOF |
412e1bf7 FCE |
3767 | rm -f conftest.$ac_objext |
3768 | if { (ac_try="$ac_compile" | |
3769 | case "(($ac_try" in | |
3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 | *) ac_try_echo=$ac_try;; | |
3772 | esac | |
562d60b0 | 3773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3774 | (eval "$ac_compile") 2>conftest.er1 |
3775 | ac_status=$? | |
3776 | grep -v '^ *+' conftest.er1 >conftest.err | |
3777 | rm -f conftest.er1 | |
3778 | cat conftest.err >&5 | |
562d60b0 | 3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3780 | (exit $ac_status); } && { |
3781 | test -z "$ac_cxx_werror_flag" || | |
3782 | test ! -s conftest.err | |
3783 | } && test -s conftest.$ac_objext; then | |
4a3c19da | 3784 | ac_cv_prog_cxx_g=yes |
412e1bf7 | 3785 | else |
562d60b0 | 3786 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
3788 | ||
3789 | ||
70d28673 | 3790 | fi |
412e1bf7 | 3791 | |
7fbd9d09 FCE |
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3793 | fi | |
412e1bf7 | 3794 | |
7fbd9d09 | 3795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 3796 | fi |
412e1bf7 | 3797 | |
7fbd9d09 FCE |
3798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3799 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3800 | fi | |
562d60b0 DB |
3801 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3802 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
7fbd9d09 FCE |
3803 | if test "$ac_test_CXXFLAGS" = set; then |
3804 | CXXFLAGS=$ac_save_CXXFLAGS | |
3805 | elif test $ac_cv_prog_cxx_g = yes; then | |
3806 | if test "$GXX" = yes; then | |
3807 | CXXFLAGS="-g -O2" | |
3808 | else | |
3809 | CXXFLAGS="-g" | |
3810 | fi | |
3811 | else | |
3812 | if test "$GXX" = yes; then | |
3813 | CXXFLAGS="-O2" | |
3814 | else | |
3815 | CXXFLAGS= | |
3816 | fi | |
3817 | fi | |
2f1a1aea FCE |
3818 | ac_ext=c |
3819 | ac_cpp='$CPP $CPPFLAGS' | |
3820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3823 | ||
3824 | depcc="$CXX" am_compiler_list= | |
3825 | ||
562d60b0 DB |
3826 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3827 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
412e1bf7 | 3828 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
562d60b0 | 3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
3830 | else |
3831 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3832 | # We make a subdir and do the tests there. Otherwise we can end up | |
3833 | # making bogus files that we don't know about and never remove. For | |
3834 | # instance it was reported that on HP-UX the gcc test will end up | |
3835 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3836 | # in D'. | |
3837 | mkdir conftest.dir | |
3838 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3839 | # using a relative directory. | |
3840 | cp "$am_depcomp" conftest.dir | |
3841 | cd conftest.dir | |
3842 | # We will build objects and dependencies in a subdirectory because | |
3843 | # it helps to detect inapplicable dependency modes. For instance | |
3844 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3845 | # side effect of compilation, but ICC will put the dependencies in | |
3846 | # the current directory while Tru64 will put them in the object | |
3847 | # directory. | |
3848 | mkdir sub | |
3849 | ||
3850 | am_cv_CXX_dependencies_compiler_type=none | |
3851 | if test "$am_compiler_list" = ""; then | |
3852 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3853 | fi | |
3854 | for depmode in $am_compiler_list; do | |
3855 | # Setup a source with many dependencies, because some compilers | |
3856 | # like to wrap large dependency lists on column 80 (with \), and | |
3857 | # we should not choose a depcomp mode which is confused by this. | |
3858 | # | |
3859 | # We need to recreate these files for each test, as the compiler may | |
3860 | # overwrite some of them when testing with obscure command lines. | |
3861 | # This happens at least with the AIX C compiler. | |
3862 | : > sub/conftest.c | |
3863 | for i in 1 2 3 4 5 6; do | |
3864 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3865 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3866 | # Solaris 8's {/usr,}/bin/sh. | |
3867 | touch sub/conftst$i.h | |
3868 | done | |
3869 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3870 | ||
3871 | case $depmode in | |
3872 | nosideeffect) | |
3873 | # after this tag, mechanisms are not by side-effect, so they'll | |
3874 | # only be used when explicitly requested | |
3875 | if test "x$enable_dependency_tracking" = xyes; then | |
3876 | continue | |
3877 | else | |
3878 | break | |
3879 | fi | |
3880 | ;; | |
3881 | none) break ;; | |
3882 | esac | |
562d60b0 DB |
3883 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3884 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3885 | # handle `-M -o', and we need to detect this. | |
2f1a1aea | 3886 | if depmode=$depmode \ |
562d60b0 | 3887 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
2f1a1aea | 3888 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
562d60b0 | 3889 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
2f1a1aea | 3890 | >/dev/null 2>conftest.err && |
7fbd9d09 | 3891 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 3892 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
562d60b0 | 3893 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3894 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3895 | # icc doesn't choke on unknown options, it will just issue warnings | |
3896 | # or remarks (even with -Werror). So we grep stderr for any message | |
3897 | # that says an option was ignored or not supported. | |
3898 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3899 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3900 | # The diagnosis changed in icc 8.0: | |
3901 | # icc: Command line remark: option '-MP' not supported | |
3902 | if (grep 'ignoring option' conftest.err || | |
3903 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3904 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3905 | break | |
3906 | fi | |
3907 | fi | |
3908 | done | |
3909 | ||
3910 | cd .. | |
3911 | rm -rf conftest.dir | |
3912 | else | |
3913 | am_cv_CXX_dependencies_compiler_type=none | |
3914 | fi | |
3915 | ||
3916 | fi | |
562d60b0 DB |
3917 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3918 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
3919 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
3920 | ||
7fbd9d09 | 3921 | if |
2f1a1aea FCE |
3922 | test "x$enable_dependency_tracking" != xno \ |
3923 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3924 | am__fastdepCXX_TRUE= | |
3925 | am__fastdepCXX_FALSE='#' | |
3926 | else | |
3927 | am__fastdepCXX_TRUE='#' | |
3928 | am__fastdepCXX_FALSE= | |
3929 | fi | |
3930 | ||
3931 | ||
3932 | ac_ext=c | |
3933 | ac_cpp='$CPP $CPPFLAGS' | |
3934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
562d60b0 DB |
3937 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3938 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
2f1a1aea FCE |
3939 | # On Suns, sometimes $CPP names a directory. |
3940 | if test -n "$CPP" && test -d "$CPP"; then | |
3941 | CPP= | |
3942 | fi | |
3943 | if test -z "$CPP"; then | |
412e1bf7 | 3944 | if test "${ac_cv_prog_CPP+set}" = set; then |
562d60b0 | 3945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
3946 | else |
3947 | # Double quotes because CPP needs to be expanded | |
3948 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3949 | do | |
3950 | ac_preproc_ok=false | |
3951 | for ac_c_preproc_warn_flag in '' yes | |
3952 | do | |
3953 | # Use a header file that comes with gcc, so configuring glibc | |
3954 | # with a fresh cross-compiler works. | |
3955 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3956 | # <limits.h> exists even on freestanding compilers. | |
3957 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3958 | # not just through cpp. "Syntax error" is here to catch this case. | |
412e1bf7 FCE |
3959 | cat >conftest.$ac_ext <<_ACEOF |
3960 | /* confdefs.h. */ | |
3961 | _ACEOF | |
3962 | cat confdefs.h >>conftest.$ac_ext | |
3963 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3964 | /* end confdefs.h. */ |
3965 | #ifdef __STDC__ | |
3966 | # include <limits.h> | |
3967 | #else | |
3968 | # include <assert.h> | |
3969 | #endif | |
3970 | Syntax error | |
3971 | _ACEOF | |
412e1bf7 FCE |
3972 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3973 | case "(($ac_try" in | |
3974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3975 | *) ac_try_echo=$ac_try;; | |
3976 | esac | |
562d60b0 | 3977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
3978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3979 | ac_status=$? | |
3980 | grep -v '^ *+' conftest.er1 >conftest.err | |
3981 | rm -f conftest.er1 | |
3982 | cat conftest.err >&5 | |
562d60b0 | 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
3984 | (exit $ac_status); } >/dev/null && { |
3985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3986 | test ! -s conftest.err | |
3987 | }; then | |
3988 | : | |
4a3c19da | 3989 | else |
562d60b0 | 3990 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
3991 | sed 's/^/| /' conftest.$ac_ext >&5 |
3992 | ||
2f1a1aea FCE |
3993 | # Broken: fails on valid input. |
3994 | continue | |
3995 | fi | |
412e1bf7 | 3996 | |
2f1a1aea FCE |
3997 | rm -f conftest.err conftest.$ac_ext |
3998 | ||
7fbd9d09 | 3999 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea | 4000 | # can be detected and how. |
412e1bf7 FCE |
4001 | cat >conftest.$ac_ext <<_ACEOF |
4002 | /* confdefs.h. */ | |
4003 | _ACEOF | |
4004 | cat confdefs.h >>conftest.$ac_ext | |
4005 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4006 | /* end confdefs.h. */ |
4007 | #include <ac_nonexistent.h> | |
4008 | _ACEOF | |
412e1bf7 FCE |
4009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4010 | case "(($ac_try" in | |
4011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4012 | *) ac_try_echo=$ac_try;; | |
4013 | esac | |
562d60b0 | 4014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4016 | ac_status=$? | |
4017 | grep -v '^ *+' conftest.er1 >conftest.err | |
4018 | rm -f conftest.er1 | |
4019 | cat conftest.err >&5 | |
562d60b0 | 4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4021 | (exit $ac_status); } >/dev/null && { |
4022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4023 | test ! -s conftest.err | |
4024 | }; then | |
2f1a1aea FCE |
4025 | # Broken: success on invalid input. |
4026 | continue | |
4027 | else | |
562d60b0 | 4028 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 |
4030 | ||
2f1a1aea FCE |
4031 | # Passes both tests. |
4032 | ac_preproc_ok=: | |
4033 | break | |
4034 | fi | |
412e1bf7 | 4035 | |
2f1a1aea FCE |
4036 | rm -f conftest.err conftest.$ac_ext |
4037 | ||
4038 | done | |
4039 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4040 | rm -f conftest.err conftest.$ac_ext | |
412e1bf7 | 4041 | if $ac_preproc_ok; then |
2f1a1aea FCE |
4042 | break |
4043 | fi | |
4044 | ||
4045 | done | |
4046 | ac_cv_prog_CPP=$CPP | |
4047 | ||
4048 | fi | |
4049 | CPP=$ac_cv_prog_CPP | |
4050 | else | |
4051 | ac_cv_prog_CPP=$CPP | |
4052 | fi | |
562d60b0 DB |
4053 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4054 | echo "${ECHO_T}$CPP" >&6; } | |
2f1a1aea FCE |
4055 | ac_preproc_ok=false |
4056 | for ac_c_preproc_warn_flag in '' yes | |
4057 | do | |
4058 | # Use a header file that comes with gcc, so configuring glibc | |
4059 | # with a fresh cross-compiler works. | |
4060 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4061 | # <limits.h> exists even on freestanding compilers. | |
4062 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4063 | # not just through cpp. "Syntax error" is here to catch this case. | |
412e1bf7 FCE |
4064 | cat >conftest.$ac_ext <<_ACEOF |
4065 | /* confdefs.h. */ | |
4066 | _ACEOF | |
4067 | cat confdefs.h >>conftest.$ac_ext | |
4068 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4069 | /* end confdefs.h. */ |
4070 | #ifdef __STDC__ | |
4071 | # include <limits.h> | |
4072 | #else | |
4073 | # include <assert.h> | |
4074 | #endif | |
4075 | Syntax error | |
4076 | _ACEOF | |
412e1bf7 FCE |
4077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4078 | case "(($ac_try" in | |
4079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4080 | *) ac_try_echo=$ac_try;; | |
4081 | esac | |
562d60b0 | 4082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4084 | ac_status=$? | |
4085 | grep -v '^ *+' conftest.er1 >conftest.err | |
4086 | rm -f conftest.er1 | |
4087 | cat conftest.err >&5 | |
562d60b0 | 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4089 | (exit $ac_status); } >/dev/null && { |
4090 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4091 | test ! -s conftest.err | |
4092 | }; then | |
4093 | : | |
4a3c19da | 4094 | else |
562d60b0 | 4095 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4096 | sed 's/^/| /' conftest.$ac_ext >&5 |
4097 | ||
2f1a1aea FCE |
4098 | # Broken: fails on valid input. |
4099 | continue | |
4100 | fi | |
412e1bf7 | 4101 | |
2f1a1aea FCE |
4102 | rm -f conftest.err conftest.$ac_ext |
4103 | ||
7fbd9d09 | 4104 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea | 4105 | # can be detected and how. |
412e1bf7 FCE |
4106 | cat >conftest.$ac_ext <<_ACEOF |
4107 | /* confdefs.h. */ | |
4108 | _ACEOF | |
4109 | cat confdefs.h >>conftest.$ac_ext | |
4110 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4111 | /* end confdefs.h. */ |
4112 | #include <ac_nonexistent.h> | |
4113 | _ACEOF | |
412e1bf7 FCE |
4114 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4115 | case "(($ac_try" in | |
4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 | *) ac_try_echo=$ac_try;; | |
4118 | esac | |
562d60b0 | 4119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4120 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4121 | ac_status=$? | |
4122 | grep -v '^ *+' conftest.er1 >conftest.err | |
4123 | rm -f conftest.er1 | |
4124 | cat conftest.err >&5 | |
562d60b0 | 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4126 | (exit $ac_status); } >/dev/null && { |
4127 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4128 | test ! -s conftest.err | |
4129 | }; then | |
2f1a1aea FCE |
4130 | # Broken: success on invalid input. |
4131 | continue | |
4132 | else | |
562d60b0 | 4133 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4134 | sed 's/^/| /' conftest.$ac_ext >&5 |
4135 | ||
2f1a1aea FCE |
4136 | # Passes both tests. |
4137 | ac_preproc_ok=: | |
4138 | break | |
4139 | fi | |
412e1bf7 | 4140 | |
2f1a1aea FCE |
4141 | rm -f conftest.err conftest.$ac_ext |
4142 | ||
4143 | done | |
4144 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4145 | rm -f conftest.err conftest.$ac_ext | |
412e1bf7 FCE |
4146 | if $ac_preproc_ok; then |
4147 | : | |
2f1a1aea | 4148 | else |
562d60b0 | 4149 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
412e1bf7 | 4150 | See \`config.log' for more details." >&5 |
562d60b0 | 4151 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
412e1bf7 | 4152 | See \`config.log' for more details." >&2;} |
562d60b0 | 4153 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
4154 | fi |
4155 | ||
4156 | ac_ext=c | |
4157 | ac_cpp='$CPP $CPPFLAGS' | |
4158 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4159 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4160 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | |
4167 | if test -n "$ac_tool_prefix"; then | |
4168 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4169 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
562d60b0 DB |
4170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4172 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4174 | else |
4175 | if test -n "$CC"; then | |
4176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4177 | else | |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4185 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
562d60b0 | 4186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4187 | break 2 |
4188 | fi | |
4189 | done | |
412e1bf7 | 4190 | done |
7fbd9d09 | 4191 | IFS=$as_save_IFS |
2f1a1aea FCE |
4192 | |
4193 | fi | |
4194 | fi | |
4195 | CC=$ac_cv_prog_CC | |
4196 | if test -n "$CC"; then | |
562d60b0 DB |
4197 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4198 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 4199 | else |
562d60b0 DB |
4200 | { echo "$as_me:$LINENO: result: no" >&5 |
4201 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
4202 | fi |
4203 | ||
7fbd9d09 | 4204 | |
2f1a1aea FCE |
4205 | fi |
4206 | if test -z "$ac_cv_prog_CC"; then | |
4207 | ac_ct_CC=$CC | |
4208 | # Extract the first word of "gcc", so it can be a program name with args. | |
4209 | set dummy gcc; ac_word=$2 | |
562d60b0 DB |
4210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4212 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
562d60b0 | 4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4214 | else |
4215 | if test -n "$ac_ct_CC"; then | |
4216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4217 | else | |
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4225 | ac_cv_prog_ac_ct_CC="gcc" |
562d60b0 | 4226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4227 | break 2 |
4228 | fi | |
4229 | done | |
412e1bf7 | 4230 | done |
7fbd9d09 | 4231 | IFS=$as_save_IFS |
2f1a1aea FCE |
4232 | |
4233 | fi | |
4234 | fi | |
4235 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4236 | if test -n "$ac_ct_CC"; then | |
562d60b0 DB |
4237 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4238 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2f1a1aea | 4239 | else |
562d60b0 DB |
4240 | { echo "$as_me:$LINENO: result: no" >&5 |
4241 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
4242 | fi |
4243 | ||
7fbd9d09 FCE |
4244 | if test "x$ac_ct_CC" = x; then |
4245 | CC="" | |
4246 | else | |
4247 | case $cross_compiling:$ac_tool_warned in | |
4248 | yes:) | |
562d60b0 DB |
4249 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4250 | whose name does not start with the host triplet. If you think this | |
4251 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4252 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4253 | whose name does not start with the host triplet. If you think this | |
4254 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
4255 | ac_tool_warned=yes ;; |
4256 | esac | |
4257 | CC=$ac_ct_CC | |
4258 | fi | |
2f1a1aea FCE |
4259 | else |
4260 | CC="$ac_cv_prog_CC" | |
4261 | fi | |
4262 | ||
4263 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4264 | if test -n "$ac_tool_prefix"; then |
4265 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4266 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
562d60b0 DB |
4267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4269 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 4270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4271 | else |
4272 | if test -n "$CC"; then | |
4273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4274 | else | |
4275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4276 | for as_dir in $PATH | |
4277 | do | |
4278 | IFS=$as_save_IFS | |
4279 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4280 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4282 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
562d60b0 | 4283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4284 | break 2 |
4285 | fi | |
4286 | done | |
412e1bf7 | 4287 | done |
7fbd9d09 | 4288 | IFS=$as_save_IFS |
2f1a1aea FCE |
4289 | |
4290 | fi | |
4291 | fi | |
4292 | CC=$ac_cv_prog_CC | |
4293 | if test -n "$CC"; then | |
562d60b0 DB |
4294 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4295 | echo "${ECHO_T}$CC" >&6; } | |
818ba2bc | 4296 | else |
562d60b0 DB |
4297 | { echo "$as_me:$LINENO: result: no" >&5 |
4298 | echo "${ECHO_T}no" >&6; } | |
818ba2bc MW |
4299 | fi |
4300 | ||
818ba2bc | 4301 | |
7fbd9d09 | 4302 | fi |
8ae7a94a FCE |
4303 | fi |
4304 | if test -z "$CC"; then | |
4305 | # Extract the first word of "cc", so it can be a program name with args. | |
4306 | set dummy cc; ac_word=$2 | |
562d60b0 DB |
4307 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4309 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ae7a94a FCE |
4311 | else |
4312 | if test -n "$CC"; then | |
2f1a1aea FCE |
4313 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4314 | else | |
4315 | ac_prog_rejected=no | |
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4317 | for as_dir in $PATH | |
4318 | do | |
4319 | IFS=$as_save_IFS | |
4320 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4321 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4323 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4324 | ac_prog_rejected=yes | |
4325 | continue | |
4326 | fi | |
4327 | ac_cv_prog_CC="cc" | |
562d60b0 | 4328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4329 | break 2 |
4330 | fi | |
4331 | done | |
412e1bf7 | 4332 | done |
7fbd9d09 | 4333 | IFS=$as_save_IFS |
2f1a1aea FCE |
4334 | |
4335 | if test $ac_prog_rejected = yes; then | |
4336 | # We found a bogon in the path, so make sure we never use it. | |
4337 | set dummy $ac_cv_prog_CC | |
4338 | shift | |
4339 | if test $# != 0; then | |
4340 | # We chose a different compiler from the bogus one. | |
4341 | # However, it has the same basename, so the bogon will be chosen | |
4342 | # first if we set CC to just the basename; use the full file name. | |
4343 | shift | |
4344 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4345 | fi | |
4346 | fi | |
4347 | fi | |
4348 | fi | |
4349 | CC=$ac_cv_prog_CC | |
4350 | if test -n "$CC"; then | |
562d60b0 DB |
4351 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4352 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 4353 | else |
562d60b0 DB |
4354 | { echo "$as_me:$LINENO: result: no" >&5 |
4355 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
4356 | fi |
4357 | ||
7fbd9d09 | 4358 | |
2f1a1aea FCE |
4359 | fi |
4360 | if test -z "$CC"; then | |
4361 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4362 | for ac_prog in cl.exe |
2f1a1aea FCE |
4363 | do |
4364 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4365 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
562d60b0 DB |
4366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4368 | if test "${ac_cv_prog_CC+set}" = set; then |
562d60b0 | 4369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4370 | else |
4371 | if test -n "$CC"; then | |
4372 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4373 | else | |
4374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4375 | for as_dir in $PATH | |
4376 | do | |
4377 | IFS=$as_save_IFS | |
4378 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4379 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4381 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
562d60b0 | 4382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4383 | break 2 |
4384 | fi | |
4385 | done | |
412e1bf7 | 4386 | done |
7fbd9d09 | 4387 | IFS=$as_save_IFS |
2f1a1aea FCE |
4388 | |
4389 | fi | |
4390 | fi | |
4391 | CC=$ac_cv_prog_CC | |
4392 | if test -n "$CC"; then | |
562d60b0 DB |
4393 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4394 | echo "${ECHO_T}$CC" >&6; } | |
2f1a1aea | 4395 | else |
562d60b0 DB |
4396 | { echo "$as_me:$LINENO: result: no" >&5 |
4397 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
4398 | fi |
4399 | ||
7fbd9d09 | 4400 | |
2f1a1aea FCE |
4401 | test -n "$CC" && break |
4402 | done | |
4403 | fi | |
4404 | if test -z "$CC"; then | |
4405 | ac_ct_CC=$CC | |
7fbd9d09 | 4406 | for ac_prog in cl.exe |
2f1a1aea FCE |
4407 | do |
4408 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4409 | set dummy $ac_prog; ac_word=$2 | |
562d60b0 DB |
4410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 4412 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
562d60b0 | 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4414 | else |
4415 | if test -n "$ac_ct_CC"; then | |
4416 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4417 | else | |
4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4419 | for as_dir in $PATH | |
4420 | do | |
4421 | IFS=$as_save_IFS | |
4422 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 4423 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4425 | ac_cv_prog_ac_ct_CC="$ac_prog" |
562d60b0 | 4426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4427 | break 2 |
4428 | fi | |
4429 | done | |
412e1bf7 | 4430 | done |
7fbd9d09 | 4431 | IFS=$as_save_IFS |
2f1a1aea FCE |
4432 | |
4433 | fi | |
4434 | fi | |
4435 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4436 | if test -n "$ac_ct_CC"; then | |
562d60b0 DB |
4437 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4438 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2f1a1aea | 4439 | else |
562d60b0 DB |
4440 | { echo "$as_me:$LINENO: result: no" >&5 |
4441 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
4442 | fi |
4443 | ||
7fbd9d09 | 4444 | |
2f1a1aea FCE |
4445 | test -n "$ac_ct_CC" && break |
4446 | done | |
4447 | ||
7fbd9d09 FCE |
4448 | if test "x$ac_ct_CC" = x; then |
4449 | CC="" | |
4450 | else | |
4451 | case $cross_compiling:$ac_tool_warned in | |
4452 | yes:) | |
562d60b0 DB |
4453 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4454 | whose name does not start with the host triplet. If you think this | |
4455 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4456 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4457 | whose name does not start with the host triplet. If you think this | |
4458 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
4459 | ac_tool_warned=yes ;; |
4460 | esac | |
4461 | CC=$ac_ct_CC | |
4462 | fi | |
2f1a1aea FCE |
4463 | fi |
4464 | ||
4465 | fi | |
4466 | ||
4467 | ||
562d60b0 | 4468 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
412e1bf7 | 4469 | See \`config.log' for more details." >&5 |
562d60b0 | 4470 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
412e1bf7 | 4471 | See \`config.log' for more details." >&2;} |
562d60b0 | 4472 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
4473 | |
4474 | # Provide some information about the compiler. | |
562d60b0 DB |
4475 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
4476 | ac_compiler=`set X $ac_compile; echo $2` | |
412e1bf7 | 4477 | { (ac_try="$ac_compiler --version >&5" |
7fbd9d09 FCE |
4478 | case "(($ac_try" in |
4479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4480 | *) ac_try_echo=$ac_try;; | |
4481 | esac | |
562d60b0 | 4482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 | 4483 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 4484 | ac_status=$? |
562d60b0 | 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4486 | (exit $ac_status); } |
4487 | { (ac_try="$ac_compiler -v >&5" | |
4488 | case "(($ac_try" in | |
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4490 | *) ac_try_echo=$ac_try;; | |
4491 | esac | |
562d60b0 | 4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4493 | (eval "$ac_compiler -v >&5") 2>&5 |
4494 | ac_status=$? | |
562d60b0 | 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4496 | (exit $ac_status); } |
4497 | { (ac_try="$ac_compiler -V >&5" | |
4498 | case "(($ac_try" in | |
4499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4500 | *) ac_try_echo=$ac_try;; | |
4501 | esac | |
562d60b0 | 4502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4503 | (eval "$ac_compiler -V >&5") 2>&5 |
4504 | ac_status=$? | |
562d60b0 | 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 4506 | (exit $ac_status); } |
2f1a1aea | 4507 | |
562d60b0 DB |
4508 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4509 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
412e1bf7 | 4510 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
562d60b0 | 4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 4512 | else |
412e1bf7 FCE |
4513 | cat >conftest.$ac_ext <<_ACEOF |
4514 | /* confdefs.h. */ | |
4515 | _ACEOF | |
4516 | cat confdefs.h >>conftest.$ac_ext | |
4517 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4518 | /* end confdefs.h. */ |
4519 | ||
4520 | int | |
4521 | main () | |
4522 | { | |
4523 | #ifndef __GNUC__ | |
4524 | choke me | |
4525 | #endif | |
4526 | ||
4527 | ; | |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
412e1bf7 FCE |
4531 | rm -f conftest.$ac_objext |
4532 | if { (ac_try="$ac_compile" | |
4533 | case "(($ac_try" in | |
4534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4535 | *) ac_try_echo=$ac_try;; | |
4536 | esac | |
562d60b0 | 4537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4538 | (eval "$ac_compile") 2>conftest.er1 |
4539 | ac_status=$? | |
4540 | grep -v '^ *+' conftest.er1 >conftest.err | |
4541 | rm -f conftest.er1 | |
4542 | cat conftest.err >&5 | |
562d60b0 | 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4544 | (exit $ac_status); } && { |
4545 | test -z "$ac_c_werror_flag" || | |
4546 | test ! -s conftest.err | |
4547 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
4548 | ac_compiler_gnu=yes |
4549 | else | |
562d60b0 | 4550 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
4552 | ||
4553 | ac_compiler_gnu=no | |
2f1a1aea | 4554 | fi |
412e1bf7 | 4555 | |
7fbd9d09 | 4556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
4557 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4558 | ||
4559 | fi | |
562d60b0 DB |
4560 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4561 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
4562 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2f1a1aea FCE |
4563 | ac_test_CFLAGS=${CFLAGS+set} |
4564 | ac_save_CFLAGS=$CFLAGS | |
562d60b0 DB |
4565 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4566 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
412e1bf7 | 4567 | if test "${ac_cv_prog_cc_g+set}" = set; then |
562d60b0 | 4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 4569 | else |
7fbd9d09 FCE |
4570 | ac_save_c_werror_flag=$ac_c_werror_flag |
4571 | ac_c_werror_flag=yes | |
4572 | ac_cv_prog_cc_g=no | |
4573 | CFLAGS="-g" | |
412e1bf7 FCE |
4574 | cat >conftest.$ac_ext <<_ACEOF |
4575 | /* confdefs.h. */ | |
4576 | _ACEOF | |
4577 | cat confdefs.h >>conftest.$ac_ext | |
4578 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4579 | /* end confdefs.h. */ |
4580 | ||
4581 | int | |
4582 | main () | |
4583 | { | |
4584 | ||
4585 | ; | |
4586 | return 0; | |
4587 | } | |
4588 | _ACEOF | |
412e1bf7 FCE |
4589 | rm -f conftest.$ac_objext |
4590 | if { (ac_try="$ac_compile" | |
4591 | case "(($ac_try" in | |
4592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4593 | *) ac_try_echo=$ac_try;; | |
4594 | esac | |
562d60b0 | 4595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4596 | (eval "$ac_compile") 2>conftest.er1 |
4597 | ac_status=$? | |
4598 | grep -v '^ *+' conftest.er1 >conftest.err | |
4599 | rm -f conftest.er1 | |
4600 | cat conftest.err >&5 | |
562d60b0 | 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4602 | (exit $ac_status); } && { |
4603 | test -z "$ac_c_werror_flag" || | |
4604 | test ! -s conftest.err | |
4605 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 FCE |
4606 | ac_cv_prog_cc_g=yes |
4607 | else | |
562d60b0 | 4608 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4609 | sed 's/^/| /' conftest.$ac_ext >&5 |
4610 | ||
4611 | CFLAGS="" | |
4612 | cat >conftest.$ac_ext <<_ACEOF | |
4613 | /* confdefs.h. */ | |
4614 | _ACEOF | |
4615 | cat confdefs.h >>conftest.$ac_ext | |
4616 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
4617 | /* end confdefs.h. */ |
4618 | ||
4619 | int | |
4620 | main () | |
4621 | { | |
4622 | ||
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
412e1bf7 FCE |
4627 | rm -f conftest.$ac_objext |
4628 | if { (ac_try="$ac_compile" | |
4629 | case "(($ac_try" in | |
4630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4631 | *) ac_try_echo=$ac_try;; | |
4632 | esac | |
562d60b0 | 4633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4634 | (eval "$ac_compile") 2>conftest.er1 |
4635 | ac_status=$? | |
4636 | grep -v '^ *+' conftest.er1 >conftest.err | |
4637 | rm -f conftest.er1 | |
4638 | cat conftest.err >&5 | |
562d60b0 | 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4640 | (exit $ac_status); } && { |
4641 | test -z "$ac_c_werror_flag" || | |
4642 | test ! -s conftest.err | |
4643 | } && test -s conftest.$ac_objext; then | |
4644 | : | |
4a3c19da | 4645 | else |
562d60b0 | 4646 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4647 | sed 's/^/| /' conftest.$ac_ext >&5 |
4648 | ||
4649 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4650 | CFLAGS="-g" |
412e1bf7 FCE |
4651 | cat >conftest.$ac_ext <<_ACEOF |
4652 | /* confdefs.h. */ | |
4653 | _ACEOF | |
4654 | cat confdefs.h >>conftest.$ac_ext | |
4655 | cat >>conftest.$ac_ext <<_ACEOF | |
7fbd9d09 FCE |
4656 | /* end confdefs.h. */ |
4657 | ||
4658 | int | |
4659 | main () | |
4660 | { | |
4661 | ||
4662 | ; | |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
412e1bf7 FCE |
4666 | rm -f conftest.$ac_objext |
4667 | if { (ac_try="$ac_compile" | |
4668 | case "(($ac_try" in | |
4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4670 | *) ac_try_echo=$ac_try;; | |
4671 | esac | |
562d60b0 | 4672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4673 | (eval "$ac_compile") 2>conftest.er1 |
4674 | ac_status=$? | |
4675 | grep -v '^ *+' conftest.er1 >conftest.err | |
4676 | rm -f conftest.er1 | |
4677 | cat conftest.err >&5 | |
562d60b0 | 4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4679 | (exit $ac_status); } && { |
4680 | test -z "$ac_c_werror_flag" || | |
4681 | test ! -s conftest.err | |
4682 | } && test -s conftest.$ac_objext; then | |
5e0d2ebf | 4683 | ac_cv_prog_cc_g=yes |
412e1bf7 | 4684 | else |
562d60b0 | 4685 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
4687 | ||
4688 | ||
7fbd9d09 | 4689 | fi |
412e1bf7 | 4690 | |
7fbd9d09 FCE |
4691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4692 | fi | |
412e1bf7 | 4693 | |
7fbd9d09 | 4694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 4695 | fi |
412e1bf7 | 4696 | |
7fbd9d09 FCE |
4697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4698 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4699 | fi |
562d60b0 DB |
4700 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4701 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
70d28673 DS |
4702 | if test "$ac_test_CFLAGS" = set; then |
4703 | CFLAGS=$ac_save_CFLAGS | |
4704 | elif test $ac_cv_prog_cc_g = yes; then | |
4705 | if test "$GCC" = yes; then | |
4706 | CFLAGS="-g -O2" | |
4707 | else | |
4708 | CFLAGS="-g" | |
4709 | fi | |
4710 | else | |
4711 | if test "$GCC" = yes; then | |
4712 | CFLAGS="-O2" | |
4713 | else | |
4714 | CFLAGS= | |
4715 | fi | |
4716 | fi | |
562d60b0 DB |
4717 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4718 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
412e1bf7 | 4719 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
562d60b0 | 4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
70d28673 | 4721 | else |
7fbd9d09 | 4722 | ac_cv_prog_cc_c89=no |
70d28673 | 4723 | ac_save_CC=$CC |
412e1bf7 FCE |
4724 | cat >conftest.$ac_ext <<_ACEOF |
4725 | /* confdefs.h. */ | |
4726 | _ACEOF | |
4727 | cat confdefs.h >>conftest.$ac_ext | |
4728 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea | 4729 | /* end confdefs.h. */ |
70d28673 DS |
4730 | #include <stdarg.h> |
4731 | #include <stdio.h> | |
4732 | #include <sys/types.h> | |
4733 | #include <sys/stat.h> | |
4734 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4735 | struct buf { int x; }; | |
4736 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4737 | static char *e (p, i) | |
4738 | char **p; | |
4739 | int i; | |
4740 | { | |
4741 | return p[i]; | |
4742 | } | |
4743 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4744 | { | |
4745 | char *s; | |
4746 | va_list v; | |
4747 | va_start (v,p); | |
4748 | s = g (p, va_arg (v,int)); | |
4749 | va_end (v); | |
4750 | return s; | |
4751 | } | |
4752 | ||
4753 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4754 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4755 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4756 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4757 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4758 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4759 | that's true only with -std. */ |
70d28673 DS |
4760 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4761 | ||
7fbd9d09 FCE |
4762 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4763 | inside strings and character constants. */ | |
4764 | #define FOO(x) 'x' | |
4765 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4766 | ||
70d28673 DS |
4767 | int test (int i, double x); |
4768 | struct s1 {int (*f) (int a);}; | |
4769 | struct s2 {int (*f) (double a);}; | |
4770 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4771 | int argc; | |
4772 | char **argv; | |
2f1a1aea FCE |
4773 | int |
4774 | main () | |
4775 | { | |
70d28673 | 4776 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
4777 | ; |
4778 | return 0; | |
4779 | } | |
4780 | _ACEOF | |
7fbd9d09 FCE |
4781 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4782 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
4783 | do |
4784 | CC="$ac_save_CC $ac_arg" | |
412e1bf7 FCE |
4785 | rm -f conftest.$ac_objext |
4786 | if { (ac_try="$ac_compile" | |
4787 | case "(($ac_try" in | |
4788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4789 | *) ac_try_echo=$ac_try;; | |
4790 | esac | |
562d60b0 | 4791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
4792 | (eval "$ac_compile") 2>conftest.er1 |
4793 | ac_status=$? | |
4794 | grep -v '^ *+' conftest.er1 >conftest.err | |
4795 | rm -f conftest.er1 | |
4796 | cat conftest.err >&5 | |
562d60b0 | 4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4798 | (exit $ac_status); } && { |
4799 | test -z "$ac_c_werror_flag" || | |
4800 | test ! -s conftest.err | |
4801 | } && test -s conftest.$ac_objext; then | |
7fbd9d09 | 4802 | ac_cv_prog_cc_c89=$ac_arg |
412e1bf7 | 4803 | else |
562d60b0 | 4804 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
4806 | ||
4807 | ||
2f1a1aea | 4808 | fi |
412e1bf7 | 4809 | |
7fbd9d09 FCE |
4810 | rm -f core conftest.err conftest.$ac_objext |
4811 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4812 | done |
7fbd9d09 | 4813 | rm -f conftest.$ac_ext |
70d28673 DS |
4814 | CC=$ac_save_CC |
4815 | ||
2f1a1aea | 4816 | fi |
7fbd9d09 FCE |
4817 | # AC_CACHE_VAL |
4818 | case "x$ac_cv_prog_cc_c89" in | |
4819 | x) | |
562d60b0 DB |
4820 | { echo "$as_me:$LINENO: result: none needed" >&5 |
4821 | echo "${ECHO_T}none needed" >&6; } ;; | |
7fbd9d09 | 4822 | xno) |
562d60b0 DB |
4823 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
4824 | echo "${ECHO_T}unsupported" >&6; } ;; | |
70d28673 | 4825 | *) |
7fbd9d09 | 4826 | CC="$CC $ac_cv_prog_cc_c89" |
562d60b0 DB |
4827 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4828 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
70d28673 | 4829 | esac |
2f1a1aea | 4830 | |
2f1a1aea | 4831 | |
2f1a1aea FCE |
4832 | ac_ext=c |
4833 | ac_cpp='$CPP $CPPFLAGS' | |
4834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4837 | ||
4838 | depcc="$CC" am_compiler_list= | |
4839 | ||
562d60b0 DB |
4840 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4841 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
412e1bf7 | 4842 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
562d60b0 | 4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
4844 | else |
4845 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4846 | # We make a subdir and do the tests there. Otherwise we can end up | |
4847 | # making bogus files that we don't know about and never remove. For | |
4848 | # instance it was reported that on HP-UX the gcc test will end up | |
4849 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4850 | # in D'. | |
4851 | mkdir conftest.dir | |
4852 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4853 | # using a relative directory. | |
4854 | cp "$am_depcomp" conftest.dir | |
4855 | cd conftest.dir | |
4856 | # We will build objects and dependencies in a subdirectory because | |
4857 | # it helps to detect inapplicable dependency modes. For instance | |
4858 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4859 | # side effect of compilation, but ICC will put the dependencies in | |
4860 | # the current directory while Tru64 will put them in the object | |
4861 | # directory. | |
4862 | mkdir sub | |
4863 | ||
4864 | am_cv_CC_dependencies_compiler_type=none | |
4865 | if test "$am_compiler_list" = ""; then | |
4866 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4867 | fi | |
4868 | for depmode in $am_compiler_list; do | |
4869 | # Setup a source with many dependencies, because some compilers | |
4870 | # like to wrap large dependency lists on column 80 (with \), and | |
4871 | # we should not choose a depcomp mode which is confused by this. | |
4872 | # | |
4873 | # We need to recreate these files for each test, as the compiler may | |
4874 | # overwrite some of them when testing with obscure command lines. | |
4875 | # This happens at least with the AIX C compiler. | |
4876 | : > sub/conftest.c | |
4877 | for i in 1 2 3 4 5 6; do | |
4878 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4879 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4880 | # Solaris 8's {/usr,}/bin/sh. | |
4881 | touch sub/conftst$i.h | |
4882 | done | |
4883 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4884 | ||
4885 | case $depmode in | |
4886 | nosideeffect) | |
4887 | # after this tag, mechanisms are not by side-effect, so they'll | |
4888 | # only be used when explicitly requested | |
4889 | if test "x$enable_dependency_tracking" = xyes; then | |
4890 | continue | |
4891 | else | |
4892 | break | |
4893 | fi | |
4894 | ;; | |
4895 | none) break ;; | |
4896 | esac | |
562d60b0 DB |
4897 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4898 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4899 | # handle `-M -o', and we need to detect this. | |
2f1a1aea | 4900 | if depmode=$depmode \ |
562d60b0 | 4901 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
2f1a1aea | 4902 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
562d60b0 | 4903 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
2f1a1aea | 4904 | >/dev/null 2>conftest.err && |
7fbd9d09 | 4905 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 4906 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
562d60b0 | 4907 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4908 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4909 | # icc doesn't choke on unknown options, it will just issue warnings | |
4910 | # or remarks (even with -Werror). So we grep stderr for any message | |
4911 | # that says an option was ignored or not supported. | |
4912 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4913 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4914 | # The diagnosis changed in icc 8.0: | |
4915 | # icc: Command line remark: option '-MP' not supported | |
4916 | if (grep 'ignoring option' conftest.err || | |
4917 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4918 | am_cv_CC_dependencies_compiler_type=$depmode | |
4919 | break | |
4920 | fi | |
4921 | fi | |
4922 | done | |
4923 | ||
4924 | cd .. | |
4925 | rm -rf conftest.dir | |
4926 | else | |
4927 | am_cv_CC_dependencies_compiler_type=none | |
4928 | fi | |
4929 | ||
4930 | fi | |
562d60b0 DB |
4931 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4932 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
4933 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4934 | ||
7fbd9d09 | 4935 | if |
2f1a1aea FCE |
4936 | test "x$enable_dependency_tracking" != xno \ |
4937 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4938 | am__fastdepCC_TRUE= | |
4939 | am__fastdepCC_FALSE='#' | |
4940 | else | |
4941 | am__fastdepCC_TRUE='#' | |
4942 | am__fastdepCC_FALSE= | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | ||
4947 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
4948 | ||
8ae7a94a | 4949 | if test "x$CC" != xcc; then |
562d60b0 DB |
4950 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
4951 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } | |
8ae7a94a | 4952 | else |
562d60b0 DB |
4953 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
4954 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } | |
8ae7a94a | 4955 | fi |
562d60b0 | 4956 | set dummy $CC; ac_cc=`echo $2 | |
8ae7a94a | 4957 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
412e1bf7 | 4958 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 4959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ae7a94a | 4960 | else |
412e1bf7 FCE |
4961 | cat >conftest.$ac_ext <<_ACEOF |
4962 | /* confdefs.h. */ | |
4963 | _ACEOF | |
4964 | cat confdefs.h >>conftest.$ac_ext | |
4965 | cat >>conftest.$ac_ext <<_ACEOF | |
8ae7a94a FCE |
4966 | /* end confdefs.h. */ |
4967 | ||
4968 | int | |
4969 | main () | |
4970 | { | |
4971 | ||
4972 | ; | |
4973 | return 0; | |
4974 | } | |
4975 | _ACEOF | |
4976 | # Make sure it works both with $CC and with simple cc. | |
4977 | # We do the test twice because some compilers refuse to overwrite an | |
4978 | # existing .o file with -o, though they will create one. | |
7fbd9d09 FCE |
4979 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
4980 | rm -f conftest2.* | |
412e1bf7 | 4981 | if { (case "(($ac_try" in |
7fbd9d09 FCE |
4982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4983 | *) ac_try_echo=$ac_try;; | |
4984 | esac | |
562d60b0 | 4985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 4986 | (eval "$ac_try") 2>&5 |
8ae7a94a | 4987 | ac_status=$? |
562d60b0 | 4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
4989 | (exit $ac_status); } && |
4990 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
7fbd9d09 FCE |
4991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4992 | *) ac_try_echo=$ac_try;; | |
4993 | esac | |
562d60b0 | 4994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 4995 | (eval "$ac_try") 2>&5 |
8ae7a94a | 4996 | ac_status=$? |
562d60b0 | 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 4998 | (exit $ac_status); }; |
8ae7a94a FCE |
4999 | then |
5000 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5001 | if test "x$CC" != xcc; then | |
5002 | # Test first that cc exists at all. | |
5003 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
412e1bf7 | 5004 | { (case "(($ac_try" in |
7fbd9d09 FCE |
5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5006 | *) ac_try_echo=$ac_try;; | |
5007 | esac | |
562d60b0 | 5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 5009 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5010 | ac_status=$? |
562d60b0 | 5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 5012 | (exit $ac_status); }; }; then |
7fbd9d09 FCE |
5013 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5014 | rm -f conftest2.* | |
412e1bf7 | 5015 | if { (case "(($ac_try" in |
7fbd9d09 FCE |
5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5017 | *) ac_try_echo=$ac_try;; | |
5018 | esac | |
562d60b0 | 5019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 5020 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5021 | ac_status=$? |
562d60b0 | 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5023 | (exit $ac_status); } && |
5024 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
7fbd9d09 FCE |
5025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5026 | *) ac_try_echo=$ac_try;; | |
5027 | esac | |
562d60b0 | 5028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7fbd9d09 | 5029 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5030 | ac_status=$? |
562d60b0 | 5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 5032 | (exit $ac_status); }; |
8ae7a94a FCE |
5033 | then |
5034 | # cc works too. | |
5035 | : | |
5036 | else | |
5037 | # cc exists but doesn't like -o. | |
5038 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5039 | fi | |
5040 | fi | |
5041 | fi | |
5042 | else | |
5043 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5044 | fi | |
7fbd9d09 | 5045 | rm -f core conftest* |
8ae7a94a FCE |
5046 | |
5047 | fi | |
7fbd9d09 | 5048 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
562d60b0 DB |
5049 | { echo "$as_me:$LINENO: result: yes" >&5 |
5050 | echo "${ECHO_T}yes" >&6; } | |
8ae7a94a | 5051 | else |
562d60b0 DB |
5052 | { echo "$as_me:$LINENO: result: no" >&5 |
5053 | echo "${ECHO_T}no" >&6; } | |
8ae7a94a | 5054 | |
412e1bf7 FCE |
5055 | cat >>confdefs.h <<\_ACEOF |
5056 | #define NO_MINUS_C_MINUS_O 1 | |
5057 | _ACEOF | |
8ae7a94a FCE |
5058 | |
5059 | fi | |
5060 | ||
5061 | # FIXME: we rely on the cache variable name because | |
5062 | # there is no other way. | |
5063 | set dummy $CC | |
562d60b0 DB |
5064 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5065 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
8ae7a94a FCE |
5066 | # Losing compiler, so override with the script. |
5067 | # FIXME: It is wrong to rewrite CC. | |
5068 | # But if we don't then we get into trouble of one sort or another. | |
5069 | # A longer-term fix would be to have automake use am__CC in this case, | |
5070 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5071 | CC="$am_aux_dir/compile $CC" | |
5072 | fi | |
5073 | ||
7fbd9d09 | 5074 | |
562d60b0 DB |
5075 | { echo "$as_me:$LINENO: checking for function prototypes" >&5 |
5076 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } | |
7fbd9d09 | 5077 | if test "$ac_cv_prog_cc_c89" != no; then |
562d60b0 DB |
5078 | { echo "$as_me:$LINENO: result: yes" >&5 |
5079 | echo "${ECHO_T}yes" >&6; } | |
2f1a1aea | 5080 | |
412e1bf7 FCE |
5081 | cat >>confdefs.h <<\_ACEOF |
5082 | #define PROTOTYPES 1 | |
5083 | _ACEOF | |
2f1a1aea FCE |
5084 | |
5085 | ||
412e1bf7 FCE |
5086 | cat >>confdefs.h <<\_ACEOF |
5087 | #define __PROTOTYPES 1 | |
5088 | _ACEOF | |
2f1a1aea FCE |
5089 | |
5090 | else | |
562d60b0 DB |
5091 | { echo "$as_me:$LINENO: result: no" >&5 |
5092 | echo "${ECHO_T}no" >&6; } | |
7fbd9d09 FCE |
5093 | fi |
5094 | ||
5095 | ||
5096 | ||
562d60b0 DB |
5097 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
5098 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
5099 | if test "${ac_cv_path_GREP+set}" = set; then | |
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5101 | else | |
5102 | # Extract the first word of "grep ggrep" to use in msg output | |
5103 | if test -z "$GREP"; then | |
5104 | set dummy grep ggrep; ac_prog_name=$2 | |
412e1bf7 | 5105 | if test "${ac_cv_path_GREP+set}" = set; then |
562d60b0 | 5106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fbd9d09 FCE |
5107 | else |
5108 | ac_path_GREP_found=false | |
562d60b0 DB |
5109 | # Loop through the user's path and test for each of PROGNAME-LIST |
5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5111 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5112 | do | |
5113 | IFS=$as_save_IFS | |
5114 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 5115 | for ac_prog in grep ggrep; do |
562d60b0 DB |
5116 | for ac_exec_ext in '' $ac_executable_extensions; do |
5117 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5118 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5119 | # Check for GNU ac_path_GREP and select it if it is found. | |
7fbd9d09 FCE |
5120 | # Check for GNU $ac_path_GREP |
5121 | case `"$ac_path_GREP" --version 2>&1` in | |
5122 | *GNU*) | |
5123 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5124 | *) | |
5125 | ac_count=0 | |
562d60b0 | 5126 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7fbd9d09 FCE |
5127 | while : |
5128 | do | |
5129 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5130 | mv "conftest.tmp" "conftest.in" | |
5131 | cp "conftest.in" "conftest.nl" | |
562d60b0 | 5132 | echo 'GREP' >> "conftest.nl" |
7fbd9d09 FCE |
5133 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5134 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
412e1bf7 | 5135 | ac_count=`expr $ac_count + 1` |
7fbd9d09 FCE |
5136 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
5137 | # Best one so far, save it but keep looking for a better one | |
5138 | ac_cv_path_GREP="$ac_path_GREP" | |
5139 | ac_path_GREP_max=$ac_count | |
5140 | fi | |
5141 | # 10*(2^10) chars as input seems more than enough | |
5142 | test $ac_count -gt 10 && break | |
5143 | done | |
5144 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5145 | esac | |
5146 | ||
562d60b0 DB |
5147 | |
5148 | $ac_path_GREP_found && break 3 | |
7fbd9d09 | 5149 | done |
412e1bf7 | 5150 | done |
562d60b0 DB |
5151 | |
5152 | done | |
7fbd9d09 | 5153 | IFS=$as_save_IFS |
562d60b0 DB |
5154 | |
5155 | ||
5156 | fi | |
5157 | ||
5158 | GREP="$ac_cv_path_GREP" | |
5159 | if test -z "$GREP"; then | |
5160 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5161 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
412e1bf7 | 5162 | { (exit 1); exit 1; }; } |
562d60b0 DB |
5163 | fi |
5164 | ||
7fbd9d09 FCE |
5165 | else |
5166 | ac_cv_path_GREP=$GREP | |
70d28673 DS |
5167 | fi |
5168 | ||
562d60b0 | 5169 | |
7fbd9d09 | 5170 | fi |
562d60b0 DB |
5171 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
5172 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
7fbd9d09 FCE |
5173 | GREP="$ac_cv_path_GREP" |
5174 | ||
70d28673 | 5175 | |
562d60b0 DB |
5176 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
5177 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
412e1bf7 | 5178 | if test "${ac_cv_path_EGREP+set}" = set; then |
562d60b0 | 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fbd9d09 FCE |
5180 | else |
5181 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5182 | then ac_cv_path_EGREP="$GREP -E" | |
5183 | else | |
562d60b0 DB |
5184 | # Extract the first word of "egrep" to use in msg output |
5185 | if test -z "$EGREP"; then | |
5186 | set dummy egrep; ac_prog_name=$2 | |
5187 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5189 | else | |
7fbd9d09 | 5190 | ac_path_EGREP_found=false |
562d60b0 DB |
5191 | # Loop through the user's path and test for each of PROGNAME-LIST |
5192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5193 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5194 | do | |
5195 | IFS=$as_save_IFS | |
5196 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 5197 | for ac_prog in egrep; do |
562d60b0 DB |
5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
5199 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5200 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5201 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7fbd9d09 FCE |
5202 | # Check for GNU $ac_path_EGREP |
5203 | case `"$ac_path_EGREP" --version 2>&1` in | |
5204 | *GNU*) | |
5205 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5206 | *) | |
5207 | ac_count=0 | |
562d60b0 | 5208 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7fbd9d09 FCE |
5209 | while : |
5210 | do | |
5211 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5212 | mv "conftest.tmp" "conftest.in" | |
5213 | cp "conftest.in" "conftest.nl" | |
562d60b0 | 5214 | echo 'EGREP' >> "conftest.nl" |
7fbd9d09 FCE |
5215 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5216 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
412e1bf7 | 5217 | ac_count=`expr $ac_count + 1` |
7fbd9d09 FCE |
5218 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5219 | # Best one so far, save it but keep looking for a better one | |
5220 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5221 | ac_path_EGREP_max=$ac_count | |
2f1a1aea | 5222 | fi |
7fbd9d09 FCE |
5223 | # 10*(2^10) chars as input seems more than enough |
5224 | test $ac_count -gt 10 && break | |
5225 | done | |
5226 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5227 | esac | |
5228 | ||
562d60b0 DB |
5229 | |
5230 | $ac_path_EGREP_found && break 3 | |
7fbd9d09 | 5231 | done |
412e1bf7 | 5232 | done |
562d60b0 DB |
5233 | |
5234 | done | |
7fbd9d09 | 5235 | IFS=$as_save_IFS |
562d60b0 DB |
5236 | |
5237 | ||
5238 | fi | |
5239 | ||
5240 | EGREP="$ac_cv_path_EGREP" | |
5241 | if test -z "$EGREP"; then | |
5242 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5243 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
412e1bf7 | 5244 | { (exit 1); exit 1; }; } |
562d60b0 DB |
5245 | fi |
5246 | ||
7fbd9d09 FCE |
5247 | else |
5248 | ac_cv_path_EGREP=$EGREP | |
5249 | fi | |
5250 | ||
562d60b0 | 5251 | |
7fbd9d09 | 5252 | fi |
2f1a1aea | 5253 | fi |
562d60b0 DB |
5254 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5255 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
7fbd9d09 | 5256 | EGREP="$ac_cv_path_EGREP" |
2f1a1aea FCE |
5257 | |
5258 | ||
562d60b0 DB |
5259 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5260 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
412e1bf7 | 5261 | if test "${ac_cv_header_stdc+set}" = set; then |
562d60b0 | 5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea | 5263 | else |
412e1bf7 FCE |
5264 | cat >conftest.$ac_ext <<_ACEOF |
5265 | /* confdefs.h. */ | |
5266 | _ACEOF | |
5267 | cat confdefs.h >>conftest.$ac_ext | |
5268 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5269 | /* end confdefs.h. */ |
5270 | #include <stdlib.h> | |
5271 | #include <stdarg.h> | |
5272 | #include <string.h> | |
5273 | #include <float.h> | |
5274 | ||
5275 | int | |
5276 | main () | |
5277 | { | |
5278 | ||
5279 | ; | |
5280 | return 0; | |
5281 | } | |
5282 | _ACEOF | |
412e1bf7 FCE |
5283 | rm -f conftest.$ac_objext |
5284 | if { (ac_try="$ac_compile" | |
5285 | case "(($ac_try" in | |
5286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5287 | *) ac_try_echo=$ac_try;; | |
5288 | esac | |
562d60b0 | 5289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5290 | (eval "$ac_compile") 2>conftest.er1 |
5291 | ac_status=$? | |
5292 | grep -v '^ *+' conftest.er1 >conftest.err | |
5293 | rm -f conftest.er1 | |
5294 | cat conftest.err >&5 | |
562d60b0 | 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5296 | (exit $ac_status); } && { |
5297 | test -z "$ac_c_werror_flag" || | |
5298 | test ! -s conftest.err | |
5299 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5300 | ac_cv_header_stdc=yes |
5301 | else | |
562d60b0 | 5302 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
5303 | sed 's/^/| /' conftest.$ac_ext >&5 |
5304 | ||
5305 | ac_cv_header_stdc=no | |
2f1a1aea | 5306 | fi |
412e1bf7 | 5307 | |
7fbd9d09 | 5308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
5309 | |
5310 | if test $ac_cv_header_stdc = yes; then | |
5311 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
412e1bf7 FCE |
5312 | cat >conftest.$ac_ext <<_ACEOF |
5313 | /* confdefs.h. */ | |
5314 | _ACEOF | |
5315 | cat confdefs.h >>conftest.$ac_ext | |
5316 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5317 | /* end confdefs.h. */ |
5318 | #include <string.h> | |
5319 | ||
5320 | _ACEOF | |
5321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
412e1bf7 FCE |
5322 | $EGREP "memchr" >/dev/null 2>&1; then |
5323 | : | |
2f1a1aea FCE |
5324 | else |
5325 | ac_cv_header_stdc=no | |
5326 | fi | |
5327 | rm -f conftest* | |
5328 | ||
5329 | fi | |
5330 | ||
5331 | if test $ac_cv_header_stdc = yes; then | |
5332 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
412e1bf7 FCE |
5333 | cat >conftest.$ac_ext <<_ACEOF |
5334 | /* confdefs.h. */ | |
5335 | _ACEOF | |
5336 | cat confdefs.h >>conftest.$ac_ext | |
5337 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5338 | /* end confdefs.h. */ |
5339 | #include <stdlib.h> | |
5340 | ||
5341 | _ACEOF | |
5342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
412e1bf7 FCE |
5343 | $EGREP "free" >/dev/null 2>&1; then |
5344 | : | |
2f1a1aea FCE |
5345 | else |
5346 | ac_cv_header_stdc=no | |
5347 | fi | |
5348 | rm -f conftest* | |
5349 | ||
5350 | fi | |
5351 | ||
5352 | if test $ac_cv_header_stdc = yes; then | |
5353 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
412e1bf7 | 5354 | if test "$cross_compiling" = yes; then |
2f1a1aea FCE |
5355 | : |
5356 | else | |
412e1bf7 FCE |
5357 | cat >conftest.$ac_ext <<_ACEOF |
5358 | /* confdefs.h. */ | |
5359 | _ACEOF | |
5360 | cat confdefs.h >>conftest.$ac_ext | |
5361 | cat >>conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
5362 | /* end confdefs.h. */ |
5363 | #include <ctype.h> | |
7fbd9d09 | 5364 | #include <stdlib.h> |
2f1a1aea FCE |
5365 | #if ((' ' & 0x0FF) == 0x020) |
5366 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5367 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5368 | #else | |
5369 | # define ISLOWER(c) \ | |
5370 | (('a' <= (c) && (c) <= 'i') \ | |
5371 | || ('j' <= (c) && (c) <= 'r') \ | |
5372 | || ('s' <= (c) && (c) <= 'z')) | |
5373 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5374 | #endif | |
5375 | ||
5376 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5377 | int | |
5378 | main () | |
5379 | { | |
5380 | int i; | |
5381 | for (i = 0; i < 256; i++) | |
5382 | if (XOR (islower (i), ISLOWER (i)) | |
5383 | || toupper (i) != TOUPPER (i)) | |
7fbd9d09 FCE |
5384 | return 2; |
5385 | return 0; | |
2f1a1aea FCE |
5386 | } |
5387 | _ACEOF | |
412e1bf7 FCE |
5388 | rm -f conftest$ac_exeext |
5389 | if { (ac_try="$ac_link" | |
5390 | case "(($ac_try" in | |
5391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5392 | *) ac_try_echo=$ac_try;; | |
5393 | esac | |
562d60b0 | 5394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5395 | (eval "$ac_link") 2>&5 |
5396 | ac_status=$? | |
562d60b0 | 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5399 | { (case "(($ac_try" in | |
5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5401 | *) ac_try_echo=$ac_try;; | |
5402 | esac | |
562d60b0 | 5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5404 | (eval "$ac_try") 2>&5 |
5405 | ac_status=$? | |
562d60b0 | 5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5407 | (exit $ac_status); }; }; then |
5408 | : | |
5409 | else | |
562d60b0 DB |
5410 | echo "$as_me: program exited with status $ac_status" >&5 |
5411 | echo "$as_me: failed program was:" >&5 | |
412e1bf7 FCE |
5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
5413 | ||
5414 | ( exit $ac_status ) | |
5415 | ac_cv_header_stdc=no | |
5416 | fi | |
412e1bf7 FCE |
5417 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5418 | fi | |
5419 | ||
5420 | ||
5421 | fi | |
5422 | fi | |
562d60b0 DB |
5423 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5424 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
412e1bf7 FCE |
5425 | if test $ac_cv_header_stdc = yes; then |
5426 | ||
5427 | cat >>confdefs.h <<\_ACEOF | |
5428 | #define STDC_HEADERS 1 | |
5429 | _ACEOF | |
5430 | ||
5431 | fi | |
5432 | ||
5433 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5434 | ||
5435 | ||
5436 | ||
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5444 | inttypes.h stdint.h unistd.h | |
5445 | do | |
562d60b0 DB |
5446 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 5449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
5451 | else |
5452 | cat >conftest.$ac_ext <<_ACEOF | |
5453 | /* confdefs.h. */ | |
5454 | _ACEOF | |
5455 | cat confdefs.h >>conftest.$ac_ext | |
5456 | cat >>conftest.$ac_ext <<_ACEOF | |
5457 | /* end confdefs.h. */ | |
5458 | $ac_includes_default | |
7fbd9d09 | 5459 | |
412e1bf7 FCE |
5460 | #include <$ac_header> |
5461 | _ACEOF | |
5462 | rm -f conftest.$ac_objext | |
5463 | if { (ac_try="$ac_compile" | |
5464 | case "(($ac_try" in | |
5465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5466 | *) ac_try_echo=$ac_try;; | |
5467 | esac | |
562d60b0 | 5468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5469 | (eval "$ac_compile") 2>conftest.er1 |
5470 | ac_status=$? | |
5471 | grep -v '^ *+' conftest.er1 >conftest.err | |
5472 | rm -f conftest.er1 | |
5473 | cat conftest.err >&5 | |
562d60b0 | 5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5475 | (exit $ac_status); } && { |
5476 | test -z "$ac_c_werror_flag" || | |
5477 | test ! -s conftest.err | |
5478 | } && test -s conftest.$ac_objext; then | |
5479 | eval "$as_ac_Header=yes" | |
4a3c19da | 5480 | else |
562d60b0 | 5481 | echo "$as_me: failed program was:" >&5 |
412e1bf7 | 5482 | sed 's/^/| /' conftest.$ac_ext >&5 |
2f1a1aea | 5483 | |
412e1bf7 | 5484 | eval "$as_ac_Header=no" |
2f1a1aea | 5485 | fi |
7fbd9d09 | 5486 | |
412e1bf7 | 5487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 5488 | fi |
562d60b0 DB |
5489 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5491 | echo "${ECHO_T}$ac_res" >&6; } | |
5492 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2f1a1aea | 5493 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 5494 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5495 | _ACEOF |
5496 | ||
5497 | fi | |
5498 | ||
5499 | done | |
5500 | ||
5501 | ||
5502 | ||
5503 | if test "$ac_cv_prog_cc_stdc" != no; then | |
5504 | U= ANSI2KNR= | |
5505 | else | |
5506 | U=_ ANSI2KNR=./ansi2knr | |
5507 | fi | |
5508 | # Ensure some checks needed by ansi2knr itself. | |
5509 | ||
412e1bf7 | 5510 | |
2f1a1aea | 5511 | for ac_header in string.h |
412e1bf7 | 5512 | do |
562d60b0 | 5513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
412e1bf7 | 5514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
5515 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 5517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 | 5519 | fi |
562d60b0 DB |
5520 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5522 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
5523 | else |
5524 | # Is the header compilable? | |
562d60b0 DB |
5525 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
412e1bf7 FCE |
5527 | cat >conftest.$ac_ext <<_ACEOF |
5528 | /* confdefs.h. */ | |
5529 | _ACEOF | |
5530 | cat confdefs.h >>conftest.$ac_ext | |
5531 | cat >>conftest.$ac_ext <<_ACEOF | |
5532 | /* end confdefs.h. */ | |
5533 | $ac_includes_default | |
5534 | #include <$ac_header> | |
5535 | _ACEOF | |
5536 | rm -f conftest.$ac_objext | |
5537 | if { (ac_try="$ac_compile" | |
5538 | case "(($ac_try" in | |
5539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5540 | *) ac_try_echo=$ac_try;; | |
5541 | esac | |
562d60b0 | 5542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5543 | (eval "$ac_compile") 2>conftest.er1 |
5544 | ac_status=$? | |
5545 | grep -v '^ *+' conftest.er1 >conftest.err | |
5546 | rm -f conftest.er1 | |
5547 | cat conftest.err >&5 | |
562d60b0 | 5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5549 | (exit $ac_status); } && { |
5550 | test -z "$ac_c_werror_flag" || | |
5551 | test ! -s conftest.err | |
5552 | } && test -s conftest.$ac_objext; then | |
5553 | ac_header_compiler=yes | |
5554 | else | |
562d60b0 | 5555 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
5556 | sed 's/^/| /' conftest.$ac_ext >&5 |
5557 | ||
5558 | ac_header_compiler=no | |
5559 | fi | |
5560 | ||
5561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
5562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5563 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
412e1bf7 FCE |
5564 | |
5565 | # Is the header present? | |
562d60b0 DB |
5566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
412e1bf7 FCE |
5568 | cat >conftest.$ac_ext <<_ACEOF |
5569 | /* confdefs.h. */ | |
5570 | _ACEOF | |
5571 | cat confdefs.h >>conftest.$ac_ext | |
5572 | cat >>conftest.$ac_ext <<_ACEOF | |
5573 | /* end confdefs.h. */ | |
5574 | #include <$ac_header> | |
5575 | _ACEOF | |
5576 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5577 | case "(($ac_try" in | |
5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5579 | *) ac_try_echo=$ac_try;; | |
5580 | esac | |
562d60b0 | 5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5583 | ac_status=$? | |
5584 | grep -v '^ *+' conftest.er1 >conftest.err | |
5585 | rm -f conftest.er1 | |
5586 | cat conftest.err >&5 | |
562d60b0 | 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5588 | (exit $ac_status); } >/dev/null && { |
5589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5590 | test ! -s conftest.err | |
5591 | }; then | |
5592 | ac_header_preproc=yes | |
5593 | else | |
562d60b0 | 5594 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
5595 | sed 's/^/| /' conftest.$ac_ext >&5 |
5596 | ||
5597 | ac_header_preproc=no | |
5598 | fi | |
5599 | ||
5600 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
5601 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5602 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
412e1bf7 FCE |
5603 | |
5604 | # So? What about this header? | |
5605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5606 | yes:no: ) | |
562d60b0 DB |
5607 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5608 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5610 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
412e1bf7 FCE |
5611 | ac_header_preproc=yes |
5612 | ;; | |
5613 | no:yes:* ) | |
562d60b0 DB |
5614 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5615 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5617 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5618 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5619 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5620 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5621 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5624 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5625 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
412e1bf7 FCE |
5626 | ( cat <<\_ASBOX |
5627 | ## ------------------------------------------- ## | |
5628 | ## Report this to systemtap@sources.redhat.com ## | |
5629 | ## ------------------------------------------- ## | |
5630 | _ASBOX | |
5631 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5632 | ;; | |
5633 | esac | |
562d60b0 DB |
5634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 5636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 5637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
5638 | else |
5639 | eval "$as_ac_Header=\$ac_header_preproc" | |
5640 | fi | |
562d60b0 DB |
5641 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5643 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
5644 | |
5645 | fi | |
562d60b0 | 5646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2f1a1aea | 5647 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 5648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5649 | _ACEOF |
5650 | ||
5651 | fi | |
5652 | ||
5653 | done | |
5654 | ||
5655 | ||
2f1a1aea FCE |
5656 | if test -n "$ac_tool_prefix"; then |
5657 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5658 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
562d60b0 DB |
5659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 5661 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
562d60b0 | 5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
5663 | else |
5664 | if test -n "$RANLIB"; then | |
5665 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5666 | else | |
5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5668 | for as_dir in $PATH | |
5669 | do | |
5670 | IFS=$as_save_IFS | |
5671 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 5672 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 5673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5674 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
562d60b0 | 5675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5676 | break 2 |
5677 | fi | |
5678 | done | |
412e1bf7 | 5679 | done |
7fbd9d09 | 5680 | IFS=$as_save_IFS |
2f1a1aea FCE |
5681 | |
5682 | fi | |
5683 | fi | |
5684 | RANLIB=$ac_cv_prog_RANLIB | |
5685 | if test -n "$RANLIB"; then | |
562d60b0 DB |
5686 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5687 | echo "${ECHO_T}$RANLIB" >&6; } | |
2f1a1aea | 5688 | else |
562d60b0 DB |
5689 | { echo "$as_me:$LINENO: result: no" >&5 |
5690 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
5691 | fi |
5692 | ||
7fbd9d09 | 5693 | |
2f1a1aea FCE |
5694 | fi |
5695 | if test -z "$ac_cv_prog_RANLIB"; then | |
5696 | ac_ct_RANLIB=$RANLIB | |
5697 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5698 | set dummy ranlib; ac_word=$2 | |
562d60b0 DB |
5699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 5701 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
562d60b0 | 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
5703 | else |
5704 | if test -n "$ac_ct_RANLIB"; then | |
5705 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5706 | else | |
5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5708 | for as_dir in $PATH | |
5709 | do | |
5710 | IFS=$as_save_IFS | |
5711 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 5712 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 5713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5714 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
562d60b0 | 5715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5716 | break 2 |
5717 | fi | |
5718 | done | |
412e1bf7 | 5719 | done |
7fbd9d09 | 5720 | IFS=$as_save_IFS |
2f1a1aea | 5721 | |
2f1a1aea FCE |
5722 | fi |
5723 | fi | |
5724 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5725 | if test -n "$ac_ct_RANLIB"; then | |
562d60b0 DB |
5726 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5727 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
2f1a1aea | 5728 | else |
562d60b0 DB |
5729 | { echo "$as_me:$LINENO: result: no" >&5 |
5730 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
5731 | fi |
5732 | ||
7fbd9d09 FCE |
5733 | if test "x$ac_ct_RANLIB" = x; then |
5734 | RANLIB=":" | |
5735 | else | |
5736 | case $cross_compiling:$ac_tool_warned in | |
5737 | yes:) | |
562d60b0 DB |
5738 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5739 | whose name does not start with the host triplet. If you think this | |
5740 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5741 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5742 | whose name does not start with the host triplet. If you think this | |
5743 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7fbd9d09 FCE |
5744 | ac_tool_warned=yes ;; |
5745 | esac | |
5746 | RANLIB=$ac_ct_RANLIB | |
5747 | fi | |
2f1a1aea FCE |
5748 | else |
5749 | RANLIB="$ac_cv_prog_RANLIB" | |
5750 | fi | |
5751 | ||
5752 | ||
5753 | ||
412e1bf7 FCE |
5754 | # Find a good install program. We prefer a C program (faster), |
5755 | # so one script is as good as another. But avoid the broken or | |
5756 | # incompatible versions: | |
5757 | # SysV /etc/install, /usr/sbin/install | |
5758 | # SunOS /usr/etc/install | |
5759 | # IRIX /sbin/install | |
5760 | # AIX /bin/install | |
5761 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5762 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5763 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5764 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5765 | # OS/2's system install, which has a completely different semantic | |
5766 | # ./install, which can be erroneously created by make from ./install.sh. | |
562d60b0 DB |
5767 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5768 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
412e1bf7 FCE |
5769 | if test -z "$INSTALL"; then |
5770 | if test "${ac_cv_path_install+set}" = set; then | |
562d60b0 | 5771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
5772 | else |
5773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5774 | for as_dir in $PATH | |
5775 | do | |
5776 | IFS=$as_save_IFS | |
5777 | test -z "$as_dir" && as_dir=. | |
5778 | # Account for people who put trailing slashes in PATH elements. | |
5779 | case $as_dir/ in | |
5780 | ./ | .// | /cC/* | \ | |
5781 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5782 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5783 | /usr/ucb/* ) ;; | |
5784 | *) | |
5785 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5786 | # Don't use installbsd from OSF since it installs stuff as root | |
5787 | # by default. | |
5788 | for ac_prog in ginstall scoinst install; do | |
5789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5790 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
5791 | if test $ac_prog = install && | |
5792 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5793 | # AIX install. It has an incompatible calling convention. | |
5794 | : | |
5795 | elif test $ac_prog = install && | |
5796 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5797 | # program-specific install script used by HP pwplus--don't use. | |
5798 | : | |
5799 | else | |
562d60b0 DB |
5800 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5801 | break 3 | |
412e1bf7 FCE |
5802 | fi |
5803 | fi | |
5804 | done | |
5805 | done | |
5806 | ;; | |
5807 | esac | |
412e1bf7 FCE |
5808 | done |
5809 | IFS=$as_save_IFS | |
5810 | ||
412e1bf7 FCE |
5811 | |
5812 | fi | |
5813 | if test "${ac_cv_path_install+set}" = set; then | |
5814 | INSTALL=$ac_cv_path_install | |
5815 | else | |
5816 | # As a last resort, use the slow shell script. Don't cache a | |
5817 | # value for INSTALL within a source directory, because that will | |
5818 | # break other packages using the cache if that directory is | |
5819 | # removed, or if the value is a relative name. | |
5820 | INSTALL=$ac_install_sh | |
5821 | fi | |
5822 | fi | |
562d60b0 DB |
5823 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5824 | echo "${ECHO_T}$INSTALL" >&6; } | |
412e1bf7 FCE |
5825 | |
5826 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5827 | # It thinks the first close brace ends the variable substitution. | |
5828 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5829 | ||
5830 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5831 | ||
5832 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2f1a1aea | 5833 | |
562d60b0 DB |
5834 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5835 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
5836 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
412e1bf7 | 5837 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f1a1aea FCE |
5839 | else |
5840 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 5841 | SHELL = /bin/sh |
2f1a1aea | 5842 | all: |
7fbd9d09 | 5843 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
5844 | _ACEOF |
5845 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
5846 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5847 | *@@@%%%=?*=@@@%%%*) | |
5848 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5849 | *) | |
5850 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5851 | esac | |
2f1a1aea FCE |
5852 | rm -f conftest.make |
5853 | fi | |
7fbd9d09 | 5854 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
562d60b0 DB |
5855 | { echo "$as_me:$LINENO: result: yes" >&5 |
5856 | echo "${ECHO_T}yes" >&6; } | |
2f1a1aea FCE |
5857 | SET_MAKE= |
5858 | else | |
562d60b0 DB |
5859 | { echo "$as_me:$LINENO: result: no" >&5 |
5860 | echo "${ECHO_T}no" >&6; } | |
2f1a1aea FCE |
5861 | SET_MAKE="MAKE=${MAKE-make}" |
5862 | fi | |
5863 | ||
5864 | ||
5865 | ||
5866 | ||
7fbd9d09 | 5867 | # Check whether --enable-perfmon was given. |
412e1bf7 | 5868 | if test "${enable_perfmon+set}" = set; then |
7fbd9d09 | 5869 | enableval=$enable_perfmon; |
564eb0a8 DS |
5870 | if test "$enable_perfmon" != "no"; then |
5871 | CPPFLAGS="$CPPFLAGS -DPERFMON" | |
5872 | LIBS="$LIBS -lpfm" | |
5873 | if test "$enable_perfmon" != "yes"; then | |
5874 | CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include" | |
5875 | LDFLAGS="$LDFLAGS -L$enable_perfmon/lib" | |
5876 | fi | |
412e1bf7 | 5877 | |
562d60b0 DB |
5878 | { echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5 |
5879 | echo $ECHO_N "checking for pfm_start in -lpfm... $ECHO_C" >&6; } | |
412e1bf7 | 5880 | if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then |
562d60b0 | 5881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47dd066d WC |
5882 | else |
5883 | ac_check_lib_save_LIBS=$LIBS | |
5884 | LIBS="-lpfm $LIBS" | |
412e1bf7 FCE |
5885 | cat >conftest.$ac_ext <<_ACEOF |
5886 | /* confdefs.h. */ | |
5887 | _ACEOF | |
5888 | cat confdefs.h >>conftest.$ac_ext | |
5889 | cat >>conftest.$ac_ext <<_ACEOF | |
47dd066d WC |
5890 | /* end confdefs.h. */ |
5891 | ||
7fbd9d09 FCE |
5892 | /* Override any GCC internal prototype to avoid an error. |
5893 | Use char because int might match the return type of a GCC | |
5894 | builtin and then its argument prototype would still apply. */ | |
47dd066d WC |
5895 | #ifdef __cplusplus |
5896 | extern "C" | |
5897 | #endif | |
47dd066d WC |
5898 | char pfm_start (); |
5899 | int | |
5900 | main () | |
5901 | { | |
7fbd9d09 | 5902 | return pfm_start (); |
47dd066d WC |
5903 | ; |
5904 | return 0; | |
5905 | } | |
5906 | _ACEOF | |
412e1bf7 FCE |
5907 | rm -f conftest.$ac_objext conftest$ac_exeext |
5908 | if { (ac_try="$ac_link" | |
5909 | case "(($ac_try" in | |
5910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5911 | *) ac_try_echo=$ac_try;; | |
5912 | esac | |
562d60b0 | 5913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
5914 | (eval "$ac_link") 2>conftest.er1 |
5915 | ac_status=$? | |
5916 | grep -v '^ *+' conftest.er1 >conftest.err | |
5917 | rm -f conftest.er1 | |
5918 | cat conftest.err >&5 | |
562d60b0 | 5919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
5920 | (exit $ac_status); } && { |
5921 | test -z "$ac_c_werror_flag" || | |
5922 | test ! -s conftest.err | |
562d60b0 DB |
5923 | } && test -s conftest$ac_exeext && |
5924 | $as_test_x conftest$ac_exeext; then | |
47dd066d WC |
5925 | ac_cv_lib_pfm_pfm_start=yes |
5926 | else | |
562d60b0 | 5927 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
5929 | ||
5930 | ac_cv_lib_pfm_pfm_start=no | |
47dd066d | 5931 | fi |
412e1bf7 | 5932 | |
412e1bf7 FCE |
5933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5934 | conftest$ac_exeext conftest.$ac_ext | |
47dd066d WC |
5935 | LIBS=$ac_check_lib_save_LIBS |
5936 | fi | |
562d60b0 DB |
5937 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5 |
5938 | echo "${ECHO_T}$ac_cv_lib_pfm_pfm_start" >&6; } | |
5939 | if test $ac_cv_lib_pfm_pfm_start = yes; then | |
47dd066d WC |
5940 | cat >>confdefs.h <<_ACEOF |
5941 | #define HAVE_LIBPFM 1 | |
5942 | _ACEOF | |
5943 | ||
5944 | LIBS="-lpfm $LIBS" | |
5945 | ||
5946 | else | |
5947 | ||
562d60b0 DB |
5948 | { { echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5 |
5949 | echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;} | |
412e1bf7 | 5950 | { (exit 1); exit 1; }; } |
47dd066d WC |
5951 | fi |
5952 | ||
564eb0a8 | 5953 | fi |
7fbd9d09 FCE |
5954 | fi |
5955 | ||
70d28673 DS |
5956 | |
5957 | if test "${enable_prologues+set}" != set; then | |
562d60b0 DB |
5958 | { echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5 |
5959 | echo $ECHO_N "checking to see if prologue searching should be the default... $ECHO_C" >&6; } | |
70d28673 DS |
5960 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
5961 | echo ' yes ' | |
5962 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
5963 | enable_prologues=yes | |
562d60b0 DB |
5964 | { echo "$as_me:$LINENO: result: yes" >&5 |
5965 | echo "${ECHO_T}yes" >&6; } | |
70d28673 | 5966 | else |
562d60b0 DB |
5967 | { echo "$as_me:$LINENO: result: no" >&5 |
5968 | echo "${ECHO_T}no" >&6; } | |
70d28673 DS |
5969 | fi |
5970 | fi | |
7fbd9d09 | 5971 | # Check whether --enable-prologues was given. |
412e1bf7 | 5972 | if test "${enable_prologues+set}" = set; then |
7fbd9d09 | 5973 | enableval=$enable_prologues; |
70d28673 | 5974 | if test "$enable_prologues" = yes; then |
44f75386 | 5975 | |
412e1bf7 | 5976 | cat >>confdefs.h <<\_ACEOF |
562d60b0 | 5977 | #define ENABLE_PROLOGUES |
412e1bf7 | 5978 | _ACEOF |
44f75386 | 5979 | |
70d28673 | 5980 | fi |
7fbd9d09 | 5981 | fi |
70d28673 | 5982 | |
7fbd9d09 FCE |
5983 | |
5984 | # Check whether --enable-ssp was given. | |
412e1bf7 | 5985 | if test "${enable_ssp+set}" = set; then |
7fbd9d09 FCE |
5986 | enableval=$enable_ssp; |
5987 | fi | |
9921a199 | 5988 | |
412e1bf7 | 5989 | if test "x$enable_ssp" != xno; then |
bbfd8c1a FCE |
5990 | |
5991 | save_CFLAGS="$CFLAGS" | |
5992 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
5993 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
5994 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
412e1bf7 | 5995 | cat >conftest.$ac_ext <<_ACEOF |
bbfd8c1a FCE |
5996 | int something (); |
5997 | _ACEOF | |
412e1bf7 FCE |
5998 | rm -f conftest.$ac_objext |
5999 | if { (ac_try="$ac_compile" | |
6000 | case "(($ac_try" in | |
6001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6002 | *) ac_try_echo=$ac_try;; | |
6003 | esac | |
562d60b0 | 6004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6005 | (eval "$ac_compile") 2>conftest.er1 |
6006 | ac_status=$? | |
6007 | grep -v '^ *+' conftest.er1 >conftest.err | |
6008 | rm -f conftest.er1 | |
6009 | cat conftest.err >&5 | |
562d60b0 | 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6011 | (exit $ac_status); } && { |
6012 | test -z "$ac_c_werror_flag" || | |
6013 | test ! -s conftest.err | |
6014 | } && test -s conftest.$ac_objext; then | |
818ba2bc | 6015 | |
562d60b0 DB |
6016 | { echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5 |
6017 | echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} | |
f0510eaa FCE |
6018 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6019 | CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a | 6020 | else |
562d60b0 | 6021 | echo "$as_me: failed program was:" >&5 |
412e1bf7 | 6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
bbfd8c1a | 6023 | |
412e1bf7 | 6024 | |
562d60b0 DB |
6025 | { echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5 |
6026 | echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} | |
bbfd8c1a FCE |
6027 | CFLAGS="$save_CFLAGS" |
6028 | CXXFLAGS="$save_CXXFLAGS" | |
6029 | fi | |
412e1bf7 | 6030 | |
7fbd9d09 | 6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 6032 | fi |
70d28673 | 6033 | |
412e1bf7 | 6034 | |
e1e3ba36 | 6035 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 6036 | # Check whether --enable-pie was given. |
412e1bf7 | 6037 | if test "${enable_pie+set}" = set; then |
7fbd9d09 FCE |
6038 | enableval=$enable_pie; |
6039 | fi | |
8730f377 | 6040 | |
412e1bf7 | 6041 | if test "x$enable_pie" == xyes; then |
8730f377 FCE |
6042 | |
6043 | save_CFLAGS="$CFLAGS" | |
6044 | save_CXXFLAGS="$CXXFLAGS" | |
6045 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
6046 | CFLAGS="$CFLAGS -fPIE" |
6047 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 | 6048 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
412e1bf7 | 6049 | cat >conftest.$ac_ext <<_ACEOF |
8730f377 FCE |
6050 | void main () {} |
6051 | _ACEOF | |
412e1bf7 FCE |
6052 | rm -f conftest.$ac_objext conftest$ac_exeext |
6053 | if { (ac_try="$ac_link" | |
6054 | case "(($ac_try" in | |
6055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6056 | *) ac_try_echo=$ac_try;; | |
6057 | esac | |
562d60b0 | 6058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6059 | (eval "$ac_link") 2>conftest.er1 |
6060 | ac_status=$? | |
6061 | grep -v '^ *+' conftest.er1 >conftest.err | |
6062 | rm -f conftest.er1 | |
6063 | cat conftest.err >&5 | |
562d60b0 | 6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6065 | (exit $ac_status); } && { |
6066 | test -z "$ac_c_werror_flag" || | |
6067 | test ! -s conftest.err | |
562d60b0 DB |
6068 | } && test -s conftest$ac_exeext && |
6069 | $as_test_x conftest$ac_exeext; then | |
818ba2bc | 6070 | |
562d60b0 DB |
6071 | { echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5 |
6072 | echo "$as_me: Compiling with gcc pie et al." >&6;} | |
8730f377 FCE |
6073 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
6074 | # and interfere with the .so's built therein | |
5574ef2c | 6075 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 6076 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
6077 | PIECFLAGS="$CFLAGS" |
6078 | CFLAGS="$save_CFLAGS" | |
6079 | PIECXXFLAGS="$CXXFLAGS" | |
6080 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
6081 | |
6082 | else | |
562d60b0 | 6083 | echo "$as_me: failed program was:" >&5 |
412e1bf7 | 6084 | sed 's/^/| /' conftest.$ac_ext >&5 |
8730f377 | 6085 | |
412e1bf7 | 6086 | |
562d60b0 DB |
6087 | { echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5 |
6088 | echo "$as_me: Compiler does not support -pie et al." >&6;} | |
5574ef2c | 6089 | PIECFLAGS="" |
8730f377 | 6090 | CFLAGS="$save_CFLAGS" |
5574ef2c | 6091 | PIECXXFLAGS="" |
8730f377 FCE |
6092 | CXXFLAGS="$save_CXXFLAGS" |
6093 | PIELDFLAGS="" | |
6094 | LDFLAGS="$save_LDFLAGS" | |
6095 | fi | |
412e1bf7 | 6096 | |
412e1bf7 FCE |
6097 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6098 | conftest$ac_exeext conftest.$ac_ext | |
8730f377 FCE |
6099 | fi |
6100 | ||
6101 | ||
6102 | ||
5574ef2c | 6103 | |
412e1bf7 | 6104 | |
7fbd9d09 | 6105 | # Check whether --enable-sqlite was given. |
412e1bf7 | 6106 | if test "${enable_sqlite+set}" = set; then |
7fbd9d09 | 6107 | enableval=$enable_sqlite; |
9921a199 | 6108 | else |
e8f3c2c2 | 6109 | enable_sqlite=check |
7fbd9d09 FCE |
6110 | fi |
6111 | sqlite3_LIBS= | |
412e1bf7 | 6112 | if test "x$enable_sqlite" != xno; then |
562d60b0 DB |
6113 | { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 |
6114 | echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; } | |
412e1bf7 | 6115 | if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then |
562d60b0 | 6116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
42feb3c0 WC |
6117 | else |
6118 | ac_check_lib_save_LIBS=$LIBS | |
6119 | LIBS="-lsqlite3 $LIBS" | |
412e1bf7 FCE |
6120 | cat >conftest.$ac_ext <<_ACEOF |
6121 | /* confdefs.h. */ | |
6122 | _ACEOF | |
6123 | cat confdefs.h >>conftest.$ac_ext | |
6124 | cat >>conftest.$ac_ext <<_ACEOF | |
42feb3c0 WC |
6125 | /* end confdefs.h. */ |
6126 | ||
7fbd9d09 FCE |
6127 | /* Override any GCC internal prototype to avoid an error. |
6128 | Use char because int might match the return type of a GCC | |
6129 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
6130 | #ifdef __cplusplus |
6131 | extern "C" | |
6132 | #endif | |
6133 | char sqlite3_open (); | |
6134 | int | |
6135 | main () | |
6136 | { | |
7fbd9d09 | 6137 | return sqlite3_open (); |
42feb3c0 WC |
6138 | ; |
6139 | return 0; | |
6140 | } | |
6141 | _ACEOF | |
412e1bf7 FCE |
6142 | rm -f conftest.$ac_objext conftest$ac_exeext |
6143 | if { (ac_try="$ac_link" | |
6144 | case "(($ac_try" in | |
6145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6146 | *) ac_try_echo=$ac_try;; | |
6147 | esac | |
562d60b0 | 6148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6149 | (eval "$ac_link") 2>conftest.er1 |
6150 | ac_status=$? | |
6151 | grep -v '^ *+' conftest.er1 >conftest.err | |
6152 | rm -f conftest.er1 | |
6153 | cat conftest.err >&5 | |
562d60b0 | 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6155 | (exit $ac_status); } && { |
6156 | test -z "$ac_c_werror_flag" || | |
6157 | test ! -s conftest.err | |
562d60b0 DB |
6158 | } && test -s conftest$ac_exeext && |
6159 | $as_test_x conftest$ac_exeext; then | |
42feb3c0 WC |
6160 | ac_cv_lib_sqlite3_sqlite3_open=yes |
6161 | else | |
562d60b0 | 6162 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
6163 | sed 's/^/| /' conftest.$ac_ext >&5 |
6164 | ||
6165 | ac_cv_lib_sqlite3_sqlite3_open=no | |
42feb3c0 | 6166 | fi |
412e1bf7 | 6167 | |
412e1bf7 FCE |
6168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6169 | conftest$ac_exeext conftest.$ac_ext | |
42feb3c0 WC |
6170 | LIBS=$ac_check_lib_save_LIBS |
6171 | fi | |
562d60b0 DB |
6172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
6173 | echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; } | |
6174 | if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then | |
9921a199 | 6175 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 6176 | |
0d563e60 | 6177 | |
412e1bf7 FCE |
6178 | cat >>confdefs.h <<\_ACEOF |
6179 | #define HAVE_LIBSQLITE3 1 | |
6180 | _ACEOF | |
07606685 | 6181 | |
9921a199 DS |
6182 | else |
6183 | if test "x$enable_sqlite" != xcheck; then | |
562d60b0 | 6184 | { { echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed |
412e1bf7 | 6185 | See \`config.log' for more details." >&5 |
562d60b0 | 6186 | echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed |
412e1bf7 | 6187 | See \`config.log' for more details." >&2;} |
562d60b0 | 6188 | { (exit 1); exit 1; }; } |
9921a199 | 6189 | fi |
42feb3c0 WC |
6190 | fi |
6191 | ||
9921a199 | 6192 | fi |
44f75386 | 6193 | |
412e1bf7 | 6194 | |
6d14a4a9 | 6195 | # Check whether --enable-translator was given. |
412e1bf7 | 6196 | if test "${enable_translator+set}" = set; then |
6d14a4a9 EB |
6197 | enableval=$enable_translator; |
6198 | else | |
6199 | enable_translator="yes" | |
6200 | fi | |
6201 | ||
6202 | if test "$enable_translator" == "yes"; then | |
6203 | BUILD_TRANSLATOR_TRUE= | |
6204 | BUILD_TRANSLATOR_FALSE='#' | |
6205 | else | |
6206 | BUILD_TRANSLATOR_TRUE='#' | |
6207 | BUILD_TRANSLATOR_FALSE= | |
6208 | fi | |
6209 | ||
6210 | ||
7fbd9d09 | 6211 | # Check whether --enable-crash was given. |
412e1bf7 | 6212 | if test "${enable_crash+set}" = set; then |
7fbd9d09 | 6213 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
6214 | save_CPPFLAGS="$CPPFLAGS" |
6215 | if test "$enable_crash" != "yes"; then | |
6216 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 6217 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 6218 | |
412e1bf7 FCE |
6219 | fi |
6220 | ||
6221 | for ac_header in crash/defs.h | |
6222 | do | |
562d60b0 DB |
6223 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6224 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 6226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 6227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
6228 | else |
6229 | cat >conftest.$ac_ext <<_ACEOF | |
6230 | /* confdefs.h. */ | |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
6235 | ||
4a3c19da | 6236 | #define NR_CPUS 256 |
7fbd9d09 | 6237 | |
412e1bf7 FCE |
6238 | |
6239 | #include <$ac_header> | |
6240 | _ACEOF | |
6241 | rm -f conftest.$ac_objext | |
6242 | if { (ac_try="$ac_compile" | |
6243 | case "(($ac_try" in | |
6244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6245 | *) ac_try_echo=$ac_try;; | |
6246 | esac | |
562d60b0 | 6247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6248 | (eval "$ac_compile") 2>conftest.er1 |
6249 | ac_status=$? | |
6250 | grep -v '^ *+' conftest.er1 >conftest.err | |
6251 | rm -f conftest.er1 | |
6252 | cat conftest.err >&5 | |
562d60b0 | 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6254 | (exit $ac_status); } && { |
6255 | test -z "$ac_c_werror_flag" || | |
6256 | test ! -s conftest.err | |
6257 | } && test -s conftest.$ac_objext; then | |
6258 | eval "$as_ac_Header=yes" | |
6259 | else | |
562d60b0 | 6260 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
6261 | sed 's/^/| /' conftest.$ac_ext >&5 |
6262 | ||
6263 | eval "$as_ac_Header=no" | |
6264 | fi | |
6265 | ||
6266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6267 | fi | |
562d60b0 DB |
6268 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6270 | echo "${ECHO_T}$ac_res" >&6; } | |
6271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35a04c8e | 6272 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 6273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35a04c8e | 6274 | _ACEOF |
564eb0a8 | 6275 | |
35a04c8e | 6276 | else |
562d60b0 DB |
6277 | { { echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5 |
6278 | echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;} | |
412e1bf7 | 6279 | { (exit 1); exit 1; }; } |
35a04c8e FCE |
6280 | fi |
6281 | ||
6282 | done | |
6283 | ||
564eb0a8 DS |
6284 | CPPFLAGS="$save_CPPFLAGS" |
6285 | fi | |
6286 | else | |
6287 | enable_crash="no" | |
7fbd9d09 | 6288 | fi |
564eb0a8 | 6289 | |
7fbd9d09 | 6290 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
6291 | BUILD_CRASHMOD_TRUE= |
6292 | BUILD_CRASHMOD_FALSE='#' | |
6293 | else | |
6294 | BUILD_CRASHMOD_TRUE='#' | |
6295 | BUILD_CRASHMOD_FALSE= | |
6296 | fi | |
6297 | ||
6298 | ||
92aff3c7 | 6299 | building_docs="no" |
7fbd9d09 | 6300 | # Check whether --enable-docs was given. |
412e1bf7 | 6301 | if test "${enable_docs+set}" = set; then |
7fbd9d09 | 6302 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
6303 | else |
6304 | enable_docs="check" | |
7fbd9d09 FCE |
6305 | fi |
6306 | ||
465e8fbf FCE |
6307 | # Extract the first word of "latex", so it can be a program name with args. |
6308 | set dummy latex; ac_word=$2 | |
562d60b0 DB |
6309 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6311 | if test "${ac_cv_prog_have_latex+set}" = set; then |
562d60b0 | 6312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
465e8fbf FCE |
6313 | else |
6314 | if test -n "$have_latex"; then | |
6315 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
6316 | else | |
6317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6318 | for as_dir in $PATH | |
6319 | do | |
6320 | IFS=$as_save_IFS | |
6321 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6322 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6324 | ac_cv_prog_have_latex="yes" |
562d60b0 | 6325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6326 | break 2 |
6327 | fi | |
6328 | done | |
412e1bf7 | 6329 | done |
7fbd9d09 | 6330 | IFS=$as_save_IFS |
465e8fbf FCE |
6331 | |
6332 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
6333 | fi | |
6334 | fi | |
6335 | have_latex=$ac_cv_prog_have_latex | |
6336 | if test -n "$have_latex"; then | |
562d60b0 DB |
6337 | { echo "$as_me:$LINENO: result: $have_latex" >&5 |
6338 | echo "${ECHO_T}$have_latex" >&6; } | |
465e8fbf | 6339 | else |
562d60b0 DB |
6340 | { echo "$as_me:$LINENO: result: no" >&5 |
6341 | echo "${ECHO_T}no" >&6; } | |
465e8fbf FCE |
6342 | fi |
6343 | ||
7fbd9d09 | 6344 | |
465e8fbf FCE |
6345 | # Extract the first word of "dvips", so it can be a program name with args. |
6346 | set dummy dvips; ac_word=$2 | |
562d60b0 DB |
6347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6349 | if test "${ac_cv_prog_have_dvips+set}" = set; then |
562d60b0 | 6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
465e8fbf FCE |
6351 | else |
6352 | if test -n "$have_dvips"; then | |
6353 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
6354 | else | |
6355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6356 | for as_dir in $PATH | |
6357 | do | |
6358 | IFS=$as_save_IFS | |
6359 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6360 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6362 | ac_cv_prog_have_dvips="yes" |
562d60b0 | 6363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6364 | break 2 |
6365 | fi | |
6366 | done | |
412e1bf7 | 6367 | done |
7fbd9d09 | 6368 | IFS=$as_save_IFS |
465e8fbf FCE |
6369 | |
6370 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
6371 | fi | |
6372 | fi | |
6373 | have_dvips=$ac_cv_prog_have_dvips | |
6374 | if test -n "$have_dvips"; then | |
562d60b0 DB |
6375 | { echo "$as_me:$LINENO: result: $have_dvips" >&5 |
6376 | echo "${ECHO_T}$have_dvips" >&6; } | |
465e8fbf | 6377 | else |
562d60b0 DB |
6378 | { echo "$as_me:$LINENO: result: no" >&5 |
6379 | echo "${ECHO_T}no" >&6; } | |
465e8fbf FCE |
6380 | fi |
6381 | ||
7fbd9d09 | 6382 | |
465e8fbf FCE |
6383 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
6384 | set dummy ps2pdf; ac_word=$2 | |
562d60b0 DB |
6385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6387 | if test "${ac_cv_prog_have_ps2pdf+set}" = set; then |
562d60b0 | 6388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
465e8fbf FCE |
6389 | else |
6390 | if test -n "$have_ps2pdf"; then | |
6391 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
6392 | else | |
6393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6394 | for as_dir in $PATH | |
6395 | do | |
6396 | IFS=$as_save_IFS | |
6397 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6398 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6400 | ac_cv_prog_have_ps2pdf="yes" |
562d60b0 | 6401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6402 | break 2 |
6403 | fi | |
6404 | done | |
412e1bf7 | 6405 | done |
7fbd9d09 | 6406 | IFS=$as_save_IFS |
465e8fbf FCE |
6407 | |
6408 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
6409 | fi | |
6410 | fi | |
6411 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
6412 | if test -n "$have_ps2pdf"; then | |
562d60b0 DB |
6413 | { echo "$as_me:$LINENO: result: $have_ps2pdf" >&5 |
6414 | echo "${ECHO_T}$have_ps2pdf" >&6; } | |
465e8fbf | 6415 | else |
562d60b0 DB |
6416 | { echo "$as_me:$LINENO: result: no" >&5 |
6417 | echo "${ECHO_T}no" >&6; } | |
465e8fbf FCE |
6418 | fi |
6419 | ||
7fbd9d09 | 6420 | |
b62c413b EM |
6421 | # Extract the first word of "latex2html", so it can be a program name with args. |
6422 | set dummy latex2html; ac_word=$2 | |
562d60b0 DB |
6423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6425 | if test "${ac_cv_prog_have_latex2html+set}" = set; then |
562d60b0 | 6426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b62c413b EM |
6427 | else |
6428 | if test -n "$have_latex2html"; then | |
6429 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
6430 | else | |
6431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6432 | for as_dir in $PATH | |
6433 | do | |
6434 | IFS=$as_save_IFS | |
6435 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6436 | for ac_exec_ext in '' $ac_executable_extensions; do |
b62c413b EM |
6437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6438 | ac_cv_prog_have_latex2html="yes" | |
562d60b0 | 6439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b62c413b EM |
6440 | break 2 |
6441 | fi | |
6442 | done | |
412e1bf7 | 6443 | done |
b62c413b EM |
6444 | IFS=$as_save_IFS |
6445 | ||
6446 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
6447 | fi | |
6448 | fi | |
6449 | have_latex2html=$ac_cv_prog_have_latex2html | |
6450 | if test -n "$have_latex2html"; then | |
562d60b0 DB |
6451 | { echo "$as_me:$LINENO: result: $have_latex2html" >&5 |
6452 | echo "${ECHO_T}$have_latex2html" >&6; } | |
b62c413b | 6453 | else |
562d60b0 DB |
6454 | { echo "$as_me:$LINENO: result: no" >&5 |
6455 | echo "${ECHO_T}no" >&6; } | |
b62c413b EM |
6456 | fi |
6457 | ||
6458 | ||
6459 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then | |
2d4b8ddf | 6460 | if test "$enable_docs" == "yes"; then |
562d60b0 DB |
6461 | { { echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5 |
6462 | echo "$as_me: error: cannot find all tools for building documentation" >&2;} | |
412e1bf7 | 6463 | { (exit 1); exit 1; }; } |
465e8fbf | 6464 | fi |
2d4b8ddf | 6465 | if test "$enable_docs" == "check"; then |
562d60b0 DB |
6466 | { echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5 |
6467 | echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} | |
2d4b8ddf | 6468 | fi |
465e8fbf | 6469 | fi |
b62c413b | 6470 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
6471 | building_docs="yes" |
6472 | fi | |
7fbd9d09 | 6473 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
6474 | BUILD_DOCS_TRUE= |
6475 | BUILD_DOCS_FALSE='#' | |
6476 | else | |
6477 | BUILD_DOCS_TRUE='#' | |
6478 | BUILD_DOCS_FALSE= | |
6479 | fi | |
6480 | ||
6481 | ||
92aff3c7 | 6482 | building_refdocs="no" |
7fbd9d09 | 6483 | # Check whether --enable-refdocs was given. |
412e1bf7 | 6484 | if test "${enable_refdocs+set}" = set; then |
7fbd9d09 | 6485 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
6486 | else |
6487 | enable_refdocs="check" | |
7fbd9d09 FCE |
6488 | fi |
6489 | ||
92aff3c7 | 6490 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
562d60b0 DB |
6491 | { { echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5 |
6492 | echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;} | |
412e1bf7 | 6493 | { (exit 1); exit 1; }; } |
92aff3c7 WC |
6494 | fi |
6495 | # Extract the first word of "xmlto", so it can be a program name with args. | |
6496 | set dummy xmlto; ac_word=$2 | |
562d60b0 DB |
6497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6499 | if test "${ac_cv_prog_have_xmlto+set}" = set; then |
562d60b0 | 6500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
92aff3c7 WC |
6501 | else |
6502 | if test -n "$have_xmlto"; then | |
6503 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
6504 | else | |
6505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6506 | for as_dir in $PATH | |
6507 | do | |
6508 | IFS=$as_save_IFS | |
6509 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6510 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 6511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
92aff3c7 | 6512 | ac_cv_prog_have_xmlto="yes" |
562d60b0 | 6513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
6514 | break 2 |
6515 | fi | |
6516 | done | |
412e1bf7 | 6517 | done |
7fbd9d09 | 6518 | IFS=$as_save_IFS |
92aff3c7 WC |
6519 | |
6520 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
6521 | fi | |
6522 | fi | |
6523 | have_xmlto=$ac_cv_prog_have_xmlto | |
6524 | if test -n "$have_xmlto"; then | |
562d60b0 DB |
6525 | { echo "$as_me:$LINENO: result: $have_xmlto" >&5 |
6526 | echo "${ECHO_T}$have_xmlto" >&6; } | |
92aff3c7 | 6527 | else |
562d60b0 DB |
6528 | { echo "$as_me:$LINENO: result: no" >&5 |
6529 | echo "${ECHO_T}no" >&6; } | |
92aff3c7 WC |
6530 | fi |
6531 | ||
7fbd9d09 | 6532 | |
ccf8bc85 EM |
6533 | if test "$enable_refdocs" == "yes"; then |
6534 | if test "x${have_xmlto}" != "xyes"; then | |
562d60b0 DB |
6535 | { { echo "$as_me:$LINENO: error: cannot find xmlto for building reference documentation" >&5 |
6536 | echo "$as_me: error: cannot find xmlto for building reference documentation" >&2;} | |
412e1bf7 | 6537 | { (exit 1); exit 1; }; } |
ccf8bc85 EM |
6538 | fi |
6539 | fi | |
6540 | if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then | |
6541 | building_refdocs="yes" | |
6542 | fi | |
6543 | if test "$building_refdocs" == "yes"; then | |
6544 | BUILD_REFDOCS_TRUE= | |
6545 | BUILD_REFDOCS_FALSE='#' | |
6546 | else | |
6547 | BUILD_REFDOCS_TRUE='#' | |
6548 | BUILD_REFDOCS_FALSE= | |
6549 | fi | |
6550 | ||
6551 | ||
468abaf4 | 6552 | cat > conftest.xml << 'EOF' |
aa5951be WC |
6553 | <?xml version="1.0" encoding="UTF-8"?> |
6554 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
6555 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
6556 | <book lang="en"> |
6557 | <bookinfo><title>foo</title></bookinfo> | |
6558 | <chapter><title>bar</title><para>baz</para></chapter> | |
aa5951be WC |
6559 | </book> |
6560 | EOF | |
468abaf4 FCE |
6561 | |
6562 | if test "x${have_xmlto}" == "xyes"; then | |
562d60b0 DB |
6563 | { echo "$as_me:$LINENO: checking for xmlto --stringparam support" >&5 |
6564 | echo $ECHO_N "checking for xmlto --stringparam support... $ECHO_C" >&6; } | |
520f5cca | 6565 | xmlto --stringparam man.authors.section.enabled=0 txt conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
6566 | if test $? == 0; then |
6567 | have_xmlto_stringparam="yes" | |
562d60b0 DB |
6568 | { echo "$as_me:$LINENO: result: yes" >&5 |
6569 | echo "${ECHO_T}yes" >&6; } | |
468abaf4 | 6570 | else |
562d60b0 DB |
6571 | { echo "$as_me:$LINENO: result: no" >&5 |
6572 | echo "${ECHO_T}no" >&6; } | |
468abaf4 FCE |
6573 | fi |
6574 | rm -f conftest.txt | |
6575 | fi | |
6576 | if test "$have_xmlto_stringparam" == "yes"; then | |
6577 | XMLTO_STRINGPARAM_TRUE= | |
6578 | XMLTO_STRINGPARAM_FALSE='#' | |
6579 | else | |
6580 | XMLTO_STRINGPARAM_TRUE='#' | |
6581 | XMLTO_STRINGPARAM_FALSE= | |
6582 | fi | |
6583 | ||
6584 | ||
6585 | if test "x${building_refdocs}" == "xyes"; then | |
562d60b0 DB |
6586 | { echo "$as_me:$LINENO: checking for xmlto pdf support" >&5 |
6587 | echo $ECHO_N "checking for xmlto pdf support... $ECHO_C" >&6; } | |
468abaf4 | 6588 | xmlto pdf conftest.xml >& /dev/null |
aa5951be WC |
6589 | if test $? == 0; then |
6590 | have_xmlto_pdf="yes" | |
562d60b0 DB |
6591 | { echo "$as_me:$LINENO: result: yes" >&5 |
6592 | echo "${ECHO_T}yes" >&6; } | |
aa5951be | 6593 | else |
562d60b0 DB |
6594 | { echo "$as_me:$LINENO: result: no" >&5 |
6595 | echo "${ECHO_T}no" >&6; } | |
6596 | { echo "$as_me:$LINENO: WARNING: Not building reference documentation in PDF format" >&5 | |
6597 | echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;} | |
aa5951be | 6598 | fi |
468abaf4 | 6599 | rm -f conftest.pdf |
aa5951be | 6600 | fi |
7a18a126 | 6601 | if test "maybe later" == "yes"; then |
ccf8bc85 EM |
6602 | BUILD_PDFREFDOCS_TRUE= |
6603 | BUILD_PDFREFDOCS_FALSE='#' | |
92aff3c7 | 6604 | else |
ccf8bc85 EM |
6605 | BUILD_PDFREFDOCS_TRUE='#' |
6606 | BUILD_PDFREFDOCS_FALSE= | |
92aff3c7 WC |
6607 | fi |
6608 | ||
6609 | ||
468abaf4 FCE |
6610 | rm -f conftest.xml |
6611 | ||
6612 | ||
7fbd9d09 | 6613 | # Check whether --enable-server was given. |
412e1bf7 | 6614 | if test "${enable_server+set}" = set; then |
7fbd9d09 | 6615 | enableval=$enable_server; enable_server=$enableval |
19a0d4b6 MW |
6616 | else |
6617 | enable_server="check" | |
7fbd9d09 FCE |
6618 | fi |
6619 | ||
07f82253 MW |
6620 | # Extract the first word of "certutil", so it can be a program name with args. |
6621 | set dummy certutil; ac_word=$2 | |
562d60b0 DB |
6622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 6624 | if test "${ac_cv_prog_have_certutil+set}" = set; then |
562d60b0 | 6625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
07f82253 MW |
6626 | else |
6627 | if test -n "$have_certutil"; then | |
6628 | ac_cv_prog_have_certutil="$have_certutil" # Let the user override the test. | |
6629 | else | |
6630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6631 | for as_dir in $PATH | |
6632 | do | |
6633 | IFS=$as_save_IFS | |
6634 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 6635 | for ac_exec_ext in '' $ac_executable_extensions; do |
07f82253 MW |
6636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6637 | ac_cv_prog_have_certutil="yes" | |
562d60b0 | 6638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
07f82253 MW |
6639 | break 2 |
6640 | fi | |
6641 | done | |
412e1bf7 | 6642 | done |
07f82253 MW |
6643 | IFS=$as_save_IFS |
6644 | ||
6645 | test -z "$ac_cv_prog_have_certutil" && ac_cv_prog_have_certutil="no" | |
6646 | fi | |
6647 | fi | |
6648 | have_certutil=$ac_cv_prog_have_certutil | |
6649 | if test -n "$have_certutil"; then | |
562d60b0 DB |
6650 | { echo "$as_me:$LINENO: result: $have_certutil" >&5 |
6651 | echo "${ECHO_T}$have_certutil" >&6; } | |
07f82253 | 6652 | else |
562d60b0 DB |
6653 | { echo "$as_me:$LINENO: result: no" >&5 |
6654 | echo "${ECHO_T}no" >&6; } | |
07f82253 MW |
6655 | fi |
6656 | ||
6657 | ||
562d60b0 DB |
6658 | { echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5 |
6659 | echo $ECHO_N "checking for /usr/include/nss3... $ECHO_C" >&6; } | |
412e1bf7 | 6660 | if test "${ac_cv_file__usr_include_nss3+set}" = set; then |
562d60b0 | 6661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43498922 | 6662 | else |
8ca54d60 | 6663 | test "$cross_compiling" = yes && |
562d60b0 DB |
6664 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6665 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
412e1bf7 | 6666 | { (exit 1); exit 1; }; } |
8ca54d60 EB |
6667 | if test -r "/usr/include/nss3"; then |
6668 | ac_cv_file__usr_include_nss3=yes | |
6669 | else | |
6670 | ac_cv_file__usr_include_nss3=no | |
43498922 | 6671 | fi |
8ca54d60 | 6672 | fi |
562d60b0 DB |
6673 | { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5 |
6674 | echo "${ECHO_T}$ac_cv_file__usr_include_nss3" >&6; } | |
6675 | if test $ac_cv_file__usr_include_nss3 = yes; then | |
8ca54d60 | 6676 | nssdir=nss3 |
43498922 | 6677 | else |
8ca54d60 | 6678 | |
562d60b0 DB |
6679 | { echo "$as_me:$LINENO: checking for /usr/include/nss" >&5 |
6680 | echo $ECHO_N "checking for /usr/include/nss... $ECHO_C" >&6; } | |
412e1bf7 | 6681 | if test "${ac_cv_file__usr_include_nss+set}" = set; then |
562d60b0 | 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ca54d60 EB |
6683 | else |
6684 | test "$cross_compiling" = yes && | |
562d60b0 DB |
6685 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6686 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
412e1bf7 | 6687 | { (exit 1); exit 1; }; } |
8ca54d60 EB |
6688 | if test -r "/usr/include/nss"; then |
6689 | ac_cv_file__usr_include_nss=yes | |
6690 | else | |
6691 | ac_cv_file__usr_include_nss=no | |
6692 | fi | |
6693 | fi | |
562d60b0 DB |
6694 | { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5 |
6695 | echo "${ECHO_T}$ac_cv_file__usr_include_nss" >&6; } | |
6696 | if test $ac_cv_file__usr_include_nss = yes; then | |
8ca54d60 | 6697 | nssdir=nss |
43498922 DB |
6698 | fi |
6699 | ||
6700 | ||
6701 | fi | |
8ca54d60 | 6702 | |
562d60b0 DB |
6703 | { echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5 |
6704 | echo $ECHO_N "checking for /usr/include/nspr4... $ECHO_C" >&6; } | |
412e1bf7 | 6705 | if test "${ac_cv_file__usr_include_nspr4+set}" = set; then |
562d60b0 | 6706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43498922 | 6707 | else |
8ca54d60 | 6708 | test "$cross_compiling" = yes && |
562d60b0 DB |
6709 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6710 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
412e1bf7 | 6711 | { (exit 1); exit 1; }; } |
8ca54d60 EB |
6712 | if test -r "/usr/include/nspr4"; then |
6713 | ac_cv_file__usr_include_nspr4=yes | |
43498922 | 6714 | else |
8ca54d60 EB |
6715 | ac_cv_file__usr_include_nspr4=no |
6716 | fi | |
43498922 | 6717 | fi |
562d60b0 DB |
6718 | { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5 |
6719 | echo "${ECHO_T}$ac_cv_file__usr_include_nspr4" >&6; } | |
6720 | if test $ac_cv_file__usr_include_nspr4 = yes; then | |
8ca54d60 EB |
6721 | nsprdir=nspr4 |
6722 | else | |
43498922 | 6723 | |
562d60b0 DB |
6724 | { echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5 |
6725 | echo $ECHO_N "checking for /usr/include/nspr... $ECHO_C" >&6; } | |
412e1bf7 | 6726 | if test "${ac_cv_file__usr_include_nspr+set}" = set; then |
562d60b0 | 6727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43498922 | 6728 | else |
8ca54d60 | 6729 | test "$cross_compiling" = yes && |
562d60b0 DB |
6730 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6731 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
412e1bf7 | 6732 | { (exit 1); exit 1; }; } |
8ca54d60 EB |
6733 | if test -r "/usr/include/nspr"; then |
6734 | ac_cv_file__usr_include_nspr=yes | |
6735 | else | |
6736 | ac_cv_file__usr_include_nspr=no | |
43498922 | 6737 | fi |
43498922 | 6738 | fi |
562d60b0 DB |
6739 | { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5 |
6740 | echo "${ECHO_T}$ac_cv_file__usr_include_nspr" >&6; } | |
6741 | if test $ac_cv_file__usr_include_nspr = yes; then | |
8ca54d60 EB |
6742 | nsprdir=nspr |
6743 | fi | |
6744 | ||
43498922 DB |
6745 | |
6746 | fi | |
6747 | ||
8ca54d60 EB |
6748 | if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then |
6749 | nss_CFLAGS="-I/usr/include/$nssdir" | |
6750 | nspr_CFLAGS="-I/usr/include/$nsprdir" | |
6751 | ||
6752 | ||
6753 | save_CPPFLAGS="$CPPFLAGS" | |
6754 | CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS" | |
f8a49389 | 6755 | have_nss_includes=yes |
412e1bf7 FCE |
6756 | |
6757 | ||
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
8ca54d60 | 6763 | 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" |
412e1bf7 | 6764 | do |
562d60b0 | 6765 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
412e1bf7 | 6766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
6767 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 6769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 | 6771 | fi |
562d60b0 DB |
6772 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6774 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
6775 | else |
6776 | # Is the header compilable? | |
562d60b0 DB |
6777 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6778 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
412e1bf7 FCE |
6779 | cat >conftest.$ac_ext <<_ACEOF |
6780 | /* confdefs.h. */ | |
6781 | _ACEOF | |
6782 | cat confdefs.h >>conftest.$ac_ext | |
6783 | cat >>conftest.$ac_ext <<_ACEOF | |
6784 | /* end confdefs.h. */ | |
6785 | $ac_includes_default | |
6786 | #include <$ac_header> | |
6787 | _ACEOF | |
6788 | rm -f conftest.$ac_objext | |
6789 | if { (ac_try="$ac_compile" | |
6790 | case "(($ac_try" in | |
6791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6792 | *) ac_try_echo=$ac_try;; | |
6793 | esac | |
562d60b0 | 6794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6795 | (eval "$ac_compile") 2>conftest.er1 |
6796 | ac_status=$? | |
6797 | grep -v '^ *+' conftest.er1 >conftest.err | |
6798 | rm -f conftest.er1 | |
6799 | cat conftest.err >&5 | |
562d60b0 | 6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6801 | (exit $ac_status); } && { |
6802 | test -z "$ac_c_werror_flag" || | |
6803 | test ! -s conftest.err | |
6804 | } && test -s conftest.$ac_objext; then | |
6805 | ac_header_compiler=yes | |
6806 | else | |
562d60b0 | 6807 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
6808 | sed 's/^/| /' conftest.$ac_ext >&5 |
6809 | ||
6810 | ac_header_compiler=no | |
6811 | fi | |
6812 | ||
6813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
6814 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6815 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
412e1bf7 FCE |
6816 | |
6817 | # Is the header present? | |
562d60b0 DB |
6818 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
412e1bf7 FCE |
6820 | cat >conftest.$ac_ext <<_ACEOF |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
6825 | /* end confdefs.h. */ | |
6826 | #include <$ac_header> | |
6827 | _ACEOF | |
6828 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6829 | case "(($ac_try" in | |
6830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6831 | *) ac_try_echo=$ac_try;; | |
6832 | esac | |
562d60b0 | 6833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6835 | ac_status=$? | |
6836 | grep -v '^ *+' conftest.er1 >conftest.err | |
6837 | rm -f conftest.er1 | |
6838 | cat conftest.err >&5 | |
562d60b0 | 6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6840 | (exit $ac_status); } >/dev/null && { |
6841 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6842 | test ! -s conftest.err | |
6843 | }; then | |
6844 | ac_header_preproc=yes | |
6845 | else | |
562d60b0 | 6846 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
6847 | sed 's/^/| /' conftest.$ac_ext >&5 |
6848 | ||
6849 | ac_header_preproc=no | |
6850 | fi | |
6851 | ||
6852 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
6853 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6854 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
412e1bf7 FCE |
6855 | |
6856 | # So? What about this header? | |
6857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6858 | yes:no: ) | |
562d60b0 DB |
6859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
412e1bf7 FCE |
6863 | ac_header_preproc=yes |
6864 | ;; | |
6865 | no:yes:* ) | |
562d60b0 DB |
6866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
412e1bf7 FCE |
6878 | ( cat <<\_ASBOX |
6879 | ## ------------------------------------------- ## | |
6880 | ## Report this to systemtap@sources.redhat.com ## | |
6881 | ## ------------------------------------------- ## | |
6882 | _ASBOX | |
6883 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
6884 | ;; | |
6885 | esac | |
562d60b0 DB |
6886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 6888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 6889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
6890 | else |
6891 | eval "$as_ac_Header=\$ac_header_preproc" | |
6892 | fi | |
562d60b0 DB |
6893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6895 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
6896 | |
6897 | fi | |
562d60b0 | 6898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8ca54d60 | 6899 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 6900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8ca54d60 | 6901 | _ACEOF |
f8a49389 | 6902 | |
43498922 | 6903 | else |
8ca54d60 | 6904 | have_nss_includes=no |
43498922 DB |
6905 | fi |
6906 | ||
8ca54d60 EB |
6907 | done |
6908 | ||
6909 | CPPFLAGS="$save_CPPFLAGS" | |
6910 | have_nss_libs=no | |
562d60b0 DB |
6911 | { echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5 |
6912 | echo $ECHO_N "checking for PR_Connect in -lnspr4... $ECHO_C" >&6; } | |
412e1bf7 | 6913 | if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then |
562d60b0 | 6914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ca54d60 EB |
6915 | else |
6916 | ac_check_lib_save_LIBS=$LIBS | |
6917 | LIBS="-lnspr4 $LIBS" | |
412e1bf7 FCE |
6918 | cat >conftest.$ac_ext <<_ACEOF |
6919 | /* confdefs.h. */ | |
6920 | _ACEOF | |
6921 | cat confdefs.h >>conftest.$ac_ext | |
6922 | cat >>conftest.$ac_ext <<_ACEOF | |
8ca54d60 | 6923 | /* end confdefs.h. */ |
19a0d4b6 | 6924 | |
7fbd9d09 FCE |
6925 | /* Override any GCC internal prototype to avoid an error. |
6926 | Use char because int might match the return type of a GCC | |
6927 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
6928 | #ifdef __cplusplus |
6929 | extern "C" | |
6930 | #endif | |
6931 | char PR_Connect (); | |
6932 | int | |
6933 | main () | |
6934 | { | |
7fbd9d09 | 6935 | return PR_Connect (); |
8ca54d60 EB |
6936 | ; |
6937 | return 0; | |
6938 | } | |
6939 | _ACEOF | |
412e1bf7 FCE |
6940 | rm -f conftest.$ac_objext conftest$ac_exeext |
6941 | if { (ac_try="$ac_link" | |
6942 | case "(($ac_try" in | |
6943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6944 | *) ac_try_echo=$ac_try;; | |
6945 | esac | |
562d60b0 | 6946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
6947 | (eval "$ac_link") 2>conftest.er1 |
6948 | ac_status=$? | |
6949 | grep -v '^ *+' conftest.er1 >conftest.err | |
6950 | rm -f conftest.er1 | |
6951 | cat conftest.err >&5 | |
562d60b0 | 6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
6953 | (exit $ac_status); } && { |
6954 | test -z "$ac_c_werror_flag" || | |
6955 | test ! -s conftest.err | |
562d60b0 DB |
6956 | } && test -s conftest$ac_exeext && |
6957 | $as_test_x conftest$ac_exeext; then | |
8ca54d60 | 6958 | ac_cv_lib_nspr4_PR_Connect=yes |
43498922 | 6959 | else |
562d60b0 | 6960 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
6961 | sed 's/^/| /' conftest.$ac_ext >&5 |
6962 | ||
6963 | ac_cv_lib_nspr4_PR_Connect=no | |
43498922 | 6964 | fi |
412e1bf7 | 6965 | |
412e1bf7 FCE |
6966 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6967 | conftest$ac_exeext conftest.$ac_ext | |
8ca54d60 | 6968 | LIBS=$ac_check_lib_save_LIBS |
43498922 | 6969 | fi |
562d60b0 DB |
6970 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5 |
6971 | echo "${ECHO_T}$ac_cv_lib_nspr4_PR_Connect" >&6; } | |
6972 | if test $ac_cv_lib_nspr4_PR_Connect = yes; then | |
8ca54d60 | 6973 | |
562d60b0 DB |
6974 | { echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5 |
6975 | echo $ECHO_N "checking for SSL_ReHandshake in -lssl3... $ECHO_C" >&6; } | |
412e1bf7 | 6976 | if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then |
562d60b0 | 6977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ca54d60 EB |
6978 | else |
6979 | ac_check_lib_save_LIBS=$LIBS | |
6980 | LIBS="-lssl3 $LIBS" | |
412e1bf7 FCE |
6981 | cat >conftest.$ac_ext <<_ACEOF |
6982 | /* confdefs.h. */ | |
6983 | _ACEOF | |
6984 | cat confdefs.h >>conftest.$ac_ext | |
6985 | cat >>conftest.$ac_ext <<_ACEOF | |
8ca54d60 EB |
6986 | /* end confdefs.h. */ |
6987 | ||
7fbd9d09 FCE |
6988 | /* Override any GCC internal prototype to avoid an error. |
6989 | Use char because int might match the return type of a GCC | |
6990 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
6991 | #ifdef __cplusplus |
6992 | extern "C" | |
6993 | #endif | |
6994 | char SSL_ReHandshake (); | |
6995 | int | |
6996 | main () | |
6997 | { | |
7fbd9d09 | 6998 | return SSL_ReHandshake (); |
8ca54d60 EB |
6999 | ; |
7000 | return 0; | |
7001 | } | |
7002 | _ACEOF | |
412e1bf7 FCE |
7003 | rm -f conftest.$ac_objext conftest$ac_exeext |
7004 | if { (ac_try="$ac_link" | |
7005 | case "(($ac_try" in | |
7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7007 | *) ac_try_echo=$ac_try;; | |
7008 | esac | |
562d60b0 | 7009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
7010 | (eval "$ac_link") 2>conftest.er1 |
7011 | ac_status=$? | |
7012 | grep -v '^ *+' conftest.er1 >conftest.err | |
7013 | rm -f conftest.er1 | |
7014 | cat conftest.err >&5 | |
562d60b0 | 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
7016 | (exit $ac_status); } && { |
7017 | test -z "$ac_c_werror_flag" || | |
7018 | test ! -s conftest.err | |
562d60b0 DB |
7019 | } && test -s conftest$ac_exeext && |
7020 | $as_test_x conftest$ac_exeext; then | |
8ca54d60 | 7021 | ac_cv_lib_ssl3_SSL_ReHandshake=yes |
43498922 | 7022 | else |
562d60b0 | 7023 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
7024 | sed 's/^/| /' conftest.$ac_ext >&5 |
7025 | ||
7026 | ac_cv_lib_ssl3_SSL_ReHandshake=no | |
8ca54d60 | 7027 | fi |
412e1bf7 | 7028 | |
412e1bf7 FCE |
7029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7030 | conftest$ac_exeext conftest.$ac_ext | |
8ca54d60 EB |
7031 | LIBS=$ac_check_lib_save_LIBS |
7032 | fi | |
562d60b0 DB |
7033 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5 |
7034 | echo "${ECHO_T}$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; } | |
7035 | if test $ac_cv_lib_ssl3_SSL_ReHandshake = yes; then | |
8ca54d60 EB |
7036 | have_nss_libs=yes |
7037 | fi | |
43498922 | 7038 | |
43498922 | 7039 | |
43498922 | 7040 | fi |
43498922 | 7041 | |
19a0d4b6 | 7042 | fi |
07f82253 | 7043 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" != "xyesyesyes"; then |
19a0d4b6 | 7044 | if test "$enable_server" == "yes"; then |
562d60b0 DB |
7045 | { { echo "$as_me:$LINENO: error: cannot find all libraries or tools for stap-server" >&5 |
7046 | echo "$as_me: error: cannot find all libraries or tools for stap-server" >&2;} | |
412e1bf7 | 7047 | { (exit 1); exit 1; }; } |
19a0d4b6 MW |
7048 | fi |
7049 | if test "$enable_server" == "check"; then | |
562d60b0 DB |
7050 | { echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries or tools" >&5 |
7051 | echo "$as_me: WARNING: will not build stap-server, cannot find all libraries or tools" >&2;} | |
19a0d4b6 | 7052 | fi |
2035bcd4 DB |
7053 | else |
7054 | ||
412e1bf7 FCE |
7055 | cat >>confdefs.h <<\_ACEOF |
7056 | #define HAVE_NSS 1 | |
7057 | _ACEOF | |
2035bcd4 | 7058 | |
19a0d4b6 | 7059 | fi |
d450a957 | 7060 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes" -a "$enable_server" != "no"; then |
19a0d4b6 MW |
7061 | BUILD_SERVER_TRUE= |
7062 | BUILD_SERVER_FALSE='#' | |
7063 | else | |
7064 | BUILD_SERVER_TRUE='#' | |
7065 | BUILD_SERVER_FALSE= | |
43498922 DB |
7066 | fi |
7067 | ||
07f82253 | 7068 | if test "x${have_nss_includes}${have_nss_libs}${have_certutil}" == "xyesyesyes"; then |
2035bcd4 DB |
7069 | HAVE_NSS_TRUE= |
7070 | HAVE_NSS_FALSE='#' | |
7071 | else | |
7072 | HAVE_NSS_TRUE='#' | |
7073 | HAVE_NSS_FALSE= | |
7074 | fi | |
7075 | ||
19a0d4b6 | 7076 | |
1087b83f | 7077 | # Check whether --enable-grapher was given. |
412e1bf7 | 7078 | if test "${enable_grapher+set}" = set; then |
c3f070d9 | 7079 | enableval=$enable_grapher; |
1087b83f | 7080 | else |
c3f070d9 | 7081 | enable_grapher="check" |
1087b83f TM |
7082 | fi |
7083 | ||
7084 | ||
1087b83f TM |
7085 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
7086 | if test -n "$ac_tool_prefix"; then | |
7087 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7088 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
562d60b0 DB |
7089 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 7091 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
562d60b0 | 7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1087b83f TM |
7093 | else |
7094 | case $PKG_CONFIG in | |
7095 | [\\/]* | ?:[\\/]*) | |
7096 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7097 | ;; | |
7098 | *) | |
7099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7100 | for as_dir in $PATH | |
7101 | do | |
7102 | IFS=$as_save_IFS | |
7103 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 7104 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
7105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7106 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
562d60b0 | 7107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
7108 | break 2 |
7109 | fi | |
7110 | done | |
412e1bf7 | 7111 | done |
1087b83f TM |
7112 | IFS=$as_save_IFS |
7113 | ||
7114 | ;; | |
7115 | esac | |
7116 | fi | |
7117 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7118 | if test -n "$PKG_CONFIG"; then | |
562d60b0 DB |
7119 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
7120 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
1087b83f | 7121 | else |
562d60b0 DB |
7122 | { echo "$as_me:$LINENO: result: no" >&5 |
7123 | echo "${ECHO_T}no" >&6; } | |
1087b83f TM |
7124 | fi |
7125 | ||
7126 | ||
7127 | fi | |
7128 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7129 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7130 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7131 | set dummy pkg-config; ac_word=$2 | |
562d60b0 DB |
7132 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
412e1bf7 | 7134 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
562d60b0 | 7135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1087b83f TM |
7136 | else |
7137 | case $ac_pt_PKG_CONFIG in | |
7138 | [\\/]* | ?:[\\/]*) | |
7139 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
7140 | ;; | |
7141 | *) | |
7142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7143 | for as_dir in $PATH | |
7144 | do | |
7145 | IFS=$as_save_IFS | |
7146 | test -z "$as_dir" && as_dir=. | |
412e1bf7 | 7147 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
7148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7149 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
562d60b0 | 7150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
7151 | break 2 |
7152 | fi | |
7153 | done | |
412e1bf7 | 7154 | done |
1087b83f TM |
7155 | IFS=$as_save_IFS |
7156 | ||
7157 | ;; | |
7158 | esac | |
7159 | fi | |
7160 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7161 | if test -n "$ac_pt_PKG_CONFIG"; then | |
562d60b0 DB |
7162 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
7163 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
1087b83f | 7164 | else |
562d60b0 DB |
7165 | { echo "$as_me:$LINENO: result: no" >&5 |
7166 | echo "${ECHO_T}no" >&6; } | |
1087b83f TM |
7167 | fi |
7168 | ||
7169 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7170 | PKG_CONFIG="" | |
7171 | else | |
7172 | case $cross_compiling:$ac_tool_warned in | |
7173 | yes:) | |
562d60b0 DB |
7174 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7175 | whose name does not start with the host triplet. If you think this | |
7176 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7177 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7178 | whose name does not start with the host triplet. If you think this | |
7179 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1087b83f TM |
7180 | ac_tool_warned=yes ;; |
7181 | esac | |
7182 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7183 | fi | |
7184 | else | |
7185 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
7186 | fi | |
7187 | ||
7188 | fi | |
7189 | if test -n "$PKG_CONFIG"; then | |
7190 | _pkg_min_version=0.9.0 | |
562d60b0 DB |
7191 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
7192 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
1087b83f | 7193 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
562d60b0 DB |
7194 | { echo "$as_me:$LINENO: result: yes" >&5 |
7195 | echo "${ECHO_T}yes" >&6; } | |
1087b83f | 7196 | else |
562d60b0 DB |
7197 | { echo "$as_me:$LINENO: result: no" >&5 |
7198 | echo "${ECHO_T}no" >&6; } | |
1087b83f TM |
7199 | PKG_CONFIG="" |
7200 | fi | |
7201 | ||
7202 | fi | |
f8a49389 DS |
7203 | |
7204 | ac_ext=cpp | |
7205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
562d60b0 DB |
7209 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7210 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
f8a49389 DS |
7211 | if test -z "$CXXCPP"; then |
7212 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
562d60b0 | 7213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f8a49389 DS |
7214 | else |
7215 | # Double quotes because CXXCPP needs to be expanded | |
7216 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7217 | do | |
7218 | ac_preproc_ok=false | |
7219 | for ac_cxx_preproc_warn_flag in '' yes | |
7220 | do | |
7221 | # Use a header file that comes with gcc, so configuring glibc | |
7222 | # with a fresh cross-compiler works. | |
7223 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7224 | # <limits.h> exists even on freestanding compilers. | |
7225 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7226 | # not just through cpp. "Syntax error" is here to catch this case. | |
7227 | cat >conftest.$ac_ext <<_ACEOF | |
7228 | /* confdefs.h. */ | |
7229 | _ACEOF | |
7230 | cat confdefs.h >>conftest.$ac_ext | |
7231 | cat >>conftest.$ac_ext <<_ACEOF | |
7232 | /* end confdefs.h. */ | |
7233 | #ifdef __STDC__ | |
7234 | # include <limits.h> | |
7235 | #else | |
7236 | # include <assert.h> | |
7237 | #endif | |
7238 | Syntax error | |
7239 | _ACEOF | |
7240 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7241 | case "(($ac_try" in | |
7242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7243 | *) ac_try_echo=$ac_try;; | |
7244 | esac | |
562d60b0 | 7245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7246 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7247 | ac_status=$? | |
7248 | grep -v '^ *+' conftest.er1 >conftest.err | |
7249 | rm -f conftest.er1 | |
7250 | cat conftest.err >&5 | |
562d60b0 | 7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7252 | (exit $ac_status); } >/dev/null && { |
7253 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7254 | test ! -s conftest.err | |
7255 | }; then | |
7256 | : | |
7257 | else | |
562d60b0 | 7258 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7259 | sed 's/^/| /' conftest.$ac_ext >&5 |
7260 | ||
7261 | # Broken: fails on valid input. | |
7262 | continue | |
7263 | fi | |
7264 | ||
7265 | rm -f conftest.err conftest.$ac_ext | |
7266 | ||
7267 | # OK, works on sane cases. Now check whether nonexistent headers | |
7268 | # can be detected and how. | |
7269 | cat >conftest.$ac_ext <<_ACEOF | |
7270 | /* confdefs.h. */ | |
7271 | _ACEOF | |
7272 | cat confdefs.h >>conftest.$ac_ext | |
7273 | cat >>conftest.$ac_ext <<_ACEOF | |
7274 | /* end confdefs.h. */ | |
7275 | #include <ac_nonexistent.h> | |
7276 | _ACEOF | |
7277 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7278 | case "(($ac_try" in | |
7279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7280 | *) ac_try_echo=$ac_try;; | |
7281 | esac | |
562d60b0 | 7282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7283 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7284 | ac_status=$? | |
7285 | grep -v '^ *+' conftest.er1 >conftest.err | |
7286 | rm -f conftest.er1 | |
7287 | cat conftest.err >&5 | |
562d60b0 | 7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7289 | (exit $ac_status); } >/dev/null && { |
7290 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7291 | test ! -s conftest.err | |
7292 | }; then | |
7293 | # Broken: success on invalid input. | |
7294 | continue | |
7295 | else | |
562d60b0 | 7296 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7297 | sed 's/^/| /' conftest.$ac_ext >&5 |
7298 | ||
7299 | # Passes both tests. | |
7300 | ac_preproc_ok=: | |
7301 | break | |
7302 | fi | |
7303 | ||
7304 | rm -f conftest.err conftest.$ac_ext | |
7305 | ||
7306 | done | |
7307 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7308 | rm -f conftest.err conftest.$ac_ext | |
7309 | if $ac_preproc_ok; then | |
7310 | break | |
7311 | fi | |
7312 | ||
7313 | done | |
7314 | ac_cv_prog_CXXCPP=$CXXCPP | |
7315 | ||
7316 | fi | |
7317 | CXXCPP=$ac_cv_prog_CXXCPP | |
7318 | else | |
7319 | ac_cv_prog_CXXCPP=$CXXCPP | |
7320 | fi | |
562d60b0 DB |
7321 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7322 | echo "${ECHO_T}$CXXCPP" >&6; } | |
f8a49389 DS |
7323 | ac_preproc_ok=false |
7324 | for ac_cxx_preproc_warn_flag in '' yes | |
7325 | do | |
7326 | # Use a header file that comes with gcc, so configuring glibc | |
7327 | # with a fresh cross-compiler works. | |
7328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7329 | # <limits.h> exists even on freestanding compilers. | |
7330 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7331 | # not just through cpp. "Syntax error" is here to catch this case. | |
7332 | cat >conftest.$ac_ext <<_ACEOF | |
7333 | /* confdefs.h. */ | |
7334 | _ACEOF | |
7335 | cat confdefs.h >>conftest.$ac_ext | |
7336 | cat >>conftest.$ac_ext <<_ACEOF | |
7337 | /* end confdefs.h. */ | |
7338 | #ifdef __STDC__ | |
7339 | # include <limits.h> | |
7340 | #else | |
7341 | # include <assert.h> | |
7342 | #endif | |
7343 | Syntax error | |
7344 | _ACEOF | |
7345 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7346 | case "(($ac_try" in | |
7347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7348 | *) ac_try_echo=$ac_try;; | |
7349 | esac | |
562d60b0 | 7350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7351 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7352 | ac_status=$? | |
7353 | grep -v '^ *+' conftest.er1 >conftest.err | |
7354 | rm -f conftest.er1 | |
7355 | cat conftest.err >&5 | |
562d60b0 | 7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7357 | (exit $ac_status); } >/dev/null && { |
7358 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7359 | test ! -s conftest.err | |
7360 | }; then | |
7361 | : | |
7362 | else | |
562d60b0 | 7363 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7364 | sed 's/^/| /' conftest.$ac_ext >&5 |
7365 | ||
7366 | # Broken: fails on valid input. | |
7367 | continue | |
7368 | fi | |
7369 | ||
7370 | rm -f conftest.err conftest.$ac_ext | |
7371 | ||
7372 | # OK, works on sane cases. Now check whether nonexistent headers | |
7373 | # can be detected and how. | |
7374 | cat >conftest.$ac_ext <<_ACEOF | |
7375 | /* confdefs.h. */ | |
7376 | _ACEOF | |
7377 | cat confdefs.h >>conftest.$ac_ext | |
7378 | cat >>conftest.$ac_ext <<_ACEOF | |
7379 | /* end confdefs.h. */ | |
7380 | #include <ac_nonexistent.h> | |
7381 | _ACEOF | |
7382 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7383 | case "(($ac_try" in | |
7384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7385 | *) ac_try_echo=$ac_try;; | |
7386 | esac | |
562d60b0 | 7387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7389 | ac_status=$? | |
7390 | grep -v '^ *+' conftest.er1 >conftest.err | |
7391 | rm -f conftest.er1 | |
7392 | cat conftest.err >&5 | |
562d60b0 | 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7394 | (exit $ac_status); } >/dev/null && { |
7395 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7396 | test ! -s conftest.err | |
7397 | }; then | |
7398 | # Broken: success on invalid input. | |
7399 | continue | |
7400 | else | |
562d60b0 | 7401 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7402 | sed 's/^/| /' conftest.$ac_ext >&5 |
7403 | ||
7404 | # Passes both tests. | |
7405 | ac_preproc_ok=: | |
7406 | break | |
7407 | fi | |
7408 | ||
7409 | rm -f conftest.err conftest.$ac_ext | |
7410 | ||
7411 | done | |
7412 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7413 | rm -f conftest.err conftest.$ac_ext | |
7414 | if $ac_preproc_ok; then | |
7415 | : | |
7416 | else | |
562d60b0 | 7417 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
f8a49389 | 7418 | See \`config.log' for more details." >&5 |
562d60b0 | 7419 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
f8a49389 | 7420 | See \`config.log' for more details." >&2;} |
562d60b0 | 7421 | { (exit 1); exit 1; }; } |
f8a49389 DS |
7422 | fi |
7423 | ||
7424 | ac_ext=cpp | |
7425 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7429 | ||
7430 | ||
c3f070d9 | 7431 | if test "x$enable_grapher" != xno; then |
1087b83f | 7432 | |
f8a49389 | 7433 | |
1087b83f | 7434 | pkg_failed=no |
562d60b0 DB |
7435 | { echo "$as_me:$LINENO: checking for gtkmm" >&5 |
7436 | echo $ECHO_N "checking for gtkmm... $ECHO_C" >&6; } | |
7437 | ||
7438 | if test -n "$PKG_CONFIG"; then | |
7439 | if test -n "$gtkmm_CFLAGS"; then | |
7440 | pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS" | |
7441 | else | |
7442 | if test -n "$PKG_CONFIG" && \ | |
7443 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 | |
f8a49389 | 7444 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 7445 | ac_status=$? |
562d60b0 | 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 7447 | (exit $ac_status); }; then |
f8a49389 | 7448 | pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
7449 | else |
7450 | pkg_failed=yes | |
7451 | fi | |
562d60b0 DB |
7452 | fi |
7453 | else | |
7454 | pkg_failed=untried | |
1087b83f | 7455 | fi |
562d60b0 DB |
7456 | if test -n "$PKG_CONFIG"; then |
7457 | if test -n "$gtkmm_LIBS"; then | |
7458 | pkg_cv_gtkmm_LIBS="$gtkmm_LIBS" | |
7459 | else | |
7460 | if test -n "$PKG_CONFIG" && \ | |
7461 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 | |
f8a49389 | 7462 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 7463 | ac_status=$? |
562d60b0 | 7464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 7465 | (exit $ac_status); }; then |
f8a49389 | 7466 | pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
7467 | else |
7468 | pkg_failed=yes | |
7469 | fi | |
562d60b0 DB |
7470 | fi |
7471 | else | |
7472 | pkg_failed=untried | |
1087b83f TM |
7473 | fi |
7474 | ||
7475 | ||
7476 | ||
7477 | if test $pkg_failed = yes; then | |
7478 | ||
7479 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7480 | _pkg_short_errors_supported=yes | |
7481 | else | |
7482 | _pkg_short_errors_supported=no | |
7483 | fi | |
7484 | if test $_pkg_short_errors_supported = yes; then | |
562d60b0 | 7485 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.8.0"` |
1087b83f | 7486 | else |
562d60b0 | 7487 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.8.0"` |
1087b83f TM |
7488 | fi |
7489 | # Put the nasty error message in config.log where it belongs | |
c3f070d9 | 7490 | echo "$gtkmm_PKG_ERRORS" >&5 |
1087b83f | 7491 | |
562d60b0 DB |
7492 | { echo "$as_me:$LINENO: result: no" >&5 |
7493 | echo "${ECHO_T}no" >&6; } | |
c3f070d9 | 7494 | have_gtkmm="no" |
1087b83f | 7495 | elif test $pkg_failed = untried; then |
c3f070d9 | 7496 | have_gtkmm="no" |
1087b83f | 7497 | else |
c3f070d9 DS |
7498 | gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS |
7499 | gtkmm_LIBS=$pkg_cv_gtkmm_LIBS | |
562d60b0 DB |
7500 | { echo "$as_me:$LINENO: result: yes" >&5 |
7501 | echo "${ECHO_T}yes" >&6; } | |
c3f070d9 DS |
7502 | have_gtkmm="yes" |
7503 | fi | |
f8a49389 | 7504 | if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then |
562d60b0 DB |
7505 | { 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 |
7506 | 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 |
7507 | fi |
7508 | ||
f8a49389 DS |
7509 | |
7510 | ||
7511 | pkg_failed=no | |
562d60b0 DB |
7512 | { echo "$as_me:$LINENO: checking for libglade" >&5 |
7513 | echo $ECHO_N "checking for libglade... $ECHO_C" >&6; } | |
7514 | ||
7515 | if test -n "$PKG_CONFIG"; then | |
7516 | if test -n "$libglade_CFLAGS"; then | |
7517 | pkg_cv_libglade_CFLAGS="$libglade_CFLAGS" | |
7518 | else | |
7519 | if test -n "$PKG_CONFIG" && \ | |
7520 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5 | |
f8a49389 DS |
7521 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
7522 | ac_status=$? | |
562d60b0 | 7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7524 | (exit $ac_status); }; then |
7525 | pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null` | |
7526 | else | |
7527 | pkg_failed=yes | |
7528 | fi | |
562d60b0 DB |
7529 | fi |
7530 | else | |
7531 | pkg_failed=untried | |
f8a49389 | 7532 | fi |
562d60b0 DB |
7533 | if test -n "$PKG_CONFIG"; then |
7534 | if test -n "$libglade_LIBS"; then | |
7535 | pkg_cv_libglade_LIBS="$libglade_LIBS" | |
7536 | else | |
7537 | if test -n "$PKG_CONFIG" && \ | |
7538 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\"") >&5 | |
f8a49389 DS |
7539 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
7540 | ac_status=$? | |
562d60b0 | 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7542 | (exit $ac_status); }; then |
7543 | pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null` | |
7544 | else | |
7545 | pkg_failed=yes | |
7546 | fi | |
562d60b0 DB |
7547 | fi |
7548 | else | |
7549 | pkg_failed=untried | |
f8a49389 DS |
7550 | fi |
7551 | ||
7552 | ||
7553 | ||
7554 | if test $pkg_failed = yes; then | |
7555 | ||
7556 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7557 | _pkg_short_errors_supported=yes | |
7558 | else | |
7559 | _pkg_short_errors_supported=no | |
7560 | fi | |
7561 | if test $_pkg_short_errors_supported = yes; then | |
562d60b0 | 7562 | libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglademm-2.4 >= 2.6.7"` |
f8a49389 | 7563 | else |
562d60b0 | 7564 | libglade_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglademm-2.4 >= 2.6.7"` |
f8a49389 DS |
7565 | fi |
7566 | # Put the nasty error message in config.log where it belongs | |
7567 | echo "$libglade_PKG_ERRORS" >&5 | |
7568 | ||
562d60b0 DB |
7569 | { echo "$as_me:$LINENO: result: no" >&5 |
7570 | echo "${ECHO_T}no" >&6; } | |
f8a49389 DS |
7571 | have_libglade="no" |
7572 | elif test $pkg_failed = untried; then | |
7573 | have_libglade="no" | |
7574 | else | |
7575 | libglade_CFLAGS=$pkg_cv_libglade_CFLAGS | |
7576 | libglade_LIBS=$pkg_cv_libglade_LIBS | |
562d60b0 DB |
7577 | { echo "$as_me:$LINENO: result: yes" >&5 |
7578 | echo "${ECHO_T}yes" >&6; } | |
f8a49389 DS |
7579 | have_libglade="yes" |
7580 | fi | |
7581 | if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then | |
562d60b0 DB |
7582 | { 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 |
7583 | 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 |
7584 | fi |
7585 | ||
7586 | ||
7587 | have_boost_headers="yes" | |
7588 | ac_ext=cpp | |
7589 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7590 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7591 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7592 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7593 | ||
7594 | ||
7595 | ||
7596 | for ac_header in boost/algorithm/string.hpp boost/range.hpp | |
7597 | do | |
562d60b0 | 7598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
f8a49389 | 7599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
7600 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
f8a49389 | 7602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 7603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f8a49389 | 7604 | fi |
562d60b0 DB |
7605 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7606 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7607 | echo "${ECHO_T}$ac_res" >&6; } | |
f8a49389 DS |
7608 | else |
7609 | # Is the header compilable? | |
562d60b0 DB |
7610 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7611 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
f8a49389 DS |
7612 | cat >conftest.$ac_ext <<_ACEOF |
7613 | /* confdefs.h. */ | |
7614 | _ACEOF | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
7618 | $ac_includes_default | |
7619 | #include <$ac_header> | |
7620 | _ACEOF | |
7621 | rm -f conftest.$ac_objext | |
7622 | if { (ac_try="$ac_compile" | |
7623 | case "(($ac_try" in | |
7624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7625 | *) ac_try_echo=$ac_try;; | |
7626 | esac | |
562d60b0 | 7627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7628 | (eval "$ac_compile") 2>conftest.er1 |
7629 | ac_status=$? | |
7630 | grep -v '^ *+' conftest.er1 >conftest.err | |
7631 | rm -f conftest.er1 | |
7632 | cat conftest.err >&5 | |
562d60b0 | 7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7634 | (exit $ac_status); } && { |
7635 | test -z "$ac_cxx_werror_flag" || | |
7636 | test ! -s conftest.err | |
7637 | } && test -s conftest.$ac_objext; then | |
7638 | ac_header_compiler=yes | |
7639 | else | |
562d60b0 | 7640 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7641 | sed 's/^/| /' conftest.$ac_ext >&5 |
7642 | ||
7643 | ac_header_compiler=no | |
7644 | fi | |
7645 | ||
7646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
7647 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7648 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
f8a49389 DS |
7649 | |
7650 | # Is the header present? | |
562d60b0 DB |
7651 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
f8a49389 DS |
7653 | cat >conftest.$ac_ext <<_ACEOF |
7654 | /* confdefs.h. */ | |
7655 | _ACEOF | |
7656 | cat confdefs.h >>conftest.$ac_ext | |
7657 | cat >>conftest.$ac_ext <<_ACEOF | |
7658 | /* end confdefs.h. */ | |
7659 | #include <$ac_header> | |
7660 | _ACEOF | |
7661 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7662 | case "(($ac_try" in | |
7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7664 | *) ac_try_echo=$ac_try;; | |
7665 | esac | |
562d60b0 | 7666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f8a49389 DS |
7667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7668 | ac_status=$? | |
7669 | grep -v '^ *+' conftest.er1 >conftest.err | |
7670 | rm -f conftest.er1 | |
7671 | cat conftest.err >&5 | |
562d60b0 | 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f8a49389 DS |
7673 | (exit $ac_status); } >/dev/null && { |
7674 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7675 | test ! -s conftest.err | |
7676 | }; then | |
7677 | ac_header_preproc=yes | |
7678 | else | |
562d60b0 | 7679 | echo "$as_me: failed program was:" >&5 |
f8a49389 DS |
7680 | sed 's/^/| /' conftest.$ac_ext >&5 |
7681 | ||
7682 | ac_header_preproc=no | |
7683 | fi | |
7684 | ||
7685 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
7686 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7687 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
f8a49389 DS |
7688 | |
7689 | # So? What about this header? | |
7690 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
7691 | yes:no: ) | |
562d60b0 DB |
7692 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7693 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7695 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
f8a49389 DS |
7696 | ac_header_preproc=yes |
7697 | ;; | |
7698 | no:yes:* ) | |
562d60b0 DB |
7699 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7700 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7701 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7702 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7703 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7704 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7705 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7706 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7708 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7709 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7710 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f8a49389 DS |
7711 | ( cat <<\_ASBOX |
7712 | ## ------------------------------------------- ## | |
7713 | ## Report this to systemtap@sources.redhat.com ## | |
7714 | ## ------------------------------------------- ## | |
7715 | _ASBOX | |
7716 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
7717 | ;; | |
7718 | esac | |
562d60b0 DB |
7719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
f8a49389 | 7721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f8a49389 DS |
7723 | else |
7724 | eval "$as_ac_Header=\$ac_header_preproc" | |
7725 | fi | |
562d60b0 DB |
7726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7728 | echo "${ECHO_T}$ac_res" >&6; } | |
f8a49389 DS |
7729 | |
7730 | fi | |
562d60b0 | 7731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
f8a49389 | 7732 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 7733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f8a49389 DS |
7734 | _ACEOF |
7735 | ||
7736 | else | |
7737 | have_boost_headers="no" | |
7738 | fi | |
7739 | ||
7740 | done | |
7741 | ||
7742 | ac_ext=c | |
7743 | ac_cpp='$CPP $CPPFLAGS' | |
7744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7747 | ||
7748 | if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then | |
562d60b0 DB |
7749 | { echo "$as_me:$LINENO: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5 |
7750 | echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;} | |
f8a49389 DS |
7751 | fi |
7752 | ||
7753 | ||
7754 | if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then | |
7755 | have_grapher_reqs="yes" | |
7756 | else | |
7757 | have_grapher_reqs="no" | |
7758 | fi | |
7759 | ||
7760 | ||
7761 | fi | |
7762 | ||
7763 | if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then | |
562d60b0 DB |
7764 | { { echo "$as_me:$LINENO: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&5 |
7765 | echo "$as_me: error: systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" >&2;} | |
f8a49389 DS |
7766 | { (exit 1); exit 1; }; } |
7767 | fi | |
7768 | ||
7769 | if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then | |
7770 | BUILD_GRAPHER_TRUE= | |
7771 | BUILD_GRAPHER_FALSE='#' | |
7772 | else | |
7773 | BUILD_GRAPHER_TRUE='#' | |
7774 | BUILD_GRAPHER_FALSE= | |
7775 | fi | |
1087b83f TM |
7776 | |
7777 | ||
2ed04863 WC |
7778 | |
7779 | # Integration with rpm library to support missing debuginfo suggestions. | |
7780 | # --without-rpm: Disable any rpm support. | |
7781 | # --with-rpm=libname.so: Try to dynamically open `libname.so' during runtime. | |
7782 | # Even with runtime missing `libname.so' GDB will still other run correctly. | |
7783 | # Missing `libname.so' during ./configure will abort the configuration. | |
7784 | # --with-rpm=librpm.so: Like `--with-rpm=libname.so' but try to find specific | |
7785 | # minor version first such as `librpm-4.6.so' as minor version differences | |
7786 | # mean API+ABI incompatibility. If the specific match versioned library name | |
7787 | # could not be found still open dynamically at least `librpm.so'. | |
7788 | # --with-rpm: Like `--with-rpm=librpm.so' but if any of its detection fails try | |
7789 | # to find librpm for compilation-time linking by pkg-config. GDB binary will | |
7790 | # be probably linked with the version specific library (as `librpm-4.6.so'). | |
7791 | # Failure to find librpm by pkg-config will abort the configuration. | |
7792 | # (default) --with-rpm=auto: Like `--with-rpm=librpm.so' but if even pkg-config | |
7793 | # cannot find librpm use to the rpmless compilation (like `--without-rpm'). | |
7794 | ||
7795 | ||
7796 | # Check whether --with-rpm was given. | |
412e1bf7 | 7797 | if test "${with_rpm+set}" = set; then |
2ed04863 WC |
7798 | withval=$with_rpm; |
7799 | else | |
7800 | with_rpm="auto" | |
7801 | fi | |
7802 | ||
7803 | ||
7804 | ||
7805 | ||
7806 | if test "x$with_rpm" != "xno"; then | |
7807 | if test "x$with_rpm" = "xyes"; then | |
7808 | LIBRPM="librpm.so" | |
7809 | RPM_REQUIRE=true | |
7810 | DLOPEN_REQUIRE=false | |
7811 | elif test "x$with_rpm" = "xauto"; then | |
7812 | LIBRPM="librpm.so" | |
7813 | RPM_REQUIRE=false | |
7814 | DLOPEN_REQUIRE=false | |
7815 | else | |
7816 | LIBRPM="$with_rpm" | |
7817 | RPM_REQUIRE=true | |
7818 | DLOPEN_REQUIRE=true | |
7819 | fi | |
7820 | LIBRPM_STRING='"'"$LIBRPM"'"' | |
7821 | ||
562d60b0 DB |
7822 | { echo "$as_me:$LINENO: checking specific librpm version" >&5 |
7823 | echo $ECHO_N "checking specific librpm version... $ECHO_C" >&6; } | |
2ed04863 WC |
7824 | HAVE_DLOPEN_LIBRPM=false |
7825 | save_LIBS="$LIBS" | |
7826 | LIBS="$LIBS -ldl" | |
412e1bf7 | 7827 | if test "$cross_compiling" = yes; then |
562d60b0 | 7828 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
412e1bf7 | 7829 | See \`config.log' for more details." >&5 |
562d60b0 | 7830 | echo "$as_me: error: cannot run test program while cross compiling |
412e1bf7 | 7831 | See \`config.log' for more details." >&2;} |
562d60b0 | 7832 | { (exit 1); exit 1; }; } |
412e1bf7 FCE |
7833 | else |
7834 | cat >conftest.$ac_ext <<_ACEOF | |
7835 | /* confdefs.h. */ | |
7836 | _ACEOF | |
7837 | cat confdefs.h >>conftest.$ac_ext | |
7838 | cat >>conftest.$ac_ext <<_ACEOF | |
2ed04863 WC |
7839 | /* end confdefs.h. */ |
7840 | ||
7841 | #include <rpm/rpmlib.h> | |
7842 | #include <dlfcn.h> | |
7843 | #include <errno.h> | |
7844 | ||
7845 | int | |
7846 | main () | |
7847 | { | |
7848 | ||
7849 | void *h; | |
7850 | const char *const *rpmverp; | |
7851 | FILE *f; | |
7852 | ||
7853 | f = fopen ("conftest.out", "w"); | |
7854 | if (!f) | |
7855 | { | |
7856 | fprintf (stderr, "Cannot write \"%s\": %s\n", "conftest.out", | |
7857 | strerror (errno)); | |
7858 | return 1; | |
7859 | } | |
7860 | h = dlopen ($LIBRPM_STRING, RTLD_LAZY); | |
7861 | if (!h) | |
7862 | { | |
7863 | fprintf (stderr, "dlopen (\"%s\"): %s\n", $LIBRPM_STRING, dlerror ()); | |
7864 | return 1; | |
7865 | } | |
7866 | rpmverp = dlsym (h, "RPMVERSION"); | |
7867 | if (!rpmverp) | |
7868 | { | |
7869 | fprintf (stderr, "dlsym (\"RPMVERSION\"): %s\n", dlerror ()); | |
7870 | return 1; | |
7871 | } | |
7872 | fprintf (stderr, "RPMVERSION is: \""); | |
7873 | fprintf (stderr, "%s\"\n", *rpmverp); | |
7874 | ||
7875 | /* Try to find the specific librpm version only for "librpm.so" as we do | |
7876 | not know how to assemble the version string otherwise. */ | |
7877 | ||
7878 | if (strcmp ("librpm.so", $LIBRPM_STRING) != 0) | |
7879 | { | |
7880 | fprintf (f, "%s\n", $LIBRPM_STRING); | |
7881 | return 0; | |
7882 | } | |
7883 | else | |
7884 | { | |
7885 | char *h2_name; | |
7886 | void *h2; | |
7887 | int major, minor; | |
7888 | ||
7889 | if (sscanf (*rpmverp, "%d.%d", &major, &minor) != 2) | |
7890 | { | |
7891 | fprintf (stderr, "Unable to parse RPMVERSION.\n"); | |
7892 | fprintf (f, "%s\n", $LIBRPM_STRING); | |
7893 | return 0; | |
7894 | } | |
7895 | /* Avoid the square brackets by malloc. */ | |
7896 | h2_name = malloc (64); | |
7897 | sprintf (h2_name, "librpm-%d.%d.so", major, minor); | |
7898 | h2 = dlopen (h2_name, RTLD_LAZY); | |
7899 | if (!h2) | |
7900 | { | |
7901 | fprintf (stderr, "dlopen (\"%s\"): %s\n", h2_name, dlerror ()); | |
7902 | fprintf (f, "%s\n", $LIBRPM_STRING); | |
7903 | return 0; | |
7904 | } | |
7905 | if (h2 != h) | |
7906 | { | |
7907 | fprintf (stderr, "dlopen of \"%s\" and \"%s\" are different.\n", | |
7908 | $LIBRPM_STRING, h2_name); | |
7909 | fprintf (f, "%s\n", $LIBRPM_STRING); | |
7910 | return 0; | |
7911 | } | |
7912 | /* Found the valid .so name with a specific version. */ | |
7913 | fprintf (f, "%s\n", h2_name); | |
7914 | return 0; | |
7915 | } | |
7916 | ||
7917 | ; | |
7918 | return 0; | |
7919 | } | |
7920 | _ACEOF | |
412e1bf7 FCE |
7921 | rm -f conftest$ac_exeext |
7922 | if { (ac_try="$ac_link" | |
7923 | case "(($ac_try" in | |
7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7925 | *) ac_try_echo=$ac_try;; | |
7926 | esac | |
562d60b0 | 7927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
7928 | (eval "$ac_link") 2>&5 |
7929 | ac_status=$? | |
562d60b0 | 7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
7931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7932 | { (case "(($ac_try" in | |
7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7934 | *) ac_try_echo=$ac_try;; | |
7935 | esac | |
562d60b0 | 7936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
7937 | (eval "$ac_try") 2>&5 |
7938 | ac_status=$? | |
562d60b0 | 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 7940 | (exit $ac_status); }; }; then |
2ed04863 WC |
7941 | |
7942 | DLOPEN_LIBRPM="`cat conftest.out`" | |
7943 | if test "x$DLOPEN_LIBRPM" != "x"; then | |
7944 | HAVE_DLOPEN_LIBRPM=true | |
562d60b0 DB |
7945 | { echo "$as_me:$LINENO: result: $DLOPEN_LIBRPM" >&5 |
7946 | echo "${ECHO_T}$DLOPEN_LIBRPM" >&6; } | |
2ed04863 WC |
7947 | fi |
7948 | ||
412e1bf7 | 7949 | else |
562d60b0 DB |
7950 | echo "$as_me: program exited with status $ac_status" >&5 |
7951 | echo "$as_me: failed program was:" >&5 | |
412e1bf7 FCE |
7952 | sed 's/^/| /' conftest.$ac_ext >&5 |
7953 | ||
2ed04863 | 7954 | fi |
412e1bf7 | 7955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2ed04863 WC |
7956 | fi |
7957 | ||
412e1bf7 | 7958 | |
2ed04863 WC |
7959 | rm -f conftest.out |
7960 | ||
7961 | ||
7962 | ||
7963 | ||
7964 | if $HAVE_DLOPEN_LIBRPM; then | |
7965 | ||
562d60b0 DB |
7966 | { echo "$as_me:$LINENO: checking rpm library API compatibility" >&5 |
7967 | echo $ECHO_N "checking rpm library API compatibility... $ECHO_C" >&6; } | |
2ed04863 WC |
7968 | # The compilation requires -Werror to verify anything. |
7969 | save_CFLAGS="$CFLAGS" | |
7970 | CFLAGS="$CFLAGS -Werror" | |
412e1bf7 FCE |
7971 | cat >conftest.$ac_ext <<_ACEOF |
7972 | /* confdefs.h. */ | |
7973 | _ACEOF | |
7974 | cat confdefs.h >>conftest.$ac_ext | |
7975 | cat >>conftest.$ac_ext <<_ACEOF | |
2ed04863 WC |
7976 | /* end confdefs.h. */ |
7977 | ||
7978 | /* Duplicate here the declarations to verify they match "symfile.c". */ | |
7979 | #include <rpm/rpmlib.h> | |
7980 | #include <rpm/rpmts.h> | |
7981 | #include <rpm/rpmdb.h> | |
7982 | #include <rpm/header.h> | |
7983 | extern char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg); | |
7984 | extern int rpmReadConfigFiles(const char * file, const char * target); | |
7985 | extern rpmdbMatchIterator rpmdbFreeIterator(rpmdbMatchIterator mi); | |
7986 | extern Header rpmdbNextIterator(rpmdbMatchIterator mi); | |
7987 | extern rpmts rpmtsCreate(void); | |
7988 | extern rpmts rpmtsFree(rpmts ts); | |
7989 | extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag, | |
7990 | const void * keyp, size_t keylen); | |
7991 | ||
7992 | int | |
7993 | main () | |
7994 | { | |
7995 | ||
7996 | ; | |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
412e1bf7 FCE |
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 | |
562d60b0 | 8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8007 | (eval "$ac_compile") 2>conftest.er1 |
8008 | ac_status=$? | |
8009 | grep -v '^ *+' conftest.er1 >conftest.err | |
8010 | rm -f conftest.er1 | |
8011 | cat conftest.err >&5 | |
562d60b0 | 8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8013 | (exit $ac_status); } && { |
8014 | test -z "$ac_c_werror_flag" || | |
8015 | test ! -s conftest.err | |
8016 | } && test -s conftest.$ac_objext; then | |
2ed04863 WC |
8017 | |
8018 | LIBRPM_COMPAT=true | |
8019 | rpm_LIBS=-lrpm | |
562d60b0 DB |
8020 | { echo "$as_me:$LINENO: result: yes" >&5 |
8021 | echo "${ECHO_T}yes" >&6; } | |
2ed04863 WC |
8022 | |
8023 | else | |
562d60b0 | 8024 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
8026 | ||
2ed04863 WC |
8027 | |
8028 | LIBRPM_COMPAT=false | |
8029 | rpm_LIBS= | |
562d60b0 DB |
8030 | { echo "$as_me:$LINENO: result: no" >&5 |
8031 | echo "${ECHO_T}no" >&6; } | |
2ed04863 WC |
8032 | |
8033 | fi | |
412e1bf7 | 8034 | |
2ed04863 WC |
8035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8036 | CFLAGS="$save_CFLAGS" | |
8037 | ||
8038 | if ! $LIBRPM_COMPAT; then | |
8039 | HAVE_DLOPEN_LIBRPM=false | |
8040 | fi | |
8041 | fi | |
8042 | ||
8043 | if $HAVE_DLOPEN_LIBRPM; then | |
8044 | DLOPEN_LIBRPM_STRING='"'"$DLOPEN_LIBRPM"'"' | |
8045 | ||
8046 | cat >>confdefs.h <<_ACEOF | |
8047 | #define DLOPEN_LIBRPM $DLOPEN_LIBRPM_STRING | |
8048 | _ACEOF | |
8049 | ||
8050 | ||
412e1bf7 FCE |
8051 | cat >>confdefs.h <<\_ACEOF |
8052 | #define HAVE_LIBRPM 1 | |
8053 | _ACEOF | |
2ed04863 WC |
8054 | |
8055 | else | |
562d60b0 DB |
8056 | { echo "$as_me:$LINENO: result: no" >&5 |
8057 | echo "${ECHO_T}no" >&6; } | |
2ed04863 WC |
8058 | LIBS="$save_LIBS" |
8059 | if $DLOPEN_REQUIRE; then | |
562d60b0 DB |
8060 | { { echo "$as_me:$LINENO: error: Specific name $LIBRPM was requested but it could not be opened." >&5 |
8061 | echo "$as_me: error: Specific name $LIBRPM was requested but it could not be opened." >&2;} | |
412e1bf7 | 8062 | { (exit 1); exit 1; }; } |
2ed04863 WC |
8063 | fi |
8064 | ||
8065 | pkg_failed=no | |
562d60b0 DB |
8066 | { echo "$as_me:$LINENO: checking for RPM" >&5 |
8067 | echo $ECHO_N "checking for RPM... $ECHO_C" >&6; } | |
8068 | ||
8069 | if test -n "$PKG_CONFIG"; then | |
8070 | if test -n "$RPM_CFLAGS"; then | |
8071 | pkg_cv_RPM_CFLAGS="$RPM_CFLAGS" | |
8072 | else | |
8073 | if test -n "$PKG_CONFIG" && \ | |
8074 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rpm\"") >&5 | |
2ed04863 WC |
8075 | ($PKG_CONFIG --exists --print-errors "rpm") 2>&5 |
8076 | ac_status=$? | |
562d60b0 | 8077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 8078 | (exit $ac_status); }; then |
2ed04863 WC |
8079 | pkg_cv_RPM_CFLAGS=`$PKG_CONFIG --cflags "rpm" 2>/dev/null` |
8080 | else | |
8081 | pkg_failed=yes | |
8082 | fi | |
562d60b0 DB |
8083 | fi |
8084 | else | |
8085 | pkg_failed=untried | |
2ed04863 | 8086 | fi |
562d60b0 DB |
8087 | if test -n "$PKG_CONFIG"; then |
8088 | if test -n "$RPM_LIBS"; then | |
8089 | pkg_cv_RPM_LIBS="$RPM_LIBS" | |
8090 | else | |
8091 | if test -n "$PKG_CONFIG" && \ | |
8092 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rpm\"") >&5 | |
2ed04863 WC |
8093 | ($PKG_CONFIG --exists --print-errors "rpm") 2>&5 |
8094 | ac_status=$? | |
562d60b0 | 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 | 8096 | (exit $ac_status); }; then |
2ed04863 WC |
8097 | pkg_cv_RPM_LIBS=`$PKG_CONFIG --libs "rpm" 2>/dev/null` |
8098 | else | |
8099 | pkg_failed=yes | |
8100 | fi | |
562d60b0 DB |
8101 | fi |
8102 | else | |
8103 | pkg_failed=untried | |
2ed04863 WC |
8104 | fi |
8105 | ||
8106 | ||
8107 | ||
8108 | if test $pkg_failed = yes; then | |
8109 | ||
8110 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8111 | _pkg_short_errors_supported=yes | |
8112 | else | |
8113 | _pkg_short_errors_supported=no | |
8114 | fi | |
8115 | if test $_pkg_short_errors_supported = yes; then | |
562d60b0 | 8116 | RPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "rpm"` |
2ed04863 | 8117 | else |
562d60b0 | 8118 | RPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "rpm"` |
2ed04863 WC |
8119 | fi |
8120 | # Put the nasty error message in config.log where it belongs | |
8121 | echo "$RPM_PKG_ERRORS" >&5 | |
8122 | ||
562d60b0 DB |
8123 | { echo "$as_me:$LINENO: result: no" >&5 |
8124 | echo "${ECHO_T}no" >&6; } | |
2ed04863 WC |
8125 | HAVE_LIBRPM=false |
8126 | elif test $pkg_failed = untried; then | |
8127 | HAVE_LIBRPM=false | |
8128 | else | |
8129 | RPM_CFLAGS=$pkg_cv_RPM_CFLAGS | |
8130 | RPM_LIBS=$pkg_cv_RPM_LIBS | |
562d60b0 DB |
8131 | { echo "$as_me:$LINENO: result: yes" >&5 |
8132 | echo "${ECHO_T}yes" >&6; } | |
2ed04863 WC |
8133 | HAVE_LIBRPM=true |
8134 | fi | |
8135 | ||
8136 | if $HAVE_LIBRPM; then | |
8137 | ||
562d60b0 DB |
8138 | { echo "$as_me:$LINENO: checking rpm library API compatibility" >&5 |
8139 | echo $ECHO_N "checking rpm library API compatibility... $ECHO_C" >&6; } | |
2ed04863 WC |
8140 | # The compilation requires -Werror to verify anything. |
8141 | save_CFLAGS="$CFLAGS" | |
8142 | CFLAGS="$CFLAGS -Werror" | |
412e1bf7 FCE |
8143 | cat >conftest.$ac_ext <<_ACEOF |
8144 | /* confdefs.h. */ | |
8145 | _ACEOF | |
8146 | cat confdefs.h >>conftest.$ac_ext | |
8147 | cat >>conftest.$ac_ext <<_ACEOF | |
2ed04863 WC |
8148 | /* end confdefs.h. */ |
8149 | ||
8150 | /* Duplicate here the declarations to verify they match "symfile.c". */ | |
8151 | #include <rpm/rpmlib.h> | |
8152 | #include <rpm/rpmts.h> | |
8153 | #include <rpm/rpmdb.h> | |
8154 | #include <rpm/header.h> | |
8155 | extern char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg); | |
8156 | extern int rpmReadConfigFiles(const char * file, const char * target); | |
8157 | extern rpmdbMatchIterator rpmdbFreeIterator(rpmdbMatchIterator mi); | |
8158 | extern Header rpmdbNextIterator(rpmdbMatchIterator mi); | |
8159 | extern rpmts rpmtsCreate(void); | |
8160 | extern rpmts rpmtsFree(rpmts ts); | |
8161 | extern rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag, | |
8162 | const void * keyp, size_t keylen); | |
8163 | ||
8164 | int | |
8165 | main () | |
8166 | { | |
8167 | ||
8168 | ; | |
8169 | return 0; | |
8170 | } | |
8171 | _ACEOF | |
412e1bf7 FCE |
8172 | rm -f conftest.$ac_objext |
8173 | if { (ac_try="$ac_compile" | |
8174 | case "(($ac_try" in | |
8175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8176 | *) ac_try_echo=$ac_try;; | |
8177 | esac | |
562d60b0 | 8178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8179 | (eval "$ac_compile") 2>conftest.er1 |
8180 | ac_status=$? | |
8181 | grep -v '^ *+' conftest.er1 >conftest.err | |
8182 | rm -f conftest.er1 | |
8183 | cat conftest.err >&5 | |
562d60b0 | 8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8185 | (exit $ac_status); } && { |
8186 | test -z "$ac_c_werror_flag" || | |
8187 | test ! -s conftest.err | |
8188 | } && test -s conftest.$ac_objext; then | |
2ed04863 WC |
8189 | |
8190 | LIBRPM_COMPAT=true | |
8191 | rpm_LIBS=-lrpm | |
562d60b0 DB |
8192 | { echo "$as_me:$LINENO: result: yes" >&5 |
8193 | echo "${ECHO_T}yes" >&6; } | |
2ed04863 WC |
8194 | |
8195 | else | |
562d60b0 | 8196 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8197 | sed 's/^/| /' conftest.$ac_ext >&5 |
8198 | ||
2ed04863 WC |
8199 | |
8200 | LIBRPM_COMPAT=false | |
8201 | rpm_LIBS= | |
562d60b0 DB |
8202 | { echo "$as_me:$LINENO: result: no" >&5 |
8203 | echo "${ECHO_T}no" >&6; } | |
2ed04863 WC |
8204 | |
8205 | fi | |
412e1bf7 | 8206 | |
2ed04863 WC |
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8208 | CFLAGS="$save_CFLAGS" | |
8209 | ||
8210 | if ! $LIBRPM_COMPAT; then | |
8211 | HAVE_LIBRPM=false | |
8212 | RPM_PKG_ERRORS="Found $LIBRPM API is incompatibile with this GDB" | |
8213 | fi | |
8214 | fi | |
8215 | ||
8216 | if $HAVE_LIBRPM; then | |
8217 | ||
412e1bf7 FCE |
8218 | cat >>confdefs.h <<\_ACEOF |
8219 | #define HAVE_LIBRPM 1 | |
8220 | _ACEOF | |
2ed04863 WC |
8221 | |
8222 | CFLAGS="$CFLAGS $RPM_CFLAGS" | |
8223 | LIBS="$LIBS $RPM_LIBS" | |
8224 | else | |
8225 | if $RPM_REQUIRE; then | |
562d60b0 DB |
8226 | { { echo "$as_me:$LINENO: error: $RPM_PKG_ERRORS" >&5 |
8227 | echo "$as_me: error: $RPM_PKG_ERRORS" >&2;} | |
412e1bf7 | 8228 | { (exit 1); exit 1; }; } |
2ed04863 | 8229 | else |
562d60b0 DB |
8230 | { echo "$as_me:$LINENO: WARNING: $RPM_PKG_ERRORS" >&5 |
8231 | echo "$as_me: WARNING: $RPM_PKG_ERRORS" >&2;} | |
2ed04863 WC |
8232 | fi |
8233 | fi | |
8234 | fi | |
8235 | fi | |
8236 | ||
8237 | ||
e8f3c2c2 DS |
8238 | build_elfutils=no |
8239 | ||
7fbd9d09 | 8240 | # Check whether --with-elfutils was given. |
412e1bf7 | 8241 | if test "${with_elfutils+set}" = set; then |
7fbd9d09 | 8242 | withval=$with_elfutils; |
e8f3c2c2 | 8243 | case "$with_elfutils" in |
562d60b0 DB |
8244 | yes) { { echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5 |
8245 | echo "$as_me: error: --with-elfutils requires an argument" >&2;} | |
412e1bf7 | 8246 | { (exit 1); exit 1; }; } ;; |
e8f3c2c2 DS |
8247 | ''|no) ;; |
8248 | *) build_elfutils=yes ;; | |
8249 | esac | |
7fbd9d09 | 8250 | fi |
e8f3c2c2 | 8251 | |
7fbd9d09 | 8252 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
8253 | BUILD_ELFUTILS_TRUE= |
8254 | BUILD_ELFUTILS_FALSE='#' | |
8255 | else | |
8256 | BUILD_ELFUTILS_TRUE='#' | |
8257 | BUILD_ELFUTILS_FALSE= | |
8258 | fi | |
8259 | ||
412e1bf7 | 8260 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then |
e8f3c2c2 | 8261 | cd $with_elfutils && pwd |
412e1bf7 FCE |
8262 | fi |
8263 | ` | |
e8f3c2c2 DS |
8264 | |
8265 | ||
9cb3a339 | 8266 | if test $build_elfutils = no; then |
8d4b1ab0 | 8267 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ |
4d9087fc | 8268 | save_LIBS="$LIBS" |
412e1bf7 | 8269 | |
562d60b0 DB |
8270 | { echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 |
8271 | echo $ECHO_N "checking for dwfl_module_getsym in -ldw... $ECHO_C" >&6; } | |
412e1bf7 | 8272 | if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then |
562d60b0 | 8273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4645fadb JS |
8274 | else |
8275 | ac_check_lib_save_LIBS=$LIBS | |
8276 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
412e1bf7 FCE |
8277 | cat >conftest.$ac_ext <<_ACEOF |
8278 | /* confdefs.h. */ | |
8279 | _ACEOF | |
8280 | cat confdefs.h >>conftest.$ac_ext | |
8281 | cat >>conftest.$ac_ext <<_ACEOF | |
4645fadb JS |
8282 | /* end confdefs.h. */ |
8283 | ||
7fbd9d09 FCE |
8284 | /* Override any GCC internal prototype to avoid an error. |
8285 | Use char because int might match the return type of a GCC | |
8286 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
8287 | #ifdef __cplusplus |
8288 | extern "C" | |
8289 | #endif | |
8290 | char dwfl_module_getsym (); | |
8291 | int | |
8292 | main () | |
8293 | { | |
7fbd9d09 | 8294 | return dwfl_module_getsym (); |
4645fadb JS |
8295 | ; |
8296 | return 0; | |
8297 | } | |
8298 | _ACEOF | |
412e1bf7 FCE |
8299 | rm -f conftest.$ac_objext conftest$ac_exeext |
8300 | if { (ac_try="$ac_link" | |
8301 | case "(($ac_try" in | |
8302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8303 | *) ac_try_echo=$ac_try;; | |
8304 | esac | |
562d60b0 | 8305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8306 | (eval "$ac_link") 2>conftest.er1 |
8307 | ac_status=$? | |
8308 | grep -v '^ *+' conftest.er1 >conftest.err | |
8309 | rm -f conftest.er1 | |
8310 | cat conftest.err >&5 | |
562d60b0 | 8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8312 | (exit $ac_status); } && { |
8313 | test -z "$ac_c_werror_flag" || | |
8314 | test ! -s conftest.err | |
562d60b0 DB |
8315 | } && test -s conftest$ac_exeext && |
8316 | $as_test_x conftest$ac_exeext; then | |
4645fadb JS |
8317 | ac_cv_lib_dw_dwfl_module_getsym=yes |
8318 | else | |
562d60b0 | 8319 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8320 | sed 's/^/| /' conftest.$ac_ext >&5 |
8321 | ||
8322 | ac_cv_lib_dw_dwfl_module_getsym=no | |
4645fadb | 8323 | fi |
412e1bf7 | 8324 | |
412e1bf7 FCE |
8325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8326 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
8327 | LIBS=$ac_check_lib_save_LIBS |
8328 | fi | |
562d60b0 DB |
8329 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
8330 | echo "${ECHO_T}$ac_cv_lib_dw_dwfl_module_getsym" >&6; } | |
8331 | if test $ac_cv_lib_dw_dwfl_module_getsym = yes; then | |
4645fadb JS |
8332 | cat >>confdefs.h <<_ACEOF |
8333 | #define HAVE_LIBDW 1 | |
8334 | _ACEOF | |
8335 | ||
8336 | LIBS="-ldw $LIBS" | |
8337 | ||
8338 | else | |
8339 | ||
562d60b0 DB |
8340 | { { echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 |
8341 | echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} | |
412e1bf7 | 8342 | { (exit 1); exit 1; }; } |
4645fadb JS |
8343 | fi |
8344 | ||
412e1bf7 | 8345 | |
562d60b0 DB |
8346 | { echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5 |
8347 | echo $ECHO_N "checking for dwarf_getelf in -ldw... $ECHO_C" >&6; } | |
412e1bf7 | 8348 | if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then |
562d60b0 | 8349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
87cb1275 MW |
8350 | else |
8351 | ac_check_lib_save_LIBS=$LIBS | |
8352 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
412e1bf7 FCE |
8353 | cat >conftest.$ac_ext <<_ACEOF |
8354 | /* confdefs.h. */ | |
8355 | _ACEOF | |
8356 | cat confdefs.h >>conftest.$ac_ext | |
8357 | cat >>conftest.$ac_ext <<_ACEOF | |
87cb1275 MW |
8358 | /* end confdefs.h. */ |
8359 | ||
7fbd9d09 FCE |
8360 | /* Override any GCC internal prototype to avoid an error. |
8361 | Use char because int might match the return type of a GCC | |
8362 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
8363 | #ifdef __cplusplus |
8364 | extern "C" | |
8365 | #endif | |
8366 | char dwarf_getelf (); | |
8367 | int | |
8368 | main () | |
8369 | { | |
7fbd9d09 | 8370 | return dwarf_getelf (); |
87cb1275 MW |
8371 | ; |
8372 | return 0; | |
8373 | } | |
8374 | _ACEOF | |
412e1bf7 FCE |
8375 | rm -f conftest.$ac_objext conftest$ac_exeext |
8376 | if { (ac_try="$ac_link" | |
8377 | case "(($ac_try" in | |
8378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8379 | *) ac_try_echo=$ac_try;; | |
8380 | esac | |
562d60b0 | 8381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8382 | (eval "$ac_link") 2>conftest.er1 |
8383 | ac_status=$? | |
8384 | grep -v '^ *+' conftest.er1 >conftest.err | |
8385 | rm -f conftest.er1 | |
8386 | cat conftest.err >&5 | |
562d60b0 | 8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8388 | (exit $ac_status); } && { |
8389 | test -z "$ac_c_werror_flag" || | |
8390 | test ! -s conftest.err | |
562d60b0 DB |
8391 | } && test -s conftest$ac_exeext && |
8392 | $as_test_x conftest$ac_exeext; then | |
87cb1275 MW |
8393 | ac_cv_lib_dw_dwarf_getelf=yes |
8394 | else | |
562d60b0 | 8395 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
8397 | ||
8398 | ac_cv_lib_dw_dwarf_getelf=no | |
87cb1275 | 8399 | fi |
412e1bf7 | 8400 | |
412e1bf7 FCE |
8401 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8402 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
8403 | LIBS=$ac_check_lib_save_LIBS |
8404 | fi | |
562d60b0 DB |
8405 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5 |
8406 | echo "${ECHO_T}$ac_cv_lib_dw_dwarf_getelf" >&6; } | |
8407 | if test $ac_cv_lib_dw_dwarf_getelf = yes; then | |
87cb1275 MW |
8408 | cat >>confdefs.h <<_ACEOF |
8409 | #define HAVE_LIBDW 1 | |
8410 | _ACEOF | |
8411 | ||
8412 | LIBS="-ldw $LIBS" | |
8413 | ||
8414 | else | |
8415 | ||
562d60b0 DB |
8416 | { { echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 |
8417 | echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} | |
412e1bf7 | 8418 | { (exit 1); exit 1; }; } |
87cb1275 MW |
8419 | fi |
8420 | ||
cfa2ca3c | 8421 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
e8f3c2c2 | 8422 | LIBS="$save_LIBS" |
4d9087fc RM |
8423 | else |
8424 | # We built our own and stap_LDFLAGS points at the install. | |
4645fadb JS |
8425 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
8426 | fi | |
8427 | ||
6b1a0274 | 8428 | |
562d60b0 DB |
8429 | { echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5 |
8430 | echo "$as_me: stap will link $stap_LIBS" >&6;} | |
c3a3c0c9 | 8431 | |
69c68955 FCE |
8432 | date=`date +%Y-%m-%d` |
8433 | ||
8434 | cat >>confdefs.h <<_ACEOF | |
8435 | #define DATE "$date" | |
8436 | _ACEOF | |
8437 | ||
82fab474 | 8438 | DATE="$date" |
69c68955 FCE |
8439 | |
8440 | ||
47f390f9 FCE |
8441 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
8442 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
8443 | # This is no longer necessary. | |
5566993b | 8444 | |
3bf6ac45 | 8445 | # Use tr1/unordered_map if available |
7fbd9d09 | 8446 | ac_ext=cpp |
3bf6ac45 TM |
8447 | ac_cpp='$CXXCPP $CPPFLAGS' |
8448 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8449 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8450 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8451 | ||
8452 | ||
3bf6ac45 | 8453 | for ac_header in tr1/unordered_map |
412e1bf7 | 8454 | do |
562d60b0 | 8455 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
412e1bf7 | 8456 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
8457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 8459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 | 8461 | fi |
562d60b0 DB |
8462 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8463 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8464 | echo "${ECHO_T}$ac_res" >&6; } | |
469c1a1b FCE |
8465 | else |
8466 | # Is the header compilable? | |
562d60b0 DB |
8467 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8468 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
469c1a1b FCE |
8469 | cat >conftest.$ac_ext <<_ACEOF |
8470 | /* confdefs.h. */ | |
8471 | _ACEOF | |
8472 | cat confdefs.h >>conftest.$ac_ext | |
8473 | cat >>conftest.$ac_ext <<_ACEOF | |
8474 | /* end confdefs.h. */ | |
8475 | $ac_includes_default | |
8476 | #include <$ac_header> | |
8477 | _ACEOF | |
8478 | rm -f conftest.$ac_objext | |
8479 | if { (ac_try="$ac_compile" | |
8480 | case "(($ac_try" in | |
8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8482 | *) ac_try_echo=$ac_try;; | |
8483 | esac | |
562d60b0 | 8484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
469c1a1b FCE |
8485 | (eval "$ac_compile") 2>conftest.er1 |
8486 | ac_status=$? | |
8487 | grep -v '^ *+' conftest.er1 >conftest.err | |
8488 | rm -f conftest.er1 | |
8489 | cat conftest.err >&5 | |
562d60b0 | 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
469c1a1b FCE |
8491 | (exit $ac_status); } && { |
8492 | test -z "$ac_cxx_werror_flag" || | |
8493 | test ! -s conftest.err | |
8494 | } && test -s conftest.$ac_objext; then | |
8495 | ac_header_compiler=yes | |
8496 | else | |
562d60b0 | 8497 | echo "$as_me: failed program was:" >&5 |
469c1a1b FCE |
8498 | sed 's/^/| /' conftest.$ac_ext >&5 |
8499 | ||
8500 | ac_header_compiler=no | |
8501 | fi | |
8502 | ||
8503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
8504 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8505 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
469c1a1b FCE |
8506 | |
8507 | # Is the header present? | |
562d60b0 DB |
8508 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8509 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
469c1a1b FCE |
8510 | cat >conftest.$ac_ext <<_ACEOF |
8511 | /* confdefs.h. */ | |
8512 | _ACEOF | |
8513 | cat confdefs.h >>conftest.$ac_ext | |
8514 | cat >>conftest.$ac_ext <<_ACEOF | |
8515 | /* end confdefs.h. */ | |
8516 | #include <$ac_header> | |
8517 | _ACEOF | |
8518 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8519 | case "(($ac_try" in | |
8520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8521 | *) ac_try_echo=$ac_try;; | |
8522 | esac | |
562d60b0 | 8523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
469c1a1b FCE |
8524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8525 | ac_status=$? | |
8526 | grep -v '^ *+' conftest.er1 >conftest.err | |
8527 | rm -f conftest.er1 | |
8528 | cat conftest.err >&5 | |
562d60b0 | 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
469c1a1b FCE |
8530 | (exit $ac_status); } >/dev/null && { |
8531 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8532 | test ! -s conftest.err | |
8533 | }; then | |
8534 | ac_header_preproc=yes | |
8535 | else | |
562d60b0 | 8536 | echo "$as_me: failed program was:" >&5 |
469c1a1b FCE |
8537 | sed 's/^/| /' conftest.$ac_ext >&5 |
8538 | ||
8539 | ac_header_preproc=no | |
8540 | fi | |
8541 | ||
8542 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
8543 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8544 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
469c1a1b FCE |
8545 | |
8546 | # So? What about this header? | |
8547 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8548 | yes:no: ) | |
562d60b0 DB |
8549 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8550 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8552 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
469c1a1b FCE |
8553 | ac_header_preproc=yes |
8554 | ;; | |
8555 | no:yes:* ) | |
562d60b0 DB |
8556 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8557 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8558 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8559 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8560 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8561 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8562 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8563 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8565 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8566 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8567 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
469c1a1b FCE |
8568 | ( cat <<\_ASBOX |
8569 | ## ------------------------------------------- ## | |
8570 | ## Report this to systemtap@sources.redhat.com ## | |
8571 | ## ------------------------------------------- ## | |
8572 | _ASBOX | |
8573 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8574 | ;; | |
8575 | esac | |
562d60b0 DB |
8576 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
469c1a1b | 8578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
469c1a1b FCE |
8580 | else |
8581 | eval "$as_ac_Header=\$ac_header_preproc" | |
8582 | fi | |
562d60b0 DB |
8583 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8584 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8585 | echo "${ECHO_T}$ac_res" >&6; } | |
469c1a1b FCE |
8586 | |
8587 | fi | |
562d60b0 | 8588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
469c1a1b | 8589 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 8590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
469c1a1b FCE |
8591 | _ACEOF |
8592 | ||
8593 | fi | |
8594 | ||
8595 | done | |
8596 | ||
8597 | ||
8598 | for ac_header in tr1/memory | |
8599 | do | |
562d60b0 | 8600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
469c1a1b | 8601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
8602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
469c1a1b | 8604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
469c1a1b | 8606 | fi |
562d60b0 DB |
8607 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8608 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8609 | echo "${ECHO_T}$ac_res" >&6; } | |
469c1a1b FCE |
8610 | else |
8611 | # Is the header compilable? | |
562d60b0 DB |
8612 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8613 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
469c1a1b FCE |
8614 | cat >conftest.$ac_ext <<_ACEOF |
8615 | /* confdefs.h. */ | |
8616 | _ACEOF | |
8617 | cat confdefs.h >>conftest.$ac_ext | |
8618 | cat >>conftest.$ac_ext <<_ACEOF | |
8619 | /* end confdefs.h. */ | |
8620 | $ac_includes_default | |
8621 | #include <$ac_header> | |
8622 | _ACEOF | |
8623 | rm -f conftest.$ac_objext | |
8624 | if { (ac_try="$ac_compile" | |
8625 | case "(($ac_try" in | |
8626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8627 | *) ac_try_echo=$ac_try;; | |
8628 | esac | |
562d60b0 | 8629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
469c1a1b FCE |
8630 | (eval "$ac_compile") 2>conftest.er1 |
8631 | ac_status=$? | |
8632 | grep -v '^ *+' conftest.er1 >conftest.err | |
8633 | rm -f conftest.er1 | |
8634 | cat conftest.err >&5 | |
562d60b0 | 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
469c1a1b FCE |
8636 | (exit $ac_status); } && { |
8637 | test -z "$ac_cxx_werror_flag" || | |
8638 | test ! -s conftest.err | |
8639 | } && test -s conftest.$ac_objext; then | |
8640 | ac_header_compiler=yes | |
8641 | else | |
562d60b0 | 8642 | echo "$as_me: failed program was:" >&5 |
469c1a1b FCE |
8643 | sed 's/^/| /' conftest.$ac_ext >&5 |
8644 | ||
8645 | ac_header_compiler=no | |
8646 | fi | |
8647 | ||
8648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
8649 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8650 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
469c1a1b FCE |
8651 | |
8652 | # Is the header present? | |
562d60b0 DB |
8653 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8654 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
469c1a1b FCE |
8655 | cat >conftest.$ac_ext <<_ACEOF |
8656 | /* confdefs.h. */ | |
8657 | _ACEOF | |
8658 | cat confdefs.h >>conftest.$ac_ext | |
8659 | cat >>conftest.$ac_ext <<_ACEOF | |
8660 | /* end confdefs.h. */ | |
8661 | #include <$ac_header> | |
8662 | _ACEOF | |
8663 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8664 | case "(($ac_try" in | |
8665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8666 | *) ac_try_echo=$ac_try;; | |
8667 | esac | |
562d60b0 | 8668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
469c1a1b FCE |
8669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8670 | ac_status=$? | |
8671 | grep -v '^ *+' conftest.er1 >conftest.err | |
8672 | rm -f conftest.er1 | |
8673 | cat conftest.err >&5 | |
562d60b0 | 8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
469c1a1b FCE |
8675 | (exit $ac_status); } >/dev/null && { |
8676 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8677 | test ! -s conftest.err | |
8678 | }; then | |
8679 | ac_header_preproc=yes | |
8680 | else | |
562d60b0 | 8681 | echo "$as_me: failed program was:" >&5 |
469c1a1b FCE |
8682 | sed 's/^/| /' conftest.$ac_ext >&5 |
8683 | ||
8684 | ac_header_preproc=no | |
8685 | fi | |
8686 | ||
8687 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
8688 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8689 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
469c1a1b FCE |
8690 | |
8691 | # So? What about this header? | |
8692 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8693 | yes:no: ) | |
562d60b0 DB |
8694 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8695 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8697 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
469c1a1b FCE |
8698 | ac_header_preproc=yes |
8699 | ;; | |
8700 | no:yes:* ) | |
562d60b0 DB |
8701 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8702 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8703 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8704 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8705 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8706 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8707 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8708 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8710 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8711 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8712 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
469c1a1b FCE |
8713 | ( cat <<\_ASBOX |
8714 | ## ------------------------------------------- ## | |
8715 | ## Report this to systemtap@sources.redhat.com ## | |
8716 | ## ------------------------------------------- ## | |
8717 | _ASBOX | |
8718 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8719 | ;; | |
8720 | esac | |
562d60b0 DB |
8721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
469c1a1b | 8723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
469c1a1b FCE |
8725 | else |
8726 | eval "$as_ac_Header=\$ac_header_preproc" | |
8727 | fi | |
562d60b0 DB |
8728 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8729 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8730 | echo "${ECHO_T}$ac_res" >&6; } | |
469c1a1b FCE |
8731 | |
8732 | fi | |
562d60b0 | 8733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
469c1a1b | 8734 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 8735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
469c1a1b FCE |
8736 | _ACEOF |
8737 | ||
8738 | fi | |
8739 | ||
8740 | done | |
8741 | ||
8742 | ||
8743 | for ac_header in boost/shared_ptr.hpp | |
8744 | do | |
562d60b0 | 8745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
469c1a1b | 8746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
8747 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
469c1a1b | 8749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
469c1a1b | 8751 | fi |
562d60b0 DB |
8752 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8753 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8754 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
8755 | else |
8756 | # Is the header compilable? | |
562d60b0 DB |
8757 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
412e1bf7 FCE |
8759 | cat >conftest.$ac_ext <<_ACEOF |
8760 | /* confdefs.h. */ | |
8761 | _ACEOF | |
8762 | cat confdefs.h >>conftest.$ac_ext | |
8763 | cat >>conftest.$ac_ext <<_ACEOF | |
8764 | /* end confdefs.h. */ | |
8765 | $ac_includes_default | |
8766 | #include <$ac_header> | |
8767 | _ACEOF | |
8768 | rm -f conftest.$ac_objext | |
8769 | if { (ac_try="$ac_compile" | |
8770 | case "(($ac_try" in | |
8771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8772 | *) ac_try_echo=$ac_try;; | |
8773 | esac | |
562d60b0 | 8774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8775 | (eval "$ac_compile") 2>conftest.er1 |
8776 | ac_status=$? | |
8777 | grep -v '^ *+' conftest.er1 >conftest.err | |
8778 | rm -f conftest.er1 | |
8779 | cat conftest.err >&5 | |
562d60b0 | 8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8781 | (exit $ac_status); } && { |
8782 | test -z "$ac_cxx_werror_flag" || | |
8783 | test ! -s conftest.err | |
8784 | } && test -s conftest.$ac_objext; then | |
8785 | ac_header_compiler=yes | |
8786 | else | |
562d60b0 | 8787 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8788 | sed 's/^/| /' conftest.$ac_ext >&5 |
8789 | ||
8790 | ac_header_compiler=no | |
8791 | fi | |
8792 | ||
8793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
8794 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8795 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
412e1bf7 FCE |
8796 | |
8797 | # Is the header present? | |
562d60b0 DB |
8798 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8799 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
412e1bf7 FCE |
8800 | cat >conftest.$ac_ext <<_ACEOF |
8801 | /* confdefs.h. */ | |
8802 | _ACEOF | |
8803 | cat confdefs.h >>conftest.$ac_ext | |
8804 | cat >>conftest.$ac_ext <<_ACEOF | |
8805 | /* end confdefs.h. */ | |
8806 | #include <$ac_header> | |
8807 | _ACEOF | |
8808 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8809 | case "(($ac_try" in | |
8810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8811 | *) ac_try_echo=$ac_try;; | |
8812 | esac | |
562d60b0 | 8813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
8814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8815 | ac_status=$? | |
8816 | grep -v '^ *+' conftest.er1 >conftest.err | |
8817 | rm -f conftest.er1 | |
8818 | cat conftest.err >&5 | |
562d60b0 | 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
8820 | (exit $ac_status); } >/dev/null && { |
8821 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
8822 | test ! -s conftest.err | |
8823 | }; then | |
8824 | ac_header_preproc=yes | |
8825 | else | |
562d60b0 | 8826 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
8827 | sed 's/^/| /' conftest.$ac_ext >&5 |
8828 | ||
8829 | ac_header_preproc=no | |
8830 | fi | |
8831 | ||
8832 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
8833 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8834 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
412e1bf7 FCE |
8835 | |
8836 | # So? What about this header? | |
8837 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
8838 | yes:no: ) | |
562d60b0 DB |
8839 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8840 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8842 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
412e1bf7 FCE |
8843 | ac_header_preproc=yes |
8844 | ;; | |
8845 | no:yes:* ) | |
562d60b0 DB |
8846 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8847 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8848 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8849 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8850 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8851 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8852 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8853 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8856 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8857 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
412e1bf7 FCE |
8858 | ( cat <<\_ASBOX |
8859 | ## ------------------------------------------- ## | |
8860 | ## Report this to systemtap@sources.redhat.com ## | |
8861 | ## ------------------------------------------- ## | |
8862 | _ASBOX | |
8863 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8864 | ;; | |
8865 | esac | |
562d60b0 DB |
8866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 8868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
8870 | else |
8871 | eval "$as_ac_Header=\$ac_header_preproc" | |
8872 | fi | |
562d60b0 DB |
8873 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8874 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8875 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
8876 | |
8877 | fi | |
562d60b0 | 8878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3bf6ac45 | 8879 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 8880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3bf6ac45 TM |
8881 | _ACEOF |
8882 | ||
8883 | fi | |
8884 | ||
8885 | done | |
8886 | ||
8887 | ac_ext=c | |
8888 | ac_cpp='$CPP $CPPFLAGS' | |
8889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8892 | ||
8893 | ||
e016a49a FCE |
8894 | |
8895 | if test $build_elfutils = yes; then | |
8896 | case "$with_elfutils" in | |
8897 | /*) elfutils_srcdir="$with_elfutils" ;; | |
8898 | *) elfutils_srcdir="../$with_elfutils" ;; | |
8899 | esac | |
562d60b0 DB |
8900 | { echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5 |
8901 | echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} | |
29b694a7 DS |
8902 | |
8903 | save_CFLAGS="$CFLAGS" | |
8904 | save_CXXFLAGS="$CXXFLAGS" | |
8905 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
8906 | CFLAGS="$CFLAGS -fgnu89-inline" | |
8907 | gnu89_inline_flag="" | |
8908 | cat >conftest.$ac_ext <<_ACEOF | |
8909 | int something (); | |
8910 | _ACEOF | |
8911 | rm -f conftest.$ac_objext | |
8912 | if { (ac_try="$ac_compile" | |
8913 | case "(($ac_try" in | |
8914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8915 | *) ac_try_echo=$ac_try;; | |
8916 | esac | |
562d60b0 | 8917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
29b694a7 DS |
8918 | (eval "$ac_compile") 2>conftest.er1 |
8919 | ac_status=$? | |
8920 | grep -v '^ *+' conftest.er1 >conftest.err | |
8921 | rm -f conftest.er1 | |
8922 | cat conftest.err >&5 | |
562d60b0 | 8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29b694a7 DS |
8924 | (exit $ac_status); } && { |
8925 | test -z "$ac_c_werror_flag" || | |
8926 | test ! -s conftest.err | |
8927 | } && test -s conftest.$ac_objext; then | |
8928 | ||
562d60b0 DB |
8929 | { echo "$as_me:$LINENO: Compiling elfutils with gcc -fgnu89-inline" >&5 |
8930 | echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} | |
29b694a7 DS |
8931 | gnu89_inline_flag="-fgnu89-inline" |
8932 | else | |
562d60b0 | 8933 | echo "$as_me: failed program was:" >&5 |
29b694a7 DS |
8934 | sed 's/^/| /' conftest.$ac_ext >&5 |
8935 | ||
8936 | ||
562d60b0 DB |
8937 | { echo "$as_me:$LINENO: Compiler does not support -fgnu89-inline" >&5 |
8938 | echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} | |
29b694a7 DS |
8939 | fi |
8940 | ||
8941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8942 | CFLAGS="$save_CFLAGS" | |
8943 | CXXFLAGS="$save_CXXFLAGS" | |
8944 | ||
e016a49a FCE |
8945 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
8946 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
8947 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
8948 | # So we must make sure to pass those settings to elfutils configure. | |
8949 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
8950 | here=`pwd` | |
8951 | (mkdir -p build-elfutils && cd build-elfutils && | |
412e1bf7 | 8952 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
8953 | --includedir="${here}/include-elfutils" \ |
8954 | --libdir="${here}/lib-elfutils" \ | |
8955 | --exec-prefix="$exec_prefix" \ | |
8956 | --prefix="$prefix" \ | |
29b694a7 | 8957 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \ |
e016a49a | 8958 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 MW |
8959 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
8960 | echo Trying to install elfutils version header... | |
8961 | make install-pkgincludeHEADERS | |
8962 | fi | |
8963 | # so that elfutils/version.h - available from 0.138 - may be found. | |
93f86457 | 8964 | # Don't use install-data because that will fail (installing in $prefix). |
e016a49a | 8965 | ) |
93f86457 | 8966 | if test $? != 0; then exit; fi |
1c4cf93d MW |
8967 | save_CPPFLAGS=${CPPFLAGS} |
8968 | CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils | |
412e1bf7 FCE |
8969 | |
8970 | for ac_header in elfutils/version.h | |
8971 | do | |
562d60b0 | 8972 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
412e1bf7 | 8973 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
8974 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 8976 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 | 8978 | fi |
562d60b0 DB |
8979 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8981 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
8982 | else |
8983 | # Is the header compilable? | |
562d60b0 DB |
8984 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
412e1bf7 FCE |
8986 | cat >conftest.$ac_ext <<_ACEOF |
8987 | /* confdefs.h. */ | |
8988 | _ACEOF | |
8989 | cat confdefs.h >>conftest.$ac_ext | |
8990 | cat >>conftest.$ac_ext <<_ACEOF | |
8991 | /* end confdefs.h. */ | |
8992 | $ac_includes_default | |
8993 | #include <$ac_header> | |
8994 | _ACEOF | |
8995 | rm -f conftest.$ac_objext | |
8996 | if { (ac_try="$ac_compile" | |
8997 | case "(($ac_try" in | |
8998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8999 | *) ac_try_echo=$ac_try;; | |
9000 | esac | |
562d60b0 | 9001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
9002 | (eval "$ac_compile") 2>conftest.er1 |
9003 | ac_status=$? | |
9004 | grep -v '^ *+' conftest.er1 >conftest.err | |
9005 | rm -f conftest.er1 | |
9006 | cat conftest.err >&5 | |
562d60b0 | 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
9008 | (exit $ac_status); } && { |
9009 | test -z "$ac_c_werror_flag" || | |
9010 | test ! -s conftest.err | |
9011 | } && test -s conftest.$ac_objext; then | |
9012 | ac_header_compiler=yes | |
9013 | else | |
562d60b0 | 9014 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
9015 | sed 's/^/| /' conftest.$ac_ext >&5 |
9016 | ||
9017 | ac_header_compiler=no | |
9018 | fi | |
9019 | ||
9020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
9021 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9022 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
412e1bf7 FCE |
9023 | |
9024 | # Is the header present? | |
562d60b0 DB |
9025 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9026 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
412e1bf7 FCE |
9027 | cat >conftest.$ac_ext <<_ACEOF |
9028 | /* confdefs.h. */ | |
9029 | _ACEOF | |
9030 | cat confdefs.h >>conftest.$ac_ext | |
9031 | cat >>conftest.$ac_ext <<_ACEOF | |
9032 | /* end confdefs.h. */ | |
9033 | #include <$ac_header> | |
9034 | _ACEOF | |
9035 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9036 | case "(($ac_try" in | |
9037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9038 | *) ac_try_echo=$ac_try;; | |
9039 | esac | |
562d60b0 | 9040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
9041 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9042 | ac_status=$? | |
9043 | grep -v '^ *+' conftest.er1 >conftest.err | |
9044 | rm -f conftest.er1 | |
9045 | cat conftest.err >&5 | |
562d60b0 | 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
9047 | (exit $ac_status); } >/dev/null && { |
9048 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9049 | test ! -s conftest.err | |
9050 | }; then | |
9051 | ac_header_preproc=yes | |
9052 | else | |
562d60b0 | 9053 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
9055 | ||
9056 | ac_header_preproc=no | |
9057 | fi | |
9058 | ||
9059 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
9060 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9061 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
412e1bf7 FCE |
9062 | |
9063 | # So? What about this header? | |
9064 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9065 | yes:no: ) | |
562d60b0 DB |
9066 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9067 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9069 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
412e1bf7 FCE |
9070 | ac_header_preproc=yes |
9071 | ;; | |
9072 | no:yes:* ) | |
562d60b0 DB |
9073 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9074 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9075 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9076 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9077 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9078 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9079 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9080 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9082 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9083 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9084 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
412e1bf7 FCE |
9085 | ( cat <<\_ASBOX |
9086 | ## ------------------------------------------- ## | |
9087 | ## Report this to systemtap@sources.redhat.com ## | |
9088 | ## ------------------------------------------- ## | |
9089 | _ASBOX | |
9090 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9091 | ;; | |
9092 | esac | |
562d60b0 DB |
9093 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 9095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
9097 | else |
9098 | eval "$as_ac_Header=\$ac_header_preproc" | |
9099 | fi | |
562d60b0 DB |
9100 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9102 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
9103 | |
9104 | fi | |
562d60b0 | 9105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
1c4cf93d | 9106 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 9107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1c4cf93d MW |
9108 | _ACEOF |
9109 | ||
9110 | fi | |
9111 | ||
9112 | done | |
9113 | ||
9114 | CPPFLAGS="$save_CPPFLAGS" | |
9115 | else | |
412e1bf7 FCE |
9116 | |
9117 | for ac_header in elfutils/version.h | |
9118 | do | |
562d60b0 | 9119 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
412e1bf7 | 9120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 DB |
9121 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 9123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 9124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 | 9125 | fi |
562d60b0 DB |
9126 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9128 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
9129 | else |
9130 | # Is the header compilable? | |
562d60b0 DB |
9131 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
412e1bf7 FCE |
9133 | cat >conftest.$ac_ext <<_ACEOF |
9134 | /* confdefs.h. */ | |
9135 | _ACEOF | |
9136 | cat confdefs.h >>conftest.$ac_ext | |
9137 | cat >>conftest.$ac_ext <<_ACEOF | |
9138 | /* end confdefs.h. */ | |
9139 | $ac_includes_default | |
9140 | #include <$ac_header> | |
9141 | _ACEOF | |
9142 | rm -f conftest.$ac_objext | |
9143 | if { (ac_try="$ac_compile" | |
9144 | case "(($ac_try" in | |
9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9146 | *) ac_try_echo=$ac_try;; | |
9147 | esac | |
562d60b0 | 9148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
9149 | (eval "$ac_compile") 2>conftest.er1 |
9150 | ac_status=$? | |
9151 | grep -v '^ *+' conftest.er1 >conftest.err | |
9152 | rm -f conftest.er1 | |
9153 | cat conftest.err >&5 | |
562d60b0 | 9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
9155 | (exit $ac_status); } && { |
9156 | test -z "$ac_c_werror_flag" || | |
9157 | test ! -s conftest.err | |
9158 | } && test -s conftest.$ac_objext; then | |
9159 | ac_header_compiler=yes | |
9160 | else | |
562d60b0 | 9161 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
9162 | sed 's/^/| /' conftest.$ac_ext >&5 |
9163 | ||
9164 | ac_header_compiler=no | |
9165 | fi | |
9166 | ||
9167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
562d60b0 DB |
9168 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9169 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
412e1bf7 FCE |
9170 | |
9171 | # Is the header present? | |
562d60b0 DB |
9172 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
412e1bf7 FCE |
9174 | cat >conftest.$ac_ext <<_ACEOF |
9175 | /* confdefs.h. */ | |
9176 | _ACEOF | |
9177 | cat confdefs.h >>conftest.$ac_ext | |
9178 | cat >>conftest.$ac_ext <<_ACEOF | |
9179 | /* end confdefs.h. */ | |
9180 | #include <$ac_header> | |
9181 | _ACEOF | |
9182 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9183 | case "(($ac_try" in | |
9184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9185 | *) ac_try_echo=$ac_try;; | |
9186 | esac | |
562d60b0 | 9187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
412e1bf7 FCE |
9188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9189 | ac_status=$? | |
9190 | grep -v '^ *+' conftest.er1 >conftest.err | |
9191 | rm -f conftest.er1 | |
9192 | cat conftest.err >&5 | |
562d60b0 | 9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
412e1bf7 FCE |
9194 | (exit $ac_status); } >/dev/null && { |
9195 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9196 | test ! -s conftest.err | |
9197 | }; then | |
9198 | ac_header_preproc=yes | |
9199 | else | |
562d60b0 | 9200 | echo "$as_me: failed program was:" >&5 |
412e1bf7 FCE |
9201 | sed 's/^/| /' conftest.$ac_ext >&5 |
9202 | ||
9203 | ac_header_preproc=no | |
9204 | fi | |
9205 | ||
9206 | rm -f conftest.err conftest.$ac_ext | |
562d60b0 DB |
9207 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9208 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
412e1bf7 FCE |
9209 | |
9210 | # So? What about this header? | |
9211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9212 | yes:no: ) | |
562d60b0 DB |
9213 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9214 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9216 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
412e1bf7 FCE |
9217 | ac_header_preproc=yes |
9218 | ;; | |
9219 | no:yes:* ) | |
562d60b0 DB |
9220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9224 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9225 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9226 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9227 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9230 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9231 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
412e1bf7 FCE |
9232 | ( cat <<\_ASBOX |
9233 | ## ------------------------------------------- ## | |
9234 | ## Report this to systemtap@sources.redhat.com ## | |
9235 | ## ------------------------------------------- ## | |
9236 | _ASBOX | |
9237 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9238 | ;; | |
9239 | esac | |
562d60b0 DB |
9240 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
412e1bf7 | 9242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
562d60b0 | 9243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
412e1bf7 FCE |
9244 | else |
9245 | eval "$as_ac_Header=\$ac_header_preproc" | |
9246 | fi | |
562d60b0 DB |
9247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9249 | echo "${ECHO_T}$ac_res" >&6; } | |
412e1bf7 FCE |
9250 | |
9251 | fi | |
562d60b0 | 9252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
e016a49a | 9253 | cat >>confdefs.h <<_ACEOF |
562d60b0 | 9254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e016a49a FCE |
9255 | _ACEOF |
9256 | ||
9257 | fi | |
9258 | ||
9259 | done | |
9260 | ||
1c4cf93d | 9261 | fi |
e016a49a | 9262 | |
50431f30 MW |
9263 | |
9264 | cat >>confdefs.h <<_ACEOF | |
9265 | #define STAP_PREFIX "$prefix" | |
9266 | _ACEOF | |
9267 | ||
9268 | ||
7fbd9d09 | 9269 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 9270 | |
8d9ee48a JS |
9271 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.3stap man/stapprobes.irq.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.kprocess.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap man/stapprobes.snmp.3stap initscript/systemtap initscript/stap-server" |
9272 | ||
1087b83f | 9273 | subdirs="$subdirs testsuite" |
5ba96b90 | 9274 | |
6d14a4a9 EB |
9275 | if test $enable_translator == "yes"; then |
9276 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 9277 | |
6d14a4a9 | 9278 | fi |
65ffc3f3 | 9279 | ac_config_files="$ac_config_files run-staprun" |
3c960a7c | 9280 | |
e4aaabda MW |
9281 | ac_config_files="$ac_config_files dtrace" |
9282 | ||
2f1a1aea FCE |
9283 | cat >confcache <<\_ACEOF |
9284 | # This file is a shell script that caches the results of configure | |
9285 | # tests run on this system so they can be shared between configure | |
9286 | # scripts and configure runs, see configure's option --config-cache. | |
9287 | # It is not useful on other systems. If it contains results you don't | |
9288 | # want to keep, you may remove or edit it. | |
9289 | # | |
9290 | # config.status only pays attention to the cache file if you give it | |
9291 | # the --recheck option to rerun configure. | |
9292 | # | |
9293 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9294 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9295 | # following values. | |
9296 | ||
9297 | _ACEOF | |
9298 | ||
9299 | # The following way of writing the cache mishandles newlines in values, | |
9300 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 9301 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
9302 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9303 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
9304 | ( |
9305 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9306 | eval ac_val=\$$ac_var | |
9307 | case $ac_val in #( | |
9308 | *${as_nl}*) | |
9309 | case $ac_var in #( | |
562d60b0 DB |
9310 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
9311 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7fbd9d09 FCE |
9312 | esac |
9313 | case $ac_var in #( | |
9314 | _ | IFS | as_nl) ;; #( | |
412e1bf7 | 9315 | *) $as_unset $ac_var ;; |
7fbd9d09 FCE |
9316 | esac ;; |
9317 | esac | |
9318 | done | |
9319 | ||
2f1a1aea | 9320 | (set) 2>&1 | |
7fbd9d09 FCE |
9321 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9322 | *${as_nl}ac_space=\ *) | |
412e1bf7 FCE |
9323 | # `set' does not quote correctly, so add quotes (double-quote |
9324 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2f1a1aea FCE |
9325 | sed -n \ |
9326 | "s/'/'\\\\''/g; | |
9327 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 9328 | ;; #( |
2f1a1aea FCE |
9329 | *) |
9330 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 9331 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 9332 | ;; |
7fbd9d09 FCE |
9333 | esac | |
9334 | sort | |
9335 | ) | | |
2f1a1aea | 9336 | sed ' |
7fbd9d09 | 9337 | /^ac_cv_env_/b end |
2f1a1aea | 9338 | t clear |
7fbd9d09 | 9339 | :clear |
2f1a1aea FCE |
9340 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9341 | t end | |
7fbd9d09 FCE |
9342 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9343 | :end' >>confcache | |
9344 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9345 | if test -w "$cache_file"; then | |
9346 | test "x$cache_file" != "x/dev/null" && | |
562d60b0 DB |
9347 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
9348 | echo "$as_me: updating cache $cache_file" >&6;} | |
2f1a1aea FCE |
9349 | cat confcache >$cache_file |
9350 | else | |
562d60b0 DB |
9351 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
9352 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2f1a1aea FCE |
9353 | fi |
9354 | fi | |
9355 | rm -f confcache | |
9356 | ||
9357 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9358 | # Let make expand exec_prefix. | |
9359 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9360 | ||
2f1a1aea FCE |
9361 | DEFS=-DHAVE_CONFIG_H |
9362 | ||
9363 | ac_libobjs= | |
9364 | ac_ltlibobjs= | |
9365 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9366 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 9367 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
562d60b0 | 9368 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
9369 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9370 | # will be set to the directory where LIBOBJS objects are built. | |
412e1bf7 FCE |
9371 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9372 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
9373 | done |
9374 | LIBOBJS=$ac_libobjs | |
9375 | ||
9376 | LTLIBOBJS=$ac_ltlibobjs | |
9377 | ||
9378 | ||
9379 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
562d60b0 | 9380 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
412e1bf7 | 9381 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9382 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
412e1bf7 FCE |
9383 | Usually this means the macro was only invoked conditionally." >&2;} |
9384 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9385 | fi |
9386 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
562d60b0 | 9387 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
412e1bf7 | 9388 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9389 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
412e1bf7 FCE |
9390 | Usually this means the macro was only invoked conditionally." >&2;} |
9391 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9392 | fi |
9393 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
562d60b0 | 9394 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
412e1bf7 | 9395 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9396 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
412e1bf7 FCE |
9397 | Usually this means the macro was only invoked conditionally." >&2;} |
9398 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9399 | fi |
9400 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
562d60b0 | 9401 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
412e1bf7 | 9402 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9403 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
412e1bf7 FCE |
9404 | Usually this means the macro was only invoked conditionally." >&2;} |
9405 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9406 | fi |
9407 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
562d60b0 | 9408 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
412e1bf7 | 9409 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9410 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
412e1bf7 FCE |
9411 | Usually this means the macro was only invoked conditionally." >&2;} |
9412 | { (exit 1); exit 1; }; } | |
2f1a1aea | 9413 | fi |
6d14a4a9 | 9414 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
562d60b0 | 9415 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_TRANSLATOR\" was never defined. |
412e1bf7 | 9416 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9417 | echo "$as_me: error: conditional \"BUILD_TRANSLATOR\" was never defined. |
412e1bf7 FCE |
9418 | Usually this means the macro was only invoked conditionally." >&2;} |
9419 | { (exit 1); exit 1; }; } | |
6d14a4a9 | 9420 | fi |
e8f3c2c2 | 9421 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
562d60b0 | 9422 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined. |
412e1bf7 | 9423 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9424 | echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined. |
412e1bf7 FCE |
9425 | Usually this means the macro was only invoked conditionally." >&2;} |
9426 | { (exit 1); exit 1; }; } | |
4d9087fc | 9427 | fi |
465e8fbf | 9428 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
562d60b0 | 9429 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
412e1bf7 | 9430 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9431 | echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. |
412e1bf7 FCE |
9432 | Usually this means the macro was only invoked conditionally." >&2;} |
9433 | { (exit 1); exit 1; }; } | |
92aff3c7 WC |
9434 | fi |
9435 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then | |
562d60b0 | 9436 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined. |
412e1bf7 | 9437 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9438 | echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined. |
468abaf4 FCE |
9439 | Usually this means the macro was only invoked conditionally." >&2;} |
9440 | { (exit 1); exit 1; }; } | |
9441 | fi | |
9442 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then | |
562d60b0 | 9443 | { { echo "$as_me:$LINENO: error: conditional \"XMLTO_STRINGPARAM\" was never defined. |
468abaf4 | 9444 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9445 | echo "$as_me: error: conditional \"XMLTO_STRINGPARAM\" was never defined. |
412e1bf7 FCE |
9446 | Usually this means the macro was only invoked conditionally." >&2;} |
9447 | { (exit 1); exit 1; }; } | |
19a0d4b6 | 9448 | fi |
ccf8bc85 | 9449 | if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then |
562d60b0 | 9450 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFREFDOCS\" was never defined. |
412e1bf7 | 9451 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9452 | echo "$as_me: error: conditional \"BUILD_PDFREFDOCS\" was never defined. |
412e1bf7 FCE |
9453 | Usually this means the macro was only invoked conditionally." >&2;} |
9454 | { (exit 1); exit 1; }; } | |
ccf8bc85 | 9455 | fi |
19a0d4b6 | 9456 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
562d60b0 | 9457 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined. |
412e1bf7 | 9458 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9459 | echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined. |
412e1bf7 FCE |
9460 | Usually this means the macro was only invoked conditionally." >&2;} |
9461 | { (exit 1); exit 1; }; } | |
2035bcd4 DB |
9462 | fi |
9463 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then | |
562d60b0 | 9464 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_NSS\" was never defined. |
412e1bf7 | 9465 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9466 | echo "$as_me: error: conditional \"HAVE_NSS\" was never defined. |
412e1bf7 FCE |
9467 | Usually this means the macro was only invoked conditionally." >&2;} |
9468 | { (exit 1); exit 1; }; } | |
465e8fbf | 9469 | fi |
1087b83f | 9470 | if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then |
562d60b0 | 9471 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined. |
412e1bf7 | 9472 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9473 | echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined. |
412e1bf7 FCE |
9474 | Usually this means the macro was only invoked conditionally." >&2;} |
9475 | { (exit 1); exit 1; }; } | |
1087b83f | 9476 | fi |
e8f3c2c2 | 9477 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
562d60b0 | 9478 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined. |
412e1bf7 | 9479 | Usually this means the macro was only invoked conditionally." >&5 |
562d60b0 | 9480 | echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined. |
412e1bf7 FCE |
9481 | Usually this means the macro was only invoked conditionally." >&2;} |
9482 | { (exit 1); exit 1; }; } | |
35a04c8e | 9483 | fi |
2f1a1aea FCE |
9484 | |
9485 | : ${CONFIG_STATUS=./config.status} | |
9486 | ac_clean_files_save=$ac_clean_files | |
9487 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
562d60b0 DB |
9488 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9489 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9490 | cat >$CONFIG_STATUS <<_ACEOF | |
2f1a1aea FCE |
9491 | #! $SHELL |
9492 | # Generated by $as_me. | |
9493 | # Run this file to recreate the current configuration. | |
9494 | # Compiler output produced by configure, useful for debugging | |
9495 | # configure, is in config.log if it exists. | |
9496 | ||
9497 | debug=false | |
9498 | ac_cs_recheck=false | |
9499 | ac_cs_silent=false | |
4a3c19da | 9500 | SHELL=\${CONFIG_SHELL-$SHELL} |
412e1bf7 FCE |
9501 | _ACEOF |
9502 | ||
562d60b0 | 9503 | cat >>$CONFIG_STATUS <<\_ACEOF |
412e1bf7 FCE |
9504 | ## --------------------- ## |
9505 | ## M4sh Initialization. ## | |
9506 | ## --------------------- ## | |
2f1a1aea | 9507 | |
7fbd9d09 FCE |
9508 | # Be more Bourne compatible |
9509 | DUALCASE=1; export DUALCASE # for MKS sh | |
412e1bf7 | 9510 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
2f1a1aea FCE |
9511 | emulate sh |
9512 | NULLCMD=: | |
562d60b0 | 9513 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
9514 | # is contrary to our usage. Disable this feature. |
9515 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 9516 | setopt NO_GLOB_SUBST |
4a3c19da | 9517 | else |
412e1bf7 FCE |
9518 | case `(set -o) 2>/dev/null` in |
9519 | *posix*) set -o posix ;; | |
4a3c19da | 9520 | esac |
412e1bf7 | 9521 | |
4a3c19da EM |
9522 | fi |
9523 | ||
7fbd9d09 | 9524 | |
412e1bf7 FCE |
9525 | |
9526 | ||
9527 | # PATH needs CR | |
9528 | # Avoid depending upon Character Ranges. | |
9529 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9530 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9531 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9532 | as_cr_digits='0123456789' | |
9533 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9534 | ||
8d9ee48a JS |
9535 | # The user is always right. |
9536 | if test "${PATH_SEPARATOR+set}" != set; then | |
562d60b0 DB |
9537 | echo "#! /bin/sh" >conf$$.sh |
9538 | echo "exit 0" >>conf$$.sh | |
9539 | chmod +x conf$$.sh | |
9540 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9541 | PATH_SEPARATOR=';' | |
9542 | else | |
9543 | PATH_SEPARATOR=: | |
9544 | fi | |
9545 | rm -f conf$$.sh | |
7fbd9d09 FCE |
9546 | fi |
9547 | ||
412e1bf7 FCE |
9548 | # Support unset when possible. |
9549 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
9550 | as_unset=unset | |
9551 | else | |
9552 | as_unset=false | |
9553 | fi | |
9554 | ||
7fbd9d09 FCE |
9555 | |
9556 | # IFS | |
9557 | # We need space, tab and new line, in precisely that order. Quoting is | |
9558 | # there to prevent editors from complaining about space-tab. | |
9559 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9560 | # splitting by setting IFS to empty value.) | |
562d60b0 DB |
9561 | as_nl=' |
9562 | ' | |
7fbd9d09 FCE |
9563 | IFS=" "" $as_nl" |
9564 | ||
9565 | # Find who we are. Look in the path if we contain no directory separator. | |
412e1bf7 | 9566 | case $0 in |
7fbd9d09 FCE |
9567 | *[\\/]* ) as_myself=$0 ;; |
9568 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9569 | for as_dir in $PATH | |
9570 | do | |
9571 | IFS=$as_save_IFS | |
9572 | test -z "$as_dir" && as_dir=. | |
412e1bf7 FCE |
9573 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9574 | done | |
7fbd9d09 FCE |
9575 | IFS=$as_save_IFS |
9576 | ||
9577 | ;; | |
9578 | esac | |
9579 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9580 | # in which case we are not to be found in the path. | |
9581 | if test "x$as_myself" = x; then | |
9582 | as_myself=$0 | |
9583 | fi | |
9584 | if test ! -f "$as_myself"; then | |
562d60b0 | 9585 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
412e1bf7 | 9586 | { (exit 1); exit 1; } |
7fbd9d09 FCE |
9587 | fi |
9588 | ||
412e1bf7 FCE |
9589 | # Work around bugs in pre-3.0 UWIN ksh. |
9590 | for as_var in ENV MAIL MAILPATH | |
9591 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7fbd9d09 FCE |
9592 | done |
9593 | PS1='$ ' | |
2f1a1aea FCE |
9594 | PS2='> ' |
9595 | PS4='+ ' | |
9596 | ||
9597 | # NLS nuisances. | |
562d60b0 DB |
9598 | for as_var in \ |
9599 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
9600 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
9601 | LC_TELEPHONE LC_TIME | |
9602 | do | |
9603 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
9604 | eval $as_var=C; export $as_var | |
9605 | else | |
9606 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
9607 | fi | |
9608 | done | |
2f1a1aea | 9609 | |
412e1bf7 | 9610 | # Required to use basename. |
7fbd9d09 FCE |
9611 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9612 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
9613 | as_expr=expr |
9614 | else | |
9615 | as_expr=false | |
9616 | fi | |
9617 | ||
7fbd9d09 | 9618 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
9619 | as_basename=basename |
9620 | else | |
9621 | as_basename=false | |
9622 | fi | |
9623 | ||
9624 | ||
412e1bf7 | 9625 | # Name of the executable. |
7fbd9d09 | 9626 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
9627 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9628 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9629 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
562d60b0 | 9630 | echo X/"$0" | |
7fbd9d09 FCE |
9631 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9632 | s//\1/ | |
9633 | q | |
9634 | } | |
9635 | /^X\/\(\/\/\)$/{ | |
9636 | s//\1/ | |
9637 | q | |
9638 | } | |
9639 | /^X\/\(\/\).*/{ | |
9640 | s//\1/ | |
9641 | q | |
9642 | } | |
9643 | s/.*/./; q'` | |
8ae7a94a | 9644 | |
412e1bf7 FCE |
9645 | # CDPATH. |
9646 | $as_unset CDPATH | |
9647 | ||
9648 | ||
9649 | ||
9650 | as_lineno_1=$LINENO | |
9651 | as_lineno_2=$LINENO | |
9652 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9653 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
9654 | ||
9655 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
9656 | # uniformly replaced by the line number. The first 'sed' inserts a | |
9657 | # line-number line after each line using $LINENO; the second 'sed' | |
9658 | # does the real work. The second script uses 'N' to pair each | |
9659 | # line-number line with the line containing $LINENO, and appends | |
9660 | # trailing '-' during substitution so that $LINENO is not a special | |
9661 | # case at line end. | |
9662 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
9663 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
9664 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
9665 | sed -n ' | |
9666 | p | |
9667 | /[$]LINENO/= | |
9668 | ' <$as_myself | | |
9669 | sed ' | |
9670 | s/[$]LINENO.*/&-/ | |
9671 | t lineno | |
9672 | b | |
9673 | :lineno | |
9674 | N | |
9675 | :loop | |
9676 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
9677 | t loop | |
9678 | s/-\n.*// | |
9679 | ' >$as_me.lineno && | |
9680 | chmod +x "$as_me.lineno" || | |
562d60b0 | 9681 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
412e1bf7 FCE |
9682 | { (exit 1); exit 1; }; } |
9683 | ||
9684 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9685 | # (the dirname of $[0] is not the place where we might find the | |
9686 | # original and so on. Autoconf is especially sensitive to this). | |
9687 | . "./$as_me.lineno" | |
9688 | # Exit status is that of the last command. | |
9689 | exit | |
9690 | } | |
9691 | ||
9692 | ||
9693 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
9694 | as_dirname=dirname | |
9695 | else | |
9696 | as_dirname=false | |
9697 | fi | |
7fbd9d09 FCE |
9698 | |
9699 | ECHO_C= ECHO_N= ECHO_T= | |
412e1bf7 | 9700 | case `echo -n x` in |
7fbd9d09 | 9701 | -n*) |
412e1bf7 | 9702 | case `echo 'x\c'` in |
7fbd9d09 | 9703 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
412e1bf7 | 9704 | *) ECHO_C='\c';; |
7fbd9d09 FCE |
9705 | esac;; |
9706 | *) | |
9707 | ECHO_N='-n';; | |
2f1a1aea | 9708 | esac |
562d60b0 | 9709 | |
412e1bf7 FCE |
9710 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9711 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
9712 | as_expr=expr | |
9713 | else | |
9714 | as_expr=false | |
9715 | fi | |
2f1a1aea FCE |
9716 | |
9717 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
9718 | if test -d conf$$.dir; then |
9719 | rm -f conf$$.dir/conf$$.file | |
9720 | else | |
9721 | rm -f conf$$.dir | |
562d60b0 DB |
9722 | mkdir conf$$.dir |
9723 | fi | |
9724 | echo >conf$$.file | |
9725 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9726 | as_ln_s='ln -s' | |
9727 | # ... but there are two gotchas: | |
9728 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9729 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9730 | # In both cases, we have to default to `cp -p'. | |
9731 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
2f1a1aea | 9732 | as_ln_s='cp -p' |
562d60b0 DB |
9733 | elif ln conf$$.file conf$$ 2>/dev/null; then |
9734 | as_ln_s=ln | |
2f1a1aea FCE |
9735 | else |
9736 | as_ln_s='cp -p' | |
9737 | fi | |
7fbd9d09 FCE |
9738 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9739 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
9740 | |
9741 | if mkdir -p . 2>/dev/null; then | |
412e1bf7 | 9742 | as_mkdir_p=: |
2f1a1aea FCE |
9743 | else |
9744 | test -d ./-p && rmdir ./-p | |
9745 | as_mkdir_p=false | |
9746 | fi | |
9747 | ||
7fbd9d09 FCE |
9748 | if test -x / >/dev/null 2>&1; then |
9749 | as_test_x='test -x' | |
9750 | else | |
9751 | if ls -dL / >/dev/null 2>&1; then | |
9752 | as_ls_L_option=L | |
9753 | else | |
9754 | as_ls_L_option= | |
9755 | fi | |
9756 | as_test_x=' | |
9757 | eval sh -c '\'' | |
9758 | if test -d "$1"; then | |
562d60b0 | 9759 | test -d "$1/."; |
7fbd9d09 | 9760 | else |
412e1bf7 | 9761 | case $1 in |
562d60b0 | 9762 | -*)set "./$1";; |
7fbd9d09 | 9763 | esac; |
412e1bf7 | 9764 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
7fbd9d09 FCE |
9765 | ???[sx]*):;;*)false;;esac;fi |
9766 | '\'' sh | |
9767 | ' | |
9768 | fi | |
9769 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
9770 | |
9771 | # Sed expression to map a string onto a valid CPP name. | |
9772 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9773 | ||
9774 | # Sed expression to map a string onto a valid variable name. | |
9775 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9776 | ||
9777 | ||
2f1a1aea FCE |
9778 | exec 6>&1 |
9779 | ||
412e1bf7 | 9780 | # Save the log message, to keep $[0] and so on meaningful, and to |
2f1a1aea | 9781 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
9782 | # values after options handling. |
9783 | ac_log=" | |
6a7aa1a1 | 9784 | This file was extended by systemtap $as_me 1.0, which was |
562d60b0 | 9785 | generated by GNU Autoconf 2.61. Invocation command line was |
2f1a1aea FCE |
9786 | |
9787 | CONFIG_FILES = $CONFIG_FILES | |
9788 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9789 | CONFIG_LINKS = $CONFIG_LINKS | |
9790 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9791 | $ $0 $@ | |
9792 | ||
7fbd9d09 FCE |
9793 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9794 | " | |
9795 | ||
2f1a1aea FCE |
9796 | _ACEOF |
9797 | ||
562d60b0 | 9798 | cat >>$CONFIG_STATUS <<_ACEOF |
818ba2bc | 9799 | # Files that config.status was made for. |
7fbd9d09 FCE |
9800 | config_files="$ac_config_files" |
9801 | config_headers="$ac_config_headers" | |
9802 | config_commands="$ac_config_commands" | |
daae650d | 9803 | |
7fbd9d09 | 9804 | _ACEOF |
8ae7a94a | 9805 | |
562d60b0 | 9806 | cat >>$CONFIG_STATUS <<\_ACEOF |
2f1a1aea | 9807 | ac_cs_usage="\ |
412e1bf7 FCE |
9808 | \`$as_me' instantiates files from templates according to the |
9809 | current configuration. | |
2f1a1aea | 9810 | |
562d60b0 | 9811 | Usage: $0 [OPTIONS] [FILE]... |
2f1a1aea FCE |
9812 | |
9813 | -h, --help print this help, then exit | |
7fbd9d09 | 9814 | -V, --version print version number and configuration settings, then exit |
562d60b0 | 9815 | -q, --quiet do not print progress messages |
2f1a1aea FCE |
9816 | -d, --debug don't remove temporary files |
9817 | --recheck update $as_me by reconfiguring in the same conditions | |
562d60b0 DB |
9818 | --file=FILE[:TEMPLATE] |
9819 | instantiate the configuration file FILE | |
9820 | --header=FILE[:TEMPLATE] | |
9821 | instantiate the configuration header FILE | |
2f1a1aea FCE |
9822 | |
9823 | Configuration files: | |
9824 | $config_files | |
9825 | ||
9826 | Configuration headers: | |
9827 | $config_headers | |
9828 | ||
9829 | Configuration commands: | |
9830 | $config_commands | |
9831 | ||
412e1bf7 | 9832 | Report bugs to <bug-autoconf@gnu.org>." |
818ba2bc | 9833 | |
7fbd9d09 | 9834 | _ACEOF |
562d60b0 | 9835 | cat >>$CONFIG_STATUS <<_ACEOF |
2f1a1aea | 9836 | ac_cs_version="\\ |
6a7aa1a1 | 9837 | systemtap config.status 1.0 |
562d60b0 DB |
9838 | configured by $0, generated by GNU Autoconf 2.61, |
9839 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
2f1a1aea | 9840 | |
562d60b0 | 9841 | Copyright (C) 2006 Free Software Foundation, Inc. |
2f1a1aea FCE |
9842 | This config.status script is free software; the Free Software Foundation |
9843 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
9844 | |
9845 | ac_pwd='$ac_pwd' | |
9846 | srcdir='$srcdir' | |
9847 | INSTALL='$INSTALL' | |
9848 | MKDIR_P='$MKDIR_P' | |
2f1a1aea FCE |
9849 | _ACEOF |
9850 | ||
562d60b0 DB |
9851 | cat >>$CONFIG_STATUS <<\_ACEOF |
9852 | # If no file are specified by the user, then we need to provide default | |
9853 | # value. By we need to know if files were specified by the user. | |
2f1a1aea FCE |
9854 | ac_need_defaults=: |
9855 | while test $# != 0 | |
9856 | do | |
9857 | case $1 in | |
9858 | --*=*) | |
7fbd9d09 FCE |
9859 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9860 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
9861 | ac_shift=: |
9862 | ;; | |
7fbd9d09 | 9863 | *) |
2f1a1aea FCE |
9864 | ac_option=$1 |
9865 | ac_optarg=$2 | |
9866 | ac_shift=shift | |
9867 | ;; | |
2f1a1aea FCE |
9868 | esac |
9869 | ||
9870 | case $ac_option in | |
9871 | # Handling of the options. | |
2f1a1aea FCE |
9872 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9873 | ac_cs_recheck=: ;; | |
7fbd9d09 | 9874 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
562d60b0 | 9875 | echo "$ac_cs_version"; exit ;; |
7fbd9d09 | 9876 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
9877 | debug=: ;; |
9878 | --file | --fil | --fi | --f ) | |
9879 | $ac_shift | |
562d60b0 | 9880 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
2f1a1aea FCE |
9881 | ac_need_defaults=false;; |
9882 | --header | --heade | --head | --hea ) | |
9883 | $ac_shift | |
562d60b0 | 9884 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
2f1a1aea | 9885 | ac_need_defaults=false;; |
7fbd9d09 FCE |
9886 | --he | --h) |
9887 | # Conflict between --help and --header | |
562d60b0 | 9888 | { echo "$as_me: error: ambiguous option: $1 |
412e1bf7 FCE |
9889 | Try \`$0 --help' for more information." >&2 |
9890 | { (exit 1); exit 1; }; };; | |
7fbd9d09 | 9891 | --help | --hel | -h ) |
562d60b0 | 9892 | echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
9893 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9894 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9895 | ac_cs_silent=: ;; | |
9896 | ||
9897 | # This is an error. | |
562d60b0 | 9898 | -*) { echo "$as_me: error: unrecognized option: $1 |
412e1bf7 FCE |
9899 | Try \`$0 --help' for more information." >&2 |
9900 | { (exit 1); exit 1; }; } ;; | |
2f1a1aea | 9901 | |
412e1bf7 | 9902 | *) ac_config_targets="$ac_config_targets $1" |
7fbd9d09 | 9903 | ac_need_defaults=false ;; |
2f1a1aea FCE |
9904 | |
9905 | esac | |
9906 | shift | |
9907 | done | |
9908 | ||
9909 | ac_configure_extra_args= | |
9910 | ||
9911 | if $ac_cs_silent; then | |
9912 | exec 6>/dev/null | |
9913 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9914 | fi | |
9915 | ||
9916 | _ACEOF | |
562d60b0 | 9917 | cat >>$CONFIG_STATUS <<_ACEOF |
2f1a1aea | 9918 | if \$ac_cs_recheck; then |
562d60b0 DB |
9919 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
9920 | CONFIG_SHELL=$SHELL | |
7fbd9d09 | 9921 | export CONFIG_SHELL |
562d60b0 | 9922 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
2f1a1aea FCE |
9923 | fi |
9924 | ||
9925 | _ACEOF | |
562d60b0 | 9926 | cat >>$CONFIG_STATUS <<\_ACEOF |
7fbd9d09 FCE |
9927 | exec 5>>config.log |
9928 | { | |
9929 | echo | |
9930 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9931 | ## Running $as_me. ## | |
9932 | _ASBOX | |
562d60b0 | 9933 | echo "$ac_log" |
7fbd9d09 | 9934 | } >&5 |
2f1a1aea | 9935 | |
7fbd9d09 | 9936 | _ACEOF |
562d60b0 | 9937 | cat >>$CONFIG_STATUS <<_ACEOF |
2f1a1aea | 9938 | # |
7fbd9d09 | 9939 | # INIT-COMMANDS |
2f1a1aea | 9940 | # |
2f1a1aea FCE |
9941 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9942 | ||
9943 | _ACEOF | |
9944 | ||
562d60b0 | 9945 | cat >>$CONFIG_STATUS <<\_ACEOF |
7fbd9d09 FCE |
9946 | |
9947 | # Handling of arguments. | |
2f1a1aea FCE |
9948 | for ac_config_target in $ac_config_targets |
9949 | do | |
7fbd9d09 FCE |
9950 | case $ac_config_target in |
9951 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
9952 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
9953 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9954 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
9955 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; | |
1087b83f | 9956 | "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;; |
9ed28fbc | 9957 | "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;; |
7fbd9d09 | 9958 | "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;; |
e97c0b29 WC |
9959 | "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;; |
9960 | "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;; | |
9961 | "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;; | |
9962 | "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;; | |
7fbd9d09 FCE |
9963 | "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;; |
9964 | "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;; | |
e97c0b29 | 9965 | "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;; |
8d9ee48a | 9966 | "man/stapprobes.irq.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.irq.3stap" ;; |
e97c0b29 WC |
9967 | "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;; |
9968 | "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;; | |
9969 | "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;; | |
9970 | "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;; | |
1f65cc4f | 9971 | "man/stapprobes.kprocess.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.kprocess.3stap" ;; |
e97c0b29 WC |
9972 | "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;; |
9973 | "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;; | |
9974 | "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;; | |
9975 | "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;; | |
9976 | "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;; | |
9977 | "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;; | |
364ad890 | 9978 | "man/stapprobes.snmp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.snmp.3stap" ;; |
7fbd9d09 | 9979 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 9980 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
7fbd9d09 | 9981 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
65ffc3f3 | 9982 | "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;; |
e4aaabda | 9983 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
7fbd9d09 | 9984 | |
562d60b0 DB |
9985 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9986 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
412e1bf7 | 9987 | { (exit 1); exit 1; }; };; |
2f1a1aea FCE |
9988 | esac |
9989 | done | |
9990 | ||
7fbd9d09 | 9991 | |
2f1a1aea FCE |
9992 | # If the user did not use the arguments to specify the items to instantiate, |
9993 | # then the envvar interface is used. Set only those that are not. | |
9994 | # We use the long form for the default assignment because of an extremely | |
9995 | # bizarre bug on SunOS 4.1.3. | |
9996 | if $ac_need_defaults; then | |
9997 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9998 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9999 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
10000 | fi | |
10001 | ||
10002 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 10003 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 10004 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
10005 | # Hook for its removal unless debugging. |
10006 | # Note that there is a small window in which the directory will not be cleaned: | |
10007 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
10008 | $debug || |
10009 | { | |
7fbd9d09 FCE |
10010 | tmp= |
10011 | trap 'exit_status=$? | |
10012 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10013 | ' 0 | |
412e1bf7 | 10014 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
2f1a1aea | 10015 | } |
2f1a1aea FCE |
10016 | # Create a (secure) tmp directory for tmp files. |
10017 | ||
10018 | { | |
7fbd9d09 | 10019 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
2f1a1aea FCE |
10020 | test -n "$tmp" && test -d "$tmp" |
10021 | } || | |
10022 | { | |
7fbd9d09 FCE |
10023 | tmp=./conf$$-$RANDOM |
10024 | (umask 077 && mkdir "$tmp") | |
412e1bf7 FCE |
10025 | } || |
10026 | { | |
562d60b0 | 10027 | echo "$me: cannot create a temporary directory in ." >&2 |
412e1bf7 FCE |
10028 | { (exit 1); exit 1; } |
10029 | } | |
2f1a1aea | 10030 | |
562d60b0 DB |
10031 | # |
10032 | # Set up the sed scripts for CONFIG_FILES section. | |
10033 | # | |
10034 | ||
10035 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10036 | # This happens for instance when ./config.status config.h | |
7fbd9d09 FCE |
10037 | if test -n "$CONFIG_FILES"; then |
10038 | ||
562d60b0 DB |
10039 | _ACEOF |
10040 | ||
2f78bee0 | 10041 | |
562d60b0 DB |
10042 | |
10043 | ac_delim='%!_!# ' | |
10044 | for ac_last_try in false false false false false :; do | |
10045 | cat >conf$$subs.sed <<_ACEOF | |
10046 | SHELL!$SHELL$ac_delim | |
10047 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
10048 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
10049 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
10050 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
10051 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
10052 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
10053 | exec_prefix!$exec_prefix$ac_delim | |
10054 | prefix!$prefix$ac_delim | |
10055 | program_transform_name!$program_transform_name$ac_delim | |
10056 | bindir!$bindir$ac_delim | |
10057 | sbindir!$sbindir$ac_delim | |
10058 | libexecdir!$libexecdir$ac_delim | |
10059 | datarootdir!$datarootdir$ac_delim | |
10060 | datadir!$datadir$ac_delim | |
10061 | sysconfdir!$sysconfdir$ac_delim | |
10062 | sharedstatedir!$sharedstatedir$ac_delim | |
10063 | localstatedir!$localstatedir$ac_delim | |
10064 | includedir!$includedir$ac_delim | |
10065 | oldincludedir!$oldincludedir$ac_delim | |
10066 | docdir!$docdir$ac_delim | |
10067 | infodir!$infodir$ac_delim | |
10068 | htmldir!$htmldir$ac_delim | |
10069 | dvidir!$dvidir$ac_delim | |
10070 | pdfdir!$pdfdir$ac_delim | |
10071 | psdir!$psdir$ac_delim | |
10072 | libdir!$libdir$ac_delim | |
10073 | localedir!$localedir$ac_delim | |
10074 | mandir!$mandir$ac_delim | |
10075 | DEFS!$DEFS$ac_delim | |
10076 | ECHO_C!$ECHO_C$ac_delim | |
10077 | ECHO_N!$ECHO_N$ac_delim | |
10078 | ECHO_T!$ECHO_T$ac_delim | |
10079 | LIBS!$LIBS$ac_delim | |
10080 | build_alias!$build_alias$ac_delim | |
10081 | host_alias!$host_alias$ac_delim | |
10082 | target_alias!$target_alias$ac_delim | |
10083 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
10084 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
10085 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
10086 | am__isrc!$am__isrc$ac_delim | |
10087 | CYGPATH_W!$CYGPATH_W$ac_delim | |
10088 | PACKAGE!$PACKAGE$ac_delim | |
10089 | VERSION!$VERSION$ac_delim | |
10090 | ACLOCAL!$ACLOCAL$ac_delim | |
10091 | AUTOCONF!$AUTOCONF$ac_delim | |
10092 | AUTOMAKE!$AUTOMAKE$ac_delim | |
10093 | AUTOHEADER!$AUTOHEADER$ac_delim | |
10094 | MAKEINFO!$MAKEINFO$ac_delim | |
10095 | install_sh!$install_sh$ac_delim | |
10096 | STRIP!$STRIP$ac_delim | |
10097 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
10098 | mkdir_p!$mkdir_p$ac_delim | |
10099 | AWK!$AWK$ac_delim | |
10100 | SET_MAKE!$SET_MAKE$ac_delim | |
10101 | am__leading_dot!$am__leading_dot$ac_delim | |
10102 | AMTAR!$AMTAR$ac_delim | |
10103 | am__tar!$am__tar$ac_delim | |
10104 | am__untar!$am__untar$ac_delim | |
10105 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
10106 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
10107 | MAINT!$MAINT$ac_delim | |
10108 | MKDIR_P!$MKDIR_P$ac_delim | |
10109 | LN_S!$LN_S$ac_delim | |
10110 | CC!$CC$ac_delim | |
10111 | CFLAGS!$CFLAGS$ac_delim | |
10112 | LDFLAGS!$LDFLAGS$ac_delim | |
10113 | CPPFLAGS!$CPPFLAGS$ac_delim | |
10114 | ac_ct_CC!$ac_ct_CC$ac_delim | |
10115 | EXEEXT!$EXEEXT$ac_delim | |
10116 | OBJEXT!$OBJEXT$ac_delim | |
10117 | DEPDIR!$DEPDIR$ac_delim | |
10118 | am__include!$am__include$ac_delim | |
10119 | am__quote!$am__quote$ac_delim | |
10120 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
10121 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
10122 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
10123 | CCDEPMODE!$CCDEPMODE$ac_delim | |
10124 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
10125 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
10126 | CXX!$CXX$ac_delim | |
10127 | CXXFLAGS!$CXXFLAGS$ac_delim | |
10128 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
10129 | CXXDEPMODE!$CXXDEPMODE$ac_delim | |
10130 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
10131 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
10132 | CPP!$CPP$ac_delim | |
10133 | GREP!$GREP$ac_delim | |
10134 | EGREP!$EGREP$ac_delim | |
10135 | U!$U$ac_delim | |
10136 | ANSI2KNR!$ANSI2KNR$ac_delim | |
10137 | RANLIB!$RANLIB$ac_delim | |
10138 | PIELDFLAGS!$PIELDFLAGS$ac_delim | |
10139 | PIECFLAGS!$PIECFLAGS$ac_delim | |
10140 | PIECXXFLAGS!$PIECXXFLAGS$ac_delim | |
10141 | sqlite3_LIBS!$sqlite3_LIBS$ac_delim | |
10142 | BUILD_TRANSLATOR_TRUE!$BUILD_TRANSLATOR_TRUE$ac_delim | |
10143 | _ACEOF | |
10144 | ||
10145 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
10146 | break | |
10147 | elif $ac_last_try; then | |
10148 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10149 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10150 | { (exit 1); exit 1; }; } | |
10151 | else | |
10152 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10153 | fi | |
10154 | done | |
10155 | ||
10156 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
10157 | if test -n "$ac_eof"; then | |
10158 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10159 | ac_eof=`expr $ac_eof + 1` | |
7fbd9d09 | 10160 | fi |
5e0d2ebf | 10161 | |
562d60b0 DB |
10162 | cat >>$CONFIG_STATUS <<_ACEOF |
10163 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
10164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10165 | _ACEOF | |
10166 | sed ' | |
10167 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10168 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10169 | :n | |
10170 | t n | |
10171 | s/'"$ac_delim"'$/,g/; t | |
10172 | s/$/\\/; p | |
10173 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10174 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10175 | rm -f conf$$subs.sed | |
10176 | cat >>$CONFIG_STATUS <<_ACEOF | |
10177 | CEOF$ac_eof | |
7fbd9d09 FCE |
10178 | _ACEOF |
10179 | ||
10180 | ||
10181 | ac_delim='%!_!# ' | |
10182 | for ac_last_try in false false false false false :; do | |
562d60b0 DB |
10183 | cat >conf$$subs.sed <<_ACEOF |
10184 | BUILD_TRANSLATOR_FALSE!$BUILD_TRANSLATOR_FALSE$ac_delim | |
10185 | staplog_CPPFLAGS!$staplog_CPPFLAGS$ac_delim | |
10186 | BUILD_CRASHMOD_TRUE!$BUILD_CRASHMOD_TRUE$ac_delim | |
10187 | BUILD_CRASHMOD_FALSE!$BUILD_CRASHMOD_FALSE$ac_delim | |
10188 | have_latex!$have_latex$ac_delim | |
10189 | have_dvips!$have_dvips$ac_delim | |
10190 | have_ps2pdf!$have_ps2pdf$ac_delim | |
10191 | have_latex2html!$have_latex2html$ac_delim | |
10192 | BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim | |
10193 | BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim | |
10194 | have_xmlto!$have_xmlto$ac_delim | |
10195 | BUILD_REFDOCS_TRUE!$BUILD_REFDOCS_TRUE$ac_delim | |
10196 | BUILD_REFDOCS_FALSE!$BUILD_REFDOCS_FALSE$ac_delim | |
10197 | XMLTO_STRINGPARAM_TRUE!$XMLTO_STRINGPARAM_TRUE$ac_delim | |
10198 | XMLTO_STRINGPARAM_FALSE!$XMLTO_STRINGPARAM_FALSE$ac_delim | |
10199 | BUILD_PDFREFDOCS_TRUE!$BUILD_PDFREFDOCS_TRUE$ac_delim | |
10200 | BUILD_PDFREFDOCS_FALSE!$BUILD_PDFREFDOCS_FALSE$ac_delim | |
10201 | have_certutil!$have_certutil$ac_delim | |
10202 | nss_CFLAGS!$nss_CFLAGS$ac_delim | |
10203 | nspr_CFLAGS!$nspr_CFLAGS$ac_delim | |
10204 | BUILD_SERVER_TRUE!$BUILD_SERVER_TRUE$ac_delim | |
10205 | BUILD_SERVER_FALSE!$BUILD_SERVER_FALSE$ac_delim | |
10206 | HAVE_NSS_TRUE!$HAVE_NSS_TRUE$ac_delim | |
10207 | HAVE_NSS_FALSE!$HAVE_NSS_FALSE$ac_delim | |
10208 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
10209 | gtkmm_CFLAGS!$gtkmm_CFLAGS$ac_delim | |
10210 | gtkmm_LIBS!$gtkmm_LIBS$ac_delim | |
10211 | libglade_CFLAGS!$libglade_CFLAGS$ac_delim | |
10212 | libglade_LIBS!$libglade_LIBS$ac_delim | |
10213 | CXXCPP!$CXXCPP$ac_delim | |
10214 | BUILD_GRAPHER_TRUE!$BUILD_GRAPHER_TRUE$ac_delim | |
10215 | BUILD_GRAPHER_FALSE!$BUILD_GRAPHER_FALSE$ac_delim | |
10216 | rpm_LIBS!$rpm_LIBS$ac_delim | |
10217 | RPM_CFLAGS!$RPM_CFLAGS$ac_delim | |
10218 | RPM_LIBS!$RPM_LIBS$ac_delim | |
10219 | BUILD_ELFUTILS_TRUE!$BUILD_ELFUTILS_TRUE$ac_delim | |
10220 | BUILD_ELFUTILS_FALSE!$BUILD_ELFUTILS_FALSE$ac_delim | |
10221 | elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim | |
10222 | stap_LIBS!$stap_LIBS$ac_delim | |
10223 | DATE!$DATE$ac_delim | |
562d60b0 DB |
10224 | subdirs!$subdirs$ac_delim |
10225 | LIBOBJS!$LIBOBJS$ac_delim | |
10226 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
10227 | _ACEOF | |
10228 | ||
5d1c958c | 10229 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then |
7fbd9d09 FCE |
10230 | break |
10231 | elif $ac_last_try; then | |
562d60b0 DB |
10232 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
10233 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
412e1bf7 | 10234 | { (exit 1); exit 1; }; } |
7fbd9d09 FCE |
10235 | else |
10236 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10237 | fi | |
10238 | done | |
10239 | ||
562d60b0 DB |
10240 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
10241 | if test -n "$ac_eof"; then | |
10242 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10243 | ac_eof=`expr $ac_eof + 1` | |
10244 | fi | |
7fbd9d09 | 10245 | |
562d60b0 DB |
10246 | cat >>$CONFIG_STATUS <<_ACEOF |
10247 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
10248 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
7fbd9d09 | 10249 | _ACEOF |
562d60b0 DB |
10250 | sed ' |
10251 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10252 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10253 | :n | |
10254 | t n | |
10255 | s/'"$ac_delim"'$/,g/; t | |
10256 | s/$/\\/; p | |
10257 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10258 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10259 | rm -f conf$$subs.sed | |
10260 | cat >>$CONFIG_STATUS <<_ACEOF | |
10261 | :end | |
10262 | s/|#_!!_#|//g | |
10263 | CEOF$ac_eof | |
7fbd9d09 FCE |
10264 | _ACEOF |
10265 | ||
562d60b0 | 10266 | |
7fbd9d09 FCE |
10267 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
10268 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10269 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10270 | # (actually we leave an empty line to preserve line numbers). | |
10271 | if test "x$srcdir" = x.; then | |
10272 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10273 | s/:*\$(srcdir):*/:/ | |
10274 | s/:*\${srcdir}:*/:/ | |
10275 | s/:*@srcdir@:*/:/ | |
10276 | s/^\([^=]*=[ ]*\):*/\1/ | |
10277 | s/:*$// | |
10278 | s/^[^=]*=[ ]*$// | |
10279 | }' | |
10280 | fi | |
10281 | ||
562d60b0 | 10282 | cat >>$CONFIG_STATUS <<\_ACEOF |
7fbd9d09 FCE |
10283 | fi # test -n "$CONFIG_FILES" |
10284 | ||
27aba29a | 10285 | |
562d60b0 | 10286 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
7fbd9d09 FCE |
10287 | do |
10288 | case $ac_tag in | |
10289 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 10290 | esac |
7fbd9d09 FCE |
10291 | case $ac_mode$ac_tag in |
10292 | :[FHL]*:*);; | |
562d60b0 DB |
10293 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
10294 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
412e1bf7 | 10295 | { (exit 1); exit 1; }; };; |
7fbd9d09 FCE |
10296 | :[FH]-) ac_tag=-:-;; |
10297 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10298 | esac | |
10299 | ac_save_IFS=$IFS | |
10300 | IFS=: | |
10301 | set x $ac_tag | |
10302 | IFS=$ac_save_IFS | |
10303 | shift | |
10304 | ac_file=$1 | |
10305 | shift | |
2f1a1aea | 10306 | |
7fbd9d09 FCE |
10307 | case $ac_mode in |
10308 | :L) ac_source=$1;; | |
10309 | :[FH]) | |
10310 | ac_file_inputs= | |
10311 | for ac_f | |
10312 | do | |
10313 | case $ac_f in | |
10314 | -) ac_f="$tmp/stdin";; | |
10315 | *) # Look for the file first in the build tree, then in the source tree | |
10316 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10317 | # because $ac_f cannot contain `:'. | |
10318 | test -f "$ac_f" || | |
10319 | case $ac_f in | |
10320 | [\\/$]*) false;; | |
10321 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10322 | esac || | |
562d60b0 DB |
10323 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
10324 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
412e1bf7 | 10325 | { (exit 1); exit 1; }; };; |
7fbd9d09 | 10326 | esac |
562d60b0 | 10327 | ac_file_inputs="$ac_file_inputs $ac_f" |
7fbd9d09 FCE |
10328 | done |
10329 | ||
10330 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10331 | # use $as_me), people would be surprised to read: | |
10332 | # /* config.h. Generated by config.status. */ | |
562d60b0 DB |
10333 | configure_input="Generated from "`IFS=: |
10334 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7fbd9d09 FCE |
10335 | if test x"$ac_file" != x-; then |
10336 | configure_input="$ac_file. $configure_input" | |
562d60b0 DB |
10337 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
10338 | echo "$as_me: creating $ac_file" >&6;} | |
7fbd9d09 FCE |
10339 | fi |
10340 | ||
10341 | case $ac_tag in | |
562d60b0 | 10342 | *:-:* | *:-) cat >"$tmp/stdin";; |
7fbd9d09 FCE |
10343 | esac |
10344 | ;; | |
10345 | esac | |
10346 | ||
10347 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
10348 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10349 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10350 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10351 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
562d60b0 | 10352 | echo X"$ac_file" | |
7fbd9d09 FCE |
10353 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10354 | s//\1/ | |
10355 | q | |
10356 | } | |
10357 | /^X\(\/\/\)[^/].*/{ | |
10358 | s//\1/ | |
10359 | q | |
10360 | } | |
10361 | /^X\(\/\/\)$/{ | |
10362 | s//\1/ | |
10363 | q | |
10364 | } | |
10365 | /^X\(\/\).*/{ | |
10366 | s//\1/ | |
10367 | q | |
10368 | } | |
10369 | s/.*/./; q'` | |
412e1bf7 FCE |
10370 | { as_dir="$ac_dir" |
10371 | case $as_dir in #( | |
10372 | -*) as_dir=./$as_dir;; | |
10373 | esac | |
10374 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10375 | as_dirs= | |
10376 | while :; do | |
10377 | case $as_dir in #( | |
562d60b0 | 10378 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
412e1bf7 FCE |
10379 | *) as_qdir=$as_dir;; |
10380 | esac | |
10381 | as_dirs="'$as_qdir' $as_dirs" | |
10382 | as_dir=`$as_dirname -- "$as_dir" || | |
10383 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10384 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10385 | X"$as_dir" : 'X\(//\)$' \| \ | |
10386 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
562d60b0 | 10387 | echo X"$as_dir" | |
412e1bf7 FCE |
10388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10389 | s//\1/ | |
10390 | q | |
10391 | } | |
10392 | /^X\(\/\/\)[^/].*/{ | |
10393 | s//\1/ | |
10394 | q | |
10395 | } | |
10396 | /^X\(\/\/\)$/{ | |
10397 | s//\1/ | |
10398 | q | |
10399 | } | |
10400 | /^X\(\/\).*/{ | |
10401 | s//\1/ | |
10402 | q | |
10403 | } | |
10404 | s/.*/./; q'` | |
10405 | test -d "$as_dir" && break | |
10406 | done | |
10407 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
562d60b0 DB |
10408 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
10409 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
412e1bf7 | 10410 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
10411 | ac_builddir=. |
10412 | ||
7fbd9d09 FCE |
10413 | case "$ac_dir" in |
10414 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10415 | *) | |
562d60b0 | 10416 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7fbd9d09 | 10417 | # A ".." for each directory in $ac_dir_suffix. |
562d60b0 | 10418 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7fbd9d09 FCE |
10419 | case $ac_top_builddir_sub in |
10420 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10421 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10422 | esac ;; | |
10423 | esac | |
10424 | ac_abs_top_builddir=$ac_pwd | |
10425 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10426 | # for backward compatibility: | |
10427 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
10428 | |
10429 | case $srcdir in | |
7fbd9d09 | 10430 | .) # We are building in place. |
2f1a1aea | 10431 | ac_srcdir=. |
7fbd9d09 FCE |
10432 | ac_top_srcdir=$ac_top_builddir_sub |
10433 | ac_abs_top_srcdir=$ac_pwd ;; | |
10434 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 10435 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
10436 | ac_top_srcdir=$srcdir |
10437 | ac_abs_top_srcdir=$srcdir ;; | |
10438 | *) # Relative name. | |
10439 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10440 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10441 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 10442 | esac |
7fbd9d09 | 10443 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 10444 | |
2f1a1aea | 10445 | |
7fbd9d09 FCE |
10446 | case $ac_mode in |
10447 | :F) | |
10448 | # | |
10449 | # CONFIG_FILE | |
10450 | # | |
2f1a1aea FCE |
10451 | |
10452 | case $INSTALL in | |
10453 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
10454 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
10455 | esac | |
10456 | ac_MKDIR_P=$MKDIR_P | |
10457 | case $MKDIR_P in | |
10458 | [\\/$]* | ?:[\\/]* ) ;; | |
10459 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 10460 | esac |
7fbd9d09 | 10461 | _ACEOF |
5e0d2ebf | 10462 | |
562d60b0 | 10463 | cat >>$CONFIG_STATUS <<\_ACEOF |
7fbd9d09 FCE |
10464 | # If the template does not know about datarootdir, expand it. |
10465 | # FIXME: This hack should be removed a few years after 2.60. | |
10466 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
412e1bf7 | 10467 | |
562d60b0 | 10468 | case `sed -n '/datarootdir/ { |
7fbd9d09 FCE |
10469 | p |
10470 | q | |
10471 | } | |
10472 | /@datadir@/p | |
10473 | /@docdir@/p | |
10474 | /@infodir@/p | |
10475 | /@localedir@/p | |
412e1bf7 | 10476 | /@mandir@/p |
562d60b0 | 10477 | ' $ac_file_inputs` in |
7fbd9d09 FCE |
10478 | *datarootdir*) ac_datarootdir_seen=yes;; |
10479 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
562d60b0 DB |
10480 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10481 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7fbd9d09 | 10482 | _ACEOF |
562d60b0 | 10483 | cat >>$CONFIG_STATUS <<_ACEOF |
7fbd9d09 FCE |
10484 | ac_datarootdir_hack=' |
10485 | s&@datadir@&$datadir&g | |
10486 | s&@docdir@&$docdir&g | |
10487 | s&@infodir@&$infodir&g | |
10488 | s&@localedir@&$localedir&g | |
10489 | s&@mandir@&$mandir&g | |
412e1bf7 | 10490 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 10491 | esac |
70d28673 | 10492 | _ACEOF |
7fbd9d09 FCE |
10493 | |
10494 | # Neutralize VPATH when `$srcdir' = `.'. | |
10495 | # Shell code in configure.ac might set extrasub. | |
10496 | # FIXME: do we really want to maintain this feature? | |
562d60b0 DB |
10497 | cat >>$CONFIG_STATUS <<_ACEOF |
10498 | sed "$ac_vpsub | |
2f1a1aea FCE |
10499 | $extrasub |
10500 | _ACEOF | |
562d60b0 | 10501 | cat >>$CONFIG_STATUS <<\_ACEOF |
2f1a1aea FCE |
10502 | :t |
10503 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
562d60b0 | 10504 | s&@configure_input@&$configure_input&;t t |
7fbd9d09 FCE |
10505 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
10506 | s&@srcdir@&$ac_srcdir&;t t | |
10507 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10508 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10509 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10510 | s&@builddir@&$ac_builddir&;t t | |
10511 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10512 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10513 | s&@INSTALL@&$ac_INSTALL&;t t | |
10514 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
10515 | $ac_datarootdir_hack | |
562d60b0 | 10516 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7fbd9d09 FCE |
10517 | |
10518 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10519 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
10520 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
562d60b0 | 10521 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 | 10522 | which seems to be undefined. Please make sure it is defined." >&5 |
562d60b0 | 10523 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 FCE |
10524 | which seems to be undefined. Please make sure it is defined." >&2;} |
10525 | ||
10526 | rm -f "$tmp/stdin" | |
818ba2bc | 10527 | case $ac_file in |
562d60b0 DB |
10528 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
10529 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
10530 | esac | |
7fbd9d09 FCE |
10531 | ;; |
10532 | :H) | |
10533 | # | |
10534 | # CONFIG_HEADER | |
10535 | # | |
562d60b0 DB |
10536 | _ACEOF |
10537 | ||
10538 | # Transform confdefs.h into a sed script `conftest.defines', that | |
10539 | # substitutes the proper values into config.h.in to produce config.h. | |
10540 | rm -f conftest.defines conftest.tail | |
10541 | # First, append a space to every undef/define line, to ease matching. | |
10542 | echo 's/$/ /' >conftest.defines | |
10543 | # Then, protect against being on the right side of a sed subst, or in | |
10544 | # an unquoted here document, in config.status. If some macros were | |
10545 | # called several times there might be several #defines for the same | |
10546 | # symbol, which is useless. But do not sort them, since the last | |
10547 | # AC_DEFINE must be honored. | |
10548 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10549 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
10550 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
10551 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
10552 | # just an empty string. | |
10553 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
10554 | ac_dB='\\)[ (].*,\\1define\\2' | |
10555 | ac_dC=' ' | |
10556 | ac_dD=' ,' | |
10557 | ||
10558 | uniq confdefs.h | | |
10559 | sed -n ' | |
10560 | t rset | |
10561 | :rset | |
10562 | s/^[ ]*#[ ]*define[ ][ ]*// | |
10563 | t ok | |
10564 | d | |
10565 | :ok | |
10566 | s/[\\&,]/\\&/g | |
10567 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
10568 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
10569 | ' >>conftest.defines | |
10570 | ||
10571 | # Remove the space that was appended to ease matching. | |
10572 | # Then replace #undef with comments. This is necessary, for | |
10573 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
10574 | # on some systems where configure will not decide to define it. | |
10575 | # (The regexp can be short, since the line contains either #define or #undef.) | |
10576 | echo 's/ $// | |
10577 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
10578 | ||
10579 | # Break up conftest.defines: | |
10580 | ac_max_sed_lines=50 | |
10581 | ||
10582 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
10583 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
10584 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
10585 | # et cetera. | |
10586 | ac_in='$ac_file_inputs' | |
10587 | ac_out='"$tmp/out1"' | |
10588 | ac_nxt='"$tmp/out2"' | |
10589 | ||
10590 | while : | |
10591 | do | |
10592 | # Write a here document: | |
10593 | cat >>$CONFIG_STATUS <<_ACEOF | |
10594 | # First, check the format of the line: | |
10595 | cat >"\$tmp/defines.sed" <<\\CEOF | |
10596 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
10597 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
10598 | b | |
10599 | :def | |
10600 | _ACEOF | |
10601 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
10602 | echo 'CEOF | |
10603 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
10604 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
10605 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
10606 | grep . conftest.tail >/dev/null || break | |
10607 | rm -f conftest.defines | |
10608 | mv conftest.tail conftest.defines | |
10609 | done | |
10610 | rm -f conftest.defines conftest.tail | |
10611 | ||
10612 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
10613 | cat >>$CONFIG_STATUS <<\_ACEOF | |
818ba2bc | 10614 | if test x"$ac_file" != x-; then |
562d60b0 DB |
10615 | echo "/* $configure_input */" >"$tmp/config.h" |
10616 | cat "$ac_result" >>"$tmp/config.h" | |
10617 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
10618 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
10619 | echo "$as_me: $ac_file is unchanged" >&6;} | |
2f1a1aea | 10620 | else |
562d60b0 DB |
10621 | rm -f $ac_file |
10622 | mv "$tmp/config.h" $ac_file | |
2f1a1aea FCE |
10623 | fi |
10624 | else | |
562d60b0 DB |
10625 | echo "/* $configure_input */" |
10626 | cat "$ac_result" | |
2f1a1aea | 10627 | fi |
562d60b0 DB |
10628 | rm -f "$tmp/out12" |
10629 | # Compute $ac_file's index in $config_headers. | |
2f1a1aea FCE |
10630 | _am_stamp_count=1 |
10631 | for _am_header in $config_headers :; do | |
10632 | case $_am_header in | |
562d60b0 | 10633 | $ac_file | $ac_file:* ) |
2f1a1aea FCE |
10634 | break ;; |
10635 | * ) | |
10636 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
10637 | esac | |
10638 | done | |
562d60b0 DB |
10639 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
10640 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10641 | X$ac_file : 'X\(//\)[^/]' \| \ | |
10642 | X$ac_file : 'X\(//\)$' \| \ | |
10643 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
10644 | echo X$ac_file | | |
7fbd9d09 FCE |
10645 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10646 | s//\1/ | |
10647 | q | |
10648 | } | |
10649 | /^X\(\/\/\)[^/].*/{ | |
10650 | s//\1/ | |
10651 | q | |
10652 | } | |
10653 | /^X\(\/\/\)$/{ | |
10654 | s//\1/ | |
10655 | q | |
10656 | } | |
10657 | /^X\(\/\).*/{ | |
10658 | s//\1/ | |
10659 | q | |
10660 | } | |
10661 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
10662 | ;; | |
818ba2bc | 10663 | |
562d60b0 DB |
10664 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
10665 | echo "$as_me: executing $ac_file commands" >&6;} | |
7fbd9d09 FCE |
10666 | ;; |
10667 | esac | |
818ba2bc MW |
10668 | |
10669 | ||
7fbd9d09 | 10670 | case $ac_file$ac_mode in |
562d60b0 DB |
10671 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
10672 | # Strip MF so we end up with the name of the file. | |
10673 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
10674 | # Check whether this is an Automake generated Makefile or not. | |
10675 | # We used to match only the files named `Makefile.in', but | |
10676 | # some people rename them; so instead we look at the file content. | |
10677 | # Grep'ing the first line is not enough: some people post-process | |
10678 | # each Makefile.in and add a new line on top of each file to say so. | |
10679 | # Grep'ing the whole file is not good either: AIX grep has a line | |
10680 | # limit of 2048, but all sed's we know have understand at least 4000. | |
10681 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then | |
10682 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
10683 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10684 | X"$mf" : 'X\(//\)[^/]' \| \ | |
10685 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10686 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
562d60b0 | 10687 | echo X"$mf" | |
7fbd9d09 FCE |
10688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10689 | s//\1/ | |
10690 | q | |
10691 | } | |
10692 | /^X\(\/\/\)[^/].*/{ | |
10693 | s//\1/ | |
10694 | q | |
10695 | } | |
10696 | /^X\(\/\/\)$/{ | |
10697 | s//\1/ | |
10698 | q | |
10699 | } | |
10700 | /^X\(\/\).*/{ | |
10701 | s//\1/ | |
10702 | q | |
10703 | } | |
10704 | s/.*/./; q'` | |
562d60b0 DB |
10705 | else |
10706 | continue | |
10707 | fi | |
10708 | # Extract the definition of DEPDIR, am__include, and am__quote | |
10709 | # from the Makefile without running `make'. | |
10710 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
10711 | test -z "$DEPDIR" && continue | |
10712 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
10713 | test -z "am__include" && continue | |
10714 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
10715 | # When using ansi2knr, U may be empty or an underscore; expand it | |
10716 | U=`sed -n 's/^U = //p' < "$mf"` | |
10717 | # Find all dependency output files, they are included files with | |
10718 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
10719 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
10720 | # expansion. | |
10721 | for file in `sed -n " | |
10722 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
10723 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
10724 | # Make sure the directory exists. | |
10725 | test -f "$dirpart/$file" && continue | |
10726 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
10727 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10728 | X"$file" : 'X\(//\)[^/]' \| \ | |
10729 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10730 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
562d60b0 | 10731 | echo X"$file" | |
7fbd9d09 FCE |
10732 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10733 | s//\1/ | |
10734 | q | |
10735 | } | |
10736 | /^X\(\/\/\)[^/].*/{ | |
10737 | s//\1/ | |
10738 | q | |
10739 | } | |
10740 | /^X\(\/\/\)$/{ | |
10741 | s//\1/ | |
10742 | q | |
10743 | } | |
10744 | /^X\(\/\).*/{ | |
10745 | s//\1/ | |
10746 | q | |
10747 | } | |
10748 | s/.*/./; q'` | |
562d60b0 | 10749 | { as_dir=$dirpart/$fdir |
412e1bf7 FCE |
10750 | case $as_dir in #( |
10751 | -*) as_dir=./$as_dir;; | |
10752 | esac | |
10753 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10754 | as_dirs= | |
10755 | while :; do | |
10756 | case $as_dir in #( | |
562d60b0 | 10757 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
412e1bf7 FCE |
10758 | *) as_qdir=$as_dir;; |
10759 | esac | |
10760 | as_dirs="'$as_qdir' $as_dirs" | |
10761 | as_dir=`$as_dirname -- "$as_dir" || | |
10762 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10763 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10764 | X"$as_dir" : 'X\(//\)$' \| \ | |
10765 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
562d60b0 | 10766 | echo X"$as_dir" | |
412e1bf7 FCE |
10767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10768 | s//\1/ | |
10769 | q | |
10770 | } | |
10771 | /^X\(\/\/\)[^/].*/{ | |
10772 | s//\1/ | |
10773 | q | |
10774 | } | |
10775 | /^X\(\/\/\)$/{ | |
10776 | s//\1/ | |
10777 | q | |
10778 | } | |
10779 | /^X\(\/\).*/{ | |
10780 | s//\1/ | |
10781 | q | |
10782 | } | |
10783 | s/.*/./; q'` | |
10784 | test -d "$as_dir" && break | |
10785 | done | |
10786 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
562d60b0 DB |
10787 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
10788 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
412e1bf7 | 10789 | { (exit 1); exit 1; }; }; } |
562d60b0 DB |
10790 | # echo "creating $dirpart/$file" |
10791 | echo '# dummy' > "$dirpart/$file" | |
2f1a1aea | 10792 | done |
562d60b0 | 10793 | done |
2f1a1aea | 10794 | ;; |
7fbd9d09 | 10795 | "run-stap":F) chmod +x run-stap ;; |
65ffc3f3 | 10796 | "run-staprun":F) chmod +x run-staprun ;; |
e4aaabda | 10797 | "dtrace":F) chmod +x dtrace ;; |
7fbd9d09 | 10798 | |
2f1a1aea | 10799 | esac |
7fbd9d09 | 10800 | done # for ac_tag |
2f1a1aea | 10801 | |
2f1a1aea | 10802 | |
412e1bf7 | 10803 | { (exit 0); exit 0; } |
2f1a1aea | 10804 | _ACEOF |
412e1bf7 | 10805 | chmod +x $CONFIG_STATUS |
2f1a1aea FCE |
10806 | ac_clean_files=$ac_clean_files_save |
10807 | ||
10808 | ||
10809 | # configure is writing to config.log, and then calls config.status. | |
10810 | # config.status does its own redirection, appending to config.log. | |
10811 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10812 | # by configure, so config.status won't be able to write to it; its | |
10813 | # output is simply discarded. So we exec the FD to /dev/null, | |
10814 | # effectively closing config.log, so it can be properly (re)opened and | |
10815 | # appended to by config.status. When coming back to configure, we | |
10816 | # need to make the FD available again. | |
10817 | if test "$no_create" != yes; then | |
10818 | ac_cs_success=: | |
10819 | ac_config_status_args= | |
10820 | test "$silent" = yes && | |
10821 | ac_config_status_args="$ac_config_status_args --quiet" | |
10822 | exec 5>/dev/null | |
10823 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10824 | exec 5>>config.log | |
10825 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10826 | # would make configure fail if this is the last instruction. | |
412e1bf7 | 10827 | $ac_cs_success || { (exit 1); exit 1; } |
2f1a1aea FCE |
10828 | fi |
10829 | ||
5ba96b90 FCE |
10830 | # |
10831 | # CONFIG_SUBDIRS section. | |
10832 | # | |
10833 | if test "$no_recursion" != yes; then | |
10834 | ||
562d60b0 | 10835 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
5ba96b90 FCE |
10836 | ac_sub_configure_args= |
10837 | ac_prev= | |
7fbd9d09 FCE |
10838 | eval "set x $ac_configure_args" |
10839 | shift | |
10840 | for ac_arg | |
10841 | do | |
5ba96b90 FCE |
10842 | if test -n "$ac_prev"; then |
10843 | ac_prev= | |
10844 | continue | |
10845 | fi | |
10846 | case $ac_arg in | |
10847 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10848 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10849 | ac_prev=cache_file ;; | |
10850 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10851 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10852 | | --c=*) | |
10853 | ;; | |
10854 | --config-cache | -C) | |
10855 | ;; | |
10856 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10857 | ac_prev=srcdir ;; | |
10858 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10859 | ;; | |
10860 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10861 | ac_prev=prefix ;; | |
10862 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10863 | ;; | |
7fbd9d09 FCE |
10864 | *) |
10865 | case $ac_arg in | |
562d60b0 | 10866 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 10867 | esac |
412e1bf7 | 10868 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
5ba96b90 FCE |
10869 | esac |
10870 | done | |
10871 | ||
10872 | # Always prepend --prefix to ensure using the same prefix | |
10873 | # in subdir configurations. | |
7fbd9d09 FCE |
10874 | ac_arg="--prefix=$prefix" |
10875 | case $ac_arg in | |
562d60b0 | 10876 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
10877 | esac |
10878 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10879 | ||
10880 | # Pass --silent | |
10881 | if test "$silent" = yes; then | |
10882 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10883 | fi | |
daae650d | 10884 | |
5ba96b90 FCE |
10885 | ac_popdir=`pwd` |
10886 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
10887 | ||
10888 | # Do not complain, so a configure script can configure whichever | |
10889 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
10890 | test -d "$srcdir/$ac_dir" || continue |
10891 | ||
10892 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
562d60b0 DB |
10893 | echo "$as_me:$LINENO: $ac_msg" >&5 |
10894 | echo "$ac_msg" >&6 | |
412e1bf7 FCE |
10895 | { as_dir="$ac_dir" |
10896 | case $as_dir in #( | |
10897 | -*) as_dir=./$as_dir;; | |
10898 | esac | |
10899 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10900 | as_dirs= | |
10901 | while :; do | |
10902 | case $as_dir in #( | |
562d60b0 | 10903 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
412e1bf7 FCE |
10904 | *) as_qdir=$as_dir;; |
10905 | esac | |
10906 | as_dirs="'$as_qdir' $as_dirs" | |
10907 | as_dir=`$as_dirname -- "$as_dir" || | |
10908 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10909 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10910 | X"$as_dir" : 'X\(//\)$' \| \ | |
10911 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
562d60b0 | 10912 | echo X"$as_dir" | |
412e1bf7 FCE |
10913 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10914 | s//\1/ | |
10915 | q | |
10916 | } | |
10917 | /^X\(\/\/\)[^/].*/{ | |
10918 | s//\1/ | |
10919 | q | |
10920 | } | |
10921 | /^X\(\/\/\)$/{ | |
10922 | s//\1/ | |
10923 | q | |
10924 | } | |
10925 | /^X\(\/\).*/{ | |
10926 | s//\1/ | |
10927 | q | |
10928 | } | |
10929 | s/.*/./; q'` | |
10930 | test -d "$as_dir" && break | |
10931 | done | |
10932 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
562d60b0 DB |
10933 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
10934 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
412e1bf7 | 10935 | { (exit 1); exit 1; }; }; } |
5ba96b90 FCE |
10936 | ac_builddir=. |
10937 | ||
7fbd9d09 FCE |
10938 | case "$ac_dir" in |
10939 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10940 | *) | |
562d60b0 | 10941 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7fbd9d09 | 10942 | # A ".." for each directory in $ac_dir_suffix. |
562d60b0 | 10943 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7fbd9d09 FCE |
10944 | case $ac_top_builddir_sub in |
10945 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10946 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10947 | esac ;; | |
10948 | esac | |
10949 | ac_abs_top_builddir=$ac_pwd | |
10950 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10951 | # for backward compatibility: | |
10952 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
10953 | |
10954 | case $srcdir in | |
7fbd9d09 | 10955 | .) # We are building in place. |
5ba96b90 | 10956 | ac_srcdir=. |
7fbd9d09 FCE |
10957 | ac_top_srcdir=$ac_top_builddir_sub |
10958 | ac_abs_top_srcdir=$ac_pwd ;; | |
10959 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 10960 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
10961 | ac_top_srcdir=$srcdir |
10962 | ac_abs_top_srcdir=$srcdir ;; | |
10963 | *) # Relative name. | |
10964 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10965 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10966 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 10967 | esac |
7fbd9d09 | 10968 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
10969 | |
10970 | ||
7fbd9d09 | 10971 | cd "$ac_dir" |
5ba96b90 FCE |
10972 | |
10973 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
10974 | if test -f "$ac_srcdir/configure.gnu"; then |
10975 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10976 | elif test -f "$ac_srcdir/configure"; then | |
10977 | ac_sub_configure=$ac_srcdir/configure | |
10978 | elif test -f "$ac_srcdir/configure.in"; then | |
10979 | # This should be Cygnus configure. | |
10980 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 10981 | else |
562d60b0 DB |
10982 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
10983 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
5ba96b90 FCE |
10984 | ac_sub_configure= |
10985 | fi | |
10986 | ||
10987 | # The recursion is here. | |
10988 | if test -n "$ac_sub_configure"; then | |
10989 | # Make the cache file name correct relative to the subdirectory. | |
10990 | case $cache_file in | |
10991 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
10992 | *) # Relative name. |
10993 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
10994 | esac |
10995 | ||
562d60b0 DB |
10996 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
10997 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5ba96b90 | 10998 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
10999 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
11000 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
562d60b0 DB |
11001 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
11002 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
412e1bf7 | 11003 | { (exit 1); exit 1; }; } |
5ba96b90 FCE |
11004 | fi |
11005 | ||
7fbd9d09 | 11006 | cd "$ac_popdir" |
5ba96b90 FCE |
11007 | done |
11008 | fi | |
11009 | ||
4d9087fc | 11010 | |
af29024d | 11011 | if test "${prefix}" = "/usr/local"; then |
562d60b0 DB |
11012 | { echo "$as_me:$LINENO: " >&5 |
11013 | echo "$as_me: " >&6;} | |
11014 | { echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 | |
11015 | echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} | |
11016 | { echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 | |
11017 | echo "$as_me: configuring with a prefix. For example, try" >&6;} | |
11018 | { echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 | |
11019 | echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} | |
11020 | { echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 | |
11021 | echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} | |
11022 | { echo "$as_me:$LINENO: is not supported." >&5 | |
11023 | echo "$as_me: is not supported." >&6;} | |
af29024d | 11024 | fi |