]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
225d8d4b | 3 | # Generated by GNU Autoconf 2.63 for systemtap 0.9.6. |
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, |
27aba29a | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
7fbd9d09 FCE |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
2f1a1aea FCE |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
27aba29a | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
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 | ||
27aba29a JS |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
7fbd9d09 | 56 | else |
27aba29a JS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7fbd9d09 | 69 | fi |
27aba29a JS |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
2f1a1aea | 81 | fi |
2f1a1aea FCE |
82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
7fbd9d09 FCE |
91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
27aba29a | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7fbd9d09 FCE |
119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
2f1a1aea | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
7fbd9d09 FCE |
123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
2f1a1aea FCE |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
27aba29a JS |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
2f1a1aea FCE |
135 | |
136 | # Required to use basename. | |
7fbd9d09 FCE |
137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
7fbd9d09 | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
7fbd9d09 | 152 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 156 | $as_echo X/"$0" | |
7fbd9d09 FCE |
157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
70d28673 | 170 | |
7fbd9d09 FCE |
171 | # CDPATH. |
172 | $as_unset CDPATH | |
5e0d2ebf | 173 | |
5e0d2ebf | 174 | |
7fbd9d09 FCE |
175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
5e0d2ebf DS |
180 | fi |
181 | ||
27aba29a | 182 | if test $as_have_required = yes && (eval ": |
7fbd9d09 FCE |
183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
5e0d2ebf | 198 | |
7fbd9d09 FCE |
199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
5e0d2ebf | 206 | |
7fbd9d09 FCE |
207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
2f1a1aea FCE |
242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
7fbd9d09 | 247 | case $as_dir in |
2f1a1aea | 248 | /*) |
7fbd9d09 FCE |
249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
27aba29a | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7fbd9d09 FCE |
265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
27aba29a | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7fbd9d09 FCE |
286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
5e0d2ebf DS |
349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
351 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7fbd9d09 FCE |
352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
27aba29a JS |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7fbd9d09 FCE |
369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
27aba29a JS |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
7fbd9d09 FCE |
441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
2f1a1aea FCE |
449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7fbd9d09 FCE |
452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
2f1a1aea | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7fbd9d09 FCE |
458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
2f1a1aea | 464 | sed ' |
7fbd9d09 FCE |
465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
2f1a1aea | 469 | N |
7fbd9d09 FCE |
470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 472 | t loop |
7fbd9d09 | 473 | s/-\n.*// |
2f1a1aea | 474 | ' >$as_me.lineno && |
7fbd9d09 | 475 | chmod +x "$as_me.lineno" || |
27aba29a | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
2f1a1aea FCE |
477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
7fbd9d09 FCE |
481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
2f1a1aea FCE |
483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
7fbd9d09 FCE |
488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
2f1a1aea | 503 | esac |
7fbd9d09 FCE |
504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
27aba29a JS |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
2f1a1aea | 530 | as_ln_s='cp -p' |
27aba29a | 531 | fi |
2f1a1aea FCE |
532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
7fbd9d09 FCE |
535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
7fbd9d09 FCE |
545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
27aba29a | 556 | test -d "$1/."; |
7fbd9d09 FCE |
557 | else |
558 | case $1 in | |
27aba29a | 559 | -*)set "./$1";; |
7fbd9d09 FCE |
560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
2f1a1aea | 575 | |
7fbd9d09 | 576 | exec 7<&0 </dev/null 6>&1 |
2f1a1aea FCE |
577 | |
578 | # Name of the host. | |
579 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
580 | # so uname gets run too. | |
581 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
582 | ||
2f1a1aea FCE |
583 | # |
584 | # Initializations. | |
585 | # | |
586 | ac_default_prefix=/usr/local | |
7fbd9d09 | 587 | ac_clean_files= |
2f1a1aea | 588 | ac_config_libobj_dir=. |
7fbd9d09 | 589 | LIBOBJS= |
2f1a1aea FCE |
590 | cross_compiling=no |
591 | subdirs= | |
592 | MFLAGS= | |
593 | MAKEFLAGS= | |
594 | SHELL=${CONFIG_SHELL-/bin/sh} | |
595 | ||
2f1a1aea FCE |
596 | # Identity of this package. |
597 | PACKAGE_NAME='systemtap' | |
598 | PACKAGE_TARNAME='systemtap' | |
225d8d4b JS |
599 | PACKAGE_VERSION='0.9.6' |
600 | PACKAGE_STRING='systemtap 0.9.6' | |
2f1a1aea FCE |
601 | PACKAGE_BUGREPORT='systemtap@sources.redhat.com' |
602 | ||
603 | # Factoring default headers for most tests. | |
604 | ac_includes_default="\ | |
605 | #include <stdio.h> | |
7fbd9d09 | 606 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
607 | # include <sys/types.h> |
608 | #endif | |
7fbd9d09 | 609 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
610 | # include <sys/stat.h> |
611 | #endif | |
7fbd9d09 | 612 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
7fbd9d09 | 616 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
7fbd9d09 FCE |
620 | #ifdef HAVE_STRING_H |
621 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
622 | # include <memory.h> |
623 | # endif | |
624 | # include <string.h> | |
625 | #endif | |
7fbd9d09 | 626 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
627 | # include <strings.h> |
628 | #endif | |
7fbd9d09 | 629 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 630 | # include <inttypes.h> |
2f1a1aea | 631 | #endif |
7fbd9d09 FCE |
632 | #ifdef HAVE_STDINT_H |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
636 | # include <unistd.h> |
637 | #endif" | |
638 | ||
27aba29a JS |
639 | enable_option_checking=no |
640 | ac_subst_vars='LTLIBOBJS | |
641 | LIBOBJS | |
642 | subdirs | |
643 | CXXCPP | |
644 | PROCFLAGS | |
645 | DATE | |
646 | stap_LIBS | |
647 | elfutils_abs_srcdir | |
648 | BUILD_ELFUTILS_FALSE | |
649 | BUILD_ELFUTILS_TRUE | |
1087b83f TM |
650 | BUILD_GRAPHER_FALSE |
651 | BUILD_GRAPHER_TRUE | |
652 | GRAPHER_LIBS | |
653 | GRAPHER_CFLAGS | |
654 | PKG_CONFIG | |
27aba29a JS |
655 | BUILD_SERVER_FALSE |
656 | BUILD_SERVER_TRUE | |
657 | nspr_CFLAGS | |
658 | nss_CFLAGS | |
659 | BUILD_REFDOCS_FALSE | |
660 | BUILD_REFDOCS_TRUE | |
661 | have_xmlto | |
662 | BUILD_DOCS_FALSE | |
663 | BUILD_DOCS_TRUE | |
664 | have_latex2html | |
665 | have_ps2pdf | |
666 | have_dvips | |
667 | have_latex | |
668 | BUILD_CRASHMOD_FALSE | |
669 | BUILD_CRASHMOD_TRUE | |
670 | staplog_CPPFLAGS | |
671 | sqlite3_LIBS | |
672 | PIECXXFLAGS | |
673 | PIECFLAGS | |
674 | PIELDFLAGS | |
675 | RANLIB | |
676 | ANSI2KNR | |
677 | U | |
678 | EGREP | |
679 | GREP | |
680 | CPP | |
681 | am__fastdepCXX_FALSE | |
682 | am__fastdepCXX_TRUE | |
683 | CXXDEPMODE | |
684 | ac_ct_CXX | |
685 | CXXFLAGS | |
686 | CXX | |
687 | am__fastdepCC_FALSE | |
688 | am__fastdepCC_TRUE | |
689 | CCDEPMODE | |
690 | AMDEPBACKSLASH | |
691 | AMDEP_FALSE | |
692 | AMDEP_TRUE | |
693 | am__quote | |
694 | am__include | |
695 | DEPDIR | |
696 | OBJEXT | |
697 | EXEEXT | |
698 | ac_ct_CC | |
699 | CPPFLAGS | |
700 | LDFLAGS | |
701 | CFLAGS | |
702 | CC | |
703 | LN_S | |
7fbd9d09 | 704 | MAINT |
27aba29a JS |
705 | MAINTAINER_MODE_FALSE |
706 | MAINTAINER_MODE_TRUE | |
707 | am__untar | |
708 | am__tar | |
709 | AMTAR | |
710 | am__leading_dot | |
711 | SET_MAKE | |
712 | AWK | |
713 | mkdir_p | |
7fbd9d09 | 714 | MKDIR_P |
27aba29a JS |
715 | INSTALL_STRIP_PROGRAM |
716 | STRIP | |
717 | install_sh | |
718 | MAKEINFO | |
719 | AUTOHEADER | |
720 | AUTOMAKE | |
721 | AUTOCONF | |
722 | ACLOCAL | |
723 | VERSION | |
724 | PACKAGE | |
725 | CYGPATH_W | |
726 | am__isrc | |
727 | INSTALL_DATA | |
728 | INSTALL_SCRIPT | |
729 | INSTALL_PROGRAM | |
730 | target_alias | |
731 | host_alias | |
732 | build_alias | |
733 | LIBS | |
734 | ECHO_T | |
735 | ECHO_N | |
736 | ECHO_C | |
737 | DEFS | |
738 | mandir | |
739 | localedir | |
740 | libdir | |
741 | psdir | |
742 | pdfdir | |
743 | dvidir | |
744 | htmldir | |
745 | infodir | |
746 | docdir | |
747 | oldincludedir | |
748 | includedir | |
749 | localstatedir | |
750 | sharedstatedir | |
751 | sysconfdir | |
752 | datadir | |
753 | datarootdir | |
754 | libexecdir | |
755 | sbindir | |
756 | bindir | |
757 | program_transform_name | |
758 | prefix | |
759 | exec_prefix | |
760 | PACKAGE_BUGREPORT | |
761 | PACKAGE_STRING | |
762 | PACKAGE_VERSION | |
763 | PACKAGE_TARNAME | |
764 | PACKAGE_NAME | |
765 | PATH_SEPARATOR | |
766 | SHELL' | |
2f1a1aea | 767 | ac_subst_files='' |
27aba29a JS |
768 | ac_user_opts=' |
769 | enable_option_checking | |
770 | enable_maintainer_mode | |
771 | enable_dependency_tracking | |
772 | enable_perfmon | |
773 | enable_prologues | |
774 | enable_ssp | |
775 | enable_pie | |
776 | enable_sqlite | |
777 | enable_crash | |
778 | enable_docs | |
779 | enable_refdocs | |
780 | enable_server | |
1087b83f | 781 | enable_grapher |
27aba29a JS |
782 | with_elfutils |
783 | ' | |
7fbd9d09 FCE |
784 | ac_precious_vars='build_alias |
785 | host_alias | |
786 | target_alias | |
787 | CC | |
788 | CFLAGS | |
789 | LDFLAGS | |
790 | LIBS | |
791 | CPPFLAGS | |
792 | CXX | |
793 | CXXFLAGS | |
794 | CCC | |
795 | CPP | |
1087b83f TM |
796 | PKG_CONFIG |
797 | GRAPHER_CFLAGS | |
798 | GRAPHER_LIBS | |
7fbd9d09 | 799 | CXXCPP' |
1087b83f | 800 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
801 | |
802 | # Initialize some variables set by options. | |
803 | ac_init_help= | |
804 | ac_init_version=false | |
27aba29a JS |
805 | ac_unrecognized_opts= |
806 | ac_unrecognized_sep= | |
2f1a1aea FCE |
807 | # The variables have the same names as the options, with |
808 | # dashes changed to underlines. | |
809 | cache_file=/dev/null | |
810 | exec_prefix=NONE | |
811 | no_create= | |
812 | no_recursion= | |
813 | prefix=NONE | |
814 | program_prefix=NONE | |
815 | program_suffix=NONE | |
816 | program_transform_name=s,x,x, | |
817 | silent= | |
818 | site= | |
819 | srcdir= | |
820 | verbose= | |
821 | x_includes=NONE | |
822 | x_libraries=NONE | |
823 | ||
824 | # Installation directory options. | |
825 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
826 | # and all the variables that are supposed to be based on exec_prefix | |
827 | # by default will actually change. | |
828 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 829 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
830 | bindir='${exec_prefix}/bin' |
831 | sbindir='${exec_prefix}/sbin' | |
832 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
833 | datarootdir='${prefix}/share' |
834 | datadir='${datarootdir}' | |
2f1a1aea FCE |
835 | sysconfdir='${prefix}/etc' |
836 | sharedstatedir='${prefix}/com' | |
837 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
838 | includedir='${prefix}/include' |
839 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
840 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
841 | infodir='${datarootdir}/info' | |
842 | htmldir='${docdir}' | |
843 | dvidir='${docdir}' | |
844 | pdfdir='${docdir}' | |
845 | psdir='${docdir}' | |
846 | libdir='${exec_prefix}/lib' | |
847 | localedir='${datarootdir}/locale' | |
848 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
849 | |
850 | ac_prev= | |
7fbd9d09 | 851 | ac_dashdash= |
2f1a1aea FCE |
852 | for ac_option |
853 | do | |
854 | # If the previous option needs an argument, assign it. | |
855 | if test -n "$ac_prev"; then | |
7fbd9d09 | 856 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
857 | ac_prev= |
858 | continue | |
859 | fi | |
860 | ||
7fbd9d09 FCE |
861 | case $ac_option in |
862 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
863 | *) ac_optarg=yes ;; | |
864 | esac | |
2f1a1aea FCE |
865 | |
866 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
867 | ||
7fbd9d09 FCE |
868 | case $ac_dashdash$ac_option in |
869 | --) | |
870 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
871 | |
872 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
873 | ac_prev=bindir ;; | |
874 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
875 | bindir=$ac_optarg ;; | |
876 | ||
877 | -build | --build | --buil | --bui | --bu) | |
878 | ac_prev=build_alias ;; | |
879 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
880 | build_alias=$ac_optarg ;; | |
881 | ||
882 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
883 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
884 | ac_prev=cache_file ;; | |
885 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
886 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
887 | cache_file=$ac_optarg ;; | |
888 | ||
889 | --config-cache | -C) | |
890 | cache_file=config.cache ;; | |
891 | ||
7fbd9d09 | 892 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 893 | ac_prev=datadir ;; |
7fbd9d09 | 894 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
895 | datadir=$ac_optarg ;; |
896 | ||
7fbd9d09 FCE |
897 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
898 | | --dataroo | --dataro | --datar) | |
899 | ac_prev=datarootdir ;; | |
900 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
901 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
902 | datarootdir=$ac_optarg ;; | |
903 | ||
2f1a1aea | 904 | -disable-* | --disable-*) |
27aba29a | 905 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 906 | # Reject names that are not valid shell variable names. |
27aba29a JS |
907 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
908 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 909 | { (exit 1); exit 1; }; } |
27aba29a JS |
910 | ac_useropt_orig=$ac_useropt |
911 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
912 | case $ac_user_opts in | |
913 | *" | |
914 | "enable_$ac_useropt" | |
915 | "*) ;; | |
916 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
917 | ac_unrecognized_sep=', ';; | |
918 | esac | |
919 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
920 | |
921 | -docdir | --docdir | --docdi | --doc | --do) | |
922 | ac_prev=docdir ;; | |
923 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
924 | docdir=$ac_optarg ;; | |
925 | ||
926 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
927 | ac_prev=dvidir ;; | |
928 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
929 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
930 | |
931 | -enable-* | --enable-*) | |
27aba29a | 932 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 933 | # Reject names that are not valid shell variable names. |
27aba29a JS |
934 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
935 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 936 | { (exit 1); exit 1; }; } |
27aba29a JS |
937 | ac_useropt_orig=$ac_useropt |
938 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
939 | case $ac_user_opts in | |
940 | *" | |
941 | "enable_$ac_useropt" | |
942 | "*) ;; | |
943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
944 | ac_unrecognized_sep=', ';; | |
945 | esac | |
946 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
947 | |
948 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
949 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
950 | | --exec | --exe | --ex) | |
951 | ac_prev=exec_prefix ;; | |
952 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
953 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
954 | | --exec=* | --exe=* | --ex=*) | |
955 | exec_prefix=$ac_optarg ;; | |
956 | ||
957 | -gas | --gas | --ga | --g) | |
958 | # Obsolete; use --with-gas. | |
959 | with_gas=yes ;; | |
960 | ||
961 | -help | --help | --hel | --he | -h) | |
962 | ac_init_help=long ;; | |
963 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
964 | ac_init_help=recursive ;; | |
965 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
966 | ac_init_help=short ;; | |
967 | ||
968 | -host | --host | --hos | --ho) | |
969 | ac_prev=host_alias ;; | |
970 | -host=* | --host=* | --hos=* | --ho=*) | |
971 | host_alias=$ac_optarg ;; | |
972 | ||
7fbd9d09 FCE |
973 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
974 | ac_prev=htmldir ;; | |
975 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
976 | | --ht=*) | |
977 | htmldir=$ac_optarg ;; | |
978 | ||
2f1a1aea FCE |
979 | -includedir | --includedir | --includedi | --included | --include \ |
980 | | --includ | --inclu | --incl | --inc) | |
981 | ac_prev=includedir ;; | |
982 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
983 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
984 | includedir=$ac_optarg ;; | |
985 | ||
986 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
987 | ac_prev=infodir ;; | |
988 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
989 | infodir=$ac_optarg ;; | |
990 | ||
991 | -libdir | --libdir | --libdi | --libd) | |
992 | ac_prev=libdir ;; | |
993 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
994 | libdir=$ac_optarg ;; | |
995 | ||
996 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
997 | | --libexe | --libex | --libe) | |
998 | ac_prev=libexecdir ;; | |
999 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1000 | | --libexe=* | --libex=* | --libe=*) | |
1001 | libexecdir=$ac_optarg ;; | |
1002 | ||
7fbd9d09 FCE |
1003 | -localedir | --localedir | --localedi | --localed | --locale) |
1004 | ac_prev=localedir ;; | |
1005 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1006 | localedir=$ac_optarg ;; | |
1007 | ||
2f1a1aea | 1008 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1009 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1010 | ac_prev=localstatedir ;; |
1011 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1012 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1013 | localstatedir=$ac_optarg ;; |
1014 | ||
1015 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1016 | ac_prev=mandir ;; | |
1017 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1018 | mandir=$ac_optarg ;; | |
1019 | ||
1020 | -nfp | --nfp | --nf) | |
1021 | # Obsolete; use --without-fp. | |
1022 | with_fp=no ;; | |
1023 | ||
1024 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1025 | | --no-cr | --no-c | -n) | |
1026 | no_create=yes ;; | |
1027 | ||
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1030 | no_recursion=yes ;; | |
1031 | ||
1032 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1033 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1034 | | --oldin | --oldi | --old | --ol | --o) | |
1035 | ac_prev=oldincludedir ;; | |
1036 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1037 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1038 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1039 | oldincludedir=$ac_optarg ;; | |
1040 | ||
1041 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1042 | ac_prev=prefix ;; | |
1043 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1044 | prefix=$ac_optarg ;; | |
1045 | ||
1046 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1047 | | --program-pre | --program-pr | --program-p) | |
1048 | ac_prev=program_prefix ;; | |
1049 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1050 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1051 | program_prefix=$ac_optarg ;; | |
1052 | ||
1053 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1054 | | --program-suf | --program-su | --program-s) | |
1055 | ac_prev=program_suffix ;; | |
1056 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1057 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1058 | program_suffix=$ac_optarg ;; | |
1059 | ||
1060 | -program-transform-name | --program-transform-name \ | |
1061 | | --program-transform-nam | --program-transform-na \ | |
1062 | | --program-transform-n | --program-transform- \ | |
1063 | | --program-transform | --program-transfor \ | |
1064 | | --program-transfo | --program-transf \ | |
1065 | | --program-trans | --program-tran \ | |
1066 | | --progr-tra | --program-tr | --program-t) | |
1067 | ac_prev=program_transform_name ;; | |
1068 | -program-transform-name=* | --program-transform-name=* \ | |
1069 | | --program-transform-nam=* | --program-transform-na=* \ | |
1070 | | --program-transform-n=* | --program-transform-=* \ | |
1071 | | --program-transform=* | --program-transfor=* \ | |
1072 | | --program-transfo=* | --program-transf=* \ | |
1073 | | --program-trans=* | --program-tran=* \ | |
1074 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1075 | program_transform_name=$ac_optarg ;; | |
1076 | ||
7fbd9d09 FCE |
1077 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1078 | ac_prev=pdfdir ;; | |
1079 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1080 | pdfdir=$ac_optarg ;; | |
1081 | ||
1082 | -psdir | --psdir | --psdi | --psd | --ps) | |
1083 | ac_prev=psdir ;; | |
1084 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1085 | psdir=$ac_optarg ;; | |
1086 | ||
2f1a1aea FCE |
1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1088 | | -silent | --silent | --silen | --sile | --sil) | |
1089 | silent=yes ;; | |
1090 | ||
1091 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1092 | ac_prev=sbindir ;; | |
1093 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1094 | | --sbi=* | --sb=*) | |
1095 | sbindir=$ac_optarg ;; | |
1096 | ||
1097 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1098 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1099 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1100 | | --sha | --sh) | |
1101 | ac_prev=sharedstatedir ;; | |
1102 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1103 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1104 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1105 | | --sha=* | --sh=*) | |
1106 | sharedstatedir=$ac_optarg ;; | |
1107 | ||
1108 | -site | --site | --sit) | |
1109 | ac_prev=site ;; | |
1110 | -site=* | --site=* | --sit=*) | |
1111 | site=$ac_optarg ;; | |
1112 | ||
1113 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1114 | ac_prev=srcdir ;; | |
1115 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1116 | srcdir=$ac_optarg ;; | |
1117 | ||
1118 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1119 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1120 | ac_prev=sysconfdir ;; | |
1121 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1122 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1123 | sysconfdir=$ac_optarg ;; | |
1124 | ||
1125 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1126 | ac_prev=target_alias ;; | |
1127 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1128 | target_alias=$ac_optarg ;; | |
1129 | ||
1130 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1131 | verbose=yes ;; | |
1132 | ||
1133 | -version | --version | --versio | --versi | --vers | -V) | |
1134 | ac_init_version=: ;; | |
1135 | ||
1136 | -with-* | --with-*) | |
27aba29a | 1137 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1138 | # Reject names that are not valid shell variable names. |
27aba29a JS |
1139 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1140 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1141 | { (exit 1); exit 1; }; } |
27aba29a JS |
1142 | ac_useropt_orig=$ac_useropt |
1143 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1144 | case $ac_user_opts in | |
1145 | *" | |
1146 | "with_$ac_useropt" | |
1147 | "*) ;; | |
1148 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1149 | ac_unrecognized_sep=', ';; | |
1150 | esac | |
1151 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1152 | |
1153 | -without-* | --without-*) | |
27aba29a | 1154 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1155 | # Reject names that are not valid shell variable names. |
27aba29a JS |
1156 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1157 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1158 | { (exit 1); exit 1; }; } |
27aba29a JS |
1159 | ac_useropt_orig=$ac_useropt |
1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1161 | case $ac_user_opts in | |
1162 | *" | |
1163 | "with_$ac_useropt" | |
1164 | "*) ;; | |
1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1166 | ac_unrecognized_sep=', ';; | |
1167 | esac | |
1168 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1169 | |
1170 | --x) | |
1171 | # Obsolete; use --with-x. | |
1172 | with_x=yes ;; | |
1173 | ||
1174 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1175 | | --x-incl | --x-inc | --x-in | --x-i) | |
1176 | ac_prev=x_includes ;; | |
1177 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1178 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1179 | x_includes=$ac_optarg ;; | |
1180 | ||
1181 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1182 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1183 | ac_prev=x_libraries ;; | |
1184 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1185 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1186 | x_libraries=$ac_optarg ;; | |
1187 | ||
27aba29a | 1188 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
2f1a1aea FCE |
1189 | Try \`$0 --help' for more information." >&2 |
1190 | { (exit 1); exit 1; }; } | |
1191 | ;; | |
1192 | ||
1193 | *=*) | |
1194 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1195 | # Reject names that are not valid shell variable names. | |
1196 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
27aba29a | 1197 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
2f1a1aea | 1198 | { (exit 1); exit 1; }; } |
7fbd9d09 | 1199 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1200 | export $ac_envvar ;; |
1201 | ||
1202 | *) | |
1203 | # FIXME: should be removed in autoconf 3.0. | |
27aba29a | 1204 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1205 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
27aba29a | 1206 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2f1a1aea FCE |
1207 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1208 | ;; | |
1209 | ||
1210 | esac | |
1211 | done | |
1212 | ||
1213 | if test -n "$ac_prev"; then | |
1214 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
27aba29a | 1215 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
2f1a1aea FCE |
1216 | { (exit 1); exit 1; }; } |
1217 | fi | |
1218 | ||
27aba29a JS |
1219 | if test -n "$ac_unrecognized_opts"; then |
1220 | case $enable_option_checking in | |
1221 | no) ;; | |
1222 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1223 | { (exit 1); exit 1; }; } ;; | |
1224 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1225 | esac | |
1226 | fi | |
1227 | ||
1228 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1229 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1230 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1231 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1232 | libdir localedir mandir | |
818ba2bc | 1233 | do |
7fbd9d09 | 1234 | eval ac_val=\$$ac_var |
27aba29a JS |
1235 | # Remove trailing slashes. |
1236 | case $ac_val in | |
1237 | */ ) | |
1238 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1239 | eval $ac_var=\$ac_val;; | |
1240 | esac | |
1241 | # Be sure to have absolute directory names. | |
8ae7a94a | 1242 | case $ac_val in |
7fbd9d09 FCE |
1243 | [\\/$]* | ?:[\\/]* ) continue;; |
1244 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1245 | esac |
27aba29a | 1246 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7fbd9d09 | 1247 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
1248 | done |
1249 | ||
1250 | # There might be people who depend on the old broken behavior: `$host' | |
1251 | # used to hold the argument of --host etc. | |
1252 | # FIXME: To remove some day. | |
1253 | build=$build_alias | |
1254 | host=$host_alias | |
1255 | target=$target_alias | |
1256 | ||
1257 | # FIXME: To remove some day. | |
1258 | if test "x$host_alias" != x; then | |
1259 | if test "x$build_alias" = x; then | |
1260 | cross_compiling=maybe | |
27aba29a | 1261 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2f1a1aea FCE |
1262 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1263 | elif test "x$build_alias" != "x$host_alias"; then | |
1264 | cross_compiling=yes | |
1265 | fi | |
1266 | fi | |
1267 | ||
1268 | ac_tool_prefix= | |
1269 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1270 | ||
1271 | test "$silent" = yes && exec 6>/dev/null | |
1272 | ||
1273 | ||
7fbd9d09 FCE |
1274 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1275 | ac_ls_di=`ls -di .` && | |
1276 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
27aba29a | 1277 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7fbd9d09 FCE |
1278 | { (exit 1); exit 1; }; } |
1279 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
27aba29a | 1280 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7fbd9d09 FCE |
1281 | { (exit 1); exit 1; }; } |
1282 | ||
1283 | ||
2f1a1aea FCE |
1284 | # Find the source files, if location was not specified. |
1285 | if test -z "$srcdir"; then | |
1286 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1287 | # Try the directory containing this script, then the parent directory. |
27aba29a JS |
1288 | ac_confdir=`$as_dirname -- "$as_myself" || |
1289 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1290 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1291 | X"$as_myself" : 'X\(//\)$' \| \ | |
1292 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1293 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1295 | s//\1/ | |
1296 | q | |
1297 | } | |
1298 | /^X\(\/\/\)[^/].*/{ | |
1299 | s//\1/ | |
1300 | q | |
1301 | } | |
1302 | /^X\(\/\/\)$/{ | |
1303 | s//\1/ | |
1304 | q | |
1305 | } | |
1306 | /^X\(\/\).*/{ | |
1307 | s//\1/ | |
1308 | q | |
1309 | } | |
1310 | s/.*/./; q'` | |
2f1a1aea | 1311 | srcdir=$ac_confdir |
7fbd9d09 | 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1313 | srcdir=.. |
1314 | fi | |
1315 | else | |
1316 | ac_srcdir_defaulted=no | |
1317 | fi | |
7fbd9d09 FCE |
1318 | if test ! -r "$srcdir/$ac_unique_file"; then |
1319 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
27aba29a | 1320 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
818ba2bc | 1321 | { (exit 1); exit 1; }; } |
8ae7a94a | 1322 | fi |
7fbd9d09 FCE |
1323 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1324 | ac_abs_confdir=`( | |
27aba29a | 1325 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
8ae7a94a | 1326 | { (exit 1); exit 1; }; } |
7fbd9d09 FCE |
1327 | pwd)` |
1328 | # When building in place, set srcdir=. | |
1329 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1330 | srcdir=. | |
1331 | fi | |
1332 | # Remove unnecessary trailing slashes from srcdir. | |
1333 | # Double slashes in file names in object file debugging info | |
1334 | # mess up M-x gdb in Emacs. | |
1335 | case $srcdir in | |
1336 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1337 | esac | |
1338 | for ac_var in $ac_precious_vars; do | |
1339 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1340 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1341 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1342 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1343 | done | |
2f1a1aea FCE |
1344 | |
1345 | # | |
1346 | # Report the --help message. | |
1347 | # | |
1348 | if test "$ac_init_help" = "long"; then | |
1349 | # Omit some internal or obsolete options to make the list less imposing. | |
1350 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1351 | cat <<_ACEOF | |
225d8d4b | 1352 | \`configure' configures systemtap 0.9.6 to adapt to many kinds of systems. |
2f1a1aea FCE |
1353 | |
1354 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1355 | ||
1356 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1357 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1358 | ||
1359 | Defaults for the options are specified in brackets. | |
1360 | ||
1361 | Configuration: | |
1362 | -h, --help display this help and exit | |
1363 | --help=short display options specific to this package | |
1364 | --help=recursive display the short help of all the included packages | |
1365 | -V, --version display version information and exit | |
1366 | -q, --quiet, --silent do not print \`checking...' messages | |
1367 | --cache-file=FILE cache test results in FILE [disabled] | |
1368 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1369 | -n, --no-create do not create output files | |
1370 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1371 | ||
2f1a1aea FCE |
1372 | Installation directories: |
1373 | --prefix=PREFIX install architecture-independent files in PREFIX | |
27aba29a | 1374 | [$ac_default_prefix] |
2f1a1aea | 1375 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
27aba29a | 1376 | [PREFIX] |
2f1a1aea FCE |
1377 | |
1378 | By default, \`make install' will install all the files in | |
1379 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1380 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1381 | for instance \`--prefix=\$HOME'. | |
1382 | ||
1383 | For better control, use the options below. | |
1384 | ||
1385 | Fine tuning of the installation directories: | |
27aba29a JS |
1386 | --bindir=DIR user executables [EPREFIX/bin] |
1387 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1388 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1389 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1390 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1391 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1392 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1393 | --includedir=DIR C header files [PREFIX/include] | |
1394 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1395 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1396 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1397 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1398 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1399 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1400 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1401 | --htmldir=DIR html documentation [DOCDIR] | |
1402 | --dvidir=DIR dvi documentation [DOCDIR] | |
1403 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1404 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1405 | _ACEOF |
1406 | ||
1407 | cat <<\_ACEOF | |
1408 | ||
1409 | Program names: | |
1410 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1411 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1412 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1413 | _ACEOF | |
1414 | fi | |
1415 | ||
1416 | if test -n "$ac_init_help"; then | |
1417 | case $ac_init_help in | |
225d8d4b | 1418 | short | recursive ) echo "Configuration of systemtap 0.9.6:";; |
2f1a1aea FCE |
1419 | esac |
1420 | cat <<\_ACEOF | |
1421 | ||
1422 | Optional Features: | |
27aba29a | 1423 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1424 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1425 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1426 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1427 | (and sometimes confusing) to the casual installer | |
1428 | --disable-dependency-tracking speeds up one-time build | |
1429 | --enable-dependency-tracking do not reject slow dependency extractors | |
e8f3c2c2 DS |
1430 | --enable-perfmon[=DIRECTORY] |
1431 | enable perfmon support (default is disabled). | |
1432 | Optional DIRECTORY is the path to the perfmon | |
1433 | installation (needed if installed in a non-standard | |
1434 | location). | |
44f75386 | 1435 | --enable-prologues make -P prologue-searching default |
bbfd8c1a | 1436 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1437 | --enable-pie enable position-independent-executable |
9921a199 | 1438 | --enable-sqlite build with sqlite support |
564eb0a8 DS |
1439 | --enable-crash[=DIRECTORY] |
1440 | enable crash extension (default is disabled). | |
1441 | Optional DIRECTORY is the path to the crash header | |
1442 | file (needed if installed in a non-standard | |
1443 | location). | |
465e8fbf FCE |
1444 | --enable-docs enable building documentation (default on if latex |
1445 | etc. found). | |
92aff3c7 WC |
1446 | --enable-refdocs enable building reference documentation (default on |
1447 | if xmlto etc. found and other documentation built). | |
6275c8d7 | 1448 | --enable-server enable building of stap-server/client (default on if |
19a0d4b6 | 1449 | nss etc. found). |
1087b83f TM |
1450 | --enable-grapher enable building of grapher (default on if gtkmm is |
1451 | found). | |
2f1a1aea | 1452 | |
4d9087fc RM |
1453 | Optional Packages: |
1454 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1455 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1456 | --with-elfutils=DIRECTORY | |
1457 | find elfutils source code in DIRECTORY | |
1458 | ||
2f1a1aea FCE |
1459 | Some influential environment variables: |
1460 | CC C compiler command | |
1461 | CFLAGS C compiler flags | |
1462 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1463 | nonstandard directory <lib dir> | |
7fbd9d09 FCE |
1464 | LIBS libraries to pass to the linker, e.g. -l<library> |
1465 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1466 | you have headers in a nonstandard directory <include dir> | |
2f1a1aea FCE |
1467 | CXX C++ compiler command |
1468 | CXXFLAGS C++ compiler flags | |
1469 | CPP C preprocessor | |
1087b83f TM |
1470 | PKG_CONFIG path to pkg-config utility |
1471 | GRAPHER_CFLAGS | |
1472 | C compiler flags for GRAPHER, overriding pkg-config | |
1473 | GRAPHER_LIBS | |
1474 | linker flags for GRAPHER, overriding pkg-config | |
3bf6ac45 | 1475 | CXXCPP C++ preprocessor |
2f1a1aea FCE |
1476 | |
1477 | Use these variables to override the choices made by `configure' or to help | |
1478 | it to find libraries and programs with nonstandard names/locations. | |
1479 | ||
1480 | Report bugs to <systemtap@sources.redhat.com>. | |
1481 | _ACEOF | |
7fbd9d09 | 1482 | ac_status=$? |
2f1a1aea FCE |
1483 | fi |
1484 | ||
1485 | if test "$ac_init_help" = "recursive"; then | |
1486 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1487 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
27aba29a JS |
1488 | test -d "$ac_dir" || |
1489 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1490 | continue | |
2f1a1aea FCE |
1491 | ac_builddir=. |
1492 | ||
7fbd9d09 FCE |
1493 | case "$ac_dir" in |
1494 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1495 | *) | |
27aba29a | 1496 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1497 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 1498 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1499 | case $ac_top_builddir_sub in |
1500 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1501 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1502 | esac ;; | |
1503 | esac | |
1504 | ac_abs_top_builddir=$ac_pwd | |
1505 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1506 | # for backward compatibility: | |
1507 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1508 | |
1509 | case $srcdir in | |
7fbd9d09 | 1510 | .) # We are building in place. |
2f1a1aea | 1511 | ac_srcdir=. |
7fbd9d09 FCE |
1512 | ac_top_srcdir=$ac_top_builddir_sub |
1513 | ac_abs_top_srcdir=$ac_pwd ;; | |
1514 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1515 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1516 | ac_top_srcdir=$srcdir |
1517 | ac_abs_top_srcdir=$srcdir ;; | |
1518 | *) # Relative name. | |
1519 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1520 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1521 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1522 | esac |
7fbd9d09 FCE |
1523 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1524 | ||
1525 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1526 | # Check for guested configure. | |
1527 | if test -f "$ac_srcdir/configure.gnu"; then | |
1528 | echo && | |
1529 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1530 | elif test -f "$ac_srcdir/configure"; then | |
1531 | echo && | |
1532 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1533 | else |
27aba29a | 1534 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1535 | fi || ac_status=$? |
1536 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1537 | done |
1538 | fi | |
1539 | ||
7fbd9d09 | 1540 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1541 | if $ac_init_version; then |
1542 | cat <<\_ACEOF | |
225d8d4b | 1543 | systemtap configure 0.9.6 |
27aba29a | 1544 | generated by GNU Autoconf 2.63 |
2f1a1aea | 1545 | |
7fbd9d09 | 1546 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
27aba29a | 1547 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
1548 | This configure script is free software; the Free Software Foundation |
1549 | gives unlimited permission to copy, distribute and modify it. | |
1550 | _ACEOF | |
7fbd9d09 | 1551 | exit |
2f1a1aea | 1552 | fi |
7fbd9d09 | 1553 | cat >config.log <<_ACEOF |
2f1a1aea FCE |
1554 | This file contains any messages produced by compilers while |
1555 | running configure, to aid debugging if configure makes a mistake. | |
1556 | ||
225d8d4b | 1557 | It was created by systemtap $as_me 0.9.6, which was |
27aba29a | 1558 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea FCE |
1559 | |
1560 | $ $0 $@ | |
1561 | ||
1562 | _ACEOF | |
7fbd9d09 | 1563 | exec 5>>config.log |
2f1a1aea FCE |
1564 | { |
1565 | cat <<_ASUNAME | |
1566 | ## --------- ## | |
1567 | ## Platform. ## | |
1568 | ## --------- ## | |
1569 | ||
1570 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1571 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1572 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1573 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1574 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1575 | ||
1576 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1577 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1578 | ||
1579 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1580 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1581 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7fbd9d09 | 1582 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2f1a1aea FCE |
1583 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1584 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1585 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1586 | ||
1587 | _ASUNAME | |
1588 | ||
1589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1590 | for as_dir in $PATH | |
1591 | do | |
1592 | IFS=$as_save_IFS | |
1593 | test -z "$as_dir" && as_dir=. | |
27aba29a | 1594 | $as_echo "PATH: $as_dir" |
2f1a1aea | 1595 | done |
7fbd9d09 | 1596 | IFS=$as_save_IFS |
2f1a1aea FCE |
1597 | |
1598 | } >&5 | |
1599 | ||
1600 | cat >&5 <<_ACEOF | |
1601 | ||
1602 | ||
1603 | ## ----------- ## | |
1604 | ## Core tests. ## | |
1605 | ## ----------- ## | |
1606 | ||
1607 | _ACEOF | |
1608 | ||
1609 | ||
1610 | # Keep a trace of the command line. | |
1611 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1612 | # Strip out --silent because we don't want to record it for future runs. | |
1613 | # Also quote any args containing shell meta-characters. | |
1614 | # Make two passes to allow for proper duplicate-argument suppression. | |
1615 | ac_configure_args= | |
1616 | ac_configure_args0= | |
1617 | ac_configure_args1= | |
2f1a1aea FCE |
1618 | ac_must_keep_next=false |
1619 | for ac_pass in 1 2 | |
1620 | do | |
1621 | for ac_arg | |
1622 | do | |
1623 | case $ac_arg in | |
1624 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1625 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1626 | | -silent | --silent | --silen | --sile | --sil) | |
1627 | continue ;; | |
7fbd9d09 | 1628 | *\'*) |
27aba29a | 1629 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1630 | esac |
1631 | case $ac_pass in | |
1632 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1633 | 2) | |
1634 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1635 | if test $ac_must_keep_next = true; then | |
1636 | ac_must_keep_next=false # Got value, back to normal. | |
1637 | else | |
1638 | case $ac_arg in | |
1639 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1640 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1641 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1642 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1643 | case "$ac_configure_args0 " in | |
1644 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1645 | esac | |
1646 | ;; | |
1647 | -* ) ac_must_keep_next=true ;; | |
1648 | esac | |
1649 | fi | |
7fbd9d09 | 1650 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2f1a1aea FCE |
1651 | ;; |
1652 | esac | |
1653 | done | |
1654 | done | |
1655 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1656 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1657 | ||
1658 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1659 | # config.log. We remove comments because anyway the quotes in there | |
1660 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
1661 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1662 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
1663 | trap 'exit_status=$? |
1664 | # Save into config.log some information that might help in debugging. | |
1665 | { | |
1666 | echo | |
1667 | ||
1668 | cat <<\_ASBOX | |
1669 | ## ---------------- ## | |
1670 | ## Cache variables. ## | |
1671 | ## ---------------- ## | |
1672 | _ASBOX | |
1673 | echo | |
1674 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
1675 | ( |
1676 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1677 | eval ac_val=\$$ac_var | |
1678 | case $ac_val in #( | |
1679 | *${as_nl}*) | |
1680 | case $ac_var in #( | |
27aba29a JS |
1681 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1682 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7fbd9d09 FCE |
1683 | esac |
1684 | case $ac_var in #( | |
1685 | _ | IFS | as_nl) ;; #( | |
27aba29a | 1686 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7fbd9d09 FCE |
1687 | *) $as_unset $ac_var ;; |
1688 | esac ;; | |
1689 | esac | |
1690 | done | |
2f1a1aea | 1691 | (set) 2>&1 | |
7fbd9d09 FCE |
1692 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1693 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 1694 | sed -n \ |
7fbd9d09 FCE |
1695 | "s/'\''/'\''\\\\'\'''\''/g; |
1696 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1697 | ;; #( | |
2f1a1aea | 1698 | *) |
7fbd9d09 | 1699 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 1700 | ;; |
7fbd9d09 FCE |
1701 | esac | |
1702 | sort | |
1703 | ) | |
2f1a1aea FCE |
1704 | echo |
1705 | ||
1706 | cat <<\_ASBOX | |
1707 | ## ----------------- ## | |
1708 | ## Output variables. ## | |
1709 | ## ----------------- ## | |
1710 | _ASBOX | |
1711 | echo | |
1712 | for ac_var in $ac_subst_vars | |
1713 | do | |
7fbd9d09 FCE |
1714 | eval ac_val=\$$ac_var |
1715 | case $ac_val in | |
27aba29a | 1716 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1717 | esac |
27aba29a | 1718 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1719 | done | sort |
1720 | echo | |
1721 | ||
1722 | if test -n "$ac_subst_files"; then | |
1723 | cat <<\_ASBOX | |
7fbd9d09 FCE |
1724 | ## ------------------- ## |
1725 | ## File substitutions. ## | |
1726 | ## ------------------- ## | |
2f1a1aea FCE |
1727 | _ASBOX |
1728 | echo | |
1729 | for ac_var in $ac_subst_files | |
1730 | do | |
7fbd9d09 FCE |
1731 | eval ac_val=\$$ac_var |
1732 | case $ac_val in | |
27aba29a | 1733 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 1734 | esac |
27aba29a | 1735 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1736 | done | sort |
1737 | echo | |
1738 | fi | |
1739 | ||
1740 | if test -s confdefs.h; then | |
1741 | cat <<\_ASBOX | |
1742 | ## ----------- ## | |
1743 | ## confdefs.h. ## | |
1744 | ## ----------- ## | |
1745 | _ASBOX | |
1746 | echo | |
7fbd9d09 | 1747 | cat confdefs.h |
2f1a1aea FCE |
1748 | echo |
1749 | fi | |
1750 | test "$ac_signal" != 0 && | |
27aba29a JS |
1751 | $as_echo "$as_me: caught signal $ac_signal" |
1752 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 1753 | } >&5 |
7fbd9d09 FCE |
1754 | rm -f core *.core core.conftest.* && |
1755 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 1756 | exit $exit_status |
7fbd9d09 | 1757 | ' 0 |
2f1a1aea FCE |
1758 | for ac_signal in 1 2 13 15; do |
1759 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1760 | done | |
1761 | ac_signal=0 | |
1762 | ||
1763 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 1764 | rm -f -r conftest* confdefs.h |
2f1a1aea FCE |
1765 | |
1766 | # Predefined preprocessor variables. | |
1767 | ||
1768 | cat >>confdefs.h <<_ACEOF | |
1769 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1770 | _ACEOF | |
1771 | ||
1772 | ||
1773 | cat >>confdefs.h <<_ACEOF | |
1774 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1775 | _ACEOF | |
1776 | ||
1777 | ||
1778 | cat >>confdefs.h <<_ACEOF | |
1779 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1780 | _ACEOF | |
1781 | ||
1782 | ||
1783 | cat >>confdefs.h <<_ACEOF | |
1784 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1785 | _ACEOF | |
1786 | ||
1787 | ||
1788 | cat >>confdefs.h <<_ACEOF | |
1789 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1790 | _ACEOF | |
1791 | ||
1792 | ||
1793 | # Let the site file select an alternate cache file if it wants to. | |
27aba29a JS |
1794 | # Prefer an explicitly selected file to automatically selected ones. |
1795 | ac_site_file1=NONE | |
1796 | ac_site_file2=NONE | |
7fbd9d09 | 1797 | if test -n "$CONFIG_SITE"; then |
27aba29a | 1798 | ac_site_file1=$CONFIG_SITE |
7fbd9d09 | 1799 | elif test "x$prefix" != xNONE; then |
27aba29a JS |
1800 | ac_site_file1=$prefix/share/config.site |
1801 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 1802 | else |
27aba29a JS |
1803 | ac_site_file1=$ac_default_prefix/share/config.site |
1804 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 1805 | fi |
27aba29a | 1806 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 1807 | do |
27aba29a | 1808 | test "x$ac_site_file" = xNONE && continue |
2f1a1aea | 1809 | if test -r "$ac_site_file"; then |
27aba29a JS |
1810 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1811 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2f1a1aea FCE |
1812 | sed 's/^/| /' "$ac_site_file" >&5 |
1813 | . "$ac_site_file" | |
1814 | fi | |
1815 | done | |
1816 | ||
1817 | if test -r "$cache_file"; then | |
1818 | # Some versions of bash will fail to source /dev/null (special | |
1819 | # files actually), so we avoid doing that. | |
1820 | if test -f "$cache_file"; then | |
27aba29a JS |
1821 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1822 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2f1a1aea | 1823 | case $cache_file in |
7fbd9d09 FCE |
1824 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1825 | *) . "./$cache_file";; | |
2f1a1aea FCE |
1826 | esac |
1827 | fi | |
1828 | else | |
27aba29a JS |
1829 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1830 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2f1a1aea FCE |
1831 | >$cache_file |
1832 | fi | |
1833 | ||
1834 | # Check that the precious variables saved in the cache have kept the same | |
1835 | # value. | |
1836 | ac_cache_corrupted=false | |
7fbd9d09 | 1837 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
1838 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1839 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
1840 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1841 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
1842 | case $ac_old_set,$ac_new_set in |
1843 | set,) | |
27aba29a JS |
1844 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1845 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2f1a1aea FCE |
1846 | ac_cache_corrupted=: ;; |
1847 | ,set) | |
27aba29a JS |
1848 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1849 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2f1a1aea FCE |
1850 | ac_cache_corrupted=: ;; |
1851 | ,);; | |
1852 | *) | |
1853 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
27aba29a JS |
1854 | # differences in whitespace do not lead to failure. |
1855 | ac_old_val_w=`echo x $ac_old_val` | |
1856 | ac_new_val_w=`echo x $ac_new_val` | |
1857 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1858 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1859 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1860 | ac_cache_corrupted=: | |
1861 | else | |
1862 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1863 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1864 | eval $ac_var=\$ac_old_val | |
1865 | fi | |
1866 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1867 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1868 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1869 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2f1a1aea FCE |
1870 | fi;; |
1871 | esac | |
1872 | # Pass precious variables to config.status. | |
1873 | if test "$ac_new_set" = set; then | |
1874 | case $ac_new_val in | |
27aba29a | 1875 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1876 | *) ac_arg=$ac_var=$ac_new_val ;; |
1877 | esac | |
1878 | case " $ac_configure_args " in | |
1879 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1880 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1881 | esac | |
1882 | fi | |
1883 | done | |
1884 | if $ac_cache_corrupted; then | |
27aba29a JS |
1885 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1887 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1888 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1889 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1890 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2f1a1aea FCE |
1891 | { (exit 1); exit 1; }; } |
1892 | fi | |
1893 | ||
8ae7a94a | 1894 | |
2f1a1aea FCE |
1895 | |
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
7fbd9d09 FCE |
1918 | ac_ext=c |
1919 | ac_cpp='$CPP $CPPFLAGS' | |
1920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
1923 | |
1924 | ||
1925 | ||
2f1a1aea | 1926 | |
7fbd9d09 | 1927 | am__api_version='1.10' |
10b20266 | 1928 | |
2f1a1aea | 1929 | ac_aux_dir= |
7fbd9d09 FCE |
1930 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1931 | if test -f "$ac_dir/install-sh"; then | |
2f1a1aea FCE |
1932 | ac_aux_dir=$ac_dir |
1933 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1934 | break | |
7fbd9d09 | 1935 | elif test -f "$ac_dir/install.sh"; then |
2f1a1aea FCE |
1936 | ac_aux_dir=$ac_dir |
1937 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1938 | break | |
7fbd9d09 | 1939 | elif test -f "$ac_dir/shtool"; then |
2f1a1aea FCE |
1940 | ac_aux_dir=$ac_dir |
1941 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1942 | break | |
1943 | fi | |
1944 | done | |
1945 | if test -z "$ac_aux_dir"; then | |
27aba29a JS |
1946 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1947 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2f1a1aea FCE |
1948 | { (exit 1); exit 1; }; } |
1949 | fi | |
7fbd9d09 FCE |
1950 | |
1951 | # These three variables are undocumented and unsupported, | |
1952 | # and are intended to be withdrawn in a future Autoconf release. | |
1953 | # They can cause serious problems if a builder's source tree is in a directory | |
1954 | # whose full name contains unusual characters. | |
1955 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1956 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1957 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1958 | ||
2f1a1aea FCE |
1959 | |
1960 | # Find a good install program. We prefer a C program (faster), | |
1961 | # so one script is as good as another. But avoid the broken or | |
1962 | # incompatible versions: | |
1963 | # SysV /etc/install, /usr/sbin/install | |
1964 | # SunOS /usr/etc/install | |
1965 | # IRIX /sbin/install | |
1966 | # AIX /bin/install | |
1967 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1968 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1969 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1970 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1971 | # OS/2's system install, which has a completely different semantic | |
1972 | # ./install, which can be erroneously created by make from ./install.sh. | |
27aba29a JS |
1973 | # Reject install programs that cannot install multiple files. |
1974 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1975 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
1976 | if test -z "$INSTALL"; then |
1977 | if test "${ac_cv_path_install+set}" = set; then | |
27aba29a | 1978 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
1979 | else |
1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1981 | for as_dir in $PATH | |
1982 | do | |
1983 | IFS=$as_save_IFS | |
1984 | test -z "$as_dir" && as_dir=. | |
1985 | # Account for people who put trailing slashes in PATH elements. | |
1986 | case $as_dir/ in | |
1987 | ./ | .// | /cC/* | \ | |
1988 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1989 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1990 | /usr/ucb/* ) ;; | |
1991 | *) | |
1992 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1993 | # Don't use installbsd from OSF since it installs stuff as root | |
1994 | # by default. | |
1995 | for ac_prog in ginstall scoinst install; do | |
1996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 1997 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
1998 | if test $ac_prog = install && |
1999 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2000 | # AIX install. It has an incompatible calling convention. | |
2001 | : | |
2002 | elif test $ac_prog = install && | |
2003 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2004 | # program-specific install script used by HP pwplus--don't use. | |
2005 | : | |
2006 | else | |
27aba29a JS |
2007 | rm -rf conftest.one conftest.two conftest.dir |
2008 | echo one > conftest.one | |
2009 | echo two > conftest.two | |
2010 | mkdir conftest.dir | |
2011 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2012 | test -s conftest.one && test -s conftest.two && | |
2013 | test -s conftest.dir/conftest.one && | |
2014 | test -s conftest.dir/conftest.two | |
2015 | then | |
2016 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2017 | break 3 | |
2018 | fi | |
2f1a1aea FCE |
2019 | fi |
2020 | fi | |
2021 | done | |
2022 | done | |
2023 | ;; | |
2024 | esac | |
27aba29a | 2025 | |
2f1a1aea | 2026 | done |
7fbd9d09 | 2027 | IFS=$as_save_IFS |
2f1a1aea | 2028 | |
27aba29a | 2029 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2030 | |
2031 | fi | |
2032 | if test "${ac_cv_path_install+set}" = set; then | |
2033 | INSTALL=$ac_cv_path_install | |
2034 | else | |
7fbd9d09 FCE |
2035 | # As a last resort, use the slow shell script. Don't cache a |
2036 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2037 | # break other packages using the cache if that directory is |
7fbd9d09 | 2038 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2039 | INSTALL=$ac_install_sh |
2040 | fi | |
2041 | fi | |
27aba29a JS |
2042 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2043 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
2044 | |
2045 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2046 | # It thinks the first close brace ends the variable substitution. | |
2047 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2048 | ||
2049 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2050 | ||
2051 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2052 | ||
27aba29a JS |
2053 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2054 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2f1a1aea FCE |
2055 | # Just in case |
2056 | sleep 1 | |
2057 | echo timestamp > conftest.file | |
2058 | # Do `set' in a subshell so we don't clobber the current shell's | |
2059 | # arguments. Must try -L first in case configure is actually a | |
2060 | # symlink; some systems play weird games with the mod time of symlinks | |
2061 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2062 | # directory). | |
2063 | if ( | |
2064 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2065 | if test "$*" = "X"; then | |
2066 | # -L didn't work. | |
2067 | set X `ls -t $srcdir/configure conftest.file` | |
2068 | fi | |
2069 | rm -f conftest.file | |
2070 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2071 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2072 | ||
2073 | # If neither matched, then we have a broken ls. This can happen | |
2074 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2075 | # broken ls alias from the environment. This has actually | |
2076 | # happened. Such a system could not be considered "sane". | |
27aba29a | 2077 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea | 2078 | alias in your environment" >&5 |
27aba29a | 2079 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea FCE |
2080 | alias in your environment" >&2;} |
2081 | { (exit 1); exit 1; }; } | |
2082 | fi | |
2083 | ||
2084 | test "$2" = conftest.file | |
2085 | ) | |
2086 | then | |
2087 | # Ok. | |
2088 | : | |
2089 | else | |
27aba29a | 2090 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2f1a1aea | 2091 | Check your system clock" >&5 |
27aba29a | 2092 | $as_echo "$as_me: error: newly created file is older than distributed files! |
2f1a1aea FCE |
2093 | Check your system clock" >&2;} |
2094 | { (exit 1); exit 1; }; } | |
2095 | fi | |
27aba29a JS |
2096 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2097 | $as_echo "yes" >&6; } | |
2f1a1aea | 2098 | test "$program_prefix" != NONE && |
7fbd9d09 | 2099 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2100 | # Use a double $ so make ignores it. |
2101 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2102 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
27aba29a | 2103 | # Double any \ or $. |
2f1a1aea | 2104 | # By default was `s,x,x', remove it if useless. |
27aba29a JS |
2105 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2106 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2107 | |
2108 | # expand $ac_aux_dir to an absolute path | |
2109 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2110 | ||
2111 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2112 | # Use eval to expand $SHELL | |
2113 | if eval "$MISSING --run true"; then | |
2114 | am_missing_run="$MISSING --run " | |
2115 | else | |
2116 | am_missing_run= | |
27aba29a JS |
2117 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2118 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
818ba2bc MW |
2119 | fi |
2120 | ||
27aba29a JS |
2121 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2122 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
7fbd9d09 FCE |
2123 | if test -z "$MKDIR_P"; then |
2124 | if test "${ac_cv_path_mkdir+set}" = set; then | |
27aba29a | 2125 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
2126 | else |
2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2128 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2129 | do | |
2130 | IFS=$as_save_IFS | |
2131 | test -z "$as_dir" && as_dir=. | |
2132 | for ac_prog in mkdir gmkdir; do | |
2133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2134 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2135 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2136 | 'mkdir (GNU coreutils) '* | \ | |
2137 | 'mkdir (coreutils) '* | \ | |
2138 | 'mkdir (fileutils) '4.1*) | |
2139 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2140 | break 3;; | |
2141 | esac | |
2142 | done | |
2143 | done | |
2144 | done | |
2145 | IFS=$as_save_IFS | |
2146 | ||
2147 | fi | |
2148 | ||
2149 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2150 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2151 | else |
7fbd9d09 FCE |
2152 | # As a last resort, use the slow shell script. Don't cache a |
2153 | # value for MKDIR_P within a source directory, because that will | |
2154 | # break other packages using the cache if that directory is | |
2155 | # removed, or if the value is a relative name. | |
2156 | test -d ./--version && rmdir ./--version | |
2157 | MKDIR_P="$ac_install_sh -d" | |
2f1a1aea FCE |
2158 | fi |
2159 | fi | |
27aba29a JS |
2160 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2161 | $as_echo "$MKDIR_P" >&6; } | |
7fbd9d09 FCE |
2162 | |
2163 | mkdir_p="$MKDIR_P" | |
2164 | case $mkdir_p in | |
2165 | [\\/$]* | ?:[\\/]*) ;; | |
2166 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2167 | esac | |
2f1a1aea FCE |
2168 | |
2169 | for ac_prog in gawk mawk nawk awk | |
2170 | do | |
2171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2172 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
2173 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2174 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2175 | if test "${ac_cv_prog_AWK+set}" = set; then |
27aba29a | 2176 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2177 | else |
2178 | if test -n "$AWK"; then | |
2179 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2180 | else | |
2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2182 | for as_dir in $PATH | |
2183 | do | |
2184 | IFS=$as_save_IFS | |
2185 | test -z "$as_dir" && as_dir=. | |
2186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2188 | ac_cv_prog_AWK="$ac_prog" |
27aba29a | 2189 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2190 | break 2 |
2191 | fi | |
2192 | done | |
2193 | done | |
7fbd9d09 | 2194 | IFS=$as_save_IFS |
2f1a1aea FCE |
2195 | |
2196 | fi | |
2197 | fi | |
2198 | AWK=$ac_cv_prog_AWK | |
2199 | if test -n "$AWK"; then | |
27aba29a JS |
2200 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2201 | $as_echo "$AWK" >&6; } | |
2f1a1aea | 2202 | else |
27aba29a JS |
2203 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2204 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2205 | fi |
2206 | ||
7fbd9d09 | 2207 | |
2f1a1aea FCE |
2208 | test -n "$AWK" && break |
2209 | done | |
2210 | ||
27aba29a JS |
2211 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2212 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2213 | set x ${MAKE-make} | |
2214 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7fbd9d09 | 2215 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 2216 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2217 | else |
2218 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 2219 | SHELL = /bin/sh |
2f1a1aea | 2220 | all: |
7fbd9d09 | 2221 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
2222 | _ACEOF |
2223 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
2224 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2225 | *@@@%%%=?*=@@@%%%*) | |
2226 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2227 | *) | |
2228 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2229 | esac | |
2f1a1aea FCE |
2230 | rm -f conftest.make |
2231 | fi | |
7fbd9d09 | 2232 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
27aba29a JS |
2233 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2234 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
2235 | SET_MAKE= |
2236 | else | |
27aba29a JS |
2237 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2238 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2239 | SET_MAKE="MAKE=${MAKE-make}" |
2240 | fi | |
2241 | ||
2242 | rm -rf .tst 2>/dev/null | |
2243 | mkdir .tst 2>/dev/null | |
2244 | if test -d .tst; then | |
2245 | am__leading_dot=. | |
2246 | else | |
2247 | am__leading_dot=_ | |
2248 | fi | |
2249 | rmdir .tst 2>/dev/null | |
2250 | ||
7fbd9d09 FCE |
2251 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2252 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2253 | # is not polluted with repeated "-I." | |
2254 | am__isrc=' -I$(srcdir)' | |
2255 | # test to see if srcdir already configured | |
2256 | if test -f $srcdir/config.status; then | |
27aba29a JS |
2257 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2258 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2f1a1aea | 2259 | { (exit 1); exit 1; }; } |
7fbd9d09 | 2260 | fi |
2f1a1aea FCE |
2261 | fi |
2262 | ||
2263 | # test whether we have cygpath | |
2264 | if test -z "$CYGPATH_W"; then | |
2265 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2266 | CYGPATH_W='cygpath -w' | |
2267 | else | |
2268 | CYGPATH_W=echo | |
2269 | fi | |
2270 | fi | |
2271 | ||
2272 | ||
2273 | # Define the identity of the package. | |
2274 | PACKAGE='systemtap' | |
225d8d4b | 2275 | VERSION='0.9.6' |
2f1a1aea FCE |
2276 | |
2277 | ||
2278 | cat >>confdefs.h <<_ACEOF | |
2279 | #define PACKAGE "$PACKAGE" | |
2280 | _ACEOF | |
2281 | ||
2282 | ||
2283 | cat >>confdefs.h <<_ACEOF | |
2284 | #define VERSION "$VERSION" | |
2285 | _ACEOF | |
2286 | ||
2287 | # Some tools Automake needs. | |
2288 | ||
2289 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2290 | ||
2291 | ||
2292 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2293 | ||
2294 | ||
2295 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2296 | ||
2297 | ||
2298 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2299 | ||
2300 | ||
2301 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2302 | ||
7fbd9d09 | 2303 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
2f1a1aea FCE |
2304 | |
2305 | # Installed binaries are usually stripped using `strip' when the user | |
2306 | # run `make install-strip'. However `strip' might not be the right | |
2307 | # tool to use in cross-compilation environments, therefore Automake | |
2308 | # will honor the `STRIP' environment variable to overrule this program. | |
2309 | if test "$cross_compiling" != no; then | |
2310 | if test -n "$ac_tool_prefix"; then | |
2311 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2312 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
27aba29a JS |
2313 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2314 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2315 | if test "${ac_cv_prog_STRIP+set}" = set; then |
27aba29a | 2316 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2317 | else |
2318 | if test -n "$STRIP"; then | |
2319 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2320 | else | |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2322 | for as_dir in $PATH | |
2323 | do | |
2324 | IFS=$as_save_IFS | |
2325 | test -z "$as_dir" && as_dir=. | |
2326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2328 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
27aba29a | 2329 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2330 | break 2 |
2331 | fi | |
2332 | done | |
2333 | done | |
7fbd9d09 | 2334 | IFS=$as_save_IFS |
2f1a1aea FCE |
2335 | |
2336 | fi | |
2337 | fi | |
2338 | STRIP=$ac_cv_prog_STRIP | |
2339 | if test -n "$STRIP"; then | |
27aba29a JS |
2340 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
2341 | $as_echo "$STRIP" >&6; } | |
2f1a1aea | 2342 | else |
27aba29a JS |
2343 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2344 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2345 | fi |
2346 | ||
7fbd9d09 | 2347 | |
2f1a1aea FCE |
2348 | fi |
2349 | if test -z "$ac_cv_prog_STRIP"; then | |
2350 | ac_ct_STRIP=$STRIP | |
2351 | # Extract the first word of "strip", so it can be a program name with args. | |
2352 | set dummy strip; ac_word=$2 | |
27aba29a JS |
2353 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2354 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2355 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
27aba29a | 2356 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2357 | else |
2358 | if test -n "$ac_ct_STRIP"; then | |
2359 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2360 | else | |
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2362 | for as_dir in $PATH | |
2363 | do | |
2364 | IFS=$as_save_IFS | |
2365 | test -z "$as_dir" && as_dir=. | |
2366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2368 | ac_cv_prog_ac_ct_STRIP="strip" |
27aba29a | 2369 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2370 | break 2 |
2371 | fi | |
2372 | done | |
2373 | done | |
7fbd9d09 | 2374 | IFS=$as_save_IFS |
2f1a1aea | 2375 | |
2f1a1aea FCE |
2376 | fi |
2377 | fi | |
2378 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2379 | if test -n "$ac_ct_STRIP"; then | |
27aba29a JS |
2380 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2381 | $as_echo "$ac_ct_STRIP" >&6; } | |
2f1a1aea | 2382 | else |
27aba29a JS |
2383 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2384 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2385 | fi |
2386 | ||
7fbd9d09 FCE |
2387 | if test "x$ac_ct_STRIP" = x; then |
2388 | STRIP=":" | |
2389 | else | |
2390 | case $cross_compiling:$ac_tool_warned in | |
2391 | yes:) | |
27aba29a JS |
2392 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2394 | ac_tool_warned=yes ;; |
2395 | esac | |
2396 | STRIP=$ac_ct_STRIP | |
2397 | fi | |
2f1a1aea FCE |
2398 | else |
2399 | STRIP="$ac_cv_prog_STRIP" | |
2400 | fi | |
2401 | ||
2402 | fi | |
7fbd9d09 | 2403 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2f1a1aea FCE |
2404 | |
2405 | # We need awk for the "check" target. The system "awk" is bad on | |
2406 | # some platforms. | |
2407 | # Always define AMTAR for backward compatibility. | |
2408 | ||
2409 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2410 | ||
2411 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2412 | ||
2413 | ||
2414 | ||
2415 | ||
2416 | ||
27aba29a JS |
2417 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2418 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7fbd9d09 | 2419 | # Check whether --enable-maintainer-mode was given. |
2f1a1aea | 2420 | if test "${enable_maintainer_mode+set}" = set; then |
7fbd9d09 | 2421 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
2422 | else |
2423 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 2424 | fi |
2f1a1aea | 2425 | |
27aba29a JS |
2426 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2427 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7fbd9d09 | 2428 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
2429 | MAINTAINER_MODE_TRUE= |
2430 | MAINTAINER_MODE_FALSE='#' | |
2431 | else | |
2432 | MAINTAINER_MODE_TRUE='#' | |
2433 | MAINTAINER_MODE_FALSE= | |
2434 | fi | |
2435 | ||
2436 | MAINT=$MAINTAINER_MODE_TRUE | |
2437 | ||
2438 | ||
2439 | ||
7fbd9d09 FCE |
2440 | mkdir_p="$MKDIR_P" |
2441 | case $mkdir_p in | |
2442 | [\\/$]* | ?:[\\/]*) ;; | |
2443 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2444 | esac | |
2445 | ||
98aab489 | 2446 | |
27aba29a JS |
2447 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2448 | $as_echo_n "checking whether ln -s works... " >&6; } | |
2f1a1aea FCE |
2449 | LN_S=$as_ln_s |
2450 | if test "$LN_S" = "ln -s"; then | |
27aba29a JS |
2451 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2452 | $as_echo "yes" >&6; } | |
2f1a1aea | 2453 | else |
27aba29a JS |
2454 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2455 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
2456 | fi |
2457 | ||
2458 | ac_ext=c | |
2459 | ac_cpp='$CPP $CPPFLAGS' | |
2460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2463 | if test -n "$ac_tool_prefix"; then | |
2464 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2465 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
27aba29a JS |
2466 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2467 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2468 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2469 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2470 | else |
2471 | if test -n "$CC"; then | |
2472 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2473 | else | |
2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2475 | for as_dir in $PATH | |
2476 | do | |
2477 | IFS=$as_save_IFS | |
2478 | test -z "$as_dir" && as_dir=. | |
2479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2481 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
27aba29a | 2482 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2483 | break 2 |
2484 | fi | |
2485 | done | |
2486 | done | |
7fbd9d09 | 2487 | IFS=$as_save_IFS |
2f1a1aea FCE |
2488 | |
2489 | fi | |
2490 | fi | |
2491 | CC=$ac_cv_prog_CC | |
2492 | if test -n "$CC"; then | |
27aba29a JS |
2493 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2494 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2495 | else |
27aba29a JS |
2496 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2497 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2498 | fi |
2499 | ||
7fbd9d09 | 2500 | |
2f1a1aea FCE |
2501 | fi |
2502 | if test -z "$ac_cv_prog_CC"; then | |
2503 | ac_ct_CC=$CC | |
2504 | # Extract the first word of "gcc", so it can be a program name with args. | |
2505 | set dummy gcc; ac_word=$2 | |
27aba29a JS |
2506 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2507 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2508 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 2509 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2510 | else |
2511 | if test -n "$ac_ct_CC"; then | |
2512 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2513 | else | |
2514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2515 | for as_dir in $PATH | |
2516 | do | |
2517 | IFS=$as_save_IFS | |
2518 | test -z "$as_dir" && as_dir=. | |
2519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2521 | ac_cv_prog_ac_ct_CC="gcc" |
27aba29a | 2522 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2523 | break 2 |
2524 | fi | |
2525 | done | |
2526 | done | |
7fbd9d09 | 2527 | IFS=$as_save_IFS |
2f1a1aea FCE |
2528 | |
2529 | fi | |
2530 | fi | |
2531 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2532 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
2533 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2534 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2535 | else |
27aba29a JS |
2536 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2537 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2538 | fi |
2539 | ||
7fbd9d09 FCE |
2540 | if test "x$ac_ct_CC" = x; then |
2541 | CC="" | |
2542 | else | |
2543 | case $cross_compiling:$ac_tool_warned in | |
2544 | yes:) | |
27aba29a JS |
2545 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2547 | ac_tool_warned=yes ;; |
2548 | esac | |
2549 | CC=$ac_ct_CC | |
2550 | fi | |
2f1a1aea FCE |
2551 | else |
2552 | CC="$ac_cv_prog_CC" | |
2553 | fi | |
2554 | ||
2555 | if test -z "$CC"; then | |
7fbd9d09 FCE |
2556 | if test -n "$ac_tool_prefix"; then |
2557 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 2558 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
27aba29a JS |
2559 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2560 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2561 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2562 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2563 | else |
2564 | if test -n "$CC"; then | |
2565 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2566 | else | |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2568 | for as_dir in $PATH | |
2569 | do | |
2570 | IFS=$as_save_IFS | |
2571 | test -z "$as_dir" && as_dir=. | |
2572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2574 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
27aba29a | 2575 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2576 | break 2 |
2577 | fi | |
2578 | done | |
2579 | done | |
7fbd9d09 | 2580 | IFS=$as_save_IFS |
2f1a1aea FCE |
2581 | |
2582 | fi | |
2583 | fi | |
2584 | CC=$ac_cv_prog_CC | |
2585 | if test -n "$CC"; then | |
27aba29a JS |
2586 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2587 | $as_echo "$CC" >&6; } | |
818ba2bc | 2588 | else |
27aba29a JS |
2589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2590 | $as_echo "no" >&6; } | |
818ba2bc MW |
2591 | fi |
2592 | ||
818ba2bc | 2593 | |
7fbd9d09 | 2594 | fi |
2f1a1aea FCE |
2595 | fi |
2596 | if test -z "$CC"; then | |
2597 | # Extract the first word of "cc", so it can be a program name with args. | |
2598 | set dummy cc; ac_word=$2 | |
27aba29a JS |
2599 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2600 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2601 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2602 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2603 | else |
2604 | if test -n "$CC"; then | |
2605 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2606 | else | |
2607 | ac_prog_rejected=no | |
2608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2609 | for as_dir in $PATH | |
2610 | do | |
2611 | IFS=$as_save_IFS | |
2612 | test -z "$as_dir" && as_dir=. | |
2613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
2615 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2616 | ac_prog_rejected=yes | |
2617 | continue | |
2618 | fi | |
2619 | ac_cv_prog_CC="cc" | |
27aba29a | 2620 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2621 | break 2 |
2622 | fi | |
2623 | done | |
2624 | done | |
7fbd9d09 | 2625 | IFS=$as_save_IFS |
2f1a1aea FCE |
2626 | |
2627 | if test $ac_prog_rejected = yes; then | |
2628 | # We found a bogon in the path, so make sure we never use it. | |
2629 | set dummy $ac_cv_prog_CC | |
2630 | shift | |
2631 | if test $# != 0; then | |
2632 | # We chose a different compiler from the bogus one. | |
2633 | # However, it has the same basename, so the bogon will be chosen | |
2634 | # first if we set CC to just the basename; use the full file name. | |
2635 | shift | |
2636 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2637 | fi | |
2638 | fi | |
2639 | fi | |
2640 | fi | |
2641 | CC=$ac_cv_prog_CC | |
2642 | if test -n "$CC"; then | |
27aba29a JS |
2643 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2644 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2645 | else |
27aba29a JS |
2646 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2647 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2648 | fi |
2649 | ||
7fbd9d09 | 2650 | |
2f1a1aea FCE |
2651 | fi |
2652 | if test -z "$CC"; then | |
2653 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 2654 | for ac_prog in cl.exe |
2f1a1aea FCE |
2655 | do |
2656 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2657 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
2658 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2659 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2660 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 2661 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2662 | else |
2663 | if test -n "$CC"; then | |
2664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2665 | else | |
2666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2667 | for as_dir in $PATH | |
2668 | do | |
2669 | IFS=$as_save_IFS | |
2670 | test -z "$as_dir" && as_dir=. | |
2671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2673 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
27aba29a | 2674 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2675 | break 2 |
2676 | fi | |
2677 | done | |
2678 | done | |
7fbd9d09 | 2679 | IFS=$as_save_IFS |
2f1a1aea FCE |
2680 | |
2681 | fi | |
2682 | fi | |
2683 | CC=$ac_cv_prog_CC | |
2684 | if test -n "$CC"; then | |
27aba29a JS |
2685 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2686 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2687 | else |
27aba29a JS |
2688 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2689 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2690 | fi |
2691 | ||
7fbd9d09 | 2692 | |
2f1a1aea FCE |
2693 | test -n "$CC" && break |
2694 | done | |
2695 | fi | |
2696 | if test -z "$CC"; then | |
2697 | ac_ct_CC=$CC | |
7fbd9d09 | 2698 | for ac_prog in cl.exe |
2f1a1aea FCE |
2699 | do |
2700 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2701 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
2702 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2703 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2704 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 2705 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2706 | else |
2707 | if test -n "$ac_ct_CC"; then | |
2708 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2709 | else | |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2717 | ac_cv_prog_ac_ct_CC="$ac_prog" |
27aba29a | 2718 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2719 | break 2 |
2720 | fi | |
2721 | done | |
2722 | done | |
7fbd9d09 | 2723 | IFS=$as_save_IFS |
2f1a1aea FCE |
2724 | |
2725 | fi | |
2726 | fi | |
2727 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2728 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
2729 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2730 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2731 | else |
27aba29a JS |
2732 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2733 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2734 | fi |
2735 | ||
7fbd9d09 | 2736 | |
2f1a1aea FCE |
2737 | test -n "$ac_ct_CC" && break |
2738 | done | |
2739 | ||
7fbd9d09 FCE |
2740 | if test "x$ac_ct_CC" = x; then |
2741 | CC="" | |
2742 | else | |
2743 | case $cross_compiling:$ac_tool_warned in | |
2744 | yes:) | |
27aba29a JS |
2745 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
2747 | ac_tool_warned=yes ;; |
2748 | esac | |
2749 | CC=$ac_ct_CC | |
2750 | fi | |
2f1a1aea FCE |
2751 | fi |
2752 | ||
2753 | fi | |
2754 | ||
2755 | ||
27aba29a JS |
2756 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2758 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 2759 | See \`config.log' for more details." >&5 |
27aba29a | 2760 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 2761 | See \`config.log' for more details." >&2;} |
27aba29a | 2762 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2763 | |
2764 | # Provide some information about the compiler. | |
27aba29a JS |
2765 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2766 | set X $ac_compile | |
2767 | ac_compiler=$2 | |
7fbd9d09 FCE |
2768 | { (ac_try="$ac_compiler --version >&5" |
2769 | case "(($ac_try" in | |
2770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2771 | *) ac_try_echo=$ac_try;; | |
2772 | esac | |
27aba29a JS |
2773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2774 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2775 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 2776 | ac_status=$? |
27aba29a | 2777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2778 | (exit $ac_status); } |
7fbd9d09 FCE |
2779 | { (ac_try="$ac_compiler -v >&5" |
2780 | case "(($ac_try" in | |
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2782 | *) ac_try_echo=$ac_try;; | |
2783 | esac | |
27aba29a JS |
2784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2785 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2786 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 2787 | ac_status=$? |
27aba29a | 2788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2789 | (exit $ac_status); } |
7fbd9d09 FCE |
2790 | { (ac_try="$ac_compiler -V >&5" |
2791 | case "(($ac_try" in | |
2792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2793 | *) ac_try_echo=$ac_try;; | |
2794 | esac | |
27aba29a JS |
2795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2796 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2797 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 2798 | ac_status=$? |
27aba29a | 2799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2800 | (exit $ac_status); } |
2801 | ||
2802 | cat >conftest.$ac_ext <<_ACEOF | |
2803 | /* confdefs.h. */ | |
2804 | _ACEOF | |
2805 | cat confdefs.h >>conftest.$ac_ext | |
2806 | cat >>conftest.$ac_ext <<_ACEOF | |
2807 | /* end confdefs.h. */ | |
2808 | ||
2809 | int | |
2810 | main () | |
2811 | { | |
2812 | ||
2813 | ; | |
2814 | return 0; | |
2815 | } | |
2816 | _ACEOF | |
2817 | ac_clean_files_save=$ac_clean_files | |
27aba29a | 2818 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
2819 | # Try to create an executable without -o first, disregard a.out. |
2820 | # It will help us diagnose broken compilers, and finding out an intuition | |
2821 | # of exeext. | |
27aba29a JS |
2822 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2823 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2824 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2825 | ||
2826 | # The possible output files: | |
2827 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2828 | ||
7fbd9d09 FCE |
2829 | ac_rmfiles= |
2830 | for ac_file in $ac_files | |
2831 | do | |
2832 | case $ac_file in | |
27aba29a | 2833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
2834 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2835 | esac | |
2836 | done | |
2837 | rm -f $ac_rmfiles | |
2838 | ||
2839 | if { (ac_try="$ac_link_default" | |
2840 | case "(($ac_try" in | |
2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2842 | *) ac_try_echo=$ac_try;; | |
2843 | esac | |
27aba29a JS |
2844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2845 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2846 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 2847 | ac_status=$? |
27aba29a | 2848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2849 | (exit $ac_status); }; then |
7fbd9d09 FCE |
2850 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2851 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2852 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2853 | # so that the user can short-circuit this test for compilers unknown to | |
2854 | # Autoconf. | |
2855 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
2856 | do |
2857 | test -f "$ac_file" || continue | |
2858 | case $ac_file in | |
27aba29a | 2859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
2860 | ;; |
2861 | [ab].out ) | |
2862 | # We found the default executable, but exeext='' is most | |
2863 | # certainly right. | |
2864 | break;; | |
2865 | *.* ) | |
7fbd9d09 FCE |
2866 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2867 | then :; else | |
2868 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2869 | fi | |
2870 | # We set ac_cv_exeext here because the later test for it is not | |
2871 | # safe: cross compilers may not add the suffix if given an `-o' | |
2872 | # argument, so we may need to know it at that point already. | |
2873 | # Even if this section looks crufty: it has the advantage of | |
2874 | # actually working. | |
2f1a1aea FCE |
2875 | break;; |
2876 | * ) | |
2877 | break;; | |
2878 | esac | |
2879 | done | |
7fbd9d09 FCE |
2880 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2881 | ||
2f1a1aea | 2882 | else |
7fbd9d09 FCE |
2883 | ac_file='' |
2884 | fi | |
2885 | ||
27aba29a JS |
2886 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2887 | $as_echo "$ac_file" >&6; } | |
7fbd9d09 | 2888 | if test -z "$ac_file"; then |
27aba29a | 2889 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
2891 | ||
27aba29a JS |
2892 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2893 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2894 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2f1a1aea | 2895 | See \`config.log' for more details." >&5 |
27aba29a | 2896 | $as_echo "$as_me: error: C compiler cannot create executables |
2f1a1aea | 2897 | See \`config.log' for more details." >&2;} |
27aba29a | 2898 | { (exit 77); exit 77; }; }; } |
2f1a1aea FCE |
2899 | fi |
2900 | ||
2901 | ac_exeext=$ac_cv_exeext | |
2f1a1aea | 2902 | |
7fbd9d09 | 2903 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2904 | # the compiler is broken, or we cross compile. |
27aba29a JS |
2905 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2906 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2f1a1aea FCE |
2907 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2908 | # If not cross compiling, check that we can run a simple program. | |
2909 | if test "$cross_compiling" != yes; then | |
2910 | if { ac_try='./$ac_file' | |
7fbd9d09 FCE |
2911 | { (case "(($ac_try" in |
2912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2913 | *) ac_try_echo=$ac_try;; | |
2914 | esac | |
27aba29a JS |
2915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2916 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2917 | (eval "$ac_try") 2>&5 |
2f1a1aea | 2918 | ac_status=$? |
27aba29a | 2919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2920 | (exit $ac_status); }; }; then |
2921 | cross_compiling=no | |
2922 | else | |
2923 | if test "$cross_compiling" = maybe; then | |
2924 | cross_compiling=yes | |
2925 | else | |
27aba29a JS |
2926 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2927 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2928 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2f1a1aea FCE |
2929 | If you meant to cross compile, use \`--host'. |
2930 | See \`config.log' for more details." >&5 | |
27aba29a | 2931 | $as_echo "$as_me: error: cannot run C compiled programs. |
2f1a1aea FCE |
2932 | If you meant to cross compile, use \`--host'. |
2933 | See \`config.log' for more details." >&2;} | |
27aba29a | 2934 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2935 | fi |
2936 | fi | |
2937 | fi | |
27aba29a JS |
2938 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2939 | $as_echo "yes" >&6; } | |
2f1a1aea | 2940 | |
27aba29a | 2941 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 2942 | ac_clean_files=$ac_clean_files_save |
7fbd9d09 | 2943 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2944 | # the compiler is broken, or we cross compile. |
27aba29a JS |
2945 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2946 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2947 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2948 | $as_echo "$cross_compiling" >&6; } | |
7fbd9d09 | 2949 | |
27aba29a JS |
2950 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2951 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7fbd9d09 FCE |
2952 | if { (ac_try="$ac_link" |
2953 | case "(($ac_try" in | |
2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2955 | *) ac_try_echo=$ac_try;; | |
2956 | esac | |
27aba29a JS |
2957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2958 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 2959 | (eval "$ac_link") 2>&5 |
2f1a1aea | 2960 | ac_status=$? |
27aba29a | 2961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2962 | (exit $ac_status); }; then |
2963 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2964 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2965 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2966 | # `rm'. | |
2967 | for ac_file in conftest.exe conftest conftest.*; do | |
2968 | test -f "$ac_file" || continue | |
2969 | case $ac_file in | |
27aba29a | 2970 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 2971 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
2972 | break;; |
2973 | * ) break;; | |
2974 | esac | |
2975 | done | |
2976 | else | |
27aba29a JS |
2977 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2978 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2979 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2f1a1aea | 2980 | See \`config.log' for more details." >&5 |
27aba29a | 2981 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2f1a1aea | 2982 | See \`config.log' for more details." >&2;} |
27aba29a | 2983 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2984 | fi |
2985 | ||
2986 | rm -f conftest$ac_cv_exeext | |
27aba29a JS |
2987 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2988 | $as_echo "$ac_cv_exeext" >&6; } | |
2f1a1aea FCE |
2989 | |
2990 | rm -f conftest.$ac_ext | |
2991 | EXEEXT=$ac_cv_exeext | |
2992 | ac_exeext=$EXEEXT | |
27aba29a JS |
2993 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2994 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2f1a1aea | 2995 | if test "${ac_cv_objext+set}" = set; then |
27aba29a | 2996 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2997 | else |
2998 | cat >conftest.$ac_ext <<_ACEOF | |
2999 | /* confdefs.h. */ | |
3000 | _ACEOF | |
3001 | cat confdefs.h >>conftest.$ac_ext | |
3002 | cat >>conftest.$ac_ext <<_ACEOF | |
3003 | /* end confdefs.h. */ | |
3004 | ||
3005 | int | |
3006 | main () | |
3007 | { | |
3008 | ||
3009 | ; | |
3010 | return 0; | |
3011 | } | |
3012 | _ACEOF | |
3013 | rm -f conftest.o conftest.obj | |
7fbd9d09 FCE |
3014 | if { (ac_try="$ac_compile" |
3015 | case "(($ac_try" in | |
3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3017 | *) ac_try_echo=$ac_try;; | |
3018 | esac | |
27aba29a JS |
3019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3020 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3021 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3022 | ac_status=$? |
27aba29a | 3023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3024 | (exit $ac_status); }; then |
7fbd9d09 FCE |
3025 | for ac_file in conftest.o conftest.obj conftest.*; do |
3026 | test -f "$ac_file" || continue; | |
2f1a1aea | 3027 | case $ac_file in |
27aba29a | 3028 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3029 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3030 | break;; | |
3031 | esac | |
3032 | done | |
3033 | else | |
27aba29a | 3034 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
3036 | ||
27aba29a JS |
3037 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3039 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2f1a1aea | 3040 | See \`config.log' for more details." >&5 |
27aba29a | 3041 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2f1a1aea | 3042 | See \`config.log' for more details." >&2;} |
27aba29a | 3043 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
3044 | fi |
3045 | ||
3046 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3047 | fi | |
27aba29a JS |
3048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3049 | $as_echo "$ac_cv_objext" >&6; } | |
2f1a1aea FCE |
3050 | OBJEXT=$ac_cv_objext |
3051 | ac_objext=$OBJEXT | |
27aba29a JS |
3052 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3053 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 3054 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
27aba29a | 3055 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3056 | else |
3057 | cat >conftest.$ac_ext <<_ACEOF | |
3058 | /* confdefs.h. */ | |
3059 | _ACEOF | |
3060 | cat confdefs.h >>conftest.$ac_ext | |
3061 | cat >>conftest.$ac_ext <<_ACEOF | |
3062 | /* end confdefs.h. */ | |
3063 | ||
3064 | int | |
3065 | main () | |
3066 | { | |
3067 | #ifndef __GNUC__ | |
3068 | choke me | |
3069 | #endif | |
3070 | ||
3071 | ; | |
3072 | return 0; | |
3073 | } | |
3074 | _ACEOF | |
3075 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3076 | if { (ac_try="$ac_compile" |
3077 | case "(($ac_try" in | |
3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3079 | *) ac_try_echo=$ac_try;; | |
3080 | esac | |
27aba29a JS |
3081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3082 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3083 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3084 | ac_status=$? |
3085 | grep -v '^ *+' conftest.er1 >conftest.err | |
3086 | rm -f conftest.er1 | |
3087 | cat conftest.err >&5 | |
27aba29a | 3088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3089 | (exit $ac_status); } && { |
3090 | test -z "$ac_c_werror_flag" || | |
3091 | test ! -s conftest.err | |
3092 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3093 | ac_compiler_gnu=yes |
3094 | else | |
27aba29a | 3095 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
3097 | ||
7fbd9d09 | 3098 | ac_compiler_gnu=no |
2f1a1aea | 3099 | fi |
7fbd9d09 FCE |
3100 | |
3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3102 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3103 | ||
3104 | fi | |
27aba29a JS |
3105 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3106 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3107 | if test $ac_compiler_gnu = yes; then | |
3108 | GCC=yes | |
3109 | else | |
3110 | GCC= | |
3111 | fi | |
2f1a1aea FCE |
3112 | ac_test_CFLAGS=${CFLAGS+set} |
3113 | ac_save_CFLAGS=$CFLAGS | |
27aba29a JS |
3114 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3115 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 3116 | if test "${ac_cv_prog_cc_g+set}" = set; then |
27aba29a | 3117 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3118 | else |
7fbd9d09 FCE |
3119 | ac_save_c_werror_flag=$ac_c_werror_flag |
3120 | ac_c_werror_flag=yes | |
3121 | ac_cv_prog_cc_g=no | |
3122 | CFLAGS="-g" | |
3123 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3124 | /* confdefs.h. */ |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
3129 | ||
3130 | int | |
3131 | main () | |
3132 | { | |
3133 | ||
3134 | ; | |
3135 | return 0; | |
3136 | } | |
3137 | _ACEOF | |
3138 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3139 | if { (ac_try="$ac_compile" |
3140 | case "(($ac_try" in | |
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3142 | *) ac_try_echo=$ac_try;; | |
3143 | esac | |
27aba29a JS |
3144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3145 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3146 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3147 | ac_status=$? |
3148 | grep -v '^ *+' conftest.er1 >conftest.err | |
3149 | rm -f conftest.er1 | |
3150 | cat conftest.err >&5 | |
27aba29a | 3151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3152 | (exit $ac_status); } && { |
3153 | test -z "$ac_c_werror_flag" || | |
3154 | test ! -s conftest.err | |
3155 | } && test -s conftest.$ac_objext; then | |
3156 | ac_cv_prog_cc_g=yes | |
3157 | else | |
27aba29a | 3158 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
3159 | sed 's/^/| /' conftest.$ac_ext >&5 |
3160 | ||
3161 | CFLAGS="" | |
3162 | cat >conftest.$ac_ext <<_ACEOF | |
3163 | /* confdefs.h. */ | |
3164 | _ACEOF | |
3165 | cat confdefs.h >>conftest.$ac_ext | |
3166 | cat >>conftest.$ac_ext <<_ACEOF | |
3167 | /* end confdefs.h. */ | |
3168 | ||
3169 | int | |
3170 | main () | |
3171 | { | |
3172 | ||
3173 | ; | |
3174 | return 0; | |
3175 | } | |
3176 | _ACEOF | |
3177 | rm -f conftest.$ac_objext | |
3178 | if { (ac_try="$ac_compile" | |
3179 | case "(($ac_try" in | |
3180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3181 | *) ac_try_echo=$ac_try;; | |
3182 | esac | |
27aba29a JS |
3183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3184 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3185 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3186 | ac_status=$? |
7fbd9d09 FCE |
3187 | grep -v '^ *+' conftest.er1 >conftest.err |
3188 | rm -f conftest.er1 | |
3189 | cat conftest.err >&5 | |
27aba29a | 3190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3191 | (exit $ac_status); } && { |
3192 | test -z "$ac_c_werror_flag" || | |
3193 | test ! -s conftest.err | |
3194 | } && test -s conftest.$ac_objext; then | |
3195 | : | |
3196 | else | |
27aba29a | 3197 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
3198 | sed 's/^/| /' conftest.$ac_ext >&5 |
3199 | ||
3200 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3201 | CFLAGS="-g" | |
3202 | cat >conftest.$ac_ext <<_ACEOF | |
3203 | /* confdefs.h. */ | |
3204 | _ACEOF | |
3205 | cat confdefs.h >>conftest.$ac_ext | |
3206 | cat >>conftest.$ac_ext <<_ACEOF | |
3207 | /* end confdefs.h. */ | |
3208 | ||
3209 | int | |
3210 | main () | |
3211 | { | |
3212 | ||
3213 | ; | |
3214 | return 0; | |
3215 | } | |
3216 | _ACEOF | |
3217 | rm -f conftest.$ac_objext | |
3218 | if { (ac_try="$ac_compile" | |
3219 | case "(($ac_try" in | |
3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3221 | *) ac_try_echo=$ac_try;; | |
3222 | esac | |
27aba29a JS |
3223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3224 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3225 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3226 | ac_status=$? |
7fbd9d09 FCE |
3227 | grep -v '^ *+' conftest.er1 >conftest.err |
3228 | rm -f conftest.er1 | |
3229 | cat conftest.err >&5 | |
27aba29a | 3230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3231 | (exit $ac_status); } && { |
3232 | test -z "$ac_c_werror_flag" || | |
3233 | test ! -s conftest.err | |
3234 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3235 | ac_cv_prog_cc_g=yes |
3236 | else | |
27aba29a | 3237 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3238 | sed 's/^/| /' conftest.$ac_ext >&5 |
3239 | ||
7fbd9d09 FCE |
3240 | |
3241 | fi | |
3242 | ||
3243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 3244 | fi |
7fbd9d09 FCE |
3245 | |
3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3247 | fi | |
3248 | ||
3249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3250 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3251 | fi |
27aba29a JS |
3252 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3253 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2f1a1aea FCE |
3254 | if test "$ac_test_CFLAGS" = set; then |
3255 | CFLAGS=$ac_save_CFLAGS | |
3256 | elif test $ac_cv_prog_cc_g = yes; then | |
3257 | if test "$GCC" = yes; then | |
3258 | CFLAGS="-g -O2" | |
3259 | else | |
3260 | CFLAGS="-g" | |
3261 | fi | |
3262 | else | |
3263 | if test "$GCC" = yes; then | |
3264 | CFLAGS="-O2" | |
3265 | else | |
3266 | CFLAGS= | |
3267 | fi | |
3268 | fi | |
27aba29a JS |
3269 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3270 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7fbd9d09 | 3271 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
27aba29a | 3272 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3273 | else |
7fbd9d09 | 3274 | ac_cv_prog_cc_c89=no |
2f1a1aea FCE |
3275 | ac_save_CC=$CC |
3276 | cat >conftest.$ac_ext <<_ACEOF | |
3277 | /* confdefs.h. */ | |
3278 | _ACEOF | |
3279 | cat confdefs.h >>conftest.$ac_ext | |
3280 | cat >>conftest.$ac_ext <<_ACEOF | |
3281 | /* end confdefs.h. */ | |
3282 | #include <stdarg.h> | |
3283 | #include <stdio.h> | |
3284 | #include <sys/types.h> | |
3285 | #include <sys/stat.h> | |
3286 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3287 | struct buf { int x; }; | |
3288 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3289 | static char *e (p, i) | |
3290 | char **p; | |
3291 | int i; | |
3292 | { | |
3293 | return p[i]; | |
3294 | } | |
3295 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3296 | { | |
3297 | char *s; | |
3298 | va_list v; | |
3299 | va_start (v,p); | |
3300 | s = g (p, va_arg (v,int)); | |
3301 | va_end (v); | |
3302 | return s; | |
3303 | } | |
3304 | ||
3305 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3306 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3307 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 3308 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3309 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3310 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 3311 | that's true only with -std. */ |
2f1a1aea FCE |
3312 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3313 | ||
7fbd9d09 FCE |
3314 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3315 | inside strings and character constants. */ | |
3316 | #define FOO(x) 'x' | |
3317 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3318 | ||
2f1a1aea FCE |
3319 | int test (int i, double x); |
3320 | struct s1 {int (*f) (int a);}; | |
3321 | struct s2 {int (*f) (double a);}; | |
3322 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3323 | int argc; | |
3324 | char **argv; | |
3325 | int | |
3326 | main () | |
3327 | { | |
3328 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3329 | ; | |
3330 | return 0; | |
3331 | } | |
3332 | _ACEOF | |
7fbd9d09 FCE |
3333 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3334 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3335 | do |
3336 | CC="$ac_save_CC $ac_arg" | |
3337 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3338 | if { (ac_try="$ac_compile" |
3339 | case "(($ac_try" in | |
3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3341 | *) ac_try_echo=$ac_try;; | |
3342 | esac | |
27aba29a JS |
3343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3344 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3345 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3346 | ac_status=$? |
3347 | grep -v '^ *+' conftest.er1 >conftest.err | |
3348 | rm -f conftest.er1 | |
3349 | cat conftest.err >&5 | |
27aba29a | 3350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3351 | (exit $ac_status); } && { |
3352 | test -z "$ac_c_werror_flag" || | |
3353 | test ! -s conftest.err | |
3354 | } && test -s conftest.$ac_objext; then | |
3355 | ac_cv_prog_cc_c89=$ac_arg | |
818ba2bc | 3356 | else |
27aba29a | 3357 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
3359 | ||
7fbd9d09 | 3360 | |
2f1a1aea | 3361 | fi |
7fbd9d09 FCE |
3362 | |
3363 | rm -f core conftest.err conftest.$ac_objext | |
3364 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3365 | done |
7fbd9d09 | 3366 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3367 | CC=$ac_save_CC |
3368 | ||
3369 | fi | |
7fbd9d09 FCE |
3370 | # AC_CACHE_VAL |
3371 | case "x$ac_cv_prog_cc_c89" in | |
3372 | x) | |
27aba29a JS |
3373 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3374 | $as_echo "none needed" >&6; } ;; | |
7fbd9d09 | 3375 | xno) |
27aba29a JS |
3376 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3377 | $as_echo "unsupported" >&6; } ;; | |
2f1a1aea | 3378 | *) |
7fbd9d09 | 3379 | CC="$CC $ac_cv_prog_cc_c89" |
27aba29a JS |
3380 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3381 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2f1a1aea FCE |
3382 | esac |
3383 | ||
818ba2bc | 3384 | |
818ba2bc MW |
3385 | ac_ext=c |
3386 | ac_cpp='$CPP $CPPFLAGS' | |
3387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3390 | DEPDIR="${am__leading_dot}deps" | |
3391 | ||
7fbd9d09 | 3392 | ac_config_commands="$ac_config_commands depfiles" |
818ba2bc MW |
3393 | |
3394 | ||
3395 | am_make=${MAKE-make} | |
3396 | cat > confinc << 'END' | |
3397 | am__doit: | |
8ae7a94a FCE |
3398 | @echo done |
3399 | .PHONY: am__doit | |
3400 | END | |
3401 | # If we don't find an include directive, just comment out the code. | |
27aba29a JS |
3402 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3403 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8ae7a94a FCE |
3404 | am__include="#" |
3405 | am__quote= | |
3406 | _am_result=none | |
3407 | # First try GNU make style include. | |
3408 | echo "include confinc" > confmf | |
3409 | # We grep out `Entering directory' and `Leaving directory' | |
3410 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3411 | # In particular we don't look at `^make:' because GNU make might | |
3412 | # be invoked under some other name (usually "gmake"), in which | |
3413 | # case it prints its new name instead of `make'. | |
3414 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3415 | am__include=include | |
3416 | am__quote= | |
3417 | _am_result=GNU | |
3418 | fi | |
3419 | # Now try BSD make style include. | |
3420 | if test "$am__include" = "#"; then | |
3421 | echo '.include "confinc"' > confmf | |
3422 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3423 | am__include=.include | |
3424 | am__quote="\"" | |
3425 | _am_result=BSD | |
3426 | fi | |
3427 | fi | |
2f1a1aea | 3428 | |
8ae7a94a | 3429 | |
27aba29a JS |
3430 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3431 | $as_echo "$_am_result" >&6; } | |
2f1a1aea FCE |
3432 | rm -f confinc confmf |
3433 | ||
7fbd9d09 | 3434 | # Check whether --enable-dependency-tracking was given. |
2f1a1aea | 3435 | if test "${enable_dependency_tracking+set}" = set; then |
7fbd9d09 FCE |
3436 | enableval=$enable_dependency_tracking; |
3437 | fi | |
2f1a1aea | 3438 | |
2f1a1aea FCE |
3439 | if test "x$enable_dependency_tracking" != xno; then |
3440 | am_depcomp="$ac_aux_dir/depcomp" | |
3441 | AMDEPBACKSLASH='\' | |
3442 | fi | |
7fbd9d09 | 3443 | if test "x$enable_dependency_tracking" != xno; then |
2f1a1aea FCE |
3444 | AMDEP_TRUE= |
3445 | AMDEP_FALSE='#' | |
3446 | else | |
3447 | AMDEP_TRUE='#' | |
3448 | AMDEP_FALSE= | |
3449 | fi | |
3450 | ||
3451 | ||
3452 | ||
2f1a1aea FCE |
3453 | depcc="$CC" am_compiler_list= |
3454 | ||
27aba29a JS |
3455 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3456 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3457 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
27aba29a | 3458 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3459 | else |
3460 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3461 | # We make a subdir and do the tests there. Otherwise we can end up | |
3462 | # making bogus files that we don't know about and never remove. For | |
3463 | # instance it was reported that on HP-UX the gcc test will end up | |
3464 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3465 | # in D'. | |
3466 | mkdir conftest.dir | |
3467 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3468 | # using a relative directory. | |
3469 | cp "$am_depcomp" conftest.dir | |
3470 | cd conftest.dir | |
3471 | # We will build objects and dependencies in a subdirectory because | |
3472 | # it helps to detect inapplicable dependency modes. For instance | |
3473 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3474 | # side effect of compilation, but ICC will put the dependencies in | |
3475 | # the current directory while Tru64 will put them in the object | |
3476 | # directory. | |
3477 | mkdir sub | |
3478 | ||
3479 | am_cv_CC_dependencies_compiler_type=none | |
3480 | if test "$am_compiler_list" = ""; then | |
3481 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3482 | fi | |
3483 | for depmode in $am_compiler_list; do | |
3484 | # Setup a source with many dependencies, because some compilers | |
3485 | # like to wrap large dependency lists on column 80 (with \), and | |
3486 | # we should not choose a depcomp mode which is confused by this. | |
3487 | # | |
3488 | # We need to recreate these files for each test, as the compiler may | |
3489 | # overwrite some of them when testing with obscure command lines. | |
3490 | # This happens at least with the AIX C compiler. | |
3491 | : > sub/conftest.c | |
3492 | for i in 1 2 3 4 5 6; do | |
3493 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3494 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3495 | # Solaris 8's {/usr,}/bin/sh. | |
3496 | touch sub/conftst$i.h | |
3497 | done | |
3498 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3499 | ||
3500 | case $depmode in | |
3501 | nosideeffect) | |
3502 | # after this tag, mechanisms are not by side-effect, so they'll | |
3503 | # only be used when explicitly requested | |
3504 | if test "x$enable_dependency_tracking" = xyes; then | |
3505 | continue | |
3506 | else | |
3507 | break | |
3508 | fi | |
3509 | ;; | |
3510 | none) break ;; | |
3511 | esac | |
3512 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3513 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3514 | # handle `-M -o', and we need to detect this. | |
3515 | if depmode=$depmode \ | |
3516 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3517 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3518 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3519 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 3520 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3521 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3522 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3523 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3524 | # icc doesn't choke on unknown options, it will just issue warnings | |
3525 | # or remarks (even with -Werror). So we grep stderr for any message | |
3526 | # that says an option was ignored or not supported. | |
3527 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3528 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3529 | # The diagnosis changed in icc 8.0: | |
3530 | # icc: Command line remark: option '-MP' not supported | |
3531 | if (grep 'ignoring option' conftest.err || | |
3532 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3533 | am_cv_CC_dependencies_compiler_type=$depmode | |
3534 | break | |
3535 | fi | |
3536 | fi | |
3537 | done | |
3538 | ||
3539 | cd .. | |
3540 | rm -rf conftest.dir | |
3541 | else | |
3542 | am_cv_CC_dependencies_compiler_type=none | |
3543 | fi | |
3544 | ||
3545 | fi | |
27aba29a JS |
3546 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3547 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
3548 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3549 | ||
7fbd9d09 | 3550 | if |
2f1a1aea FCE |
3551 | test "x$enable_dependency_tracking" != xno \ |
3552 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3553 | am__fastdepCC_TRUE= | |
3554 | am__fastdepCC_FALSE='#' | |
3555 | else | |
3556 | am__fastdepCC_TRUE='#' | |
3557 | am__fastdepCC_FALSE= | |
3558 | fi | |
3559 | ||
3560 | ||
7fbd9d09 | 3561 | ac_ext=cpp |
2f1a1aea FCE |
3562 | ac_cpp='$CXXCPP $CPPFLAGS' |
3563 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3564 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3565 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7fbd9d09 FCE |
3566 | if test -z "$CXX"; then |
3567 | if test -n "$CCC"; then | |
3568 | CXX=$CCC | |
3569 | else | |
3570 | if test -n "$ac_tool_prefix"; then | |
3571 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2f1a1aea FCE |
3572 | do |
3573 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3574 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
3575 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3576 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3577 | if test "${ac_cv_prog_CXX+set}" = set; then |
27aba29a | 3578 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3579 | else |
3580 | if test -n "$CXX"; then | |
3581 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3582 | else | |
3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3584 | for as_dir in $PATH | |
3585 | do | |
3586 | IFS=$as_save_IFS | |
3587 | test -z "$as_dir" && as_dir=. | |
3588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 3589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3590 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
27aba29a | 3591 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3592 | break 2 |
3593 | fi | |
3594 | done | |
3595 | done | |
7fbd9d09 | 3596 | IFS=$as_save_IFS |
2f1a1aea FCE |
3597 | |
3598 | fi | |
3599 | fi | |
3600 | CXX=$ac_cv_prog_CXX | |
3601 | if test -n "$CXX"; then | |
27aba29a JS |
3602 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
3603 | $as_echo "$CXX" >&6; } | |
2f1a1aea | 3604 | else |
27aba29a JS |
3605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3606 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3607 | fi |
3608 | ||
7fbd9d09 | 3609 | |
2f1a1aea FCE |
3610 | test -n "$CXX" && break |
3611 | done | |
3612 | fi | |
3613 | if test -z "$CXX"; then | |
3614 | ac_ct_CXX=$CXX | |
7fbd9d09 | 3615 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2f1a1aea FCE |
3616 | do |
3617 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3618 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
3619 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3620 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3621 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
27aba29a | 3622 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3623 | else |
3624 | if test -n "$ac_ct_CXX"; then | |
3625 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3626 | else | |
3627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3628 | for as_dir in $PATH | |
3629 | do | |
3630 | IFS=$as_save_IFS | |
3631 | test -z "$as_dir" && as_dir=. | |
3632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 3633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3634 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
27aba29a | 3635 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3636 | break 2 |
3637 | fi | |
3638 | done | |
3639 | done | |
7fbd9d09 | 3640 | IFS=$as_save_IFS |
2f1a1aea FCE |
3641 | |
3642 | fi | |
3643 | fi | |
3644 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3645 | if test -n "$ac_ct_CXX"; then | |
27aba29a JS |
3646 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3647 | $as_echo "$ac_ct_CXX" >&6; } | |
2f1a1aea | 3648 | else |
27aba29a JS |
3649 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3650 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3651 | fi |
3652 | ||
7fbd9d09 | 3653 | |
2f1a1aea FCE |
3654 | test -n "$ac_ct_CXX" && break |
3655 | done | |
2f1a1aea | 3656 | |
7fbd9d09 FCE |
3657 | if test "x$ac_ct_CXX" = x; then |
3658 | CXX="g++" | |
3659 | else | |
3660 | case $cross_compiling:$ac_tool_warned in | |
3661 | yes:) | |
27aba29a JS |
3662 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3663 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
3664 | ac_tool_warned=yes ;; |
3665 | esac | |
3666 | CXX=$ac_ct_CXX | |
3667 | fi | |
2f1a1aea FCE |
3668 | fi |
3669 | ||
7fbd9d09 FCE |
3670 | fi |
3671 | fi | |
2f1a1aea | 3672 | # Provide some information about the compiler. |
27aba29a JS |
3673 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3674 | set X $ac_compile | |
3675 | ac_compiler=$2 | |
7fbd9d09 FCE |
3676 | { (ac_try="$ac_compiler --version >&5" |
3677 | case "(($ac_try" in | |
3678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3679 | *) ac_try_echo=$ac_try;; | |
3680 | esac | |
27aba29a JS |
3681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3682 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3683 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 3684 | ac_status=$? |
27aba29a | 3685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3686 | (exit $ac_status); } |
7fbd9d09 FCE |
3687 | { (ac_try="$ac_compiler -v >&5" |
3688 | case "(($ac_try" in | |
3689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3690 | *) ac_try_echo=$ac_try;; | |
3691 | esac | |
27aba29a JS |
3692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3693 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3694 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 3695 | ac_status=$? |
27aba29a | 3696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3697 | (exit $ac_status); } |
7fbd9d09 FCE |
3698 | { (ac_try="$ac_compiler -V >&5" |
3699 | case "(($ac_try" in | |
3700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3701 | *) ac_try_echo=$ac_try;; | |
3702 | esac | |
27aba29a JS |
3703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3704 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3705 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 3706 | ac_status=$? |
27aba29a | 3707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
3708 | (exit $ac_status); } |
3709 | ||
27aba29a JS |
3710 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3711 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
2f1a1aea | 3712 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
27aba29a | 3713 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3714 | else |
3715 | cat >conftest.$ac_ext <<_ACEOF | |
3716 | /* confdefs.h. */ | |
3717 | _ACEOF | |
3718 | cat confdefs.h >>conftest.$ac_ext | |
3719 | cat >>conftest.$ac_ext <<_ACEOF | |
3720 | /* end confdefs.h. */ | |
3721 | ||
3722 | int | |
3723 | main () | |
3724 | { | |
3725 | #ifndef __GNUC__ | |
3726 | choke me | |
3727 | #endif | |
3728 | ||
3729 | ; | |
3730 | return 0; | |
3731 | } | |
3732 | _ACEOF | |
3733 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3734 | if { (ac_try="$ac_compile" |
3735 | case "(($ac_try" in | |
3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3737 | *) ac_try_echo=$ac_try;; | |
3738 | esac | |
27aba29a JS |
3739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3740 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3741 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3742 | ac_status=$? |
3743 | grep -v '^ *+' conftest.er1 >conftest.err | |
3744 | rm -f conftest.er1 | |
3745 | cat conftest.err >&5 | |
27aba29a | 3746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3747 | (exit $ac_status); } && { |
3748 | test -z "$ac_cxx_werror_flag" || | |
3749 | test ! -s conftest.err | |
3750 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3751 | ac_compiler_gnu=yes |
3752 | else | |
27aba29a | 3753 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3754 | sed 's/^/| /' conftest.$ac_ext >&5 |
3755 | ||
7fbd9d09 | 3756 | ac_compiler_gnu=no |
2f1a1aea | 3757 | fi |
7fbd9d09 FCE |
3758 | |
3759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3760 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3761 | ||
3762 | fi | |
27aba29a JS |
3763 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3764 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3765 | if test $ac_compiler_gnu = yes; then | |
3766 | GXX=yes | |
3767 | else | |
3768 | GXX= | |
3769 | fi | |
2f1a1aea FCE |
3770 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3771 | ac_save_CXXFLAGS=$CXXFLAGS | |
27aba29a JS |
3772 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3773 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
2f1a1aea | 3774 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
27aba29a | 3775 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3776 | else |
7fbd9d09 FCE |
3777 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3778 | ac_cxx_werror_flag=yes | |
3779 | ac_cv_prog_cxx_g=no | |
3780 | CXXFLAGS="-g" | |
3781 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3782 | /* confdefs.h. */ |
3783 | _ACEOF | |
3784 | cat confdefs.h >>conftest.$ac_ext | |
3785 | cat >>conftest.$ac_ext <<_ACEOF | |
3786 | /* end confdefs.h. */ | |
3787 | ||
3788 | int | |
3789 | main () | |
3790 | { | |
3791 | ||
3792 | ; | |
3793 | return 0; | |
3794 | } | |
3795 | _ACEOF | |
3796 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3797 | if { (ac_try="$ac_compile" |
3798 | case "(($ac_try" in | |
3799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3800 | *) ac_try_echo=$ac_try;; | |
3801 | esac | |
27aba29a JS |
3802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3803 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3804 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3805 | ac_status=$? |
3806 | grep -v '^ *+' conftest.er1 >conftest.err | |
3807 | rm -f conftest.er1 | |
3808 | cat conftest.err >&5 | |
27aba29a | 3809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3810 | (exit $ac_status); } && { |
3811 | test -z "$ac_cxx_werror_flag" || | |
3812 | test ! -s conftest.err | |
3813 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3814 | ac_cv_prog_cxx_g=yes |
3815 | else | |
27aba29a | 3816 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3817 | sed 's/^/| /' conftest.$ac_ext >&5 |
3818 | ||
7fbd9d09 FCE |
3819 | CXXFLAGS="" |
3820 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3821 | /* confdefs.h. */ |
3822 | _ACEOF | |
3823 | cat confdefs.h >>conftest.$ac_ext | |
3824 | cat >>conftest.$ac_ext <<_ACEOF | |
3825 | /* end confdefs.h. */ | |
7fbd9d09 | 3826 | |
2f1a1aea FCE |
3827 | int |
3828 | main () | |
3829 | { | |
7fbd9d09 | 3830 | |
2f1a1aea FCE |
3831 | ; |
3832 | return 0; | |
3833 | } | |
3834 | _ACEOF | |
3835 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3836 | if { (ac_try="$ac_compile" |
3837 | case "(($ac_try" in | |
3838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3839 | *) ac_try_echo=$ac_try;; | |
3840 | esac | |
27aba29a JS |
3841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3842 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3843 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3844 | ac_status=$? |
3845 | grep -v '^ *+' conftest.er1 >conftest.err | |
3846 | rm -f conftest.er1 | |
3847 | cat conftest.err >&5 | |
27aba29a | 3848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3849 | (exit $ac_status); } && { |
3850 | test -z "$ac_cxx_werror_flag" || | |
3851 | test ! -s conftest.err | |
3852 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3853 | : |
3854 | else | |
27aba29a | 3855 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3856 | sed 's/^/| /' conftest.$ac_ext >&5 |
3857 | ||
7fbd9d09 FCE |
3858 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3859 | CXXFLAGS="-g" | |
3860 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3861 | /* confdefs.h. */ |
3862 | _ACEOF | |
3863 | cat confdefs.h >>conftest.$ac_ext | |
3864 | cat >>conftest.$ac_ext <<_ACEOF | |
3865 | /* end confdefs.h. */ | |
7fbd9d09 | 3866 | |
2f1a1aea FCE |
3867 | int |
3868 | main () | |
3869 | { | |
7fbd9d09 | 3870 | |
2f1a1aea FCE |
3871 | ; |
3872 | return 0; | |
3873 | } | |
3874 | _ACEOF | |
3875 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
3876 | if { (ac_try="$ac_compile" |
3877 | case "(($ac_try" in | |
3878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3879 | *) ac_try_echo=$ac_try;; | |
3880 | esac | |
27aba29a JS |
3881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3882 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 3883 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3884 | ac_status=$? |
3885 | grep -v '^ *+' conftest.er1 >conftest.err | |
3886 | rm -f conftest.er1 | |
3887 | cat conftest.err >&5 | |
27aba29a | 3888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
3889 | (exit $ac_status); } && { |
3890 | test -z "$ac_cxx_werror_flag" || | |
3891 | test ! -s conftest.err | |
3892 | } && test -s conftest.$ac_objext; then | |
3893 | ac_cv_prog_cxx_g=yes | |
2f1a1aea | 3894 | else |
27aba29a | 3895 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3896 | sed 's/^/| /' conftest.$ac_ext >&5 |
3897 | ||
7fbd9d09 | 3898 | |
70d28673 | 3899 | fi |
7fbd9d09 FCE |
3900 | |
3901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3902 | fi | |
3903 | ||
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5e0d2ebf DS |
3905 | fi |
3906 | ||
7fbd9d09 FCE |
3907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3908 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3909 | fi | |
27aba29a JS |
3910 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3911 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
7fbd9d09 FCE |
3912 | if test "$ac_test_CXXFLAGS" = set; then |
3913 | CXXFLAGS=$ac_save_CXXFLAGS | |
3914 | elif test $ac_cv_prog_cxx_g = yes; then | |
3915 | if test "$GXX" = yes; then | |
3916 | CXXFLAGS="-g -O2" | |
3917 | else | |
3918 | CXXFLAGS="-g" | |
3919 | fi | |
3920 | else | |
3921 | if test "$GXX" = yes; then | |
3922 | CXXFLAGS="-O2" | |
3923 | else | |
3924 | CXXFLAGS= | |
3925 | fi | |
3926 | fi | |
2f1a1aea FCE |
3927 | ac_ext=c |
3928 | ac_cpp='$CPP $CPPFLAGS' | |
3929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3932 | ||
3933 | depcc="$CXX" am_compiler_list= | |
3934 | ||
27aba29a JS |
3935 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3936 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3937 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
27aba29a | 3938 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3939 | else |
3940 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3941 | # We make a subdir and do the tests there. Otherwise we can end up | |
3942 | # making bogus files that we don't know about and never remove. For | |
3943 | # instance it was reported that on HP-UX the gcc test will end up | |
3944 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3945 | # in D'. | |
3946 | mkdir conftest.dir | |
3947 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3948 | # using a relative directory. | |
3949 | cp "$am_depcomp" conftest.dir | |
3950 | cd conftest.dir | |
3951 | # We will build objects and dependencies in a subdirectory because | |
3952 | # it helps to detect inapplicable dependency modes. For instance | |
3953 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3954 | # side effect of compilation, but ICC will put the dependencies in | |
3955 | # the current directory while Tru64 will put them in the object | |
3956 | # directory. | |
3957 | mkdir sub | |
3958 | ||
3959 | am_cv_CXX_dependencies_compiler_type=none | |
3960 | if test "$am_compiler_list" = ""; then | |
3961 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3962 | fi | |
3963 | for depmode in $am_compiler_list; do | |
3964 | # Setup a source with many dependencies, because some compilers | |
3965 | # like to wrap large dependency lists on column 80 (with \), and | |
3966 | # we should not choose a depcomp mode which is confused by this. | |
3967 | # | |
3968 | # We need to recreate these files for each test, as the compiler may | |
3969 | # overwrite some of them when testing with obscure command lines. | |
3970 | # This happens at least with the AIX C compiler. | |
3971 | : > sub/conftest.c | |
3972 | for i in 1 2 3 4 5 6; do | |
3973 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3974 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3975 | # Solaris 8's {/usr,}/bin/sh. | |
3976 | touch sub/conftst$i.h | |
3977 | done | |
3978 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3979 | ||
3980 | case $depmode in | |
3981 | nosideeffect) | |
3982 | # after this tag, mechanisms are not by side-effect, so they'll | |
3983 | # only be used when explicitly requested | |
3984 | if test "x$enable_dependency_tracking" = xyes; then | |
3985 | continue | |
3986 | else | |
3987 | break | |
3988 | fi | |
3989 | ;; | |
3990 | none) break ;; | |
3991 | esac | |
3992 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3993 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3994 | # handle `-M -o', and we need to detect this. | |
3995 | if depmode=$depmode \ | |
3996 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3997 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3998 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3999 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 4000 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4001 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4002 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4003 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4004 | # icc doesn't choke on unknown options, it will just issue warnings | |
4005 | # or remarks (even with -Werror). So we grep stderr for any message | |
4006 | # that says an option was ignored or not supported. | |
4007 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4008 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4009 | # The diagnosis changed in icc 8.0: | |
4010 | # icc: Command line remark: option '-MP' not supported | |
4011 | if (grep 'ignoring option' conftest.err || | |
4012 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4013 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4014 | break | |
4015 | fi | |
4016 | fi | |
4017 | done | |
4018 | ||
4019 | cd .. | |
4020 | rm -rf conftest.dir | |
4021 | else | |
4022 | am_cv_CXX_dependencies_compiler_type=none | |
4023 | fi | |
4024 | ||
4025 | fi | |
27aba29a JS |
4026 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4027 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
4028 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4029 | ||
7fbd9d09 | 4030 | if |
2f1a1aea FCE |
4031 | test "x$enable_dependency_tracking" != xno \ |
4032 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4033 | am__fastdepCXX_TRUE= | |
4034 | am__fastdepCXX_FALSE='#' | |
4035 | else | |
4036 | am__fastdepCXX_TRUE='#' | |
4037 | am__fastdepCXX_FALSE= | |
4038 | fi | |
4039 | ||
4040 | ||
4041 | ac_ext=c | |
4042 | ac_cpp='$CPP $CPPFLAGS' | |
4043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27aba29a JS |
4046 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4047 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
2f1a1aea FCE |
4048 | # On Suns, sometimes $CPP names a directory. |
4049 | if test -n "$CPP" && test -d "$CPP"; then | |
4050 | CPP= | |
4051 | fi | |
4052 | if test -z "$CPP"; then | |
4053 | if test "${ac_cv_prog_CPP+set}" = set; then | |
27aba29a | 4054 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4055 | else |
4056 | # Double quotes because CPP needs to be expanded | |
4057 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4058 | do | |
4059 | ac_preproc_ok=false | |
4060 | for ac_c_preproc_warn_flag in '' yes | |
4061 | do | |
4062 | # Use a header file that comes with gcc, so configuring glibc | |
4063 | # with a fresh cross-compiler works. | |
4064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4065 | # <limits.h> exists even on freestanding compilers. | |
4066 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4067 | # not just through cpp. "Syntax error" is here to catch this case. | |
4068 | cat >conftest.$ac_ext <<_ACEOF | |
4069 | /* confdefs.h. */ | |
4070 | _ACEOF | |
4071 | cat confdefs.h >>conftest.$ac_ext | |
4072 | cat >>conftest.$ac_ext <<_ACEOF | |
4073 | /* end confdefs.h. */ | |
4074 | #ifdef __STDC__ | |
4075 | # include <limits.h> | |
4076 | #else | |
4077 | # include <assert.h> | |
4078 | #endif | |
4079 | Syntax error | |
4080 | _ACEOF | |
7fbd9d09 FCE |
4081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4082 | case "(($ac_try" in | |
4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4084 | *) ac_try_echo=$ac_try;; | |
4085 | esac | |
27aba29a JS |
4086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4087 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4088 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4089 | ac_status=$? |
4090 | grep -v '^ *+' conftest.er1 >conftest.err | |
4091 | rm -f conftest.er1 | |
4092 | cat conftest.err >&5 | |
27aba29a | 4093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4094 | (exit $ac_status); } >/dev/null && { |
4095 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4096 | test ! -s conftest.err | |
4097 | }; then | |
2f1a1aea FCE |
4098 | : |
4099 | else | |
27aba29a | 4100 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4101 | sed 's/^/| /' conftest.$ac_ext >&5 |
4102 | ||
4103 | # Broken: fails on valid input. | |
4104 | continue | |
4105 | fi | |
7fbd9d09 | 4106 | |
2f1a1aea FCE |
4107 | rm -f conftest.err conftest.$ac_ext |
4108 | ||
7fbd9d09 | 4109 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4110 | # can be detected and how. |
4111 | cat >conftest.$ac_ext <<_ACEOF | |
4112 | /* confdefs.h. */ | |
4113 | _ACEOF | |
4114 | cat confdefs.h >>conftest.$ac_ext | |
4115 | cat >>conftest.$ac_ext <<_ACEOF | |
4116 | /* end confdefs.h. */ | |
4117 | #include <ac_nonexistent.h> | |
4118 | _ACEOF | |
7fbd9d09 FCE |
4119 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4120 | case "(($ac_try" in | |
4121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4122 | *) ac_try_echo=$ac_try;; | |
4123 | esac | |
27aba29a JS |
4124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4125 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4126 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4127 | ac_status=$? |
4128 | grep -v '^ *+' conftest.er1 >conftest.err | |
4129 | rm -f conftest.er1 | |
4130 | cat conftest.err >&5 | |
27aba29a | 4131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4132 | (exit $ac_status); } >/dev/null && { |
4133 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4134 | test ! -s conftest.err | |
4135 | }; then | |
2f1a1aea FCE |
4136 | # Broken: success on invalid input. |
4137 | continue | |
4138 | else | |
27aba29a | 4139 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4140 | sed 's/^/| /' conftest.$ac_ext >&5 |
4141 | ||
4142 | # Passes both tests. | |
4143 | ac_preproc_ok=: | |
4144 | break | |
4145 | fi | |
7fbd9d09 | 4146 | |
2f1a1aea FCE |
4147 | rm -f conftest.err conftest.$ac_ext |
4148 | ||
4149 | done | |
4150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4151 | rm -f conftest.err conftest.$ac_ext | |
4152 | if $ac_preproc_ok; then | |
4153 | break | |
4154 | fi | |
4155 | ||
4156 | done | |
4157 | ac_cv_prog_CPP=$CPP | |
4158 | ||
4159 | fi | |
4160 | CPP=$ac_cv_prog_CPP | |
4161 | else | |
4162 | ac_cv_prog_CPP=$CPP | |
4163 | fi | |
27aba29a JS |
4164 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
4165 | $as_echo "$CPP" >&6; } | |
2f1a1aea FCE |
4166 | ac_preproc_ok=false |
4167 | for ac_c_preproc_warn_flag in '' yes | |
4168 | do | |
4169 | # Use a header file that comes with gcc, so configuring glibc | |
4170 | # with a fresh cross-compiler works. | |
4171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4172 | # <limits.h> exists even on freestanding compilers. | |
4173 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4174 | # not just through cpp. "Syntax error" is here to catch this case. | |
4175 | cat >conftest.$ac_ext <<_ACEOF | |
4176 | /* confdefs.h. */ | |
4177 | _ACEOF | |
4178 | cat confdefs.h >>conftest.$ac_ext | |
4179 | cat >>conftest.$ac_ext <<_ACEOF | |
4180 | /* end confdefs.h. */ | |
4181 | #ifdef __STDC__ | |
4182 | # include <limits.h> | |
4183 | #else | |
4184 | # include <assert.h> | |
4185 | #endif | |
4186 | Syntax error | |
4187 | _ACEOF | |
7fbd9d09 FCE |
4188 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4189 | case "(($ac_try" in | |
4190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4191 | *) ac_try_echo=$ac_try;; | |
4192 | esac | |
27aba29a JS |
4193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4194 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4195 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4196 | ac_status=$? |
4197 | grep -v '^ *+' conftest.er1 >conftest.err | |
4198 | rm -f conftest.er1 | |
4199 | cat conftest.err >&5 | |
27aba29a | 4200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4201 | (exit $ac_status); } >/dev/null && { |
4202 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4203 | test ! -s conftest.err | |
4204 | }; then | |
2f1a1aea FCE |
4205 | : |
4206 | else | |
27aba29a | 4207 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
4209 | ||
4210 | # Broken: fails on valid input. | |
4211 | continue | |
4212 | fi | |
7fbd9d09 | 4213 | |
2f1a1aea FCE |
4214 | rm -f conftest.err conftest.$ac_ext |
4215 | ||
7fbd9d09 | 4216 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4217 | # can be detected and how. |
4218 | cat >conftest.$ac_ext <<_ACEOF | |
4219 | /* confdefs.h. */ | |
4220 | _ACEOF | |
4221 | cat confdefs.h >>conftest.$ac_ext | |
4222 | cat >>conftest.$ac_ext <<_ACEOF | |
4223 | /* end confdefs.h. */ | |
4224 | #include <ac_nonexistent.h> | |
4225 | _ACEOF | |
7fbd9d09 FCE |
4226 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4227 | case "(($ac_try" in | |
4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4229 | *) ac_try_echo=$ac_try;; | |
4230 | esac | |
27aba29a JS |
4231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4232 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4233 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4234 | ac_status=$? |
4235 | grep -v '^ *+' conftest.er1 >conftest.err | |
4236 | rm -f conftest.er1 | |
4237 | cat conftest.err >&5 | |
27aba29a | 4238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4239 | (exit $ac_status); } >/dev/null && { |
4240 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4241 | test ! -s conftest.err | |
4242 | }; then | |
2f1a1aea FCE |
4243 | # Broken: success on invalid input. |
4244 | continue | |
4245 | else | |
27aba29a | 4246 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
4248 | ||
4249 | # Passes both tests. | |
4250 | ac_preproc_ok=: | |
4251 | break | |
4252 | fi | |
7fbd9d09 | 4253 | |
2f1a1aea FCE |
4254 | rm -f conftest.err conftest.$ac_ext |
4255 | ||
4256 | done | |
4257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4258 | rm -f conftest.err conftest.$ac_ext | |
4259 | if $ac_preproc_ok; then | |
4260 | : | |
4261 | else | |
27aba29a JS |
4262 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4264 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2f1a1aea | 4265 | See \`config.log' for more details." >&5 |
27aba29a | 4266 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2f1a1aea | 4267 | See \`config.log' for more details." >&2;} |
27aba29a | 4268 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4269 | fi |
4270 | ||
4271 | ac_ext=c | |
4272 | ac_cpp='$CPP $CPPFLAGS' | |
4273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4276 | ||
4277 | ac_ext=c | |
4278 | ac_cpp='$CPP $CPPFLAGS' | |
4279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4282 | if test -n "$ac_tool_prefix"; then | |
4283 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4284 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
27aba29a JS |
4285 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4286 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4287 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4288 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4289 | else |
4290 | if test -n "$CC"; then | |
4291 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4292 | else | |
4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4294 | for as_dir in $PATH | |
4295 | do | |
4296 | IFS=$as_save_IFS | |
4297 | test -z "$as_dir" && as_dir=. | |
4298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4300 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
27aba29a | 4301 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4302 | break 2 |
4303 | fi | |
4304 | done | |
4305 | done | |
7fbd9d09 | 4306 | IFS=$as_save_IFS |
2f1a1aea FCE |
4307 | |
4308 | fi | |
4309 | fi | |
4310 | CC=$ac_cv_prog_CC | |
4311 | if test -n "$CC"; then | |
27aba29a JS |
4312 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4313 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4314 | else |
27aba29a JS |
4315 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4316 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4317 | fi |
4318 | ||
7fbd9d09 | 4319 | |
2f1a1aea FCE |
4320 | fi |
4321 | if test -z "$ac_cv_prog_CC"; then | |
4322 | ac_ct_CC=$CC | |
4323 | # Extract the first word of "gcc", so it can be a program name with args. | |
4324 | set dummy gcc; ac_word=$2 | |
27aba29a JS |
4325 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4326 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4327 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 4328 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4329 | else |
4330 | if test -n "$ac_ct_CC"; then | |
4331 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4332 | else | |
4333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4334 | for as_dir in $PATH | |
4335 | do | |
4336 | IFS=$as_save_IFS | |
4337 | test -z "$as_dir" && as_dir=. | |
4338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4340 | ac_cv_prog_ac_ct_CC="gcc" |
27aba29a | 4341 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4342 | break 2 |
4343 | fi | |
4344 | done | |
4345 | done | |
7fbd9d09 | 4346 | IFS=$as_save_IFS |
2f1a1aea FCE |
4347 | |
4348 | fi | |
4349 | fi | |
4350 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4351 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
4352 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4353 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4354 | else |
27aba29a JS |
4355 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4356 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4357 | fi |
4358 | ||
7fbd9d09 FCE |
4359 | if test "x$ac_ct_CC" = x; then |
4360 | CC="" | |
4361 | else | |
4362 | case $cross_compiling:$ac_tool_warned in | |
4363 | yes:) | |
27aba29a JS |
4364 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
4366 | ac_tool_warned=yes ;; |
4367 | esac | |
4368 | CC=$ac_ct_CC | |
4369 | fi | |
2f1a1aea FCE |
4370 | else |
4371 | CC="$ac_cv_prog_CC" | |
4372 | fi | |
4373 | ||
4374 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4375 | if test -n "$ac_tool_prefix"; then |
4376 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4377 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
27aba29a JS |
4378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4379 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4380 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4381 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4382 | else |
4383 | if test -n "$CC"; then | |
4384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4385 | else | |
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4387 | for as_dir in $PATH | |
4388 | do | |
4389 | IFS=$as_save_IFS | |
4390 | test -z "$as_dir" && as_dir=. | |
4391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4393 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
27aba29a | 4394 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4395 | break 2 |
4396 | fi | |
4397 | done | |
4398 | done | |
7fbd9d09 | 4399 | IFS=$as_save_IFS |
2f1a1aea FCE |
4400 | |
4401 | fi | |
4402 | fi | |
4403 | CC=$ac_cv_prog_CC | |
4404 | if test -n "$CC"; then | |
27aba29a JS |
4405 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4406 | $as_echo "$CC" >&6; } | |
818ba2bc | 4407 | else |
27aba29a JS |
4408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4409 | $as_echo "no" >&6; } | |
818ba2bc MW |
4410 | fi |
4411 | ||
818ba2bc | 4412 | |
7fbd9d09 | 4413 | fi |
8ae7a94a FCE |
4414 | fi |
4415 | if test -z "$CC"; then | |
4416 | # Extract the first word of "cc", so it can be a program name with args. | |
4417 | set dummy cc; ac_word=$2 | |
27aba29a JS |
4418 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4419 | $as_echo_n "checking for $ac_word... " >&6; } | |
8ae7a94a | 4420 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4421 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4422 | else |
4423 | if test -n "$CC"; then | |
2f1a1aea FCE |
4424 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4425 | else | |
4426 | ac_prog_rejected=no | |
4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4428 | for as_dir in $PATH | |
4429 | do | |
4430 | IFS=$as_save_IFS | |
4431 | test -z "$as_dir" && as_dir=. | |
4432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4434 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4435 | ac_prog_rejected=yes | |
4436 | continue | |
4437 | fi | |
4438 | ac_cv_prog_CC="cc" | |
27aba29a | 4439 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4440 | break 2 |
4441 | fi | |
4442 | done | |
4443 | done | |
7fbd9d09 | 4444 | IFS=$as_save_IFS |
2f1a1aea FCE |
4445 | |
4446 | if test $ac_prog_rejected = yes; then | |
4447 | # We found a bogon in the path, so make sure we never use it. | |
4448 | set dummy $ac_cv_prog_CC | |
4449 | shift | |
4450 | if test $# != 0; then | |
4451 | # We chose a different compiler from the bogus one. | |
4452 | # However, it has the same basename, so the bogon will be chosen | |
4453 | # first if we set CC to just the basename; use the full file name. | |
4454 | shift | |
4455 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4456 | fi | |
4457 | fi | |
4458 | fi | |
4459 | fi | |
4460 | CC=$ac_cv_prog_CC | |
4461 | if test -n "$CC"; then | |
27aba29a JS |
4462 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4463 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4464 | else |
27aba29a JS |
4465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4466 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4467 | fi |
4468 | ||
7fbd9d09 | 4469 | |
2f1a1aea FCE |
4470 | fi |
4471 | if test -z "$CC"; then | |
4472 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4473 | for ac_prog in cl.exe |
2f1a1aea FCE |
4474 | do |
4475 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4476 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
27aba29a JS |
4477 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4478 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4479 | if test "${ac_cv_prog_CC+set}" = set; then |
27aba29a | 4480 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4481 | else |
4482 | if test -n "$CC"; then | |
4483 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4484 | else | |
4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4486 | for as_dir in $PATH | |
4487 | do | |
4488 | IFS=$as_save_IFS | |
4489 | test -z "$as_dir" && as_dir=. | |
4490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4492 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
27aba29a | 4493 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4494 | break 2 |
4495 | fi | |
4496 | done | |
4497 | done | |
7fbd9d09 | 4498 | IFS=$as_save_IFS |
2f1a1aea FCE |
4499 | |
4500 | fi | |
4501 | fi | |
4502 | CC=$ac_cv_prog_CC | |
4503 | if test -n "$CC"; then | |
27aba29a JS |
4504 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4505 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4506 | else |
27aba29a JS |
4507 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4508 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4509 | fi |
4510 | ||
7fbd9d09 | 4511 | |
2f1a1aea FCE |
4512 | test -n "$CC" && break |
4513 | done | |
4514 | fi | |
4515 | if test -z "$CC"; then | |
4516 | ac_ct_CC=$CC | |
7fbd9d09 | 4517 | for ac_prog in cl.exe |
2f1a1aea FCE |
4518 | do |
4519 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4520 | set dummy $ac_prog; ac_word=$2 | |
27aba29a JS |
4521 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4522 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4523 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
27aba29a | 4524 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4525 | else |
4526 | if test -n "$ac_ct_CC"; then | |
4527 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4528 | else | |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4530 | for as_dir in $PATH | |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
4534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 4535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4536 | ac_cv_prog_ac_ct_CC="$ac_prog" |
27aba29a | 4537 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4538 | break 2 |
4539 | fi | |
4540 | done | |
4541 | done | |
7fbd9d09 | 4542 | IFS=$as_save_IFS |
2f1a1aea FCE |
4543 | |
4544 | fi | |
4545 | fi | |
4546 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4547 | if test -n "$ac_ct_CC"; then | |
27aba29a JS |
4548 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4549 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4550 | else |
27aba29a JS |
4551 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4552 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4553 | fi |
4554 | ||
7fbd9d09 | 4555 | |
2f1a1aea FCE |
4556 | test -n "$ac_ct_CC" && break |
4557 | done | |
4558 | ||
7fbd9d09 FCE |
4559 | if test "x$ac_ct_CC" = x; then |
4560 | CC="" | |
4561 | else | |
4562 | case $cross_compiling:$ac_tool_warned in | |
4563 | yes:) | |
27aba29a JS |
4564 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
4566 | ac_tool_warned=yes ;; |
4567 | esac | |
4568 | CC=$ac_ct_CC | |
4569 | fi | |
2f1a1aea FCE |
4570 | fi |
4571 | ||
4572 | fi | |
4573 | ||
4574 | ||
27aba29a JS |
4575 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4577 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 4578 | See \`config.log' for more details." >&5 |
27aba29a | 4579 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 4580 | See \`config.log' for more details." >&2;} |
27aba29a | 4581 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4582 | |
4583 | # Provide some information about the compiler. | |
27aba29a JS |
4584 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
4585 | set X $ac_compile | |
4586 | ac_compiler=$2 | |
7fbd9d09 FCE |
4587 | { (ac_try="$ac_compiler --version >&5" |
4588 | case "(($ac_try" in | |
4589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4590 | *) ac_try_echo=$ac_try;; | |
4591 | esac | |
27aba29a JS |
4592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4593 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4594 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 4595 | ac_status=$? |
27aba29a | 4596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4597 | (exit $ac_status); } |
7fbd9d09 FCE |
4598 | { (ac_try="$ac_compiler -v >&5" |
4599 | case "(($ac_try" in | |
4600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4601 | *) ac_try_echo=$ac_try;; | |
4602 | esac | |
27aba29a JS |
4603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4604 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4605 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 4606 | ac_status=$? |
27aba29a | 4607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4608 | (exit $ac_status); } |
7fbd9d09 FCE |
4609 | { (ac_try="$ac_compiler -V >&5" |
4610 | case "(($ac_try" in | |
4611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4612 | *) ac_try_echo=$ac_try;; | |
4613 | esac | |
27aba29a JS |
4614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4615 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4616 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 4617 | ac_status=$? |
27aba29a | 4618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
4619 | (exit $ac_status); } |
4620 | ||
27aba29a JS |
4621 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4622 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 4623 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
27aba29a | 4624 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4625 | else |
4626 | cat >conftest.$ac_ext <<_ACEOF | |
4627 | /* confdefs.h. */ | |
4628 | _ACEOF | |
4629 | cat confdefs.h >>conftest.$ac_ext | |
4630 | cat >>conftest.$ac_ext <<_ACEOF | |
4631 | /* end confdefs.h. */ | |
4632 | ||
4633 | int | |
4634 | main () | |
4635 | { | |
4636 | #ifndef __GNUC__ | |
4637 | choke me | |
4638 | #endif | |
4639 | ||
4640 | ; | |
4641 | return 0; | |
4642 | } | |
4643 | _ACEOF | |
4644 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4645 | if { (ac_try="$ac_compile" |
4646 | case "(($ac_try" in | |
4647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4648 | *) ac_try_echo=$ac_try;; | |
4649 | esac | |
27aba29a JS |
4650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4651 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4652 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4653 | ac_status=$? |
4654 | grep -v '^ *+' conftest.er1 >conftest.err | |
4655 | rm -f conftest.er1 | |
4656 | cat conftest.err >&5 | |
27aba29a | 4657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4658 | (exit $ac_status); } && { |
4659 | test -z "$ac_c_werror_flag" || | |
4660 | test ! -s conftest.err | |
4661 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
4662 | ac_compiler_gnu=yes |
4663 | else | |
27aba29a | 4664 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4665 | sed 's/^/| /' conftest.$ac_ext >&5 |
4666 | ||
7fbd9d09 | 4667 | ac_compiler_gnu=no |
2f1a1aea | 4668 | fi |
7fbd9d09 FCE |
4669 | |
4670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
4671 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4672 | ||
4673 | fi | |
27aba29a JS |
4674 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4675 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4676 | if test $ac_compiler_gnu = yes; then | |
4677 | GCC=yes | |
4678 | else | |
4679 | GCC= | |
4680 | fi | |
2f1a1aea FCE |
4681 | ac_test_CFLAGS=${CFLAGS+set} |
4682 | ac_save_CFLAGS=$CFLAGS | |
27aba29a JS |
4683 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4684 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 4685 | if test "${ac_cv_prog_cc_g+set}" = set; then |
27aba29a | 4686 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4687 | else |
7fbd9d09 FCE |
4688 | ac_save_c_werror_flag=$ac_c_werror_flag |
4689 | ac_c_werror_flag=yes | |
4690 | ac_cv_prog_cc_g=no | |
4691 | CFLAGS="-g" | |
4692 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4693 | /* confdefs.h. */ |
4694 | _ACEOF | |
4695 | cat confdefs.h >>conftest.$ac_ext | |
4696 | cat >>conftest.$ac_ext <<_ACEOF | |
4697 | /* end confdefs.h. */ | |
4698 | ||
4699 | int | |
4700 | main () | |
4701 | { | |
4702 | ||
4703 | ; | |
4704 | return 0; | |
4705 | } | |
4706 | _ACEOF | |
4707 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4708 | if { (ac_try="$ac_compile" |
4709 | case "(($ac_try" in | |
4710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4711 | *) ac_try_echo=$ac_try;; | |
4712 | esac | |
27aba29a JS |
4713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4714 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4715 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4716 | ac_status=$? |
4717 | grep -v '^ *+' conftest.er1 >conftest.err | |
4718 | rm -f conftest.er1 | |
4719 | cat conftest.err >&5 | |
27aba29a | 4720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4721 | (exit $ac_status); } && { |
4722 | test -z "$ac_c_werror_flag" || | |
4723 | test ! -s conftest.err | |
4724 | } && test -s conftest.$ac_objext; then | |
4725 | ac_cv_prog_cc_g=yes | |
4726 | else | |
27aba29a | 4727 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
4728 | sed 's/^/| /' conftest.$ac_ext >&5 |
4729 | ||
4730 | CFLAGS="" | |
4731 | cat >conftest.$ac_ext <<_ACEOF | |
4732 | /* confdefs.h. */ | |
4733 | _ACEOF | |
4734 | cat confdefs.h >>conftest.$ac_ext | |
4735 | cat >>conftest.$ac_ext <<_ACEOF | |
4736 | /* end confdefs.h. */ | |
4737 | ||
4738 | int | |
4739 | main () | |
4740 | { | |
4741 | ||
4742 | ; | |
4743 | return 0; | |
4744 | } | |
4745 | _ACEOF | |
4746 | rm -f conftest.$ac_objext | |
4747 | if { (ac_try="$ac_compile" | |
4748 | case "(($ac_try" in | |
4749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4750 | *) ac_try_echo=$ac_try;; | |
4751 | esac | |
27aba29a JS |
4752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4753 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4754 | (eval "$ac_compile") 2>conftest.er1 |
5e0d2ebf | 4755 | ac_status=$? |
7fbd9d09 FCE |
4756 | grep -v '^ *+' conftest.er1 >conftest.err |
4757 | rm -f conftest.er1 | |
4758 | cat conftest.err >&5 | |
27aba29a | 4759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4760 | (exit $ac_status); } && { |
4761 | test -z "$ac_c_werror_flag" || | |
4762 | test ! -s conftest.err | |
4763 | } && test -s conftest.$ac_objext; then | |
4764 | : | |
4765 | else | |
27aba29a | 4766 | $as_echo "$as_me: failed program was:" >&5 |
7fbd9d09 FCE |
4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
4768 | ||
4769 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4770 | CFLAGS="-g" | |
4771 | cat >conftest.$ac_ext <<_ACEOF | |
4772 | /* confdefs.h. */ | |
4773 | _ACEOF | |
4774 | cat confdefs.h >>conftest.$ac_ext | |
4775 | cat >>conftest.$ac_ext <<_ACEOF | |
4776 | /* end confdefs.h. */ | |
4777 | ||
4778 | int | |
4779 | main () | |
4780 | { | |
4781 | ||
4782 | ; | |
4783 | return 0; | |
4784 | } | |
4785 | _ACEOF | |
4786 | rm -f conftest.$ac_objext | |
4787 | if { (ac_try="$ac_compile" | |
4788 | case "(($ac_try" in | |
4789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4790 | *) ac_try_echo=$ac_try;; | |
4791 | esac | |
27aba29a JS |
4792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4793 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4794 | (eval "$ac_compile") 2>conftest.er1 |
5e0d2ebf | 4795 | ac_status=$? |
7fbd9d09 FCE |
4796 | grep -v '^ *+' conftest.er1 >conftest.err |
4797 | rm -f conftest.er1 | |
4798 | cat conftest.err >&5 | |
27aba29a | 4799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4800 | (exit $ac_status); } && { |
4801 | test -z "$ac_c_werror_flag" || | |
4802 | test ! -s conftest.err | |
4803 | } && test -s conftest.$ac_objext; then | |
5e0d2ebf DS |
4804 | ac_cv_prog_cc_g=yes |
4805 | else | |
27aba29a | 4806 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
4807 | sed 's/^/| /' conftest.$ac_ext >&5 |
4808 | ||
7fbd9d09 FCE |
4809 | |
4810 | fi | |
4811 | ||
4812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4813 | fi | |
4814 | ||
4815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5e0d2ebf | 4816 | fi |
7fbd9d09 FCE |
4817 | |
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4819 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4820 | fi |
27aba29a JS |
4821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4822 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
70d28673 DS |
4823 | if test "$ac_test_CFLAGS" = set; then |
4824 | CFLAGS=$ac_save_CFLAGS | |
4825 | elif test $ac_cv_prog_cc_g = yes; then | |
4826 | if test "$GCC" = yes; then | |
4827 | CFLAGS="-g -O2" | |
4828 | else | |
4829 | CFLAGS="-g" | |
4830 | fi | |
4831 | else | |
4832 | if test "$GCC" = yes; then | |
4833 | CFLAGS="-O2" | |
4834 | else | |
4835 | CFLAGS= | |
4836 | fi | |
4837 | fi | |
27aba29a JS |
4838 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4839 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7fbd9d09 | 4840 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
27aba29a | 4841 | $as_echo_n "(cached) " >&6 |
70d28673 | 4842 | else |
7fbd9d09 | 4843 | ac_cv_prog_cc_c89=no |
70d28673 DS |
4844 | ac_save_CC=$CC |
4845 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4846 | /* confdefs.h. */ |
4847 | _ACEOF | |
4848 | cat confdefs.h >>conftest.$ac_ext | |
4849 | cat >>conftest.$ac_ext <<_ACEOF | |
4850 | /* end confdefs.h. */ | |
70d28673 DS |
4851 | #include <stdarg.h> |
4852 | #include <stdio.h> | |
4853 | #include <sys/types.h> | |
4854 | #include <sys/stat.h> | |
4855 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4856 | struct buf { int x; }; | |
4857 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4858 | static char *e (p, i) | |
4859 | char **p; | |
4860 | int i; | |
4861 | { | |
4862 | return p[i]; | |
4863 | } | |
4864 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4865 | { | |
4866 | char *s; | |
4867 | va_list v; | |
4868 | va_start (v,p); | |
4869 | s = g (p, va_arg (v,int)); | |
4870 | va_end (v); | |
4871 | return s; | |
4872 | } | |
4873 | ||
4874 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4875 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4876 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4877 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4878 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4879 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4880 | that's true only with -std. */ |
70d28673 DS |
4881 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4882 | ||
7fbd9d09 FCE |
4883 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4884 | inside strings and character constants. */ | |
4885 | #define FOO(x) 'x' | |
4886 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4887 | ||
70d28673 DS |
4888 | int test (int i, double x); |
4889 | struct s1 {int (*f) (int a);}; | |
4890 | struct s2 {int (*f) (double a);}; | |
4891 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4892 | int argc; | |
4893 | char **argv; | |
2f1a1aea FCE |
4894 | int |
4895 | main () | |
4896 | { | |
70d28673 | 4897 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
4898 | ; |
4899 | return 0; | |
4900 | } | |
4901 | _ACEOF | |
7fbd9d09 FCE |
4902 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4903 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
4904 | do |
4905 | CC="$ac_save_CC $ac_arg" | |
4906 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
4907 | if { (ac_try="$ac_compile" |
4908 | case "(($ac_try" in | |
4909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4910 | *) ac_try_echo=$ac_try;; | |
4911 | esac | |
27aba29a JS |
4912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4913 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 4914 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4915 | ac_status=$? |
4916 | grep -v '^ *+' conftest.er1 >conftest.err | |
4917 | rm -f conftest.er1 | |
4918 | cat conftest.err >&5 | |
27aba29a | 4919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
4920 | (exit $ac_status); } && { |
4921 | test -z "$ac_c_werror_flag" || | |
4922 | test ! -s conftest.err | |
4923 | } && test -s conftest.$ac_objext; then | |
4924 | ac_cv_prog_cc_c89=$ac_arg | |
818ba2bc | 4925 | else |
27aba29a | 4926 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4927 | sed 's/^/| /' conftest.$ac_ext >&5 |
4928 | ||
7fbd9d09 | 4929 | |
2f1a1aea | 4930 | fi |
7fbd9d09 FCE |
4931 | |
4932 | rm -f core conftest.err conftest.$ac_objext | |
4933 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4934 | done |
7fbd9d09 | 4935 | rm -f conftest.$ac_ext |
70d28673 DS |
4936 | CC=$ac_save_CC |
4937 | ||
2f1a1aea | 4938 | fi |
7fbd9d09 FCE |
4939 | # AC_CACHE_VAL |
4940 | case "x$ac_cv_prog_cc_c89" in | |
4941 | x) | |
27aba29a JS |
4942 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
4943 | $as_echo "none needed" >&6; } ;; | |
7fbd9d09 | 4944 | xno) |
27aba29a JS |
4945 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
4946 | $as_echo "unsupported" >&6; } ;; | |
70d28673 | 4947 | *) |
7fbd9d09 | 4948 | CC="$CC $ac_cv_prog_cc_c89" |
27aba29a JS |
4949 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4950 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
70d28673 | 4951 | esac |
2f1a1aea | 4952 | |
2f1a1aea | 4953 | |
2f1a1aea FCE |
4954 | ac_ext=c |
4955 | ac_cpp='$CPP $CPPFLAGS' | |
4956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4959 | ||
4960 | depcc="$CC" am_compiler_list= | |
4961 | ||
27aba29a JS |
4962 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4963 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 4964 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
27aba29a | 4965 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4966 | else |
4967 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4968 | # We make a subdir and do the tests there. Otherwise we can end up | |
4969 | # making bogus files that we don't know about and never remove. For | |
4970 | # instance it was reported that on HP-UX the gcc test will end up | |
4971 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4972 | # in D'. | |
4973 | mkdir conftest.dir | |
4974 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4975 | # using a relative directory. | |
4976 | cp "$am_depcomp" conftest.dir | |
4977 | cd conftest.dir | |
4978 | # We will build objects and dependencies in a subdirectory because | |
4979 | # it helps to detect inapplicable dependency modes. For instance | |
4980 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4981 | # side effect of compilation, but ICC will put the dependencies in | |
4982 | # the current directory while Tru64 will put them in the object | |
4983 | # directory. | |
4984 | mkdir sub | |
4985 | ||
4986 | am_cv_CC_dependencies_compiler_type=none | |
4987 | if test "$am_compiler_list" = ""; then | |
4988 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4989 | fi | |
4990 | for depmode in $am_compiler_list; do | |
4991 | # Setup a source with many dependencies, because some compilers | |
4992 | # like to wrap large dependency lists on column 80 (with \), and | |
4993 | # we should not choose a depcomp mode which is confused by this. | |
4994 | # | |
4995 | # We need to recreate these files for each test, as the compiler may | |
4996 | # overwrite some of them when testing with obscure command lines. | |
4997 | # This happens at least with the AIX C compiler. | |
4998 | : > sub/conftest.c | |
4999 | for i in 1 2 3 4 5 6; do | |
5000 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5001 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5002 | # Solaris 8's {/usr,}/bin/sh. | |
5003 | touch sub/conftst$i.h | |
5004 | done | |
5005 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5006 | ||
5007 | case $depmode in | |
5008 | nosideeffect) | |
5009 | # after this tag, mechanisms are not by side-effect, so they'll | |
5010 | # only be used when explicitly requested | |
5011 | if test "x$enable_dependency_tracking" = xyes; then | |
5012 | continue | |
5013 | else | |
5014 | break | |
5015 | fi | |
5016 | ;; | |
5017 | none) break ;; | |
5018 | esac | |
5019 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5020 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5021 | # handle `-M -o', and we need to detect this. | |
5022 | if depmode=$depmode \ | |
5023 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5024 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5025 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5026 | >/dev/null 2>conftest.err && | |
7fbd9d09 | 5027 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5028 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5029 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5030 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5031 | # icc doesn't choke on unknown options, it will just issue warnings | |
5032 | # or remarks (even with -Werror). So we grep stderr for any message | |
5033 | # that says an option was ignored or not supported. | |
5034 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5035 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5036 | # The diagnosis changed in icc 8.0: | |
5037 | # icc: Command line remark: option '-MP' not supported | |
5038 | if (grep 'ignoring option' conftest.err || | |
5039 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5040 | am_cv_CC_dependencies_compiler_type=$depmode | |
5041 | break | |
5042 | fi | |
5043 | fi | |
5044 | done | |
5045 | ||
5046 | cd .. | |
5047 | rm -rf conftest.dir | |
5048 | else | |
5049 | am_cv_CC_dependencies_compiler_type=none | |
5050 | fi | |
5051 | ||
5052 | fi | |
27aba29a JS |
5053 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5054 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
5055 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5056 | ||
7fbd9d09 | 5057 | if |
2f1a1aea FCE |
5058 | test "x$enable_dependency_tracking" != xno \ |
5059 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5060 | am__fastdepCC_TRUE= | |
5061 | am__fastdepCC_FALSE='#' | |
5062 | else | |
5063 | am__fastdepCC_TRUE='#' | |
5064 | am__fastdepCC_FALSE= | |
5065 | fi | |
5066 | ||
5067 | ||
5068 | ||
5069 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
5070 | ||
8ae7a94a | 5071 | if test "x$CC" != xcc; then |
27aba29a JS |
5072 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
5073 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
8ae7a94a | 5074 | else |
27aba29a JS |
5075 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
5076 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
8ae7a94a | 5077 | fi |
27aba29a | 5078 | set dummy $CC; ac_cc=`$as_echo "$2" | |
8ae7a94a | 5079 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
7fbd9d09 | 5080 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5081 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
5082 | else |
5083 | cat >conftest.$ac_ext <<_ACEOF | |
5084 | /* confdefs.h. */ | |
5085 | _ACEOF | |
5086 | cat confdefs.h >>conftest.$ac_ext | |
5087 | cat >>conftest.$ac_ext <<_ACEOF | |
5088 | /* end confdefs.h. */ | |
5089 | ||
5090 | int | |
5091 | main () | |
5092 | { | |
5093 | ||
5094 | ; | |
5095 | return 0; | |
5096 | } | |
5097 | _ACEOF | |
5098 | # Make sure it works both with $CC and with simple cc. | |
5099 | # We do the test twice because some compilers refuse to overwrite an | |
5100 | # existing .o file with -o, though they will create one. | |
7fbd9d09 FCE |
5101 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5102 | rm -f conftest2.* | |
5103 | if { (case "(($ac_try" in | |
5104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5105 | *) ac_try_echo=$ac_try;; | |
5106 | esac | |
27aba29a JS |
5107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5108 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5109 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5110 | ac_status=$? |
27aba29a | 5111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5112 | (exit $ac_status); } && |
7fbd9d09 FCE |
5113 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5115 | *) ac_try_echo=$ac_try;; | |
5116 | esac | |
27aba29a JS |
5117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5118 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5119 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5120 | ac_status=$? |
27aba29a | 5121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5122 | (exit $ac_status); }; |
5123 | then | |
5124 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5125 | if test "x$CC" != xcc; then | |
5126 | # Test first that cc exists at all. | |
5127 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
7fbd9d09 FCE |
5128 | { (case "(($ac_try" in |
5129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5130 | *) ac_try_echo=$ac_try;; | |
5131 | esac | |
27aba29a JS |
5132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5133 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5134 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5135 | ac_status=$? |
27aba29a | 5136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5137 | (exit $ac_status); }; }; then |
7fbd9d09 FCE |
5138 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5139 | rm -f conftest2.* | |
5140 | if { (case "(($ac_try" in | |
5141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5142 | *) ac_try_echo=$ac_try;; | |
5143 | esac | |
27aba29a JS |
5144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5145 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5146 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5147 | ac_status=$? |
27aba29a | 5148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5149 | (exit $ac_status); } && |
7fbd9d09 FCE |
5150 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5152 | *) ac_try_echo=$ac_try;; | |
5153 | esac | |
27aba29a JS |
5154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5155 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5156 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5157 | ac_status=$? |
27aba29a | 5158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5159 | (exit $ac_status); }; |
5160 | then | |
5161 | # cc works too. | |
5162 | : | |
5163 | else | |
5164 | # cc exists but doesn't like -o. | |
5165 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5166 | fi | |
5167 | fi | |
5168 | fi | |
5169 | else | |
5170 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5171 | fi | |
7fbd9d09 | 5172 | rm -f core conftest* |
8ae7a94a FCE |
5173 | |
5174 | fi | |
7fbd9d09 | 5175 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
27aba29a JS |
5176 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5177 | $as_echo "yes" >&6; } | |
8ae7a94a | 5178 | else |
27aba29a JS |
5179 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5180 | $as_echo "no" >&6; } | |
8ae7a94a FCE |
5181 | |
5182 | cat >>confdefs.h <<\_ACEOF | |
5183 | #define NO_MINUS_C_MINUS_O 1 | |
5184 | _ACEOF | |
5185 | ||
5186 | fi | |
5187 | ||
5188 | # FIXME: we rely on the cache variable name because | |
5189 | # there is no other way. | |
5190 | set dummy $CC | |
5191 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5192 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
5193 | # Losing compiler, so override with the script. | |
5194 | # FIXME: It is wrong to rewrite CC. | |
5195 | # But if we don't then we get into trouble of one sort or another. | |
5196 | # A longer-term fix would be to have automake use am__CC in this case, | |
5197 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5198 | CC="$am_aux_dir/compile $CC" | |
5199 | fi | |
5200 | ||
7fbd9d09 | 5201 | |
27aba29a JS |
5202 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
5203 | $as_echo_n "checking for function prototypes... " >&6; } | |
7fbd9d09 | 5204 | if test "$ac_cv_prog_cc_c89" != no; then |
27aba29a JS |
5205 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5206 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5207 | |
5208 | cat >>confdefs.h <<\_ACEOF | |
5209 | #define PROTOTYPES 1 | |
5210 | _ACEOF | |
5211 | ||
5212 | ||
5213 | cat >>confdefs.h <<\_ACEOF | |
5214 | #define __PROTOTYPES 1 | |
5215 | _ACEOF | |
5216 | ||
5217 | else | |
27aba29a JS |
5218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5219 | $as_echo "no" >&6; } | |
7fbd9d09 FCE |
5220 | fi |
5221 | ||
5222 | ||
5223 | ||
27aba29a JS |
5224 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
5225 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7fbd9d09 | 5226 | if test "${ac_cv_path_GREP+set}" = set; then |
27aba29a | 5227 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 5228 | else |
27aba29a | 5229 | if test -z "$GREP"; then |
7fbd9d09 | 5230 | ac_path_GREP_found=false |
27aba29a JS |
5231 | # Loop through the user's path and test for each of PROGNAME-LIST |
5232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5233 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5234 | do | |
5235 | IFS=$as_save_IFS | |
5236 | test -z "$as_dir" && as_dir=. | |
5237 | for ac_prog in grep ggrep; do | |
27aba29a JS |
5238 | for ac_exec_ext in '' $ac_executable_extensions; do |
5239 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5240 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5241 | # Check for GNU ac_path_GREP and select it if it is found. | |
7fbd9d09 FCE |
5242 | # Check for GNU $ac_path_GREP |
5243 | case `"$ac_path_GREP" --version 2>&1` in | |
5244 | *GNU*) | |
5245 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5246 | *) | |
5247 | ac_count=0 | |
27aba29a | 5248 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5249 | while : |
5250 | do | |
5251 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5252 | mv "conftest.tmp" "conftest.in" | |
5253 | cp "conftest.in" "conftest.nl" | |
27aba29a | 5254 | $as_echo 'GREP' >> "conftest.nl" |
7fbd9d09 FCE |
5255 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5256 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5257 | ac_count=`expr $ac_count + 1` | |
5258 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5259 | # Best one so far, save it but keep looking for a better one | |
5260 | ac_cv_path_GREP="$ac_path_GREP" | |
5261 | ac_path_GREP_max=$ac_count | |
5262 | fi | |
5263 | # 10*(2^10) chars as input seems more than enough | |
5264 | test $ac_count -gt 10 && break | |
5265 | done | |
5266 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5267 | esac | |
5268 | ||
27aba29a JS |
5269 | $ac_path_GREP_found && break 3 |
5270 | done | |
7fbd9d09 FCE |
5271 | done |
5272 | done | |
7fbd9d09 | 5273 | IFS=$as_save_IFS |
27aba29a JS |
5274 | if test -z "$ac_cv_path_GREP"; then |
5275 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5276 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7fbd9d09 | 5277 | { (exit 1); exit 1; }; } |
27aba29a | 5278 | fi |
7fbd9d09 FCE |
5279 | else |
5280 | ac_cv_path_GREP=$GREP | |
70d28673 DS |
5281 | fi |
5282 | ||
7fbd9d09 | 5283 | fi |
27aba29a JS |
5284 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
5285 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7fbd9d09 FCE |
5286 | GREP="$ac_cv_path_GREP" |
5287 | ||
70d28673 | 5288 | |
27aba29a JS |
5289 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
5290 | $as_echo_n "checking for egrep... " >&6; } | |
7fbd9d09 | 5291 | if test "${ac_cv_path_EGREP+set}" = set; then |
27aba29a | 5292 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
5293 | else |
5294 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5295 | then ac_cv_path_EGREP="$GREP -E" | |
5296 | else | |
27aba29a | 5297 | if test -z "$EGREP"; then |
7fbd9d09 | 5298 | ac_path_EGREP_found=false |
27aba29a JS |
5299 | # Loop through the user's path and test for each of PROGNAME-LIST |
5300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7fbd9d09 FCE |
5301 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5302 | do | |
5303 | IFS=$as_save_IFS | |
5304 | test -z "$as_dir" && as_dir=. | |
5305 | for ac_prog in egrep; do | |
27aba29a JS |
5306 | for ac_exec_ext in '' $ac_executable_extensions; do |
5307 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5308 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5309 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7fbd9d09 FCE |
5310 | # Check for GNU $ac_path_EGREP |
5311 | case `"$ac_path_EGREP" --version 2>&1` in | |
5312 | *GNU*) | |
5313 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5314 | *) | |
5315 | ac_count=0 | |
27aba29a | 5316 | $as_echo_n 0123456789 >"conftest.in" |
7fbd9d09 FCE |
5317 | while : |
5318 | do | |
5319 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5320 | mv "conftest.tmp" "conftest.in" | |
5321 | cp "conftest.in" "conftest.nl" | |
27aba29a | 5322 | $as_echo 'EGREP' >> "conftest.nl" |
7fbd9d09 FCE |
5323 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5324 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5325 | ac_count=`expr $ac_count + 1` | |
5326 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5327 | # Best one so far, save it but keep looking for a better one | |
5328 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5329 | ac_path_EGREP_max=$ac_count | |
2f1a1aea | 5330 | fi |
7fbd9d09 FCE |
5331 | # 10*(2^10) chars as input seems more than enough |
5332 | test $ac_count -gt 10 && break | |
5333 | done | |
5334 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5335 | esac | |
5336 | ||
27aba29a JS |
5337 | $ac_path_EGREP_found && break 3 |
5338 | done | |
7fbd9d09 FCE |
5339 | done |
5340 | done | |
7fbd9d09 | 5341 | IFS=$as_save_IFS |
27aba29a JS |
5342 | if test -z "$ac_cv_path_EGREP"; then |
5343 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5344 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7fbd9d09 | 5345 | { (exit 1); exit 1; }; } |
27aba29a | 5346 | fi |
7fbd9d09 FCE |
5347 | else |
5348 | ac_cv_path_EGREP=$EGREP | |
5349 | fi | |
5350 | ||
7fbd9d09 | 5351 | fi |
2f1a1aea | 5352 | fi |
27aba29a JS |
5353 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5354 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7fbd9d09 | 5355 | EGREP="$ac_cv_path_EGREP" |
2f1a1aea FCE |
5356 | |
5357 | ||
27aba29a JS |
5358 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5359 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
2f1a1aea | 5360 | if test "${ac_cv_header_stdc+set}" = set; then |
27aba29a | 5361 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5362 | else |
5363 | cat >conftest.$ac_ext <<_ACEOF | |
5364 | /* confdefs.h. */ | |
5365 | _ACEOF | |
5366 | cat confdefs.h >>conftest.$ac_ext | |
5367 | cat >>conftest.$ac_ext <<_ACEOF | |
5368 | /* end confdefs.h. */ | |
5369 | #include <stdlib.h> | |
5370 | #include <stdarg.h> | |
5371 | #include <string.h> | |
5372 | #include <float.h> | |
5373 | ||
5374 | int | |
5375 | main () | |
5376 | { | |
5377 | ||
5378 | ; | |
5379 | return 0; | |
5380 | } | |
5381 | _ACEOF | |
5382 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5383 | if { (ac_try="$ac_compile" |
5384 | case "(($ac_try" in | |
5385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5386 | *) ac_try_echo=$ac_try;; | |
5387 | esac | |
27aba29a JS |
5388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5389 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5390 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5391 | ac_status=$? |
5392 | grep -v '^ *+' conftest.er1 >conftest.err | |
5393 | rm -f conftest.er1 | |
5394 | cat conftest.err >&5 | |
27aba29a | 5395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5396 | (exit $ac_status); } && { |
5397 | test -z "$ac_c_werror_flag" || | |
5398 | test ! -s conftest.err | |
5399 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5400 | ac_cv_header_stdc=yes |
5401 | else | |
27aba29a | 5402 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5403 | sed 's/^/| /' conftest.$ac_ext >&5 |
5404 | ||
7fbd9d09 | 5405 | ac_cv_header_stdc=no |
2f1a1aea | 5406 | fi |
7fbd9d09 FCE |
5407 | |
5408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
5409 | |
5410 | if test $ac_cv_header_stdc = yes; then | |
5411 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5412 | cat >conftest.$ac_ext <<_ACEOF | |
5413 | /* confdefs.h. */ | |
5414 | _ACEOF | |
5415 | cat confdefs.h >>conftest.$ac_ext | |
5416 | cat >>conftest.$ac_ext <<_ACEOF | |
5417 | /* end confdefs.h. */ | |
5418 | #include <string.h> | |
5419 | ||
5420 | _ACEOF | |
5421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5422 | $EGREP "memchr" >/dev/null 2>&1; then | |
5423 | : | |
5424 | else | |
5425 | ac_cv_header_stdc=no | |
5426 | fi | |
5427 | rm -f conftest* | |
5428 | ||
5429 | fi | |
5430 | ||
5431 | if test $ac_cv_header_stdc = yes; then | |
5432 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5433 | cat >conftest.$ac_ext <<_ACEOF | |
5434 | /* confdefs.h. */ | |
5435 | _ACEOF | |
5436 | cat confdefs.h >>conftest.$ac_ext | |
5437 | cat >>conftest.$ac_ext <<_ACEOF | |
5438 | /* end confdefs.h. */ | |
5439 | #include <stdlib.h> | |
5440 | ||
5441 | _ACEOF | |
5442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5443 | $EGREP "free" >/dev/null 2>&1; then | |
5444 | : | |
5445 | else | |
5446 | ac_cv_header_stdc=no | |
5447 | fi | |
5448 | rm -f conftest* | |
5449 | ||
5450 | fi | |
5451 | ||
5452 | if test $ac_cv_header_stdc = yes; then | |
5453 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5454 | if test "$cross_compiling" = yes; then | |
5455 | : | |
5456 | else | |
5457 | cat >conftest.$ac_ext <<_ACEOF | |
5458 | /* confdefs.h. */ | |
5459 | _ACEOF | |
5460 | cat confdefs.h >>conftest.$ac_ext | |
5461 | cat >>conftest.$ac_ext <<_ACEOF | |
5462 | /* end confdefs.h. */ | |
5463 | #include <ctype.h> | |
7fbd9d09 | 5464 | #include <stdlib.h> |
2f1a1aea FCE |
5465 | #if ((' ' & 0x0FF) == 0x020) |
5466 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5467 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5468 | #else | |
5469 | # define ISLOWER(c) \ | |
5470 | (('a' <= (c) && (c) <= 'i') \ | |
5471 | || ('j' <= (c) && (c) <= 'r') \ | |
5472 | || ('s' <= (c) && (c) <= 'z')) | |
5473 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5474 | #endif | |
5475 | ||
5476 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5477 | int | |
5478 | main () | |
5479 | { | |
5480 | int i; | |
5481 | for (i = 0; i < 256; i++) | |
5482 | if (XOR (islower (i), ISLOWER (i)) | |
5483 | || toupper (i) != TOUPPER (i)) | |
7fbd9d09 FCE |
5484 | return 2; |
5485 | return 0; | |
2f1a1aea FCE |
5486 | } |
5487 | _ACEOF | |
5488 | rm -f conftest$ac_exeext | |
7fbd9d09 FCE |
5489 | if { (ac_try="$ac_link" |
5490 | case "(($ac_try" in | |
5491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5492 | *) ac_try_echo=$ac_try;; | |
5493 | esac | |
27aba29a JS |
5494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5495 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5496 | (eval "$ac_link") 2>&5 |
2f1a1aea | 5497 | ac_status=$? |
27aba29a | 5498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 5499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7fbd9d09 FCE |
5500 | { (case "(($ac_try" in |
5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5502 | *) ac_try_echo=$ac_try;; | |
5503 | esac | |
27aba29a JS |
5504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5505 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5506 | (eval "$ac_try") 2>&5 |
2f1a1aea | 5507 | ac_status=$? |
27aba29a | 5508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
5509 | (exit $ac_status); }; }; then |
5510 | : | |
5511 | else | |
27aba29a JS |
5512 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5513 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
5514 | sed 's/^/| /' conftest.$ac_ext >&5 |
5515 | ||
5516 | ( exit $ac_status ) | |
5517 | ac_cv_header_stdc=no | |
5518 | fi | |
27aba29a | 5519 | rm -rf conftest.dSYM |
7fbd9d09 | 5520 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 5521 | fi |
7fbd9d09 FCE |
5522 | |
5523 | ||
2f1a1aea FCE |
5524 | fi |
5525 | fi | |
27aba29a JS |
5526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5527 | $as_echo "$ac_cv_header_stdc" >&6; } | |
2f1a1aea FCE |
5528 | if test $ac_cv_header_stdc = yes; then |
5529 | ||
5530 | cat >>confdefs.h <<\_ACEOF | |
5531 | #define STDC_HEADERS 1 | |
5532 | _ACEOF | |
5533 | ||
5534 | fi | |
5535 | ||
5536 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5547 | inttypes.h stdint.h unistd.h | |
5548 | do | |
27aba29a JS |
5549 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5550 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5551 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5553 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5554 | else |
5555 | cat >conftest.$ac_ext <<_ACEOF | |
5556 | /* confdefs.h. */ | |
5557 | _ACEOF | |
5558 | cat confdefs.h >>conftest.$ac_ext | |
5559 | cat >>conftest.$ac_ext <<_ACEOF | |
5560 | /* end confdefs.h. */ | |
5561 | $ac_includes_default | |
5562 | ||
5563 | #include <$ac_header> | |
5564 | _ACEOF | |
5565 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5566 | if { (ac_try="$ac_compile" |
5567 | case "(($ac_try" in | |
5568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5569 | *) ac_try_echo=$ac_try;; | |
5570 | esac | |
27aba29a JS |
5571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5572 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5573 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5574 | ac_status=$? |
5575 | grep -v '^ *+' conftest.er1 >conftest.err | |
5576 | rm -f conftest.er1 | |
5577 | cat conftest.err >&5 | |
27aba29a | 5578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5579 | (exit $ac_status); } && { |
5580 | test -z "$ac_c_werror_flag" || | |
5581 | test ! -s conftest.err | |
5582 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5583 | eval "$as_ac_Header=yes" |
5584 | else | |
27aba29a | 5585 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
5587 | ||
7fbd9d09 | 5588 | eval "$as_ac_Header=no" |
2f1a1aea | 5589 | fi |
7fbd9d09 FCE |
5590 | |
5591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 5592 | fi |
27aba29a JS |
5593 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5594 | $as_echo "$as_val"'` | |
5595 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5596 | $as_echo "$ac_res" >&6; } | |
5597 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5598 | $as_echo "$as_val"'` | |
5599 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5600 | cat >>confdefs.h <<_ACEOF |
27aba29a | 5601 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5602 | _ACEOF |
5603 | ||
5604 | fi | |
5605 | ||
5606 | done | |
5607 | ||
5608 | ||
5609 | ||
5610 | if test "$ac_cv_prog_cc_stdc" != no; then | |
5611 | U= ANSI2KNR= | |
5612 | else | |
5613 | U=_ ANSI2KNR=./ansi2knr | |
5614 | fi | |
5615 | # Ensure some checks needed by ansi2knr itself. | |
5616 | ||
5617 | ||
5618 | for ac_header in string.h | |
5619 | do | |
27aba29a | 5620 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 5621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
5622 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5623 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5624 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5625 | $as_echo_n "(cached) " >&6 |
818ba2bc | 5626 | fi |
27aba29a JS |
5627 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5628 | $as_echo "$as_val"'` | |
5629 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5630 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5631 | else |
5632 | # Is the header compilable? | |
27aba29a JS |
5633 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5634 | $as_echo_n "checking $ac_header usability... " >&6; } | |
2f1a1aea FCE |
5635 | cat >conftest.$ac_ext <<_ACEOF |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
5641 | $ac_includes_default | |
5642 | #include <$ac_header> | |
5643 | _ACEOF | |
5644 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
5645 | if { (ac_try="$ac_compile" |
5646 | case "(($ac_try" in | |
5647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5648 | *) ac_try_echo=$ac_try;; | |
5649 | esac | |
27aba29a JS |
5650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5651 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5652 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5653 | ac_status=$? |
5654 | grep -v '^ *+' conftest.er1 >conftest.err | |
5655 | rm -f conftest.er1 | |
5656 | cat conftest.err >&5 | |
27aba29a | 5657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5658 | (exit $ac_status); } && { |
5659 | test -z "$ac_c_werror_flag" || | |
5660 | test ! -s conftest.err | |
5661 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5662 | ac_header_compiler=yes |
5663 | else | |
27aba29a | 5664 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5665 | sed 's/^/| /' conftest.$ac_ext >&5 |
5666 | ||
7fbd9d09 | 5667 | ac_header_compiler=no |
2f1a1aea | 5668 | fi |
7fbd9d09 FCE |
5669 | |
5670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
5671 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5672 | $as_echo "$ac_header_compiler" >&6; } | |
2f1a1aea FCE |
5673 | |
5674 | # Is the header present? | |
27aba29a JS |
5675 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5676 | $as_echo_n "checking $ac_header presence... " >&6; } | |
2f1a1aea FCE |
5677 | cat >conftest.$ac_ext <<_ACEOF |
5678 | /* confdefs.h. */ | |
5679 | _ACEOF | |
5680 | cat confdefs.h >>conftest.$ac_ext | |
5681 | cat >>conftest.$ac_ext <<_ACEOF | |
5682 | /* end confdefs.h. */ | |
5683 | #include <$ac_header> | |
5684 | _ACEOF | |
7fbd9d09 FCE |
5685 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5686 | case "(($ac_try" in | |
5687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5688 | *) ac_try_echo=$ac_try;; | |
5689 | esac | |
27aba29a JS |
5690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5691 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 5692 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
5693 | ac_status=$? |
5694 | grep -v '^ *+' conftest.er1 >conftest.err | |
5695 | rm -f conftest.er1 | |
5696 | cat conftest.err >&5 | |
27aba29a | 5697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
5698 | (exit $ac_status); } >/dev/null && { |
5699 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5700 | test ! -s conftest.err | |
5701 | }; then | |
2f1a1aea FCE |
5702 | ac_header_preproc=yes |
5703 | else | |
27aba29a | 5704 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5705 | sed 's/^/| /' conftest.$ac_ext >&5 |
5706 | ||
5707 | ac_header_preproc=no | |
5708 | fi | |
7fbd9d09 | 5709 | |
2f1a1aea | 5710 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
5711 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5712 | $as_echo "$ac_header_preproc" >&6; } | |
2f1a1aea FCE |
5713 | |
5714 | # So? What about this header? | |
5715 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5716 | yes:no: ) | |
27aba29a JS |
5717 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5718 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5719 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5720 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2f1a1aea FCE |
5721 | ac_header_preproc=yes |
5722 | ;; | |
5723 | no:yes:* ) | |
27aba29a JS |
5724 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5725 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5726 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5727 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5728 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5729 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5730 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5731 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5732 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5733 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5734 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5735 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 5736 | ( cat <<\_ASBOX |
2f1a1aea FCE |
5737 | ## ------------------------------------------- ## |
5738 | ## Report this to systemtap@sources.redhat.com ## | |
5739 | ## ------------------------------------------- ## | |
5740 | _ASBOX | |
7fbd9d09 | 5741 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2f1a1aea FCE |
5742 | ;; |
5743 | esac | |
27aba29a JS |
5744 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5745 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 5746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5747 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5748 | else |
5749 | eval "$as_ac_Header=\$ac_header_preproc" | |
5750 | fi | |
27aba29a JS |
5751 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5752 | $as_echo "$as_val"'` | |
5753 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5754 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5755 | |
5756 | fi | |
27aba29a JS |
5757 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5758 | $as_echo "$as_val"'` | |
5759 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5760 | cat >>confdefs.h <<_ACEOF |
27aba29a | 5761 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5762 | _ACEOF |
5763 | ||
5764 | fi | |
5765 | ||
5766 | done | |
5767 | ||
5768 | ||
2f1a1aea FCE |
5769 | if test -n "$ac_tool_prefix"; then |
5770 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5771 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
27aba29a JS |
5772 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5773 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5774 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
27aba29a | 5775 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5776 | else |
5777 | if test -n "$RANLIB"; then | |
5778 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5779 | else | |
5780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5781 | for as_dir in $PATH | |
5782 | do | |
5783 | IFS=$as_save_IFS | |
5784 | test -z "$as_dir" && as_dir=. | |
5785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5787 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
27aba29a | 5788 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5789 | break 2 |
5790 | fi | |
5791 | done | |
5792 | done | |
7fbd9d09 | 5793 | IFS=$as_save_IFS |
2f1a1aea FCE |
5794 | |
5795 | fi | |
5796 | fi | |
5797 | RANLIB=$ac_cv_prog_RANLIB | |
5798 | if test -n "$RANLIB"; then | |
27aba29a JS |
5799 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5800 | $as_echo "$RANLIB" >&6; } | |
2f1a1aea | 5801 | else |
27aba29a JS |
5802 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5803 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5804 | fi |
5805 | ||
7fbd9d09 | 5806 | |
2f1a1aea FCE |
5807 | fi |
5808 | if test -z "$ac_cv_prog_RANLIB"; then | |
5809 | ac_ct_RANLIB=$RANLIB | |
5810 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5811 | set dummy ranlib; ac_word=$2 | |
27aba29a JS |
5812 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5813 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5814 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
27aba29a | 5815 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5816 | else |
5817 | if test -n "$ac_ct_RANLIB"; then | |
5818 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5819 | else | |
5820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5821 | for as_dir in $PATH | |
5822 | do | |
5823 | IFS=$as_save_IFS | |
5824 | test -z "$as_dir" && as_dir=. | |
5825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5827 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
27aba29a | 5828 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5829 | break 2 |
5830 | fi | |
5831 | done | |
5832 | done | |
7fbd9d09 | 5833 | IFS=$as_save_IFS |
2f1a1aea | 5834 | |
2f1a1aea FCE |
5835 | fi |
5836 | fi | |
5837 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5838 | if test -n "$ac_ct_RANLIB"; then | |
27aba29a JS |
5839 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5840 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2f1a1aea | 5841 | else |
27aba29a JS |
5842 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5843 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5844 | fi |
5845 | ||
7fbd9d09 FCE |
5846 | if test "x$ac_ct_RANLIB" = x; then |
5847 | RANLIB=":" | |
5848 | else | |
5849 | case $cross_compiling:$ac_tool_warned in | |
5850 | yes:) | |
27aba29a JS |
5851 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5852 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7fbd9d09 FCE |
5853 | ac_tool_warned=yes ;; |
5854 | esac | |
5855 | RANLIB=$ac_ct_RANLIB | |
5856 | fi | |
2f1a1aea FCE |
5857 | else |
5858 | RANLIB="$ac_cv_prog_RANLIB" | |
5859 | fi | |
5860 | ||
5861 | ||
5862 | ||
5863 | # Find a good install program. We prefer a C program (faster), | |
5864 | # so one script is as good as another. But avoid the broken or | |
5865 | # incompatible versions: | |
5866 | # SysV /etc/install, /usr/sbin/install | |
5867 | # SunOS /usr/etc/install | |
5868 | # IRIX /sbin/install | |
5869 | # AIX /bin/install | |
5870 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5871 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5872 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5873 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5874 | # OS/2's system install, which has a completely different semantic | |
5875 | # ./install, which can be erroneously created by make from ./install.sh. | |
27aba29a JS |
5876 | # Reject install programs that cannot install multiple files. |
5877 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5878 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
5879 | if test -z "$INSTALL"; then |
5880 | if test "${ac_cv_path_install+set}" = set; then | |
27aba29a | 5881 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5882 | else |
5883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5884 | for as_dir in $PATH | |
5885 | do | |
5886 | IFS=$as_save_IFS | |
5887 | test -z "$as_dir" && as_dir=. | |
5888 | # Account for people who put trailing slashes in PATH elements. | |
5889 | case $as_dir/ in | |
5890 | ./ | .// | /cC/* | \ | |
5891 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5892 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5893 | /usr/ucb/* ) ;; | |
5894 | *) | |
5895 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5896 | # Don't use installbsd from OSF since it installs stuff as root | |
5897 | # by default. | |
5898 | for ac_prog in ginstall scoinst install; do | |
5899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 5900 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
5901 | if test $ac_prog = install && |
5902 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5903 | # AIX install. It has an incompatible calling convention. | |
5904 | : | |
5905 | elif test $ac_prog = install && | |
5906 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5907 | # program-specific install script used by HP pwplus--don't use. | |
5908 | : | |
5909 | else | |
27aba29a JS |
5910 | rm -rf conftest.one conftest.two conftest.dir |
5911 | echo one > conftest.one | |
5912 | echo two > conftest.two | |
5913 | mkdir conftest.dir | |
5914 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5915 | test -s conftest.one && test -s conftest.two && | |
5916 | test -s conftest.dir/conftest.one && | |
5917 | test -s conftest.dir/conftest.two | |
5918 | then | |
5919 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5920 | break 3 | |
5921 | fi | |
2f1a1aea FCE |
5922 | fi |
5923 | fi | |
5924 | done | |
5925 | done | |
5926 | ;; | |
5927 | esac | |
27aba29a | 5928 | |
2f1a1aea | 5929 | done |
7fbd9d09 | 5930 | IFS=$as_save_IFS |
2f1a1aea | 5931 | |
27aba29a | 5932 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
5933 | |
5934 | fi | |
5935 | if test "${ac_cv_path_install+set}" = set; then | |
5936 | INSTALL=$ac_cv_path_install | |
5937 | else | |
7fbd9d09 FCE |
5938 | # As a last resort, use the slow shell script. Don't cache a |
5939 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 5940 | # break other packages using the cache if that directory is |
7fbd9d09 | 5941 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
5942 | INSTALL=$ac_install_sh |
5943 | fi | |
5944 | fi | |
27aba29a JS |
5945 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5946 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
5947 | |
5948 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5949 | # It thinks the first close brace ends the variable substitution. | |
5950 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5951 | ||
5952 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5953 | ||
5954 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5955 | ||
27aba29a JS |
5956 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5957 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5958 | set x ${MAKE-make} | |
5959 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7fbd9d09 | 5960 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 5961 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5962 | else |
5963 | cat >conftest.make <<\_ACEOF | |
7fbd9d09 | 5964 | SHELL = /bin/sh |
2f1a1aea | 5965 | all: |
7fbd9d09 | 5966 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
5967 | _ACEOF |
5968 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7fbd9d09 FCE |
5969 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5970 | *@@@%%%=?*=@@@%%%*) | |
5971 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5972 | *) | |
5973 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5974 | esac | |
2f1a1aea FCE |
5975 | rm -f conftest.make |
5976 | fi | |
7fbd9d09 | 5977 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
27aba29a JS |
5978 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5979 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5980 | SET_MAKE= |
5981 | else | |
27aba29a JS |
5982 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5983 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5984 | SET_MAKE="MAKE=${MAKE-make}" |
5985 | fi | |
5986 | ||
5987 | ||
5988 | ||
5989 | ||
7fbd9d09 | 5990 | # Check whether --enable-perfmon was given. |
47dd066d | 5991 | if test "${enable_perfmon+set}" = set; then |
7fbd9d09 | 5992 | enableval=$enable_perfmon; |
564eb0a8 DS |
5993 | if test "$enable_perfmon" != "no"; then |
5994 | CPPFLAGS="$CPPFLAGS -DPERFMON" | |
5995 | LIBS="$LIBS -lpfm" | |
5996 | if test "$enable_perfmon" != "yes"; then | |
5997 | CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include" | |
5998 | LDFLAGS="$LDFLAGS -L$enable_perfmon/lib" | |
5999 | fi | |
47dd066d | 6000 | |
27aba29a JS |
6001 | { $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5 |
6002 | $as_echo_n "checking for pfm_start in -lpfm... " >&6; } | |
47dd066d | 6003 | if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then |
27aba29a | 6004 | $as_echo_n "(cached) " >&6 |
47dd066d WC |
6005 | else |
6006 | ac_check_lib_save_LIBS=$LIBS | |
6007 | LIBS="-lpfm $LIBS" | |
6008 | cat >conftest.$ac_ext <<_ACEOF | |
6009 | /* confdefs.h. */ | |
6010 | _ACEOF | |
6011 | cat confdefs.h >>conftest.$ac_ext | |
6012 | cat >>conftest.$ac_ext <<_ACEOF | |
6013 | /* end confdefs.h. */ | |
6014 | ||
7fbd9d09 FCE |
6015 | /* Override any GCC internal prototype to avoid an error. |
6016 | Use char because int might match the return type of a GCC | |
6017 | builtin and then its argument prototype would still apply. */ | |
47dd066d WC |
6018 | #ifdef __cplusplus |
6019 | extern "C" | |
6020 | #endif | |
47dd066d WC |
6021 | char pfm_start (); |
6022 | int | |
6023 | main () | |
6024 | { | |
7fbd9d09 | 6025 | return pfm_start (); |
47dd066d WC |
6026 | ; |
6027 | return 0; | |
6028 | } | |
6029 | _ACEOF | |
6030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6031 | if { (ac_try="$ac_link" |
6032 | case "(($ac_try" in | |
6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6034 | *) ac_try_echo=$ac_try;; | |
6035 | esac | |
27aba29a JS |
6036 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6037 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6038 | (eval "$ac_link") 2>conftest.er1 |
47dd066d WC |
6039 | ac_status=$? |
6040 | grep -v '^ *+' conftest.er1 >conftest.err | |
6041 | rm -f conftest.er1 | |
6042 | cat conftest.err >&5 | |
27aba29a | 6043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6044 | (exit $ac_status); } && { |
6045 | test -z "$ac_c_werror_flag" || | |
6046 | test ! -s conftest.err | |
27aba29a JS |
6047 | } && test -s conftest$ac_exeext && { |
6048 | test "$cross_compiling" = yes || | |
6049 | $as_test_x conftest$ac_exeext | |
6050 | }; then | |
47dd066d WC |
6051 | ac_cv_lib_pfm_pfm_start=yes |
6052 | else | |
27aba29a | 6053 | $as_echo "$as_me: failed program was:" >&5 |
47dd066d WC |
6054 | sed 's/^/| /' conftest.$ac_ext >&5 |
6055 | ||
7fbd9d09 | 6056 | ac_cv_lib_pfm_pfm_start=no |
47dd066d | 6057 | fi |
7fbd9d09 | 6058 | |
27aba29a | 6059 | rm -rf conftest.dSYM |
7fbd9d09 | 6060 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
47dd066d WC |
6061 | conftest$ac_exeext conftest.$ac_ext |
6062 | LIBS=$ac_check_lib_save_LIBS | |
6063 | fi | |
27aba29a JS |
6064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5 |
6065 | $as_echo "$ac_cv_lib_pfm_pfm_start" >&6; } | |
6066 | if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then | |
47dd066d WC |
6067 | cat >>confdefs.h <<_ACEOF |
6068 | #define HAVE_LIBPFM 1 | |
6069 | _ACEOF | |
6070 | ||
6071 | LIBS="-lpfm $LIBS" | |
6072 | ||
6073 | else | |
6074 | ||
27aba29a JS |
6075 | { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5 |
6076 | $as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;} | |
47dd066d WC |
6077 | { (exit 1); exit 1; }; } |
6078 | fi | |
6079 | ||
564eb0a8 | 6080 | fi |
7fbd9d09 FCE |
6081 | fi |
6082 | ||
70d28673 DS |
6083 | |
6084 | if test "${enable_prologues+set}" != set; then | |
27aba29a JS |
6085 | { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5 |
6086 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } | |
70d28673 DS |
6087 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
6088 | echo ' yes ' | |
6089 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6090 | enable_prologues=yes | |
27aba29a JS |
6091 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6092 | $as_echo "yes" >&6; } | |
70d28673 | 6093 | else |
27aba29a JS |
6094 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6095 | $as_echo "no" >&6; } | |
70d28673 DS |
6096 | fi |
6097 | fi | |
7fbd9d09 | 6098 | # Check whether --enable-prologues was given. |
44f75386 | 6099 | if test "${enable_prologues+set}" = set; then |
7fbd9d09 | 6100 | enableval=$enable_prologues; |
70d28673 | 6101 | if test "$enable_prologues" = yes; then |
44f75386 FCE |
6102 | |
6103 | cat >>confdefs.h <<\_ACEOF | |
27aba29a | 6104 | #define ENABLE_PROLOGUES /**/ |
44f75386 FCE |
6105 | _ACEOF |
6106 | ||
70d28673 | 6107 | fi |
7fbd9d09 | 6108 | fi |
70d28673 | 6109 | |
7fbd9d09 FCE |
6110 | |
6111 | # Check whether --enable-ssp was given. | |
9921a199 | 6112 | if test "${enable_ssp+set}" = set; then |
7fbd9d09 FCE |
6113 | enableval=$enable_ssp; |
6114 | fi | |
9921a199 | 6115 | |
bbfd8c1a FCE |
6116 | if test "x$enable_ssp" != xno; then |
6117 | ||
6118 | save_CFLAGS="$CFLAGS" | |
6119 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
6120 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6121 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a FCE |
6122 | cat >conftest.$ac_ext <<_ACEOF |
6123 | int something (); | |
6124 | _ACEOF | |
6125 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6126 | if { (ac_try="$ac_compile" |
6127 | case "(($ac_try" in | |
6128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6129 | *) ac_try_echo=$ac_try;; | |
6130 | esac | |
27aba29a JS |
6131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6132 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6133 | (eval "$ac_compile") 2>conftest.er1 |
bbfd8c1a FCE |
6134 | ac_status=$? |
6135 | grep -v '^ *+' conftest.er1 >conftest.err | |
6136 | rm -f conftest.er1 | |
6137 | cat conftest.err >&5 | |
27aba29a | 6138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6139 | (exit $ac_status); } && { |
6140 | test -z "$ac_c_werror_flag" || | |
6141 | test ! -s conftest.err | |
6142 | } && test -s conftest.$ac_objext; then | |
818ba2bc | 6143 | |
27aba29a JS |
6144 | { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5 |
6145 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} | |
f0510eaa FCE |
6146 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6147 | CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a | 6148 | else |
27aba29a | 6149 | $as_echo "$as_me: failed program was:" >&5 |
bbfd8c1a FCE |
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
6151 | ||
6152 | ||
27aba29a JS |
6153 | { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5 |
6154 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} | |
bbfd8c1a FCE |
6155 | CFLAGS="$save_CFLAGS" |
6156 | CXXFLAGS="$save_CXXFLAGS" | |
6157 | fi | |
7fbd9d09 FCE |
6158 | |
6159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9921a199 | 6160 | fi |
70d28673 | 6161 | |
42feb3c0 | 6162 | |
e1e3ba36 | 6163 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 6164 | # Check whether --enable-pie was given. |
8730f377 | 6165 | if test "${enable_pie+set}" = set; then |
7fbd9d09 FCE |
6166 | enableval=$enable_pie; |
6167 | fi | |
8730f377 | 6168 | |
e1e3ba36 | 6169 | if test "x$enable_pie" == xyes; then |
8730f377 FCE |
6170 | |
6171 | save_CFLAGS="$CFLAGS" | |
6172 | save_CXXFLAGS="$CXXFLAGS" | |
6173 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
6174 | CFLAGS="$CFLAGS -fPIE" |
6175 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 FCE |
6176 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
6177 | cat >conftest.$ac_ext <<_ACEOF | |
6178 | void main () {} | |
6179 | _ACEOF | |
6180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6181 | if { (ac_try="$ac_link" |
6182 | case "(($ac_try" in | |
6183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6184 | *) ac_try_echo=$ac_try;; | |
6185 | esac | |
27aba29a JS |
6186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6187 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6188 | (eval "$ac_link") 2>conftest.er1 |
8730f377 FCE |
6189 | ac_status=$? |
6190 | grep -v '^ *+' conftest.er1 >conftest.err | |
6191 | rm -f conftest.er1 | |
6192 | cat conftest.err >&5 | |
27aba29a | 6193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6194 | (exit $ac_status); } && { |
6195 | test -z "$ac_c_werror_flag" || | |
6196 | test ! -s conftest.err | |
27aba29a JS |
6197 | } && test -s conftest$ac_exeext && { |
6198 | test "$cross_compiling" = yes || | |
6199 | $as_test_x conftest$ac_exeext | |
6200 | }; then | |
818ba2bc | 6201 | |
27aba29a JS |
6202 | { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5 |
6203 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} | |
8730f377 FCE |
6204 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
6205 | # and interfere with the .so's built therein | |
5574ef2c | 6206 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 6207 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
6208 | PIECFLAGS="$CFLAGS" |
6209 | CFLAGS="$save_CFLAGS" | |
6210 | PIECXXFLAGS="$CXXFLAGS" | |
6211 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
6212 | |
6213 | else | |
27aba29a | 6214 | $as_echo "$as_me: failed program was:" >&5 |
8730f377 FCE |
6215 | sed 's/^/| /' conftest.$ac_ext >&5 |
6216 | ||
6217 | ||
27aba29a JS |
6218 | { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5 |
6219 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} | |
5574ef2c | 6220 | PIECFLAGS="" |
8730f377 | 6221 | CFLAGS="$save_CFLAGS" |
5574ef2c | 6222 | PIECXXFLAGS="" |
8730f377 FCE |
6223 | CXXFLAGS="$save_CXXFLAGS" |
6224 | PIELDFLAGS="" | |
6225 | LDFLAGS="$save_LDFLAGS" | |
6226 | fi | |
7fbd9d09 | 6227 | |
27aba29a | 6228 | rm -rf conftest.dSYM |
7fbd9d09 | 6229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8730f377 FCE |
6230 | conftest$ac_exeext conftest.$ac_ext |
6231 | fi | |
6232 | ||
6233 | ||
6234 | ||
5574ef2c MW |
6235 | |
6236 | ||
7fbd9d09 | 6237 | # Check whether --enable-sqlite was given. |
9921a199 | 6238 | if test "${enable_sqlite+set}" = set; then |
7fbd9d09 | 6239 | enableval=$enable_sqlite; |
9921a199 | 6240 | else |
e8f3c2c2 | 6241 | enable_sqlite=check |
7fbd9d09 FCE |
6242 | fi |
6243 | sqlite3_LIBS= | |
9921a199 | 6244 | if test "x$enable_sqlite" != xno; then |
27aba29a JS |
6245 | { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 |
6246 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } | |
42feb3c0 | 6247 | if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then |
27aba29a | 6248 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
6249 | else |
6250 | ac_check_lib_save_LIBS=$LIBS | |
6251 | LIBS="-lsqlite3 $LIBS" | |
6252 | cat >conftest.$ac_ext <<_ACEOF | |
6253 | /* confdefs.h. */ | |
6254 | _ACEOF | |
6255 | cat confdefs.h >>conftest.$ac_ext | |
6256 | cat >>conftest.$ac_ext <<_ACEOF | |
6257 | /* end confdefs.h. */ | |
6258 | ||
7fbd9d09 FCE |
6259 | /* Override any GCC internal prototype to avoid an error. |
6260 | Use char because int might match the return type of a GCC | |
6261 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
6262 | #ifdef __cplusplus |
6263 | extern "C" | |
6264 | #endif | |
6265 | char sqlite3_open (); | |
6266 | int | |
6267 | main () | |
6268 | { | |
7fbd9d09 | 6269 | return sqlite3_open (); |
42feb3c0 WC |
6270 | ; |
6271 | return 0; | |
6272 | } | |
6273 | _ACEOF | |
6274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6275 | if { (ac_try="$ac_link" |
6276 | case "(($ac_try" in | |
6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6278 | *) ac_try_echo=$ac_try;; | |
6279 | esac | |
27aba29a JS |
6280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6281 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6282 | (eval "$ac_link") 2>conftest.er1 |
42feb3c0 WC |
6283 | ac_status=$? |
6284 | grep -v '^ *+' conftest.er1 >conftest.err | |
6285 | rm -f conftest.er1 | |
6286 | cat conftest.err >&5 | |
27aba29a | 6287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6288 | (exit $ac_status); } && { |
6289 | test -z "$ac_c_werror_flag" || | |
6290 | test ! -s conftest.err | |
27aba29a JS |
6291 | } && test -s conftest$ac_exeext && { |
6292 | test "$cross_compiling" = yes || | |
6293 | $as_test_x conftest$ac_exeext | |
6294 | }; then | |
42feb3c0 WC |
6295 | ac_cv_lib_sqlite3_sqlite3_open=yes |
6296 | else | |
27aba29a | 6297 | $as_echo "$as_me: failed program was:" >&5 |
42feb3c0 WC |
6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
6299 | ||
7fbd9d09 | 6300 | ac_cv_lib_sqlite3_sqlite3_open=no |
42feb3c0 | 6301 | fi |
7fbd9d09 | 6302 | |
27aba29a | 6303 | rm -rf conftest.dSYM |
7fbd9d09 | 6304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
42feb3c0 WC |
6305 | conftest$ac_exeext conftest.$ac_ext |
6306 | LIBS=$ac_check_lib_save_LIBS | |
6307 | fi | |
27aba29a JS |
6308 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
6309 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } | |
6310 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then | |
9921a199 | 6311 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 6312 | |
0d563e60 FCE |
6313 | |
6314 | cat >>confdefs.h <<\_ACEOF | |
07606685 DS |
6315 | #define HAVE_LIBSQLITE3 1 |
6316 | _ACEOF | |
6317 | ||
9921a199 DS |
6318 | else |
6319 | if test "x$enable_sqlite" != xcheck; then | |
27aba29a JS |
6320 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6322 | { { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed | |
9921a199 | 6323 | See \`config.log' for more details." >&5 |
27aba29a | 6324 | $as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed |
9921a199 | 6325 | See \`config.log' for more details." >&2;} |
27aba29a | 6326 | { (exit 1); exit 1; }; }; } |
9921a199 | 6327 | fi |
42feb3c0 WC |
6328 | fi |
6329 | ||
9921a199 | 6330 | fi |
44f75386 | 6331 | |
e6c086bb | 6332 | |
7fbd9d09 | 6333 | # Check whether --enable-crash was given. |
564eb0a8 | 6334 | if test "${enable_crash+set}" = set; then |
7fbd9d09 | 6335 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
6336 | save_CPPFLAGS="$CPPFLAGS" |
6337 | if test "$enable_crash" != "yes"; then | |
6338 | staplog_CPPFLAGS=-I$enable_crash | |
6339 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" | |
6340 | ||
6341 | fi | |
35a04c8e FCE |
6342 | |
6343 | for ac_header in crash/defs.h | |
6344 | do | |
27aba29a JS |
6345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6346 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6347 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6349 | $as_echo_n "(cached) " >&6 |
35a04c8e FCE |
6350 | else |
6351 | cat >conftest.$ac_ext <<_ACEOF | |
6352 | /* confdefs.h. */ | |
6353 | _ACEOF | |
6354 | cat confdefs.h >>conftest.$ac_ext | |
6355 | cat >>conftest.$ac_ext <<_ACEOF | |
6356 | /* end confdefs.h. */ | |
6357 | ||
6358 | #define NR_CPUS 256 | |
6359 | ||
6360 | ||
6361 | #include <$ac_header> | |
6362 | _ACEOF | |
6363 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6364 | if { (ac_try="$ac_compile" |
6365 | case "(($ac_try" in | |
6366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6367 | *) ac_try_echo=$ac_try;; | |
6368 | esac | |
27aba29a JS |
6369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6370 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6371 | (eval "$ac_compile") 2>conftest.er1 |
35a04c8e FCE |
6372 | ac_status=$? |
6373 | grep -v '^ *+' conftest.er1 >conftest.err | |
6374 | rm -f conftest.er1 | |
6375 | cat conftest.err >&5 | |
27aba29a | 6376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6377 | (exit $ac_status); } && { |
6378 | test -z "$ac_c_werror_flag" || | |
6379 | test ! -s conftest.err | |
6380 | } && test -s conftest.$ac_objext; then | |
35a04c8e FCE |
6381 | eval "$as_ac_Header=yes" |
6382 | else | |
27aba29a | 6383 | $as_echo "$as_me: failed program was:" >&5 |
35a04c8e FCE |
6384 | sed 's/^/| /' conftest.$ac_ext >&5 |
6385 | ||
7fbd9d09 | 6386 | eval "$as_ac_Header=no" |
35a04c8e | 6387 | fi |
7fbd9d09 FCE |
6388 | |
6389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
35a04c8e | 6390 | fi |
27aba29a JS |
6391 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6392 | $as_echo "$as_val"'` | |
6393 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6394 | $as_echo "$ac_res" >&6; } | |
6395 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6396 | $as_echo "$as_val"'` | |
6397 | if test "x$as_val" = x""yes; then | |
35a04c8e | 6398 | cat >>confdefs.h <<_ACEOF |
27aba29a | 6399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35a04c8e | 6400 | _ACEOF |
564eb0a8 | 6401 | |
35a04c8e | 6402 | else |
27aba29a JS |
6403 | { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5 |
6404 | $as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;} | |
564eb0a8 | 6405 | { (exit 1); exit 1; }; } |
35a04c8e FCE |
6406 | fi |
6407 | ||
6408 | done | |
6409 | ||
564eb0a8 DS |
6410 | CPPFLAGS="$save_CPPFLAGS" |
6411 | fi | |
6412 | else | |
6413 | enable_crash="no" | |
7fbd9d09 | 6414 | fi |
564eb0a8 | 6415 | |
7fbd9d09 | 6416 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
6417 | BUILD_CRASHMOD_TRUE= |
6418 | BUILD_CRASHMOD_FALSE='#' | |
6419 | else | |
6420 | BUILD_CRASHMOD_TRUE='#' | |
6421 | BUILD_CRASHMOD_FALSE= | |
6422 | fi | |
6423 | ||
6424 | ||
92aff3c7 | 6425 | building_docs="no" |
7fbd9d09 | 6426 | # Check whether --enable-docs was given. |
465e8fbf | 6427 | if test "${enable_docs+set}" = set; then |
7fbd9d09 | 6428 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
6429 | else |
6430 | enable_docs="check" | |
7fbd9d09 FCE |
6431 | fi |
6432 | ||
465e8fbf FCE |
6433 | # Extract the first word of "latex", so it can be a program name with args. |
6434 | set dummy latex; ac_word=$2 | |
27aba29a JS |
6435 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6436 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6437 | if test "${ac_cv_prog_have_latex+set}" = set; then |
27aba29a | 6438 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6439 | else |
6440 | if test -n "$have_latex"; then | |
6441 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
6442 | else | |
6443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6444 | for as_dir in $PATH | |
6445 | do | |
6446 | IFS=$as_save_IFS | |
6447 | test -z "$as_dir" && as_dir=. | |
6448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6450 | ac_cv_prog_have_latex="yes" |
27aba29a | 6451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6452 | break 2 |
6453 | fi | |
6454 | done | |
6455 | done | |
7fbd9d09 | 6456 | IFS=$as_save_IFS |
465e8fbf FCE |
6457 | |
6458 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
6459 | fi | |
6460 | fi | |
6461 | have_latex=$ac_cv_prog_have_latex | |
6462 | if test -n "$have_latex"; then | |
27aba29a JS |
6463 | { $as_echo "$as_me:$LINENO: result: $have_latex" >&5 |
6464 | $as_echo "$have_latex" >&6; } | |
465e8fbf | 6465 | else |
27aba29a JS |
6466 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6467 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6468 | fi |
6469 | ||
7fbd9d09 | 6470 | |
465e8fbf FCE |
6471 | # Extract the first word of "dvips", so it can be a program name with args. |
6472 | set dummy dvips; ac_word=$2 | |
27aba29a JS |
6473 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6474 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6475 | if test "${ac_cv_prog_have_dvips+set}" = set; then |
27aba29a | 6476 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6477 | else |
6478 | if test -n "$have_dvips"; then | |
6479 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
6480 | else | |
6481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6482 | for as_dir in $PATH | |
6483 | do | |
6484 | IFS=$as_save_IFS | |
6485 | test -z "$as_dir" && as_dir=. | |
6486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6488 | ac_cv_prog_have_dvips="yes" |
27aba29a | 6489 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6490 | break 2 |
6491 | fi | |
6492 | done | |
6493 | done | |
7fbd9d09 | 6494 | IFS=$as_save_IFS |
465e8fbf FCE |
6495 | |
6496 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
6497 | fi | |
6498 | fi | |
6499 | have_dvips=$ac_cv_prog_have_dvips | |
6500 | if test -n "$have_dvips"; then | |
27aba29a JS |
6501 | { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5 |
6502 | $as_echo "$have_dvips" >&6; } | |
465e8fbf | 6503 | else |
27aba29a JS |
6504 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6505 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6506 | fi |
6507 | ||
7fbd9d09 | 6508 | |
465e8fbf FCE |
6509 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
6510 | set dummy ps2pdf; ac_word=$2 | |
27aba29a JS |
6511 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6512 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6513 | if test "${ac_cv_prog_have_ps2pdf+set}" = set; then |
27aba29a | 6514 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6515 | else |
6516 | if test -n "$have_ps2pdf"; then | |
6517 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
6518 | else | |
6519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6520 | for as_dir in $PATH | |
6521 | do | |
6522 | IFS=$as_save_IFS | |
6523 | test -z "$as_dir" && as_dir=. | |
6524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6526 | ac_cv_prog_have_ps2pdf="yes" |
27aba29a | 6527 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6528 | break 2 |
6529 | fi | |
6530 | done | |
6531 | done | |
7fbd9d09 | 6532 | IFS=$as_save_IFS |
465e8fbf FCE |
6533 | |
6534 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
6535 | fi | |
6536 | fi | |
6537 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
6538 | if test -n "$have_ps2pdf"; then | |
27aba29a JS |
6539 | { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5 |
6540 | $as_echo "$have_ps2pdf" >&6; } | |
465e8fbf | 6541 | else |
27aba29a JS |
6542 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6543 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6544 | fi |
6545 | ||
7fbd9d09 | 6546 | |
465e8fbf FCE |
6547 | # Extract the first word of "latex2html", so it can be a program name with args. |
6548 | set dummy latex2html; ac_word=$2 | |
27aba29a JS |
6549 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6550 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6551 | if test "${ac_cv_prog_have_latex2html+set}" = set; then |
27aba29a | 6552 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6553 | else |
6554 | if test -n "$have_latex2html"; then | |
6555 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
6556 | else | |
6557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6558 | for as_dir in $PATH | |
6559 | do | |
6560 | IFS=$as_save_IFS | |
6561 | test -z "$as_dir" && as_dir=. | |
6562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 6564 | ac_cv_prog_have_latex2html="yes" |
27aba29a | 6565 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6566 | break 2 |
6567 | fi | |
6568 | done | |
6569 | done | |
7fbd9d09 | 6570 | IFS=$as_save_IFS |
465e8fbf FCE |
6571 | |
6572 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
6573 | fi | |
6574 | fi | |
6575 | have_latex2html=$ac_cv_prog_have_latex2html | |
6576 | if test -n "$have_latex2html"; then | |
27aba29a JS |
6577 | { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5 |
6578 | $as_echo "$have_latex2html" >&6; } | |
465e8fbf | 6579 | else |
27aba29a JS |
6580 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6581 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6582 | fi |
6583 | ||
7fbd9d09 | 6584 | |
2d4b8ddf MW |
6585 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then |
6586 | if test "$enable_docs" == "yes"; then | |
27aba29a JS |
6587 | { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5 |
6588 | $as_echo "$as_me: error: cannot find all tools for building documentation" >&2;} | |
465e8fbf FCE |
6589 | { (exit 1); exit 1; }; } |
6590 | fi | |
2d4b8ddf | 6591 | if test "$enable_docs" == "check"; then |
27aba29a JS |
6592 | { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5 |
6593 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} | |
2d4b8ddf | 6594 | fi |
465e8fbf | 6595 | fi |
92aff3c7 WC |
6596 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
6597 | building_docs="yes" | |
6598 | fi | |
7fbd9d09 | 6599 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
6600 | BUILD_DOCS_TRUE= |
6601 | BUILD_DOCS_FALSE='#' | |
6602 | else | |
6603 | BUILD_DOCS_TRUE='#' | |
6604 | BUILD_DOCS_FALSE= | |
6605 | fi | |
6606 | ||
6607 | ||
92aff3c7 | 6608 | building_refdocs="no" |
7fbd9d09 | 6609 | # Check whether --enable-refdocs was given. |
92aff3c7 | 6610 | if test "${enable_refdocs+set}" = set; then |
7fbd9d09 | 6611 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
6612 | else |
6613 | enable_refdocs="check" | |
7fbd9d09 FCE |
6614 | fi |
6615 | ||
92aff3c7 | 6616 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
27aba29a JS |
6617 | { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5 |
6618 | $as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;} | |
92aff3c7 WC |
6619 | { (exit 1); exit 1; }; } |
6620 | fi | |
6621 | # Extract the first word of "xmlto", so it can be a program name with args. | |
6622 | set dummy xmlto; ac_word=$2 | |
27aba29a JS |
6623 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6624 | $as_echo_n "checking for $ac_word... " >&6; } | |
92aff3c7 | 6625 | if test "${ac_cv_prog_have_xmlto+set}" = set; then |
27aba29a | 6626 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
6627 | else |
6628 | if test -n "$have_xmlto"; then | |
6629 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
6630 | else | |
6631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6632 | for as_dir in $PATH | |
6633 | do | |
6634 | IFS=$as_save_IFS | |
6635 | test -z "$as_dir" && as_dir=. | |
6636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 6637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
92aff3c7 | 6638 | ac_cv_prog_have_xmlto="yes" |
27aba29a | 6639 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
6640 | break 2 |
6641 | fi | |
6642 | done | |
6643 | done | |
7fbd9d09 | 6644 | IFS=$as_save_IFS |
92aff3c7 WC |
6645 | |
6646 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
6647 | fi | |
6648 | fi | |
6649 | have_xmlto=$ac_cv_prog_have_xmlto | |
6650 | if test -n "$have_xmlto"; then | |
27aba29a JS |
6651 | { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5 |
6652 | $as_echo "$have_xmlto" >&6; } | |
92aff3c7 | 6653 | else |
27aba29a JS |
6654 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6655 | $as_echo "no" >&6; } | |
92aff3c7 WC |
6656 | fi |
6657 | ||
7fbd9d09 | 6658 | |
aa5951be | 6659 | if test "x${have_xmlto}" == "xyes"; then |
27aba29a JS |
6660 | { $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5 |
6661 | $as_echo_n "checking for xmlto pdf support... " >&6; } | |
aa5951be WC |
6662 | cat > conftest.$ac_ext << EOF |
6663 | <?xml version="1.0" encoding="UTF-8"?> | |
6664 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
6665 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
6666 | <book id="pdffromxml"> | |
6667 | </book> | |
6668 | EOF | |
6669 | xmlto pdf conftest.$ac_ext >& /dev/null | |
6670 | if test $? == 0; then | |
6671 | have_xmlto_pdf="yes" | |
27aba29a JS |
6672 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6673 | $as_echo "yes" >&6; } | |
aa5951be | 6674 | else |
27aba29a JS |
6675 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6676 | $as_echo "no" >&6; } | |
aa5951be WC |
6677 | fi |
6678 | fi | |
92aff3c7 | 6679 | if test "$enable_refdocs" == "yes"; then |
aa5951be | 6680 | if test "x${have_xmlto}${have_xmlto_pdf}" != "xyesyes"; then |
64e0a05d FCE |
6681 | { { $as_echo "$as_me:$LINENO: error: cannot find proper xmlto for building reference documentation" >&5 |
6682 | $as_echo "$as_me: error: cannot find proper xmlto for building reference documentation" >&2;} | |
92aff3c7 WC |
6683 | { (exit 1); exit 1; }; } |
6684 | fi | |
6685 | fi | |
aa5951be | 6686 | if test "x${have_xmlto}${have_xmlto_pdf}" == "xyesyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then |
92aff3c7 WC |
6687 | building_refdocs="yes" |
6688 | fi | |
7fbd9d09 | 6689 | if test "$building_refdocs" == "yes"; then |
92aff3c7 WC |
6690 | BUILD_REFDOCS_TRUE= |
6691 | BUILD_REFDOCS_FALSE='#' | |
6692 | else | |
6693 | BUILD_REFDOCS_TRUE='#' | |
6694 | BUILD_REFDOCS_FALSE= | |
6695 | fi | |
6696 | ||
6697 | ||
7fbd9d09 | 6698 | # Check whether --enable-server was given. |
19a0d4b6 | 6699 | if test "${enable_server+set}" = set; then |
7fbd9d09 | 6700 | enableval=$enable_server; enable_server=$enableval |
19a0d4b6 MW |
6701 | else |
6702 | enable_server="check" | |
7fbd9d09 FCE |
6703 | fi |
6704 | ||
27aba29a JS |
6705 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5 |
6706 | $as_echo_n "checking for /usr/include/nss3... " >&6; } | |
8ca54d60 | 6707 | if test "${ac_cv_file__usr_include_nss3+set}" = set; then |
27aba29a | 6708 | $as_echo_n "(cached) " >&6 |
43498922 | 6709 | else |
8ca54d60 | 6710 | test "$cross_compiling" = yes && |
27aba29a JS |
6711 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6712 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6713 | { (exit 1); exit 1; }; } |
6714 | if test -r "/usr/include/nss3"; then | |
6715 | ac_cv_file__usr_include_nss3=yes | |
6716 | else | |
6717 | ac_cv_file__usr_include_nss3=no | |
43498922 | 6718 | fi |
8ca54d60 | 6719 | fi |
27aba29a JS |
6720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5 |
6721 | $as_echo "$ac_cv_file__usr_include_nss3" >&6; } | |
6722 | if test "x$ac_cv_file__usr_include_nss3" = x""yes; then | |
8ca54d60 | 6723 | nssdir=nss3 |
43498922 | 6724 | else |
8ca54d60 | 6725 | |
27aba29a JS |
6726 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5 |
6727 | $as_echo_n "checking for /usr/include/nss... " >&6; } | |
8ca54d60 | 6728 | if test "${ac_cv_file__usr_include_nss+set}" = set; then |
27aba29a | 6729 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
6730 | else |
6731 | test "$cross_compiling" = yes && | |
27aba29a JS |
6732 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6733 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6734 | { (exit 1); exit 1; }; } |
6735 | if test -r "/usr/include/nss"; then | |
6736 | ac_cv_file__usr_include_nss=yes | |
6737 | else | |
6738 | ac_cv_file__usr_include_nss=no | |
6739 | fi | |
6740 | fi | |
27aba29a JS |
6741 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5 |
6742 | $as_echo "$ac_cv_file__usr_include_nss" >&6; } | |
6743 | if test "x$ac_cv_file__usr_include_nss" = x""yes; then | |
8ca54d60 | 6744 | nssdir=nss |
43498922 DB |
6745 | fi |
6746 | ||
6747 | ||
6748 | fi | |
8ca54d60 | 6749 | |
27aba29a JS |
6750 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5 |
6751 | $as_echo_n "checking for /usr/include/nspr4... " >&6; } | |
8ca54d60 | 6752 | if test "${ac_cv_file__usr_include_nspr4+set}" = set; then |
27aba29a | 6753 | $as_echo_n "(cached) " >&6 |
43498922 | 6754 | else |
8ca54d60 | 6755 | test "$cross_compiling" = yes && |
27aba29a JS |
6756 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6757 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6758 | { (exit 1); exit 1; }; } |
6759 | if test -r "/usr/include/nspr4"; then | |
6760 | ac_cv_file__usr_include_nspr4=yes | |
43498922 | 6761 | else |
8ca54d60 EB |
6762 | ac_cv_file__usr_include_nspr4=no |
6763 | fi | |
43498922 | 6764 | fi |
27aba29a JS |
6765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5 |
6766 | $as_echo "$ac_cv_file__usr_include_nspr4" >&6; } | |
6767 | if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then | |
8ca54d60 EB |
6768 | nsprdir=nspr4 |
6769 | else | |
43498922 | 6770 | |
27aba29a JS |
6771 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5 |
6772 | $as_echo_n "checking for /usr/include/nspr... " >&6; } | |
8ca54d60 | 6773 | if test "${ac_cv_file__usr_include_nspr+set}" = set; then |
27aba29a | 6774 | $as_echo_n "(cached) " >&6 |
43498922 | 6775 | else |
8ca54d60 | 6776 | test "$cross_compiling" = yes && |
27aba29a JS |
6777 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
6778 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
8ca54d60 EB |
6779 | { (exit 1); exit 1; }; } |
6780 | if test -r "/usr/include/nspr"; then | |
6781 | ac_cv_file__usr_include_nspr=yes | |
6782 | else | |
6783 | ac_cv_file__usr_include_nspr=no | |
43498922 | 6784 | fi |
43498922 | 6785 | fi |
27aba29a JS |
6786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5 |
6787 | $as_echo "$ac_cv_file__usr_include_nspr" >&6; } | |
6788 | if test "x$ac_cv_file__usr_include_nspr" = x""yes; then | |
8ca54d60 EB |
6789 | nsprdir=nspr |
6790 | fi | |
6791 | ||
43498922 DB |
6792 | |
6793 | fi | |
6794 | ||
8ca54d60 EB |
6795 | if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then |
6796 | nss_CFLAGS="-I/usr/include/$nssdir" | |
6797 | nspr_CFLAGS="-I/usr/include/$nsprdir" | |
6798 | ||
6799 | ||
6800 | save_CPPFLAGS="$CPPFLAGS" | |
6801 | CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS" | |
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
19a0d4b6 | 6807 | |
8ca54d60 EB |
6808 | |
6809 | 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" | |
6810 | do | |
27aba29a | 6811 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 6812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
6813 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6814 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6816 | $as_echo_n "(cached) " >&6 |
818ba2bc | 6817 | fi |
27aba29a JS |
6818 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6819 | $as_echo "$as_val"'` | |
6820 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6821 | $as_echo "$ac_res" >&6; } | |
8ca54d60 EB |
6822 | else |
6823 | # Is the header compilable? | |
27aba29a JS |
6824 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6825 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8ca54d60 EB |
6826 | cat >conftest.$ac_ext <<_ACEOF |
6827 | /* confdefs.h. */ | |
6828 | _ACEOF | |
6829 | cat confdefs.h >>conftest.$ac_ext | |
6830 | cat >>conftest.$ac_ext <<_ACEOF | |
6831 | /* end confdefs.h. */ | |
6832 | $ac_includes_default | |
6833 | #include <$ac_header> | |
6834 | _ACEOF | |
6835 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
6836 | if { (ac_try="$ac_compile" |
6837 | case "(($ac_try" in | |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
27aba29a JS |
6841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6842 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6843 | (eval "$ac_compile") 2>conftest.er1 |
43498922 | 6844 | ac_status=$? |
8ca54d60 EB |
6845 | grep -v '^ *+' conftest.er1 >conftest.err |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
27aba29a | 6848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6849 | (exit $ac_status); } && { |
6850 | test -z "$ac_c_werror_flag" || | |
6851 | test ! -s conftest.err | |
6852 | } && test -s conftest.$ac_objext; then | |
8ca54d60 | 6853 | ac_header_compiler=yes |
43498922 | 6854 | else |
27aba29a | 6855 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 EB |
6856 | sed 's/^/| /' conftest.$ac_ext >&5 |
6857 | ||
7fbd9d09 | 6858 | ac_header_compiler=no |
43498922 | 6859 | fi |
7fbd9d09 FCE |
6860 | |
6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
6862 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6863 | $as_echo "$ac_header_compiler" >&6; } | |
8ca54d60 EB |
6864 | |
6865 | # Is the header present? | |
27aba29a JS |
6866 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6867 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8ca54d60 EB |
6868 | cat >conftest.$ac_ext <<_ACEOF |
6869 | /* confdefs.h. */ | |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
6874 | #include <$ac_header> | |
6875 | _ACEOF | |
7fbd9d09 FCE |
6876 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6877 | case "(($ac_try" in | |
6878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6879 | *) ac_try_echo=$ac_try;; | |
6880 | esac | |
27aba29a JS |
6881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6882 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 6883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
43498922 | 6884 | ac_status=$? |
8ca54d60 EB |
6885 | grep -v '^ *+' conftest.er1 >conftest.err |
6886 | rm -f conftest.er1 | |
6887 | cat conftest.err >&5 | |
27aba29a | 6888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
6889 | (exit $ac_status); } >/dev/null && { |
6890 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6891 | test ! -s conftest.err | |
6892 | }; then | |
8ca54d60 | 6893 | ac_header_preproc=yes |
43498922 | 6894 | else |
27aba29a | 6895 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 | 6896 | sed 's/^/| /' conftest.$ac_ext >&5 |
43498922 | 6897 | |
8ca54d60 EB |
6898 | ac_header_preproc=no |
6899 | fi | |
7fbd9d09 | 6900 | |
8ca54d60 | 6901 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
6902 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6903 | $as_echo "$ac_header_preproc" >&6; } | |
43498922 | 6904 | |
8ca54d60 EB |
6905 | # So? What about this header? |
6906 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6907 | yes:no: ) | |
27aba29a JS |
6908 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6909 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6910 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6911 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8ca54d60 EB |
6912 | ac_header_preproc=yes |
6913 | ;; | |
6914 | no:yes:* ) | |
27aba29a JS |
6915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6916 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6918 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6919 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6920 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6922 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6923 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6924 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6925 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6926 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 6927 | ( cat <<\_ASBOX |
8ca54d60 EB |
6928 | ## ------------------------------------------- ## |
6929 | ## Report this to systemtap@sources.redhat.com ## | |
6930 | ## ------------------------------------------- ## | |
6931 | _ASBOX | |
7fbd9d09 | 6932 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
8ca54d60 EB |
6933 | ;; |
6934 | esac | |
27aba29a JS |
6935 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6936 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 6937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 6938 | $as_echo_n "(cached) " >&6 |
43498922 | 6939 | else |
8ca54d60 | 6940 | eval "$as_ac_Header=\$ac_header_preproc" |
43498922 | 6941 | fi |
27aba29a JS |
6942 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6943 | $as_echo "$as_val"'` | |
6944 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6945 | $as_echo "$ac_res" >&6; } | |
43498922 | 6946 | |
8ca54d60 | 6947 | fi |
27aba29a JS |
6948 | as_val=`eval 'as_val=${'$as_ac_Header'} |
6949 | $as_echo "$as_val"'` | |
6950 | if test "x$as_val" = x""yes; then | |
8ca54d60 | 6951 | cat >>confdefs.h <<_ACEOF |
27aba29a | 6952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8ca54d60 EB |
6953 | _ACEOF |
6954 | have_nss_includes=yes | |
43498922 | 6955 | else |
8ca54d60 | 6956 | have_nss_includes=no |
43498922 DB |
6957 | fi |
6958 | ||
8ca54d60 EB |
6959 | done |
6960 | ||
6961 | CPPFLAGS="$save_CPPFLAGS" | |
6962 | have_nss_libs=no | |
27aba29a JS |
6963 | { $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5 |
6964 | $as_echo_n "checking for PR_Connect in -lnspr4... " >&6; } | |
8ca54d60 | 6965 | if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then |
27aba29a | 6966 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
6967 | else |
6968 | ac_check_lib_save_LIBS=$LIBS | |
6969 | LIBS="-lnspr4 $LIBS" | |
6970 | cat >conftest.$ac_ext <<_ACEOF | |
6971 | /* confdefs.h. */ | |
6972 | _ACEOF | |
6973 | cat confdefs.h >>conftest.$ac_ext | |
6974 | cat >>conftest.$ac_ext <<_ACEOF | |
6975 | /* end confdefs.h. */ | |
19a0d4b6 | 6976 | |
7fbd9d09 FCE |
6977 | /* Override any GCC internal prototype to avoid an error. |
6978 | Use char because int might match the return type of a GCC | |
6979 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
6980 | #ifdef __cplusplus |
6981 | extern "C" | |
6982 | #endif | |
6983 | char PR_Connect (); | |
6984 | int | |
6985 | main () | |
6986 | { | |
7fbd9d09 | 6987 | return PR_Connect (); |
8ca54d60 EB |
6988 | ; |
6989 | return 0; | |
6990 | } | |
6991 | _ACEOF | |
6992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
6993 | if { (ac_try="$ac_link" |
6994 | case "(($ac_try" in | |
6995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6996 | *) ac_try_echo=$ac_try;; | |
6997 | esac | |
27aba29a JS |
6998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6999 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7000 | (eval "$ac_link") 2>conftest.er1 |
43498922 | 7001 | ac_status=$? |
8ca54d60 EB |
7002 | grep -v '^ *+' conftest.er1 >conftest.err |
7003 | rm -f conftest.er1 | |
7004 | cat conftest.err >&5 | |
27aba29a | 7005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7006 | (exit $ac_status); } && { |
7007 | test -z "$ac_c_werror_flag" || | |
7008 | test ! -s conftest.err | |
27aba29a JS |
7009 | } && test -s conftest$ac_exeext && { |
7010 | test "$cross_compiling" = yes || | |
7011 | $as_test_x conftest$ac_exeext | |
7012 | }; then | |
8ca54d60 | 7013 | ac_cv_lib_nspr4_PR_Connect=yes |
43498922 | 7014 | else |
27aba29a | 7015 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 EB |
7016 | sed 's/^/| /' conftest.$ac_ext >&5 |
7017 | ||
7fbd9d09 | 7018 | ac_cv_lib_nspr4_PR_Connect=no |
43498922 | 7019 | fi |
7fbd9d09 | 7020 | |
27aba29a | 7021 | rm -rf conftest.dSYM |
7fbd9d09 | 7022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8ca54d60 EB |
7023 | conftest$ac_exeext conftest.$ac_ext |
7024 | LIBS=$ac_check_lib_save_LIBS | |
43498922 | 7025 | fi |
27aba29a JS |
7026 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5 |
7027 | $as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; } | |
7028 | if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then | |
8ca54d60 | 7029 | |
27aba29a JS |
7030 | { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5 |
7031 | $as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; } | |
8ca54d60 | 7032 | if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then |
27aba29a | 7033 | $as_echo_n "(cached) " >&6 |
8ca54d60 EB |
7034 | else |
7035 | ac_check_lib_save_LIBS=$LIBS | |
7036 | LIBS="-lssl3 $LIBS" | |
7037 | cat >conftest.$ac_ext <<_ACEOF | |
7038 | /* confdefs.h. */ | |
7039 | _ACEOF | |
7040 | cat confdefs.h >>conftest.$ac_ext | |
7041 | cat >>conftest.$ac_ext <<_ACEOF | |
7042 | /* end confdefs.h. */ | |
7043 | ||
7fbd9d09 FCE |
7044 | /* Override any GCC internal prototype to avoid an error. |
7045 | Use char because int might match the return type of a GCC | |
7046 | builtin and then its argument prototype would still apply. */ | |
8ca54d60 EB |
7047 | #ifdef __cplusplus |
7048 | extern "C" | |
7049 | #endif | |
7050 | char SSL_ReHandshake (); | |
7051 | int | |
7052 | main () | |
7053 | { | |
7fbd9d09 | 7054 | return SSL_ReHandshake (); |
8ca54d60 EB |
7055 | ; |
7056 | return 0; | |
7057 | } | |
7058 | _ACEOF | |
7059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7060 | if { (ac_try="$ac_link" |
7061 | case "(($ac_try" in | |
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7063 | *) ac_try_echo=$ac_try;; | |
7064 | esac | |
27aba29a JS |
7065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7066 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7067 | (eval "$ac_link") 2>conftest.er1 |
43498922 | 7068 | ac_status=$? |
8ca54d60 EB |
7069 | grep -v '^ *+' conftest.er1 >conftest.err |
7070 | rm -f conftest.er1 | |
7071 | cat conftest.err >&5 | |
27aba29a | 7072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7073 | (exit $ac_status); } && { |
7074 | test -z "$ac_c_werror_flag" || | |
7075 | test ! -s conftest.err | |
27aba29a JS |
7076 | } && test -s conftest$ac_exeext && { |
7077 | test "$cross_compiling" = yes || | |
7078 | $as_test_x conftest$ac_exeext | |
7079 | }; then | |
8ca54d60 | 7080 | ac_cv_lib_ssl3_SSL_ReHandshake=yes |
43498922 | 7081 | else |
27aba29a | 7082 | $as_echo "$as_me: failed program was:" >&5 |
8ca54d60 | 7083 | sed 's/^/| /' conftest.$ac_ext >&5 |
43498922 | 7084 | |
7fbd9d09 | 7085 | ac_cv_lib_ssl3_SSL_ReHandshake=no |
8ca54d60 | 7086 | fi |
7fbd9d09 | 7087 | |
27aba29a | 7088 | rm -rf conftest.dSYM |
7fbd9d09 | 7089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8ca54d60 EB |
7090 | conftest$ac_exeext conftest.$ac_ext |
7091 | LIBS=$ac_check_lib_save_LIBS | |
7092 | fi | |
27aba29a JS |
7093 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5 |
7094 | $as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; } | |
7095 | if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then | |
8ca54d60 EB |
7096 | have_nss_libs=yes |
7097 | fi | |
43498922 | 7098 | |
43498922 | 7099 | |
43498922 | 7100 | fi |
43498922 | 7101 | |
19a0d4b6 | 7102 | fi |
8ca54d60 | 7103 | if test "x${have_nss_includes}${have_nss_libs}" != "xyesyes"; then |
19a0d4b6 | 7104 | if test "$enable_server" == "yes"; then |
27aba29a JS |
7105 | { { $as_echo "$as_me:$LINENO: error: cannot find all libraries for stap-server" >&5 |
7106 | $as_echo "$as_me: error: cannot find all libraries for stap-server" >&2;} | |
19a0d4b6 MW |
7107 | { (exit 1); exit 1; }; } |
7108 | fi | |
7109 | if test "$enable_server" == "check"; then | |
27aba29a JS |
7110 | { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5 |
7111 | $as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;} | |
19a0d4b6 MW |
7112 | fi |
7113 | fi | |
7fbd9d09 | 7114 | if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then |
19a0d4b6 MW |
7115 | BUILD_SERVER_TRUE= |
7116 | BUILD_SERVER_FALSE='#' | |
7117 | else | |
7118 | BUILD_SERVER_TRUE='#' | |
7119 | BUILD_SERVER_FALSE= | |
43498922 DB |
7120 | fi |
7121 | ||
19a0d4b6 | 7122 | |
1087b83f TM |
7123 | # Check whether --enable-grapher was given. |
7124 | if test "${enable_grapher+set}" = set; then | |
7125 | enableval=$enable_grapher; enable_grapher=$enableval | |
7126 | else | |
7127 | enable_grapher="check" | |
7128 | fi | |
7129 | ||
7130 | ||
7131 | ||
7132 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7133 | if test -n "$ac_tool_prefix"; then | |
7134 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7135 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7136 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7137 | $as_echo_n "checking for $ac_word... " >&6; } | |
7138 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
7139 | $as_echo_n "(cached) " >&6 | |
7140 | else | |
7141 | case $PKG_CONFIG in | |
7142 | [\\/]* | ?:[\\/]*) | |
7143 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7144 | ;; | |
7145 | *) | |
7146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7147 | for as_dir in $PATH | |
7148 | do | |
7149 | IFS=$as_save_IFS | |
7150 | test -z "$as_dir" && as_dir=. | |
7151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7153 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7154 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7155 | break 2 | |
7156 | fi | |
7157 | done | |
7158 | done | |
7159 | IFS=$as_save_IFS | |
7160 | ||
7161 | ;; | |
7162 | esac | |
7163 | fi | |
7164 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7165 | if test -n "$PKG_CONFIG"; then | |
7166 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
7167 | $as_echo "$PKG_CONFIG" >&6; } | |
7168 | else | |
7169 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7170 | $as_echo "no" >&6; } | |
7171 | fi | |
7172 | ||
7173 | ||
7174 | fi | |
7175 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7176 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7177 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7178 | set dummy pkg-config; ac_word=$2 | |
7179 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7180 | $as_echo_n "checking for $ac_word... " >&6; } | |
7181 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
7182 | $as_echo_n "(cached) " >&6 | |
7183 | else | |
7184 | case $ac_pt_PKG_CONFIG in | |
7185 | [\\/]* | ?:[\\/]*) | |
7186 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
7187 | ;; | |
7188 | *) | |
7189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7190 | for as_dir in $PATH | |
7191 | do | |
7192 | IFS=$as_save_IFS | |
7193 | test -z "$as_dir" && as_dir=. | |
7194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7196 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7197 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7198 | break 2 | |
7199 | fi | |
7200 | done | |
7201 | done | |
7202 | IFS=$as_save_IFS | |
7203 | ||
7204 | ;; | |
7205 | esac | |
7206 | fi | |
7207 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7208 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7209 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
7210 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
7211 | else | |
7212 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7213 | $as_echo "no" >&6; } | |
7214 | fi | |
7215 | ||
7216 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7217 | PKG_CONFIG="" | |
7218 | else | |
7219 | case $cross_compiling:$ac_tool_warned in | |
7220 | yes:) | |
7221 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7223 | ac_tool_warned=yes ;; | |
7224 | esac | |
7225 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7226 | fi | |
7227 | else | |
7228 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
7229 | fi | |
7230 | ||
7231 | fi | |
7232 | if test -n "$PKG_CONFIG"; then | |
7233 | _pkg_min_version=0.9.0 | |
7234 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7235 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7236 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7237 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
7238 | $as_echo "yes" >&6; } | |
7239 | else | |
7240 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7241 | $as_echo "no" >&6; } | |
7242 | PKG_CONFIG="" | |
7243 | fi | |
7244 | ||
7245 | fi | |
7246 | ||
7247 | pkg_failed=no | |
7248 | { $as_echo "$as_me:$LINENO: checking for GRAPHER" >&5 | |
7249 | $as_echo_n "checking for GRAPHER... " >&6; } | |
7250 | ||
7251 | if test -n "$GRAPHER_CFLAGS"; then | |
7252 | pkg_cv_GRAPHER_CFLAGS="$GRAPHER_CFLAGS" | |
7253 | elif test -n "$PKG_CONFIG"; then | |
7254 | if test -n "$PKG_CONFIG" && \ | |
7255 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 | |
7256 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 | |
7257 | ac_status=$? | |
7258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7259 | (exit $ac_status); }; then | |
7260 | pkg_cv_GRAPHER_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null` | |
7261 | else | |
7262 | pkg_failed=yes | |
7263 | fi | |
7264 | else | |
7265 | pkg_failed=untried | |
7266 | fi | |
7267 | if test -n "$GRAPHER_LIBS"; then | |
7268 | pkg_cv_GRAPHER_LIBS="$GRAPHER_LIBS" | |
7269 | elif test -n "$PKG_CONFIG"; then | |
7270 | if test -n "$PKG_CONFIG" && \ | |
7271 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\"") >&5 | |
7272 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 | |
7273 | ac_status=$? | |
7274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7275 | (exit $ac_status); }; then | |
7276 | pkg_cv_GRAPHER_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null` | |
7277 | else | |
7278 | pkg_failed=yes | |
7279 | fi | |
7280 | else | |
7281 | pkg_failed=untried | |
7282 | fi | |
7283 | ||
7284 | ||
7285 | ||
7286 | if test $pkg_failed = yes; then | |
7287 | ||
7288 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7289 | _pkg_short_errors_supported=yes | |
7290 | else | |
7291 | _pkg_short_errors_supported=no | |
7292 | fi | |
7293 | if test $_pkg_short_errors_supported = yes; then | |
7294 | GRAPHER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` | |
7295 | else | |
7296 | GRAPHER_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` | |
7297 | fi | |
7298 | # Put the nasty error message in config.log where it belongs | |
7299 | echo "$GRAPHER_PKG_ERRORS" >&5 | |
7300 | ||
7301 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7302 | $as_echo "no" >&6; } | |
7303 | have_gtkmm=no | |
7304 | elif test $pkg_failed = untried; then | |
7305 | have_gtkmm=no | |
7306 | else | |
7307 | GRAPHER_CFLAGS=$pkg_cv_GRAPHER_CFLAGS | |
7308 | GRAPHER_LIBS=$pkg_cv_GRAPHER_LIBS | |
7309 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
7310 | $as_echo "yes" >&6; } | |
7311 | have_gtkmm=yes | |
7312 | fi | |
7313 | if test "x${have_gtkmm}" == "xyes" -a x"$enable_grapher" != "xno"; then | |
7314 | BUILD_GRAPHER_TRUE= | |
7315 | BUILD_GRAPHER_FALSE='#' | |
7316 | else | |
7317 | BUILD_GRAPHER_TRUE='#' | |
7318 | BUILD_GRAPHER_FALSE= | |
7319 | fi | |
7320 | ||
7321 | ||
e8f3c2c2 DS |
7322 | build_elfutils=no |
7323 | ||
7fbd9d09 | 7324 | # Check whether --with-elfutils was given. |
e8f3c2c2 | 7325 | if test "${with_elfutils+set}" = set; then |
7fbd9d09 | 7326 | withval=$with_elfutils; |
e8f3c2c2 | 7327 | case "$with_elfutils" in |
27aba29a JS |
7328 | yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5 |
7329 | $as_echo "$as_me: error: --with-elfutils requires an argument" >&2;} | |
e8f3c2c2 DS |
7330 | { (exit 1); exit 1; }; } ;; |
7331 | ''|no) ;; | |
7332 | *) build_elfutils=yes ;; | |
7333 | esac | |
7fbd9d09 | 7334 | fi |
e8f3c2c2 | 7335 | |
7fbd9d09 | 7336 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
7337 | BUILD_ELFUTILS_TRUE= |
7338 | BUILD_ELFUTILS_FALSE='#' | |
7339 | else | |
7340 | BUILD_ELFUTILS_TRUE='#' | |
7341 | BUILD_ELFUTILS_FALSE= | |
7342 | fi | |
7343 | ||
7344 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then | |
7345 | cd $with_elfutils && pwd | |
7346 | fi | |
7347 | ` | |
7348 | ||
7349 | ||
9cb3a339 | 7350 | if test $build_elfutils = no; then |
8d4b1ab0 | 7351 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ |
4d9087fc | 7352 | save_LIBS="$LIBS" |
4645fadb | 7353 | |
27aba29a JS |
7354 | { $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 |
7355 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } | |
4645fadb | 7356 | if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then |
27aba29a | 7357 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
7358 | else |
7359 | ac_check_lib_save_LIBS=$LIBS | |
7360 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7361 | cat >conftest.$ac_ext <<_ACEOF | |
7362 | /* confdefs.h. */ | |
7363 | _ACEOF | |
7364 | cat confdefs.h >>conftest.$ac_ext | |
7365 | cat >>conftest.$ac_ext <<_ACEOF | |
7366 | /* end confdefs.h. */ | |
7367 | ||
7fbd9d09 FCE |
7368 | /* Override any GCC internal prototype to avoid an error. |
7369 | Use char because int might match the return type of a GCC | |
7370 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
7371 | #ifdef __cplusplus |
7372 | extern "C" | |
7373 | #endif | |
7374 | char dwfl_module_getsym (); | |
7375 | int | |
7376 | main () | |
7377 | { | |
7fbd9d09 | 7378 | return dwfl_module_getsym (); |
4645fadb JS |
7379 | ; |
7380 | return 0; | |
7381 | } | |
7382 | _ACEOF | |
7383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7384 | if { (ac_try="$ac_link" |
7385 | case "(($ac_try" in | |
7386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7387 | *) ac_try_echo=$ac_try;; | |
7388 | esac | |
27aba29a JS |
7389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7390 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7391 | (eval "$ac_link") 2>conftest.er1 |
4645fadb JS |
7392 | ac_status=$? |
7393 | grep -v '^ *+' conftest.er1 >conftest.err | |
7394 | rm -f conftest.er1 | |
7395 | cat conftest.err >&5 | |
27aba29a | 7396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7397 | (exit $ac_status); } && { |
7398 | test -z "$ac_c_werror_flag" || | |
7399 | test ! -s conftest.err | |
27aba29a JS |
7400 | } && test -s conftest$ac_exeext && { |
7401 | test "$cross_compiling" = yes || | |
7402 | $as_test_x conftest$ac_exeext | |
7403 | }; then | |
4645fadb JS |
7404 | ac_cv_lib_dw_dwfl_module_getsym=yes |
7405 | else | |
27aba29a | 7406 | $as_echo "$as_me: failed program was:" >&5 |
4645fadb JS |
7407 | sed 's/^/| /' conftest.$ac_ext >&5 |
7408 | ||
7fbd9d09 | 7409 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 7410 | fi |
7fbd9d09 | 7411 | |
27aba29a | 7412 | rm -rf conftest.dSYM |
7fbd9d09 | 7413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4645fadb JS |
7414 | conftest$ac_exeext conftest.$ac_ext |
7415 | LIBS=$ac_check_lib_save_LIBS | |
7416 | fi | |
27aba29a JS |
7417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
7418 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } | |
7419 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then | |
4645fadb JS |
7420 | cat >>confdefs.h <<_ACEOF |
7421 | #define HAVE_LIBDW 1 | |
7422 | _ACEOF | |
7423 | ||
7424 | LIBS="-ldw $LIBS" | |
7425 | ||
7426 | else | |
7427 | ||
27aba29a JS |
7428 | { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 |
7429 | $as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} | |
4645fadb JS |
7430 | { (exit 1); exit 1; }; } |
7431 | fi | |
7432 | ||
87cb1275 | 7433 | |
27aba29a JS |
7434 | { $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5 |
7435 | $as_echo_n "checking for dwarf_getelf in -ldw... " >&6; } | |
87cb1275 | 7436 | if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then |
27aba29a | 7437 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
7438 | else |
7439 | ac_check_lib_save_LIBS=$LIBS | |
7440 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7441 | cat >conftest.$ac_ext <<_ACEOF | |
7442 | /* confdefs.h. */ | |
7443 | _ACEOF | |
7444 | cat confdefs.h >>conftest.$ac_ext | |
7445 | cat >>conftest.$ac_ext <<_ACEOF | |
7446 | /* end confdefs.h. */ | |
7447 | ||
7fbd9d09 FCE |
7448 | /* Override any GCC internal prototype to avoid an error. |
7449 | Use char because int might match the return type of a GCC | |
7450 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
7451 | #ifdef __cplusplus |
7452 | extern "C" | |
7453 | #endif | |
7454 | char dwarf_getelf (); | |
7455 | int | |
7456 | main () | |
7457 | { | |
7fbd9d09 | 7458 | return dwarf_getelf (); |
87cb1275 MW |
7459 | ; |
7460 | return 0; | |
7461 | } | |
7462 | _ACEOF | |
7463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7fbd9d09 FCE |
7464 | if { (ac_try="$ac_link" |
7465 | case "(($ac_try" in | |
7466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7467 | *) ac_try_echo=$ac_try;; | |
7468 | esac | |
27aba29a JS |
7469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7470 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7471 | (eval "$ac_link") 2>conftest.er1 |
87cb1275 MW |
7472 | ac_status=$? |
7473 | grep -v '^ *+' conftest.er1 >conftest.err | |
7474 | rm -f conftest.er1 | |
7475 | cat conftest.err >&5 | |
27aba29a | 7476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7477 | (exit $ac_status); } && { |
7478 | test -z "$ac_c_werror_flag" || | |
7479 | test ! -s conftest.err | |
27aba29a JS |
7480 | } && test -s conftest$ac_exeext && { |
7481 | test "$cross_compiling" = yes || | |
7482 | $as_test_x conftest$ac_exeext | |
7483 | }; then | |
87cb1275 MW |
7484 | ac_cv_lib_dw_dwarf_getelf=yes |
7485 | else | |
27aba29a | 7486 | $as_echo "$as_me: failed program was:" >&5 |
87cb1275 MW |
7487 | sed 's/^/| /' conftest.$ac_ext >&5 |
7488 | ||
7fbd9d09 | 7489 | ac_cv_lib_dw_dwarf_getelf=no |
87cb1275 | 7490 | fi |
7fbd9d09 | 7491 | |
27aba29a | 7492 | rm -rf conftest.dSYM |
7fbd9d09 | 7493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
87cb1275 MW |
7494 | conftest$ac_exeext conftest.$ac_ext |
7495 | LIBS=$ac_check_lib_save_LIBS | |
7496 | fi | |
27aba29a JS |
7497 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5 |
7498 | $as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; } | |
7499 | if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then | |
87cb1275 MW |
7500 | cat >>confdefs.h <<_ACEOF |
7501 | #define HAVE_LIBDW 1 | |
7502 | _ACEOF | |
7503 | ||
7504 | LIBS="-ldw $LIBS" | |
7505 | ||
7506 | else | |
7507 | ||
27aba29a JS |
7508 | { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 |
7509 | $as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} | |
87cb1275 MW |
7510 | { (exit 1); exit 1; }; } |
7511 | fi | |
7512 | ||
cfa2ca3c | 7513 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
e8f3c2c2 | 7514 | LIBS="$save_LIBS" |
4d9087fc RM |
7515 | else |
7516 | # We built our own and stap_LDFLAGS points at the install. | |
4645fadb JS |
7517 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
7518 | fi | |
7519 | ||
6b1a0274 | 7520 | |
27aba29a JS |
7521 | { $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5 |
7522 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} | |
c3a3c0c9 | 7523 | |
69c68955 FCE |
7524 | date=`date +%Y-%m-%d` |
7525 | ||
7526 | cat >>confdefs.h <<_ACEOF | |
7527 | #define DATE "$date" | |
7528 | _ACEOF | |
7529 | ||
82fab474 | 7530 | DATE="$date" |
69c68955 FCE |
7531 | |
7532 | ||
10b20266 FCE |
7533 | |
7534 | # This procflags business is for staprun/stapio, which need to | |
7535 | # be compiled with the same bitness as the kernel. On e.g. PPC, | |
7536 | # userspace might be 32-bit default, but staprun needs to be | |
7537 | # 64-bit. See also bug #4037. | |
7538 | ||
5566993b MH |
7539 | processor=`uname -p` |
7540 | case "$processor" in | |
c1536577 | 7541 | ppc64) PROCFLAGS=-m64 ;; |
5566993b MH |
7542 | x86_64) PROCFLAGS=-m64 ;; |
7543 | *) PROCFLAGS="" | |
7544 | esac | |
7545 | ||
7546 | ||
3bf6ac45 | 7547 | # Use tr1/unordered_map if available |
7fbd9d09 | 7548 | ac_ext=cpp |
3bf6ac45 TM |
7549 | ac_cpp='$CXXCPP $CPPFLAGS' |
7550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7553 | ||
7554 | ||
7fbd9d09 | 7555 | ac_ext=cpp |
3bf6ac45 TM |
7556 | ac_cpp='$CXXCPP $CPPFLAGS' |
7557 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7558 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7559 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27aba29a JS |
7560 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7561 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
3bf6ac45 TM |
7562 | if test -z "$CXXCPP"; then |
7563 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
27aba29a | 7564 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7565 | else |
7566 | # Double quotes because CXXCPP needs to be expanded | |
7567 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7568 | do | |
7569 | ac_preproc_ok=false | |
7570 | for ac_cxx_preproc_warn_flag in '' yes | |
7571 | do | |
7572 | # Use a header file that comes with gcc, so configuring glibc | |
7573 | # with a fresh cross-compiler works. | |
7574 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7575 | # <limits.h> exists even on freestanding compilers. | |
7576 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7577 | # not just through cpp. "Syntax error" is here to catch this case. | |
7578 | cat >conftest.$ac_ext <<_ACEOF | |
7579 | /* confdefs.h. */ | |
7580 | _ACEOF | |
7581 | cat confdefs.h >>conftest.$ac_ext | |
7582 | cat >>conftest.$ac_ext <<_ACEOF | |
7583 | /* end confdefs.h. */ | |
7584 | #ifdef __STDC__ | |
7585 | # include <limits.h> | |
7586 | #else | |
7587 | # include <assert.h> | |
7588 | #endif | |
7589 | Syntax error | |
7590 | _ACEOF | |
7fbd9d09 FCE |
7591 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7592 | case "(($ac_try" in | |
7593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7594 | *) ac_try_echo=$ac_try;; | |
7595 | esac | |
27aba29a JS |
7596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7597 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7598 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7599 | ac_status=$? |
7600 | grep -v '^ *+' conftest.er1 >conftest.err | |
7601 | rm -f conftest.er1 | |
7602 | cat conftest.err >&5 | |
27aba29a | 7603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7604 | (exit $ac_status); } >/dev/null && { |
7605 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7606 | test ! -s conftest.err | |
7607 | }; then | |
3bf6ac45 TM |
7608 | : |
7609 | else | |
27aba29a | 7610 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7611 | sed 's/^/| /' conftest.$ac_ext >&5 |
7612 | ||
7613 | # Broken: fails on valid input. | |
7614 | continue | |
7615 | fi | |
7fbd9d09 | 7616 | |
3bf6ac45 TM |
7617 | rm -f conftest.err conftest.$ac_ext |
7618 | ||
7fbd9d09 | 7619 | # OK, works on sane cases. Now check whether nonexistent headers |
3bf6ac45 TM |
7620 | # can be detected and how. |
7621 | cat >conftest.$ac_ext <<_ACEOF | |
7622 | /* confdefs.h. */ | |
7623 | _ACEOF | |
7624 | cat confdefs.h >>conftest.$ac_ext | |
7625 | cat >>conftest.$ac_ext <<_ACEOF | |
7626 | /* end confdefs.h. */ | |
7627 | #include <ac_nonexistent.h> | |
7628 | _ACEOF | |
7fbd9d09 FCE |
7629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7630 | case "(($ac_try" in | |
7631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7632 | *) ac_try_echo=$ac_try;; | |
7633 | esac | |
27aba29a JS |
7634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7635 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7636 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7637 | ac_status=$? |
7638 | grep -v '^ *+' conftest.er1 >conftest.err | |
7639 | rm -f conftest.er1 | |
7640 | cat conftest.err >&5 | |
27aba29a | 7641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7642 | (exit $ac_status); } >/dev/null && { |
7643 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7644 | test ! -s conftest.err | |
7645 | }; then | |
3bf6ac45 TM |
7646 | # Broken: success on invalid input. |
7647 | continue | |
7648 | else | |
27aba29a | 7649 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7650 | sed 's/^/| /' conftest.$ac_ext >&5 |
7651 | ||
7652 | # Passes both tests. | |
7653 | ac_preproc_ok=: | |
7654 | break | |
7655 | fi | |
7fbd9d09 | 7656 | |
3bf6ac45 TM |
7657 | rm -f conftest.err conftest.$ac_ext |
7658 | ||
7659 | done | |
7660 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7661 | rm -f conftest.err conftest.$ac_ext | |
7662 | if $ac_preproc_ok; then | |
7663 | break | |
7664 | fi | |
7665 | ||
7666 | done | |
7667 | ac_cv_prog_CXXCPP=$CXXCPP | |
7668 | ||
7669 | fi | |
7670 | CXXCPP=$ac_cv_prog_CXXCPP | |
7671 | else | |
7672 | ac_cv_prog_CXXCPP=$CXXCPP | |
7673 | fi | |
27aba29a JS |
7674 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7675 | $as_echo "$CXXCPP" >&6; } | |
3bf6ac45 TM |
7676 | ac_preproc_ok=false |
7677 | for ac_cxx_preproc_warn_flag in '' yes | |
7678 | do | |
7679 | # Use a header file that comes with gcc, so configuring glibc | |
7680 | # with a fresh cross-compiler works. | |
7681 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7682 | # <limits.h> exists even on freestanding compilers. | |
7683 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7684 | # not just through cpp. "Syntax error" is here to catch this case. | |
7685 | cat >conftest.$ac_ext <<_ACEOF | |
7686 | /* confdefs.h. */ | |
7687 | _ACEOF | |
7688 | cat confdefs.h >>conftest.$ac_ext | |
7689 | cat >>conftest.$ac_ext <<_ACEOF | |
7690 | /* end confdefs.h. */ | |
7691 | #ifdef __STDC__ | |
7692 | # include <limits.h> | |
7693 | #else | |
7694 | # include <assert.h> | |
7695 | #endif | |
7696 | Syntax error | |
7697 | _ACEOF | |
7fbd9d09 FCE |
7698 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7699 | case "(($ac_try" in | |
7700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7701 | *) ac_try_echo=$ac_try;; | |
7702 | esac | |
27aba29a JS |
7703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7704 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7705 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7706 | ac_status=$? |
7707 | grep -v '^ *+' conftest.er1 >conftest.err | |
7708 | rm -f conftest.er1 | |
7709 | cat conftest.err >&5 | |
27aba29a | 7710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7711 | (exit $ac_status); } >/dev/null && { |
7712 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7713 | test ! -s conftest.err | |
7714 | }; then | |
3bf6ac45 TM |
7715 | : |
7716 | else | |
27aba29a | 7717 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
7719 | ||
7720 | # Broken: fails on valid input. | |
7721 | continue | |
7722 | fi | |
7fbd9d09 | 7723 | |
3bf6ac45 TM |
7724 | rm -f conftest.err conftest.$ac_ext |
7725 | ||
7fbd9d09 | 7726 | # OK, works on sane cases. Now check whether nonexistent headers |
3bf6ac45 TM |
7727 | # can be detected and how. |
7728 | cat >conftest.$ac_ext <<_ACEOF | |
7729 | /* confdefs.h. */ | |
7730 | _ACEOF | |
7731 | cat confdefs.h >>conftest.$ac_ext | |
7732 | cat >>conftest.$ac_ext <<_ACEOF | |
7733 | /* end confdefs.h. */ | |
7734 | #include <ac_nonexistent.h> | |
7735 | _ACEOF | |
7fbd9d09 FCE |
7736 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7737 | case "(($ac_try" in | |
7738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7739 | *) ac_try_echo=$ac_try;; | |
7740 | esac | |
27aba29a JS |
7741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7742 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7743 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7744 | ac_status=$? |
7745 | grep -v '^ *+' conftest.er1 >conftest.err | |
7746 | rm -f conftest.er1 | |
7747 | cat conftest.err >&5 | |
27aba29a | 7748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7749 | (exit $ac_status); } >/dev/null && { |
7750 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7751 | test ! -s conftest.err | |
7752 | }; then | |
3bf6ac45 TM |
7753 | # Broken: success on invalid input. |
7754 | continue | |
7755 | else | |
27aba29a | 7756 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7757 | sed 's/^/| /' conftest.$ac_ext >&5 |
7758 | ||
7759 | # Passes both tests. | |
7760 | ac_preproc_ok=: | |
7761 | break | |
7762 | fi | |
7fbd9d09 | 7763 | |
3bf6ac45 TM |
7764 | rm -f conftest.err conftest.$ac_ext |
7765 | ||
7766 | done | |
7767 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7768 | rm -f conftest.err conftest.$ac_ext | |
7769 | if $ac_preproc_ok; then | |
7770 | : | |
7771 | else | |
27aba29a JS |
7772 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7774 | { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
3bf6ac45 | 7775 | See \`config.log' for more details." >&5 |
27aba29a | 7776 | $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
3bf6ac45 | 7777 | See \`config.log' for more details." >&2;} |
27aba29a | 7778 | { (exit 1); exit 1; }; }; } |
3bf6ac45 TM |
7779 | fi |
7780 | ||
7fbd9d09 | 7781 | ac_ext=cpp |
3bf6ac45 TM |
7782 | ac_cpp='$CXXCPP $CPPFLAGS' |
7783 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7784 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7785 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7786 | ||
7787 | ||
7788 | ||
7789 | for ac_header in tr1/unordered_map | |
7790 | do | |
27aba29a | 7791 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 7792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
7793 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7794 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7796 | $as_echo_n "(cached) " >&6 |
818ba2bc | 7797 | fi |
27aba29a JS |
7798 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7799 | $as_echo "$as_val"'` | |
7800 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7801 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7802 | else |
7803 | # Is the header compilable? | |
27aba29a JS |
7804 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7805 | $as_echo_n "checking $ac_header usability... " >&6; } | |
3bf6ac45 TM |
7806 | cat >conftest.$ac_ext <<_ACEOF |
7807 | /* confdefs.h. */ | |
7808 | _ACEOF | |
7809 | cat confdefs.h >>conftest.$ac_ext | |
7810 | cat >>conftest.$ac_ext <<_ACEOF | |
7811 | /* end confdefs.h. */ | |
7812 | $ac_includes_default | |
7813 | #include <$ac_header> | |
7814 | _ACEOF | |
7815 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
7816 | if { (ac_try="$ac_compile" |
7817 | case "(($ac_try" in | |
7818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7819 | *) ac_try_echo=$ac_try;; | |
7820 | esac | |
27aba29a JS |
7821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7822 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7823 | (eval "$ac_compile") 2>conftest.er1 |
3bf6ac45 TM |
7824 | ac_status=$? |
7825 | grep -v '^ *+' conftest.er1 >conftest.err | |
7826 | rm -f conftest.er1 | |
7827 | cat conftest.err >&5 | |
27aba29a | 7828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7829 | (exit $ac_status); } && { |
7830 | test -z "$ac_cxx_werror_flag" || | |
7831 | test ! -s conftest.err | |
7832 | } && test -s conftest.$ac_objext; then | |
3bf6ac45 TM |
7833 | ac_header_compiler=yes |
7834 | else | |
27aba29a | 7835 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7836 | sed 's/^/| /' conftest.$ac_ext >&5 |
7837 | ||
7fbd9d09 | 7838 | ac_header_compiler=no |
3bf6ac45 | 7839 | fi |
7fbd9d09 FCE |
7840 | |
7841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
7842 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7843 | $as_echo "$ac_header_compiler" >&6; } | |
3bf6ac45 TM |
7844 | |
7845 | # Is the header present? | |
27aba29a JS |
7846 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7847 | $as_echo_n "checking $ac_header presence... " >&6; } | |
3bf6ac45 TM |
7848 | cat >conftest.$ac_ext <<_ACEOF |
7849 | /* confdefs.h. */ | |
7850 | _ACEOF | |
7851 | cat confdefs.h >>conftest.$ac_ext | |
7852 | cat >>conftest.$ac_ext <<_ACEOF | |
7853 | /* end confdefs.h. */ | |
7854 | #include <$ac_header> | |
7855 | _ACEOF | |
7fbd9d09 FCE |
7856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7857 | case "(($ac_try" in | |
7858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7859 | *) ac_try_echo=$ac_try;; | |
7860 | esac | |
27aba29a JS |
7861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7862 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 7863 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3bf6ac45 TM |
7864 | ac_status=$? |
7865 | grep -v '^ *+' conftest.er1 >conftest.err | |
7866 | rm -f conftest.er1 | |
7867 | cat conftest.err >&5 | |
27aba29a | 7868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
7869 | (exit $ac_status); } >/dev/null && { |
7870 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7871 | test ! -s conftest.err | |
7872 | }; then | |
3bf6ac45 TM |
7873 | ac_header_preproc=yes |
7874 | else | |
27aba29a | 7875 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7876 | sed 's/^/| /' conftest.$ac_ext >&5 |
7877 | ||
7878 | ac_header_preproc=no | |
7879 | fi | |
7fbd9d09 | 7880 | |
3bf6ac45 | 7881 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
7882 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7883 | $as_echo "$ac_header_preproc" >&6; } | |
3bf6ac45 TM |
7884 | |
7885 | # So? What about this header? | |
7886 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
7887 | yes:no: ) | |
27aba29a JS |
7888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7889 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7891 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3bf6ac45 TM |
7892 | ac_header_preproc=yes |
7893 | ;; | |
7894 | no:yes:* ) | |
27aba29a JS |
7895 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7896 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7898 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7900 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7902 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7904 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7906 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 7907 | ( cat <<\_ASBOX |
3bf6ac45 TM |
7908 | ## ------------------------------------------- ## |
7909 | ## Report this to systemtap@sources.redhat.com ## | |
7910 | ## ------------------------------------------- ## | |
7911 | _ASBOX | |
7fbd9d09 | 7912 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
3bf6ac45 TM |
7913 | ;; |
7914 | esac | |
27aba29a JS |
7915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7916 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7918 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7919 | else |
7920 | eval "$as_ac_Header=\$ac_header_preproc" | |
7921 | fi | |
27aba29a JS |
7922 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7923 | $as_echo "$as_val"'` | |
7924 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7925 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7926 | |
7927 | fi | |
27aba29a JS |
7928 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7929 | $as_echo "$as_val"'` | |
7930 | if test "x$as_val" = x""yes; then | |
3bf6ac45 | 7931 | cat >>confdefs.h <<_ACEOF |
27aba29a | 7932 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3bf6ac45 TM |
7933 | _ACEOF |
7934 | ||
7935 | fi | |
7936 | ||
7937 | done | |
7938 | ||
7939 | ac_ext=c | |
7940 | ac_cpp='$CPP $CPPFLAGS' | |
7941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7944 | ||
7945 | ||
e016a49a FCE |
7946 | |
7947 | if test $build_elfutils = yes; then | |
7948 | case "$with_elfutils" in | |
7949 | /*) elfutils_srcdir="$with_elfutils" ;; | |
7950 | *) elfutils_srcdir="../$with_elfutils" ;; | |
7951 | esac | |
27aba29a JS |
7952 | { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5 |
7953 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} | |
e016a49a FCE |
7954 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
7955 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
7956 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
7957 | # So we must make sure to pass those settings to elfutils configure. | |
7958 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
7959 | here=`pwd` | |
7960 | (mkdir -p build-elfutils && cd build-elfutils && | |
7961 | ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ | |
7962 | --includedir="${here}/include-elfutils" \ | |
7963 | --libdir="${here}/lib-elfutils" \ | |
7964 | --exec-prefix="$exec_prefix" \ | |
7965 | --prefix="$prefix" \ | |
7966 | CFLAGS="${CFLAGS/-Wall/}" \ | |
7967 | LDFLAGS="$LDFLAGS $elfutils_rpath" && | |
e3633556 MW |
7968 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
7969 | echo Trying to install elfutils version header... | |
7970 | make install-pkgincludeHEADERS | |
7971 | fi | |
7972 | # so that elfutils/version.h - available from 0.138 - may be found. | |
93f86457 | 7973 | # Don't use install-data because that will fail (installing in $prefix). |
e016a49a | 7974 | ) |
93f86457 | 7975 | if test $? != 0; then exit; fi |
1c4cf93d MW |
7976 | save_CPPFLAGS=${CPPFLAGS} |
7977 | CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils | |
7978 | ||
7979 | for ac_header in elfutils/version.h | |
7980 | do | |
27aba29a | 7981 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 7982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
7983 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7984 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 7985 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 7986 | $as_echo_n "(cached) " >&6 |
818ba2bc | 7987 | fi |
27aba29a JS |
7988 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7989 | $as_echo "$as_val"'` | |
7990 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7991 | $as_echo "$ac_res" >&6; } | |
1c4cf93d MW |
7992 | else |
7993 | # Is the header compilable? | |
27aba29a JS |
7994 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7995 | $as_echo_n "checking $ac_header usability... " >&6; } | |
1c4cf93d MW |
7996 | cat >conftest.$ac_ext <<_ACEOF |
7997 | /* confdefs.h. */ | |
7998 | _ACEOF | |
7999 | cat confdefs.h >>conftest.$ac_ext | |
8000 | cat >>conftest.$ac_ext <<_ACEOF | |
8001 | /* end confdefs.h. */ | |
8002 | $ac_includes_default | |
8003 | #include <$ac_header> | |
8004 | _ACEOF | |
8005 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
8006 | if { (ac_try="$ac_compile" |
8007 | case "(($ac_try" in | |
8008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8009 | *) ac_try_echo=$ac_try;; | |
8010 | esac | |
27aba29a JS |
8011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8012 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 8013 | (eval "$ac_compile") 2>conftest.er1 |
1c4cf93d MW |
8014 | ac_status=$? |
8015 | grep -v '^ *+' conftest.er1 >conftest.err | |
8016 | rm -f conftest.er1 | |
8017 | cat conftest.err >&5 | |
27aba29a | 8018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
8019 | (exit $ac_status); } && { |
8020 | test -z "$ac_c_werror_flag" || | |
8021 | test ! -s conftest.err | |
8022 | } && test -s conftest.$ac_objext; then | |
1c4cf93d MW |
8023 | ac_header_compiler=yes |
8024 | else | |
27aba29a | 8025 | $as_echo "$as_me: failed program was:" >&5 |
1c4cf93d MW |
8026 | sed 's/^/| /' conftest.$ac_ext >&5 |
8027 | ||
7fbd9d09 | 8028 | ac_header_compiler=no |
e016a49a | 8029 | fi |
7fbd9d09 FCE |
8030 | |
8031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
8032 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8033 | $as_echo "$ac_header_compiler" >&6; } | |
1c4cf93d MW |
8034 | |
8035 | # Is the header present? | |
27aba29a JS |
8036 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8037 | $as_echo_n "checking $ac_header presence... " >&6; } | |
1c4cf93d MW |
8038 | cat >conftest.$ac_ext <<_ACEOF |
8039 | /* confdefs.h. */ | |
8040 | _ACEOF | |
8041 | cat confdefs.h >>conftest.$ac_ext | |
8042 | cat >>conftest.$ac_ext <<_ACEOF | |
8043 | /* end confdefs.h. */ | |
8044 | #include <$ac_header> | |
8045 | _ACEOF | |
7fbd9d09 FCE |
8046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8047 | case "(($ac_try" in | |
8048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8049 | *) ac_try_echo=$ac_try;; | |
8050 | esac | |
27aba29a JS |
8051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8052 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 8053 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1c4cf93d MW |
8054 | ac_status=$? |
8055 | grep -v '^ *+' conftest.er1 >conftest.err | |
8056 | rm -f conftest.er1 | |
8057 | cat conftest.err >&5 | |
27aba29a | 8058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
8059 | (exit $ac_status); } >/dev/null && { |
8060 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8061 | test ! -s conftest.err | |
8062 | }; then | |
1c4cf93d MW |
8063 | ac_header_preproc=yes |
8064 | else | |
27aba29a | 8065 | $as_echo "$as_me: failed program was:" >&5 |
1c4cf93d MW |
8066 | sed 's/^/| /' conftest.$ac_ext >&5 |
8067 | ||
8068 | ac_header_preproc=no | |
8069 | fi | |
7fbd9d09 | 8070 | |
1c4cf93d | 8071 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
8072 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8073 | $as_echo "$ac_header_preproc" >&6; } | |
1c4cf93d MW |
8074 | |
8075 | # So? What about this header? | |
8076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8077 | yes:no: ) | |
27aba29a JS |
8078 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8079 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8081 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
1c4cf93d MW |
8082 | ac_header_preproc=yes |
8083 | ;; | |
8084 | no:yes:* ) | |
27aba29a JS |
8085 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8086 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8087 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8088 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8090 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8092 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8094 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8096 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 8097 | ( cat <<\_ASBOX |
1c4cf93d MW |
8098 | ## ------------------------------------------- ## |
8099 | ## Report this to systemtap@sources.redhat.com ## | |
8100 | ## ------------------------------------------- ## | |
8101 | _ASBOX | |
7fbd9d09 | 8102 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1c4cf93d MW |
8103 | ;; |
8104 | esac | |
27aba29a JS |
8105 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8106 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 8107 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 8108 | $as_echo_n "(cached) " >&6 |
1c4cf93d MW |
8109 | else |
8110 | eval "$as_ac_Header=\$ac_header_preproc" | |
8111 | fi | |
27aba29a JS |
8112 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8113 | $as_echo "$as_val"'` | |
8114 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8115 | $as_echo "$ac_res" >&6; } | |
1c4cf93d MW |
8116 | |
8117 | fi | |
27aba29a JS |
8118 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8119 | $as_echo "$as_val"'` | |
8120 | if test "x$as_val" = x""yes; then | |
1c4cf93d | 8121 | cat >>confdefs.h <<_ACEOF |
27aba29a | 8122 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1c4cf93d MW |
8123 | _ACEOF |
8124 | ||
8125 | fi | |
8126 | ||
8127 | done | |
8128 | ||
8129 | CPPFLAGS="$save_CPPFLAGS" | |
8130 | else | |
e016a49a FCE |
8131 | |
8132 | for ac_header in elfutils/version.h | |
8133 | do | |
27aba29a | 8134 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7fbd9d09 | 8135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a JS |
8136 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8137 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 8138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 8139 | $as_echo_n "(cached) " >&6 |
818ba2bc | 8140 | fi |
27aba29a JS |
8141 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8142 | $as_echo "$as_val"'` | |
8143 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8144 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
8145 | else |
8146 | # Is the header compilable? | |
27aba29a JS |
8147 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8148 | $as_echo_n "checking $ac_header usability... " >&6; } | |
e016a49a FCE |
8149 | cat >conftest.$ac_ext <<_ACEOF |
8150 | /* confdefs.h. */ | |
8151 | _ACEOF | |
8152 | cat confdefs.h >>conftest.$ac_ext | |
8153 | cat >>conftest.$ac_ext <<_ACEOF | |
8154 | /* end confdefs.h. */ | |
8155 | $ac_includes_default | |
8156 | #include <$ac_header> | |
8157 | _ACEOF | |
8158 | rm -f conftest.$ac_objext | |
7fbd9d09 FCE |
8159 | if { (ac_try="$ac_compile" |
8160 | case "(($ac_try" in | |
8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8162 | *) ac_try_echo=$ac_try;; | |
8163 | esac | |
27aba29a JS |
8164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8165 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 8166 | (eval "$ac_compile") 2>conftest.er1 |
e016a49a FCE |
8167 | ac_status=$? |
8168 | grep -v '^ *+' conftest.er1 >conftest.err | |
8169 | rm -f conftest.er1 | |
8170 | cat conftest.err >&5 | |
27aba29a | 8171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
8172 | (exit $ac_status); } && { |
8173 | test -z "$ac_c_werror_flag" || | |
8174 | test ! -s conftest.err | |
8175 | } && test -s conftest.$ac_objext; then | |
e016a49a FCE |
8176 | ac_header_compiler=yes |
8177 | else | |
27aba29a | 8178 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
8179 | sed 's/^/| /' conftest.$ac_ext >&5 |
8180 | ||
7fbd9d09 | 8181 | ac_header_compiler=no |
e016a49a | 8182 | fi |
7fbd9d09 FCE |
8183 | |
8184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27aba29a JS |
8185 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8186 | $as_echo "$ac_header_compiler" >&6; } | |
e016a49a FCE |
8187 | |
8188 | # Is the header present? | |
27aba29a JS |
8189 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8190 | $as_echo_n "checking $ac_header presence... " >&6; } | |
e016a49a FCE |
8191 | cat >conftest.$ac_ext <<_ACEOF |
8192 | /* confdefs.h. */ | |
8193 | _ACEOF | |
8194 | cat confdefs.h >>conftest.$ac_ext | |
8195 | cat >>conftest.$ac_ext <<_ACEOF | |
8196 | /* end confdefs.h. */ | |
8197 | #include <$ac_header> | |
8198 | _ACEOF | |
7fbd9d09 FCE |
8199 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8200 | case "(($ac_try" in | |
8201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8202 | *) ac_try_echo=$ac_try;; | |
8203 | esac | |
27aba29a JS |
8204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8205 | $as_echo "$ac_try_echo") >&5 | |
7fbd9d09 | 8206 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e016a49a FCE |
8207 | ac_status=$? |
8208 | grep -v '^ *+' conftest.er1 >conftest.err | |
8209 | rm -f conftest.er1 | |
8210 | cat conftest.err >&5 | |
27aba29a | 8211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7fbd9d09 FCE |
8212 | (exit $ac_status); } >/dev/null && { |
8213 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8214 | test ! -s conftest.err | |
8215 | }; then | |
e016a49a FCE |
8216 | ac_header_preproc=yes |
8217 | else | |
27aba29a | 8218 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
8219 | sed 's/^/| /' conftest.$ac_ext >&5 |
8220 | ||
8221 | ac_header_preproc=no | |
8222 | fi | |
7fbd9d09 | 8223 | |
e016a49a | 8224 | rm -f conftest.err conftest.$ac_ext |
27aba29a JS |
8225 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8226 | $as_echo "$ac_header_preproc" >&6; } | |
e016a49a FCE |
8227 | |
8228 | # So? What about this header? | |
8229 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8230 | yes:no: ) | |
27aba29a JS |
8231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8232 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8234 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
e016a49a FCE |
8235 | ac_header_preproc=yes |
8236 | ;; | |
8237 | no:yes:* ) | |
27aba29a JS |
8238 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8239 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8240 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8241 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8243 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8245 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8247 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8249 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7fbd9d09 | 8250 | ( cat <<\_ASBOX |
e016a49a FCE |
8251 | ## ------------------------------------------- ## |
8252 | ## Report this to systemtap@sources.redhat.com ## | |
8253 | ## ------------------------------------------- ## | |
8254 | _ASBOX | |
7fbd9d09 | 8255 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e016a49a FCE |
8256 | ;; |
8257 | esac | |
27aba29a JS |
8258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8259 | $as_echo_n "checking for $ac_header... " >&6; } | |
7fbd9d09 | 8260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
27aba29a | 8261 | $as_echo_n "(cached) " >&6 |
e016a49a FCE |
8262 | else |
8263 | eval "$as_ac_Header=\$ac_header_preproc" | |
8264 | fi | |
27aba29a JS |
8265 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8266 | $as_echo "$as_val"'` | |
8267 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8268 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
8269 | |
8270 | fi | |
27aba29a JS |
8271 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8272 | $as_echo "$as_val"'` | |
8273 | if test "x$as_val" = x""yes; then | |
e016a49a | 8274 | cat >>confdefs.h <<_ACEOF |
27aba29a | 8275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e016a49a FCE |
8276 | _ACEOF |
8277 | ||
8278 | fi | |
8279 | ||
8280 | done | |
8281 | ||
1c4cf93d | 8282 | fi |
e016a49a | 8283 | |
50431f30 MW |
8284 | |
8285 | cat >>confdefs.h <<_ACEOF | |
8286 | #define STAP_PREFIX "$prefix" | |
8287 | _ACEOF | |
8288 | ||
8289 | ||
7fbd9d09 | 8290 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 8291 | |
1087b83f | 8292 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-server.8 man/stapprobes.iosched.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 initscript/systemtap" |
daae650d | 8293 | |
27aba29a JS |
8294 | |
8295 | ||
1087b83f | 8296 | subdirs="$subdirs testsuite" |
5ba96b90 | 8297 | |
7fbd9d09 | 8298 | ac_config_files="$ac_config_files run-stap" |
2f62657c | 8299 | |
65ffc3f3 | 8300 | ac_config_files="$ac_config_files run-staprun" |
3c960a7c | 8301 | |
2f1a1aea FCE |
8302 | cat >confcache <<\_ACEOF |
8303 | # This file is a shell script that caches the results of configure | |
8304 | # tests run on this system so they can be shared between configure | |
8305 | # scripts and configure runs, see configure's option --config-cache. | |
8306 | # It is not useful on other systems. If it contains results you don't | |
8307 | # want to keep, you may remove or edit it. | |
8308 | # | |
8309 | # config.status only pays attention to the cache file if you give it | |
8310 | # the --recheck option to rerun configure. | |
8311 | # | |
8312 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8313 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8314 | # following values. | |
8315 | ||
8316 | _ACEOF | |
8317 | ||
8318 | # The following way of writing the cache mishandles newlines in values, | |
8319 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 8320 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
8321 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8322 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
8323 | ( |
8324 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8325 | eval ac_val=\$$ac_var | |
8326 | case $ac_val in #( | |
8327 | *${as_nl}*) | |
8328 | case $ac_var in #( | |
27aba29a JS |
8329 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
8330 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7fbd9d09 FCE |
8331 | esac |
8332 | case $ac_var in #( | |
8333 | _ | IFS | as_nl) ;; #( | |
27aba29a | 8334 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7fbd9d09 FCE |
8335 | *) $as_unset $ac_var ;; |
8336 | esac ;; | |
8337 | esac | |
8338 | done | |
8339 | ||
2f1a1aea | 8340 | (set) 2>&1 | |
7fbd9d09 FCE |
8341 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8342 | *${as_nl}ac_space=\ *) | |
2f1a1aea FCE |
8343 | # `set' does not quote correctly, so add quotes (double-quote |
8344 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8345 | sed -n \ | |
8346 | "s/'/'\\\\''/g; | |
8347 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 8348 | ;; #( |
2f1a1aea FCE |
8349 | *) |
8350 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 8351 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 8352 | ;; |
7fbd9d09 FCE |
8353 | esac | |
8354 | sort | |
8355 | ) | | |
2f1a1aea | 8356 | sed ' |
7fbd9d09 | 8357 | /^ac_cv_env_/b end |
2f1a1aea | 8358 | t clear |
7fbd9d09 | 8359 | :clear |
2f1a1aea FCE |
8360 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8361 | t end | |
7fbd9d09 FCE |
8362 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8363 | :end' >>confcache | |
8364 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8365 | if test -w "$cache_file"; then | |
8366 | test "x$cache_file" != "x/dev/null" && | |
27aba29a JS |
8367 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
8368 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
2f1a1aea FCE |
8369 | cat confcache >$cache_file |
8370 | else | |
27aba29a JS |
8371 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8372 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2f1a1aea FCE |
8373 | fi |
8374 | fi | |
8375 | rm -f confcache | |
8376 | ||
8377 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8378 | # Let make expand exec_prefix. | |
8379 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8380 | ||
2f1a1aea FCE |
8381 | DEFS=-DHAVE_CONFIG_H |
8382 | ||
8383 | ac_libobjs= | |
8384 | ac_ltlibobjs= | |
8385 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8386 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 8387 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
27aba29a | 8388 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
8389 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8390 | # will be set to the directory where LIBOBJS objects are built. | |
8391 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8392 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
8393 | done |
8394 | LIBOBJS=$ac_libobjs | |
8395 | ||
8396 | LTLIBOBJS=$ac_ltlibobjs | |
8397 | ||
8398 | ||
8399 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
27aba29a | 8400 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea | 8401 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8402 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea FCE |
8403 | Usually this means the macro was only invoked conditionally." >&2;} |
8404 | { (exit 1); exit 1; }; } | |
8405 | fi | |
8406 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
27aba29a | 8407 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
2f1a1aea | 8408 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8409 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
2f1a1aea FCE |
8410 | Usually this means the macro was only invoked conditionally." >&2;} |
8411 | { (exit 1); exit 1; }; } | |
8412 | fi | |
8413 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
27aba29a | 8414 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8415 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8416 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8417 | Usually this means the macro was only invoked conditionally." >&2;} |
8418 | { (exit 1); exit 1; }; } | |
8419 | fi | |
8420 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
27aba29a | 8421 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea | 8422 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8423 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea FCE |
8424 | Usually this means the macro was only invoked conditionally." >&2;} |
8425 | { (exit 1); exit 1; }; } | |
8426 | fi | |
8427 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
27aba29a | 8428 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8429 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8430 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8431 | Usually this means the macro was only invoked conditionally." >&2;} |
8432 | { (exit 1); exit 1; }; } | |
8433 | fi | |
e8f3c2c2 | 8434 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
27aba29a | 8435 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc | 8436 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8437 | $as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc RM |
8438 | Usually this means the macro was only invoked conditionally." >&2;} |
8439 | { (exit 1); exit 1; }; } | |
8440 | fi | |
465e8fbf | 8441 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
27aba29a | 8442 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 | 8443 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8444 | $as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 WC |
8445 | Usually this means the macro was only invoked conditionally." >&2;} |
8446 | { (exit 1); exit 1; }; } | |
8447 | fi | |
8448 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then | |
27aba29a | 8449 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 | 8450 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8451 | $as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 MW |
8452 | Usually this means the macro was only invoked conditionally." >&2;} |
8453 | { (exit 1); exit 1; }; } | |
8454 | fi | |
8455 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then | |
27aba29a | 8456 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf | 8457 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8458 | $as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf FCE |
8459 | Usually this means the macro was only invoked conditionally." >&2;} |
8460 | { (exit 1); exit 1; }; } | |
8461 | fi | |
1087b83f TM |
8462 | if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then |
8463 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GRAPHER\" was never defined. | |
8464 | Usually this means the macro was only invoked conditionally." >&5 | |
8465 | $as_echo "$as_me: error: conditional \"BUILD_GRAPHER\" was never defined. | |
8466 | Usually this means the macro was only invoked conditionally." >&2;} | |
8467 | { (exit 1); exit 1; }; } | |
8468 | fi | |
e8f3c2c2 | 8469 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
27aba29a | 8470 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e | 8471 | Usually this means the macro was only invoked conditionally." >&5 |
27aba29a | 8472 | $as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e FCE |
8473 | Usually this means the macro was only invoked conditionally." >&2;} |
8474 | { (exit 1); exit 1; }; } | |
8475 | fi | |
2f1a1aea FCE |
8476 | |
8477 | : ${CONFIG_STATUS=./config.status} | |
27aba29a | 8478 | ac_write_fail=0 |
2f1a1aea FCE |
8479 | ac_clean_files_save=$ac_clean_files |
8480 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
27aba29a JS |
8481 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
8482 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8483 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
2f1a1aea FCE |
8484 | #! $SHELL |
8485 | # Generated by $as_me. | |
8486 | # Run this file to recreate the current configuration. | |
8487 | # Compiler output produced by configure, useful for debugging | |
8488 | # configure, is in config.log if it exists. | |
8489 | ||
8490 | debug=false | |
8491 | ac_cs_recheck=false | |
8492 | ac_cs_silent=false | |
8493 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8494 | _ACEOF | |
8495 | ||
27aba29a | 8496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8497 | ## --------------------- ## |
8498 | ## M4sh Initialization. ## | |
8499 | ## --------------------- ## | |
8500 | ||
7fbd9d09 FCE |
8501 | # Be more Bourne compatible |
8502 | DUALCASE=1; export DUALCASE # for MKS sh | |
2f1a1aea FCE |
8503 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8504 | emulate sh | |
8505 | NULLCMD=: | |
27aba29a | 8506 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
8507 | # is contrary to our usage. Disable this feature. |
8508 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 8509 | setopt NO_GLOB_SUBST |
2f1a1aea | 8510 | else |
7fbd9d09 FCE |
8511 | case `(set -o) 2>/dev/null` in |
8512 | *posix*) set -o posix ;; | |
8513 | esac | |
8514 | ||
2f1a1aea FCE |
8515 | fi |
8516 | ||
8517 | ||
7fbd9d09 FCE |
8518 | |
8519 | ||
8520 | # PATH needs CR | |
8521 | # Avoid depending upon Character Ranges. | |
8522 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8523 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8524 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8525 | as_cr_digits='0123456789' | |
8526 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8527 | ||
27aba29a JS |
8528 | as_nl=' |
8529 | ' | |
8530 | export as_nl | |
8531 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8532 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8533 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8534 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8535 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8536 | as_echo='printf %s\n' | |
8537 | as_echo_n='printf %s' | |
8538 | else | |
8539 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
8540 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8541 | as_echo_n='/usr/ucb/echo -n' | |
7fbd9d09 | 8542 | else |
27aba29a JS |
8543 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8544 | as_echo_n_body='eval | |
8545 | arg=$1; | |
8546 | case $arg in | |
8547 | *"$as_nl"*) | |
8548 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8549 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8550 | esac; | |
8551 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8552 | ' | |
8553 | export as_echo_n_body | |
8554 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7fbd9d09 | 8555 | fi |
27aba29a JS |
8556 | export as_echo_body |
8557 | as_echo='sh -c $as_echo_body as_echo' | |
8558 | fi | |
8559 | ||
8560 | # The user is always right. | |
8561 | if test "${PATH_SEPARATOR+set}" != set; then | |
8562 | PATH_SEPARATOR=: | |
8563 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8564 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8565 | PATH_SEPARATOR=';' | |
8566 | } | |
7fbd9d09 FCE |
8567 | fi |
8568 | ||
8569 | # Support unset when possible. | |
8570 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8571 | as_unset=unset | |
8572 | else | |
8573 | as_unset=false | |
8574 | fi | |
8575 | ||
8576 | ||
8577 | # IFS | |
8578 | # We need space, tab and new line, in precisely that order. Quoting is | |
8579 | # there to prevent editors from complaining about space-tab. | |
8580 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8581 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
8582 | IFS=" "" $as_nl" |
8583 | ||
8584 | # Find who we are. Look in the path if we contain no directory separator. | |
8585 | case $0 in | |
8586 | *[\\/]* ) as_myself=$0 ;; | |
8587 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8588 | for as_dir in $PATH | |
8589 | do | |
8590 | IFS=$as_save_IFS | |
8591 | test -z "$as_dir" && as_dir=. | |
8592 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8593 | done | |
8594 | IFS=$as_save_IFS | |
8595 | ||
8596 | ;; | |
8597 | esac | |
8598 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8599 | # in which case we are not to be found in the path. | |
8600 | if test "x$as_myself" = x; then | |
8601 | as_myself=$0 | |
8602 | fi | |
8603 | if test ! -f "$as_myself"; then | |
27aba29a | 8604 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7fbd9d09 FCE |
8605 | { (exit 1); exit 1; } |
8606 | fi | |
8607 | ||
8608 | # Work around bugs in pre-3.0 UWIN ksh. | |
8609 | for as_var in ENV MAIL MAILPATH | |
8610 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
8611 | done | |
8612 | PS1='$ ' | |
2f1a1aea FCE |
8613 | PS2='> ' |
8614 | PS4='+ ' | |
8615 | ||
8616 | # NLS nuisances. | |
27aba29a JS |
8617 | LC_ALL=C |
8618 | export LC_ALL | |
8619 | LANGUAGE=C | |
8620 | export LANGUAGE | |
2f1a1aea FCE |
8621 | |
8622 | # Required to use basename. | |
7fbd9d09 FCE |
8623 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8624 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8625 | as_expr=expr |
8626 | else | |
8627 | as_expr=false | |
8628 | fi | |
8629 | ||
7fbd9d09 | 8630 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
8631 | as_basename=basename |
8632 | else | |
8633 | as_basename=false | |
8634 | fi | |
8635 | ||
8636 | ||
8637 | # Name of the executable. | |
7fbd9d09 | 8638 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
8639 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8640 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 8641 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 8642 | $as_echo X/"$0" | |
7fbd9d09 FCE |
8643 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8644 | s//\1/ | |
8645 | q | |
8646 | } | |
8647 | /^X\/\(\/\/\)$/{ | |
8648 | s//\1/ | |
8649 | q | |
8650 | } | |
8651 | /^X\/\(\/\).*/{ | |
8652 | s//\1/ | |
8653 | q | |
8654 | } | |
8655 | s/.*/./; q'` | |
8ae7a94a | 8656 | |
7fbd9d09 FCE |
8657 | # CDPATH. |
8658 | $as_unset CDPATH | |
2f1a1aea | 8659 | |
8ae7a94a | 8660 | |
818ba2bc | 8661 | |
818ba2bc MW |
8662 | as_lineno_1=$LINENO |
8663 | as_lineno_2=$LINENO | |
818ba2bc | 8664 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7fbd9d09 | 8665 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
818ba2bc MW |
8666 | |
8667 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8668 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7fbd9d09 FCE |
8669 | # line-number line after each line using $LINENO; the second 'sed' |
8670 | # does the real work. The second script uses 'N' to pair each | |
8671 | # line-number line with the line containing $LINENO, and appends | |
8672 | # trailing '-' during substitution so that $LINENO is not a special | |
8673 | # case at line end. | |
2f1a1aea | 8674 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7fbd9d09 FCE |
8675 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
8676 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
8677 | sed -n ' | |
8678 | p | |
8679 | /[$]LINENO/= | |
8680 | ' <$as_myself | | |
2f1a1aea | 8681 | sed ' |
7fbd9d09 FCE |
8682 | s/[$]LINENO.*/&-/ |
8683 | t lineno | |
8684 | b | |
8685 | :lineno | |
2f1a1aea | 8686 | N |
7fbd9d09 FCE |
8687 | :loop |
8688 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 8689 | t loop |
7fbd9d09 | 8690 | s/-\n.*// |
2f1a1aea | 8691 | ' >$as_me.lineno && |
7fbd9d09 | 8692 | chmod +x "$as_me.lineno" || |
27aba29a | 8693 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
2f1a1aea FCE |
8694 | { (exit 1); exit 1; }; } |
8695 | ||
8696 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8697 | # (the dirname of $[0] is not the place where we might find the | |
7fbd9d09 FCE |
8698 | # original and so on. Autoconf is especially sensitive to this). |
8699 | . "./$as_me.lineno" | |
2f1a1aea FCE |
8700 | # Exit status is that of the last command. |
8701 | exit | |
8702 | } | |
8703 | ||
8704 | ||
7fbd9d09 FCE |
8705 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8706 | as_dirname=dirname | |
8707 | else | |
8708 | as_dirname=false | |
8709 | fi | |
8710 | ||
8711 | ECHO_C= ECHO_N= ECHO_T= | |
8712 | case `echo -n x` in | |
8713 | -n*) | |
8714 | case `echo 'x\c'` in | |
8715 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8716 | *) ECHO_C='\c';; | |
8717 | esac;; | |
8718 | *) | |
8719 | ECHO_N='-n';; | |
2f1a1aea | 8720 | esac |
7fbd9d09 FCE |
8721 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8722 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8723 | as_expr=expr |
8724 | else | |
8725 | as_expr=false | |
8726 | fi | |
8727 | ||
8728 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
8729 | if test -d conf$$.dir; then |
8730 | rm -f conf$$.dir/conf$$.file | |
8731 | else | |
8732 | rm -f conf$$.dir | |
27aba29a JS |
8733 | mkdir conf$$.dir 2>/dev/null |
8734 | fi | |
8735 | if (echo >conf$$.file) 2>/dev/null; then | |
8736 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8737 | as_ln_s='ln -s' | |
8738 | # ... but there are two gotchas: | |
8739 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8740 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8741 | # In both cases, we have to default to `cp -p'. | |
8742 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8743 | as_ln_s='cp -p' | |
8744 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8745 | as_ln_s=ln | |
8746 | else | |
2f1a1aea | 8747 | as_ln_s='cp -p' |
27aba29a | 8748 | fi |
2f1a1aea FCE |
8749 | else |
8750 | as_ln_s='cp -p' | |
8751 | fi | |
7fbd9d09 FCE |
8752 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8753 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
8754 | |
8755 | if mkdir -p . 2>/dev/null; then | |
8756 | as_mkdir_p=: | |
8757 | else | |
8758 | test -d ./-p && rmdir ./-p | |
8759 | as_mkdir_p=false | |
8760 | fi | |
8761 | ||
7fbd9d09 FCE |
8762 | if test -x / >/dev/null 2>&1; then |
8763 | as_test_x='test -x' | |
8764 | else | |
8765 | if ls -dL / >/dev/null 2>&1; then | |
8766 | as_ls_L_option=L | |
8767 | else | |
8768 | as_ls_L_option= | |
8769 | fi | |
8770 | as_test_x=' | |
8771 | eval sh -c '\'' | |
8772 | if test -d "$1"; then | |
27aba29a | 8773 | test -d "$1/."; |
7fbd9d09 FCE |
8774 | else |
8775 | case $1 in | |
27aba29a | 8776 | -*)set "./$1";; |
7fbd9d09 FCE |
8777 | esac; |
8778 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
8779 | ???[sx]*):;;*)false;;esac;fi | |
8780 | '\'' sh | |
8781 | ' | |
8782 | fi | |
8783 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
8784 | |
8785 | # Sed expression to map a string onto a valid CPP name. | |
8786 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8787 | ||
8788 | # Sed expression to map a string onto a valid variable name. | |
8789 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8790 | ||
8791 | ||
2f1a1aea FCE |
8792 | exec 6>&1 |
8793 | ||
7fbd9d09 | 8794 | # Save the log message, to keep $[0] and so on meaningful, and to |
2f1a1aea | 8795 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
8796 | # values after options handling. |
8797 | ac_log=" | |
225d8d4b | 8798 | This file was extended by systemtap $as_me 0.9.6, which was |
27aba29a | 8799 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea FCE |
8800 | |
8801 | CONFIG_FILES = $CONFIG_FILES | |
8802 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8803 | CONFIG_LINKS = $CONFIG_LINKS | |
8804 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8805 | $ $0 $@ | |
8806 | ||
7fbd9d09 FCE |
8807 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8808 | " | |
8809 | ||
2f1a1aea FCE |
8810 | _ACEOF |
8811 | ||
27aba29a JS |
8812 | case $ac_config_files in *" |
8813 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8814 | esac | |
8815 | ||
8816 | case $ac_config_headers in *" | |
8817 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8818 | esac | |
8819 | ||
8820 | ||
8821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 8822 | # Files that config.status was made for. |
7fbd9d09 FCE |
8823 | config_files="$ac_config_files" |
8824 | config_headers="$ac_config_headers" | |
8825 | config_commands="$ac_config_commands" | |
daae650d | 8826 | |
7fbd9d09 | 8827 | _ACEOF |
8ae7a94a | 8828 | |
27aba29a | 8829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8830 | ac_cs_usage="\ |
8831 | \`$as_me' instantiates files from templates according to the | |
8832 | current configuration. | |
8833 | ||
27aba29a | 8834 | Usage: $0 [OPTION]... [FILE]... |
2f1a1aea FCE |
8835 | |
8836 | -h, --help print this help, then exit | |
7fbd9d09 | 8837 | -V, --version print version number and configuration settings, then exit |
27aba29a JS |
8838 | -q, --quiet, --silent |
8839 | do not print progress messages | |
2f1a1aea FCE |
8840 | -d, --debug don't remove temporary files |
8841 | --recheck update $as_me by reconfiguring in the same conditions | |
27aba29a JS |
8842 | --file=FILE[:TEMPLATE] |
8843 | instantiate the configuration file FILE | |
8844 | --header=FILE[:TEMPLATE] | |
8845 | instantiate the configuration header FILE | |
2f1a1aea FCE |
8846 | |
8847 | Configuration files: | |
8848 | $config_files | |
8849 | ||
8850 | Configuration headers: | |
8851 | $config_headers | |
8852 | ||
8853 | Configuration commands: | |
8854 | $config_commands | |
8855 | ||
8856 | Report bugs to <bug-autoconf@gnu.org>." | |
818ba2bc | 8857 | |
7fbd9d09 | 8858 | _ACEOF |
27aba29a | 8859 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8860 | ac_cs_version="\\ |
225d8d4b | 8861 | systemtap config.status 0.9.6 |
27aba29a JS |
8862 | configured by $0, generated by GNU Autoconf 2.63, |
8863 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
2f1a1aea | 8864 | |
27aba29a | 8865 | Copyright (C) 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
8866 | This config.status script is free software; the Free Software Foundation |
8867 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
8868 | |
8869 | ac_pwd='$ac_pwd' | |
8870 | srcdir='$srcdir' | |
8871 | INSTALL='$INSTALL' | |
8872 | MKDIR_P='$MKDIR_P' | |
27aba29a JS |
8873 | AWK='$AWK' |
8874 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
8875 | _ACEOF |
8876 | ||
27aba29a JS |
8877 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8878 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
8879 | ac_need_defaults=: |
8880 | while test $# != 0 | |
8881 | do | |
8882 | case $1 in | |
8883 | --*=*) | |
7fbd9d09 FCE |
8884 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8885 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
8886 | ac_shift=: |
8887 | ;; | |
7fbd9d09 | 8888 | *) |
2f1a1aea FCE |
8889 | ac_option=$1 |
8890 | ac_optarg=$2 | |
8891 | ac_shift=shift | |
8892 | ;; | |
2f1a1aea FCE |
8893 | esac |
8894 | ||
8895 | case $ac_option in | |
8896 | # Handling of the options. | |
2f1a1aea FCE |
8897 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8898 | ac_cs_recheck=: ;; | |
7fbd9d09 | 8899 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27aba29a | 8900 | $as_echo "$ac_cs_version"; exit ;; |
7fbd9d09 | 8901 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
8902 | debug=: ;; |
8903 | --file | --fil | --fi | --f ) | |
8904 | $ac_shift | |
27aba29a JS |
8905 | case $ac_optarg in |
8906 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8907 | esac | |
8908 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
2f1a1aea FCE |
8909 | ac_need_defaults=false;; |
8910 | --header | --heade | --head | --hea ) | |
8911 | $ac_shift | |
27aba29a JS |
8912 | case $ac_optarg in |
8913 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8914 | esac | |
8915 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
2f1a1aea | 8916 | ac_need_defaults=false;; |
7fbd9d09 FCE |
8917 | --he | --h) |
8918 | # Conflict between --help and --header | |
27aba29a | 8919 | { $as_echo "$as_me: error: ambiguous option: $1 |
7fbd9d09 FCE |
8920 | Try \`$0 --help' for more information." >&2 |
8921 | { (exit 1); exit 1; }; };; | |
8922 | --help | --hel | -h ) | |
27aba29a | 8923 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
8924 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8925 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8926 | ac_cs_silent=: ;; | |
8927 | ||
8928 | # This is an error. | |
27aba29a | 8929 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7fbd9d09 | 8930 | Try \`$0 --help' for more information." >&2 |
2f1a1aea FCE |
8931 | { (exit 1); exit 1; }; } ;; |
8932 | ||
7fbd9d09 FCE |
8933 | *) ac_config_targets="$ac_config_targets $1" |
8934 | ac_need_defaults=false ;; | |
2f1a1aea FCE |
8935 | |
8936 | esac | |
8937 | shift | |
8938 | done | |
8939 | ||
8940 | ac_configure_extra_args= | |
8941 | ||
8942 | if $ac_cs_silent; then | |
8943 | exec 6>/dev/null | |
8944 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8945 | fi | |
8946 | ||
8947 | _ACEOF | |
27aba29a | 8948 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8949 | if \$ac_cs_recheck; then |
27aba29a JS |
8950 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8951 | shift | |
8952 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8953 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 8954 | export CONFIG_SHELL |
27aba29a | 8955 | exec "\$@" |
2f1a1aea FCE |
8956 | fi |
8957 | ||
8958 | _ACEOF | |
27aba29a | 8959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
8960 | exec 5>>config.log |
8961 | { | |
8962 | echo | |
8963 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8964 | ## Running $as_me. ## | |
8965 | _ASBOX | |
27aba29a | 8966 | $as_echo "$ac_log" |
7fbd9d09 | 8967 | } >&5 |
2f1a1aea | 8968 | |
7fbd9d09 | 8969 | _ACEOF |
27aba29a | 8970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8971 | # |
7fbd9d09 | 8972 | # INIT-COMMANDS |
2f1a1aea | 8973 | # |
2f1a1aea FCE |
8974 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8975 | ||
8976 | _ACEOF | |
8977 | ||
27aba29a | 8978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
8979 | |
8980 | # Handling of arguments. | |
2f1a1aea FCE |
8981 | for ac_config_target in $ac_config_targets |
8982 | do | |
7fbd9d09 FCE |
8983 | case $ac_config_target in |
8984 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8985 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8986 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8987 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
8988 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; | |
1087b83f | 8989 | "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;; |
7fbd9d09 | 8990 | "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;; |
e97c0b29 WC |
8991 | "stapprobes.3stap") CONFIG_FILES="$CONFIG_FILES stapprobes.3stap" ;; |
8992 | "stapfuncs.3stap") CONFIG_FILES="$CONFIG_FILES stapfuncs.3stap" ;; | |
8993 | "stapvars.3stap") CONFIG_FILES="$CONFIG_FILES stapvars.3stap" ;; | |
8994 | "stapex.3stap") CONFIG_FILES="$CONFIG_FILES stapex.3stap" ;; | |
7fbd9d09 FCE |
8995 | "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;; |
8996 | "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;; | |
e97c0b29 WC |
8997 | "man/stapprobes.iosched.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.3stap" ;; |
8998 | "man/stapprobes.netdev.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.3stap" ;; | |
8999 | "man/stapprobes.nfs.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.3stap" ;; | |
9000 | "man/stapprobes.nfsd.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.3stap" ;; | |
9001 | "man/stapprobes.pagefault.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.3stap" ;; | |
1f65cc4f | 9002 | "man/stapprobes.kprocess.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.kprocess.3stap" ;; |
e97c0b29 WC |
9003 | "man/stapprobes.rpc.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.3stap" ;; |
9004 | "man/stapprobes.scsi.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.3stap" ;; | |
9005 | "man/stapprobes.signal.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.3stap" ;; | |
9006 | "man/stapprobes.socket.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.3stap" ;; | |
9007 | "man/stapprobes.tcp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.3stap" ;; | |
9008 | "man/stapprobes.udp.3stap") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.3stap" ;; | |
7fbd9d09 FCE |
9009 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
9010 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; | |
65ffc3f3 | 9011 | "run-staprun") CONFIG_FILES="$CONFIG_FILES run-staprun" ;; |
7fbd9d09 | 9012 | |
27aba29a JS |
9013 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9014 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
2f1a1aea FCE |
9015 | { (exit 1); exit 1; }; };; |
9016 | esac | |
9017 | done | |
9018 | ||
7fbd9d09 | 9019 | |
2f1a1aea FCE |
9020 | # If the user did not use the arguments to specify the items to instantiate, |
9021 | # then the envvar interface is used. Set only those that are not. | |
9022 | # We use the long form for the default assignment because of an extremely | |
9023 | # bizarre bug on SunOS 4.1.3. | |
9024 | if $ac_need_defaults; then | |
9025 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9026 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9027 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
9028 | fi | |
9029 | ||
9030 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 9031 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 9032 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
9033 | # Hook for its removal unless debugging. |
9034 | # Note that there is a small window in which the directory will not be cleaned: | |
9035 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
9036 | $debug || |
9037 | { | |
7fbd9d09 FCE |
9038 | tmp= |
9039 | trap 'exit_status=$? | |
9040 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
9041 | ' 0 | |
2f1a1aea FCE |
9042 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
9043 | } | |
2f1a1aea FCE |
9044 | # Create a (secure) tmp directory for tmp files. |
9045 | ||
9046 | { | |
7fbd9d09 | 9047 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
2f1a1aea FCE |
9048 | test -n "$tmp" && test -d "$tmp" |
9049 | } || | |
9050 | { | |
7fbd9d09 FCE |
9051 | tmp=./conf$$-$RANDOM |
9052 | (umask 077 && mkdir "$tmp") | |
2f1a1aea FCE |
9053 | } || |
9054 | { | |
27aba29a | 9055 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
2f1a1aea FCE |
9056 | { (exit 1); exit 1; } |
9057 | } | |
9058 | ||
27aba29a JS |
9059 | # Set up the scripts for CONFIG_FILES section. |
9060 | # No need to generate them if there are no CONFIG_FILES. | |
9061 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
9062 | if test -n "$CONFIG_FILES"; then |
9063 | ||
7fbd9d09 | 9064 | |
27aba29a JS |
9065 | ac_cr='\r' |
9066 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
9067 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
9068 | ac_cs_awk_cr='\\r' | |
9069 | else | |
9070 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 9071 | fi |
5e0d2ebf | 9072 | |
27aba29a | 9073 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
7fbd9d09 FCE |
9074 | _ACEOF |
9075 | ||
9076 | ||
27aba29a JS |
9077 | { |
9078 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
9079 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
9080 | echo "_ACEOF" | |
9081 | } >conf$$subs.sh || | |
9082 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
9083 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
9084 | { (exit 1); exit 1; }; } | |
9085 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7fbd9d09 FCE |
9086 | ac_delim='%!_!# ' |
9087 | for ac_last_try in false false false false false :; do | |
27aba29a JS |
9088 | . ./conf$$subs.sh || |
9089 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
9090 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
9091 | { (exit 1); exit 1; }; } | |
9092 | ||
9093 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
9094 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
9095 | break |
9096 | elif $ac_last_try; then | |
27aba29a JS |
9097 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
9098 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7fbd9d09 FCE |
9099 | { (exit 1); exit 1; }; } |
9100 | else | |
9101 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9102 | fi | |
9103 | done | |
27aba29a JS |
9104 | rm -f conf$$subs.sh |
9105 | ||
9106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9107 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
9108 | _ACEOF | |
9109 | sed -n ' | |
9110 | h | |
9111 | s/^/S["/; s/!.*/"]=/ | |
9112 | p | |
9113 | g | |
9114 | s/^[^!]*!// | |
9115 | :repl | |
9116 | t repl | |
9117 | s/'"$ac_delim"'$// | |
9118 | t delim | |
9119 | :nl | |
9120 | h | |
9121 | s/\(.\{148\}\).*/\1/ | |
9122 | t more1 | |
9123 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
9124 | p | |
9125 | n | |
9126 | b repl | |
9127 | :more1 | |
9128 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9129 | p | |
9130 | g | |
9131 | s/.\{148\}// | |
9132 | t nl | |
9133 | :delim | |
9134 | h | |
9135 | s/\(.\{148\}\).*/\1/ | |
9136 | t more2 | |
9137 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
9138 | p | |
9139 | b | |
9140 | :more2 | |
9141 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9142 | p | |
9143 | g | |
9144 | s/.\{148\}// | |
9145 | t delim | |
9146 | ' <conf$$subs.awk | sed ' | |
9147 | /^[^""]/{ | |
9148 | N | |
9149 | s/\n// | |
9150 | } | |
9151 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
9152 | rm -f conf$$subs.awk | |
9153 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9154 | _ACAWK | |
9155 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
9156 | for (key in S) S_is_set[key] = 1 | |
9157 | FS = "\a" | |
7fbd9d09 | 9158 | |
27aba29a JS |
9159 | } |
9160 | { | |
9161 | line = $ 0 | |
9162 | nfields = split(line, field, "@") | |
9163 | substed = 0 | |
9164 | len = length(field[1]) | |
9165 | for (i = 2; i < nfields; i++) { | |
9166 | key = field[i] | |
9167 | keylen = length(key) | |
9168 | if (S_is_set[key]) { | |
9169 | value = S[key] | |
9170 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
9171 | len += length(value) + length(field[++i]) | |
9172 | substed = 1 | |
9173 | } else | |
9174 | len += 1 + keylen | |
9175 | } | |
9176 | ||
9177 | print line | |
9178 | } | |
7fbd9d09 | 9179 | |
27aba29a | 9180 | _ACAWK |
7fbd9d09 | 9181 | _ACEOF |
27aba29a JS |
9182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9183 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
9184 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
9185 | else | |
9186 | cat | |
9187 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
9188 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
9189 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
9190 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
9191 | _ACEOF |
9192 | ||
7fbd9d09 FCE |
9193 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9194 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9195 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9196 | # (actually we leave an empty line to preserve line numbers). | |
9197 | if test "x$srcdir" = x.; then | |
9198 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
9199 | s/:*\$(srcdir):*/:/ | |
9200 | s/:*\${srcdir}:*/:/ | |
9201 | s/:*@srcdir@:*/:/ | |
9202 | s/^\([^=]*=[ ]*\):*/\1/ | |
9203 | s/:*$// | |
9204 | s/^[^=]*=[ ]*$// | |
9205 | }' | |
9206 | fi | |
9207 | ||
27aba29a | 9208 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
9209 | fi # test -n "$CONFIG_FILES" |
9210 | ||
27aba29a JS |
9211 | # Set up the scripts for CONFIG_HEADERS section. |
9212 | # No need to generate them if there are no CONFIG_HEADERS. | |
9213 | # This happens for instance with `./config.status Makefile'. | |
9214 | if test -n "$CONFIG_HEADERS"; then | |
9215 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
9216 | BEGIN { | |
9217 | _ACEOF | |
9218 | ||
9219 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
9220 | # here-document in config.status, that substitutes the proper values into | |
9221 | # config.h.in to produce config.h. | |
9222 | ||
9223 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
9224 | # handling of long lines. | |
9225 | ac_delim='%!_!# ' | |
9226 | for ac_last_try in false false :; do | |
9227 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
9228 | if test -z "$ac_t"; then | |
9229 | break | |
9230 | elif $ac_last_try; then | |
9231 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
9232 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
9233 | { (exit 1); exit 1; }; } | |
9234 | else | |
9235 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9236 | fi | |
9237 | done | |
9238 | ||
9239 | # For the awk script, D is an array of macro values keyed by name, | |
9240 | # likewise P contains macro parameters if any. Preserve backslash | |
9241 | # newline sequences. | |
9242 | ||
9243 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
9244 | sed -n ' | |
9245 | s/.\{148\}/&'"$ac_delim"'/g | |
9246 | t rset | |
9247 | :rset | |
9248 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
9249 | t def | |
9250 | d | |
9251 | :def | |
9252 | s/\\$// | |
9253 | t bsnl | |
9254 | s/["\\]/\\&/g | |
9255 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9256 | D["\1"]=" \3"/p | |
9257 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
9258 | d | |
9259 | :bsnl | |
9260 | s/["\\]/\\&/g | |
9261 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9262 | D["\1"]=" \3\\\\\\n"\\/p | |
9263 | t cont | |
9264 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
9265 | t cont | |
9266 | d | |
9267 | :cont | |
9268 | n | |
9269 | s/.\{148\}/&'"$ac_delim"'/g | |
9270 | t clear | |
9271 | :clear | |
9272 | s/\\$// | |
9273 | t bsnlc | |
9274 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
9275 | d | |
9276 | :bsnlc | |
9277 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
9278 | b cont | |
9279 | ' <confdefs.h | sed ' | |
9280 | s/'"$ac_delim"'/"\\\ | |
9281 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
9282 | ||
9283 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9284 | for (key in D) D_is_set[key] = 1 | |
9285 | FS = "\a" | |
9286 | } | |
9287 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
9288 | line = \$ 0 | |
9289 | split(line, arg, " ") | |
9290 | if (arg[1] == "#") { | |
9291 | defundef = arg[2] | |
9292 | mac1 = arg[3] | |
9293 | } else { | |
9294 | defundef = substr(arg[1], 2) | |
9295 | mac1 = arg[2] | |
9296 | } | |
9297 | split(mac1, mac2, "(") #) | |
9298 | macro = mac2[1] | |
9299 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9300 | if (D_is_set[macro]) { | |
9301 | # Preserve the white space surrounding the "#". | |
9302 | print prefix "define", macro P[macro] D[macro] | |
9303 | next | |
9304 | } else { | |
9305 | # Replace #undef with comments. This is necessary, for example, | |
9306 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9307 | # on some systems where configure will not decide to define it. | |
9308 | if (defundef == "undef") { | |
9309 | print "/*", prefix defundef, macro, "*/" | |
9310 | next | |
9311 | } | |
9312 | } | |
9313 | } | |
9314 | { print } | |
9315 | _ACAWK | |
9316 | _ACEOF | |
9317 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9318 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
9319 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
9320 | { (exit 1); exit 1; }; } | |
9321 | fi # test -n "$CONFIG_HEADERS" | |
7fbd9d09 | 9322 | |
27aba29a JS |
9323 | |
9324 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
9325 | shift | |
9326 | for ac_tag | |
7fbd9d09 FCE |
9327 | do |
9328 | case $ac_tag in | |
9329 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 9330 | esac |
7fbd9d09 FCE |
9331 | case $ac_mode$ac_tag in |
9332 | :[FHL]*:*);; | |
27aba29a JS |
9333 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
9334 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7fbd9d09 FCE |
9335 | { (exit 1); exit 1; }; };; |
9336 | :[FH]-) ac_tag=-:-;; | |
9337 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
9338 | esac | |
9339 | ac_save_IFS=$IFS | |
9340 | IFS=: | |
9341 | set x $ac_tag | |
9342 | IFS=$ac_save_IFS | |
9343 | shift | |
9344 | ac_file=$1 | |
9345 | shift | |
2f1a1aea | 9346 | |
7fbd9d09 FCE |
9347 | case $ac_mode in |
9348 | :L) ac_source=$1;; | |
9349 | :[FH]) | |
9350 | ac_file_inputs= | |
9351 | for ac_f | |
9352 | do | |
9353 | case $ac_f in | |
9354 | -) ac_f="$tmp/stdin";; | |
9355 | *) # Look for the file first in the build tree, then in the source tree | |
9356 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9357 | # because $ac_f cannot contain `:'. | |
9358 | test -f "$ac_f" || | |
9359 | case $ac_f in | |
9360 | [\\/$]*) false;; | |
9361 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9362 | esac || | |
27aba29a JS |
9363 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
9364 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7fbd9d09 FCE |
9365 | { (exit 1); exit 1; }; };; |
9366 | esac | |
27aba29a JS |
9367 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9368 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7fbd9d09 FCE |
9369 | done |
9370 | ||
9371 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9372 | # use $as_me), people would be surprised to read: | |
9373 | # /* config.h. Generated by config.status. */ | |
27aba29a JS |
9374 | configure_input='Generated from '` |
9375 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9376 | `' by configure.' | |
7fbd9d09 FCE |
9377 | if test x"$ac_file" != x-; then |
9378 | configure_input="$ac_file. $configure_input" | |
27aba29a JS |
9379 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
9380 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7fbd9d09 | 9381 | fi |
27aba29a JS |
9382 | # Neutralize special characters interpreted by sed in replacement strings. |
9383 | case $configure_input in #( | |
9384 | *\&* | *\|* | *\\* ) | |
9385 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9386 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9387 | *) ac_sed_conf_input=$configure_input;; | |
9388 | esac | |
7fbd9d09 FCE |
9389 | |
9390 | case $ac_tag in | |
27aba29a JS |
9391 | *:-:* | *:-) cat >"$tmp/stdin" \ |
9392 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9393 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9394 | { (exit 1); exit 1; }; } ;; | |
7fbd9d09 FCE |
9395 | esac |
9396 | ;; | |
9397 | esac | |
9398 | ||
9399 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
9400 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9401 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9402 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9403 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9404 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
9405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9406 | s//\1/ | |
9407 | q | |
9408 | } | |
9409 | /^X\(\/\/\)[^/].*/{ | |
9410 | s//\1/ | |
9411 | q | |
9412 | } | |
9413 | /^X\(\/\/\)$/{ | |
9414 | s//\1/ | |
9415 | q | |
9416 | } | |
9417 | /^X\(\/\).*/{ | |
9418 | s//\1/ | |
9419 | q | |
9420 | } | |
9421 | s/.*/./; q'` | |
9422 | { as_dir="$ac_dir" | |
9423 | case $as_dir in #( | |
9424 | -*) as_dir=./$as_dir;; | |
9425 | esac | |
9426 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9427 | as_dirs= |
7fbd9d09 FCE |
9428 | while :; do |
9429 | case $as_dir in #( | |
27aba29a | 9430 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9431 | *) as_qdir=$as_dir;; |
9432 | esac | |
9433 | as_dirs="'$as_qdir' $as_dirs" | |
9434 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9435 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9436 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9437 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9438 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9439 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9441 | s//\1/ | |
9442 | q | |
9443 | } | |
9444 | /^X\(\/\/\)[^/].*/{ | |
9445 | s//\1/ | |
9446 | q | |
9447 | } | |
9448 | /^X\(\/\/\)$/{ | |
9449 | s//\1/ | |
9450 | q | |
9451 | } | |
9452 | /^X\(\/\).*/{ | |
9453 | s//\1/ | |
9454 | q | |
9455 | } | |
9456 | s/.*/./; q'` | |
9457 | test -d "$as_dir" && break | |
2f1a1aea | 9458 | done |
7fbd9d09 | 9459 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9460 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9461 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9462 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9463 | ac_builddir=. |
9464 | ||
7fbd9d09 FCE |
9465 | case "$ac_dir" in |
9466 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9467 | *) | |
27aba29a | 9468 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 9469 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 9470 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
9471 | case $ac_top_builddir_sub in |
9472 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9473 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9474 | esac ;; | |
9475 | esac | |
9476 | ac_abs_top_builddir=$ac_pwd | |
9477 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9478 | # for backward compatibility: | |
9479 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
9480 | |
9481 | case $srcdir in | |
7fbd9d09 | 9482 | .) # We are building in place. |
2f1a1aea | 9483 | ac_srcdir=. |
7fbd9d09 FCE |
9484 | ac_top_srcdir=$ac_top_builddir_sub |
9485 | ac_abs_top_srcdir=$ac_pwd ;; | |
9486 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 9487 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
9488 | ac_top_srcdir=$srcdir |
9489 | ac_abs_top_srcdir=$srcdir ;; | |
9490 | *) # Relative name. | |
9491 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9492 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9493 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 9494 | esac |
7fbd9d09 | 9495 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 9496 | |
2f1a1aea | 9497 | |
7fbd9d09 FCE |
9498 | case $ac_mode in |
9499 | :F) | |
9500 | # | |
9501 | # CONFIG_FILE | |
9502 | # | |
2f1a1aea FCE |
9503 | |
9504 | case $INSTALL in | |
9505 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
9506 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9507 | esac | |
9508 | ac_MKDIR_P=$MKDIR_P | |
9509 | case $MKDIR_P in | |
9510 | [\\/$]* | ?:[\\/]* ) ;; | |
9511 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 9512 | esac |
7fbd9d09 | 9513 | _ACEOF |
5e0d2ebf | 9514 | |
27aba29a | 9515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
9516 | # If the template does not know about datarootdir, expand it. |
9517 | # FIXME: This hack should be removed a few years after 2.60. | |
9518 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9519 | ||
27aba29a JS |
9520 | ac_sed_dataroot=' |
9521 | /datarootdir/ { | |
7fbd9d09 FCE |
9522 | p |
9523 | q | |
9524 | } | |
9525 | /@datadir@/p | |
9526 | /@docdir@/p | |
9527 | /@infodir@/p | |
9528 | /@localedir@/p | |
9529 | /@mandir@/p | |
27aba29a JS |
9530 | ' |
9531 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7fbd9d09 FCE |
9532 | *datarootdir*) ac_datarootdir_seen=yes;; |
9533 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
27aba29a JS |
9534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9535 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7fbd9d09 | 9536 | _ACEOF |
27aba29a | 9537 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
9538 | ac_datarootdir_hack=' |
9539 | s&@datadir@&$datadir&g | |
9540 | s&@docdir@&$docdir&g | |
9541 | s&@infodir@&$infodir&g | |
9542 | s&@localedir@&$localedir&g | |
9543 | s&@mandir@&$mandir&g | |
9544 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9545 | esac | |
70d28673 | 9546 | _ACEOF |
7fbd9d09 FCE |
9547 | |
9548 | # Neutralize VPATH when `$srcdir' = `.'. | |
9549 | # Shell code in configure.ac might set extrasub. | |
9550 | # FIXME: do we really want to maintain this feature? | |
27aba29a JS |
9551 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9552 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
9553 | $extrasub |
9554 | _ACEOF | |
27aba29a | 9555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
9556 | :t |
9557 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
27aba29a | 9558 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 9559 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
27aba29a | 9560 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
9561 | s&@srcdir@&$ac_srcdir&;t t |
9562 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9563 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9564 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9565 | s&@builddir@&$ac_builddir&;t t | |
9566 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9567 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9568 | s&@INSTALL@&$ac_INSTALL&;t t | |
9569 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
9570 | $ac_datarootdir_hack | |
27aba29a JS |
9571 | " |
9572 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9573 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9574 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9575 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
9576 | |
9577 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9578 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9579 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
27aba29a | 9580 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 | 9581 | which seems to be undefined. Please make sure it is defined." >&5 |
27aba29a | 9582 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7fbd9d09 FCE |
9583 | which seems to be undefined. Please make sure it is defined." >&2;} |
9584 | ||
9585 | rm -f "$tmp/stdin" | |
818ba2bc | 9586 | case $ac_file in |
27aba29a JS |
9587 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9588 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9589 | esac \ | |
9590 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9591 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9592 | { (exit 1); exit 1; }; } | |
7fbd9d09 FCE |
9593 | ;; |
9594 | :H) | |
9595 | # | |
9596 | # CONFIG_HEADER | |
9597 | # | |
818ba2bc | 9598 | if test x"$ac_file" != x-; then |
27aba29a JS |
9599 | { |
9600 | $as_echo "/* $configure_input */" \ | |
9601 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9602 | } >"$tmp/config.h" \ | |
9603 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9604 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9605 | { (exit 1); exit 1; }; } | |
9606 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9607 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9608 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
2f1a1aea | 9609 | else |
27aba29a JS |
9610 | rm -f "$ac_file" |
9611 | mv "$tmp/config.h" "$ac_file" \ | |
9612 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9613 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9614 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9615 | fi |
9616 | else | |
27aba29a JS |
9617 | $as_echo "/* $configure_input */" \ |
9618 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9619 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
9620 | $as_echo "$as_me: error: could not create -" >&2;} | |
9621 | { (exit 1); exit 1; }; } | |
2f1a1aea | 9622 | fi |
27aba29a JS |
9623 | # Compute "$ac_file"'s index in $config_headers. |
9624 | _am_arg="$ac_file" | |
2f1a1aea FCE |
9625 | _am_stamp_count=1 |
9626 | for _am_header in $config_headers :; do | |
9627 | case $_am_header in | |
7fbd9d09 | 9628 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
9629 | break ;; |
9630 | * ) | |
9631 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9632 | esac | |
9633 | done | |
7fbd9d09 FCE |
9634 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9635 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9636 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9637 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9638 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
27aba29a | 9639 | $as_echo X"$_am_arg" | |
7fbd9d09 FCE |
9640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9641 | s//\1/ | |
9642 | q | |
9643 | } | |
9644 | /^X\(\/\/\)[^/].*/{ | |
9645 | s//\1/ | |
9646 | q | |
9647 | } | |
9648 | /^X\(\/\/\)$/{ | |
9649 | s//\1/ | |
9650 | q | |
9651 | } | |
9652 | /^X\(\/\).*/{ | |
9653 | s//\1/ | |
9654 | q | |
9655 | } | |
9656 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9657 | ;; | |
818ba2bc | 9658 | |
27aba29a JS |
9659 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
9660 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7fbd9d09 FCE |
9661 | ;; |
9662 | esac | |
818ba2bc MW |
9663 | |
9664 | ||
7fbd9d09 FCE |
9665 | case $ac_file$ac_mode in |
9666 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
2f1a1aea FCE |
9667 | # Strip MF so we end up with the name of the file. |
9668 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9669 | # Check whether this is an Automake generated Makefile or not. | |
9670 | # We used to match only the files named `Makefile.in', but | |
9671 | # some people rename them; so instead we look at the file content. | |
9672 | # Grep'ing the first line is not enough: some people post-process | |
9673 | # each Makefile.in and add a new line on top of each file to say so. | |
7fbd9d09 FCE |
9674 | # Grep'ing the whole file is not good either: AIX grep has a line |
9675 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9676 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9677 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
9678 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9679 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9680 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9681 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9682 | $as_echo X"$mf" | |
7fbd9d09 FCE |
9683 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9684 | s//\1/ | |
9685 | q | |
9686 | } | |
9687 | /^X\(\/\/\)[^/].*/{ | |
9688 | s//\1/ | |
9689 | q | |
9690 | } | |
9691 | /^X\(\/\/\)$/{ | |
9692 | s//\1/ | |
9693 | q | |
9694 | } | |
9695 | /^X\(\/\).*/{ | |
9696 | s//\1/ | |
9697 | q | |
9698 | } | |
9699 | s/.*/./; q'` | |
2f1a1aea FCE |
9700 | else |
9701 | continue | |
9702 | fi | |
9703 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9704 | # from the Makefile without running `make'. | |
9705 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9706 | test -z "$DEPDIR" && continue | |
9707 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9708 | test -z "am__include" && continue | |
9709 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9710 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9711 | U=`sed -n 's/^U = //p' < "$mf"` | |
9712 | # Find all dependency output files, they are included files with | |
9713 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9714 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9715 | # expansion. | |
9716 | for file in `sed -n " | |
9717 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9718 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9719 | # Make sure the directory exists. | |
9720 | test -f "$dirpart/$file" && continue | |
7fbd9d09 | 9721 | fdir=`$as_dirname -- "$file" || |
2f1a1aea FCE |
9722 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9723 | X"$file" : 'X\(//\)[^/]' \| \ | |
9724 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9725 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9726 | $as_echo X"$file" | |
7fbd9d09 FCE |
9727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9728 | s//\1/ | |
9729 | q | |
9730 | } | |
9731 | /^X\(\/\/\)[^/].*/{ | |
9732 | s//\1/ | |
9733 | q | |
9734 | } | |
9735 | /^X\(\/\/\)$/{ | |
9736 | s//\1/ | |
9737 | q | |
9738 | } | |
9739 | /^X\(\/\).*/{ | |
9740 | s//\1/ | |
9741 | q | |
9742 | } | |
9743 | s/.*/./; q'` | |
9744 | { as_dir=$dirpart/$fdir | |
9745 | case $as_dir in #( | |
9746 | -*) as_dir=./$as_dir;; | |
9747 | esac | |
9748 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9749 | as_dirs= |
7fbd9d09 FCE |
9750 | while :; do |
9751 | case $as_dir in #( | |
27aba29a | 9752 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9753 | *) as_qdir=$as_dir;; |
9754 | esac | |
9755 | as_dirs="'$as_qdir' $as_dirs" | |
9756 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9757 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9758 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9759 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9760 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9761 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9762 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9763 | s//\1/ | |
9764 | q | |
9765 | } | |
9766 | /^X\(\/\/\)[^/].*/{ | |
9767 | s//\1/ | |
9768 | q | |
9769 | } | |
9770 | /^X\(\/\/\)$/{ | |
9771 | s//\1/ | |
9772 | q | |
9773 | } | |
9774 | /^X\(\/\).*/{ | |
9775 | s//\1/ | |
9776 | q | |
9777 | } | |
9778 | s/.*/./; q'` | |
9779 | test -d "$as_dir" && break | |
2f1a1aea | 9780 | done |
7fbd9d09 | 9781 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9782 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9783 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9784 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9785 | # echo "creating $dirpart/$file" |
9786 | echo '# dummy' > "$dirpart/$file" | |
9787 | done | |
9788 | done | |
9789 | ;; | |
7fbd9d09 | 9790 | "run-stap":F) chmod +x run-stap ;; |
65ffc3f3 | 9791 | "run-staprun":F) chmod +x run-staprun ;; |
7fbd9d09 | 9792 | |
2f1a1aea | 9793 | esac |
7fbd9d09 | 9794 | done # for ac_tag |
2f1a1aea | 9795 | |
2f1a1aea FCE |
9796 | |
9797 | { (exit 0); exit 0; } | |
9798 | _ACEOF | |
9799 | chmod +x $CONFIG_STATUS | |
9800 | ac_clean_files=$ac_clean_files_save | |
9801 | ||
27aba29a JS |
9802 | test $ac_write_fail = 0 || |
9803 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
9804 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
9805 | { (exit 1); exit 1; }; } | |
9806 | ||
2f1a1aea FCE |
9807 | |
9808 | # configure is writing to config.log, and then calls config.status. | |
9809 | # config.status does its own redirection, appending to config.log. | |
9810 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9811 | # by configure, so config.status won't be able to write to it; its | |
9812 | # output is simply discarded. So we exec the FD to /dev/null, | |
9813 | # effectively closing config.log, so it can be properly (re)opened and | |
9814 | # appended to by config.status. When coming back to configure, we | |
9815 | # need to make the FD available again. | |
9816 | if test "$no_create" != yes; then | |
9817 | ac_cs_success=: | |
9818 | ac_config_status_args= | |
9819 | test "$silent" = yes && | |
9820 | ac_config_status_args="$ac_config_status_args --quiet" | |
9821 | exec 5>/dev/null | |
9822 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9823 | exec 5>>config.log | |
9824 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9825 | # would make configure fail if this is the last instruction. | |
9826 | $ac_cs_success || { (exit 1); exit 1; } | |
9827 | fi | |
9828 | ||
5ba96b90 FCE |
9829 | # |
9830 | # CONFIG_SUBDIRS section. | |
9831 | # | |
9832 | if test "$no_recursion" != yes; then | |
9833 | ||
27aba29a JS |
9834 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
9835 | # so they do not pile up. | |
5ba96b90 FCE |
9836 | ac_sub_configure_args= |
9837 | ac_prev= | |
7fbd9d09 FCE |
9838 | eval "set x $ac_configure_args" |
9839 | shift | |
9840 | for ac_arg | |
9841 | do | |
5ba96b90 FCE |
9842 | if test -n "$ac_prev"; then |
9843 | ac_prev= | |
9844 | continue | |
9845 | fi | |
9846 | case $ac_arg in | |
9847 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
9848 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
9849 | ac_prev=cache_file ;; | |
9850 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
9851 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
9852 | | --c=*) | |
9853 | ;; | |
9854 | --config-cache | -C) | |
9855 | ;; | |
9856 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
9857 | ac_prev=srcdir ;; | |
9858 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9859 | ;; | |
9860 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
9861 | ac_prev=prefix ;; | |
9862 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9863 | ;; | |
27aba29a JS |
9864 | --disable-option-checking) |
9865 | ;; | |
7fbd9d09 FCE |
9866 | *) |
9867 | case $ac_arg in | |
27aba29a | 9868 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
9869 | esac |
9870 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
5ba96b90 FCE |
9871 | esac |
9872 | done | |
9873 | ||
9874 | # Always prepend --prefix to ensure using the same prefix | |
9875 | # in subdir configurations. | |
7fbd9d09 FCE |
9876 | ac_arg="--prefix=$prefix" |
9877 | case $ac_arg in | |
27aba29a | 9878 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
9879 | esac |
9880 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
9881 | ||
9882 | # Pass --silent | |
9883 | if test "$silent" = yes; then | |
9884 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
9885 | fi | |
daae650d | 9886 | |
27aba29a JS |
9887 | # Always prepend --disable-option-checking to silence warnings, since |
9888 | # different subdirs can have different --enable and --with options. | |
9889 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
9890 | ||
5ba96b90 FCE |
9891 | ac_popdir=`pwd` |
9892 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
9893 | ||
9894 | # Do not complain, so a configure script can configure whichever | |
9895 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
9896 | test -d "$srcdir/$ac_dir" || continue |
9897 | ||
9898 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
27aba29a JS |
9899 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
9900 | $as_echo "$ac_msg" >&6 | |
7fbd9d09 FCE |
9901 | { as_dir="$ac_dir" |
9902 | case $as_dir in #( | |
9903 | -*) as_dir=./$as_dir;; | |
9904 | esac | |
9905 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
5ba96b90 | 9906 | as_dirs= |
7fbd9d09 FCE |
9907 | while :; do |
9908 | case $as_dir in #( | |
27aba29a | 9909 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7fbd9d09 FCE |
9910 | *) as_qdir=$as_dir;; |
9911 | esac | |
9912 | as_dirs="'$as_qdir' $as_dirs" | |
9913 | as_dir=`$as_dirname -- "$as_dir" || | |
5ba96b90 FCE |
9914 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9915 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9916 | X"$as_dir" : 'X\(//\)$' \| \ | |
7fbd9d09 | 9917 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
27aba29a | 9918 | $as_echo X"$as_dir" | |
7fbd9d09 FCE |
9919 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9920 | s//\1/ | |
9921 | q | |
9922 | } | |
9923 | /^X\(\/\/\)[^/].*/{ | |
9924 | s//\1/ | |
9925 | q | |
9926 | } | |
9927 | /^X\(\/\/\)$/{ | |
9928 | s//\1/ | |
9929 | q | |
9930 | } | |
9931 | /^X\(\/\).*/{ | |
9932 | s//\1/ | |
9933 | q | |
9934 | } | |
9935 | s/.*/./; q'` | |
9936 | test -d "$as_dir" && break | |
5ba96b90 | 9937 | done |
7fbd9d09 | 9938 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27aba29a JS |
9939 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9940 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
5ba96b90 | 9941 | { (exit 1); exit 1; }; }; } |
5ba96b90 FCE |
9942 | ac_builddir=. |
9943 | ||
7fbd9d09 FCE |
9944 | case "$ac_dir" in |
9945 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9946 | *) | |
27aba29a | 9947 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 9948 | # A ".." for each directory in $ac_dir_suffix. |
27aba29a | 9949 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
9950 | case $ac_top_builddir_sub in |
9951 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9952 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9953 | esac ;; | |
9954 | esac | |
9955 | ac_abs_top_builddir=$ac_pwd | |
9956 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9957 | # for backward compatibility: | |
9958 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
9959 | |
9960 | case $srcdir in | |
7fbd9d09 | 9961 | .) # We are building in place. |
5ba96b90 | 9962 | ac_srcdir=. |
7fbd9d09 FCE |
9963 | ac_top_srcdir=$ac_top_builddir_sub |
9964 | ac_abs_top_srcdir=$ac_pwd ;; | |
9965 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 9966 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
9967 | ac_top_srcdir=$srcdir |
9968 | ac_abs_top_srcdir=$srcdir ;; | |
9969 | *) # Relative name. | |
9970 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9971 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9972 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 9973 | esac |
7fbd9d09 | 9974 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
9975 | |
9976 | ||
7fbd9d09 | 9977 | cd "$ac_dir" |
5ba96b90 FCE |
9978 | |
9979 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
9980 | if test -f "$ac_srcdir/configure.gnu"; then |
9981 | ac_sub_configure=$ac_srcdir/configure.gnu | |
9982 | elif test -f "$ac_srcdir/configure"; then | |
9983 | ac_sub_configure=$ac_srcdir/configure | |
9984 | elif test -f "$ac_srcdir/configure.in"; then | |
9985 | # This should be Cygnus configure. | |
9986 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 9987 | else |
27aba29a JS |
9988 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
9989 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
5ba96b90 FCE |
9990 | ac_sub_configure= |
9991 | fi | |
9992 | ||
9993 | # The recursion is here. | |
9994 | if test -n "$ac_sub_configure"; then | |
9995 | # Make the cache file name correct relative to the subdirectory. | |
9996 | case $cache_file in | |
9997 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
9998 | *) # Relative name. |
9999 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
10000 | esac |
10001 | ||
27aba29a JS |
10002 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
10003 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5ba96b90 | 10004 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
10005 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
10006 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
27aba29a JS |
10007 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
10008 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
5ba96b90 FCE |
10009 | { (exit 1); exit 1; }; } |
10010 | fi | |
10011 | ||
7fbd9d09 | 10012 | cd "$ac_popdir" |
5ba96b90 FCE |
10013 | done |
10014 | fi | |
27aba29a JS |
10015 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10016 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
10017 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
10018 | fi | |
5ba96b90 | 10019 | |
4d9087fc | 10020 | |
af29024d | 10021 | if test "${prefix}" = "/usr/local"; then |
27aba29a JS |
10022 | { $as_echo "$as_me:$LINENO: " >&5 |
10023 | $as_echo "$as_me: " >&6;} | |
10024 | { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 | |
10025 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} | |
10026 | { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 | |
10027 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} | |
10028 | { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 | |
10029 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} | |
10030 | { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 | |
10031 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} | |
10032 | { $as_echo "$as_me:$LINENO: is not supported." >&5 | |
10033 | $as_echo "$as_me: is not supported." >&6;} | |
af29024d | 10034 | fi |