]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
daae650d | 3 | # Generated by GNU Autoconf 2.63 for systemtap 0.8. |
2f1a1aea FCE |
4 | # |
5 | # Report bugs to <systemtap@sources.redhat.com>. | |
6 | # | |
5e0d2ebf | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
daae650d | 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 | ||
5e0d2ebf DS |
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=: | |
daae650d | 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+"$@"}'='"$@"' | |
5e0d2ebf DS |
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 | ||
daae650d MW |
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' | |
92aff3c7 | 56 | else |
daae650d MW |
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' | |
92aff3c7 | 69 | fi |
daae650d MW |
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 | ||
5e0d2ebf DS |
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.) | |
5e0d2ebf DS |
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 | |
daae650d | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5e0d2ebf DS |
119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
2f1a1aea | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
5e0d2ebf DS |
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. | |
daae650d MW |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
2f1a1aea FCE |
135 | |
136 | # Required to use basename. | |
5e0d2ebf DS |
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 | ||
5e0d2ebf | 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. | |
5e0d2ebf | 152 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
5e0d2ebf | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 156 | $as_echo X/"$0" | |
5e0d2ebf DS |
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'` | |
2f1a1aea | 170 | |
5e0d2ebf DS |
171 | # CDPATH. |
172 | $as_unset CDPATH | |
2f1a1aea | 173 | |
70d28673 | 174 | |
5e0d2ebf DS |
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 | |
70d28673 DS |
180 | fi |
181 | ||
daae650d | 182 | if test $as_have_required = yes && (eval ": |
5e0d2ebf DS |
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 | } | |
70d28673 | 198 | |
5e0d2ebf DS |
199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
70d28673 | 206 | |
5e0d2ebf DS |
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=. | |
5e0d2ebf | 247 | case $as_dir in |
2f1a1aea | 248 | /*) |
5e0d2ebf DS |
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=: | |
daae650d | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5e0d2ebf DS |
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=: | |
daae650d | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5e0d2ebf DS |
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 | ( | |
70d28673 DS |
349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
351 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5e0d2ebf DS |
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 | |
daae650d MW |
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+"$@"} | |
5e0d2ebf DS |
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. | |
daae650d MW |
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. | |
5e0d2ebf DS |
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 | |
5e0d2ebf DS |
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 |
5e0d2ebf DS |
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 ' |
5e0d2ebf DS |
465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
2f1a1aea | 469 | N |
5e0d2ebf DS |
470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 472 | t loop |
5e0d2ebf | 473 | s/-\n.*// |
2f1a1aea | 474 | ' >$as_me.lineno && |
5e0d2ebf | 475 | chmod +x "$as_me.lineno" || |
daae650d | 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 | |
5e0d2ebf DS |
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 | ||
5e0d2ebf DS |
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 |
5e0d2ebf DS |
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 | |
5e0d2ebf DS |
512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
daae650d MW |
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' |
daae650d | 531 | fi |
2f1a1aea FCE |
532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
5e0d2ebf DS |
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 | ||
5e0d2ebf DS |
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 | |
daae650d | 556 | test -d "$1/."; |
5e0d2ebf DS |
557 | else |
558 | case $1 in | |
daae650d | 559 | -*)set "./$1";; |
5e0d2ebf DS |
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 | |
5e0d2ebf | 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 | |
5e0d2ebf | 587 | ac_clean_files= |
2f1a1aea | 588 | ac_config_libobj_dir=. |
5e0d2ebf | 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' | |
70f5a7b3 FCE |
599 | PACKAGE_VERSION='0.8' |
600 | PACKAGE_STRING='systemtap 0.8' | |
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> | |
5e0d2ebf | 606 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
607 | # include <sys/types.h> |
608 | #endif | |
5e0d2ebf | 609 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
610 | # include <sys/stat.h> |
611 | #endif | |
5e0d2ebf | 612 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
5e0d2ebf | 616 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
5e0d2ebf DS |
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 | |
5e0d2ebf | 626 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
627 | # include <strings.h> |
628 | #endif | |
5e0d2ebf | 629 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 630 | # include <inttypes.h> |
2f1a1aea | 631 | #endif |
5e0d2ebf DS |
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 | ||
daae650d MW |
639 | enable_option_checking=no |
640 | ac_subst_vars='LTLIBOBJS | |
92aff3c7 | 641 | LIBOBJS |
daae650d MW |
642 | subdirs |
643 | CXXCPP | |
644 | PROCFLAGS | |
645 | DATE | |
646 | stap_LIBS | |
647 | elfutils_abs_srcdir | |
648 | BUILD_ELFUTILS_FALSE | |
649 | BUILD_ELFUTILS_TRUE | |
650 | BUILD_SERVER_FALSE | |
651 | BUILD_SERVER_TRUE | |
daae650d | 652 | nspr_CFLAGS |
daae650d | 653 | nss_CFLAGS |
daae650d MW |
654 | BUILD_REFDOCS_FALSE |
655 | BUILD_REFDOCS_TRUE | |
656 | have_xmlto | |
657 | BUILD_DOCS_FALSE | |
658 | BUILD_DOCS_TRUE | |
659 | have_latex2html | |
660 | have_ps2pdf | |
661 | have_dvips | |
662 | have_latex | |
663 | BUILD_CRASHMOD_FALSE | |
664 | BUILD_CRASHMOD_TRUE | |
665 | staplog_CPPFLAGS | |
666 | sqlite3_LIBS | |
5574ef2c MW |
667 | PIECXXFLAGS |
668 | PIECFLAGS | |
daae650d MW |
669 | PIELDFLAGS |
670 | RANLIB | |
671 | ANSI2KNR | |
672 | U | |
673 | EGREP | |
674 | GREP | |
675 | CPP | |
676 | am__fastdepCXX_FALSE | |
677 | am__fastdepCXX_TRUE | |
678 | CXXDEPMODE | |
679 | ac_ct_CXX | |
680 | CXXFLAGS | |
681 | CXX | |
682 | am__fastdepCC_FALSE | |
683 | am__fastdepCC_TRUE | |
684 | CCDEPMODE | |
685 | AMDEPBACKSLASH | |
686 | AMDEP_FALSE | |
687 | AMDEP_TRUE | |
688 | am__quote | |
689 | am__include | |
690 | DEPDIR | |
691 | OBJEXT | |
692 | EXEEXT | |
693 | ac_ct_CC | |
694 | CPPFLAGS | |
695 | LDFLAGS | |
696 | CFLAGS | |
697 | CC | |
698 | LN_S | |
699 | MAINT | |
700 | MAINTAINER_MODE_FALSE | |
701 | MAINTAINER_MODE_TRUE | |
702 | am__untar | |
703 | am__tar | |
704 | AMTAR | |
705 | am__leading_dot | |
706 | SET_MAKE | |
707 | AWK | |
708 | mkdir_p | |
709 | MKDIR_P | |
710 | INSTALL_STRIP_PROGRAM | |
711 | STRIP | |
712 | install_sh | |
713 | MAKEINFO | |
714 | AUTOHEADER | |
715 | AUTOMAKE | |
716 | AUTOCONF | |
717 | ACLOCAL | |
718 | VERSION | |
719 | PACKAGE | |
720 | CYGPATH_W | |
721 | am__isrc | |
722 | INSTALL_DATA | |
723 | INSTALL_SCRIPT | |
724 | INSTALL_PROGRAM | |
725 | target_alias | |
726 | host_alias | |
727 | build_alias | |
728 | LIBS | |
729 | ECHO_T | |
730 | ECHO_N | |
731 | ECHO_C | |
732 | DEFS | |
733 | mandir | |
734 | localedir | |
735 | libdir | |
736 | psdir | |
737 | pdfdir | |
738 | dvidir | |
739 | htmldir | |
740 | infodir | |
741 | docdir | |
742 | oldincludedir | |
743 | includedir | |
744 | localstatedir | |
745 | sharedstatedir | |
746 | sysconfdir | |
747 | datadir | |
748 | datarootdir | |
749 | libexecdir | |
750 | sbindir | |
751 | bindir | |
752 | program_transform_name | |
753 | prefix | |
754 | exec_prefix | |
755 | PACKAGE_BUGREPORT | |
756 | PACKAGE_STRING | |
757 | PACKAGE_VERSION | |
758 | PACKAGE_TARNAME | |
759 | PACKAGE_NAME | |
760 | PATH_SEPARATOR | |
761 | SHELL' | |
2f1a1aea | 762 | ac_subst_files='' |
daae650d MW |
763 | ac_user_opts=' |
764 | enable_option_checking | |
765 | enable_maintainer_mode | |
766 | enable_dependency_tracking | |
767 | enable_perfmon | |
768 | enable_prologues | |
769 | enable_ssp | |
770 | enable_pie | |
771 | enable_sqlite | |
772 | enable_crash | |
773 | enable_docs | |
774 | enable_refdocs | |
775 | enable_server | |
776 | with_elfutils | |
777 | ' | |
5e0d2ebf DS |
778 | ac_precious_vars='build_alias |
779 | host_alias | |
780 | target_alias | |
781 | CC | |
782 | CFLAGS | |
783 | LDFLAGS | |
784 | LIBS | |
785 | CPPFLAGS | |
786 | CXX | |
787 | CXXFLAGS | |
788 | CCC | |
3bf6ac45 TM |
789 | CPP |
790 | CXXCPP' | |
5e0d2ebf | 791 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
792 | |
793 | # Initialize some variables set by options. | |
794 | ac_init_help= | |
795 | ac_init_version=false | |
daae650d MW |
796 | ac_unrecognized_opts= |
797 | ac_unrecognized_sep= | |
2f1a1aea FCE |
798 | # The variables have the same names as the options, with |
799 | # dashes changed to underlines. | |
800 | cache_file=/dev/null | |
801 | exec_prefix=NONE | |
802 | no_create= | |
803 | no_recursion= | |
804 | prefix=NONE | |
805 | program_prefix=NONE | |
806 | program_suffix=NONE | |
807 | program_transform_name=s,x,x, | |
808 | silent= | |
809 | site= | |
810 | srcdir= | |
811 | verbose= | |
812 | x_includes=NONE | |
813 | x_libraries=NONE | |
814 | ||
815 | # Installation directory options. | |
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
817 | # and all the variables that are supposed to be based on exec_prefix | |
818 | # by default will actually change. | |
819 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5e0d2ebf | 820 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
821 | bindir='${exec_prefix}/bin' |
822 | sbindir='${exec_prefix}/sbin' | |
823 | libexecdir='${exec_prefix}/libexec' | |
5e0d2ebf DS |
824 | datarootdir='${prefix}/share' |
825 | datadir='${datarootdir}' | |
2f1a1aea FCE |
826 | sysconfdir='${prefix}/etc' |
827 | sharedstatedir='${prefix}/com' | |
828 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
829 | includedir='${prefix}/include' |
830 | oldincludedir='/usr/include' | |
5e0d2ebf DS |
831 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
832 | infodir='${datarootdir}/info' | |
833 | htmldir='${docdir}' | |
834 | dvidir='${docdir}' | |
835 | pdfdir='${docdir}' | |
836 | psdir='${docdir}' | |
837 | libdir='${exec_prefix}/lib' | |
838 | localedir='${datarootdir}/locale' | |
839 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
840 | |
841 | ac_prev= | |
5e0d2ebf | 842 | ac_dashdash= |
2f1a1aea FCE |
843 | for ac_option |
844 | do | |
845 | # If the previous option needs an argument, assign it. | |
846 | if test -n "$ac_prev"; then | |
5e0d2ebf | 847 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
848 | ac_prev= |
849 | continue | |
850 | fi | |
851 | ||
5e0d2ebf DS |
852 | case $ac_option in |
853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
854 | *) ac_optarg=yes ;; | |
855 | esac | |
2f1a1aea FCE |
856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
5e0d2ebf DS |
859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
862 | |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
866 | bindir=$ac_optarg ;; | |
867 | ||
868 | -build | --build | --buil | --bui | --bu) | |
869 | ac_prev=build_alias ;; | |
870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
871 | build_alias=$ac_optarg ;; | |
872 | ||
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
878 | cache_file=$ac_optarg ;; | |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
882 | ||
5e0d2ebf | 883 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 884 | ac_prev=datadir ;; |
5e0d2ebf | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
886 | datadir=$ac_optarg ;; |
887 | ||
5e0d2ebf DS |
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
2f1a1aea | 895 | -disable-* | --disable-*) |
daae650d | 896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 897 | # Reject names that are not valid shell variable names. |
daae650d MW |
898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
899 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 900 | { (exit 1); exit 1; }; } |
daae650d MW |
901 | ac_useropt_orig=$ac_useropt |
902 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
903 | case $ac_user_opts in | |
904 | *" | |
905 | "enable_$ac_useropt" | |
906 | "*) ;; | |
907 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
908 | ac_unrecognized_sep=', ';; | |
909 | esac | |
910 | eval enable_$ac_useropt=no ;; | |
5e0d2ebf DS |
911 | |
912 | -docdir | --docdir | --docdi | --doc | --do) | |
913 | ac_prev=docdir ;; | |
914 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
915 | docdir=$ac_optarg ;; | |
916 | ||
917 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
918 | ac_prev=dvidir ;; | |
919 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
920 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
921 | |
922 | -enable-* | --enable-*) | |
daae650d | 923 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 924 | # Reject names that are not valid shell variable names. |
daae650d MW |
925 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
926 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
2f1a1aea | 927 | { (exit 1); exit 1; }; } |
daae650d MW |
928 | ac_useropt_orig=$ac_useropt |
929 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
930 | case $ac_user_opts in | |
931 | *" | |
932 | "enable_$ac_useropt" | |
933 | "*) ;; | |
934 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
935 | ac_unrecognized_sep=', ';; | |
936 | esac | |
937 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
938 | |
939 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
940 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
941 | | --exec | --exe | --ex) | |
942 | ac_prev=exec_prefix ;; | |
943 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
944 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
945 | | --exec=* | --exe=* | --ex=*) | |
946 | exec_prefix=$ac_optarg ;; | |
947 | ||
948 | -gas | --gas | --ga | --g) | |
949 | # Obsolete; use --with-gas. | |
950 | with_gas=yes ;; | |
951 | ||
952 | -help | --help | --hel | --he | -h) | |
953 | ac_init_help=long ;; | |
954 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
955 | ac_init_help=recursive ;; | |
956 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
957 | ac_init_help=short ;; | |
958 | ||
959 | -host | --host | --hos | --ho) | |
960 | ac_prev=host_alias ;; | |
961 | -host=* | --host=* | --hos=* | --ho=*) | |
962 | host_alias=$ac_optarg ;; | |
963 | ||
5e0d2ebf DS |
964 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
965 | ac_prev=htmldir ;; | |
966 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
967 | | --ht=*) | |
968 | htmldir=$ac_optarg ;; | |
969 | ||
2f1a1aea FCE |
970 | -includedir | --includedir | --includedi | --included | --include \ |
971 | | --includ | --inclu | --incl | --inc) | |
972 | ac_prev=includedir ;; | |
973 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
974 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
975 | includedir=$ac_optarg ;; | |
976 | ||
977 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
978 | ac_prev=infodir ;; | |
979 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
980 | infodir=$ac_optarg ;; | |
981 | ||
982 | -libdir | --libdir | --libdi | --libd) | |
983 | ac_prev=libdir ;; | |
984 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
985 | libdir=$ac_optarg ;; | |
986 | ||
987 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
988 | | --libexe | --libex | --libe) | |
989 | ac_prev=libexecdir ;; | |
990 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
991 | | --libexe=* | --libex=* | --libe=*) | |
992 | libexecdir=$ac_optarg ;; | |
993 | ||
5e0d2ebf DS |
994 | -localedir | --localedir | --localedi | --localed | --locale) |
995 | ac_prev=localedir ;; | |
996 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
997 | localedir=$ac_optarg ;; | |
998 | ||
2f1a1aea | 999 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5e0d2ebf | 1000 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1001 | ac_prev=localstatedir ;; |
1002 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5e0d2ebf | 1003 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1004 | localstatedir=$ac_optarg ;; |
1005 | ||
1006 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1007 | ac_prev=mandir ;; | |
1008 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1009 | mandir=$ac_optarg ;; | |
1010 | ||
1011 | -nfp | --nfp | --nf) | |
1012 | # Obsolete; use --without-fp. | |
1013 | with_fp=no ;; | |
1014 | ||
1015 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1016 | | --no-cr | --no-c | -n) | |
1017 | no_create=yes ;; | |
1018 | ||
1019 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1020 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1021 | no_recursion=yes ;; | |
1022 | ||
1023 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1024 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1025 | | --oldin | --oldi | --old | --ol | --o) | |
1026 | ac_prev=oldincludedir ;; | |
1027 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1028 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1029 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1030 | oldincludedir=$ac_optarg ;; | |
1031 | ||
1032 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1033 | ac_prev=prefix ;; | |
1034 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1035 | prefix=$ac_optarg ;; | |
1036 | ||
1037 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1038 | | --program-pre | --program-pr | --program-p) | |
1039 | ac_prev=program_prefix ;; | |
1040 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1041 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1042 | program_prefix=$ac_optarg ;; | |
1043 | ||
1044 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1045 | | --program-suf | --program-su | --program-s) | |
1046 | ac_prev=program_suffix ;; | |
1047 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1048 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1049 | program_suffix=$ac_optarg ;; | |
1050 | ||
1051 | -program-transform-name | --program-transform-name \ | |
1052 | | --program-transform-nam | --program-transform-na \ | |
1053 | | --program-transform-n | --program-transform- \ | |
1054 | | --program-transform | --program-transfor \ | |
1055 | | --program-transfo | --program-transf \ | |
1056 | | --program-trans | --program-tran \ | |
1057 | | --progr-tra | --program-tr | --program-t) | |
1058 | ac_prev=program_transform_name ;; | |
1059 | -program-transform-name=* | --program-transform-name=* \ | |
1060 | | --program-transform-nam=* | --program-transform-na=* \ | |
1061 | | --program-transform-n=* | --program-transform-=* \ | |
1062 | | --program-transform=* | --program-transfor=* \ | |
1063 | | --program-transfo=* | --program-transf=* \ | |
1064 | | --program-trans=* | --program-tran=* \ | |
1065 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1066 | program_transform_name=$ac_optarg ;; | |
1067 | ||
5e0d2ebf DS |
1068 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1069 | ac_prev=pdfdir ;; | |
1070 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1071 | pdfdir=$ac_optarg ;; | |
1072 | ||
1073 | -psdir | --psdir | --psdi | --psd | --ps) | |
1074 | ac_prev=psdir ;; | |
1075 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1076 | psdir=$ac_optarg ;; | |
1077 | ||
2f1a1aea FCE |
1078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1079 | | -silent | --silent | --silen | --sile | --sil) | |
1080 | silent=yes ;; | |
1081 | ||
1082 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1083 | ac_prev=sbindir ;; | |
1084 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1085 | | --sbi=* | --sb=*) | |
1086 | sbindir=$ac_optarg ;; | |
1087 | ||
1088 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1089 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1090 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1091 | | --sha | --sh) | |
1092 | ac_prev=sharedstatedir ;; | |
1093 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1094 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1095 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1096 | | --sha=* | --sh=*) | |
1097 | sharedstatedir=$ac_optarg ;; | |
1098 | ||
1099 | -site | --site | --sit) | |
1100 | ac_prev=site ;; | |
1101 | -site=* | --site=* | --sit=*) | |
1102 | site=$ac_optarg ;; | |
1103 | ||
1104 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1105 | ac_prev=srcdir ;; | |
1106 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1107 | srcdir=$ac_optarg ;; | |
1108 | ||
1109 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1110 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1111 | ac_prev=sysconfdir ;; | |
1112 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1113 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1114 | sysconfdir=$ac_optarg ;; | |
1115 | ||
1116 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1117 | ac_prev=target_alias ;; | |
1118 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1119 | target_alias=$ac_optarg ;; | |
1120 | ||
1121 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1122 | verbose=yes ;; | |
1123 | ||
1124 | -version | --version | --versio | --versi | --vers | -V) | |
1125 | ac_init_version=: ;; | |
1126 | ||
1127 | -with-* | --with-*) | |
daae650d | 1128 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1129 | # Reject names that are not valid shell variable names. |
daae650d MW |
1130 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1131 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1132 | { (exit 1); exit 1; }; } |
daae650d MW |
1133 | ac_useropt_orig=$ac_useropt |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1143 | |
1144 | -without-* | --without-*) | |
daae650d | 1145 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1146 | # Reject names that are not valid shell variable names. |
daae650d MW |
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1148 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
2f1a1aea | 1149 | { (exit 1); exit 1; }; } |
daae650d MW |
1150 | ac_useropt_orig=$ac_useropt |
1151 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1152 | case $ac_user_opts in | |
1153 | *" | |
1154 | "with_$ac_useropt" | |
1155 | "*) ;; | |
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1157 | ac_unrecognized_sep=', ';; | |
1158 | esac | |
1159 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1160 | |
1161 | --x) | |
1162 | # Obsolete; use --with-x. | |
1163 | with_x=yes ;; | |
1164 | ||
1165 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1166 | | --x-incl | --x-inc | --x-in | --x-i) | |
1167 | ac_prev=x_includes ;; | |
1168 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1169 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1170 | x_includes=$ac_optarg ;; | |
1171 | ||
1172 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1173 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1174 | ac_prev=x_libraries ;; | |
1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1177 | x_libraries=$ac_optarg ;; | |
1178 | ||
daae650d | 1179 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
2f1a1aea FCE |
1180 | Try \`$0 --help' for more information." >&2 |
1181 | { (exit 1); exit 1; }; } | |
1182 | ;; | |
1183 | ||
1184 | *=*) | |
1185 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1186 | # Reject names that are not valid shell variable names. | |
1187 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
daae650d | 1188 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
2f1a1aea | 1189 | { (exit 1); exit 1; }; } |
5e0d2ebf | 1190 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1191 | export $ac_envvar ;; |
1192 | ||
1193 | *) | |
1194 | # FIXME: should be removed in autoconf 3.0. | |
daae650d | 1195 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
daae650d | 1197 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2f1a1aea FCE |
1198 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1199 | ;; | |
1200 | ||
1201 | esac | |
1202 | done | |
1203 | ||
1204 | if test -n "$ac_prev"; then | |
1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
daae650d | 1206 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
2f1a1aea FCE |
1207 | { (exit 1); exit 1; }; } |
1208 | fi | |
1209 | ||
daae650d MW |
1210 | if test -n "$ac_unrecognized_opts"; then |
1211 | case $enable_option_checking in | |
1212 | no) ;; | |
1213 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1214 | { (exit 1); exit 1; }; } ;; | |
1215 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1216 | esac | |
1217 | fi | |
1218 | ||
1219 | # Check all directory arguments for consistency. | |
5e0d2ebf DS |
1220 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1221 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1222 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1223 | libdir localedir mandir | |
8ae7a94a | 1224 | do |
5e0d2ebf | 1225 | eval ac_val=\$$ac_var |
daae650d MW |
1226 | # Remove trailing slashes. |
1227 | case $ac_val in | |
1228 | */ ) | |
1229 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1230 | eval $ac_var=\$ac_val;; | |
1231 | esac | |
1232 | # Be sure to have absolute directory names. | |
8ae7a94a | 1233 | case $ac_val in |
5e0d2ebf DS |
1234 | [\\/$]* | ?:[\\/]* ) continue;; |
1235 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1236 | esac |
daae650d | 1237 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
5e0d2ebf | 1238 | { (exit 1); exit 1; }; } |
2f1a1aea FCE |
1239 | done |
1240 | ||
1241 | # There might be people who depend on the old broken behavior: `$host' | |
1242 | # used to hold the argument of --host etc. | |
1243 | # FIXME: To remove some day. | |
1244 | build=$build_alias | |
1245 | host=$host_alias | |
1246 | target=$target_alias | |
1247 | ||
1248 | # FIXME: To remove some day. | |
1249 | if test "x$host_alias" != x; then | |
1250 | if test "x$build_alias" = x; then | |
1251 | cross_compiling=maybe | |
daae650d | 1252 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2f1a1aea FCE |
1253 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1254 | elif test "x$build_alias" != "x$host_alias"; then | |
1255 | cross_compiling=yes | |
1256 | fi | |
1257 | fi | |
1258 | ||
1259 | ac_tool_prefix= | |
1260 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1261 | ||
1262 | test "$silent" = yes && exec 6>/dev/null | |
1263 | ||
1264 | ||
5e0d2ebf DS |
1265 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1266 | ac_ls_di=`ls -di .` && | |
1267 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
daae650d | 1268 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
5e0d2ebf DS |
1269 | { (exit 1); exit 1; }; } |
1270 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
daae650d | 1271 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
5e0d2ebf DS |
1272 | { (exit 1); exit 1; }; } |
1273 | ||
1274 | ||
2f1a1aea FCE |
1275 | # Find the source files, if location was not specified. |
1276 | if test -z "$srcdir"; then | |
1277 | ac_srcdir_defaulted=yes | |
5e0d2ebf | 1278 | # Try the directory containing this script, then the parent directory. |
daae650d MW |
1279 | ac_confdir=`$as_dirname -- "$as_myself" || |
1280 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1281 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1282 | X"$as_myself" : 'X\(//\)$' \| \ | |
1283 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1284 | $as_echo X"$as_myself" | | |
5e0d2ebf DS |
1285 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\/\)[^/].*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | /^X\(\/\/\)$/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | /^X\(\/\).*/{ | |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | s/.*/./; q'` | |
2f1a1aea | 1302 | srcdir=$ac_confdir |
5e0d2ebf | 1303 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1304 | srcdir=.. |
1305 | fi | |
1306 | else | |
1307 | ac_srcdir_defaulted=no | |
1308 | fi | |
5e0d2ebf DS |
1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
1310 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
daae650d | 1311 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
2f1a1aea | 1312 | { (exit 1); exit 1; }; } |
8ae7a94a | 1313 | fi |
5e0d2ebf DS |
1314 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1315 | ac_abs_confdir=`( | |
daae650d | 1316 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
8ae7a94a | 1317 | { (exit 1); exit 1; }; } |
5e0d2ebf DS |
1318 | pwd)` |
1319 | # When building in place, set srcdir=. | |
1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1321 | srcdir=. | |
1322 | fi | |
1323 | # Remove unnecessary trailing slashes from srcdir. | |
1324 | # Double slashes in file names in object file debugging info | |
1325 | # mess up M-x gdb in Emacs. | |
1326 | case $srcdir in | |
1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1328 | esac | |
1329 | for ac_var in $ac_precious_vars; do | |
1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1331 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1334 | done | |
2f1a1aea FCE |
1335 | |
1336 | # | |
1337 | # Report the --help message. | |
1338 | # | |
1339 | if test "$ac_init_help" = "long"; then | |
1340 | # Omit some internal or obsolete options to make the list less imposing. | |
1341 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1342 | cat <<_ACEOF | |
70f5a7b3 | 1343 | \`configure' configures systemtap 0.8 to adapt to many kinds of systems. |
2f1a1aea FCE |
1344 | |
1345 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1346 | ||
1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1348 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1349 | ||
1350 | Defaults for the options are specified in brackets. | |
1351 | ||
1352 | Configuration: | |
1353 | -h, --help display this help and exit | |
1354 | --help=short display options specific to this package | |
1355 | --help=recursive display the short help of all the included packages | |
1356 | -V, --version display version information and exit | |
1357 | -q, --quiet, --silent do not print \`checking...' messages | |
1358 | --cache-file=FILE cache test results in FILE [disabled] | |
1359 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1360 | -n, --no-create do not create output files | |
1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1362 | ||
2f1a1aea FCE |
1363 | Installation directories: |
1364 | --prefix=PREFIX install architecture-independent files in PREFIX | |
daae650d | 1365 | [$ac_default_prefix] |
2f1a1aea | 1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
daae650d | 1367 | [PREFIX] |
2f1a1aea FCE |
1368 | |
1369 | By default, \`make install' will install all the files in | |
1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1372 | for instance \`--prefix=\$HOME'. | |
1373 | ||
1374 | For better control, use the options below. | |
1375 | ||
1376 | Fine tuning of the installation directories: | |
daae650d MW |
1377 | --bindir=DIR user executables [EPREFIX/bin] |
1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1379 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1383 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1384 | --includedir=DIR C header files [PREFIX/include] | |
1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1388 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1390 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1392 | --htmldir=DIR html documentation [DOCDIR] | |
1393 | --dvidir=DIR dvi documentation [DOCDIR] | |
1394 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1395 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1396 | _ACEOF |
1397 | ||
1398 | cat <<\_ACEOF | |
1399 | ||
1400 | Program names: | |
1401 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1402 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1403 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1404 | _ACEOF | |
1405 | fi | |
1406 | ||
1407 | if test -n "$ac_init_help"; then | |
1408 | case $ac_init_help in | |
70f5a7b3 | 1409 | short | recursive ) echo "Configuration of systemtap 0.8:";; |
2f1a1aea FCE |
1410 | esac |
1411 | cat <<\_ACEOF | |
1412 | ||
1413 | Optional Features: | |
daae650d | 1414 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1415 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1416 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1417 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1418 | (and sometimes confusing) to the casual installer | |
1419 | --disable-dependency-tracking speeds up one-time build | |
1420 | --enable-dependency-tracking do not reject slow dependency extractors | |
e8f3c2c2 DS |
1421 | --enable-perfmon[=DIRECTORY] |
1422 | enable perfmon support (default is disabled). | |
1423 | Optional DIRECTORY is the path to the perfmon | |
1424 | installation (needed if installed in a non-standard | |
1425 | location). | |
44f75386 | 1426 | --enable-prologues make -P prologue-searching default |
bbfd8c1a | 1427 | --disable-ssp disable gcc stack-protector |
8730f377 | 1428 | --disable-pie disable position-independent-executable |
9921a199 | 1429 | --enable-sqlite build with sqlite support |
564eb0a8 DS |
1430 | --enable-crash[=DIRECTORY] |
1431 | enable crash extension (default is disabled). | |
1432 | Optional DIRECTORY is the path to the crash header | |
1433 | file (needed if installed in a non-standard | |
1434 | location). | |
465e8fbf FCE |
1435 | --enable-docs enable building documentation (default on if latex |
1436 | etc. found). | |
92aff3c7 WC |
1437 | --enable-refdocs enable building reference documentation (default on |
1438 | if xmlto etc. found and other documentation built). | |
6275c8d7 | 1439 | --enable-server enable building of stap-server/client (default on if |
19a0d4b6 | 1440 | nss etc. found). |
2f1a1aea | 1441 | |
4d9087fc RM |
1442 | Optional Packages: |
1443 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1444 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1445 | --with-elfutils=DIRECTORY | |
1446 | find elfutils source code in DIRECTORY | |
1447 | ||
2f1a1aea FCE |
1448 | Some influential environment variables: |
1449 | CC C compiler command | |
1450 | CFLAGS C compiler flags | |
1451 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1452 | nonstandard directory <lib dir> | |
5e0d2ebf DS |
1453 | LIBS libraries to pass to the linker, e.g. -l<library> |
1454 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1455 | you have headers in a nonstandard directory <include dir> | |
2f1a1aea FCE |
1456 | CXX C++ compiler command |
1457 | CXXFLAGS C++ compiler flags | |
1458 | CPP C preprocessor | |
3bf6ac45 | 1459 | CXXCPP C++ preprocessor |
2f1a1aea FCE |
1460 | |
1461 | Use these variables to override the choices made by `configure' or to help | |
1462 | it to find libraries and programs with nonstandard names/locations. | |
1463 | ||
1464 | Report bugs to <systemtap@sources.redhat.com>. | |
1465 | _ACEOF | |
5e0d2ebf | 1466 | ac_status=$? |
2f1a1aea FCE |
1467 | fi |
1468 | ||
1469 | if test "$ac_init_help" = "recursive"; then | |
1470 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1471 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
daae650d MW |
1472 | test -d "$ac_dir" || |
1473 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1474 | continue | |
2f1a1aea FCE |
1475 | ac_builddir=. |
1476 | ||
5e0d2ebf DS |
1477 | case "$ac_dir" in |
1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1479 | *) | |
daae650d | 1480 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
5e0d2ebf | 1481 | # A ".." for each directory in $ac_dir_suffix. |
daae650d | 1482 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5e0d2ebf DS |
1483 | case $ac_top_builddir_sub in |
1484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1486 | esac ;; | |
1487 | esac | |
1488 | ac_abs_top_builddir=$ac_pwd | |
1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1490 | # for backward compatibility: | |
1491 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1492 | |
1493 | case $srcdir in | |
5e0d2ebf | 1494 | .) # We are building in place. |
2f1a1aea | 1495 | ac_srcdir=. |
5e0d2ebf DS |
1496 | ac_top_srcdir=$ac_top_builddir_sub |
1497 | ac_abs_top_srcdir=$ac_pwd ;; | |
1498 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1499 | ac_srcdir=$srcdir$ac_dir_suffix; |
5e0d2ebf DS |
1500 | ac_top_srcdir=$srcdir |
1501 | ac_abs_top_srcdir=$srcdir ;; | |
1502 | *) # Relative name. | |
1503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1504 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8ae7a94a | 1506 | esac |
5e0d2ebf DS |
1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1508 | ||
1509 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1510 | # Check for guested configure. | |
1511 | if test -f "$ac_srcdir/configure.gnu"; then | |
1512 | echo && | |
1513 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1514 | elif test -f "$ac_srcdir/configure"; then | |
1515 | echo && | |
1516 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1517 | else |
daae650d | 1518 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
5e0d2ebf DS |
1519 | fi || ac_status=$? |
1520 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1521 | done |
1522 | fi | |
1523 | ||
5e0d2ebf | 1524 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1525 | if $ac_init_version; then |
1526 | cat <<\_ACEOF | |
70f5a7b3 | 1527 | systemtap configure 0.8 |
daae650d | 1528 | generated by GNU Autoconf 2.63 |
2f1a1aea | 1529 | |
5e0d2ebf | 1530 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
daae650d | 1531 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
1532 | This configure script is free software; the Free Software Foundation |
1533 | gives unlimited permission to copy, distribute and modify it. | |
1534 | _ACEOF | |
5e0d2ebf | 1535 | exit |
2f1a1aea | 1536 | fi |
5e0d2ebf | 1537 | cat >config.log <<_ACEOF |
2f1a1aea FCE |
1538 | This file contains any messages produced by compilers while |
1539 | running configure, to aid debugging if configure makes a mistake. | |
1540 | ||
70f5a7b3 | 1541 | It was created by systemtap $as_me 0.8, which was |
daae650d | 1542 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea FCE |
1543 | |
1544 | $ $0 $@ | |
1545 | ||
1546 | _ACEOF | |
5e0d2ebf | 1547 | exec 5>>config.log |
2f1a1aea FCE |
1548 | { |
1549 | cat <<_ASUNAME | |
1550 | ## --------- ## | |
1551 | ## Platform. ## | |
1552 | ## --------- ## | |
1553 | ||
1554 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1555 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1556 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1557 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1558 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1559 | ||
1560 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1561 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1562 | ||
1563 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1564 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1565 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5e0d2ebf | 1566 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2f1a1aea FCE |
1567 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1568 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1569 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1570 | ||
1571 | _ASUNAME | |
1572 | ||
1573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1574 | for as_dir in $PATH | |
1575 | do | |
1576 | IFS=$as_save_IFS | |
1577 | test -z "$as_dir" && as_dir=. | |
daae650d | 1578 | $as_echo "PATH: $as_dir" |
2f1a1aea | 1579 | done |
5e0d2ebf | 1580 | IFS=$as_save_IFS |
2f1a1aea FCE |
1581 | |
1582 | } >&5 | |
1583 | ||
1584 | cat >&5 <<_ACEOF | |
1585 | ||
1586 | ||
1587 | ## ----------- ## | |
1588 | ## Core tests. ## | |
1589 | ## ----------- ## | |
1590 | ||
1591 | _ACEOF | |
1592 | ||
1593 | ||
1594 | # Keep a trace of the command line. | |
1595 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1596 | # Strip out --silent because we don't want to record it for future runs. | |
1597 | # Also quote any args containing shell meta-characters. | |
1598 | # Make two passes to allow for proper duplicate-argument suppression. | |
1599 | ac_configure_args= | |
1600 | ac_configure_args0= | |
1601 | ac_configure_args1= | |
2f1a1aea FCE |
1602 | ac_must_keep_next=false |
1603 | for ac_pass in 1 2 | |
1604 | do | |
1605 | for ac_arg | |
1606 | do | |
1607 | case $ac_arg in | |
1608 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1609 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1610 | | -silent | --silent | --silen | --sile | --sil) | |
1611 | continue ;; | |
5e0d2ebf | 1612 | *\'*) |
daae650d | 1613 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1614 | esac |
1615 | case $ac_pass in | |
1616 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1617 | 2) | |
1618 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1619 | if test $ac_must_keep_next = true; then | |
1620 | ac_must_keep_next=false # Got value, back to normal. | |
1621 | else | |
1622 | case $ac_arg in | |
1623 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1624 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1625 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1626 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1627 | case "$ac_configure_args0 " in | |
1628 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1629 | esac | |
1630 | ;; | |
1631 | -* ) ac_must_keep_next=true ;; | |
1632 | esac | |
1633 | fi | |
5e0d2ebf | 1634 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2f1a1aea FCE |
1635 | ;; |
1636 | esac | |
1637 | done | |
1638 | done | |
1639 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1640 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1641 | ||
1642 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1643 | # config.log. We remove comments because anyway the quotes in there | |
1644 | # would cause problems or look ugly. | |
5e0d2ebf DS |
1645 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1646 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
1647 | trap 'exit_status=$? |
1648 | # Save into config.log some information that might help in debugging. | |
1649 | { | |
1650 | echo | |
1651 | ||
1652 | cat <<\_ASBOX | |
1653 | ## ---------------- ## | |
1654 | ## Cache variables. ## | |
1655 | ## ---------------- ## | |
1656 | _ASBOX | |
1657 | echo | |
1658 | # The following way of writing the cache mishandles newlines in values, | |
5e0d2ebf DS |
1659 | ( |
1660 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1661 | eval ac_val=\$$ac_var | |
1662 | case $ac_val in #( | |
1663 | *${as_nl}*) | |
1664 | case $ac_var in #( | |
daae650d MW |
1665 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1666 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5e0d2ebf DS |
1667 | esac |
1668 | case $ac_var in #( | |
1669 | _ | IFS | as_nl) ;; #( | |
daae650d | 1670 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5e0d2ebf DS |
1671 | *) $as_unset $ac_var ;; |
1672 | esac ;; | |
1673 | esac | |
1674 | done | |
2f1a1aea | 1675 | (set) 2>&1 | |
5e0d2ebf DS |
1676 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1677 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 1678 | sed -n \ |
5e0d2ebf DS |
1679 | "s/'\''/'\''\\\\'\'''\''/g; |
1680 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1681 | ;; #( | |
2f1a1aea | 1682 | *) |
5e0d2ebf | 1683 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 1684 | ;; |
5e0d2ebf DS |
1685 | esac | |
1686 | sort | |
1687 | ) | |
2f1a1aea FCE |
1688 | echo |
1689 | ||
1690 | cat <<\_ASBOX | |
1691 | ## ----------------- ## | |
1692 | ## Output variables. ## | |
1693 | ## ----------------- ## | |
1694 | _ASBOX | |
1695 | echo | |
1696 | for ac_var in $ac_subst_vars | |
1697 | do | |
5e0d2ebf DS |
1698 | eval ac_val=\$$ac_var |
1699 | case $ac_val in | |
daae650d | 1700 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
5e0d2ebf | 1701 | esac |
daae650d | 1702 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1703 | done | sort |
1704 | echo | |
1705 | ||
1706 | if test -n "$ac_subst_files"; then | |
1707 | cat <<\_ASBOX | |
5e0d2ebf DS |
1708 | ## ------------------- ## |
1709 | ## File substitutions. ## | |
1710 | ## ------------------- ## | |
2f1a1aea FCE |
1711 | _ASBOX |
1712 | echo | |
1713 | for ac_var in $ac_subst_files | |
1714 | do | |
5e0d2ebf DS |
1715 | eval ac_val=\$$ac_var |
1716 | case $ac_val in | |
daae650d | 1717 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
5e0d2ebf | 1718 | esac |
daae650d | 1719 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
1720 | done | sort |
1721 | echo | |
1722 | fi | |
1723 | ||
1724 | if test -s confdefs.h; then | |
1725 | cat <<\_ASBOX | |
1726 | ## ----------- ## | |
1727 | ## confdefs.h. ## | |
1728 | ## ----------- ## | |
1729 | _ASBOX | |
1730 | echo | |
5e0d2ebf | 1731 | cat confdefs.h |
2f1a1aea FCE |
1732 | echo |
1733 | fi | |
1734 | test "$ac_signal" != 0 && | |
daae650d MW |
1735 | $as_echo "$as_me: caught signal $ac_signal" |
1736 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 1737 | } >&5 |
5e0d2ebf DS |
1738 | rm -f core *.core core.conftest.* && |
1739 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 1740 | exit $exit_status |
5e0d2ebf | 1741 | ' 0 |
2f1a1aea FCE |
1742 | for ac_signal in 1 2 13 15; do |
1743 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1744 | done | |
1745 | ac_signal=0 | |
1746 | ||
1747 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5e0d2ebf | 1748 | rm -f -r conftest* confdefs.h |
2f1a1aea FCE |
1749 | |
1750 | # Predefined preprocessor variables. | |
1751 | ||
1752 | cat >>confdefs.h <<_ACEOF | |
1753 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1754 | _ACEOF | |
1755 | ||
1756 | ||
1757 | cat >>confdefs.h <<_ACEOF | |
1758 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1759 | _ACEOF | |
1760 | ||
1761 | ||
1762 | cat >>confdefs.h <<_ACEOF | |
1763 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1764 | _ACEOF | |
1765 | ||
1766 | ||
1767 | cat >>confdefs.h <<_ACEOF | |
1768 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1769 | _ACEOF | |
1770 | ||
1771 | ||
1772 | cat >>confdefs.h <<_ACEOF | |
1773 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1774 | _ACEOF | |
1775 | ||
1776 | ||
1777 | # Let the site file select an alternate cache file if it wants to. | |
daae650d MW |
1778 | # Prefer an explicitly selected file to automatically selected ones. |
1779 | ac_site_file1=NONE | |
1780 | ac_site_file2=NONE | |
5e0d2ebf | 1781 | if test -n "$CONFIG_SITE"; then |
daae650d | 1782 | ac_site_file1=$CONFIG_SITE |
5e0d2ebf | 1783 | elif test "x$prefix" != xNONE; then |
daae650d MW |
1784 | ac_site_file1=$prefix/share/config.site |
1785 | ac_site_file2=$prefix/etc/config.site | |
5e0d2ebf | 1786 | else |
daae650d MW |
1787 | ac_site_file1=$ac_default_prefix/share/config.site |
1788 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2f1a1aea | 1789 | fi |
daae650d | 1790 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
5e0d2ebf | 1791 | do |
daae650d | 1792 | test "x$ac_site_file" = xNONE && continue |
2f1a1aea | 1793 | if test -r "$ac_site_file"; then |
daae650d MW |
1794 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1795 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2f1a1aea FCE |
1796 | sed 's/^/| /' "$ac_site_file" >&5 |
1797 | . "$ac_site_file" | |
1798 | fi | |
1799 | done | |
1800 | ||
1801 | if test -r "$cache_file"; then | |
1802 | # Some versions of bash will fail to source /dev/null (special | |
1803 | # files actually), so we avoid doing that. | |
1804 | if test -f "$cache_file"; then | |
daae650d MW |
1805 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1806 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2f1a1aea | 1807 | case $cache_file in |
5e0d2ebf DS |
1808 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1809 | *) . "./$cache_file";; | |
2f1a1aea FCE |
1810 | esac |
1811 | fi | |
1812 | else | |
daae650d MW |
1813 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1814 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2f1a1aea FCE |
1815 | >$cache_file |
1816 | fi | |
1817 | ||
1818 | # Check that the precious variables saved in the cache have kept the same | |
1819 | # value. | |
1820 | ac_cache_corrupted=false | |
5e0d2ebf | 1821 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
1822 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1823 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5e0d2ebf DS |
1824 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1825 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
1826 | case $ac_old_set,$ac_new_set in |
1827 | set,) | |
daae650d MW |
1828 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1829 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2f1a1aea FCE |
1830 | ac_cache_corrupted=: ;; |
1831 | ,set) | |
daae650d MW |
1832 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1833 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2f1a1aea FCE |
1834 | ac_cache_corrupted=: ;; |
1835 | ,);; | |
1836 | *) | |
1837 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
daae650d MW |
1838 | # differences in whitespace do not lead to failure. |
1839 | ac_old_val_w=`echo x $ac_old_val` | |
1840 | ac_new_val_w=`echo x $ac_new_val` | |
1841 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1842 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1843 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1844 | ac_cache_corrupted=: | |
1845 | else | |
1846 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1847 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1848 | eval $ac_var=\$ac_old_val | |
1849 | fi | |
1850 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1851 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1852 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1853 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2f1a1aea FCE |
1854 | fi;; |
1855 | esac | |
1856 | # Pass precious variables to config.status. | |
1857 | if test "$ac_new_set" = set; then | |
1858 | case $ac_new_val in | |
daae650d | 1859 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
1860 | *) ac_arg=$ac_var=$ac_new_val ;; |
1861 | esac | |
1862 | case " $ac_configure_args " in | |
1863 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1864 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1865 | esac | |
1866 | fi | |
1867 | done | |
1868 | if $ac_cache_corrupted; then | |
daae650d MW |
1869 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1871 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1872 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1873 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1874 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2f1a1aea FCE |
1875 | { (exit 1); exit 1; }; } |
1876 | fi | |
1877 | ||
8ae7a94a | 1878 | |
2f1a1aea FCE |
1879 | |
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | ||
1885 | ||
1886 | ||
1887 | ||
1888 | ||
1889 | ||
1890 | ||
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
5e0d2ebf DS |
1902 | ac_ext=c |
1903 | ac_cpp='$CPP $CPPFLAGS' | |
1904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
1907 | |
1908 | ||
1909 | ||
2f1a1aea | 1910 | |
10b20266 FCE |
1911 | am__api_version='1.10' |
1912 | ||
2f1a1aea | 1913 | ac_aux_dir= |
5e0d2ebf DS |
1914 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1915 | if test -f "$ac_dir/install-sh"; then | |
2f1a1aea FCE |
1916 | ac_aux_dir=$ac_dir |
1917 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1918 | break | |
5e0d2ebf | 1919 | elif test -f "$ac_dir/install.sh"; then |
2f1a1aea FCE |
1920 | ac_aux_dir=$ac_dir |
1921 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1922 | break | |
5e0d2ebf | 1923 | elif test -f "$ac_dir/shtool"; then |
2f1a1aea FCE |
1924 | ac_aux_dir=$ac_dir |
1925 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1926 | break | |
1927 | fi | |
1928 | done | |
1929 | if test -z "$ac_aux_dir"; then | |
daae650d MW |
1930 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1931 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2f1a1aea FCE |
1932 | { (exit 1); exit 1; }; } |
1933 | fi | |
5e0d2ebf DS |
1934 | |
1935 | # These three variables are undocumented and unsupported, | |
1936 | # and are intended to be withdrawn in a future Autoconf release. | |
1937 | # They can cause serious problems if a builder's source tree is in a directory | |
1938 | # whose full name contains unusual characters. | |
1939 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1940 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1941 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1942 | ||
2f1a1aea FCE |
1943 | |
1944 | # Find a good install program. We prefer a C program (faster), | |
1945 | # so one script is as good as another. But avoid the broken or | |
1946 | # incompatible versions: | |
1947 | # SysV /etc/install, /usr/sbin/install | |
1948 | # SunOS /usr/etc/install | |
1949 | # IRIX /sbin/install | |
1950 | # AIX /bin/install | |
1951 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1952 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1953 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1954 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1955 | # OS/2's system install, which has a completely different semantic | |
1956 | # ./install, which can be erroneously created by make from ./install.sh. | |
daae650d MW |
1957 | # Reject install programs that cannot install multiple files. |
1958 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1959 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
1960 | if test -z "$INSTALL"; then |
1961 | if test "${ac_cv_path_install+set}" = set; then | |
daae650d | 1962 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
1963 | else |
1964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1965 | for as_dir in $PATH | |
1966 | do | |
1967 | IFS=$as_save_IFS | |
1968 | test -z "$as_dir" && as_dir=. | |
1969 | # Account for people who put trailing slashes in PATH elements. | |
1970 | case $as_dir/ in | |
1971 | ./ | .// | /cC/* | \ | |
1972 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1973 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1974 | /usr/ucb/* ) ;; | |
1975 | *) | |
1976 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1977 | # Don't use installbsd from OSF since it installs stuff as root | |
1978 | # by default. | |
1979 | for ac_prog in ginstall scoinst install; do | |
1980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 1981 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
1982 | if test $ac_prog = install && |
1983 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1984 | # AIX install. It has an incompatible calling convention. | |
1985 | : | |
1986 | elif test $ac_prog = install && | |
1987 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1988 | # program-specific install script used by HP pwplus--don't use. | |
1989 | : | |
1990 | else | |
daae650d MW |
1991 | rm -rf conftest.one conftest.two conftest.dir |
1992 | echo one > conftest.one | |
1993 | echo two > conftest.two | |
1994 | mkdir conftest.dir | |
1995 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1996 | test -s conftest.one && test -s conftest.two && | |
1997 | test -s conftest.dir/conftest.one && | |
1998 | test -s conftest.dir/conftest.two | |
1999 | then | |
2000 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2001 | break 3 | |
2002 | fi | |
2f1a1aea FCE |
2003 | fi |
2004 | fi | |
2005 | done | |
2006 | done | |
2007 | ;; | |
2008 | esac | |
daae650d | 2009 | |
2f1a1aea | 2010 | done |
5e0d2ebf | 2011 | IFS=$as_save_IFS |
2f1a1aea | 2012 | |
daae650d | 2013 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2014 | |
2015 | fi | |
2016 | if test "${ac_cv_path_install+set}" = set; then | |
2017 | INSTALL=$ac_cv_path_install | |
2018 | else | |
5e0d2ebf DS |
2019 | # As a last resort, use the slow shell script. Don't cache a |
2020 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2021 | # break other packages using the cache if that directory is |
5e0d2ebf | 2022 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2023 | INSTALL=$ac_install_sh |
2024 | fi | |
2025 | fi | |
daae650d MW |
2026 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2027 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
2028 | |
2029 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2030 | # It thinks the first close brace ends the variable substitution. | |
2031 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2032 | ||
2033 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2034 | ||
2035 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2036 | ||
daae650d MW |
2037 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2038 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2f1a1aea FCE |
2039 | # Just in case |
2040 | sleep 1 | |
2041 | echo timestamp > conftest.file | |
2042 | # Do `set' in a subshell so we don't clobber the current shell's | |
2043 | # arguments. Must try -L first in case configure is actually a | |
2044 | # symlink; some systems play weird games with the mod time of symlinks | |
2045 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2046 | # directory). | |
2047 | if ( | |
2048 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2049 | if test "$*" = "X"; then | |
2050 | # -L didn't work. | |
2051 | set X `ls -t $srcdir/configure conftest.file` | |
2052 | fi | |
2053 | rm -f conftest.file | |
2054 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2055 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2056 | ||
2057 | # If neither matched, then we have a broken ls. This can happen | |
2058 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2059 | # broken ls alias from the environment. This has actually | |
2060 | # happened. Such a system could not be considered "sane". | |
daae650d | 2061 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea | 2062 | alias in your environment" >&5 |
daae650d | 2063 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2f1a1aea FCE |
2064 | alias in your environment" >&2;} |
2065 | { (exit 1); exit 1; }; } | |
2066 | fi | |
2067 | ||
2068 | test "$2" = conftest.file | |
2069 | ) | |
2070 | then | |
2071 | # Ok. | |
2072 | : | |
2073 | else | |
daae650d | 2074 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2f1a1aea | 2075 | Check your system clock" >&5 |
daae650d | 2076 | $as_echo "$as_me: error: newly created file is older than distributed files! |
2f1a1aea FCE |
2077 | Check your system clock" >&2;} |
2078 | { (exit 1); exit 1; }; } | |
2079 | fi | |
daae650d MW |
2080 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2081 | $as_echo "yes" >&6; } | |
2f1a1aea | 2082 | test "$program_prefix" != NONE && |
5e0d2ebf | 2083 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2084 | # Use a double $ so make ignores it. |
2085 | test "$program_suffix" != NONE && | |
5e0d2ebf | 2086 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
daae650d | 2087 | # Double any \ or $. |
2f1a1aea | 2088 | # By default was `s,x,x', remove it if useless. |
daae650d MW |
2089 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2090 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2091 | |
2092 | # expand $ac_aux_dir to an absolute path | |
2093 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2094 | ||
2095 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2096 | # Use eval to expand $SHELL | |
2097 | if eval "$MISSING --run true"; then | |
2098 | am_missing_run="$MISSING --run " | |
2099 | else | |
2100 | am_missing_run= | |
daae650d MW |
2101 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2102 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2f1a1aea FCE |
2103 | fi |
2104 | ||
daae650d MW |
2105 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2106 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
10b20266 FCE |
2107 | if test -z "$MKDIR_P"; then |
2108 | if test "${ac_cv_path_mkdir+set}" = set; then | |
daae650d | 2109 | $as_echo_n "(cached) " >&6 |
10b20266 FCE |
2110 | else |
2111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2112 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2113 | do | |
2114 | IFS=$as_save_IFS | |
2115 | test -z "$as_dir" && as_dir=. | |
2116 | for ac_prog in mkdir gmkdir; do | |
2117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2118 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2119 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2120 | 'mkdir (GNU coreutils) '* | \ | |
2121 | 'mkdir (coreutils) '* | \ | |
2122 | 'mkdir (fileutils) '4.1*) | |
2123 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2124 | break 3;; | |
2125 | esac | |
2126 | done | |
2127 | done | |
2128 | done | |
2129 | IFS=$as_save_IFS | |
2130 | ||
2131 | fi | |
2132 | ||
2133 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2134 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2135 | else |
10b20266 FCE |
2136 | # As a last resort, use the slow shell script. Don't cache a |
2137 | # value for MKDIR_P within a source directory, because that will | |
2138 | # break other packages using the cache if that directory is | |
2139 | # removed, or if the value is a relative name. | |
2140 | test -d ./--version && rmdir ./--version | |
2141 | MKDIR_P="$ac_install_sh -d" | |
2f1a1aea FCE |
2142 | fi |
2143 | fi | |
daae650d MW |
2144 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2145 | $as_echo "$MKDIR_P" >&6; } | |
10b20266 FCE |
2146 | |
2147 | mkdir_p="$MKDIR_P" | |
2148 | case $mkdir_p in | |
2149 | [\\/$]* | ?:[\\/]*) ;; | |
2150 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2151 | esac | |
2f1a1aea FCE |
2152 | |
2153 | for ac_prog in gawk mawk nawk awk | |
2154 | do | |
2155 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2156 | set dummy $ac_prog; ac_word=$2 | |
daae650d MW |
2157 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2158 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2159 | if test "${ac_cv_prog_AWK+set}" = set; then |
daae650d | 2160 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2161 | else |
2162 | if test -n "$AWK"; then | |
2163 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2164 | else | |
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2166 | for as_dir in $PATH | |
2167 | do | |
2168 | IFS=$as_save_IFS | |
2169 | test -z "$as_dir" && as_dir=. | |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2172 | ac_cv_prog_AWK="$ac_prog" |
daae650d | 2173 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2174 | break 2 |
2175 | fi | |
2176 | done | |
2177 | done | |
5e0d2ebf | 2178 | IFS=$as_save_IFS |
2f1a1aea FCE |
2179 | |
2180 | fi | |
2181 | fi | |
2182 | AWK=$ac_cv_prog_AWK | |
2183 | if test -n "$AWK"; then | |
daae650d MW |
2184 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2185 | $as_echo "$AWK" >&6; } | |
2f1a1aea | 2186 | else |
daae650d MW |
2187 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2188 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2189 | fi |
2190 | ||
5e0d2ebf | 2191 | |
2f1a1aea FCE |
2192 | test -n "$AWK" && break |
2193 | done | |
2194 | ||
daae650d MW |
2195 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2196 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2197 | set x ${MAKE-make} | |
2198 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5e0d2ebf | 2199 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 2200 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2201 | else |
2202 | cat >conftest.make <<\_ACEOF | |
5e0d2ebf | 2203 | SHELL = /bin/sh |
2f1a1aea | 2204 | all: |
5e0d2ebf | 2205 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
2206 | _ACEOF |
2207 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5e0d2ebf DS |
2208 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2209 | *@@@%%%=?*=@@@%%%*) | |
2210 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2211 | *) | |
2212 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2213 | esac | |
2f1a1aea FCE |
2214 | rm -f conftest.make |
2215 | fi | |
5e0d2ebf | 2216 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
daae650d MW |
2217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2218 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
2219 | SET_MAKE= |
2220 | else | |
daae650d MW |
2221 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2222 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2223 | SET_MAKE="MAKE=${MAKE-make}" |
2224 | fi | |
2225 | ||
2226 | rm -rf .tst 2>/dev/null | |
2227 | mkdir .tst 2>/dev/null | |
2228 | if test -d .tst; then | |
2229 | am__leading_dot=. | |
2230 | else | |
2231 | am__leading_dot=_ | |
2232 | fi | |
2233 | rmdir .tst 2>/dev/null | |
2234 | ||
10b20266 FCE |
2235 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2236 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2237 | # is not polluted with repeated "-I." | |
2238 | am__isrc=' -I$(srcdir)' | |
2239 | # test to see if srcdir already configured | |
2240 | if test -f $srcdir/config.status; then | |
daae650d MW |
2241 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2242 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2f1a1aea | 2243 | { (exit 1); exit 1; }; } |
10b20266 | 2244 | fi |
2f1a1aea FCE |
2245 | fi |
2246 | ||
2247 | # test whether we have cygpath | |
2248 | if test -z "$CYGPATH_W"; then | |
2249 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2250 | CYGPATH_W='cygpath -w' | |
2251 | else | |
2252 | CYGPATH_W=echo | |
2253 | fi | |
2254 | fi | |
2255 | ||
2256 | ||
2257 | # Define the identity of the package. | |
2258 | PACKAGE='systemtap' | |
70f5a7b3 | 2259 | VERSION='0.8' |
2f1a1aea FCE |
2260 | |
2261 | ||
2262 | cat >>confdefs.h <<_ACEOF | |
2263 | #define PACKAGE "$PACKAGE" | |
2264 | _ACEOF | |
2265 | ||
2266 | ||
2267 | cat >>confdefs.h <<_ACEOF | |
2268 | #define VERSION "$VERSION" | |
2269 | _ACEOF | |
2270 | ||
2271 | # Some tools Automake needs. | |
2272 | ||
2273 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2274 | ||
2275 | ||
2276 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2277 | ||
2278 | ||
2279 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2280 | ||
2281 | ||
2282 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2283 | ||
2284 | ||
2285 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2286 | ||
10b20266 | 2287 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
2f1a1aea FCE |
2288 | |
2289 | # Installed binaries are usually stripped using `strip' when the user | |
2290 | # run `make install-strip'. However `strip' might not be the right | |
2291 | # tool to use in cross-compilation environments, therefore Automake | |
2292 | # will honor the `STRIP' environment variable to overrule this program. | |
2293 | if test "$cross_compiling" != no; then | |
2294 | if test -n "$ac_tool_prefix"; then | |
2295 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2296 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
daae650d MW |
2297 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2298 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2299 | if test "${ac_cv_prog_STRIP+set}" = set; then |
daae650d | 2300 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2301 | else |
2302 | if test -n "$STRIP"; then | |
2303 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2304 | else | |
2305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2306 | for as_dir in $PATH | |
2307 | do | |
2308 | IFS=$as_save_IFS | |
2309 | test -z "$as_dir" && as_dir=. | |
2310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2312 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
daae650d | 2313 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2314 | break 2 |
2315 | fi | |
2316 | done | |
2317 | done | |
5e0d2ebf | 2318 | IFS=$as_save_IFS |
2f1a1aea FCE |
2319 | |
2320 | fi | |
2321 | fi | |
2322 | STRIP=$ac_cv_prog_STRIP | |
2323 | if test -n "$STRIP"; then | |
daae650d MW |
2324 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
2325 | $as_echo "$STRIP" >&6; } | |
2f1a1aea | 2326 | else |
daae650d MW |
2327 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2328 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2329 | fi |
2330 | ||
5e0d2ebf | 2331 | |
2f1a1aea FCE |
2332 | fi |
2333 | if test -z "$ac_cv_prog_STRIP"; then | |
2334 | ac_ct_STRIP=$STRIP | |
2335 | # Extract the first word of "strip", so it can be a program name with args. | |
2336 | set dummy strip; ac_word=$2 | |
daae650d MW |
2337 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2338 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2339 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
daae650d | 2340 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2341 | else |
2342 | if test -n "$ac_ct_STRIP"; then | |
2343 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2344 | else | |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2346 | for as_dir in $PATH | |
2347 | do | |
2348 | IFS=$as_save_IFS | |
2349 | test -z "$as_dir" && as_dir=. | |
2350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2352 | ac_cv_prog_ac_ct_STRIP="strip" |
daae650d | 2353 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2354 | break 2 |
2355 | fi | |
2356 | done | |
2357 | done | |
5e0d2ebf | 2358 | IFS=$as_save_IFS |
2f1a1aea | 2359 | |
2f1a1aea FCE |
2360 | fi |
2361 | fi | |
2362 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2363 | if test -n "$ac_ct_STRIP"; then | |
daae650d MW |
2364 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2365 | $as_echo "$ac_ct_STRIP" >&6; } | |
2f1a1aea | 2366 | else |
daae650d MW |
2367 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2368 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2369 | fi |
2370 | ||
5e0d2ebf DS |
2371 | if test "x$ac_ct_STRIP" = x; then |
2372 | STRIP=":" | |
2373 | else | |
2374 | case $cross_compiling:$ac_tool_warned in | |
2375 | yes:) | |
daae650d MW |
2376 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2377 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
2378 | ac_tool_warned=yes ;; |
2379 | esac | |
2380 | STRIP=$ac_ct_STRIP | |
2381 | fi | |
2f1a1aea FCE |
2382 | else |
2383 | STRIP="$ac_cv_prog_STRIP" | |
2384 | fi | |
2385 | ||
2386 | fi | |
10b20266 | 2387 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2f1a1aea FCE |
2388 | |
2389 | # We need awk for the "check" target. The system "awk" is bad on | |
2390 | # some platforms. | |
2391 | # Always define AMTAR for backward compatibility. | |
2392 | ||
2393 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2394 | ||
2395 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2396 | ||
2397 | ||
2398 | ||
2399 | ||
2400 | ||
daae650d MW |
2401 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2402 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5e0d2ebf | 2403 | # Check whether --enable-maintainer-mode was given. |
2f1a1aea | 2404 | if test "${enable_maintainer_mode+set}" = set; then |
5e0d2ebf | 2405 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
2406 | else |
2407 | USE_MAINTAINER_MODE=no | |
5e0d2ebf | 2408 | fi |
2f1a1aea | 2409 | |
daae650d MW |
2410 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2411 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
10b20266 | 2412 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
2413 | MAINTAINER_MODE_TRUE= |
2414 | MAINTAINER_MODE_FALSE='#' | |
2415 | else | |
2416 | MAINTAINER_MODE_TRUE='#' | |
2417 | MAINTAINER_MODE_FALSE= | |
2418 | fi | |
2419 | ||
2420 | MAINT=$MAINTAINER_MODE_TRUE | |
2421 | ||
2422 | ||
2423 | ||
87cb1275 MW |
2424 | mkdir_p="$MKDIR_P" |
2425 | case $mkdir_p in | |
2426 | [\\/$]* | ?:[\\/]*) ;; | |
2427 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2428 | esac | |
98aab489 | 2429 | |
daae650d MW |
2430 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2431 | $as_echo_n "checking whether ln -s works... " >&6; } | |
2f1a1aea FCE |
2432 | LN_S=$as_ln_s |
2433 | if test "$LN_S" = "ln -s"; then | |
daae650d MW |
2434 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2435 | $as_echo "yes" >&6; } | |
2f1a1aea | 2436 | else |
daae650d MW |
2437 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2438 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
2439 | fi |
2440 | ||
2441 | ac_ext=c | |
2442 | ac_cpp='$CPP $CPPFLAGS' | |
2443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2446 | if test -n "$ac_tool_prefix"; then | |
2447 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2448 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
daae650d MW |
2449 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2450 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2451 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 2452 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2453 | else |
2454 | if test -n "$CC"; then | |
2455 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2456 | else | |
2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2458 | for as_dir in $PATH | |
2459 | do | |
2460 | IFS=$as_save_IFS | |
2461 | test -z "$as_dir" && as_dir=. | |
2462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2464 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
daae650d | 2465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2466 | break 2 |
2467 | fi | |
2468 | done | |
2469 | done | |
5e0d2ebf | 2470 | IFS=$as_save_IFS |
2f1a1aea FCE |
2471 | |
2472 | fi | |
2473 | fi | |
2474 | CC=$ac_cv_prog_CC | |
2475 | if test -n "$CC"; then | |
daae650d MW |
2476 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2477 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2478 | else |
daae650d MW |
2479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2480 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2481 | fi |
2482 | ||
5e0d2ebf | 2483 | |
2f1a1aea FCE |
2484 | fi |
2485 | if test -z "$ac_cv_prog_CC"; then | |
2486 | ac_ct_CC=$CC | |
2487 | # Extract the first word of "gcc", so it can be a program name with args. | |
2488 | set dummy gcc; ac_word=$2 | |
daae650d MW |
2489 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2490 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2491 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
daae650d | 2492 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2493 | else |
2494 | if test -n "$ac_ct_CC"; then | |
2495 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2496 | else | |
2497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2498 | for as_dir in $PATH | |
2499 | do | |
2500 | IFS=$as_save_IFS | |
2501 | test -z "$as_dir" && as_dir=. | |
2502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2504 | ac_cv_prog_ac_ct_CC="gcc" |
daae650d | 2505 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2506 | break 2 |
2507 | fi | |
2508 | done | |
2509 | done | |
5e0d2ebf | 2510 | IFS=$as_save_IFS |
2f1a1aea FCE |
2511 | |
2512 | fi | |
2513 | fi | |
2514 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2515 | if test -n "$ac_ct_CC"; then | |
daae650d MW |
2516 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2517 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2518 | else |
daae650d MW |
2519 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2520 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2521 | fi |
2522 | ||
5e0d2ebf DS |
2523 | if test "x$ac_ct_CC" = x; then |
2524 | CC="" | |
2525 | else | |
2526 | case $cross_compiling:$ac_tool_warned in | |
2527 | yes:) | |
daae650d MW |
2528 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
2530 | ac_tool_warned=yes ;; |
2531 | esac | |
2532 | CC=$ac_ct_CC | |
2533 | fi | |
2f1a1aea FCE |
2534 | else |
2535 | CC="$ac_cv_prog_CC" | |
2536 | fi | |
2537 | ||
2538 | if test -z "$CC"; then | |
5e0d2ebf DS |
2539 | if test -n "$ac_tool_prefix"; then |
2540 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 2541 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
daae650d MW |
2542 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2543 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2544 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 2545 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2546 | else |
2547 | if test -n "$CC"; then | |
2548 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2549 | else | |
2550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2551 | for as_dir in $PATH | |
2552 | do | |
2553 | IFS=$as_save_IFS | |
2554 | test -z "$as_dir" && as_dir=. | |
2555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2557 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
daae650d | 2558 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2559 | break 2 |
2560 | fi | |
2561 | done | |
2562 | done | |
5e0d2ebf | 2563 | IFS=$as_save_IFS |
2f1a1aea FCE |
2564 | |
2565 | fi | |
2566 | fi | |
2567 | CC=$ac_cv_prog_CC | |
2568 | if test -n "$CC"; then | |
daae650d MW |
2569 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2570 | $as_echo "$CC" >&6; } | |
8ae7a94a | 2571 | else |
daae650d MW |
2572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2573 | $as_echo "no" >&6; } | |
8ae7a94a FCE |
2574 | fi |
2575 | ||
8ae7a94a | 2576 | |
5e0d2ebf | 2577 | fi |
2f1a1aea FCE |
2578 | fi |
2579 | if test -z "$CC"; then | |
2580 | # Extract the first word of "cc", so it can be a program name with args. | |
2581 | set dummy cc; ac_word=$2 | |
daae650d MW |
2582 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2583 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2584 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 2585 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2586 | else |
2587 | if test -n "$CC"; then | |
2588 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2589 | else | |
2590 | ac_prog_rejected=no | |
2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2592 | for as_dir in $PATH | |
2593 | do | |
2594 | IFS=$as_save_IFS | |
2595 | test -z "$as_dir" && as_dir=. | |
2596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
2598 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2599 | ac_prog_rejected=yes | |
2600 | continue | |
2601 | fi | |
2602 | ac_cv_prog_CC="cc" | |
daae650d | 2603 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2604 | break 2 |
2605 | fi | |
2606 | done | |
2607 | done | |
5e0d2ebf | 2608 | IFS=$as_save_IFS |
2f1a1aea FCE |
2609 | |
2610 | if test $ac_prog_rejected = yes; then | |
2611 | # We found a bogon in the path, so make sure we never use it. | |
2612 | set dummy $ac_cv_prog_CC | |
2613 | shift | |
2614 | if test $# != 0; then | |
2615 | # We chose a different compiler from the bogus one. | |
2616 | # However, it has the same basename, so the bogon will be chosen | |
2617 | # first if we set CC to just the basename; use the full file name. | |
2618 | shift | |
2619 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2620 | fi | |
2621 | fi | |
2622 | fi | |
2623 | fi | |
2624 | CC=$ac_cv_prog_CC | |
2625 | if test -n "$CC"; then | |
daae650d MW |
2626 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2627 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2628 | else |
daae650d MW |
2629 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2630 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2631 | fi |
2632 | ||
5e0d2ebf | 2633 | |
2f1a1aea FCE |
2634 | fi |
2635 | if test -z "$CC"; then | |
2636 | if test -n "$ac_tool_prefix"; then | |
5e0d2ebf | 2637 | for ac_prog in cl.exe |
2f1a1aea FCE |
2638 | do |
2639 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2640 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
daae650d MW |
2641 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2642 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2643 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 2644 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2645 | else |
2646 | if test -n "$CC"; then | |
2647 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2648 | else | |
2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2650 | for as_dir in $PATH | |
2651 | do | |
2652 | IFS=$as_save_IFS | |
2653 | test -z "$as_dir" && as_dir=. | |
2654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2656 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
daae650d | 2657 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2658 | break 2 |
2659 | fi | |
2660 | done | |
2661 | done | |
5e0d2ebf | 2662 | IFS=$as_save_IFS |
2f1a1aea FCE |
2663 | |
2664 | fi | |
2665 | fi | |
2666 | CC=$ac_cv_prog_CC | |
2667 | if test -n "$CC"; then | |
daae650d MW |
2668 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2669 | $as_echo "$CC" >&6; } | |
2f1a1aea | 2670 | else |
daae650d MW |
2671 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2672 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2673 | fi |
2674 | ||
5e0d2ebf | 2675 | |
2f1a1aea FCE |
2676 | test -n "$CC" && break |
2677 | done | |
2678 | fi | |
2679 | if test -z "$CC"; then | |
2680 | ac_ct_CC=$CC | |
5e0d2ebf | 2681 | for ac_prog in cl.exe |
2f1a1aea FCE |
2682 | do |
2683 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2684 | set dummy $ac_prog; ac_word=$2 | |
daae650d MW |
2685 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2686 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 2687 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
daae650d | 2688 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2689 | else |
2690 | if test -n "$ac_ct_CC"; then | |
2691 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2692 | else | |
2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2694 | for as_dir in $PATH | |
2695 | do | |
2696 | IFS=$as_save_IFS | |
2697 | test -z "$as_dir" && as_dir=. | |
2698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 2699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2700 | ac_cv_prog_ac_ct_CC="$ac_prog" |
daae650d | 2701 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2702 | break 2 |
2703 | fi | |
2704 | done | |
2705 | done | |
5e0d2ebf | 2706 | IFS=$as_save_IFS |
2f1a1aea FCE |
2707 | |
2708 | fi | |
2709 | fi | |
2710 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2711 | if test -n "$ac_ct_CC"; then | |
daae650d MW |
2712 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2713 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 2714 | else |
daae650d MW |
2715 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2716 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
2717 | fi |
2718 | ||
5e0d2ebf | 2719 | |
2f1a1aea FCE |
2720 | test -n "$ac_ct_CC" && break |
2721 | done | |
2722 | ||
5e0d2ebf DS |
2723 | if test "x$ac_ct_CC" = x; then |
2724 | CC="" | |
2725 | else | |
2726 | case $cross_compiling:$ac_tool_warned in | |
2727 | yes:) | |
daae650d MW |
2728 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
2730 | ac_tool_warned=yes ;; |
2731 | esac | |
2732 | CC=$ac_ct_CC | |
2733 | fi | |
2f1a1aea FCE |
2734 | fi |
2735 | ||
2736 | fi | |
2737 | ||
2738 | ||
daae650d MW |
2739 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2741 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 2742 | See \`config.log' for more details." >&5 |
daae650d | 2743 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 2744 | See \`config.log' for more details." >&2;} |
daae650d | 2745 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2746 | |
2747 | # Provide some information about the compiler. | |
daae650d MW |
2748 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2749 | set X $ac_compile | |
2750 | ac_compiler=$2 | |
5e0d2ebf DS |
2751 | { (ac_try="$ac_compiler --version >&5" |
2752 | case "(($ac_try" in | |
2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2754 | *) ac_try_echo=$ac_try;; | |
2755 | esac | |
daae650d MW |
2756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2757 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2758 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 2759 | ac_status=$? |
daae650d | 2760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2761 | (exit $ac_status); } |
5e0d2ebf DS |
2762 | { (ac_try="$ac_compiler -v >&5" |
2763 | case "(($ac_try" in | |
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2765 | *) ac_try_echo=$ac_try;; | |
2766 | esac | |
daae650d MW |
2767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2768 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2769 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 2770 | ac_status=$? |
daae650d | 2771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2772 | (exit $ac_status); } |
5e0d2ebf DS |
2773 | { (ac_try="$ac_compiler -V >&5" |
2774 | case "(($ac_try" in | |
2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2776 | *) ac_try_echo=$ac_try;; | |
2777 | esac | |
daae650d MW |
2778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2779 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2780 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 2781 | ac_status=$? |
daae650d | 2782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2783 | (exit $ac_status); } |
2784 | ||
2785 | cat >conftest.$ac_ext <<_ACEOF | |
2786 | /* confdefs.h. */ | |
2787 | _ACEOF | |
2788 | cat confdefs.h >>conftest.$ac_ext | |
2789 | cat >>conftest.$ac_ext <<_ACEOF | |
2790 | /* end confdefs.h. */ | |
2791 | ||
2792 | int | |
2793 | main () | |
2794 | { | |
2795 | ||
2796 | ; | |
2797 | return 0; | |
2798 | } | |
2799 | _ACEOF | |
2800 | ac_clean_files_save=$ac_clean_files | |
daae650d | 2801 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
2802 | # Try to create an executable without -o first, disregard a.out. |
2803 | # It will help us diagnose broken compilers, and finding out an intuition | |
2804 | # of exeext. | |
daae650d MW |
2805 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2806 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2807 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2808 | ||
2809 | # The possible output files: | |
2810 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2811 | ||
5e0d2ebf DS |
2812 | ac_rmfiles= |
2813 | for ac_file in $ac_files | |
2814 | do | |
2815 | case $ac_file in | |
daae650d | 2816 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
5e0d2ebf DS |
2817 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2818 | esac | |
2819 | done | |
2820 | rm -f $ac_rmfiles | |
2821 | ||
2822 | if { (ac_try="$ac_link_default" | |
2823 | case "(($ac_try" in | |
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2825 | *) ac_try_echo=$ac_try;; | |
2826 | esac | |
daae650d MW |
2827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2828 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2829 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 2830 | ac_status=$? |
daae650d | 2831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 2832 | (exit $ac_status); }; then |
5e0d2ebf DS |
2833 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2834 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2835 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2836 | # so that the user can short-circuit this test for compilers unknown to | |
2837 | # Autoconf. | |
2838 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
2839 | do |
2840 | test -f "$ac_file" || continue | |
2841 | case $ac_file in | |
daae650d | 2842 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
2843 | ;; |
2844 | [ab].out ) | |
2845 | # We found the default executable, but exeext='' is most | |
2846 | # certainly right. | |
2847 | break;; | |
2848 | *.* ) | |
5e0d2ebf DS |
2849 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2850 | then :; else | |
2851 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2852 | fi | |
2853 | # We set ac_cv_exeext here because the later test for it is not | |
2854 | # safe: cross compilers may not add the suffix if given an `-o' | |
2855 | # argument, so we may need to know it at that point already. | |
2856 | # Even if this section looks crufty: it has the advantage of | |
2857 | # actually working. | |
2f1a1aea FCE |
2858 | break;; |
2859 | * ) | |
2860 | break;; | |
2861 | esac | |
2862 | done | |
5e0d2ebf DS |
2863 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2864 | ||
2f1a1aea | 2865 | else |
5e0d2ebf DS |
2866 | ac_file='' |
2867 | fi | |
2868 | ||
daae650d MW |
2869 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2870 | $as_echo "$ac_file" >&6; } | |
5e0d2ebf | 2871 | if test -z "$ac_file"; then |
daae650d | 2872 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
2873 | sed 's/^/| /' conftest.$ac_ext >&5 |
2874 | ||
daae650d MW |
2875 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2876 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2877 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2f1a1aea | 2878 | See \`config.log' for more details." >&5 |
daae650d | 2879 | $as_echo "$as_me: error: C compiler cannot create executables |
2f1a1aea | 2880 | See \`config.log' for more details." >&2;} |
daae650d | 2881 | { (exit 77); exit 77; }; }; } |
2f1a1aea FCE |
2882 | fi |
2883 | ||
2884 | ac_exeext=$ac_cv_exeext | |
2f1a1aea | 2885 | |
5e0d2ebf | 2886 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2887 | # the compiler is broken, or we cross compile. |
daae650d MW |
2888 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2889 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2f1a1aea FCE |
2890 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2891 | # If not cross compiling, check that we can run a simple program. | |
2892 | if test "$cross_compiling" != yes; then | |
2893 | if { ac_try='./$ac_file' | |
5e0d2ebf DS |
2894 | { (case "(($ac_try" in |
2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2896 | *) ac_try_echo=$ac_try;; | |
2897 | esac | |
daae650d MW |
2898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2899 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2900 | (eval "$ac_try") 2>&5 |
2f1a1aea | 2901 | ac_status=$? |
daae650d | 2902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2903 | (exit $ac_status); }; }; then |
2904 | cross_compiling=no | |
2905 | else | |
2906 | if test "$cross_compiling" = maybe; then | |
2907 | cross_compiling=yes | |
2908 | else | |
daae650d MW |
2909 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2910 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2911 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2f1a1aea FCE |
2912 | If you meant to cross compile, use \`--host'. |
2913 | See \`config.log' for more details." >&5 | |
daae650d | 2914 | $as_echo "$as_me: error: cannot run C compiled programs. |
2f1a1aea FCE |
2915 | If you meant to cross compile, use \`--host'. |
2916 | See \`config.log' for more details." >&2;} | |
daae650d | 2917 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2918 | fi |
2919 | fi | |
2920 | fi | |
daae650d MW |
2921 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2922 | $as_echo "yes" >&6; } | |
2f1a1aea | 2923 | |
daae650d | 2924 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 2925 | ac_clean_files=$ac_clean_files_save |
5e0d2ebf | 2926 | # Check that the compiler produces executables we can run. If not, either |
2f1a1aea | 2927 | # the compiler is broken, or we cross compile. |
daae650d MW |
2928 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2929 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2930 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2931 | $as_echo "$cross_compiling" >&6; } | |
5e0d2ebf | 2932 | |
daae650d MW |
2933 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2934 | $as_echo_n "checking for suffix of executables... " >&6; } | |
5e0d2ebf DS |
2935 | if { (ac_try="$ac_link" |
2936 | case "(($ac_try" in | |
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2938 | *) ac_try_echo=$ac_try;; | |
2939 | esac | |
daae650d MW |
2940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2941 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 2942 | (eval "$ac_link") 2>&5 |
2f1a1aea | 2943 | ac_status=$? |
daae650d | 2944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
2945 | (exit $ac_status); }; then |
2946 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2947 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2948 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2949 | # `rm'. | |
2950 | for ac_file in conftest.exe conftest conftest.*; do | |
2951 | test -f "$ac_file" || continue | |
2952 | case $ac_file in | |
daae650d | 2953 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 2954 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
2955 | break;; |
2956 | * ) break;; | |
2957 | esac | |
2958 | done | |
2959 | else | |
daae650d MW |
2960 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2961 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2962 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2f1a1aea | 2963 | See \`config.log' for more details." >&5 |
daae650d | 2964 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2f1a1aea | 2965 | See \`config.log' for more details." >&2;} |
daae650d | 2966 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
2967 | fi |
2968 | ||
2969 | rm -f conftest$ac_cv_exeext | |
daae650d MW |
2970 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2971 | $as_echo "$ac_cv_exeext" >&6; } | |
2f1a1aea FCE |
2972 | |
2973 | rm -f conftest.$ac_ext | |
2974 | EXEEXT=$ac_cv_exeext | |
2975 | ac_exeext=$EXEEXT | |
daae650d MW |
2976 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2977 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2f1a1aea | 2978 | if test "${ac_cv_objext+set}" = set; then |
daae650d | 2979 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2980 | else |
2981 | cat >conftest.$ac_ext <<_ACEOF | |
2982 | /* confdefs.h. */ | |
2983 | _ACEOF | |
2984 | cat confdefs.h >>conftest.$ac_ext | |
2985 | cat >>conftest.$ac_ext <<_ACEOF | |
2986 | /* end confdefs.h. */ | |
2987 | ||
2988 | int | |
2989 | main () | |
2990 | { | |
2991 | ||
2992 | ; | |
2993 | return 0; | |
2994 | } | |
2995 | _ACEOF | |
2996 | rm -f conftest.o conftest.obj | |
5e0d2ebf DS |
2997 | if { (ac_try="$ac_compile" |
2998 | case "(($ac_try" in | |
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3000 | *) ac_try_echo=$ac_try;; | |
3001 | esac | |
daae650d MW |
3002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3003 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3004 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3005 | ac_status=$? |
daae650d | 3006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3007 | (exit $ac_status); }; then |
5e0d2ebf DS |
3008 | for ac_file in conftest.o conftest.obj conftest.*; do |
3009 | test -f "$ac_file" || continue; | |
2f1a1aea | 3010 | case $ac_file in |
daae650d | 3011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3012 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3013 | break;; | |
3014 | esac | |
3015 | done | |
3016 | else | |
daae650d | 3017 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3018 | sed 's/^/| /' conftest.$ac_ext >&5 |
3019 | ||
daae650d MW |
3020 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3022 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2f1a1aea | 3023 | See \`config.log' for more details." >&5 |
daae650d | 3024 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2f1a1aea | 3025 | See \`config.log' for more details." >&2;} |
daae650d | 3026 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
3027 | fi |
3028 | ||
3029 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3030 | fi | |
daae650d MW |
3031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3032 | $as_echo "$ac_cv_objext" >&6; } | |
2f1a1aea FCE |
3033 | OBJEXT=$ac_cv_objext |
3034 | ac_objext=$OBJEXT | |
daae650d MW |
3035 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3036 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 3037 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
daae650d | 3038 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3039 | else |
3040 | cat >conftest.$ac_ext <<_ACEOF | |
3041 | /* confdefs.h. */ | |
3042 | _ACEOF | |
3043 | cat confdefs.h >>conftest.$ac_ext | |
3044 | cat >>conftest.$ac_ext <<_ACEOF | |
3045 | /* end confdefs.h. */ | |
3046 | ||
3047 | int | |
3048 | main () | |
3049 | { | |
3050 | #ifndef __GNUC__ | |
3051 | choke me | |
3052 | #endif | |
3053 | ||
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3059 | if { (ac_try="$ac_compile" |
3060 | case "(($ac_try" in | |
3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3062 | *) ac_try_echo=$ac_try;; | |
3063 | esac | |
daae650d MW |
3064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3065 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3066 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3067 | ac_status=$? |
3068 | grep -v '^ *+' conftest.er1 >conftest.err | |
3069 | rm -f conftest.er1 | |
3070 | cat conftest.err >&5 | |
daae650d | 3071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3072 | (exit $ac_status); } && { |
3073 | test -z "$ac_c_werror_flag" || | |
3074 | test ! -s conftest.err | |
3075 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3076 | ac_compiler_gnu=yes |
3077 | else | |
daae650d | 3078 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3079 | sed 's/^/| /' conftest.$ac_ext >&5 |
3080 | ||
5e0d2ebf | 3081 | ac_compiler_gnu=no |
2f1a1aea | 3082 | fi |
5e0d2ebf DS |
3083 | |
3084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3085 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3086 | ||
3087 | fi | |
daae650d MW |
3088 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3089 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3090 | if test $ac_compiler_gnu = yes; then | |
3091 | GCC=yes | |
3092 | else | |
3093 | GCC= | |
3094 | fi | |
2f1a1aea FCE |
3095 | ac_test_CFLAGS=${CFLAGS+set} |
3096 | ac_save_CFLAGS=$CFLAGS | |
daae650d MW |
3097 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3098 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 3099 | if test "${ac_cv_prog_cc_g+set}" = set; then |
daae650d | 3100 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3101 | else |
5e0d2ebf DS |
3102 | ac_save_c_werror_flag=$ac_c_werror_flag |
3103 | ac_c_werror_flag=yes | |
3104 | ac_cv_prog_cc_g=no | |
3105 | CFLAGS="-g" | |
3106 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3107 | /* confdefs.h. */ |
3108 | _ACEOF | |
3109 | cat confdefs.h >>conftest.$ac_ext | |
3110 | cat >>conftest.$ac_ext <<_ACEOF | |
3111 | /* end confdefs.h. */ | |
3112 | ||
3113 | int | |
3114 | main () | |
3115 | { | |
3116 | ||
3117 | ; | |
3118 | return 0; | |
3119 | } | |
3120 | _ACEOF | |
3121 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3122 | if { (ac_try="$ac_compile" |
3123 | case "(($ac_try" in | |
3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3125 | *) ac_try_echo=$ac_try;; | |
3126 | esac | |
daae650d MW |
3127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3128 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3129 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3130 | ac_status=$? |
3131 | grep -v '^ *+' conftest.er1 >conftest.err | |
3132 | rm -f conftest.er1 | |
3133 | cat conftest.err >&5 | |
daae650d | 3134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3135 | (exit $ac_status); } && { |
3136 | test -z "$ac_c_werror_flag" || | |
3137 | test ! -s conftest.err | |
3138 | } && test -s conftest.$ac_objext; then | |
3139 | ac_cv_prog_cc_g=yes | |
3140 | else | |
daae650d | 3141 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
3143 | ||
3144 | CFLAGS="" | |
3145 | cat >conftest.$ac_ext <<_ACEOF | |
3146 | /* confdefs.h. */ | |
3147 | _ACEOF | |
3148 | cat confdefs.h >>conftest.$ac_ext | |
3149 | cat >>conftest.$ac_ext <<_ACEOF | |
3150 | /* end confdefs.h. */ | |
3151 | ||
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | ||
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | rm -f conftest.$ac_objext | |
3161 | if { (ac_try="$ac_compile" | |
3162 | case "(($ac_try" in | |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 | *) ac_try_echo=$ac_try;; | |
3165 | esac | |
daae650d MW |
3166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3167 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3168 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3169 | ac_status=$? |
5e0d2ebf DS |
3170 | grep -v '^ *+' conftest.er1 >conftest.err |
3171 | rm -f conftest.er1 | |
3172 | cat conftest.err >&5 | |
daae650d | 3173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3174 | (exit $ac_status); } && { |
3175 | test -z "$ac_c_werror_flag" || | |
3176 | test ! -s conftest.err | |
3177 | } && test -s conftest.$ac_objext; then | |
3178 | : | |
3179 | else | |
daae650d | 3180 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
3181 | sed 's/^/| /' conftest.$ac_ext >&5 |
3182 | ||
3183 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3184 | CFLAGS="-g" | |
3185 | cat >conftest.$ac_ext <<_ACEOF | |
3186 | /* confdefs.h. */ | |
3187 | _ACEOF | |
3188 | cat confdefs.h >>conftest.$ac_ext | |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
3191 | ||
3192 | int | |
3193 | main () | |
3194 | { | |
3195 | ||
3196 | ; | |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
3200 | rm -f conftest.$ac_objext | |
3201 | if { (ac_try="$ac_compile" | |
3202 | case "(($ac_try" in | |
3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3204 | *) ac_try_echo=$ac_try;; | |
3205 | esac | |
daae650d MW |
3206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3207 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3208 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea | 3209 | ac_status=$? |
5e0d2ebf DS |
3210 | grep -v '^ *+' conftest.er1 >conftest.err |
3211 | rm -f conftest.er1 | |
3212 | cat conftest.err >&5 | |
daae650d | 3213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3214 | (exit $ac_status); } && { |
3215 | test -z "$ac_c_werror_flag" || | |
3216 | test ! -s conftest.err | |
3217 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3218 | ac_cv_prog_cc_g=yes |
3219 | else | |
daae650d | 3220 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3221 | sed 's/^/| /' conftest.$ac_ext >&5 |
3222 | ||
5e0d2ebf DS |
3223 | |
3224 | fi | |
3225 | ||
3226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 3227 | fi |
5e0d2ebf DS |
3228 | |
3229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3230 | fi | |
3231 | ||
3232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3233 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3234 | fi |
daae650d MW |
3235 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3236 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2f1a1aea FCE |
3237 | if test "$ac_test_CFLAGS" = set; then |
3238 | CFLAGS=$ac_save_CFLAGS | |
3239 | elif test $ac_cv_prog_cc_g = yes; then | |
3240 | if test "$GCC" = yes; then | |
3241 | CFLAGS="-g -O2" | |
3242 | else | |
3243 | CFLAGS="-g" | |
3244 | fi | |
3245 | else | |
3246 | if test "$GCC" = yes; then | |
3247 | CFLAGS="-O2" | |
3248 | else | |
3249 | CFLAGS= | |
3250 | fi | |
3251 | fi | |
daae650d MW |
3252 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3253 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5e0d2ebf | 3254 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
daae650d | 3255 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3256 | else |
5e0d2ebf | 3257 | ac_cv_prog_cc_c89=no |
2f1a1aea FCE |
3258 | ac_save_CC=$CC |
3259 | cat >conftest.$ac_ext <<_ACEOF | |
3260 | /* confdefs.h. */ | |
3261 | _ACEOF | |
3262 | cat confdefs.h >>conftest.$ac_ext | |
3263 | cat >>conftest.$ac_ext <<_ACEOF | |
3264 | /* end confdefs.h. */ | |
3265 | #include <stdarg.h> | |
3266 | #include <stdio.h> | |
3267 | #include <sys/types.h> | |
3268 | #include <sys/stat.h> | |
3269 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3270 | struct buf { int x; }; | |
3271 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3272 | static char *e (p, i) | |
3273 | char **p; | |
3274 | int i; | |
3275 | { | |
3276 | return p[i]; | |
3277 | } | |
3278 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3279 | { | |
3280 | char *s; | |
3281 | va_list v; | |
3282 | va_start (v,p); | |
3283 | s = g (p, va_arg (v,int)); | |
3284 | va_end (v); | |
3285 | return s; | |
3286 | } | |
3287 | ||
3288 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3289 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3290 | These don't provoke an error unfortunately, instead are silently treated | |
5e0d2ebf | 3291 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3292 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3293 | array size at least. It's necessary to write '\x00'==0 to get something | |
5e0d2ebf | 3294 | that's true only with -std. */ |
2f1a1aea FCE |
3295 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3296 | ||
5e0d2ebf DS |
3297 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3298 | inside strings and character constants. */ | |
3299 | #define FOO(x) 'x' | |
3300 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3301 | ||
2f1a1aea FCE |
3302 | int test (int i, double x); |
3303 | struct s1 {int (*f) (int a);}; | |
3304 | struct s2 {int (*f) (double a);}; | |
3305 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3306 | int argc; | |
3307 | char **argv; | |
3308 | int | |
3309 | main () | |
3310 | { | |
3311 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3312 | ; | |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
5e0d2ebf DS |
3316 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3317 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3318 | do |
3319 | CC="$ac_save_CC $ac_arg" | |
3320 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3321 | if { (ac_try="$ac_compile" |
3322 | case "(($ac_try" in | |
3323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3324 | *) ac_try_echo=$ac_try;; | |
3325 | esac | |
daae650d MW |
3326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3327 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3328 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3329 | ac_status=$? |
3330 | grep -v '^ *+' conftest.er1 >conftest.err | |
3331 | rm -f conftest.er1 | |
3332 | cat conftest.err >&5 | |
daae650d | 3333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3334 | (exit $ac_status); } && { |
3335 | test -z "$ac_c_werror_flag" || | |
3336 | test ! -s conftest.err | |
3337 | } && test -s conftest.$ac_objext; then | |
3338 | ac_cv_prog_cc_c89=$ac_arg | |
2f1a1aea | 3339 | else |
daae650d | 3340 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3341 | sed 's/^/| /' conftest.$ac_ext >&5 |
3342 | ||
5e0d2ebf | 3343 | |
2f1a1aea | 3344 | fi |
5e0d2ebf DS |
3345 | |
3346 | rm -f core conftest.err conftest.$ac_objext | |
3347 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3348 | done |
5e0d2ebf | 3349 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3350 | CC=$ac_save_CC |
3351 | ||
3352 | fi | |
5e0d2ebf DS |
3353 | # AC_CACHE_VAL |
3354 | case "x$ac_cv_prog_cc_c89" in | |
3355 | x) | |
daae650d MW |
3356 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3357 | $as_echo "none needed" >&6; } ;; | |
5e0d2ebf | 3358 | xno) |
daae650d MW |
3359 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3360 | $as_echo "unsupported" >&6; } ;; | |
2f1a1aea | 3361 | *) |
5e0d2ebf | 3362 | CC="$CC $ac_cv_prog_cc_c89" |
daae650d MW |
3363 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3364 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2f1a1aea FCE |
3365 | esac |
3366 | ||
8ae7a94a | 3367 | |
8ae7a94a FCE |
3368 | ac_ext=c |
3369 | ac_cpp='$CPP $CPPFLAGS' | |
3370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3373 | DEPDIR="${am__leading_dot}deps" | |
3374 | ||
5e0d2ebf | 3375 | ac_config_commands="$ac_config_commands depfiles" |
8ae7a94a FCE |
3376 | |
3377 | ||
3378 | am_make=${MAKE-make} | |
3379 | cat > confinc << 'END' | |
3380 | am__doit: | |
3381 | @echo done | |
3382 | .PHONY: am__doit | |
3383 | END | |
3384 | # If we don't find an include directive, just comment out the code. | |
daae650d MW |
3385 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3386 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8ae7a94a FCE |
3387 | am__include="#" |
3388 | am__quote= | |
3389 | _am_result=none | |
3390 | # First try GNU make style include. | |
3391 | echo "include confinc" > confmf | |
3392 | # We grep out `Entering directory' and `Leaving directory' | |
3393 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3394 | # In particular we don't look at `^make:' because GNU make might | |
3395 | # be invoked under some other name (usually "gmake"), in which | |
3396 | # case it prints its new name instead of `make'. | |
3397 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3398 | am__include=include | |
3399 | am__quote= | |
3400 | _am_result=GNU | |
3401 | fi | |
3402 | # Now try BSD make style include. | |
3403 | if test "$am__include" = "#"; then | |
3404 | echo '.include "confinc"' > confmf | |
3405 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3406 | am__include=.include | |
3407 | am__quote="\"" | |
3408 | _am_result=BSD | |
3409 | fi | |
3410 | fi | |
2f1a1aea | 3411 | |
8ae7a94a | 3412 | |
daae650d MW |
3413 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3414 | $as_echo "$_am_result" >&6; } | |
2f1a1aea FCE |
3415 | rm -f confinc confmf |
3416 | ||
5e0d2ebf | 3417 | # Check whether --enable-dependency-tracking was given. |
2f1a1aea | 3418 | if test "${enable_dependency_tracking+set}" = set; then |
5e0d2ebf DS |
3419 | enableval=$enable_dependency_tracking; |
3420 | fi | |
2f1a1aea | 3421 | |
2f1a1aea FCE |
3422 | if test "x$enable_dependency_tracking" != xno; then |
3423 | am_depcomp="$ac_aux_dir/depcomp" | |
3424 | AMDEPBACKSLASH='\' | |
3425 | fi | |
10b20266 | 3426 | if test "x$enable_dependency_tracking" != xno; then |
2f1a1aea FCE |
3427 | AMDEP_TRUE= |
3428 | AMDEP_FALSE='#' | |
3429 | else | |
3430 | AMDEP_TRUE='#' | |
3431 | AMDEP_FALSE= | |
3432 | fi | |
3433 | ||
3434 | ||
3435 | ||
2f1a1aea FCE |
3436 | depcc="$CC" am_compiler_list= |
3437 | ||
daae650d MW |
3438 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3439 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3440 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
daae650d | 3441 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3442 | else |
3443 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3444 | # We make a subdir and do the tests there. Otherwise we can end up | |
3445 | # making bogus files that we don't know about and never remove. For | |
3446 | # instance it was reported that on HP-UX the gcc test will end up | |
3447 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3448 | # in D'. | |
3449 | mkdir conftest.dir | |
3450 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3451 | # using a relative directory. | |
3452 | cp "$am_depcomp" conftest.dir | |
3453 | cd conftest.dir | |
3454 | # We will build objects and dependencies in a subdirectory because | |
3455 | # it helps to detect inapplicable dependency modes. For instance | |
3456 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3457 | # side effect of compilation, but ICC will put the dependencies in | |
3458 | # the current directory while Tru64 will put them in the object | |
3459 | # directory. | |
3460 | mkdir sub | |
3461 | ||
3462 | am_cv_CC_dependencies_compiler_type=none | |
3463 | if test "$am_compiler_list" = ""; then | |
3464 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3465 | fi | |
3466 | for depmode in $am_compiler_list; do | |
3467 | # Setup a source with many dependencies, because some compilers | |
3468 | # like to wrap large dependency lists on column 80 (with \), and | |
3469 | # we should not choose a depcomp mode which is confused by this. | |
3470 | # | |
3471 | # We need to recreate these files for each test, as the compiler may | |
3472 | # overwrite some of them when testing with obscure command lines. | |
3473 | # This happens at least with the AIX C compiler. | |
3474 | : > sub/conftest.c | |
3475 | for i in 1 2 3 4 5 6; do | |
3476 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3477 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3478 | # Solaris 8's {/usr,}/bin/sh. | |
3479 | touch sub/conftst$i.h | |
3480 | done | |
3481 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3482 | ||
3483 | case $depmode in | |
3484 | nosideeffect) | |
3485 | # after this tag, mechanisms are not by side-effect, so they'll | |
3486 | # only be used when explicitly requested | |
3487 | if test "x$enable_dependency_tracking" = xyes; then | |
3488 | continue | |
3489 | else | |
3490 | break | |
3491 | fi | |
3492 | ;; | |
3493 | none) break ;; | |
3494 | esac | |
3495 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3496 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3497 | # handle `-M -o', and we need to detect this. | |
3498 | if depmode=$depmode \ | |
3499 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3500 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3501 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3502 | >/dev/null 2>conftest.err && | |
10b20266 | 3503 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3504 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3505 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3506 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3507 | # icc doesn't choke on unknown options, it will just issue warnings | |
3508 | # or remarks (even with -Werror). So we grep stderr for any message | |
3509 | # that says an option was ignored or not supported. | |
3510 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3511 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3512 | # The diagnosis changed in icc 8.0: | |
3513 | # icc: Command line remark: option '-MP' not supported | |
3514 | if (grep 'ignoring option' conftest.err || | |
3515 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3516 | am_cv_CC_dependencies_compiler_type=$depmode | |
3517 | break | |
3518 | fi | |
3519 | fi | |
3520 | done | |
3521 | ||
3522 | cd .. | |
3523 | rm -rf conftest.dir | |
3524 | else | |
3525 | am_cv_CC_dependencies_compiler_type=none | |
3526 | fi | |
3527 | ||
3528 | fi | |
daae650d MW |
3529 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3530 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
3531 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3532 | ||
10b20266 | 3533 | if |
2f1a1aea FCE |
3534 | test "x$enable_dependency_tracking" != xno \ |
3535 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3536 | am__fastdepCC_TRUE= | |
3537 | am__fastdepCC_FALSE='#' | |
3538 | else | |
3539 | am__fastdepCC_TRUE='#' | |
3540 | am__fastdepCC_FALSE= | |
3541 | fi | |
3542 | ||
3543 | ||
5e0d2ebf | 3544 | ac_ext=cpp |
2f1a1aea FCE |
3545 | ac_cpp='$CXXCPP $CPPFLAGS' |
3546 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3547 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3548 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5e0d2ebf DS |
3549 | if test -z "$CXX"; then |
3550 | if test -n "$CCC"; then | |
3551 | CXX=$CCC | |
3552 | else | |
3553 | if test -n "$ac_tool_prefix"; then | |
3554 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2f1a1aea FCE |
3555 | do |
3556 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3557 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
daae650d MW |
3558 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3559 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3560 | if test "${ac_cv_prog_CXX+set}" = set; then |
daae650d | 3561 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3562 | else |
3563 | if test -n "$CXX"; then | |
3564 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3565 | else | |
3566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3567 | for as_dir in $PATH | |
3568 | do | |
3569 | IFS=$as_save_IFS | |
3570 | test -z "$as_dir" && as_dir=. | |
3571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 3572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3573 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
daae650d | 3574 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3575 | break 2 |
3576 | fi | |
3577 | done | |
3578 | done | |
5e0d2ebf | 3579 | IFS=$as_save_IFS |
2f1a1aea FCE |
3580 | |
3581 | fi | |
3582 | fi | |
3583 | CXX=$ac_cv_prog_CXX | |
3584 | if test -n "$CXX"; then | |
daae650d MW |
3585 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
3586 | $as_echo "$CXX" >&6; } | |
2f1a1aea | 3587 | else |
daae650d MW |
3588 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3589 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3590 | fi |
3591 | ||
5e0d2ebf | 3592 | |
2f1a1aea FCE |
3593 | test -n "$CXX" && break |
3594 | done | |
3595 | fi | |
3596 | if test -z "$CXX"; then | |
3597 | ac_ct_CXX=$CXX | |
5e0d2ebf | 3598 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
2f1a1aea FCE |
3599 | do |
3600 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3601 | set dummy $ac_prog; ac_word=$2 | |
daae650d MW |
3602 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3603 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 3604 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
daae650d | 3605 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3606 | else |
3607 | if test -n "$ac_ct_CXX"; then | |
3608 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3609 | else | |
3610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3611 | for as_dir in $PATH | |
3612 | do | |
3613 | IFS=$as_save_IFS | |
3614 | test -z "$as_dir" && as_dir=. | |
3615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 3616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3617 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
daae650d | 3618 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3619 | break 2 |
3620 | fi | |
3621 | done | |
3622 | done | |
5e0d2ebf | 3623 | IFS=$as_save_IFS |
2f1a1aea FCE |
3624 | |
3625 | fi | |
3626 | fi | |
3627 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3628 | if test -n "$ac_ct_CXX"; then | |
daae650d MW |
3629 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3630 | $as_echo "$ac_ct_CXX" >&6; } | |
2f1a1aea | 3631 | else |
daae650d MW |
3632 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3633 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
3634 | fi |
3635 | ||
5e0d2ebf | 3636 | |
2f1a1aea FCE |
3637 | test -n "$ac_ct_CXX" && break |
3638 | done | |
2f1a1aea | 3639 | |
5e0d2ebf DS |
3640 | if test "x$ac_ct_CXX" = x; then |
3641 | CXX="g++" | |
3642 | else | |
3643 | case $cross_compiling:$ac_tool_warned in | |
3644 | yes:) | |
daae650d MW |
3645 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3646 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
3647 | ac_tool_warned=yes ;; |
3648 | esac | |
3649 | CXX=$ac_ct_CXX | |
3650 | fi | |
2f1a1aea FCE |
3651 | fi |
3652 | ||
5e0d2ebf DS |
3653 | fi |
3654 | fi | |
2f1a1aea | 3655 | # Provide some information about the compiler. |
daae650d MW |
3656 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3657 | set X $ac_compile | |
3658 | ac_compiler=$2 | |
5e0d2ebf DS |
3659 | { (ac_try="$ac_compiler --version >&5" |
3660 | case "(($ac_try" in | |
3661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3662 | *) ac_try_echo=$ac_try;; | |
3663 | esac | |
daae650d MW |
3664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3665 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3666 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 3667 | ac_status=$? |
daae650d | 3668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3669 | (exit $ac_status); } |
5e0d2ebf DS |
3670 | { (ac_try="$ac_compiler -v >&5" |
3671 | case "(($ac_try" in | |
3672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3673 | *) ac_try_echo=$ac_try;; | |
3674 | esac | |
daae650d MW |
3675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3676 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3677 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 3678 | ac_status=$? |
daae650d | 3679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 3680 | (exit $ac_status); } |
5e0d2ebf DS |
3681 | { (ac_try="$ac_compiler -V >&5" |
3682 | case "(($ac_try" in | |
3683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3684 | *) ac_try_echo=$ac_try;; | |
3685 | esac | |
daae650d MW |
3686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3687 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3688 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 3689 | ac_status=$? |
daae650d | 3690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
3691 | (exit $ac_status); } |
3692 | ||
daae650d MW |
3693 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3694 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
2f1a1aea | 3695 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
daae650d | 3696 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3697 | else |
3698 | cat >conftest.$ac_ext <<_ACEOF | |
3699 | /* confdefs.h. */ | |
3700 | _ACEOF | |
3701 | cat confdefs.h >>conftest.$ac_ext | |
3702 | cat >>conftest.$ac_ext <<_ACEOF | |
3703 | /* end confdefs.h. */ | |
3704 | ||
3705 | int | |
3706 | main () | |
3707 | { | |
3708 | #ifndef __GNUC__ | |
3709 | choke me | |
3710 | #endif | |
3711 | ||
3712 | ; | |
3713 | return 0; | |
3714 | } | |
3715 | _ACEOF | |
3716 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3717 | if { (ac_try="$ac_compile" |
3718 | case "(($ac_try" in | |
3719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3720 | *) ac_try_echo=$ac_try;; | |
3721 | esac | |
daae650d MW |
3722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3723 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3724 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3725 | ac_status=$? |
3726 | grep -v '^ *+' conftest.er1 >conftest.err | |
3727 | rm -f conftest.er1 | |
3728 | cat conftest.err >&5 | |
daae650d | 3729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3730 | (exit $ac_status); } && { |
3731 | test -z "$ac_cxx_werror_flag" || | |
3732 | test ! -s conftest.err | |
3733 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3734 | ac_compiler_gnu=yes |
3735 | else | |
daae650d | 3736 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
3738 | ||
5e0d2ebf | 3739 | ac_compiler_gnu=no |
2f1a1aea | 3740 | fi |
5e0d2ebf DS |
3741 | |
3742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
3743 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3744 | ||
3745 | fi | |
daae650d MW |
3746 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3747 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3748 | if test $ac_compiler_gnu = yes; then | |
3749 | GXX=yes | |
3750 | else | |
3751 | GXX= | |
3752 | fi | |
2f1a1aea FCE |
3753 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3754 | ac_save_CXXFLAGS=$CXXFLAGS | |
daae650d MW |
3755 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3756 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
2f1a1aea | 3757 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
daae650d | 3758 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3759 | else |
5e0d2ebf DS |
3760 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3761 | ac_cxx_werror_flag=yes | |
3762 | ac_cv_prog_cxx_g=no | |
3763 | CXXFLAGS="-g" | |
3764 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3765 | /* confdefs.h. */ |
3766 | _ACEOF | |
3767 | cat confdefs.h >>conftest.$ac_ext | |
3768 | cat >>conftest.$ac_ext <<_ACEOF | |
3769 | /* end confdefs.h. */ | |
3770 | ||
3771 | int | |
3772 | main () | |
3773 | { | |
3774 | ||
3775 | ; | |
3776 | return 0; | |
3777 | } | |
3778 | _ACEOF | |
3779 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3780 | if { (ac_try="$ac_compile" |
3781 | case "(($ac_try" in | |
3782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3783 | *) ac_try_echo=$ac_try;; | |
3784 | esac | |
daae650d MW |
3785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3786 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3787 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3788 | ac_status=$? |
3789 | grep -v '^ *+' conftest.er1 >conftest.err | |
3790 | rm -f conftest.er1 | |
3791 | cat conftest.err >&5 | |
daae650d | 3792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3793 | (exit $ac_status); } && { |
3794 | test -z "$ac_cxx_werror_flag" || | |
3795 | test ! -s conftest.err | |
3796 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3797 | ac_cv_prog_cxx_g=yes |
3798 | else | |
daae650d | 3799 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3800 | sed 's/^/| /' conftest.$ac_ext >&5 |
3801 | ||
5e0d2ebf DS |
3802 | CXXFLAGS="" |
3803 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3804 | /* confdefs.h. */ |
3805 | _ACEOF | |
3806 | cat confdefs.h >>conftest.$ac_ext | |
3807 | cat >>conftest.$ac_ext <<_ACEOF | |
3808 | /* end confdefs.h. */ | |
5e0d2ebf | 3809 | |
2f1a1aea FCE |
3810 | int |
3811 | main () | |
3812 | { | |
5e0d2ebf | 3813 | |
2f1a1aea FCE |
3814 | ; |
3815 | return 0; | |
3816 | } | |
3817 | _ACEOF | |
3818 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3819 | if { (ac_try="$ac_compile" |
3820 | case "(($ac_try" in | |
3821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3822 | *) ac_try_echo=$ac_try;; | |
3823 | esac | |
daae650d MW |
3824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3825 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3826 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3827 | ac_status=$? |
3828 | grep -v '^ *+' conftest.er1 >conftest.err | |
3829 | rm -f conftest.er1 | |
3830 | cat conftest.err >&5 | |
daae650d | 3831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3832 | (exit $ac_status); } && { |
3833 | test -z "$ac_cxx_werror_flag" || | |
3834 | test ! -s conftest.err | |
3835 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
3836 | : |
3837 | else | |
daae650d | 3838 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3839 | sed 's/^/| /' conftest.$ac_ext >&5 |
3840 | ||
5e0d2ebf DS |
3841 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3842 | CXXFLAGS="-g" | |
3843 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
3844 | /* confdefs.h. */ |
3845 | _ACEOF | |
3846 | cat confdefs.h >>conftest.$ac_ext | |
3847 | cat >>conftest.$ac_ext <<_ACEOF | |
3848 | /* end confdefs.h. */ | |
5e0d2ebf | 3849 | |
2f1a1aea FCE |
3850 | int |
3851 | main () | |
3852 | { | |
5e0d2ebf | 3853 | |
2f1a1aea FCE |
3854 | ; |
3855 | return 0; | |
3856 | } | |
3857 | _ACEOF | |
3858 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
3859 | if { (ac_try="$ac_compile" |
3860 | case "(($ac_try" in | |
3861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3862 | *) ac_try_echo=$ac_try;; | |
3863 | esac | |
daae650d MW |
3864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3865 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 3866 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
3867 | ac_status=$? |
3868 | grep -v '^ *+' conftest.er1 >conftest.err | |
3869 | rm -f conftest.er1 | |
3870 | cat conftest.err >&5 | |
daae650d | 3871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
3872 | (exit $ac_status); } && { |
3873 | test -z "$ac_cxx_werror_flag" || | |
3874 | test ! -s conftest.err | |
3875 | } && test -s conftest.$ac_objext; then | |
3876 | ac_cv_prog_cxx_g=yes | |
2f1a1aea | 3877 | else |
daae650d | 3878 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3879 | sed 's/^/| /' conftest.$ac_ext >&5 |
3880 | ||
5e0d2ebf | 3881 | |
2f1a1aea | 3882 | fi |
5e0d2ebf DS |
3883 | |
3884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
70d28673 DS |
3885 | fi |
3886 | ||
5e0d2ebf DS |
3887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3888 | fi | |
3889 | ||
3890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3891 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3892 | fi | |
daae650d MW |
3893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3894 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5e0d2ebf DS |
3895 | if test "$ac_test_CXXFLAGS" = set; then |
3896 | CXXFLAGS=$ac_save_CXXFLAGS | |
3897 | elif test $ac_cv_prog_cxx_g = yes; then | |
3898 | if test "$GXX" = yes; then | |
3899 | CXXFLAGS="-g -O2" | |
3900 | else | |
3901 | CXXFLAGS="-g" | |
3902 | fi | |
3903 | else | |
3904 | if test "$GXX" = yes; then | |
3905 | CXXFLAGS="-O2" | |
3906 | else | |
3907 | CXXFLAGS= | |
3908 | fi | |
3909 | fi | |
2f1a1aea FCE |
3910 | ac_ext=c |
3911 | ac_cpp='$CPP $CPPFLAGS' | |
3912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3915 | ||
3916 | depcc="$CXX" am_compiler_list= | |
3917 | ||
daae650d MW |
3918 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3919 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 3920 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
daae650d | 3921 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3922 | else |
3923 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3924 | # We make a subdir and do the tests there. Otherwise we can end up | |
3925 | # making bogus files that we don't know about and never remove. For | |
3926 | # instance it was reported that on HP-UX the gcc test will end up | |
3927 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3928 | # in D'. | |
3929 | mkdir conftest.dir | |
3930 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3931 | # using a relative directory. | |
3932 | cp "$am_depcomp" conftest.dir | |
3933 | cd conftest.dir | |
3934 | # We will build objects and dependencies in a subdirectory because | |
3935 | # it helps to detect inapplicable dependency modes. For instance | |
3936 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3937 | # side effect of compilation, but ICC will put the dependencies in | |
3938 | # the current directory while Tru64 will put them in the object | |
3939 | # directory. | |
3940 | mkdir sub | |
3941 | ||
3942 | am_cv_CXX_dependencies_compiler_type=none | |
3943 | if test "$am_compiler_list" = ""; then | |
3944 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3945 | fi | |
3946 | for depmode in $am_compiler_list; do | |
3947 | # Setup a source with many dependencies, because some compilers | |
3948 | # like to wrap large dependency lists on column 80 (with \), and | |
3949 | # we should not choose a depcomp mode which is confused by this. | |
3950 | # | |
3951 | # We need to recreate these files for each test, as the compiler may | |
3952 | # overwrite some of them when testing with obscure command lines. | |
3953 | # This happens at least with the AIX C compiler. | |
3954 | : > sub/conftest.c | |
3955 | for i in 1 2 3 4 5 6; do | |
3956 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3957 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3958 | # Solaris 8's {/usr,}/bin/sh. | |
3959 | touch sub/conftst$i.h | |
3960 | done | |
3961 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3962 | ||
3963 | case $depmode in | |
3964 | nosideeffect) | |
3965 | # after this tag, mechanisms are not by side-effect, so they'll | |
3966 | # only be used when explicitly requested | |
3967 | if test "x$enable_dependency_tracking" = xyes; then | |
3968 | continue | |
3969 | else | |
3970 | break | |
3971 | fi | |
3972 | ;; | |
3973 | none) break ;; | |
3974 | esac | |
3975 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3976 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3977 | # handle `-M -o', and we need to detect this. | |
3978 | if depmode=$depmode \ | |
3979 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3980 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3981 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3982 | >/dev/null 2>conftest.err && | |
10b20266 | 3983 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3984 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3985 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3986 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3987 | # icc doesn't choke on unknown options, it will just issue warnings | |
3988 | # or remarks (even with -Werror). So we grep stderr for any message | |
3989 | # that says an option was ignored or not supported. | |
3990 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3991 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3992 | # The diagnosis changed in icc 8.0: | |
3993 | # icc: Command line remark: option '-MP' not supported | |
3994 | if (grep 'ignoring option' conftest.err || | |
3995 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3996 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3997 | break | |
3998 | fi | |
3999 | fi | |
4000 | done | |
4001 | ||
4002 | cd .. | |
4003 | rm -rf conftest.dir | |
4004 | else | |
4005 | am_cv_CXX_dependencies_compiler_type=none | |
4006 | fi | |
4007 | ||
4008 | fi | |
daae650d MW |
4009 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4010 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
4011 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4012 | ||
10b20266 | 4013 | if |
2f1a1aea FCE |
4014 | test "x$enable_dependency_tracking" != xno \ |
4015 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4016 | am__fastdepCXX_TRUE= | |
4017 | am__fastdepCXX_FALSE='#' | |
4018 | else | |
4019 | am__fastdepCXX_TRUE='#' | |
4020 | am__fastdepCXX_FALSE= | |
4021 | fi | |
4022 | ||
4023 | ||
4024 | ac_ext=c | |
4025 | ac_cpp='$CPP $CPPFLAGS' | |
4026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
daae650d MW |
4029 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4030 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
2f1a1aea FCE |
4031 | # On Suns, sometimes $CPP names a directory. |
4032 | if test -n "$CPP" && test -d "$CPP"; then | |
4033 | CPP= | |
4034 | fi | |
4035 | if test -z "$CPP"; then | |
4036 | if test "${ac_cv_prog_CPP+set}" = set; then | |
daae650d | 4037 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4038 | else |
4039 | # Double quotes because CPP needs to be expanded | |
4040 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4041 | do | |
4042 | ac_preproc_ok=false | |
4043 | for ac_c_preproc_warn_flag in '' yes | |
4044 | do | |
4045 | # Use a header file that comes with gcc, so configuring glibc | |
4046 | # with a fresh cross-compiler works. | |
4047 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4048 | # <limits.h> exists even on freestanding compilers. | |
4049 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4050 | # not just through cpp. "Syntax error" is here to catch this case. | |
4051 | cat >conftest.$ac_ext <<_ACEOF | |
4052 | /* confdefs.h. */ | |
4053 | _ACEOF | |
4054 | cat confdefs.h >>conftest.$ac_ext | |
4055 | cat >>conftest.$ac_ext <<_ACEOF | |
4056 | /* end confdefs.h. */ | |
4057 | #ifdef __STDC__ | |
4058 | # include <limits.h> | |
4059 | #else | |
4060 | # include <assert.h> | |
4061 | #endif | |
4062 | Syntax error | |
4063 | _ACEOF | |
5e0d2ebf DS |
4064 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4065 | case "(($ac_try" in | |
4066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4067 | *) ac_try_echo=$ac_try;; | |
4068 | esac | |
daae650d MW |
4069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4070 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4071 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4072 | ac_status=$? |
4073 | grep -v '^ *+' conftest.er1 >conftest.err | |
4074 | rm -f conftest.er1 | |
4075 | cat conftest.err >&5 | |
daae650d | 4076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4077 | (exit $ac_status); } >/dev/null && { |
4078 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4079 | test ! -s conftest.err | |
4080 | }; then | |
2f1a1aea FCE |
4081 | : |
4082 | else | |
daae650d | 4083 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4084 | sed 's/^/| /' conftest.$ac_ext >&5 |
4085 | ||
4086 | # Broken: fails on valid input. | |
4087 | continue | |
4088 | fi | |
5e0d2ebf | 4089 | |
2f1a1aea FCE |
4090 | rm -f conftest.err conftest.$ac_ext |
4091 | ||
5e0d2ebf | 4092 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4093 | # can be detected and how. |
4094 | cat >conftest.$ac_ext <<_ACEOF | |
4095 | /* confdefs.h. */ | |
4096 | _ACEOF | |
4097 | cat confdefs.h >>conftest.$ac_ext | |
4098 | cat >>conftest.$ac_ext <<_ACEOF | |
4099 | /* end confdefs.h. */ | |
4100 | #include <ac_nonexistent.h> | |
4101 | _ACEOF | |
5e0d2ebf DS |
4102 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4103 | case "(($ac_try" in | |
4104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4105 | *) ac_try_echo=$ac_try;; | |
4106 | esac | |
daae650d MW |
4107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4108 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4109 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4110 | ac_status=$? |
4111 | grep -v '^ *+' conftest.er1 >conftest.err | |
4112 | rm -f conftest.er1 | |
4113 | cat conftest.err >&5 | |
daae650d | 4114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4115 | (exit $ac_status); } >/dev/null && { |
4116 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4117 | test ! -s conftest.err | |
4118 | }; then | |
2f1a1aea FCE |
4119 | # Broken: success on invalid input. |
4120 | continue | |
4121 | else | |
daae650d | 4122 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
4124 | ||
4125 | # Passes both tests. | |
4126 | ac_preproc_ok=: | |
4127 | break | |
4128 | fi | |
5e0d2ebf | 4129 | |
2f1a1aea FCE |
4130 | rm -f conftest.err conftest.$ac_ext |
4131 | ||
4132 | done | |
4133 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4134 | rm -f conftest.err conftest.$ac_ext | |
4135 | if $ac_preproc_ok; then | |
4136 | break | |
4137 | fi | |
4138 | ||
4139 | done | |
4140 | ac_cv_prog_CPP=$CPP | |
4141 | ||
4142 | fi | |
4143 | CPP=$ac_cv_prog_CPP | |
4144 | else | |
4145 | ac_cv_prog_CPP=$CPP | |
4146 | fi | |
daae650d MW |
4147 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
4148 | $as_echo "$CPP" >&6; } | |
2f1a1aea FCE |
4149 | ac_preproc_ok=false |
4150 | for ac_c_preproc_warn_flag in '' yes | |
4151 | do | |
4152 | # Use a header file that comes with gcc, so configuring glibc | |
4153 | # with a fresh cross-compiler works. | |
4154 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4155 | # <limits.h> exists even on freestanding compilers. | |
4156 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4157 | # not just through cpp. "Syntax error" is here to catch this case. | |
4158 | cat >conftest.$ac_ext <<_ACEOF | |
4159 | /* confdefs.h. */ | |
4160 | _ACEOF | |
4161 | cat confdefs.h >>conftest.$ac_ext | |
4162 | cat >>conftest.$ac_ext <<_ACEOF | |
4163 | /* end confdefs.h. */ | |
4164 | #ifdef __STDC__ | |
4165 | # include <limits.h> | |
4166 | #else | |
4167 | # include <assert.h> | |
4168 | #endif | |
4169 | Syntax error | |
4170 | _ACEOF | |
5e0d2ebf DS |
4171 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4172 | case "(($ac_try" in | |
4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4174 | *) ac_try_echo=$ac_try;; | |
4175 | esac | |
daae650d MW |
4176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4177 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4179 | ac_status=$? |
4180 | grep -v '^ *+' conftest.er1 >conftest.err | |
4181 | rm -f conftest.er1 | |
4182 | cat conftest.err >&5 | |
daae650d | 4183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4184 | (exit $ac_status); } >/dev/null && { |
4185 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4186 | test ! -s conftest.err | |
4187 | }; then | |
2f1a1aea FCE |
4188 | : |
4189 | else | |
daae650d | 4190 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4191 | sed 's/^/| /' conftest.$ac_ext >&5 |
4192 | ||
4193 | # Broken: fails on valid input. | |
4194 | continue | |
4195 | fi | |
5e0d2ebf | 4196 | |
2f1a1aea FCE |
4197 | rm -f conftest.err conftest.$ac_ext |
4198 | ||
5e0d2ebf | 4199 | # OK, works on sane cases. Now check whether nonexistent headers |
2f1a1aea FCE |
4200 | # can be detected and how. |
4201 | cat >conftest.$ac_ext <<_ACEOF | |
4202 | /* confdefs.h. */ | |
4203 | _ACEOF | |
4204 | cat confdefs.h >>conftest.$ac_ext | |
4205 | cat >>conftest.$ac_ext <<_ACEOF | |
4206 | /* end confdefs.h. */ | |
4207 | #include <ac_nonexistent.h> | |
4208 | _ACEOF | |
5e0d2ebf DS |
4209 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4210 | case "(($ac_try" in | |
4211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4212 | *) ac_try_echo=$ac_try;; | |
4213 | esac | |
daae650d MW |
4214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4215 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4216 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
4217 | ac_status=$? |
4218 | grep -v '^ *+' conftest.er1 >conftest.err | |
4219 | rm -f conftest.er1 | |
4220 | cat conftest.err >&5 | |
daae650d | 4221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4222 | (exit $ac_status); } >/dev/null && { |
4223 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4224 | test ! -s conftest.err | |
4225 | }; then | |
2f1a1aea FCE |
4226 | # Broken: success on invalid input. |
4227 | continue | |
4228 | else | |
daae650d | 4229 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4230 | sed 's/^/| /' conftest.$ac_ext >&5 |
4231 | ||
4232 | # Passes both tests. | |
4233 | ac_preproc_ok=: | |
4234 | break | |
4235 | fi | |
5e0d2ebf | 4236 | |
2f1a1aea FCE |
4237 | rm -f conftest.err conftest.$ac_ext |
4238 | ||
4239 | done | |
4240 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4241 | rm -f conftest.err conftest.$ac_ext | |
4242 | if $ac_preproc_ok; then | |
4243 | : | |
4244 | else | |
daae650d MW |
4245 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4247 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2f1a1aea | 4248 | See \`config.log' for more details." >&5 |
daae650d | 4249 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2f1a1aea | 4250 | See \`config.log' for more details." >&2;} |
daae650d | 4251 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4252 | fi |
4253 | ||
4254 | ac_ext=c | |
4255 | ac_cpp='$CPP $CPPFLAGS' | |
4256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4259 | ||
4260 | ac_ext=c | |
4261 | ac_cpp='$CPP $CPPFLAGS' | |
4262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4265 | if test -n "$ac_tool_prefix"; then | |
4266 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4267 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
daae650d MW |
4268 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4269 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4270 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 4271 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4272 | else |
4273 | if test -n "$CC"; then | |
4274 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4275 | else | |
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4277 | for as_dir in $PATH | |
4278 | do | |
4279 | IFS=$as_save_IFS | |
4280 | test -z "$as_dir" && as_dir=. | |
4281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4283 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
daae650d | 4284 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4285 | break 2 |
4286 | fi | |
4287 | done | |
4288 | done | |
5e0d2ebf | 4289 | IFS=$as_save_IFS |
2f1a1aea FCE |
4290 | |
4291 | fi | |
4292 | fi | |
4293 | CC=$ac_cv_prog_CC | |
4294 | if test -n "$CC"; then | |
daae650d MW |
4295 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4296 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4297 | else |
daae650d MW |
4298 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4299 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4300 | fi |
4301 | ||
5e0d2ebf | 4302 | |
2f1a1aea FCE |
4303 | fi |
4304 | if test -z "$ac_cv_prog_CC"; then | |
4305 | ac_ct_CC=$CC | |
4306 | # Extract the first word of "gcc", so it can be a program name with args. | |
4307 | set dummy gcc; ac_word=$2 | |
daae650d MW |
4308 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4309 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4310 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
daae650d | 4311 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4312 | else |
4313 | if test -n "$ac_ct_CC"; then | |
4314 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4315 | else | |
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4317 | for as_dir in $PATH | |
4318 | do | |
4319 | IFS=$as_save_IFS | |
4320 | test -z "$as_dir" && as_dir=. | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4323 | ac_cv_prog_ac_ct_CC="gcc" |
daae650d | 4324 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4325 | break 2 |
4326 | fi | |
4327 | done | |
4328 | done | |
5e0d2ebf | 4329 | IFS=$as_save_IFS |
2f1a1aea FCE |
4330 | |
4331 | fi | |
4332 | fi | |
4333 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4334 | if test -n "$ac_ct_CC"; then | |
daae650d MW |
4335 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4336 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4337 | else |
daae650d MW |
4338 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4339 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4340 | fi |
4341 | ||
5e0d2ebf DS |
4342 | if test "x$ac_ct_CC" = x; then |
4343 | CC="" | |
4344 | else | |
4345 | case $cross_compiling:$ac_tool_warned in | |
4346 | yes:) | |
daae650d MW |
4347 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4348 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
4349 | ac_tool_warned=yes ;; |
4350 | esac | |
4351 | CC=$ac_ct_CC | |
4352 | fi | |
2f1a1aea FCE |
4353 | else |
4354 | CC="$ac_cv_prog_CC" | |
4355 | fi | |
4356 | ||
4357 | if test -z "$CC"; then | |
5e0d2ebf DS |
4358 | if test -n "$ac_tool_prefix"; then |
4359 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4360 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
daae650d MW |
4361 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4362 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4363 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 4364 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4365 | else |
4366 | if test -n "$CC"; then | |
4367 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4368 | else | |
4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4370 | for as_dir in $PATH | |
4371 | do | |
4372 | IFS=$as_save_IFS | |
4373 | test -z "$as_dir" && as_dir=. | |
4374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4376 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
daae650d | 4377 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4378 | break 2 |
4379 | fi | |
4380 | done | |
4381 | done | |
5e0d2ebf | 4382 | IFS=$as_save_IFS |
2f1a1aea FCE |
4383 | |
4384 | fi | |
4385 | fi | |
4386 | CC=$ac_cv_prog_CC | |
4387 | if test -n "$CC"; then | |
daae650d MW |
4388 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4389 | $as_echo "$CC" >&6; } | |
8ae7a94a | 4390 | else |
daae650d MW |
4391 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4392 | $as_echo "no" >&6; } | |
8ae7a94a FCE |
4393 | fi |
4394 | ||
8ae7a94a | 4395 | |
5e0d2ebf | 4396 | fi |
8ae7a94a FCE |
4397 | fi |
4398 | if test -z "$CC"; then | |
4399 | # Extract the first word of "cc", so it can be a program name with args. | |
4400 | set dummy cc; ac_word=$2 | |
daae650d MW |
4401 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4402 | $as_echo_n "checking for $ac_word... " >&6; } | |
8ae7a94a | 4403 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 4404 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4405 | else |
4406 | if test -n "$CC"; then | |
2f1a1aea FCE |
4407 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4408 | else | |
4409 | ac_prog_rejected=no | |
4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4411 | for as_dir in $PATH | |
4412 | do | |
4413 | IFS=$as_save_IFS | |
4414 | test -z "$as_dir" && as_dir=. | |
4415 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4416 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4417 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4418 | ac_prog_rejected=yes | |
4419 | continue | |
4420 | fi | |
4421 | ac_cv_prog_CC="cc" | |
daae650d | 4422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4423 | break 2 |
4424 | fi | |
4425 | done | |
4426 | done | |
5e0d2ebf | 4427 | IFS=$as_save_IFS |
2f1a1aea FCE |
4428 | |
4429 | if test $ac_prog_rejected = yes; then | |
4430 | # We found a bogon in the path, so make sure we never use it. | |
4431 | set dummy $ac_cv_prog_CC | |
4432 | shift | |
4433 | if test $# != 0; then | |
4434 | # We chose a different compiler from the bogus one. | |
4435 | # However, it has the same basename, so the bogon will be chosen | |
4436 | # first if we set CC to just the basename; use the full file name. | |
4437 | shift | |
4438 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4439 | fi | |
4440 | fi | |
4441 | fi | |
4442 | fi | |
4443 | CC=$ac_cv_prog_CC | |
4444 | if test -n "$CC"; then | |
daae650d MW |
4445 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4446 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4447 | else |
daae650d MW |
4448 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4449 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4450 | fi |
4451 | ||
5e0d2ebf | 4452 | |
2f1a1aea FCE |
4453 | fi |
4454 | if test -z "$CC"; then | |
4455 | if test -n "$ac_tool_prefix"; then | |
5e0d2ebf | 4456 | for ac_prog in cl.exe |
2f1a1aea FCE |
4457 | do |
4458 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4459 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
daae650d MW |
4460 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4461 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4462 | if test "${ac_cv_prog_CC+set}" = set; then |
daae650d | 4463 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4464 | else |
4465 | if test -n "$CC"; then | |
4466 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4467 | else | |
4468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4469 | for as_dir in $PATH | |
4470 | do | |
4471 | IFS=$as_save_IFS | |
4472 | test -z "$as_dir" && as_dir=. | |
4473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4475 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
daae650d | 4476 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4477 | break 2 |
4478 | fi | |
4479 | done | |
4480 | done | |
5e0d2ebf | 4481 | IFS=$as_save_IFS |
2f1a1aea FCE |
4482 | |
4483 | fi | |
4484 | fi | |
4485 | CC=$ac_cv_prog_CC | |
4486 | if test -n "$CC"; then | |
daae650d MW |
4487 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
4488 | $as_echo "$CC" >&6; } | |
2f1a1aea | 4489 | else |
daae650d MW |
4490 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4491 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4492 | fi |
4493 | ||
5e0d2ebf | 4494 | |
2f1a1aea FCE |
4495 | test -n "$CC" && break |
4496 | done | |
4497 | fi | |
4498 | if test -z "$CC"; then | |
4499 | ac_ct_CC=$CC | |
5e0d2ebf | 4500 | for ac_prog in cl.exe |
2f1a1aea FCE |
4501 | do |
4502 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4503 | set dummy $ac_prog; ac_word=$2 | |
daae650d MW |
4504 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4505 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 4506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
daae650d | 4507 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4508 | else |
4509 | if test -n "$ac_ct_CC"; then | |
4510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4511 | else | |
4512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4513 | for as_dir in $PATH | |
4514 | do | |
4515 | IFS=$as_save_IFS | |
4516 | test -z "$as_dir" && as_dir=. | |
4517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 4518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4519 | ac_cv_prog_ac_ct_CC="$ac_prog" |
daae650d | 4520 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4521 | break 2 |
4522 | fi | |
4523 | done | |
4524 | done | |
5e0d2ebf | 4525 | IFS=$as_save_IFS |
2f1a1aea FCE |
4526 | |
4527 | fi | |
4528 | fi | |
4529 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4530 | if test -n "$ac_ct_CC"; then | |
daae650d MW |
4531 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4532 | $as_echo "$ac_ct_CC" >&6; } | |
2f1a1aea | 4533 | else |
daae650d MW |
4534 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4535 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
4536 | fi |
4537 | ||
5e0d2ebf | 4538 | |
2f1a1aea FCE |
4539 | test -n "$ac_ct_CC" && break |
4540 | done | |
4541 | ||
5e0d2ebf DS |
4542 | if test "x$ac_ct_CC" = x; then |
4543 | CC="" | |
4544 | else | |
4545 | case $cross_compiling:$ac_tool_warned in | |
4546 | yes:) | |
daae650d MW |
4547 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4548 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
4549 | ac_tool_warned=yes ;; |
4550 | esac | |
4551 | CC=$ac_ct_CC | |
4552 | fi | |
2f1a1aea FCE |
4553 | fi |
4554 | ||
4555 | fi | |
4556 | ||
4557 | ||
daae650d MW |
4558 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4559 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4560 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2f1a1aea | 4561 | See \`config.log' for more details." >&5 |
daae650d | 4562 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
2f1a1aea | 4563 | See \`config.log' for more details." >&2;} |
daae650d | 4564 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
4565 | |
4566 | # Provide some information about the compiler. | |
daae650d MW |
4567 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
4568 | set X $ac_compile | |
4569 | ac_compiler=$2 | |
5e0d2ebf DS |
4570 | { (ac_try="$ac_compiler --version >&5" |
4571 | case "(($ac_try" in | |
4572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4573 | *) ac_try_echo=$ac_try;; | |
4574 | esac | |
daae650d MW |
4575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4576 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4577 | (eval "$ac_compiler --version >&5") 2>&5 |
2f1a1aea | 4578 | ac_status=$? |
daae650d | 4579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4580 | (exit $ac_status); } |
5e0d2ebf DS |
4581 | { (ac_try="$ac_compiler -v >&5" |
4582 | case "(($ac_try" in | |
4583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4584 | *) ac_try_echo=$ac_try;; | |
4585 | esac | |
daae650d MW |
4586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4587 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4588 | (eval "$ac_compiler -v >&5") 2>&5 |
2f1a1aea | 4589 | ac_status=$? |
daae650d | 4590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 4591 | (exit $ac_status); } |
5e0d2ebf DS |
4592 | { (ac_try="$ac_compiler -V >&5" |
4593 | case "(($ac_try" in | |
4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4595 | *) ac_try_echo=$ac_try;; | |
4596 | esac | |
daae650d MW |
4597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4598 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4599 | (eval "$ac_compiler -V >&5") 2>&5 |
2f1a1aea | 4600 | ac_status=$? |
daae650d | 4601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
4602 | (exit $ac_status); } |
4603 | ||
daae650d MW |
4604 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4605 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2f1a1aea | 4606 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
daae650d | 4607 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4608 | else |
4609 | cat >conftest.$ac_ext <<_ACEOF | |
4610 | /* confdefs.h. */ | |
4611 | _ACEOF | |
4612 | cat confdefs.h >>conftest.$ac_ext | |
4613 | cat >>conftest.$ac_ext <<_ACEOF | |
4614 | /* end confdefs.h. */ | |
4615 | ||
4616 | int | |
4617 | main () | |
4618 | { | |
4619 | #ifndef __GNUC__ | |
4620 | choke me | |
4621 | #endif | |
4622 | ||
4623 | ; | |
4624 | return 0; | |
4625 | } | |
4626 | _ACEOF | |
4627 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
4628 | if { (ac_try="$ac_compile" |
4629 | case "(($ac_try" in | |
4630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4631 | *) ac_try_echo=$ac_try;; | |
4632 | esac | |
daae650d MW |
4633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4634 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4635 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4636 | ac_status=$? |
4637 | grep -v '^ *+' conftest.er1 >conftest.err | |
4638 | rm -f conftest.er1 | |
4639 | cat conftest.err >&5 | |
daae650d | 4640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4641 | (exit $ac_status); } && { |
4642 | test -z "$ac_c_werror_flag" || | |
4643 | test ! -s conftest.err | |
4644 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
4645 | ac_compiler_gnu=yes |
4646 | else | |
daae650d | 4647 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4648 | sed 's/^/| /' conftest.$ac_ext >&5 |
4649 | ||
5e0d2ebf | 4650 | ac_compiler_gnu=no |
2f1a1aea | 4651 | fi |
5e0d2ebf DS |
4652 | |
4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
4654 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4655 | ||
4656 | fi | |
daae650d MW |
4657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4658 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4659 | if test $ac_compiler_gnu = yes; then | |
4660 | GCC=yes | |
4661 | else | |
4662 | GCC= | |
4663 | fi | |
2f1a1aea FCE |
4664 | ac_test_CFLAGS=${CFLAGS+set} |
4665 | ac_save_CFLAGS=$CFLAGS | |
daae650d MW |
4666 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4667 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2f1a1aea | 4668 | if test "${ac_cv_prog_cc_g+set}" = set; then |
daae650d | 4669 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4670 | else |
5e0d2ebf DS |
4671 | ac_save_c_werror_flag=$ac_c_werror_flag |
4672 | ac_c_werror_flag=yes | |
4673 | ac_cv_prog_cc_g=no | |
4674 | CFLAGS="-g" | |
4675 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4676 | /* confdefs.h. */ |
4677 | _ACEOF | |
4678 | cat confdefs.h >>conftest.$ac_ext | |
4679 | cat >>conftest.$ac_ext <<_ACEOF | |
4680 | /* end confdefs.h. */ | |
4681 | ||
4682 | int | |
4683 | main () | |
4684 | { | |
4685 | ||
4686 | ; | |
4687 | return 0; | |
4688 | } | |
4689 | _ACEOF | |
4690 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
4691 | if { (ac_try="$ac_compile" |
4692 | case "(($ac_try" in | |
4693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4694 | *) ac_try_echo=$ac_try;; | |
4695 | esac | |
daae650d MW |
4696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4697 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4698 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4699 | ac_status=$? |
4700 | grep -v '^ *+' conftest.er1 >conftest.err | |
4701 | rm -f conftest.er1 | |
4702 | cat conftest.err >&5 | |
daae650d | 4703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4704 | (exit $ac_status); } && { |
4705 | test -z "$ac_c_werror_flag" || | |
4706 | test ! -s conftest.err | |
4707 | } && test -s conftest.$ac_objext; then | |
70d28673 | 4708 | ac_cv_prog_cc_g=yes |
2f1a1aea | 4709 | else |
daae650d | 4710 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4711 | sed 's/^/| /' conftest.$ac_ext >&5 |
4712 | ||
5e0d2ebf DS |
4713 | CFLAGS="" |
4714 | cat >conftest.$ac_ext <<_ACEOF | |
4715 | /* confdefs.h. */ | |
4716 | _ACEOF | |
4717 | cat confdefs.h >>conftest.$ac_ext | |
4718 | cat >>conftest.$ac_ext <<_ACEOF | |
4719 | /* end confdefs.h. */ | |
4720 | ||
4721 | int | |
4722 | main () | |
4723 | { | |
4724 | ||
4725 | ; | |
4726 | return 0; | |
4727 | } | |
4728 | _ACEOF | |
4729 | rm -f conftest.$ac_objext | |
4730 | if { (ac_try="$ac_compile" | |
4731 | case "(($ac_try" in | |
4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4733 | *) ac_try_echo=$ac_try;; | |
4734 | esac | |
daae650d MW |
4735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4736 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf DS |
4737 | (eval "$ac_compile") 2>conftest.er1 |
4738 | ac_status=$? | |
4739 | grep -v '^ *+' conftest.er1 >conftest.err | |
4740 | rm -f conftest.er1 | |
4741 | cat conftest.err >&5 | |
daae650d | 4742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4743 | (exit $ac_status); } && { |
4744 | test -z "$ac_c_werror_flag" || | |
4745 | test ! -s conftest.err | |
4746 | } && test -s conftest.$ac_objext; then | |
4747 | : | |
4748 | else | |
daae650d | 4749 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
4750 | sed 's/^/| /' conftest.$ac_ext >&5 |
4751 | ||
4752 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4753 | CFLAGS="-g" | |
4754 | cat >conftest.$ac_ext <<_ACEOF | |
4755 | /* confdefs.h. */ | |
4756 | _ACEOF | |
4757 | cat confdefs.h >>conftest.$ac_ext | |
4758 | cat >>conftest.$ac_ext <<_ACEOF | |
4759 | /* end confdefs.h. */ | |
4760 | ||
4761 | int | |
4762 | main () | |
4763 | { | |
4764 | ||
4765 | ; | |
4766 | return 0; | |
4767 | } | |
4768 | _ACEOF | |
4769 | rm -f conftest.$ac_objext | |
4770 | if { (ac_try="$ac_compile" | |
4771 | case "(($ac_try" in | |
4772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4773 | *) ac_try_echo=$ac_try;; | |
4774 | esac | |
daae650d MW |
4775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4776 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf DS |
4777 | (eval "$ac_compile") 2>conftest.er1 |
4778 | ac_status=$? | |
4779 | grep -v '^ *+' conftest.er1 >conftest.err | |
4780 | rm -f conftest.er1 | |
4781 | cat conftest.err >&5 | |
daae650d | 4782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4783 | (exit $ac_status); } && { |
4784 | test -z "$ac_c_werror_flag" || | |
4785 | test ! -s conftest.err | |
4786 | } && test -s conftest.$ac_objext; then | |
4787 | ac_cv_prog_cc_g=yes | |
4788 | else | |
daae650d | 4789 | $as_echo "$as_me: failed program was:" >&5 |
5e0d2ebf DS |
4790 | sed 's/^/| /' conftest.$ac_ext >&5 |
4791 | ||
4792 | ||
4793 | fi | |
4794 | ||
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4796 | fi | |
4797 | ||
4798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
70d28673 | 4799 | fi |
5e0d2ebf DS |
4800 | |
4801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4802 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4803 | fi |
daae650d MW |
4804 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4805 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
70d28673 DS |
4806 | if test "$ac_test_CFLAGS" = set; then |
4807 | CFLAGS=$ac_save_CFLAGS | |
4808 | elif test $ac_cv_prog_cc_g = yes; then | |
4809 | if test "$GCC" = yes; then | |
4810 | CFLAGS="-g -O2" | |
4811 | else | |
4812 | CFLAGS="-g" | |
4813 | fi | |
4814 | else | |
4815 | if test "$GCC" = yes; then | |
4816 | CFLAGS="-O2" | |
4817 | else | |
4818 | CFLAGS= | |
4819 | fi | |
4820 | fi | |
daae650d MW |
4821 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4822 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5e0d2ebf | 4823 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
daae650d | 4824 | $as_echo_n "(cached) " >&6 |
70d28673 | 4825 | else |
5e0d2ebf | 4826 | ac_cv_prog_cc_c89=no |
70d28673 DS |
4827 | ac_save_CC=$CC |
4828 | cat >conftest.$ac_ext <<_ACEOF | |
2f1a1aea FCE |
4829 | /* confdefs.h. */ |
4830 | _ACEOF | |
4831 | cat confdefs.h >>conftest.$ac_ext | |
4832 | cat >>conftest.$ac_ext <<_ACEOF | |
4833 | /* end confdefs.h. */ | |
70d28673 DS |
4834 | #include <stdarg.h> |
4835 | #include <stdio.h> | |
4836 | #include <sys/types.h> | |
4837 | #include <sys/stat.h> | |
4838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4839 | struct buf { int x; }; | |
4840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4841 | static char *e (p, i) | |
4842 | char **p; | |
4843 | int i; | |
4844 | { | |
4845 | return p[i]; | |
4846 | } | |
4847 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4848 | { | |
4849 | char *s; | |
4850 | va_list v; | |
4851 | va_start (v,p); | |
4852 | s = g (p, va_arg (v,int)); | |
4853 | va_end (v); | |
4854 | return s; | |
4855 | } | |
4856 | ||
4857 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4858 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4859 | These don't provoke an error unfortunately, instead are silently treated | |
5e0d2ebf | 4860 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4861 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4862 | array size at least. It's necessary to write '\x00'==0 to get something | |
5e0d2ebf | 4863 | that's true only with -std. */ |
70d28673 DS |
4864 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4865 | ||
5e0d2ebf DS |
4866 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4867 | inside strings and character constants. */ | |
4868 | #define FOO(x) 'x' | |
4869 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4870 | ||
70d28673 DS |
4871 | int test (int i, double x); |
4872 | struct s1 {int (*f) (int a);}; | |
4873 | struct s2 {int (*f) (double a);}; | |
4874 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4875 | int argc; | |
4876 | char **argv; | |
2f1a1aea FCE |
4877 | int |
4878 | main () | |
4879 | { | |
70d28673 | 4880 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
4881 | ; |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
5e0d2ebf DS |
4885 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4886 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
4887 | do |
4888 | CC="$ac_save_CC $ac_arg" | |
4889 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
4890 | if { (ac_try="$ac_compile" |
4891 | case "(($ac_try" in | |
4892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4893 | *) ac_try_echo=$ac_try;; | |
4894 | esac | |
daae650d MW |
4895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4896 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 4897 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
4898 | ac_status=$? |
4899 | grep -v '^ *+' conftest.er1 >conftest.err | |
4900 | rm -f conftest.er1 | |
4901 | cat conftest.err >&5 | |
daae650d | 4902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
4903 | (exit $ac_status); } && { |
4904 | test -z "$ac_c_werror_flag" || | |
4905 | test ! -s conftest.err | |
4906 | } && test -s conftest.$ac_objext; then | |
4907 | ac_cv_prog_cc_c89=$ac_arg | |
2f1a1aea | 4908 | else |
daae650d | 4909 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
4911 | ||
5e0d2ebf | 4912 | |
2f1a1aea | 4913 | fi |
5e0d2ebf DS |
4914 | |
4915 | rm -f core conftest.err conftest.$ac_objext | |
4916 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4917 | done |
5e0d2ebf | 4918 | rm -f conftest.$ac_ext |
70d28673 DS |
4919 | CC=$ac_save_CC |
4920 | ||
2f1a1aea | 4921 | fi |
5e0d2ebf DS |
4922 | # AC_CACHE_VAL |
4923 | case "x$ac_cv_prog_cc_c89" in | |
4924 | x) | |
daae650d MW |
4925 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
4926 | $as_echo "none needed" >&6; } ;; | |
5e0d2ebf | 4927 | xno) |
daae650d MW |
4928 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
4929 | $as_echo "unsupported" >&6; } ;; | |
70d28673 | 4930 | *) |
5e0d2ebf | 4931 | CC="$CC $ac_cv_prog_cc_c89" |
daae650d MW |
4932 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4933 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
70d28673 | 4934 | esac |
2f1a1aea | 4935 | |
2f1a1aea | 4936 | |
2f1a1aea FCE |
4937 | ac_ext=c |
4938 | ac_cpp='$CPP $CPPFLAGS' | |
4939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4942 | ||
4943 | depcc="$CC" am_compiler_list= | |
4944 | ||
daae650d MW |
4945 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4946 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
2f1a1aea | 4947 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
daae650d | 4948 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4949 | else |
4950 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4951 | # We make a subdir and do the tests there. Otherwise we can end up | |
4952 | # making bogus files that we don't know about and never remove. For | |
4953 | # instance it was reported that on HP-UX the gcc test will end up | |
4954 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4955 | # in D'. | |
4956 | mkdir conftest.dir | |
4957 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4958 | # using a relative directory. | |
4959 | cp "$am_depcomp" conftest.dir | |
4960 | cd conftest.dir | |
4961 | # We will build objects and dependencies in a subdirectory because | |
4962 | # it helps to detect inapplicable dependency modes. For instance | |
4963 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4964 | # side effect of compilation, but ICC will put the dependencies in | |
4965 | # the current directory while Tru64 will put them in the object | |
4966 | # directory. | |
4967 | mkdir sub | |
4968 | ||
4969 | am_cv_CC_dependencies_compiler_type=none | |
4970 | if test "$am_compiler_list" = ""; then | |
4971 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4972 | fi | |
4973 | for depmode in $am_compiler_list; do | |
4974 | # Setup a source with many dependencies, because some compilers | |
4975 | # like to wrap large dependency lists on column 80 (with \), and | |
4976 | # we should not choose a depcomp mode which is confused by this. | |
4977 | # | |
4978 | # We need to recreate these files for each test, as the compiler may | |
4979 | # overwrite some of them when testing with obscure command lines. | |
4980 | # This happens at least with the AIX C compiler. | |
4981 | : > sub/conftest.c | |
4982 | for i in 1 2 3 4 5 6; do | |
4983 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4984 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4985 | # Solaris 8's {/usr,}/bin/sh. | |
4986 | touch sub/conftst$i.h | |
4987 | done | |
4988 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4989 | ||
4990 | case $depmode in | |
4991 | nosideeffect) | |
4992 | # after this tag, mechanisms are not by side-effect, so they'll | |
4993 | # only be used when explicitly requested | |
4994 | if test "x$enable_dependency_tracking" = xyes; then | |
4995 | continue | |
4996 | else | |
4997 | break | |
4998 | fi | |
4999 | ;; | |
5000 | none) break ;; | |
5001 | esac | |
5002 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5003 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5004 | # handle `-M -o', and we need to detect this. | |
5005 | if depmode=$depmode \ | |
5006 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5007 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5008 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5009 | >/dev/null 2>conftest.err && | |
10b20266 | 5010 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5011 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5012 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5013 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5014 | # icc doesn't choke on unknown options, it will just issue warnings | |
5015 | # or remarks (even with -Werror). So we grep stderr for any message | |
5016 | # that says an option was ignored or not supported. | |
5017 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5018 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5019 | # The diagnosis changed in icc 8.0: | |
5020 | # icc: Command line remark: option '-MP' not supported | |
5021 | if (grep 'ignoring option' conftest.err || | |
5022 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5023 | am_cv_CC_dependencies_compiler_type=$depmode | |
5024 | break | |
5025 | fi | |
5026 | fi | |
5027 | done | |
5028 | ||
5029 | cd .. | |
5030 | rm -rf conftest.dir | |
5031 | else | |
5032 | am_cv_CC_dependencies_compiler_type=none | |
5033 | fi | |
5034 | ||
5035 | fi | |
daae650d MW |
5036 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5037 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2f1a1aea FCE |
5038 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5039 | ||
10b20266 | 5040 | if |
2f1a1aea FCE |
5041 | test "x$enable_dependency_tracking" != xno \ |
5042 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5043 | am__fastdepCC_TRUE= | |
5044 | am__fastdepCC_FALSE='#' | |
5045 | else | |
5046 | am__fastdepCC_TRUE='#' | |
5047 | am__fastdepCC_FALSE= | |
5048 | fi | |
5049 | ||
5050 | ||
5051 | ||
5052 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
5053 | ||
8ae7a94a | 5054 | if test "x$CC" != xcc; then |
daae650d MW |
5055 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
5056 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
8ae7a94a | 5057 | else |
daae650d MW |
5058 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
5059 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
8ae7a94a | 5060 | fi |
daae650d | 5061 | set dummy $CC; ac_cc=`$as_echo "$2" | |
8ae7a94a | 5062 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5e0d2ebf | 5063 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 5064 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
5065 | else |
5066 | cat >conftest.$ac_ext <<_ACEOF | |
5067 | /* confdefs.h. */ | |
5068 | _ACEOF | |
5069 | cat confdefs.h >>conftest.$ac_ext | |
5070 | cat >>conftest.$ac_ext <<_ACEOF | |
5071 | /* end confdefs.h. */ | |
5072 | ||
5073 | int | |
5074 | main () | |
5075 | { | |
5076 | ||
5077 | ; | |
5078 | return 0; | |
5079 | } | |
5080 | _ACEOF | |
5081 | # Make sure it works both with $CC and with simple cc. | |
5082 | # We do the test twice because some compilers refuse to overwrite an | |
5083 | # existing .o file with -o, though they will create one. | |
5e0d2ebf DS |
5084 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5085 | rm -f conftest2.* | |
5086 | if { (case "(($ac_try" in | |
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5088 | *) ac_try_echo=$ac_try;; | |
5089 | esac | |
daae650d MW |
5090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5091 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5092 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5093 | ac_status=$? |
daae650d | 5094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5095 | (exit $ac_status); } && |
5e0d2ebf DS |
5096 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5098 | *) ac_try_echo=$ac_try;; | |
5099 | esac | |
daae650d MW |
5100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5101 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5102 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5103 | ac_status=$? |
daae650d | 5104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5105 | (exit $ac_status); }; |
5106 | then | |
5107 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5108 | if test "x$CC" != xcc; then | |
5109 | # Test first that cc exists at all. | |
5110 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
5e0d2ebf DS |
5111 | { (case "(($ac_try" in |
5112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5113 | *) ac_try_echo=$ac_try;; | |
5114 | esac | |
daae650d MW |
5115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5116 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5117 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5118 | ac_status=$? |
daae650d | 5119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5120 | (exit $ac_status); }; }; then |
5e0d2ebf DS |
5121 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5122 | rm -f conftest2.* | |
5123 | if { (case "(($ac_try" in | |
5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5125 | *) ac_try_echo=$ac_try;; | |
5126 | esac | |
daae650d MW |
5127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5128 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5129 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5130 | ac_status=$? |
daae650d | 5131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a | 5132 | (exit $ac_status); } && |
5e0d2ebf DS |
5133 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
5134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5135 | *) ac_try_echo=$ac_try;; | |
5136 | esac | |
daae650d MW |
5137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5138 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5139 | (eval "$ac_try") 2>&5 |
8ae7a94a | 5140 | ac_status=$? |
daae650d | 5141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ae7a94a FCE |
5142 | (exit $ac_status); }; |
5143 | then | |
5144 | # cc works too. | |
5145 | : | |
5146 | else | |
5147 | # cc exists but doesn't like -o. | |
5148 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5149 | fi | |
5150 | fi | |
5151 | fi | |
5152 | else | |
5153 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5154 | fi | |
5e0d2ebf | 5155 | rm -f core conftest* |
8ae7a94a FCE |
5156 | |
5157 | fi | |
5e0d2ebf | 5158 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
daae650d MW |
5159 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5160 | $as_echo "yes" >&6; } | |
8ae7a94a | 5161 | else |
daae650d MW |
5162 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5163 | $as_echo "no" >&6; } | |
8ae7a94a FCE |
5164 | |
5165 | cat >>confdefs.h <<\_ACEOF | |
5166 | #define NO_MINUS_C_MINUS_O 1 | |
5167 | _ACEOF | |
5168 | ||
5169 | fi | |
5170 | ||
5171 | # FIXME: we rely on the cache variable name because | |
5172 | # there is no other way. | |
5173 | set dummy $CC | |
5174 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5175 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
5176 | # Losing compiler, so override with the script. | |
5177 | # FIXME: It is wrong to rewrite CC. | |
5178 | # But if we don't then we get into trouble of one sort or another. | |
5179 | # A longer-term fix would be to have automake use am__CC in this case, | |
5180 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5181 | CC="$am_aux_dir/compile $CC" | |
5182 | fi | |
5183 | ||
10b20266 | 5184 | |
daae650d MW |
5185 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
5186 | $as_echo_n "checking for function prototypes... " >&6; } | |
5e0d2ebf | 5187 | if test "$ac_cv_prog_cc_c89" != no; then |
daae650d MW |
5188 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5189 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5190 | |
5191 | cat >>confdefs.h <<\_ACEOF | |
5192 | #define PROTOTYPES 1 | |
5193 | _ACEOF | |
5194 | ||
5195 | ||
5196 | cat >>confdefs.h <<\_ACEOF | |
5197 | #define __PROTOTYPES 1 | |
5198 | _ACEOF | |
5199 | ||
5200 | else | |
daae650d MW |
5201 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5202 | $as_echo "no" >&6; } | |
5e0d2ebf DS |
5203 | fi |
5204 | ||
5205 | ||
5206 | ||
daae650d MW |
5207 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
5208 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
92aff3c7 | 5209 | if test "${ac_cv_path_GREP+set}" = set; then |
daae650d | 5210 | $as_echo_n "(cached) " >&6 |
5e0d2ebf | 5211 | else |
daae650d | 5212 | if test -z "$GREP"; then |
5e0d2ebf | 5213 | ac_path_GREP_found=false |
daae650d MW |
5214 | # Loop through the user's path and test for each of PROGNAME-LIST |
5215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5e0d2ebf DS |
5216 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5217 | do | |
5218 | IFS=$as_save_IFS | |
5219 | test -z "$as_dir" && as_dir=. | |
5220 | for ac_prog in grep ggrep; do | |
daae650d MW |
5221 | for ac_exec_ext in '' $ac_executable_extensions; do |
5222 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5223 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5224 | # Check for GNU ac_path_GREP and select it if it is found. | |
5e0d2ebf DS |
5225 | # Check for GNU $ac_path_GREP |
5226 | case `"$ac_path_GREP" --version 2>&1` in | |
5227 | *GNU*) | |
5228 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5229 | *) | |
5230 | ac_count=0 | |
daae650d | 5231 | $as_echo_n 0123456789 >"conftest.in" |
5e0d2ebf DS |
5232 | while : |
5233 | do | |
5234 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5235 | mv "conftest.tmp" "conftest.in" | |
5236 | cp "conftest.in" "conftest.nl" | |
daae650d | 5237 | $as_echo 'GREP' >> "conftest.nl" |
5e0d2ebf DS |
5238 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5239 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5240 | ac_count=`expr $ac_count + 1` | |
5241 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5242 | # Best one so far, save it but keep looking for a better one | |
5243 | ac_cv_path_GREP="$ac_path_GREP" | |
5244 | ac_path_GREP_max=$ac_count | |
5245 | fi | |
5246 | # 10*(2^10) chars as input seems more than enough | |
5247 | test $ac_count -gt 10 && break | |
5248 | done | |
5249 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5250 | esac | |
5251 | ||
daae650d MW |
5252 | $ac_path_GREP_found && break 3 |
5253 | done | |
5e0d2ebf DS |
5254 | done |
5255 | done | |
5e0d2ebf | 5256 | IFS=$as_save_IFS |
daae650d MW |
5257 | if test -z "$ac_cv_path_GREP"; then |
5258 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5259 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5e0d2ebf | 5260 | { (exit 1); exit 1; }; } |
daae650d | 5261 | fi |
5e0d2ebf DS |
5262 | else |
5263 | ac_cv_path_GREP=$GREP | |
70d28673 DS |
5264 | fi |
5265 | ||
5e0d2ebf | 5266 | fi |
daae650d MW |
5267 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
5268 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5e0d2ebf DS |
5269 | GREP="$ac_cv_path_GREP" |
5270 | ||
70d28673 | 5271 | |
daae650d MW |
5272 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
5273 | $as_echo_n "checking for egrep... " >&6; } | |
5e0d2ebf | 5274 | if test "${ac_cv_path_EGREP+set}" = set; then |
daae650d | 5275 | $as_echo_n "(cached) " >&6 |
5e0d2ebf DS |
5276 | else |
5277 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5278 | then ac_cv_path_EGREP="$GREP -E" | |
5279 | else | |
daae650d | 5280 | if test -z "$EGREP"; then |
5e0d2ebf | 5281 | ac_path_EGREP_found=false |
daae650d MW |
5282 | # Loop through the user's path and test for each of PROGNAME-LIST |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5e0d2ebf DS |
5284 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | test -z "$as_dir" && as_dir=. | |
5288 | for ac_prog in egrep; do | |
daae650d MW |
5289 | for ac_exec_ext in '' $ac_executable_extensions; do |
5290 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5291 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5292 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5e0d2ebf DS |
5293 | # Check for GNU $ac_path_EGREP |
5294 | case `"$ac_path_EGREP" --version 2>&1` in | |
5295 | *GNU*) | |
5296 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5297 | *) | |
5298 | ac_count=0 | |
daae650d | 5299 | $as_echo_n 0123456789 >"conftest.in" |
5e0d2ebf DS |
5300 | while : |
5301 | do | |
5302 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5303 | mv "conftest.tmp" "conftest.in" | |
5304 | cp "conftest.in" "conftest.nl" | |
daae650d | 5305 | $as_echo 'EGREP' >> "conftest.nl" |
5e0d2ebf DS |
5306 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5307 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5308 | ac_count=`expr $ac_count + 1` | |
5309 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5310 | # Best one so far, save it but keep looking for a better one | |
5311 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5312 | ac_path_EGREP_max=$ac_count | |
2f1a1aea | 5313 | fi |
5e0d2ebf DS |
5314 | # 10*(2^10) chars as input seems more than enough |
5315 | test $ac_count -gt 10 && break | |
5316 | done | |
5317 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5318 | esac | |
5319 | ||
daae650d MW |
5320 | $ac_path_EGREP_found && break 3 |
5321 | done | |
5e0d2ebf DS |
5322 | done |
5323 | done | |
5e0d2ebf | 5324 | IFS=$as_save_IFS |
daae650d MW |
5325 | if test -z "$ac_cv_path_EGREP"; then |
5326 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5327 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5e0d2ebf | 5328 | { (exit 1); exit 1; }; } |
daae650d | 5329 | fi |
5e0d2ebf DS |
5330 | else |
5331 | ac_cv_path_EGREP=$EGREP | |
5332 | fi | |
5333 | ||
5e0d2ebf | 5334 | fi |
2f1a1aea | 5335 | fi |
daae650d MW |
5336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5337 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5e0d2ebf | 5338 | EGREP="$ac_cv_path_EGREP" |
2f1a1aea FCE |
5339 | |
5340 | ||
daae650d MW |
5341 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5342 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
2f1a1aea | 5343 | if test "${ac_cv_header_stdc+set}" = set; then |
daae650d | 5344 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5345 | else |
5346 | cat >conftest.$ac_ext <<_ACEOF | |
5347 | /* confdefs.h. */ | |
5348 | _ACEOF | |
5349 | cat confdefs.h >>conftest.$ac_ext | |
5350 | cat >>conftest.$ac_ext <<_ACEOF | |
5351 | /* end confdefs.h. */ | |
5352 | #include <stdlib.h> | |
5353 | #include <stdarg.h> | |
5354 | #include <string.h> | |
5355 | #include <float.h> | |
5356 | ||
5357 | int | |
5358 | main () | |
5359 | { | |
5360 | ||
5361 | ; | |
5362 | return 0; | |
5363 | } | |
5364 | _ACEOF | |
5365 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
5366 | if { (ac_try="$ac_compile" |
5367 | case "(($ac_try" in | |
5368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5369 | *) ac_try_echo=$ac_try;; | |
5370 | esac | |
daae650d MW |
5371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5372 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5373 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5374 | ac_status=$? |
5375 | grep -v '^ *+' conftest.er1 >conftest.err | |
5376 | rm -f conftest.er1 | |
5377 | cat conftest.err >&5 | |
daae650d | 5378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
5379 | (exit $ac_status); } && { |
5380 | test -z "$ac_c_werror_flag" || | |
5381 | test ! -s conftest.err | |
5382 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5383 | ac_cv_header_stdc=yes |
5384 | else | |
daae650d | 5385 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5386 | sed 's/^/| /' conftest.$ac_ext >&5 |
5387 | ||
5e0d2ebf | 5388 | ac_cv_header_stdc=no |
2f1a1aea | 5389 | fi |
5e0d2ebf DS |
5390 | |
5391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea FCE |
5392 | |
5393 | if test $ac_cv_header_stdc = yes; then | |
5394 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5395 | cat >conftest.$ac_ext <<_ACEOF | |
5396 | /* confdefs.h. */ | |
5397 | _ACEOF | |
5398 | cat confdefs.h >>conftest.$ac_ext | |
5399 | cat >>conftest.$ac_ext <<_ACEOF | |
5400 | /* end confdefs.h. */ | |
5401 | #include <string.h> | |
5402 | ||
5403 | _ACEOF | |
5404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5405 | $EGREP "memchr" >/dev/null 2>&1; then | |
5406 | : | |
5407 | else | |
5408 | ac_cv_header_stdc=no | |
5409 | fi | |
5410 | rm -f conftest* | |
5411 | ||
5412 | fi | |
5413 | ||
5414 | if test $ac_cv_header_stdc = yes; then | |
5415 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5416 | cat >conftest.$ac_ext <<_ACEOF | |
5417 | /* confdefs.h. */ | |
5418 | _ACEOF | |
5419 | cat confdefs.h >>conftest.$ac_ext | |
5420 | cat >>conftest.$ac_ext <<_ACEOF | |
5421 | /* end confdefs.h. */ | |
5422 | #include <stdlib.h> | |
5423 | ||
5424 | _ACEOF | |
5425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5426 | $EGREP "free" >/dev/null 2>&1; then | |
5427 | : | |
5428 | else | |
5429 | ac_cv_header_stdc=no | |
5430 | fi | |
5431 | rm -f conftest* | |
5432 | ||
5433 | fi | |
5434 | ||
5435 | if test $ac_cv_header_stdc = yes; then | |
5436 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5437 | if test "$cross_compiling" = yes; then | |
5438 | : | |
5439 | else | |
5440 | cat >conftest.$ac_ext <<_ACEOF | |
5441 | /* confdefs.h. */ | |
5442 | _ACEOF | |
5443 | cat confdefs.h >>conftest.$ac_ext | |
5444 | cat >>conftest.$ac_ext <<_ACEOF | |
5445 | /* end confdefs.h. */ | |
5446 | #include <ctype.h> | |
5e0d2ebf | 5447 | #include <stdlib.h> |
2f1a1aea FCE |
5448 | #if ((' ' & 0x0FF) == 0x020) |
5449 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5450 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5451 | #else | |
5452 | # define ISLOWER(c) \ | |
5453 | (('a' <= (c) && (c) <= 'i') \ | |
5454 | || ('j' <= (c) && (c) <= 'r') \ | |
5455 | || ('s' <= (c) && (c) <= 'z')) | |
5456 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5457 | #endif | |
5458 | ||
5459 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5460 | int | |
5461 | main () | |
5462 | { | |
5463 | int i; | |
5464 | for (i = 0; i < 256; i++) | |
5465 | if (XOR (islower (i), ISLOWER (i)) | |
5466 | || toupper (i) != TOUPPER (i)) | |
5e0d2ebf DS |
5467 | return 2; |
5468 | return 0; | |
2f1a1aea FCE |
5469 | } |
5470 | _ACEOF | |
5471 | rm -f conftest$ac_exeext | |
5e0d2ebf DS |
5472 | if { (ac_try="$ac_link" |
5473 | case "(($ac_try" in | |
5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5475 | *) ac_try_echo=$ac_try;; | |
5476 | esac | |
daae650d MW |
5477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5478 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5479 | (eval "$ac_link") 2>&5 |
2f1a1aea | 5480 | ac_status=$? |
daae650d | 5481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea | 5482 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5e0d2ebf DS |
5483 | { (case "(($ac_try" in |
5484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5485 | *) ac_try_echo=$ac_try;; | |
5486 | esac | |
daae650d MW |
5487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5488 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5489 | (eval "$ac_try") 2>&5 |
2f1a1aea | 5490 | ac_status=$? |
daae650d | 5491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2f1a1aea FCE |
5492 | (exit $ac_status); }; }; then |
5493 | : | |
5494 | else | |
daae650d MW |
5495 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5496 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
5497 | sed 's/^/| /' conftest.$ac_ext >&5 |
5498 | ||
5499 | ( exit $ac_status ) | |
5500 | ac_cv_header_stdc=no | |
5501 | fi | |
daae650d | 5502 | rm -rf conftest.dSYM |
5e0d2ebf | 5503 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 5504 | fi |
5e0d2ebf DS |
5505 | |
5506 | ||
2f1a1aea FCE |
5507 | fi |
5508 | fi | |
daae650d MW |
5509 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5510 | $as_echo "$ac_cv_header_stdc" >&6; } | |
2f1a1aea FCE |
5511 | if test $ac_cv_header_stdc = yes; then |
5512 | ||
5513 | cat >>confdefs.h <<\_ACEOF | |
5514 | #define STDC_HEADERS 1 | |
5515 | _ACEOF | |
5516 | ||
5517 | fi | |
5518 | ||
5519 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5530 | inttypes.h stdint.h unistd.h | |
5531 | do | |
daae650d MW |
5532 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5533 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5534 | $as_echo_n "checking for $ac_header... " >&6; } | |
5e0d2ebf | 5535 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 5536 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5537 | else |
5538 | cat >conftest.$ac_ext <<_ACEOF | |
5539 | /* confdefs.h. */ | |
5540 | _ACEOF | |
5541 | cat confdefs.h >>conftest.$ac_ext | |
5542 | cat >>conftest.$ac_ext <<_ACEOF | |
5543 | /* end confdefs.h. */ | |
5544 | $ac_includes_default | |
5545 | ||
5546 | #include <$ac_header> | |
5547 | _ACEOF | |
5548 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
5549 | if { (ac_try="$ac_compile" |
5550 | case "(($ac_try" in | |
5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5552 | *) ac_try_echo=$ac_try;; | |
5553 | esac | |
daae650d MW |
5554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5555 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5556 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5557 | ac_status=$? |
5558 | grep -v '^ *+' conftest.er1 >conftest.err | |
5559 | rm -f conftest.er1 | |
5560 | cat conftest.err >&5 | |
daae650d | 5561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
5562 | (exit $ac_status); } && { |
5563 | test -z "$ac_c_werror_flag" || | |
5564 | test ! -s conftest.err | |
5565 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5566 | eval "$as_ac_Header=yes" |
5567 | else | |
daae650d | 5568 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
5570 | ||
5e0d2ebf | 5571 | eval "$as_ac_Header=no" |
2f1a1aea | 5572 | fi |
5e0d2ebf DS |
5573 | |
5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f1a1aea | 5575 | fi |
daae650d MW |
5576 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5577 | $as_echo "$as_val"'` | |
5578 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5579 | $as_echo "$ac_res" >&6; } | |
5580 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5581 | $as_echo "$as_val"'` | |
5582 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5583 | cat >>confdefs.h <<_ACEOF |
daae650d | 5584 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5585 | _ACEOF |
5586 | ||
5587 | fi | |
5588 | ||
5589 | done | |
5590 | ||
5591 | ||
5592 | ||
5593 | if test "$ac_cv_prog_cc_stdc" != no; then | |
5594 | U= ANSI2KNR= | |
5595 | else | |
5596 | U=_ ANSI2KNR=./ansi2knr | |
5597 | fi | |
5598 | # Ensure some checks needed by ansi2knr itself. | |
5599 | ||
5600 | ||
5601 | for ac_header in string.h | |
5602 | do | |
daae650d | 5603 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5e0d2ebf | 5604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d MW |
5605 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5606 | $as_echo_n "checking for $ac_header... " >&6; } | |
5e0d2ebf | 5607 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 5608 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5609 | fi |
daae650d MW |
5610 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5611 | $as_echo "$as_val"'` | |
5612 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5613 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5614 | else |
5615 | # Is the header compilable? | |
daae650d MW |
5616 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5617 | $as_echo_n "checking $ac_header usability... " >&6; } | |
2f1a1aea FCE |
5618 | cat >conftest.$ac_ext <<_ACEOF |
5619 | /* confdefs.h. */ | |
5620 | _ACEOF | |
5621 | cat confdefs.h >>conftest.$ac_ext | |
5622 | cat >>conftest.$ac_ext <<_ACEOF | |
5623 | /* end confdefs.h. */ | |
5624 | $ac_includes_default | |
5625 | #include <$ac_header> | |
5626 | _ACEOF | |
5627 | rm -f conftest.$ac_objext | |
5e0d2ebf DS |
5628 | if { (ac_try="$ac_compile" |
5629 | case "(($ac_try" in | |
5630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5631 | *) ac_try_echo=$ac_try;; | |
5632 | esac | |
daae650d MW |
5633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5634 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5635 | (eval "$ac_compile") 2>conftest.er1 |
2f1a1aea FCE |
5636 | ac_status=$? |
5637 | grep -v '^ *+' conftest.er1 >conftest.err | |
5638 | rm -f conftest.er1 | |
5639 | cat conftest.err >&5 | |
daae650d | 5640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
5641 | (exit $ac_status); } && { |
5642 | test -z "$ac_c_werror_flag" || | |
5643 | test ! -s conftest.err | |
5644 | } && test -s conftest.$ac_objext; then | |
2f1a1aea FCE |
5645 | ac_header_compiler=yes |
5646 | else | |
daae650d | 5647 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5648 | sed 's/^/| /' conftest.$ac_ext >&5 |
5649 | ||
5e0d2ebf | 5650 | ac_header_compiler=no |
2f1a1aea | 5651 | fi |
5e0d2ebf DS |
5652 | |
5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
daae650d MW |
5654 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5655 | $as_echo "$ac_header_compiler" >&6; } | |
2f1a1aea FCE |
5656 | |
5657 | # Is the header present? | |
daae650d MW |
5658 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5659 | $as_echo_n "checking $ac_header presence... " >&6; } | |
2f1a1aea FCE |
5660 | cat >conftest.$ac_ext <<_ACEOF |
5661 | /* confdefs.h. */ | |
5662 | _ACEOF | |
5663 | cat confdefs.h >>conftest.$ac_ext | |
5664 | cat >>conftest.$ac_ext <<_ACEOF | |
5665 | /* end confdefs.h. */ | |
5666 | #include <$ac_header> | |
5667 | _ACEOF | |
5e0d2ebf DS |
5668 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5669 | case "(($ac_try" in | |
5670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5671 | *) ac_try_echo=$ac_try;; | |
5672 | esac | |
daae650d MW |
5673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5674 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 5675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2f1a1aea FCE |
5676 | ac_status=$? |
5677 | grep -v '^ *+' conftest.er1 >conftest.err | |
5678 | rm -f conftest.er1 | |
5679 | cat conftest.err >&5 | |
daae650d | 5680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf DS |
5681 | (exit $ac_status); } >/dev/null && { |
5682 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5683 | test ! -s conftest.err | |
5684 | }; then | |
2f1a1aea FCE |
5685 | ac_header_preproc=yes |
5686 | else | |
daae650d | 5687 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
5688 | sed 's/^/| /' conftest.$ac_ext >&5 |
5689 | ||
5690 | ac_header_preproc=no | |
5691 | fi | |
5e0d2ebf | 5692 | |
2f1a1aea | 5693 | rm -f conftest.err conftest.$ac_ext |
daae650d MW |
5694 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5695 | $as_echo "$ac_header_preproc" >&6; } | |
2f1a1aea FCE |
5696 | |
5697 | # So? What about this header? | |
5698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5699 | yes:no: ) | |
daae650d MW |
5700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5701 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5703 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
2f1a1aea FCE |
5704 | ac_header_preproc=yes |
5705 | ;; | |
5706 | no:yes:* ) | |
daae650d MW |
5707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5708 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5710 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5712 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5714 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5715 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5716 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5717 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5718 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5e0d2ebf | 5719 | ( cat <<\_ASBOX |
2f1a1aea FCE |
5720 | ## ------------------------------------------- ## |
5721 | ## Report this to systemtap@sources.redhat.com ## | |
5722 | ## ------------------------------------------- ## | |
5723 | _ASBOX | |
5e0d2ebf | 5724 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2f1a1aea FCE |
5725 | ;; |
5726 | esac | |
daae650d MW |
5727 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5728 | $as_echo_n "checking for $ac_header... " >&6; } | |
5e0d2ebf | 5729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 5730 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5731 | else |
5732 | eval "$as_ac_Header=\$ac_header_preproc" | |
5733 | fi | |
daae650d MW |
5734 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5735 | $as_echo "$as_val"'` | |
5736 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5737 | $as_echo "$ac_res" >&6; } | |
2f1a1aea FCE |
5738 | |
5739 | fi | |
daae650d MW |
5740 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5741 | $as_echo "$as_val"'` | |
5742 | if test "x$as_val" = x""yes; then | |
2f1a1aea | 5743 | cat >>confdefs.h <<_ACEOF |
daae650d | 5744 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2f1a1aea FCE |
5745 | _ACEOF |
5746 | ||
5747 | fi | |
5748 | ||
5749 | done | |
5750 | ||
5751 | ||
2f1a1aea FCE |
5752 | if test -n "$ac_tool_prefix"; then |
5753 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5754 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
daae650d MW |
5755 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5756 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5757 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
daae650d | 5758 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5759 | else |
5760 | if test -n "$RANLIB"; then | |
5761 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5762 | else | |
5763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5764 | for as_dir in $PATH | |
5765 | do | |
5766 | IFS=$as_save_IFS | |
5767 | test -z "$as_dir" && as_dir=. | |
5768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 5769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5770 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
daae650d | 5771 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5772 | break 2 |
5773 | fi | |
5774 | done | |
5775 | done | |
5e0d2ebf | 5776 | IFS=$as_save_IFS |
2f1a1aea FCE |
5777 | |
5778 | fi | |
5779 | fi | |
5780 | RANLIB=$ac_cv_prog_RANLIB | |
5781 | if test -n "$RANLIB"; then | |
daae650d MW |
5782 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5783 | $as_echo "$RANLIB" >&6; } | |
2f1a1aea | 5784 | else |
daae650d MW |
5785 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5786 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5787 | fi |
5788 | ||
5e0d2ebf | 5789 | |
2f1a1aea FCE |
5790 | fi |
5791 | if test -z "$ac_cv_prog_RANLIB"; then | |
5792 | ac_ct_RANLIB=$RANLIB | |
5793 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5794 | set dummy ranlib; ac_word=$2 | |
daae650d MW |
5795 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5796 | $as_echo_n "checking for $ac_word... " >&6; } | |
2f1a1aea | 5797 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
daae650d | 5798 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5799 | else |
5800 | if test -n "$ac_ct_RANLIB"; then | |
5801 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5802 | else | |
5803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5804 | for as_dir in $PATH | |
5805 | do | |
5806 | IFS=$as_save_IFS | |
5807 | test -z "$as_dir" && as_dir=. | |
5808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 5809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 5810 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
daae650d | 5811 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5812 | break 2 |
5813 | fi | |
5814 | done | |
5815 | done | |
5e0d2ebf | 5816 | IFS=$as_save_IFS |
2f1a1aea | 5817 | |
2f1a1aea FCE |
5818 | fi |
5819 | fi | |
5820 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5821 | if test -n "$ac_ct_RANLIB"; then | |
daae650d MW |
5822 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5823 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2f1a1aea | 5824 | else |
daae650d MW |
5825 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5826 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5827 | fi |
5828 | ||
5e0d2ebf DS |
5829 | if test "x$ac_ct_RANLIB" = x; then |
5830 | RANLIB=":" | |
5831 | else | |
5832 | case $cross_compiling:$ac_tool_warned in | |
5833 | yes:) | |
daae650d MW |
5834 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5e0d2ebf DS |
5836 | ac_tool_warned=yes ;; |
5837 | esac | |
5838 | RANLIB=$ac_ct_RANLIB | |
5839 | fi | |
2f1a1aea FCE |
5840 | else |
5841 | RANLIB="$ac_cv_prog_RANLIB" | |
5842 | fi | |
5843 | ||
5844 | ||
5845 | ||
5846 | # Find a good install program. We prefer a C program (faster), | |
5847 | # so one script is as good as another. But avoid the broken or | |
5848 | # incompatible versions: | |
5849 | # SysV /etc/install, /usr/sbin/install | |
5850 | # SunOS /usr/etc/install | |
5851 | # IRIX /sbin/install | |
5852 | # AIX /bin/install | |
5853 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5854 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5855 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5856 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5857 | # OS/2's system install, which has a completely different semantic | |
5858 | # ./install, which can be erroneously created by make from ./install.sh. | |
daae650d MW |
5859 | # Reject install programs that cannot install multiple files. |
5860 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5861 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2f1a1aea FCE |
5862 | if test -z "$INSTALL"; then |
5863 | if test "${ac_cv_path_install+set}" = set; then | |
daae650d | 5864 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5865 | else |
5866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5867 | for as_dir in $PATH | |
5868 | do | |
5869 | IFS=$as_save_IFS | |
5870 | test -z "$as_dir" && as_dir=. | |
5871 | # Account for people who put trailing slashes in PATH elements. | |
5872 | case $as_dir/ in | |
5873 | ./ | .// | /cC/* | \ | |
5874 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5875 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5876 | /usr/ucb/* ) ;; | |
5877 | *) | |
5878 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5879 | # Don't use installbsd from OSF since it installs stuff as root | |
5880 | # by default. | |
5881 | for ac_prog in ginstall scoinst install; do | |
5882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5e0d2ebf | 5883 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
5884 | if test $ac_prog = install && |
5885 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5886 | # AIX install. It has an incompatible calling convention. | |
5887 | : | |
5888 | elif test $ac_prog = install && | |
5889 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5890 | # program-specific install script used by HP pwplus--don't use. | |
5891 | : | |
5892 | else | |
daae650d MW |
5893 | rm -rf conftest.one conftest.two conftest.dir |
5894 | echo one > conftest.one | |
5895 | echo two > conftest.two | |
5896 | mkdir conftest.dir | |
5897 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5898 | test -s conftest.one && test -s conftest.two && | |
5899 | test -s conftest.dir/conftest.one && | |
5900 | test -s conftest.dir/conftest.two | |
5901 | then | |
5902 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5903 | break 3 | |
5904 | fi | |
2f1a1aea FCE |
5905 | fi |
5906 | fi | |
5907 | done | |
5908 | done | |
5909 | ;; | |
5910 | esac | |
daae650d | 5911 | |
2f1a1aea | 5912 | done |
5e0d2ebf | 5913 | IFS=$as_save_IFS |
2f1a1aea | 5914 | |
daae650d | 5915 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
5916 | |
5917 | fi | |
5918 | if test "${ac_cv_path_install+set}" = set; then | |
5919 | INSTALL=$ac_cv_path_install | |
5920 | else | |
5e0d2ebf DS |
5921 | # As a last resort, use the slow shell script. Don't cache a |
5922 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 5923 | # break other packages using the cache if that directory is |
5e0d2ebf | 5924 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
5925 | INSTALL=$ac_install_sh |
5926 | fi | |
5927 | fi | |
daae650d MW |
5928 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5929 | $as_echo "$INSTALL" >&6; } | |
2f1a1aea FCE |
5930 | |
5931 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5932 | # It thinks the first close brace ends the variable substitution. | |
5933 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5934 | ||
5935 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5936 | ||
5937 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5938 | ||
daae650d MW |
5939 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5940 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5941 | set x ${MAKE-make} | |
5942 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5e0d2ebf | 5943 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 5944 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5945 | else |
5946 | cat >conftest.make <<\_ACEOF | |
5e0d2ebf | 5947 | SHELL = /bin/sh |
2f1a1aea | 5948 | all: |
5e0d2ebf | 5949 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2f1a1aea FCE |
5950 | _ACEOF |
5951 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5e0d2ebf DS |
5952 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5953 | *@@@%%%=?*=@@@%%%*) | |
5954 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5955 | *) | |
5956 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5957 | esac | |
2f1a1aea FCE |
5958 | rm -f conftest.make |
5959 | fi | |
5e0d2ebf | 5960 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
daae650d MW |
5961 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5962 | $as_echo "yes" >&6; } | |
2f1a1aea FCE |
5963 | SET_MAKE= |
5964 | else | |
daae650d MW |
5965 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5966 | $as_echo "no" >&6; } | |
2f1a1aea FCE |
5967 | SET_MAKE="MAKE=${MAKE-make}" |
5968 | fi | |
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5e0d2ebf | 5973 | # Check whether --enable-perfmon was given. |
47dd066d | 5974 | if test "${enable_perfmon+set}" = set; then |
e8f3c2c2 | 5975 | enableval=$enable_perfmon; |
564eb0a8 DS |
5976 | if test "$enable_perfmon" != "no"; then |
5977 | CPPFLAGS="$CPPFLAGS -DPERFMON" | |
5978 | LIBS="$LIBS -lpfm" | |
5979 | if test "$enable_perfmon" != "yes"; then | |
5980 | CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include" | |
5981 | LDFLAGS="$LDFLAGS -L$enable_perfmon/lib" | |
5982 | fi | |
47dd066d | 5983 | |
daae650d MW |
5984 | { $as_echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5 |
5985 | $as_echo_n "checking for pfm_start in -lpfm... " >&6; } | |
47dd066d | 5986 | if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then |
daae650d | 5987 | $as_echo_n "(cached) " >&6 |
47dd066d WC |
5988 | else |
5989 | ac_check_lib_save_LIBS=$LIBS | |
5990 | LIBS="-lpfm $LIBS" | |
5991 | cat >conftest.$ac_ext <<_ACEOF | |
5992 | /* confdefs.h. */ | |
5993 | _ACEOF | |
5994 | cat confdefs.h >>conftest.$ac_ext | |
5995 | cat >>conftest.$ac_ext <<_ACEOF | |
5996 | /* end confdefs.h. */ | |
5997 | ||
5e0d2ebf DS |
5998 | /* Override any GCC internal prototype to avoid an error. |
5999 | Use char because int might match the return type of a GCC | |
6000 | builtin and then its argument prototype would still apply. */ | |
47dd066d WC |
6001 | #ifdef __cplusplus |
6002 | extern "C" | |
6003 | #endif | |
47dd066d WC |
6004 | char pfm_start (); |
6005 | int | |
6006 | main () | |
6007 | { | |
5e0d2ebf | 6008 | return pfm_start (); |
47dd066d WC |
6009 | ; |
6010 | return 0; | |
6011 | } | |
6012 | _ACEOF | |
6013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5e0d2ebf DS |
6014 | if { (ac_try="$ac_link" |
6015 | case "(($ac_try" in | |
6016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6017 | *) ac_try_echo=$ac_try;; | |
6018 | esac | |
daae650d MW |
6019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6020 | $as_echo "$ac_try_echo") >&5 | |
5e0d2ebf | 6021 | (eval "$ac_link") 2>conftest.er1 |
47dd066d WC |
6022 | ac_status=$? |
6023 | grep -v '^ *+' conftest.er1 >conftest.err | |
6024 | rm -f conftest.er1 | |
6025 | cat conftest.err >&5 | |
daae650d | 6026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5e0d2ebf | 6027 | (exit $ac_status); } && { |
35a04c8e | 6028 | test -z "$ac_c_werror_flag" || |
5e0d2ebf | 6029 | test ! -s conftest.err |
daae650d MW |
6030 | } && test -s conftest$ac_exeext && { |
6031 | test "$cross_compiling" = yes || | |
6032 | $as_test_x conftest$ac_exeext | |
6033 | }; then | |
47dd066d WC |
6034 | ac_cv_lib_pfm_pfm_start=yes |
6035 | else | |
daae650d | 6036 | $as_echo "$as_me: failed program was:" >&5 |
47dd066d WC |
6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
6038 | ||
5e0d2ebf | 6039 | ac_cv_lib_pfm_pfm_start=no |
47dd066d | 6040 | fi |
5e0d2ebf | 6041 | |
daae650d | 6042 | rm -rf conftest.dSYM |
5e0d2ebf | 6043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
47dd066d WC |
6044 | conftest$ac_exeext conftest.$ac_ext |
6045 | LIBS=$ac_check_lib_save_LIBS | |
6046 | fi | |
daae650d MW |
6047 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5 |
6048 | $as_echo "$ac_cv_lib_pfm_pfm_start" >&6; } | |
6049 | if test "x$ac_cv_lib_pfm_pfm_start" = x""yes; then | |
47dd066d WC |
6050 | cat >>confdefs.h <<_ACEOF |
6051 | #define HAVE_LIBPFM 1 | |
6052 | _ACEOF | |
6053 | ||
6054 | LIBS="-lpfm $LIBS" | |
6055 | ||
6056 | else | |
6057 | ||
daae650d MW |
6058 | { { $as_echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5 |
6059 | $as_echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;} | |
47dd066d WC |
6060 | { (exit 1); exit 1; }; } |
6061 | fi | |
6062 | ||
564eb0a8 | 6063 | fi |
47dd066d WC |
6064 | fi |
6065 | ||
70d28673 DS |
6066 | |
6067 | if test "${enable_prologues+set}" != set; then | |
daae650d MW |
6068 | { $as_echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5 |
6069 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } | |
70d28673 DS |
6070 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
6071 | echo ' yes ' | |
6072 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6073 | enable_prologues=yes | |
daae650d MW |
6074 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6075 | $as_echo "yes" >&6; } | |
70d28673 | 6076 | else |
daae650d MW |
6077 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6078 | $as_echo "no" >&6; } | |
70d28673 DS |
6079 | fi |
6080 | fi | |
5e0d2ebf | 6081 | # Check whether --enable-prologues was given. |
44f75386 | 6082 | if test "${enable_prologues+set}" = set; then |
5e0d2ebf | 6083 | enableval=$enable_prologues; |
70d28673 | 6084 | if test "$enable_prologues" = yes; then |
44f75386 FCE |
6085 | |
6086 | cat >>confdefs.h <<\_ACEOF | |
daae650d | 6087 | #define ENABLE_PROLOGUES /**/ |
44f75386 FCE |
6088 | _ACEOF |
6089 | ||
70d28673 | 6090 | fi |
5e0d2ebf DS |
6091 | fi |
6092 | ||
70d28673 | 6093 | |
9921a199 DS |
6094 | # Check whether --enable-ssp was given. |
6095 | if test "${enable_ssp+set}" = set; then | |
6096 | enableval=$enable_ssp; | |
6097 | fi | |
6098 | ||
bbfd8c1a FCE |
6099 | if test "x$enable_ssp" != xno; then |
6100 | ||
6101 | save_CFLAGS="$CFLAGS" | |
6102 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
6103 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6104 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a FCE |
6105 | cat >conftest.$ac_ext <<_ACEOF |
6106 | int something (); | |
6107 | _ACEOF | |
6108 | rm -f conftest.$ac_objext | |
6109 | if { (ac_try="$ac_compile" | |
6110 | case "(($ac_try" in | |
6111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6112 | *) ac_try_echo=$ac_try;; | |
6113 | esac | |
daae650d MW |
6114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6115 | $as_echo "$ac_try_echo") >&5 | |
bbfd8c1a FCE |
6116 | (eval "$ac_compile") 2>conftest.er1 |
6117 | ac_status=$? | |
6118 | grep -v '^ *+' conftest.er1 >conftest.err | |
6119 | rm -f conftest.er1 | |
6120 | cat conftest.err >&5 | |
daae650d | 6121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bbfd8c1a FCE |
6122 | (exit $ac_status); } && { |
6123 | test -z "$ac_c_werror_flag" || | |
6124 | test ! -s conftest.err | |
6125 | } && test -s conftest.$ac_objext; then | |
6126 | ||
daae650d MW |
6127 | { $as_echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5 |
6128 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} | |
f0510eaa FCE |
6129 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
6130 | CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
bbfd8c1a | 6131 | else |
daae650d | 6132 | $as_echo "$as_me: failed program was:" >&5 |
bbfd8c1a FCE |
6133 | sed 's/^/| /' conftest.$ac_ext >&5 |
6134 | ||
6135 | ||
daae650d MW |
6136 | { $as_echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5 |
6137 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} | |
bbfd8c1a FCE |
6138 | CFLAGS="$save_CFLAGS" |
6139 | CXXFLAGS="$save_CXXFLAGS" | |
6140 | fi | |
6141 | ||
6142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9921a199 | 6143 | fi |
70d28673 | 6144 | |
42feb3c0 | 6145 | |
8730f377 FCE |
6146 | # Check whether --enable-pie was given. |
6147 | if test "${enable_pie+set}" = set; then | |
6148 | enableval=$enable_pie; | |
6149 | fi | |
6150 | ||
6151 | if test "x$enable_pie" != xno; then | |
6152 | ||
6153 | save_CFLAGS="$CFLAGS" | |
6154 | save_CXXFLAGS="$CXXFLAGS" | |
6155 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
6156 | CFLAGS="$CFLAGS -fPIE" |
6157 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 FCE |
6158 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
6159 | cat >conftest.$ac_ext <<_ACEOF | |
6160 | void main () {} | |
6161 | _ACEOF | |
6162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6163 | if { (ac_try="$ac_link" | |
6164 | case "(($ac_try" in | |
6165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6166 | *) ac_try_echo=$ac_try;; | |
6167 | esac | |
daae650d MW |
6168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6169 | $as_echo "$ac_try_echo") >&5 | |
8730f377 FCE |
6170 | (eval "$ac_link") 2>conftest.er1 |
6171 | ac_status=$? | |
6172 | grep -v '^ *+' conftest.er1 >conftest.err | |
6173 | rm -f conftest.er1 | |
6174 | cat conftest.err >&5 | |
daae650d | 6175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8730f377 FCE |
6176 | (exit $ac_status); } && { |
6177 | test -z "$ac_c_werror_flag" || | |
6178 | test ! -s conftest.err | |
daae650d MW |
6179 | } && test -s conftest$ac_exeext && { |
6180 | test "$cross_compiling" = yes || | |
6181 | $as_test_x conftest$ac_exeext | |
6182 | }; then | |
8730f377 | 6183 | |
daae650d MW |
6184 | { $as_echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5 |
6185 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} | |
8730f377 FCE |
6186 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
6187 | # and interfere with the .so's built therein | |
5574ef2c | 6188 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 6189 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
6190 | PIECFLAGS="$CFLAGS" |
6191 | CFLAGS="$save_CFLAGS" | |
6192 | PIECXXFLAGS="$CXXFLAGS" | |
6193 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
6194 | |
6195 | else | |
daae650d | 6196 | $as_echo "$as_me: failed program was:" >&5 |
8730f377 FCE |
6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
6198 | ||
6199 | ||
daae650d MW |
6200 | { $as_echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5 |
6201 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} | |
5574ef2c | 6202 | PIECFLAGS="" |
8730f377 | 6203 | CFLAGS="$save_CFLAGS" |
5574ef2c | 6204 | PIECXXFLAGS="" |
8730f377 FCE |
6205 | CXXFLAGS="$save_CXXFLAGS" |
6206 | PIELDFLAGS="" | |
6207 | LDFLAGS="$save_LDFLAGS" | |
6208 | fi | |
6209 | ||
daae650d | 6210 | rm -rf conftest.dSYM |
8730f377 FCE |
6211 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6212 | conftest$ac_exeext conftest.$ac_ext | |
6213 | fi | |
6214 | ||
6215 | ||
6216 | ||
5574ef2c MW |
6217 | |
6218 | ||
9921a199 DS |
6219 | # Check whether --enable-sqlite was given. |
6220 | if test "${enable_sqlite+set}" = set; then | |
6221 | enableval=$enable_sqlite; | |
6222 | else | |
e8f3c2c2 | 6223 | enable_sqlite=check |
9921a199 DS |
6224 | fi |
6225 | sqlite3_LIBS= | |
6226 | if test "x$enable_sqlite" != xno; then | |
daae650d MW |
6227 | { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 |
6228 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } | |
42feb3c0 | 6229 | if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then |
daae650d | 6230 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
6231 | else |
6232 | ac_check_lib_save_LIBS=$LIBS | |
6233 | LIBS="-lsqlite3 $LIBS" | |
6234 | cat >conftest.$ac_ext <<_ACEOF | |
6235 | /* confdefs.h. */ | |
6236 | _ACEOF | |
6237 | cat confdefs.h >>conftest.$ac_ext | |
6238 | cat >>conftest.$ac_ext <<_ACEOF | |
6239 | /* end confdefs.h. */ | |
6240 | ||
6241 | /* Override any GCC internal prototype to avoid an error. | |
6242 | Use char because int might match the return type of a GCC | |
6243 | builtin and then its argument prototype would still apply. */ | |
6244 | #ifdef __cplusplus | |
6245 | extern "C" | |
6246 | #endif | |
6247 | char sqlite3_open (); | |
6248 | int | |
6249 | main () | |
6250 | { | |
6251 | return sqlite3_open (); | |
6252 | ; | |
6253 | return 0; | |
6254 | } | |
6255 | _ACEOF | |
6256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6257 | if { (ac_try="$ac_link" | |
6258 | case "(($ac_try" in | |
6259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6260 | *) ac_try_echo=$ac_try;; | |
6261 | esac | |
daae650d MW |
6262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6263 | $as_echo "$ac_try_echo") >&5 | |
42feb3c0 WC |
6264 | (eval "$ac_link") 2>conftest.er1 |
6265 | ac_status=$? | |
6266 | grep -v '^ *+' conftest.er1 >conftest.err | |
6267 | rm -f conftest.er1 | |
6268 | cat conftest.err >&5 | |
daae650d | 6269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42feb3c0 | 6270 | (exit $ac_status); } && { |
35a04c8e | 6271 | test -z "$ac_c_werror_flag" || |
42feb3c0 | 6272 | test ! -s conftest.err |
daae650d MW |
6273 | } && test -s conftest$ac_exeext && { |
6274 | test "$cross_compiling" = yes || | |
6275 | $as_test_x conftest$ac_exeext | |
6276 | }; then | |
42feb3c0 WC |
6277 | ac_cv_lib_sqlite3_sqlite3_open=yes |
6278 | else | |
daae650d | 6279 | $as_echo "$as_me: failed program was:" >&5 |
42feb3c0 WC |
6280 | sed 's/^/| /' conftest.$ac_ext >&5 |
6281 | ||
6282 | ac_cv_lib_sqlite3_sqlite3_open=no | |
6283 | fi | |
6284 | ||
daae650d | 6285 | rm -rf conftest.dSYM |
42feb3c0 WC |
6286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6287 | conftest$ac_exeext conftest.$ac_ext | |
6288 | LIBS=$ac_check_lib_save_LIBS | |
6289 | fi | |
daae650d MW |
6290 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
6291 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } | |
6292 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then | |
9921a199 | 6293 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 6294 | |
0d563e60 FCE |
6295 | |
6296 | cat >>confdefs.h <<\_ACEOF | |
07606685 DS |
6297 | #define HAVE_LIBSQLITE3 1 |
6298 | _ACEOF | |
6299 | ||
9921a199 DS |
6300 | else |
6301 | if test "x$enable_sqlite" != xcheck; then | |
daae650d MW |
6302 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6304 | { { $as_echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed | |
9921a199 | 6305 | See \`config.log' for more details." >&5 |
daae650d | 6306 | $as_echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed |
9921a199 | 6307 | See \`config.log' for more details." >&2;} |
daae650d | 6308 | { (exit 1); exit 1; }; }; } |
9921a199 | 6309 | fi |
42feb3c0 WC |
6310 | fi |
6311 | ||
9921a199 | 6312 | fi |
44f75386 | 6313 | |
e6c086bb | 6314 | |
564eb0a8 DS |
6315 | # Check whether --enable-crash was given. |
6316 | if test "${enable_crash+set}" = set; then | |
6317 | enableval=$enable_crash; if test "$enable_crash" != "no"; then | |
6318 | save_CPPFLAGS="$CPPFLAGS" | |
6319 | if test "$enable_crash" != "yes"; then | |
6320 | staplog_CPPFLAGS=-I$enable_crash | |
6321 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" | |
6322 | ||
6323 | fi | |
35a04c8e FCE |
6324 | |
6325 | for ac_header in crash/defs.h | |
6326 | do | |
daae650d MW |
6327 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6328 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6329 | $as_echo_n "checking for $ac_header... " >&6; } | |
35a04c8e | 6330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 6331 | $as_echo_n "(cached) " >&6 |
35a04c8e FCE |
6332 | else |
6333 | cat >conftest.$ac_ext <<_ACEOF | |
6334 | /* confdefs.h. */ | |
6335 | _ACEOF | |
6336 | cat confdefs.h >>conftest.$ac_ext | |
6337 | cat >>conftest.$ac_ext <<_ACEOF | |
6338 | /* end confdefs.h. */ | |
6339 | ||
6340 | #define NR_CPUS 256 | |
6341 | ||
6342 | ||
6343 | #include <$ac_header> | |
6344 | _ACEOF | |
6345 | rm -f conftest.$ac_objext | |
6346 | if { (ac_try="$ac_compile" | |
6347 | case "(($ac_try" in | |
6348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6349 | *) ac_try_echo=$ac_try;; | |
6350 | esac | |
daae650d MW |
6351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6352 | $as_echo "$ac_try_echo") >&5 | |
35a04c8e FCE |
6353 | (eval "$ac_compile") 2>conftest.er1 |
6354 | ac_status=$? | |
6355 | grep -v '^ *+' conftest.er1 >conftest.err | |
6356 | rm -f conftest.er1 | |
6357 | cat conftest.err >&5 | |
daae650d | 6358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35a04c8e FCE |
6359 | (exit $ac_status); } && { |
6360 | test -z "$ac_c_werror_flag" || | |
6361 | test ! -s conftest.err | |
6362 | } && test -s conftest.$ac_objext; then | |
6363 | eval "$as_ac_Header=yes" | |
6364 | else | |
daae650d | 6365 | $as_echo "$as_me: failed program was:" >&5 |
35a04c8e FCE |
6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
6367 | ||
6368 | eval "$as_ac_Header=no" | |
6369 | fi | |
6370 | ||
6371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6372 | fi | |
daae650d MW |
6373 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6374 | $as_echo "$as_val"'` | |
6375 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6376 | $as_echo "$ac_res" >&6; } | |
6377 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6378 | $as_echo "$as_val"'` | |
6379 | if test "x$as_val" = x""yes; then | |
35a04c8e | 6380 | cat >>confdefs.h <<_ACEOF |
daae650d | 6381 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35a04c8e | 6382 | _ACEOF |
564eb0a8 | 6383 | |
35a04c8e | 6384 | else |
daae650d MW |
6385 | { { $as_echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5 |
6386 | $as_echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;} | |
564eb0a8 | 6387 | { (exit 1); exit 1; }; } |
35a04c8e FCE |
6388 | fi |
6389 | ||
6390 | done | |
6391 | ||
564eb0a8 DS |
6392 | CPPFLAGS="$save_CPPFLAGS" |
6393 | fi | |
6394 | else | |
6395 | enable_crash="no" | |
6396 | fi | |
6397 | ||
6398 | if test "$enable_crash" != "no"; then | |
35a04c8e FCE |
6399 | BUILD_CRASHMOD_TRUE= |
6400 | BUILD_CRASHMOD_FALSE='#' | |
6401 | else | |
6402 | BUILD_CRASHMOD_TRUE='#' | |
6403 | BUILD_CRASHMOD_FALSE= | |
6404 | fi | |
6405 | ||
6406 | ||
92aff3c7 | 6407 | building_docs="no" |
465e8fbf FCE |
6408 | # Check whether --enable-docs was given. |
6409 | if test "${enable_docs+set}" = set; then | |
6410 | enableval=$enable_docs; enable_docs=$enableval | |
6411 | else | |
6412 | enable_docs="check" | |
6413 | fi | |
6414 | ||
6415 | # Extract the first word of "latex", so it can be a program name with args. | |
6416 | set dummy latex; ac_word=$2 | |
daae650d MW |
6417 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6418 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6419 | if test "${ac_cv_prog_have_latex+set}" = set; then |
daae650d | 6420 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6421 | else |
6422 | if test -n "$have_latex"; then | |
6423 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
6424 | else | |
6425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6426 | for as_dir in $PATH | |
6427 | do | |
6428 | IFS=$as_save_IFS | |
6429 | test -z "$as_dir" && as_dir=. | |
6430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6432 | ac_cv_prog_have_latex="yes" | |
daae650d | 6433 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6434 | break 2 |
6435 | fi | |
6436 | done | |
6437 | done | |
6438 | IFS=$as_save_IFS | |
6439 | ||
6440 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
6441 | fi | |
6442 | fi | |
6443 | have_latex=$ac_cv_prog_have_latex | |
6444 | if test -n "$have_latex"; then | |
daae650d MW |
6445 | { $as_echo "$as_me:$LINENO: result: $have_latex" >&5 |
6446 | $as_echo "$have_latex" >&6; } | |
465e8fbf | 6447 | else |
daae650d MW |
6448 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6449 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6450 | fi |
6451 | ||
6452 | ||
6453 | # Extract the first word of "dvips", so it can be a program name with args. | |
6454 | set dummy dvips; ac_word=$2 | |
daae650d MW |
6455 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6456 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6457 | if test "${ac_cv_prog_have_dvips+set}" = set; then |
daae650d | 6458 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6459 | else |
6460 | if test -n "$have_dvips"; then | |
6461 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
6462 | else | |
6463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6464 | for as_dir in $PATH | |
6465 | do | |
6466 | IFS=$as_save_IFS | |
6467 | test -z "$as_dir" && as_dir=. | |
6468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6470 | ac_cv_prog_have_dvips="yes" | |
daae650d | 6471 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6472 | break 2 |
6473 | fi | |
6474 | done | |
6475 | done | |
6476 | IFS=$as_save_IFS | |
6477 | ||
6478 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
6479 | fi | |
6480 | fi | |
6481 | have_dvips=$ac_cv_prog_have_dvips | |
6482 | if test -n "$have_dvips"; then | |
daae650d MW |
6483 | { $as_echo "$as_me:$LINENO: result: $have_dvips" >&5 |
6484 | $as_echo "$have_dvips" >&6; } | |
465e8fbf | 6485 | else |
daae650d MW |
6486 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6487 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6488 | fi |
6489 | ||
6490 | ||
6491 | # Extract the first word of "ps2pdf", so it can be a program name with args. | |
6492 | set dummy ps2pdf; ac_word=$2 | |
daae650d MW |
6493 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6494 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6495 | if test "${ac_cv_prog_have_ps2pdf+set}" = set; then |
daae650d | 6496 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6497 | else |
6498 | if test -n "$have_ps2pdf"; then | |
6499 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
6500 | else | |
6501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6502 | for as_dir in $PATH | |
6503 | do | |
6504 | IFS=$as_save_IFS | |
6505 | test -z "$as_dir" && as_dir=. | |
6506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6508 | ac_cv_prog_have_ps2pdf="yes" | |
daae650d | 6509 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6510 | break 2 |
6511 | fi | |
6512 | done | |
6513 | done | |
6514 | IFS=$as_save_IFS | |
6515 | ||
6516 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
6517 | fi | |
6518 | fi | |
6519 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
6520 | if test -n "$have_ps2pdf"; then | |
daae650d MW |
6521 | { $as_echo "$as_me:$LINENO: result: $have_ps2pdf" >&5 |
6522 | $as_echo "$have_ps2pdf" >&6; } | |
465e8fbf | 6523 | else |
daae650d MW |
6524 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6525 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6526 | fi |
6527 | ||
6528 | ||
6529 | # Extract the first word of "latex2html", so it can be a program name with args. | |
6530 | set dummy latex2html; ac_word=$2 | |
daae650d MW |
6531 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6532 | $as_echo_n "checking for $ac_word... " >&6; } | |
465e8fbf | 6533 | if test "${ac_cv_prog_have_latex2html+set}" = set; then |
daae650d | 6534 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
6535 | else |
6536 | if test -n "$have_latex2html"; then | |
6537 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
6538 | else | |
6539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6540 | for as_dir in $PATH | |
6541 | do | |
6542 | IFS=$as_save_IFS | |
6543 | test -z "$as_dir" && as_dir=. | |
6544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6546 | ac_cv_prog_have_latex2html="yes" | |
daae650d | 6547 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
6548 | break 2 |
6549 | fi | |
6550 | done | |
6551 | done | |
6552 | IFS=$as_save_IFS | |
6553 | ||
6554 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
6555 | fi | |
6556 | fi | |
6557 | have_latex2html=$ac_cv_prog_have_latex2html | |
6558 | if test -n "$have_latex2html"; then | |
daae650d MW |
6559 | { $as_echo "$as_me:$LINENO: result: $have_latex2html" >&5 |
6560 | $as_echo "$have_latex2html" >&6; } | |
465e8fbf | 6561 | else |
daae650d MW |
6562 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6563 | $as_echo "no" >&6; } | |
465e8fbf FCE |
6564 | fi |
6565 | ||
6566 | ||
2d4b8ddf MW |
6567 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then |
6568 | if test "$enable_docs" == "yes"; then | |
daae650d MW |
6569 | { { $as_echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5 |
6570 | $as_echo "$as_me: error: cannot find all tools for building documentation" >&2;} | |
465e8fbf FCE |
6571 | { (exit 1); exit 1; }; } |
6572 | fi | |
2d4b8ddf | 6573 | if test "$enable_docs" == "check"; then |
daae650d MW |
6574 | { $as_echo "$as_me:$LINENO: WARNING: will not build documentation, cannot find all tools" >&5 |
6575 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} | |
2d4b8ddf | 6576 | fi |
465e8fbf | 6577 | fi |
92aff3c7 WC |
6578 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
6579 | building_docs="yes" | |
6580 | fi | |
6581 | if test "$building_docs" == "yes"; then | |
465e8fbf FCE |
6582 | BUILD_DOCS_TRUE= |
6583 | BUILD_DOCS_FALSE='#' | |
6584 | else | |
6585 | BUILD_DOCS_TRUE='#' | |
6586 | BUILD_DOCS_FALSE= | |
6587 | fi | |
6588 | ||
6589 | ||
92aff3c7 WC |
6590 | building_refdocs="no" |
6591 | # Check whether --enable-refdocs was given. | |
6592 | if test "${enable_refdocs+set}" = set; then | |
6593 | enableval=$enable_refdocs; enable_refdocs=$enableval | |
6594 | else | |
6595 | enable_refdocs="check" | |
6596 | fi | |
6597 | ||
6598 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then | |
daae650d MW |
6599 | { { $as_echo "$as_me:$LINENO: error: must use --enable-docs with --enable-refdocs" >&5 |
6600 | $as_echo "$as_me: error: must use --enable-docs with --enable-refdocs" >&2;} | |
92aff3c7 WC |
6601 | { (exit 1); exit 1; }; } |
6602 | fi | |
6603 | # Extract the first word of "xmlto", so it can be a program name with args. | |
6604 | set dummy xmlto; ac_word=$2 | |
daae650d MW |
6605 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6606 | $as_echo_n "checking for $ac_word... " >&6; } | |
92aff3c7 | 6607 | if test "${ac_cv_prog_have_xmlto+set}" = set; then |
daae650d | 6608 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
6609 | else |
6610 | if test -n "$have_xmlto"; then | |
6611 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
6612 | else | |
6613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6614 | for as_dir in $PATH | |
6615 | do | |
6616 | IFS=$as_save_IFS | |
6617 | test -z "$as_dir" && as_dir=. | |
6618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6620 | ac_cv_prog_have_xmlto="yes" | |
daae650d | 6621 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
6622 | break 2 |
6623 | fi | |
6624 | done | |
6625 | done | |
6626 | IFS=$as_save_IFS | |
6627 | ||
6628 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
6629 | fi | |
6630 | fi | |
6631 | have_xmlto=$ac_cv_prog_have_xmlto | |
6632 | if test -n "$have_xmlto"; then | |
daae650d MW |
6633 | { $as_echo "$as_me:$LINENO: result: $have_xmlto" >&5 |
6634 | $as_echo "$have_xmlto" >&6; } | |
92aff3c7 | 6635 | else |
daae650d MW |
6636 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6637 | $as_echo "no" >&6; } | |
92aff3c7 WC |
6638 | fi |
6639 | ||
6640 | ||
aa5951be | 6641 | if test "x${have_xmlto}" == "xyes"; then |
daae650d MW |
6642 | { $as_echo "$as_me:$LINENO: checking for xmlto pdf support" >&5 |
6643 | $as_echo_n "checking for xmlto pdf support... " >&6; } | |
aa5951be WC |
6644 | cat > conftest.$ac_ext << EOF |
6645 | <?xml version="1.0" encoding="UTF-8"?> | |
6646 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
6647 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
6648 | <book id="pdffromxml"> | |
6649 | </book> | |
6650 | EOF | |
6651 | xmlto pdf conftest.$ac_ext >& /dev/null | |
6652 | if test $? == 0; then | |
6653 | have_xmlto_pdf="yes" | |
daae650d MW |
6654 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6655 | $as_echo "yes" >&6; } | |
aa5951be | 6656 | else |
daae650d MW |
6657 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6658 | $as_echo "no" >&6; } | |
aa5951be WC |
6659 | fi |
6660 | fi | |
92aff3c7 | 6661 | if test "$enable_refdocs" == "yes"; then |
aa5951be | 6662 | if test "x${have_xmlto}${have_xmlto_pdf}" != "xyesyes"; then |
daae650d MW |
6663 | { { $as_echo "$as_me:$LINENO: error: cannot find proper yxmlto for building reference documentation" >&5 |
6664 | $as_echo "$as_me: error: cannot find proper yxmlto for building reference documentation" >&2;} | |
92aff3c7 WC |
6665 | { (exit 1); exit 1; }; } |
6666 | fi | |
6667 | fi | |
aa5951be | 6668 | if test "x${have_xmlto}${have_xmlto_pdf}" == "xyesyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then |
92aff3c7 WC |
6669 | building_refdocs="yes" |
6670 | fi | |
6671 | if test "$building_refdocs" == "yes"; then | |
6672 | BUILD_REFDOCS_TRUE= | |
6673 | BUILD_REFDOCS_FALSE='#' | |
6674 | else | |
6675 | BUILD_REFDOCS_TRUE='#' | |
6676 | BUILD_REFDOCS_FALSE= | |
6677 | fi | |
6678 | ||
6679 | ||
19a0d4b6 MW |
6680 | # Check whether --enable-server was given. |
6681 | if test "${enable_server+set}" = set; then | |
6682 | enableval=$enable_server; enable_server=$enableval | |
6683 | else | |
6684 | enable_server="check" | |
6685 | fi | |
6686 | ||
8ca54d60 EB |
6687 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss3" >&5 |
6688 | $as_echo_n "checking for /usr/include/nss3... " >&6; } | |
6689 | if test "${ac_cv_file__usr_include_nss3+set}" = set; then | |
daae650d | 6690 | $as_echo_n "(cached) " >&6 |
43498922 | 6691 | else |
8ca54d60 EB |
6692 | test "$cross_compiling" = yes && |
6693 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
6694 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
6695 | { (exit 1); exit 1; }; } | |
6696 | if test -r "/usr/include/nss3"; then | |
6697 | ac_cv_file__usr_include_nss3=yes | |
6698 | else | |
6699 | ac_cv_file__usr_include_nss3=no | |
43498922 | 6700 | fi |
8ca54d60 EB |
6701 | fi |
6702 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss3" >&5 | |
6703 | $as_echo "$ac_cv_file__usr_include_nss3" >&6; } | |
6704 | if test "x$ac_cv_file__usr_include_nss3" = x""yes; then | |
6705 | nssdir=nss3 | |
43498922 | 6706 | else |
8ca54d60 EB |
6707 | |
6708 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nss" >&5 | |
6709 | $as_echo_n "checking for /usr/include/nss... " >&6; } | |
6710 | if test "${ac_cv_file__usr_include_nss+set}" = set; then | |
6711 | $as_echo_n "(cached) " >&6 | |
6712 | else | |
6713 | test "$cross_compiling" = yes && | |
6714 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
6715 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
6716 | { (exit 1); exit 1; }; } | |
6717 | if test -r "/usr/include/nss"; then | |
6718 | ac_cv_file__usr_include_nss=yes | |
6719 | else | |
6720 | ac_cv_file__usr_include_nss=no | |
6721 | fi | |
6722 | fi | |
6723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nss" >&5 | |
6724 | $as_echo "$ac_cv_file__usr_include_nss" >&6; } | |
6725 | if test "x$ac_cv_file__usr_include_nss" = x""yes; then | |
6726 | nssdir=nss | |
43498922 DB |
6727 | fi |
6728 | ||
6729 | ||
6730 | fi | |
8ca54d60 EB |
6731 | |
6732 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr4" >&5 | |
6733 | $as_echo_n "checking for /usr/include/nspr4... " >&6; } | |
6734 | if test "${ac_cv_file__usr_include_nspr4+set}" = set; then | |
daae650d | 6735 | $as_echo_n "(cached) " >&6 |
43498922 | 6736 | else |
8ca54d60 EB |
6737 | test "$cross_compiling" = yes && |
6738 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
6739 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
6740 | { (exit 1); exit 1; }; } | |
6741 | if test -r "/usr/include/nspr4"; then | |
6742 | ac_cv_file__usr_include_nspr4=yes | |
43498922 | 6743 | else |
8ca54d60 EB |
6744 | ac_cv_file__usr_include_nspr4=no |
6745 | fi | |
43498922 | 6746 | fi |
8ca54d60 EB |
6747 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr4" >&5 |
6748 | $as_echo "$ac_cv_file__usr_include_nspr4" >&6; } | |
6749 | if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then | |
6750 | nsprdir=nspr4 | |
6751 | else | |
43498922 | 6752 | |
8ca54d60 EB |
6753 | { $as_echo "$as_me:$LINENO: checking for /usr/include/nspr" >&5 |
6754 | $as_echo_n "checking for /usr/include/nspr... " >&6; } | |
6755 | if test "${ac_cv_file__usr_include_nspr+set}" = set; then | |
6756 | $as_echo_n "(cached) " >&6 | |
43498922 | 6757 | else |
8ca54d60 EB |
6758 | test "$cross_compiling" = yes && |
6759 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
6760 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
6761 | { (exit 1); exit 1; }; } | |
6762 | if test -r "/usr/include/nspr"; then | |
6763 | ac_cv_file__usr_include_nspr=yes | |
6764 | else | |
6765 | ac_cv_file__usr_include_nspr=no | |
43498922 | 6766 | fi |
43498922 | 6767 | fi |
8ca54d60 EB |
6768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_nspr" >&5 |
6769 | $as_echo "$ac_cv_file__usr_include_nspr" >&6; } | |
6770 | if test "x$ac_cv_file__usr_include_nspr" = x""yes; then | |
6771 | nsprdir=nspr | |
6772 | fi | |
6773 | ||
43498922 DB |
6774 | |
6775 | fi | |
6776 | ||
8ca54d60 EB |
6777 | if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then |
6778 | nss_CFLAGS="-I/usr/include/$nssdir" | |
6779 | nspr_CFLAGS="-I/usr/include/$nsprdir" | |
6780 | ||
6781 | ||
6782 | save_CPPFLAGS="$CPPFLAGS" | |
6783 | CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS" | |
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | ||
19a0d4b6 | 6789 | |
8ca54d60 EB |
6790 | |
6791 | 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" | |
6792 | do | |
6793 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6795 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6796 | $as_echo_n "checking for $ac_header... " >&6; } | |
6797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6798 | $as_echo_n "(cached) " >&6 | |
6799 | fi | |
6800 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6801 | $as_echo "$as_val"'` | |
6802 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6803 | $as_echo "$ac_res" >&6; } | |
6804 | else | |
6805 | # Is the header compilable? | |
6806 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6807 | $as_echo_n "checking $ac_header usability... " >&6; } | |
6808 | cat >conftest.$ac_ext <<_ACEOF | |
6809 | /* confdefs.h. */ | |
6810 | _ACEOF | |
6811 | cat confdefs.h >>conftest.$ac_ext | |
6812 | cat >>conftest.$ac_ext <<_ACEOF | |
6813 | /* end confdefs.h. */ | |
6814 | $ac_includes_default | |
6815 | #include <$ac_header> | |
6816 | _ACEOF | |
6817 | rm -f conftest.$ac_objext | |
6818 | if { (ac_try="$ac_compile" | |
6819 | case "(($ac_try" in | |
6820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6821 | *) ac_try_echo=$ac_try;; | |
6822 | esac | |
6823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6824 | $as_echo "$ac_try_echo") >&5 | |
6825 | (eval "$ac_compile") 2>conftest.er1 | |
43498922 | 6826 | ac_status=$? |
8ca54d60 EB |
6827 | grep -v '^ *+' conftest.er1 >conftest.err |
6828 | rm -f conftest.er1 | |
6829 | cat conftest.err >&5 | |
daae650d | 6830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ca54d60 EB |
6831 | (exit $ac_status); } && { |
6832 | test -z "$ac_c_werror_flag" || | |
6833 | test ! -s conftest.err | |
6834 | } && test -s conftest.$ac_objext; then | |
6835 | ac_header_compiler=yes | |
43498922 | 6836 | else |
8ca54d60 EB |
6837 | $as_echo "$as_me: failed program was:" >&5 |
6838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6839 | ||
6840 | ac_header_compiler=no | |
43498922 | 6841 | fi |
8ca54d60 EB |
6842 | |
6843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6844 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6845 | $as_echo "$ac_header_compiler" >&6; } | |
6846 | ||
6847 | # Is the header present? | |
6848 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6849 | $as_echo_n "checking $ac_header presence... " >&6; } | |
6850 | cat >conftest.$ac_ext <<_ACEOF | |
6851 | /* confdefs.h. */ | |
6852 | _ACEOF | |
6853 | cat confdefs.h >>conftest.$ac_ext | |
6854 | cat >>conftest.$ac_ext <<_ACEOF | |
6855 | /* end confdefs.h. */ | |
6856 | #include <$ac_header> | |
6857 | _ACEOF | |
6858 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6859 | case "(($ac_try" in | |
6860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6861 | *) ac_try_echo=$ac_try;; | |
6862 | esac | |
6863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6864 | $as_echo "$ac_try_echo") >&5 | |
6865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
43498922 | 6866 | ac_status=$? |
8ca54d60 EB |
6867 | grep -v '^ *+' conftest.er1 >conftest.err |
6868 | rm -f conftest.er1 | |
6869 | cat conftest.err >&5 | |
daae650d | 6870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ca54d60 EB |
6871 | (exit $ac_status); } >/dev/null && { |
6872 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6873 | test ! -s conftest.err | |
6874 | }; then | |
6875 | ac_header_preproc=yes | |
43498922 | 6876 | else |
8ca54d60 EB |
6877 | $as_echo "$as_me: failed program was:" >&5 |
6878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43498922 | 6879 | |
8ca54d60 EB |
6880 | ac_header_preproc=no |
6881 | fi | |
43498922 | 6882 | |
8ca54d60 EB |
6883 | rm -f conftest.err conftest.$ac_ext |
6884 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6885 | $as_echo "$ac_header_preproc" >&6; } | |
43498922 | 6886 | |
8ca54d60 EB |
6887 | # So? What about this header? |
6888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6889 | yes:no: ) | |
6890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6891 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6893 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6894 | ac_header_preproc=yes | |
6895 | ;; | |
6896 | no:yes:* ) | |
6897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6898 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6900 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6902 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6904 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6906 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6908 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6909 | ( cat <<\_ASBOX | |
6910 | ## ------------------------------------------- ## | |
6911 | ## Report this to systemtap@sources.redhat.com ## | |
6912 | ## ------------------------------------------- ## | |
6913 | _ASBOX | |
6914 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
6915 | ;; | |
6916 | esac | |
6917 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6918 | $as_echo_n "checking for $ac_header... " >&6; } | |
6919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6920 | $as_echo_n "(cached) " >&6 | |
43498922 | 6921 | else |
8ca54d60 | 6922 | eval "$as_ac_Header=\$ac_header_preproc" |
43498922 | 6923 | fi |
8ca54d60 EB |
6924 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6925 | $as_echo "$as_val"'` | |
6926 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6927 | $as_echo "$ac_res" >&6; } | |
43498922 | 6928 | |
8ca54d60 EB |
6929 | fi |
6930 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6931 | $as_echo "$as_val"'` | |
6932 | if test "x$as_val" = x""yes; then | |
6933 | cat >>confdefs.h <<_ACEOF | |
6934 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6935 | _ACEOF | |
6936 | have_nss_includes=yes | |
43498922 | 6937 | else |
8ca54d60 | 6938 | have_nss_includes=no |
43498922 DB |
6939 | fi |
6940 | ||
8ca54d60 EB |
6941 | done |
6942 | ||
6943 | CPPFLAGS="$save_CPPFLAGS" | |
6944 | have_nss_libs=no | |
6945 | { $as_echo "$as_me:$LINENO: checking for PR_Connect in -lnspr4" >&5 | |
6946 | $as_echo_n "checking for PR_Connect in -lnspr4... " >&6; } | |
6947 | if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then | |
6948 | $as_echo_n "(cached) " >&6 | |
6949 | else | |
6950 | ac_check_lib_save_LIBS=$LIBS | |
6951 | LIBS="-lnspr4 $LIBS" | |
6952 | cat >conftest.$ac_ext <<_ACEOF | |
6953 | /* confdefs.h. */ | |
6954 | _ACEOF | |
6955 | cat confdefs.h >>conftest.$ac_ext | |
6956 | cat >>conftest.$ac_ext <<_ACEOF | |
6957 | /* end confdefs.h. */ | |
19a0d4b6 | 6958 | |
8ca54d60 EB |
6959 | /* Override any GCC internal prototype to avoid an error. |
6960 | Use char because int might match the return type of a GCC | |
6961 | builtin and then its argument prototype would still apply. */ | |
6962 | #ifdef __cplusplus | |
6963 | extern "C" | |
6964 | #endif | |
6965 | char PR_Connect (); | |
6966 | int | |
6967 | main () | |
6968 | { | |
6969 | return PR_Connect (); | |
6970 | ; | |
6971 | return 0; | |
6972 | } | |
6973 | _ACEOF | |
6974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6975 | if { (ac_try="$ac_link" | |
6976 | case "(($ac_try" in | |
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6978 | *) ac_try_echo=$ac_try;; | |
6979 | esac | |
6980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6981 | $as_echo "$ac_try_echo") >&5 | |
6982 | (eval "$ac_link") 2>conftest.er1 | |
43498922 | 6983 | ac_status=$? |
8ca54d60 EB |
6984 | grep -v '^ *+' conftest.er1 >conftest.err |
6985 | rm -f conftest.er1 | |
6986 | cat conftest.err >&5 | |
daae650d | 6987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ca54d60 EB |
6988 | (exit $ac_status); } && { |
6989 | test -z "$ac_c_werror_flag" || | |
6990 | test ! -s conftest.err | |
6991 | } && test -s conftest$ac_exeext && { | |
6992 | test "$cross_compiling" = yes || | |
6993 | $as_test_x conftest$ac_exeext | |
6994 | }; then | |
6995 | ac_cv_lib_nspr4_PR_Connect=yes | |
43498922 | 6996 | else |
8ca54d60 EB |
6997 | $as_echo "$as_me: failed program was:" >&5 |
6998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6999 | ||
7000 | ac_cv_lib_nspr4_PR_Connect=no | |
43498922 | 7001 | fi |
8ca54d60 EB |
7002 | |
7003 | rm -rf conftest.dSYM | |
7004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7005 | conftest$ac_exeext conftest.$ac_ext | |
7006 | LIBS=$ac_check_lib_save_LIBS | |
43498922 | 7007 | fi |
8ca54d60 EB |
7008 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nspr4_PR_Connect" >&5 |
7009 | $as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; } | |
7010 | if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then | |
7011 | ||
7012 | { $as_echo "$as_me:$LINENO: checking for SSL_ReHandshake in -lssl3" >&5 | |
7013 | $as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; } | |
7014 | if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then | |
7015 | $as_echo_n "(cached) " >&6 | |
7016 | else | |
7017 | ac_check_lib_save_LIBS=$LIBS | |
7018 | LIBS="-lssl3 $LIBS" | |
7019 | cat >conftest.$ac_ext <<_ACEOF | |
7020 | /* confdefs.h. */ | |
7021 | _ACEOF | |
7022 | cat confdefs.h >>conftest.$ac_ext | |
7023 | cat >>conftest.$ac_ext <<_ACEOF | |
7024 | /* end confdefs.h. */ | |
7025 | ||
7026 | /* Override any GCC internal prototype to avoid an error. | |
7027 | Use char because int might match the return type of a GCC | |
7028 | builtin and then its argument prototype would still apply. */ | |
7029 | #ifdef __cplusplus | |
7030 | extern "C" | |
7031 | #endif | |
7032 | char SSL_ReHandshake (); | |
7033 | int | |
7034 | main () | |
7035 | { | |
7036 | return SSL_ReHandshake (); | |
7037 | ; | |
7038 | return 0; | |
7039 | } | |
7040 | _ACEOF | |
7041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7042 | if { (ac_try="$ac_link" | |
7043 | case "(($ac_try" in | |
7044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7045 | *) ac_try_echo=$ac_try;; | |
7046 | esac | |
7047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7048 | $as_echo "$ac_try_echo") >&5 | |
7049 | (eval "$ac_link") 2>conftest.er1 | |
43498922 | 7050 | ac_status=$? |
8ca54d60 EB |
7051 | grep -v '^ *+' conftest.er1 >conftest.err |
7052 | rm -f conftest.er1 | |
7053 | cat conftest.err >&5 | |
daae650d | 7054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8ca54d60 EB |
7055 | (exit $ac_status); } && { |
7056 | test -z "$ac_c_werror_flag" || | |
7057 | test ! -s conftest.err | |
7058 | } && test -s conftest$ac_exeext && { | |
7059 | test "$cross_compiling" = yes || | |
7060 | $as_test_x conftest$ac_exeext | |
7061 | }; then | |
7062 | ac_cv_lib_ssl3_SSL_ReHandshake=yes | |
43498922 | 7063 | else |
8ca54d60 EB |
7064 | $as_echo "$as_me: failed program was:" >&5 |
7065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43498922 | 7066 | |
8ca54d60 EB |
7067 | ac_cv_lib_ssl3_SSL_ReHandshake=no |
7068 | fi | |
43498922 | 7069 | |
8ca54d60 EB |
7070 | rm -rf conftest.dSYM |
7071 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7072 | conftest$ac_exeext conftest.$ac_ext | |
7073 | LIBS=$ac_check_lib_save_LIBS | |
7074 | fi | |
7075 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5 | |
7076 | $as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; } | |
7077 | if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then | |
7078 | have_nss_libs=yes | |
7079 | fi | |
43498922 | 7080 | |
43498922 | 7081 | |
43498922 | 7082 | fi |
43498922 | 7083 | |
19a0d4b6 | 7084 | fi |
8ca54d60 | 7085 | if test "x${have_nss_includes}${have_nss_libs}" != "xyesyes"; then |
19a0d4b6 | 7086 | if test "$enable_server" == "yes"; then |
daae650d MW |
7087 | { { $as_echo "$as_me:$LINENO: error: cannot find all libraries for stap-server" >&5 |
7088 | $as_echo "$as_me: error: cannot find all libraries for stap-server" >&2;} | |
19a0d4b6 MW |
7089 | { (exit 1); exit 1; }; } |
7090 | fi | |
7091 | if test "$enable_server" == "check"; then | |
daae650d MW |
7092 | { $as_echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5 |
7093 | $as_echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;} | |
19a0d4b6 MW |
7094 | fi |
7095 | fi | |
8ca54d60 | 7096 | if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then |
19a0d4b6 MW |
7097 | BUILD_SERVER_TRUE= |
7098 | BUILD_SERVER_FALSE='#' | |
7099 | else | |
7100 | BUILD_SERVER_TRUE='#' | |
7101 | BUILD_SERVER_FALSE= | |
43498922 DB |
7102 | fi |
7103 | ||
19a0d4b6 | 7104 | |
e8f3c2c2 DS |
7105 | build_elfutils=no |
7106 | ||
7107 | # Check whether --with-elfutils was given. | |
7108 | if test "${with_elfutils+set}" = set; then | |
7109 | withval=$with_elfutils; | |
7110 | case "$with_elfutils" in | |
daae650d MW |
7111 | yes) { { $as_echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5 |
7112 | $as_echo "$as_me: error: --with-elfutils requires an argument" >&2;} | |
e8f3c2c2 DS |
7113 | { (exit 1); exit 1; }; } ;; |
7114 | ''|no) ;; | |
7115 | *) build_elfutils=yes ;; | |
7116 | esac | |
7117 | fi | |
7118 | ||
7119 | if test $build_elfutils = yes; then | |
7120 | BUILD_ELFUTILS_TRUE= | |
7121 | BUILD_ELFUTILS_FALSE='#' | |
7122 | else | |
7123 | BUILD_ELFUTILS_TRUE='#' | |
7124 | BUILD_ELFUTILS_FALSE= | |
7125 | fi | |
7126 | ||
7127 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then | |
7128 | cd $with_elfutils && pwd | |
7129 | fi | |
7130 | ` | |
7131 | ||
7132 | ||
9cb3a339 | 7133 | if test $build_elfutils = no; then |
8d4b1ab0 | 7134 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ |
4d9087fc | 7135 | save_LIBS="$LIBS" |
4645fadb | 7136 | |
daae650d MW |
7137 | { $as_echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5 |
7138 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } | |
4645fadb | 7139 | if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then |
daae650d | 7140 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
7141 | else |
7142 | ac_check_lib_save_LIBS=$LIBS | |
7143 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7144 | cat >conftest.$ac_ext <<_ACEOF | |
7145 | /* confdefs.h. */ | |
7146 | _ACEOF | |
7147 | cat confdefs.h >>conftest.$ac_ext | |
7148 | cat >>conftest.$ac_ext <<_ACEOF | |
7149 | /* end confdefs.h. */ | |
7150 | ||
7151 | /* Override any GCC internal prototype to avoid an error. | |
7152 | Use char because int might match the return type of a GCC | |
7153 | builtin and then its argument prototype would still apply. */ | |
7154 | #ifdef __cplusplus | |
7155 | extern "C" | |
7156 | #endif | |
7157 | char dwfl_module_getsym (); | |
7158 | int | |
7159 | main () | |
7160 | { | |
7161 | return dwfl_module_getsym (); | |
7162 | ; | |
7163 | return 0; | |
7164 | } | |
7165 | _ACEOF | |
7166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7167 | if { (ac_try="$ac_link" | |
7168 | case "(($ac_try" in | |
7169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7170 | *) ac_try_echo=$ac_try;; | |
7171 | esac | |
daae650d MW |
7172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7173 | $as_echo "$ac_try_echo") >&5 | |
4645fadb JS |
7174 | (eval "$ac_link") 2>conftest.er1 |
7175 | ac_status=$? | |
7176 | grep -v '^ *+' conftest.er1 >conftest.err | |
7177 | rm -f conftest.er1 | |
7178 | cat conftest.err >&5 | |
daae650d | 7179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4645fadb JS |
7180 | (exit $ac_status); } && { |
7181 | test -z "$ac_c_werror_flag" || | |
7182 | test ! -s conftest.err | |
daae650d MW |
7183 | } && test -s conftest$ac_exeext && { |
7184 | test "$cross_compiling" = yes || | |
7185 | $as_test_x conftest$ac_exeext | |
7186 | }; then | |
4645fadb JS |
7187 | ac_cv_lib_dw_dwfl_module_getsym=yes |
7188 | else | |
daae650d | 7189 | $as_echo "$as_me: failed program was:" >&5 |
4645fadb JS |
7190 | sed 's/^/| /' conftest.$ac_ext >&5 |
7191 | ||
7192 | ac_cv_lib_dw_dwfl_module_getsym=no | |
7193 | fi | |
7194 | ||
daae650d | 7195 | rm -rf conftest.dSYM |
4645fadb JS |
7196 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7197 | conftest$ac_exeext conftest.$ac_ext | |
7198 | LIBS=$ac_check_lib_save_LIBS | |
7199 | fi | |
daae650d MW |
7200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
7201 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } | |
7202 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then | |
4645fadb JS |
7203 | cat >>confdefs.h <<_ACEOF |
7204 | #define HAVE_LIBDW 1 | |
7205 | _ACEOF | |
7206 | ||
7207 | LIBS="-ldw $LIBS" | |
7208 | ||
7209 | else | |
7210 | ||
daae650d MW |
7211 | { { $as_echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&5 |
7212 | $as_echo "$as_me: error: missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" >&2;} | |
4645fadb JS |
7213 | { (exit 1); exit 1; }; } |
7214 | fi | |
7215 | ||
87cb1275 | 7216 | |
daae650d MW |
7217 | { $as_echo "$as_me:$LINENO: checking for dwarf_getelf in -ldw" >&5 |
7218 | $as_echo_n "checking for dwarf_getelf in -ldw... " >&6; } | |
87cb1275 | 7219 | if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then |
daae650d | 7220 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
7221 | else |
7222 | ac_check_lib_save_LIBS=$LIBS | |
7223 | LIBS="-ldw -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf $LIBS" | |
7224 | cat >conftest.$ac_ext <<_ACEOF | |
7225 | /* confdefs.h. */ | |
7226 | _ACEOF | |
7227 | cat confdefs.h >>conftest.$ac_ext | |
7228 | cat >>conftest.$ac_ext <<_ACEOF | |
7229 | /* end confdefs.h. */ | |
7230 | ||
7231 | /* Override any GCC internal prototype to avoid an error. | |
7232 | Use char because int might match the return type of a GCC | |
7233 | builtin and then its argument prototype would still apply. */ | |
7234 | #ifdef __cplusplus | |
7235 | extern "C" | |
7236 | #endif | |
7237 | char dwarf_getelf (); | |
7238 | int | |
7239 | main () | |
7240 | { | |
7241 | return dwarf_getelf (); | |
7242 | ; | |
7243 | return 0; | |
7244 | } | |
7245 | _ACEOF | |
7246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7247 | if { (ac_try="$ac_link" | |
7248 | case "(($ac_try" in | |
7249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7250 | *) ac_try_echo=$ac_try;; | |
7251 | esac | |
daae650d MW |
7252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7253 | $as_echo "$ac_try_echo") >&5 | |
87cb1275 MW |
7254 | (eval "$ac_link") 2>conftest.er1 |
7255 | ac_status=$? | |
7256 | grep -v '^ *+' conftest.er1 >conftest.err | |
7257 | rm -f conftest.er1 | |
7258 | cat conftest.err >&5 | |
daae650d | 7259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
87cb1275 MW |
7260 | (exit $ac_status); } && { |
7261 | test -z "$ac_c_werror_flag" || | |
7262 | test ! -s conftest.err | |
daae650d MW |
7263 | } && test -s conftest$ac_exeext && { |
7264 | test "$cross_compiling" = yes || | |
7265 | $as_test_x conftest$ac_exeext | |
7266 | }; then | |
87cb1275 MW |
7267 | ac_cv_lib_dw_dwarf_getelf=yes |
7268 | else | |
daae650d | 7269 | $as_echo "$as_me: failed program was:" >&5 |
87cb1275 MW |
7270 | sed 's/^/| /' conftest.$ac_ext >&5 |
7271 | ||
7272 | ac_cv_lib_dw_dwarf_getelf=no | |
7273 | fi | |
7274 | ||
daae650d | 7275 | rm -rf conftest.dSYM |
87cb1275 MW |
7276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7277 | conftest$ac_exeext conftest.$ac_ext | |
7278 | LIBS=$ac_check_lib_save_LIBS | |
7279 | fi | |
daae650d MW |
7280 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwarf_getelf" >&5 |
7281 | $as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; } | |
7282 | if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then | |
87cb1275 MW |
7283 | cat >>confdefs.h <<_ACEOF |
7284 | #define HAVE_LIBDW 1 | |
7285 | _ACEOF | |
7286 | ||
7287 | LIBS="-ldw $LIBS" | |
7288 | ||
7289 | else | |
7290 | ||
daae650d MW |
7291 | { { $as_echo "$as_me:$LINENO: error: elfutils, libdw too old, need 0.126+" >&5 |
7292 | $as_echo "$as_me: error: elfutils, libdw too old, need 0.126+" >&2;} | |
87cb1275 MW |
7293 | { (exit 1); exit 1; }; } |
7294 | fi | |
7295 | ||
cfa2ca3c | 7296 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
e8f3c2c2 | 7297 | LIBS="$save_LIBS" |
4d9087fc RM |
7298 | else |
7299 | # We built our own and stap_LDFLAGS points at the install. | |
4645fadb JS |
7300 | stap_LIBS="-Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
7301 | fi | |
7302 | ||
6b1a0274 | 7303 | |
daae650d MW |
7304 | { $as_echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5 |
7305 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} | |
c3a3c0c9 | 7306 | |
69c68955 FCE |
7307 | date=`date +%Y-%m-%d` |
7308 | ||
7309 | cat >>confdefs.h <<_ACEOF | |
7310 | #define DATE "$date" | |
7311 | _ACEOF | |
7312 | ||
82fab474 | 7313 | DATE="$date" |
69c68955 FCE |
7314 | |
7315 | ||
10b20266 FCE |
7316 | |
7317 | # This procflags business is for staprun/stapio, which need to | |
7318 | # be compiled with the same bitness as the kernel. On e.g. PPC, | |
7319 | # userspace might be 32-bit default, but staprun needs to be | |
7320 | # 64-bit. See also bug #4037. | |
7321 | ||
5566993b MH |
7322 | processor=`uname -p` |
7323 | case "$processor" in | |
c1536577 | 7324 | ppc64) PROCFLAGS=-m64 ;; |
5566993b MH |
7325 | x86_64) PROCFLAGS=-m64 ;; |
7326 | *) PROCFLAGS="" | |
7327 | esac | |
7328 | ||
7329 | ||
3bf6ac45 TM |
7330 | # Use tr1/unordered_map if available |
7331 | ac_ext=cpp | |
7332 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7333 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7334 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7335 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7336 | ||
7337 | ||
7338 | ac_ext=cpp | |
7339 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7340 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7341 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7342 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
daae650d MW |
7343 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
7344 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
3bf6ac45 TM |
7345 | if test -z "$CXXCPP"; then |
7346 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
daae650d | 7347 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7348 | else |
7349 | # Double quotes because CXXCPP needs to be expanded | |
7350 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7351 | do | |
7352 | ac_preproc_ok=false | |
7353 | for ac_cxx_preproc_warn_flag in '' yes | |
7354 | do | |
7355 | # Use a header file that comes with gcc, so configuring glibc | |
7356 | # with a fresh cross-compiler works. | |
7357 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7358 | # <limits.h> exists even on freestanding compilers. | |
7359 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7360 | # not just through cpp. "Syntax error" is here to catch this case. | |
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 | #ifdef __STDC__ | |
7368 | # include <limits.h> | |
7369 | #else | |
7370 | # include <assert.h> | |
7371 | #endif | |
7372 | Syntax error | |
7373 | _ACEOF | |
7374 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7375 | case "(($ac_try" in | |
7376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7377 | *) ac_try_echo=$ac_try;; | |
7378 | esac | |
daae650d MW |
7379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7380 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7381 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7382 | ac_status=$? | |
7383 | grep -v '^ *+' conftest.er1 >conftest.err | |
7384 | rm -f conftest.er1 | |
7385 | cat conftest.err >&5 | |
daae650d | 7386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7387 | (exit $ac_status); } >/dev/null && { |
7388 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7389 | test ! -s conftest.err | |
7390 | }; then | |
7391 | : | |
7392 | else | |
daae650d | 7393 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7394 | sed 's/^/| /' conftest.$ac_ext >&5 |
7395 | ||
7396 | # Broken: fails on valid input. | |
7397 | continue | |
7398 | fi | |
7399 | ||
7400 | rm -f conftest.err conftest.$ac_ext | |
7401 | ||
7402 | # OK, works on sane cases. Now check whether nonexistent headers | |
7403 | # can be detected and how. | |
7404 | cat >conftest.$ac_ext <<_ACEOF | |
7405 | /* confdefs.h. */ | |
7406 | _ACEOF | |
7407 | cat confdefs.h >>conftest.$ac_ext | |
7408 | cat >>conftest.$ac_ext <<_ACEOF | |
7409 | /* end confdefs.h. */ | |
7410 | #include <ac_nonexistent.h> | |
7411 | _ACEOF | |
7412 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7413 | case "(($ac_try" in | |
7414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7415 | *) ac_try_echo=$ac_try;; | |
7416 | esac | |
daae650d MW |
7417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7418 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7420 | ac_status=$? | |
7421 | grep -v '^ *+' conftest.er1 >conftest.err | |
7422 | rm -f conftest.er1 | |
7423 | cat conftest.err >&5 | |
daae650d | 7424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7425 | (exit $ac_status); } >/dev/null && { |
7426 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7427 | test ! -s conftest.err | |
7428 | }; then | |
7429 | # Broken: success on invalid input. | |
7430 | continue | |
7431 | else | |
daae650d | 7432 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7433 | sed 's/^/| /' conftest.$ac_ext >&5 |
7434 | ||
7435 | # Passes both tests. | |
7436 | ac_preproc_ok=: | |
7437 | break | |
7438 | fi | |
7439 | ||
7440 | rm -f conftest.err conftest.$ac_ext | |
7441 | ||
7442 | done | |
7443 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7444 | rm -f conftest.err conftest.$ac_ext | |
7445 | if $ac_preproc_ok; then | |
7446 | break | |
7447 | fi | |
7448 | ||
7449 | done | |
7450 | ac_cv_prog_CXXCPP=$CXXCPP | |
7451 | ||
7452 | fi | |
7453 | CXXCPP=$ac_cv_prog_CXXCPP | |
7454 | else | |
7455 | ac_cv_prog_CXXCPP=$CXXCPP | |
7456 | fi | |
daae650d MW |
7457 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
7458 | $as_echo "$CXXCPP" >&6; } | |
3bf6ac45 TM |
7459 | ac_preproc_ok=false |
7460 | for ac_cxx_preproc_warn_flag in '' yes | |
7461 | do | |
7462 | # Use a header file that comes with gcc, so configuring glibc | |
7463 | # with a fresh cross-compiler works. | |
7464 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7465 | # <limits.h> exists even on freestanding compilers. | |
7466 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7467 | # not just through cpp. "Syntax error" is here to catch this case. | |
7468 | cat >conftest.$ac_ext <<_ACEOF | |
7469 | /* confdefs.h. */ | |
7470 | _ACEOF | |
7471 | cat confdefs.h >>conftest.$ac_ext | |
7472 | cat >>conftest.$ac_ext <<_ACEOF | |
7473 | /* end confdefs.h. */ | |
7474 | #ifdef __STDC__ | |
7475 | # include <limits.h> | |
7476 | #else | |
7477 | # include <assert.h> | |
7478 | #endif | |
7479 | Syntax error | |
7480 | _ACEOF | |
7481 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7482 | case "(($ac_try" in | |
7483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7484 | *) ac_try_echo=$ac_try;; | |
7485 | esac | |
daae650d MW |
7486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7487 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7489 | ac_status=$? | |
7490 | grep -v '^ *+' conftest.er1 >conftest.err | |
7491 | rm -f conftest.er1 | |
7492 | cat conftest.err >&5 | |
daae650d | 7493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7494 | (exit $ac_status); } >/dev/null && { |
7495 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7496 | test ! -s conftest.err | |
7497 | }; then | |
7498 | : | |
7499 | else | |
daae650d | 7500 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7501 | sed 's/^/| /' conftest.$ac_ext >&5 |
7502 | ||
7503 | # Broken: fails on valid input. | |
7504 | continue | |
7505 | fi | |
7506 | ||
7507 | rm -f conftest.err conftest.$ac_ext | |
7508 | ||
7509 | # OK, works on sane cases. Now check whether nonexistent headers | |
7510 | # can be detected and how. | |
7511 | cat >conftest.$ac_ext <<_ACEOF | |
7512 | /* confdefs.h. */ | |
7513 | _ACEOF | |
7514 | cat confdefs.h >>conftest.$ac_ext | |
7515 | cat >>conftest.$ac_ext <<_ACEOF | |
7516 | /* end confdefs.h. */ | |
7517 | #include <ac_nonexistent.h> | |
7518 | _ACEOF | |
7519 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7520 | case "(($ac_try" in | |
7521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7522 | *) ac_try_echo=$ac_try;; | |
7523 | esac | |
daae650d MW |
7524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7525 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7527 | ac_status=$? | |
7528 | grep -v '^ *+' conftest.er1 >conftest.err | |
7529 | rm -f conftest.er1 | |
7530 | cat conftest.err >&5 | |
daae650d | 7531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7532 | (exit $ac_status); } >/dev/null && { |
7533 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7534 | test ! -s conftest.err | |
7535 | }; then | |
7536 | # Broken: success on invalid input. | |
7537 | continue | |
7538 | else | |
daae650d | 7539 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 |
7541 | ||
7542 | # Passes both tests. | |
7543 | ac_preproc_ok=: | |
7544 | break | |
7545 | fi | |
7546 | ||
7547 | rm -f conftest.err conftest.$ac_ext | |
7548 | ||
7549 | done | |
7550 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7551 | rm -f conftest.err conftest.$ac_ext | |
7552 | if $ac_preproc_ok; then | |
7553 | : | |
7554 | else | |
daae650d MW |
7555 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7557 | { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
3bf6ac45 | 7558 | See \`config.log' for more details." >&5 |
daae650d | 7559 | $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
3bf6ac45 | 7560 | See \`config.log' for more details." >&2;} |
daae650d | 7561 | { (exit 1); exit 1; }; }; } |
3bf6ac45 TM |
7562 | fi |
7563 | ||
7564 | ac_ext=cpp | |
7565 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7569 | ||
7570 | ||
7571 | ||
7572 | for ac_header in tr1/unordered_map | |
7573 | do | |
daae650d | 7574 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3bf6ac45 | 7575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d MW |
7576 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7577 | $as_echo_n "checking for $ac_header... " >&6; } | |
3bf6ac45 | 7578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 7579 | $as_echo_n "(cached) " >&6 |
3bf6ac45 | 7580 | fi |
daae650d MW |
7581 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7582 | $as_echo "$as_val"'` | |
7583 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7584 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7585 | else |
7586 | # Is the header compilable? | |
daae650d MW |
7587 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7588 | $as_echo_n "checking $ac_header usability... " >&6; } | |
3bf6ac45 TM |
7589 | cat >conftest.$ac_ext <<_ACEOF |
7590 | /* confdefs.h. */ | |
7591 | _ACEOF | |
7592 | cat confdefs.h >>conftest.$ac_ext | |
7593 | cat >>conftest.$ac_ext <<_ACEOF | |
7594 | /* end confdefs.h. */ | |
7595 | $ac_includes_default | |
7596 | #include <$ac_header> | |
7597 | _ACEOF | |
7598 | rm -f conftest.$ac_objext | |
7599 | if { (ac_try="$ac_compile" | |
7600 | case "(($ac_try" in | |
7601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7602 | *) ac_try_echo=$ac_try;; | |
7603 | esac | |
daae650d MW |
7604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7605 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7606 | (eval "$ac_compile") 2>conftest.er1 |
7607 | ac_status=$? | |
7608 | grep -v '^ *+' conftest.er1 >conftest.err | |
7609 | rm -f conftest.er1 | |
7610 | cat conftest.err >&5 | |
daae650d | 7611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7612 | (exit $ac_status); } && { |
7613 | test -z "$ac_cxx_werror_flag" || | |
7614 | test ! -s conftest.err | |
7615 | } && test -s conftest.$ac_objext; then | |
7616 | ac_header_compiler=yes | |
7617 | else | |
daae650d | 7618 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7619 | sed 's/^/| /' conftest.$ac_ext >&5 |
7620 | ||
7621 | ac_header_compiler=no | |
7622 | fi | |
7623 | ||
7624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
daae650d MW |
7625 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7626 | $as_echo "$ac_header_compiler" >&6; } | |
3bf6ac45 TM |
7627 | |
7628 | # Is the header present? | |
daae650d MW |
7629 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7630 | $as_echo_n "checking $ac_header presence... " >&6; } | |
3bf6ac45 TM |
7631 | cat >conftest.$ac_ext <<_ACEOF |
7632 | /* confdefs.h. */ | |
7633 | _ACEOF | |
7634 | cat confdefs.h >>conftest.$ac_ext | |
7635 | cat >>conftest.$ac_ext <<_ACEOF | |
7636 | /* end confdefs.h. */ | |
7637 | #include <$ac_header> | |
7638 | _ACEOF | |
7639 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7640 | case "(($ac_try" in | |
7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7642 | *) ac_try_echo=$ac_try;; | |
7643 | esac | |
daae650d MW |
7644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7645 | $as_echo "$ac_try_echo") >&5 | |
3bf6ac45 TM |
7646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7647 | ac_status=$? | |
7648 | grep -v '^ *+' conftest.er1 >conftest.err | |
7649 | rm -f conftest.er1 | |
7650 | cat conftest.err >&5 | |
daae650d | 7651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3bf6ac45 TM |
7652 | (exit $ac_status); } >/dev/null && { |
7653 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7654 | test ! -s conftest.err | |
7655 | }; then | |
7656 | ac_header_preproc=yes | |
7657 | else | |
daae650d | 7658 | $as_echo "$as_me: failed program was:" >&5 |
3bf6ac45 TM |
7659 | sed 's/^/| /' conftest.$ac_ext >&5 |
7660 | ||
7661 | ac_header_preproc=no | |
7662 | fi | |
7663 | ||
7664 | rm -f conftest.err conftest.$ac_ext | |
daae650d MW |
7665 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7666 | $as_echo "$ac_header_preproc" >&6; } | |
3bf6ac45 TM |
7667 | |
7668 | # So? What about this header? | |
7669 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
7670 | yes:no: ) | |
daae650d MW |
7671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7672 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7674 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3bf6ac45 TM |
7675 | ac_header_preproc=yes |
7676 | ;; | |
7677 | no:yes:* ) | |
daae650d MW |
7678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7679 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7681 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7683 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7685 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7687 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7689 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3bf6ac45 TM |
7690 | ( cat <<\_ASBOX |
7691 | ## ------------------------------------------- ## | |
7692 | ## Report this to systemtap@sources.redhat.com ## | |
7693 | ## ------------------------------------------- ## | |
7694 | _ASBOX | |
7695 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
7696 | ;; | |
7697 | esac | |
daae650d MW |
7698 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7699 | $as_echo_n "checking for $ac_header... " >&6; } | |
3bf6ac45 | 7700 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 7701 | $as_echo_n "(cached) " >&6 |
3bf6ac45 TM |
7702 | else |
7703 | eval "$as_ac_Header=\$ac_header_preproc" | |
7704 | fi | |
daae650d MW |
7705 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7706 | $as_echo "$as_val"'` | |
7707 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7708 | $as_echo "$ac_res" >&6; } | |
3bf6ac45 TM |
7709 | |
7710 | fi | |
daae650d MW |
7711 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7712 | $as_echo "$as_val"'` | |
7713 | if test "x$as_val" = x""yes; then | |
3bf6ac45 | 7714 | cat >>confdefs.h <<_ACEOF |
daae650d | 7715 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3bf6ac45 TM |
7716 | _ACEOF |
7717 | ||
7718 | fi | |
7719 | ||
7720 | done | |
7721 | ||
7722 | ac_ext=c | |
7723 | ac_cpp='$CPP $CPPFLAGS' | |
7724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7727 | ||
7728 | ||
e016a49a FCE |
7729 | |
7730 | if test $build_elfutils = yes; then | |
7731 | case "$with_elfutils" in | |
7732 | /*) elfutils_srcdir="$with_elfutils" ;; | |
7733 | *) elfutils_srcdir="../$with_elfutils" ;; | |
7734 | esac | |
daae650d MW |
7735 | { $as_echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5 |
7736 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} | |
e016a49a FCE |
7737 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
7738 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
7739 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
7740 | # So we must make sure to pass those settings to elfutils configure. | |
7741 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
7742 | here=`pwd` | |
7743 | (mkdir -p build-elfutils && cd build-elfutils && | |
7744 | ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ | |
7745 | --includedir="${here}/include-elfutils" \ | |
7746 | --libdir="${here}/lib-elfutils" \ | |
7747 | --exec-prefix="$exec_prefix" \ | |
7748 | --prefix="$prefix" \ | |
7749 | CFLAGS="${CFLAGS/-Wall/}" \ | |
7750 | LDFLAGS="$LDFLAGS $elfutils_rpath" && | |
e3633556 MW |
7751 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
7752 | echo Trying to install elfutils version header... | |
7753 | make install-pkgincludeHEADERS | |
7754 | fi | |
7755 | # so that elfutils/version.h - available from 0.138 - may be found. | |
93f86457 | 7756 | # Don't use install-data because that will fail (installing in $prefix). |
e016a49a | 7757 | ) |
93f86457 | 7758 | if test $? != 0; then exit; fi |
1c4cf93d MW |
7759 | save_CPPFLAGS=${CPPFLAGS} |
7760 | CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils | |
7761 | ||
7762 | for ac_header in elfutils/version.h | |
7763 | do | |
7764 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7766 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7767 | $as_echo_n "checking for $ac_header... " >&6; } | |
7768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7769 | $as_echo_n "(cached) " >&6 | |
7770 | fi | |
7771 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7772 | $as_echo "$as_val"'` | |
7773 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7774 | $as_echo "$ac_res" >&6; } | |
7775 | else | |
7776 | # Is the header compilable? | |
7777 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7778 | $as_echo_n "checking $ac_header usability... " >&6; } | |
7779 | cat >conftest.$ac_ext <<_ACEOF | |
7780 | /* confdefs.h. */ | |
7781 | _ACEOF | |
7782 | cat confdefs.h >>conftest.$ac_ext | |
7783 | cat >>conftest.$ac_ext <<_ACEOF | |
7784 | /* end confdefs.h. */ | |
7785 | $ac_includes_default | |
7786 | #include <$ac_header> | |
7787 | _ACEOF | |
7788 | rm -f conftest.$ac_objext | |
7789 | if { (ac_try="$ac_compile" | |
7790 | case "(($ac_try" in | |
7791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7792 | *) ac_try_echo=$ac_try;; | |
7793 | esac | |
7794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7795 | $as_echo "$ac_try_echo") >&5 | |
7796 | (eval "$ac_compile") 2>conftest.er1 | |
7797 | ac_status=$? | |
7798 | grep -v '^ *+' conftest.er1 >conftest.err | |
7799 | rm -f conftest.er1 | |
7800 | cat conftest.err >&5 | |
7801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7802 | (exit $ac_status); } && { | |
7803 | test -z "$ac_c_werror_flag" || | |
7804 | test ! -s conftest.err | |
7805 | } && test -s conftest.$ac_objext; then | |
7806 | ac_header_compiler=yes | |
7807 | else | |
7808 | $as_echo "$as_me: failed program was:" >&5 | |
7809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7810 | ||
7811 | ac_header_compiler=no | |
e016a49a FCE |
7812 | fi |
7813 | ||
1c4cf93d MW |
7814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7815 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7816 | $as_echo "$ac_header_compiler" >&6; } | |
7817 | ||
7818 | # Is the header present? | |
7819 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7820 | $as_echo_n "checking $ac_header presence... " >&6; } | |
7821 | cat >conftest.$ac_ext <<_ACEOF | |
7822 | /* confdefs.h. */ | |
7823 | _ACEOF | |
7824 | cat confdefs.h >>conftest.$ac_ext | |
7825 | cat >>conftest.$ac_ext <<_ACEOF | |
7826 | /* end confdefs.h. */ | |
7827 | #include <$ac_header> | |
7828 | _ACEOF | |
7829 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7830 | case "(($ac_try" in | |
7831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7832 | *) ac_try_echo=$ac_try;; | |
7833 | esac | |
7834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7835 | $as_echo "$ac_try_echo") >&5 | |
7836 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7837 | ac_status=$? | |
7838 | grep -v '^ *+' conftest.er1 >conftest.err | |
7839 | rm -f conftest.er1 | |
7840 | cat conftest.err >&5 | |
7841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 | (exit $ac_status); } >/dev/null && { | |
7843 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7844 | test ! -s conftest.err | |
7845 | }; then | |
7846 | ac_header_preproc=yes | |
7847 | else | |
7848 | $as_echo "$as_me: failed program was:" >&5 | |
7849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7850 | ||
7851 | ac_header_preproc=no | |
7852 | fi | |
7853 | ||
7854 | rm -f conftest.err conftest.$ac_ext | |
7855 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7856 | $as_echo "$ac_header_preproc" >&6; } | |
7857 | ||
7858 | # So? What about this header? | |
7859 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7860 | yes:no: ) | |
7861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7862 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7864 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7865 | ac_header_preproc=yes | |
7866 | ;; | |
7867 | no:yes:* ) | |
7868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7869 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7871 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7873 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7875 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7877 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7879 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7880 | ( cat <<\_ASBOX | |
7881 | ## ------------------------------------------- ## | |
7882 | ## Report this to systemtap@sources.redhat.com ## | |
7883 | ## ------------------------------------------- ## | |
7884 | _ASBOX | |
7885 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
7886 | ;; | |
7887 | esac | |
7888 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7889 | $as_echo_n "checking for $ac_header... " >&6; } | |
7890 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7891 | $as_echo_n "(cached) " >&6 | |
7892 | else | |
7893 | eval "$as_ac_Header=\$ac_header_preproc" | |
7894 | fi | |
7895 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7896 | $as_echo "$as_val"'` | |
7897 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7898 | $as_echo "$ac_res" >&6; } | |
7899 | ||
7900 | fi | |
7901 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7902 | $as_echo "$as_val"'` | |
7903 | if test "x$as_val" = x""yes; then | |
7904 | cat >>confdefs.h <<_ACEOF | |
7905 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7906 | _ACEOF | |
7907 | ||
7908 | fi | |
7909 | ||
7910 | done | |
7911 | ||
7912 | CPPFLAGS="$save_CPPFLAGS" | |
7913 | else | |
e016a49a FCE |
7914 | |
7915 | for ac_header in elfutils/version.h | |
7916 | do | |
daae650d | 7917 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
e016a49a | 7918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d MW |
7919 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7920 | $as_echo_n "checking for $ac_header... " >&6; } | |
e016a49a | 7921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 7922 | $as_echo_n "(cached) " >&6 |
e016a49a | 7923 | fi |
daae650d MW |
7924 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7925 | $as_echo "$as_val"'` | |
7926 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7927 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
7928 | else |
7929 | # Is the header compilable? | |
daae650d MW |
7930 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7931 | $as_echo_n "checking $ac_header usability... " >&6; } | |
e016a49a FCE |
7932 | cat >conftest.$ac_ext <<_ACEOF |
7933 | /* confdefs.h. */ | |
7934 | _ACEOF | |
7935 | cat confdefs.h >>conftest.$ac_ext | |
7936 | cat >>conftest.$ac_ext <<_ACEOF | |
7937 | /* end confdefs.h. */ | |
7938 | $ac_includes_default | |
7939 | #include <$ac_header> | |
7940 | _ACEOF | |
7941 | rm -f conftest.$ac_objext | |
7942 | if { (ac_try="$ac_compile" | |
7943 | case "(($ac_try" in | |
7944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7945 | *) ac_try_echo=$ac_try;; | |
7946 | esac | |
daae650d MW |
7947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7948 | $as_echo "$ac_try_echo") >&5 | |
e016a49a FCE |
7949 | (eval "$ac_compile") 2>conftest.er1 |
7950 | ac_status=$? | |
7951 | grep -v '^ *+' conftest.er1 >conftest.err | |
7952 | rm -f conftest.er1 | |
7953 | cat conftest.err >&5 | |
daae650d | 7954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e016a49a FCE |
7955 | (exit $ac_status); } && { |
7956 | test -z "$ac_c_werror_flag" || | |
7957 | test ! -s conftest.err | |
7958 | } && test -s conftest.$ac_objext; then | |
7959 | ac_header_compiler=yes | |
7960 | else | |
daae650d | 7961 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
7962 | sed 's/^/| /' conftest.$ac_ext >&5 |
7963 | ||
7964 | ac_header_compiler=no | |
7965 | fi | |
7966 | ||
7967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
daae650d MW |
7968 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7969 | $as_echo "$ac_header_compiler" >&6; } | |
e016a49a FCE |
7970 | |
7971 | # Is the header present? | |
daae650d MW |
7972 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7973 | $as_echo_n "checking $ac_header presence... " >&6; } | |
e016a49a FCE |
7974 | cat >conftest.$ac_ext <<_ACEOF |
7975 | /* confdefs.h. */ | |
7976 | _ACEOF | |
7977 | cat confdefs.h >>conftest.$ac_ext | |
7978 | cat >>conftest.$ac_ext <<_ACEOF | |
7979 | /* end confdefs.h. */ | |
7980 | #include <$ac_header> | |
7981 | _ACEOF | |
7982 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7983 | case "(($ac_try" in | |
7984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7985 | *) ac_try_echo=$ac_try;; | |
7986 | esac | |
daae650d MW |
7987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7988 | $as_echo "$ac_try_echo") >&5 | |
e016a49a FCE |
7989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
7990 | ac_status=$? | |
7991 | grep -v '^ *+' conftest.er1 >conftest.err | |
7992 | rm -f conftest.er1 | |
7993 | cat conftest.err >&5 | |
daae650d | 7994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e016a49a FCE |
7995 | (exit $ac_status); } >/dev/null && { |
7996 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7997 | test ! -s conftest.err | |
7998 | }; then | |
7999 | ac_header_preproc=yes | |
8000 | else | |
daae650d | 8001 | $as_echo "$as_me: failed program was:" >&5 |
e016a49a FCE |
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
8003 | ||
8004 | ac_header_preproc=no | |
8005 | fi | |
8006 | ||
8007 | rm -f conftest.err conftest.$ac_ext | |
daae650d MW |
8008 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8009 | $as_echo "$ac_header_preproc" >&6; } | |
e016a49a FCE |
8010 | |
8011 | # So? What about this header? | |
8012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8013 | yes:no: ) | |
daae650d MW |
8014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8015 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8017 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
e016a49a FCE |
8018 | ac_header_preproc=yes |
8019 | ;; | |
8020 | no:yes:* ) | |
daae650d MW |
8021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8022 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8024 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8026 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8028 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8030 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8032 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e016a49a FCE |
8033 | ( cat <<\_ASBOX |
8034 | ## ------------------------------------------- ## | |
8035 | ## Report this to systemtap@sources.redhat.com ## | |
8036 | ## ------------------------------------------- ## | |
8037 | _ASBOX | |
8038 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8039 | ;; | |
8040 | esac | |
daae650d MW |
8041 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8042 | $as_echo_n "checking for $ac_header... " >&6; } | |
e016a49a | 8043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
daae650d | 8044 | $as_echo_n "(cached) " >&6 |
e016a49a FCE |
8045 | else |
8046 | eval "$as_ac_Header=\$ac_header_preproc" | |
8047 | fi | |
daae650d MW |
8048 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8049 | $as_echo "$as_val"'` | |
8050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8051 | $as_echo "$ac_res" >&6; } | |
e016a49a FCE |
8052 | |
8053 | fi | |
daae650d MW |
8054 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8055 | $as_echo "$as_val"'` | |
8056 | if test "x$as_val" = x""yes; then | |
e016a49a | 8057 | cat >>confdefs.h <<_ACEOF |
daae650d | 8058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e016a49a FCE |
8059 | _ACEOF |
8060 | ||
8061 | fi | |
8062 | ||
8063 | done | |
8064 | ||
1c4cf93d | 8065 | fi |
e016a49a | 8066 | |
50431f30 MW |
8067 | |
8068 | cat >>confdefs.h <<_ACEOF | |
8069 | #define STAP_PREFIX "$prefix" | |
8070 | _ACEOF | |
8071 | ||
8072 | ||
5e0d2ebf | 8073 | ac_config_headers="$ac_config_headers config.h:config.in" |
5ba96b90 | 8074 | |
9a8d8be3 | 8075 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile stap.1 stapprobes.5 stapfuncs.5 stapvars.5 stapex.5 staprun.8 stap-server.8 man/stapprobes.iosched.5 man/stapprobes.netdev.5 man/stapprobes.nfs.5 man/stapprobes.nfsd.5 man/stapprobes.pagefault.5 man/stapprobes.process.5 man/stapprobes.rpc.5 man/stapprobes.scsi.5 man/stapprobes.signal.5 man/stapprobes.socket.5 man/stapprobes.tcp.5 man/stapprobes.udp.5 initscript/systemtap" |
5ba96b90 | 8076 | |
daae650d MW |
8077 | |
8078 | ||
5ba96b90 FCE |
8079 | subdirs="$subdirs testsuite" |
8080 | ||
2f62657c RM |
8081 | ac_config_files="$ac_config_files run-stap" |
8082 | ||
2f1a1aea FCE |
8083 | cat >confcache <<\_ACEOF |
8084 | # This file is a shell script that caches the results of configure | |
8085 | # tests run on this system so they can be shared between configure | |
8086 | # scripts and configure runs, see configure's option --config-cache. | |
8087 | # It is not useful on other systems. If it contains results you don't | |
8088 | # want to keep, you may remove or edit it. | |
8089 | # | |
8090 | # config.status only pays attention to the cache file if you give it | |
8091 | # the --recheck option to rerun configure. | |
8092 | # | |
8093 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8094 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8095 | # following values. | |
8096 | ||
8097 | _ACEOF | |
8098 | ||
8099 | # The following way of writing the cache mishandles newlines in values, | |
8100 | # but we know of no workaround that is simple, portable, and efficient. | |
5e0d2ebf | 8101 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
8102 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8103 | # and sets the high bit in the cache file unless we assign to the vars. | |
5e0d2ebf DS |
8104 | ( |
8105 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8106 | eval ac_val=\$$ac_var | |
8107 | case $ac_val in #( | |
8108 | *${as_nl}*) | |
8109 | case $ac_var in #( | |
daae650d MW |
8110 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
8111 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5e0d2ebf DS |
8112 | esac |
8113 | case $ac_var in #( | |
8114 | _ | IFS | as_nl) ;; #( | |
daae650d | 8115 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5e0d2ebf DS |
8116 | *) $as_unset $ac_var ;; |
8117 | esac ;; | |
8118 | esac | |
8119 | done | |
8120 | ||
2f1a1aea | 8121 | (set) 2>&1 | |
5e0d2ebf DS |
8122 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8123 | *${as_nl}ac_space=\ *) | |
2f1a1aea FCE |
8124 | # `set' does not quote correctly, so add quotes (double-quote |
8125 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8126 | sed -n \ | |
8127 | "s/'/'\\\\''/g; | |
8128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5e0d2ebf | 8129 | ;; #( |
2f1a1aea FCE |
8130 | *) |
8131 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5e0d2ebf | 8132 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 8133 | ;; |
5e0d2ebf DS |
8134 | esac | |
8135 | sort | |
8136 | ) | | |
2f1a1aea | 8137 | sed ' |
5e0d2ebf | 8138 | /^ac_cv_env_/b end |
2f1a1aea | 8139 | t clear |
5e0d2ebf | 8140 | :clear |
2f1a1aea FCE |
8141 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8142 | t end | |
5e0d2ebf DS |
8143 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8144 | :end' >>confcache | |
8145 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8146 | if test -w "$cache_file"; then | |
8147 | test "x$cache_file" != "x/dev/null" && | |
daae650d MW |
8148 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
8149 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
2f1a1aea FCE |
8150 | cat confcache >$cache_file |
8151 | else | |
daae650d MW |
8152 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8153 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2f1a1aea FCE |
8154 | fi |
8155 | fi | |
8156 | rm -f confcache | |
8157 | ||
8158 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8159 | # Let make expand exec_prefix. | |
8160 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8161 | ||
2f1a1aea FCE |
8162 | DEFS=-DHAVE_CONFIG_H |
8163 | ||
8164 | ac_libobjs= | |
8165 | ac_ltlibobjs= | |
8166 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8167 | # 1. Remove the extension, and $U if already installed. | |
5e0d2ebf | 8168 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
daae650d | 8169 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
5e0d2ebf DS |
8170 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8171 | # will be set to the directory where LIBOBJS objects are built. | |
8172 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8173 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
8174 | done |
8175 | LIBOBJS=$ac_libobjs | |
8176 | ||
8177 | LTLIBOBJS=$ac_ltlibobjs | |
8178 | ||
8179 | ||
8180 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
daae650d | 8181 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea | 8182 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8183 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
2f1a1aea FCE |
8184 | Usually this means the macro was only invoked conditionally." >&2;} |
8185 | { (exit 1); exit 1; }; } | |
8186 | fi | |
8187 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
daae650d | 8188 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
2f1a1aea | 8189 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8190 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
2f1a1aea FCE |
8191 | Usually this means the macro was only invoked conditionally." >&2;} |
8192 | { (exit 1); exit 1; }; } | |
8193 | fi | |
8194 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
daae650d | 8195 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8196 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8197 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8198 | Usually this means the macro was only invoked conditionally." >&2;} |
8199 | { (exit 1); exit 1; }; } | |
8200 | fi | |
8201 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
daae650d | 8202 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea | 8203 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8204 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
2f1a1aea FCE |
8205 | Usually this means the macro was only invoked conditionally." >&2;} |
8206 | { (exit 1); exit 1; }; } | |
8207 | fi | |
8208 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
daae650d | 8209 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea | 8210 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8211 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
2f1a1aea FCE |
8212 | Usually this means the macro was only invoked conditionally." >&2;} |
8213 | { (exit 1); exit 1; }; } | |
8214 | fi | |
e8f3c2c2 | 8215 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
daae650d | 8216 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc | 8217 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8218 | $as_echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined. |
4d9087fc RM |
8219 | Usually this means the macro was only invoked conditionally." >&2;} |
8220 | { (exit 1); exit 1; }; } | |
8221 | fi | |
465e8fbf | 8222 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
daae650d | 8223 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 | 8224 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8225 | $as_echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. |
92aff3c7 WC |
8226 | Usually this means the macro was only invoked conditionally." >&2;} |
8227 | { (exit 1); exit 1; }; } | |
8228 | fi | |
8229 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then | |
daae650d | 8230 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 | 8231 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8232 | $as_echo "$as_me: error: conditional \"BUILD_REFDOCS\" was never defined. |
19a0d4b6 MW |
8233 | Usually this means the macro was only invoked conditionally." >&2;} |
8234 | { (exit 1); exit 1; }; } | |
8235 | fi | |
8236 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then | |
daae650d | 8237 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf | 8238 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8239 | $as_echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined. |
465e8fbf FCE |
8240 | Usually this means the macro was only invoked conditionally." >&2;} |
8241 | { (exit 1); exit 1; }; } | |
8242 | fi | |
e8f3c2c2 | 8243 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
daae650d | 8244 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e | 8245 | Usually this means the macro was only invoked conditionally." >&5 |
daae650d | 8246 | $as_echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined. |
35a04c8e FCE |
8247 | Usually this means the macro was only invoked conditionally." >&2;} |
8248 | { (exit 1); exit 1; }; } | |
8249 | fi | |
2f1a1aea FCE |
8250 | |
8251 | : ${CONFIG_STATUS=./config.status} | |
daae650d | 8252 | ac_write_fail=0 |
2f1a1aea FCE |
8253 | ac_clean_files_save=$ac_clean_files |
8254 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
daae650d MW |
8255 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
8256 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8257 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
2f1a1aea FCE |
8258 | #! $SHELL |
8259 | # Generated by $as_me. | |
8260 | # Run this file to recreate the current configuration. | |
8261 | # Compiler output produced by configure, useful for debugging | |
8262 | # configure, is in config.log if it exists. | |
8263 | ||
8264 | debug=false | |
8265 | ac_cs_recheck=false | |
8266 | ac_cs_silent=false | |
8267 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8268 | _ACEOF | |
8269 | ||
daae650d | 8270 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8271 | ## --------------------- ## |
8272 | ## M4sh Initialization. ## | |
8273 | ## --------------------- ## | |
8274 | ||
5e0d2ebf DS |
8275 | # Be more Bourne compatible |
8276 | DUALCASE=1; export DUALCASE # for MKS sh | |
2f1a1aea FCE |
8277 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8278 | emulate sh | |
8279 | NULLCMD=: | |
daae650d | 8280 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
8281 | # is contrary to our usage. Disable this feature. |
8282 | alias -g '${1+"$@"}'='"$@"' | |
5e0d2ebf DS |
8283 | setopt NO_GLOB_SUBST |
8284 | else | |
8285 | case `(set -o) 2>/dev/null` in | |
8286 | *posix*) set -o posix ;; | |
8287 | esac | |
8288 | ||
8289 | fi | |
8290 | ||
8291 | ||
8292 | ||
8293 | ||
8294 | # PATH needs CR | |
8295 | # Avoid depending upon Character Ranges. | |
8296 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8297 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8298 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8299 | as_cr_digits='0123456789' | |
8300 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8301 | ||
daae650d MW |
8302 | as_nl=' |
8303 | ' | |
8304 | export as_nl | |
8305 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8306 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8307 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8308 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8309 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8310 | as_echo='printf %s\n' | |
8311 | as_echo_n='printf %s' | |
8312 | else | |
8313 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
8314 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8315 | as_echo_n='/usr/ucb/echo -n' | |
92aff3c7 | 8316 | else |
daae650d MW |
8317 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8318 | as_echo_n_body='eval | |
8319 | arg=$1; | |
8320 | case $arg in | |
8321 | *"$as_nl"*) | |
8322 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8323 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8324 | esac; | |
8325 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8326 | ' | |
8327 | export as_echo_n_body | |
8328 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
92aff3c7 | 8329 | fi |
daae650d MW |
8330 | export as_echo_body |
8331 | as_echo='sh -c $as_echo_body as_echo' | |
8332 | fi | |
8333 | ||
8334 | # The user is always right. | |
8335 | if test "${PATH_SEPARATOR+set}" != set; then | |
8336 | PATH_SEPARATOR=: | |
8337 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8338 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8339 | PATH_SEPARATOR=';' | |
8340 | } | |
2f1a1aea | 8341 | fi |
2f1a1aea FCE |
8342 | |
8343 | # Support unset when possible. | |
8344 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8345 | as_unset=unset | |
8346 | else | |
8347 | as_unset=false | |
8348 | fi | |
8349 | ||
8350 | ||
5e0d2ebf DS |
8351 | # IFS |
8352 | # We need space, tab and new line, in precisely that order. Quoting is | |
8353 | # there to prevent editors from complaining about space-tab. | |
8354 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8355 | # splitting by setting IFS to empty value.) | |
5e0d2ebf DS |
8356 | IFS=" "" $as_nl" |
8357 | ||
8358 | # Find who we are. Look in the path if we contain no directory separator. | |
8359 | case $0 in | |
8360 | *[\\/]* ) as_myself=$0 ;; | |
8361 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8362 | for as_dir in $PATH | |
8363 | do | |
8364 | IFS=$as_save_IFS | |
8365 | test -z "$as_dir" && as_dir=. | |
8366 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8367 | done | |
8368 | IFS=$as_save_IFS | |
8369 | ||
8370 | ;; | |
8371 | esac | |
8372 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8373 | # in which case we are not to be found in the path. | |
8374 | if test "x$as_myself" = x; then | |
8375 | as_myself=$0 | |
8376 | fi | |
8377 | if test ! -f "$as_myself"; then | |
daae650d | 8378 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5e0d2ebf DS |
8379 | { (exit 1); exit 1; } |
8380 | fi | |
8381 | ||
2f1a1aea | 8382 | # Work around bugs in pre-3.0 UWIN ksh. |
5e0d2ebf DS |
8383 | for as_var in ENV MAIL MAILPATH |
8384 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
8385 | done | |
2f1a1aea FCE |
8386 | PS1='$ ' |
8387 | PS2='> ' | |
8388 | PS4='+ ' | |
8389 | ||
8390 | # NLS nuisances. | |
daae650d MW |
8391 | LC_ALL=C |
8392 | export LC_ALL | |
8393 | LANGUAGE=C | |
8394 | export LANGUAGE | |
2f1a1aea FCE |
8395 | |
8396 | # Required to use basename. | |
5e0d2ebf DS |
8397 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8398 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8399 | as_expr=expr |
8400 | else | |
8401 | as_expr=false | |
8402 | fi | |
8403 | ||
5e0d2ebf | 8404 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
8405 | as_basename=basename |
8406 | else | |
8407 | as_basename=false | |
8408 | fi | |
8409 | ||
8410 | ||
8411 | # Name of the executable. | |
5e0d2ebf | 8412 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
8413 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8414 | X"$0" : 'X\(//\)$' \| \ | |
5e0d2ebf | 8415 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 8416 | $as_echo X/"$0" | |
5e0d2ebf DS |
8417 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8418 | s//\1/ | |
8419 | q | |
8420 | } | |
8421 | /^X\/\(\/\/\)$/{ | |
8422 | s//\1/ | |
8423 | q | |
8424 | } | |
8425 | /^X\/\(\/\).*/{ | |
8426 | s//\1/ | |
8427 | q | |
8428 | } | |
8429 | s/.*/./; q'` | |
2f1a1aea | 8430 | |
5e0d2ebf DS |
8431 | # CDPATH. |
8432 | $as_unset CDPATH | |
8ae7a94a | 8433 | |
2f1a1aea | 8434 | |
8ae7a94a | 8435 | |
8ae7a94a FCE |
8436 | as_lineno_1=$LINENO |
8437 | as_lineno_2=$LINENO | |
8ae7a94a | 8438 | test "x$as_lineno_1" != "x$as_lineno_2" && |
5e0d2ebf | 8439 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
2f1a1aea FCE |
8440 | |
8441 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8442 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5e0d2ebf DS |
8443 | # line-number line after each line using $LINENO; the second 'sed' |
8444 | # does the real work. The second script uses 'N' to pair each | |
8445 | # line-number line with the line containing $LINENO, and appends | |
8446 | # trailing '-' during substitution so that $LINENO is not a special | |
8447 | # case at line end. | |
2f1a1aea | 8448 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
5e0d2ebf DS |
8449 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
8450 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
8451 | sed -n ' | |
8452 | p | |
8453 | /[$]LINENO/= | |
8454 | ' <$as_myself | | |
2f1a1aea | 8455 | sed ' |
5e0d2ebf DS |
8456 | s/[$]LINENO.*/&-/ |
8457 | t lineno | |
8458 | b | |
8459 | :lineno | |
2f1a1aea | 8460 | N |
5e0d2ebf DS |
8461 | :loop |
8462 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
2f1a1aea | 8463 | t loop |
5e0d2ebf | 8464 | s/-\n.*// |
2f1a1aea | 8465 | ' >$as_me.lineno && |
5e0d2ebf | 8466 | chmod +x "$as_me.lineno" || |
daae650d | 8467 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
2f1a1aea FCE |
8468 | { (exit 1); exit 1; }; } |
8469 | ||
8470 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8471 | # (the dirname of $[0] is not the place where we might find the | |
5e0d2ebf DS |
8472 | # original and so on. Autoconf is especially sensitive to this). |
8473 | . "./$as_me.lineno" | |
2f1a1aea FCE |
8474 | # Exit status is that of the last command. |
8475 | exit | |
8476 | } | |
8477 | ||
8478 | ||
5e0d2ebf DS |
8479 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8480 | as_dirname=dirname | |
8481 | else | |
8482 | as_dirname=false | |
8483 | fi | |
8484 | ||
8485 | ECHO_C= ECHO_N= ECHO_T= | |
8486 | case `echo -n x` in | |
8487 | -n*) | |
8488 | case `echo 'x\c'` in | |
8489 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8490 | *) ECHO_C='\c';; | |
8491 | esac;; | |
8492 | *) | |
8493 | ECHO_N='-n';; | |
2f1a1aea | 8494 | esac |
5e0d2ebf DS |
8495 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8496 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
8497 | as_expr=expr |
8498 | else | |
8499 | as_expr=false | |
8500 | fi | |
8501 | ||
8502 | rm -f conf$$ conf$$.exe conf$$.file | |
5e0d2ebf DS |
8503 | if test -d conf$$.dir; then |
8504 | rm -f conf$$.dir/conf$$.file | |
8505 | else | |
8506 | rm -f conf$$.dir | |
daae650d MW |
8507 | mkdir conf$$.dir 2>/dev/null |
8508 | fi | |
8509 | if (echo >conf$$.file) 2>/dev/null; then | |
8510 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8511 | as_ln_s='ln -s' | |
8512 | # ... but there are two gotchas: | |
8513 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8514 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8515 | # In both cases, we have to default to `cp -p'. | |
8516 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8517 | as_ln_s='cp -p' | |
8518 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8519 | as_ln_s=ln | |
8520 | else | |
2f1a1aea | 8521 | as_ln_s='cp -p' |
daae650d | 8522 | fi |
2f1a1aea FCE |
8523 | else |
8524 | as_ln_s='cp -p' | |
8525 | fi | |
5e0d2ebf DS |
8526 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8527 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea FCE |
8528 | |
8529 | if mkdir -p . 2>/dev/null; then | |
8530 | as_mkdir_p=: | |
8531 | else | |
8532 | test -d ./-p && rmdir ./-p | |
8533 | as_mkdir_p=false | |
8534 | fi | |
8535 | ||
5e0d2ebf DS |
8536 | if test -x / >/dev/null 2>&1; then |
8537 | as_test_x='test -x' | |
8538 | else | |
8539 | if ls -dL / >/dev/null 2>&1; then | |
8540 | as_ls_L_option=L | |
8541 | else | |
8542 | as_ls_L_option= | |
8543 | fi | |
8544 | as_test_x=' | |
8545 | eval sh -c '\'' | |
8546 | if test -d "$1"; then | |
daae650d | 8547 | test -d "$1/."; |
5e0d2ebf DS |
8548 | else |
8549 | case $1 in | |
daae650d | 8550 | -*)set "./$1";; |
5e0d2ebf DS |
8551 | esac; |
8552 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
8553 | ???[sx]*):;;*)false;;esac;fi | |
8554 | '\'' sh | |
8555 | ' | |
8556 | fi | |
8557 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
8558 | |
8559 | # Sed expression to map a string onto a valid CPP name. | |
8560 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8561 | ||
8562 | # Sed expression to map a string onto a valid variable name. | |
8563 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8564 | ||
8565 | ||
2f1a1aea FCE |
8566 | exec 6>&1 |
8567 | ||
5e0d2ebf | 8568 | # Save the log message, to keep $[0] and so on meaningful, and to |
2f1a1aea | 8569 | # report actual input values of CONFIG_FILES etc. instead of their |
5e0d2ebf DS |
8570 | # values after options handling. |
8571 | ac_log=" | |
70f5a7b3 | 8572 | This file was extended by systemtap $as_me 0.8, which was |
daae650d | 8573 | generated by GNU Autoconf 2.63. Invocation command line was |
2f1a1aea FCE |
8574 | |
8575 | CONFIG_FILES = $CONFIG_FILES | |
8576 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8577 | CONFIG_LINKS = $CONFIG_LINKS | |
8578 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8579 | $ $0 $@ | |
8580 | ||
5e0d2ebf DS |
8581 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8582 | " | |
8583 | ||
2f1a1aea FCE |
8584 | _ACEOF |
8585 | ||
daae650d MW |
8586 | case $ac_config_files in *" |
8587 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8588 | esac | |
8589 | ||
8590 | case $ac_config_headers in *" | |
8591 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8592 | esac | |
8593 | ||
8594 | ||
8595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
2f1a1aea | 8596 | # Files that config.status was made for. |
5e0d2ebf DS |
8597 | config_files="$ac_config_files" |
8598 | config_headers="$ac_config_headers" | |
8599 | config_commands="$ac_config_commands" | |
8ae7a94a | 8600 | |
5e0d2ebf | 8601 | _ACEOF |
2f1a1aea | 8602 | |
daae650d | 8603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
8604 | ac_cs_usage="\ |
8605 | \`$as_me' instantiates files from templates according to the | |
8606 | current configuration. | |
8607 | ||
daae650d | 8608 | Usage: $0 [OPTION]... [FILE]... |
2f1a1aea FCE |
8609 | |
8610 | -h, --help print this help, then exit | |
5e0d2ebf | 8611 | -V, --version print version number and configuration settings, then exit |
daae650d MW |
8612 | -q, --quiet, --silent |
8613 | do not print progress messages | |
2f1a1aea FCE |
8614 | -d, --debug don't remove temporary files |
8615 | --recheck update $as_me by reconfiguring in the same conditions | |
daae650d MW |
8616 | --file=FILE[:TEMPLATE] |
8617 | instantiate the configuration file FILE | |
8618 | --header=FILE[:TEMPLATE] | |
8619 | instantiate the configuration header FILE | |
2f1a1aea FCE |
8620 | |
8621 | Configuration files: | |
8622 | $config_files | |
8623 | ||
8624 | Configuration headers: | |
8625 | $config_headers | |
8626 | ||
8627 | Configuration commands: | |
8628 | $config_commands | |
8629 | ||
8630 | Report bugs to <bug-autoconf@gnu.org>." | |
8ae7a94a | 8631 | |
5e0d2ebf | 8632 | _ACEOF |
daae650d | 8633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8634 | ac_cs_version="\\ |
70f5a7b3 | 8635 | systemtap config.status 0.8 |
daae650d MW |
8636 | configured by $0, generated by GNU Autoconf 2.63, |
8637 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
2f1a1aea | 8638 | |
daae650d | 8639 | Copyright (C) 2008 Free Software Foundation, Inc. |
2f1a1aea FCE |
8640 | This config.status script is free software; the Free Software Foundation |
8641 | gives unlimited permission to copy, distribute and modify it." | |
5e0d2ebf DS |
8642 | |
8643 | ac_pwd='$ac_pwd' | |
8644 | srcdir='$srcdir' | |
8645 | INSTALL='$INSTALL' | |
8646 | MKDIR_P='$MKDIR_P' | |
daae650d MW |
8647 | AWK='$AWK' |
8648 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
8649 | _ACEOF |
8650 | ||
daae650d MW |
8651 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8652 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
8653 | ac_need_defaults=: |
8654 | while test $# != 0 | |
8655 | do | |
8656 | case $1 in | |
8657 | --*=*) | |
5e0d2ebf DS |
8658 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8659 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
8660 | ac_shift=: |
8661 | ;; | |
5e0d2ebf | 8662 | *) |
2f1a1aea FCE |
8663 | ac_option=$1 |
8664 | ac_optarg=$2 | |
8665 | ac_shift=shift | |
8666 | ;; | |
2f1a1aea FCE |
8667 | esac |
8668 | ||
8669 | case $ac_option in | |
8670 | # Handling of the options. | |
2f1a1aea FCE |
8671 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8672 | ac_cs_recheck=: ;; | |
5e0d2ebf | 8673 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
daae650d | 8674 | $as_echo "$ac_cs_version"; exit ;; |
5e0d2ebf | 8675 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
8676 | debug=: ;; |
8677 | --file | --fil | --fi | --f ) | |
8678 | $ac_shift | |
daae650d MW |
8679 | case $ac_optarg in |
8680 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8681 | esac | |
8682 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
2f1a1aea FCE |
8683 | ac_need_defaults=false;; |
8684 | --header | --heade | --head | --hea ) | |
8685 | $ac_shift | |
daae650d MW |
8686 | case $ac_optarg in |
8687 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8688 | esac | |
8689 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
2f1a1aea | 8690 | ac_need_defaults=false;; |
5e0d2ebf DS |
8691 | --he | --h) |
8692 | # Conflict between --help and --header | |
daae650d | 8693 | { $as_echo "$as_me: error: ambiguous option: $1 |
5e0d2ebf DS |
8694 | Try \`$0 --help' for more information." >&2 |
8695 | { (exit 1); exit 1; }; };; | |
8696 | --help | --hel | -h ) | |
daae650d | 8697 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
8698 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8699 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8700 | ac_cs_silent=: ;; | |
8701 | ||
8702 | # This is an error. | |
daae650d | 8703 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
5e0d2ebf | 8704 | Try \`$0 --help' for more information." >&2 |
2f1a1aea FCE |
8705 | { (exit 1); exit 1; }; } ;; |
8706 | ||
5e0d2ebf DS |
8707 | *) ac_config_targets="$ac_config_targets $1" |
8708 | ac_need_defaults=false ;; | |
2f1a1aea FCE |
8709 | |
8710 | esac | |
8711 | shift | |
8712 | done | |
8713 | ||
8714 | ac_configure_extra_args= | |
8715 | ||
8716 | if $ac_cs_silent; then | |
8717 | exec 6>/dev/null | |
8718 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8719 | fi | |
8720 | ||
8721 | _ACEOF | |
daae650d | 8722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8723 | if \$ac_cs_recheck; then |
daae650d MW |
8724 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8725 | shift | |
8726 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8727 | CONFIG_SHELL='$SHELL' | |
5e0d2ebf | 8728 | export CONFIG_SHELL |
daae650d | 8729 | exec "\$@" |
2f1a1aea FCE |
8730 | fi |
8731 | ||
8732 | _ACEOF | |
daae650d | 8733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5e0d2ebf DS |
8734 | exec 5>>config.log |
8735 | { | |
8736 | echo | |
8737 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8738 | ## Running $as_me. ## | |
8739 | _ASBOX | |
daae650d | 8740 | $as_echo "$ac_log" |
5e0d2ebf | 8741 | } >&5 |
2f1a1aea | 8742 | |
5e0d2ebf | 8743 | _ACEOF |
daae650d | 8744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 8745 | # |
5e0d2ebf | 8746 | # INIT-COMMANDS |
2f1a1aea | 8747 | # |
2f1a1aea FCE |
8748 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8749 | ||
8750 | _ACEOF | |
8751 | ||
daae650d | 8752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5e0d2ebf DS |
8753 | |
8754 | # Handling of arguments. | |
2f1a1aea FCE |
8755 | for ac_config_target in $ac_config_targets |
8756 | do | |
5e0d2ebf DS |
8757 | case $ac_config_target in |
8758 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8759 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8760 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
465e8fbf | 8761 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
0cce60ac | 8762 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
5e0d2ebf DS |
8763 | "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;; |
8764 | "stapprobes.5") CONFIG_FILES="$CONFIG_FILES stapprobes.5" ;; | |
8765 | "stapfuncs.5") CONFIG_FILES="$CONFIG_FILES stapfuncs.5" ;; | |
d57671d3 | 8766 | "stapvars.5") CONFIG_FILES="$CONFIG_FILES stapvars.5" ;; |
5e0d2ebf DS |
8767 | "stapex.5") CONFIG_FILES="$CONFIG_FILES stapex.5" ;; |
8768 | "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;; | |
d1f2fc72 | 8769 | "stap-server.8") CONFIG_FILES="$CONFIG_FILES stap-server.8" ;; |
5e0d2ebf DS |
8770 | "man/stapprobes.iosched.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.5" ;; |
8771 | "man/stapprobes.netdev.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.5" ;; | |
8772 | "man/stapprobes.nfs.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.5" ;; | |
8773 | "man/stapprobes.nfsd.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.5" ;; | |
8774 | "man/stapprobes.pagefault.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.5" ;; | |
8775 | "man/stapprobes.process.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.process.5" ;; | |
8776 | "man/stapprobes.rpc.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.5" ;; | |
8777 | "man/stapprobes.scsi.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.5" ;; | |
8778 | "man/stapprobes.signal.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.5" ;; | |
8779 | "man/stapprobes.socket.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.5" ;; | |
8780 | "man/stapprobes.tcp.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.5" ;; | |
8781 | "man/stapprobes.udp.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.5" ;; | |
9a8d8be3 | 8782 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f62657c | 8783 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
5e0d2ebf | 8784 | |
daae650d MW |
8785 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
8786 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
2f1a1aea FCE |
8787 | { (exit 1); exit 1; }; };; |
8788 | esac | |
8789 | done | |
8790 | ||
5e0d2ebf | 8791 | |
2f1a1aea FCE |
8792 | # If the user did not use the arguments to specify the items to instantiate, |
8793 | # then the envvar interface is used. Set only those that are not. | |
8794 | # We use the long form for the default assignment because of an extremely | |
8795 | # bizarre bug on SunOS 4.1.3. | |
8796 | if $ac_need_defaults; then | |
8797 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8798 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8799 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8800 | fi | |
8801 | ||
8802 | # Have a temporary directory for convenience. Make it in the build tree | |
5e0d2ebf | 8803 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 8804 | # creating and moving files from /tmp can sometimes cause problems. |
5e0d2ebf DS |
8805 | # Hook for its removal unless debugging. |
8806 | # Note that there is a small window in which the directory will not be cleaned: | |
8807 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
8808 | $debug || |
8809 | { | |
5e0d2ebf DS |
8810 | tmp= |
8811 | trap 'exit_status=$? | |
8812 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8813 | ' 0 | |
2f1a1aea FCE |
8814 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
8815 | } | |
2f1a1aea FCE |
8816 | # Create a (secure) tmp directory for tmp files. |
8817 | ||
8818 | { | |
5e0d2ebf | 8819 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
2f1a1aea FCE |
8820 | test -n "$tmp" && test -d "$tmp" |
8821 | } || | |
8822 | { | |
5e0d2ebf DS |
8823 | tmp=./conf$$-$RANDOM |
8824 | (umask 077 && mkdir "$tmp") | |
2f1a1aea FCE |
8825 | } || |
8826 | { | |
daae650d | 8827 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
2f1a1aea FCE |
8828 | { (exit 1); exit 1; } |
8829 | } | |
8830 | ||
daae650d MW |
8831 | # Set up the scripts for CONFIG_FILES section. |
8832 | # No need to generate them if there are no CONFIG_FILES. | |
8833 | # This happens for instance with `./config.status config.h'. | |
5e0d2ebf DS |
8834 | if test -n "$CONFIG_FILES"; then |
8835 | ||
92aff3c7 | 8836 | |
daae650d MW |
8837 | ac_cr='\r' |
8838 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8839 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8840 | ac_cs_awk_cr='\\r' | |
8841 | else | |
8842 | ac_cs_awk_cr=$ac_cr | |
5e0d2ebf DS |
8843 | fi |
8844 | ||
daae650d | 8845 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
5e0d2ebf | 8846 | _ACEOF |
70d28673 | 8847 | |
5e0d2ebf | 8848 | |
daae650d MW |
8849 | { |
8850 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8851 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8852 | echo "_ACEOF" | |
8853 | } >conf$$subs.sh || | |
8854 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8855 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8856 | { (exit 1); exit 1; }; } | |
8857 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
5e0d2ebf DS |
8858 | ac_delim='%!_!# ' |
8859 | for ac_last_try in false false false false false :; do | |
daae650d MW |
8860 | . ./conf$$subs.sh || |
8861 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8862 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8863 | { (exit 1); exit 1; }; } | |
8864 | ||
8865 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8866 | if test $ac_delim_n = $ac_delim_num; then | |
5e0d2ebf DS |
8867 | break |
8868 | elif $ac_last_try; then | |
daae650d MW |
8869 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
8870 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
5e0d2ebf DS |
8871 | { (exit 1); exit 1; }; } |
8872 | else | |
8873 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8874 | fi | |
8875 | done | |
daae650d MW |
8876 | rm -f conf$$subs.sh |
8877 | ||
8878 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8879 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8880 | _ACEOF | |
8881 | sed -n ' | |
8882 | h | |
8883 | s/^/S["/; s/!.*/"]=/ | |
8884 | p | |
8885 | g | |
8886 | s/^[^!]*!// | |
8887 | :repl | |
8888 | t repl | |
8889 | s/'"$ac_delim"'$// | |
8890 | t delim | |
8891 | :nl | |
8892 | h | |
8893 | s/\(.\{148\}\).*/\1/ | |
8894 | t more1 | |
8895 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8896 | p | |
8897 | n | |
8898 | b repl | |
8899 | :more1 | |
8900 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8901 | p | |
8902 | g | |
8903 | s/.\{148\}// | |
8904 | t nl | |
8905 | :delim | |
8906 | h | |
8907 | s/\(.\{148\}\).*/\1/ | |
8908 | t more2 | |
8909 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8910 | p | |
8911 | b | |
8912 | :more2 | |
8913 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8914 | p | |
8915 | g | |
8916 | s/.\{148\}// | |
8917 | t delim | |
8918 | ' <conf$$subs.awk | sed ' | |
8919 | /^[^""]/{ | |
8920 | N | |
8921 | s/\n// | |
8922 | } | |
8923 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8924 | rm -f conf$$subs.awk | |
8925 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8926 | _ACAWK | |
8927 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8928 | for (key in S) S_is_set[key] = 1 | |
8929 | FS = "\a" | |
5e0d2ebf | 8930 | |
daae650d MW |
8931 | } |
8932 | { | |
8933 | line = $ 0 | |
8934 | nfields = split(line, field, "@") | |
8935 | substed = 0 | |
8936 | len = length(field[1]) | |
8937 | for (i = 2; i < nfields; i++) { | |
8938 | key = field[i] | |
8939 | keylen = length(key) | |
8940 | if (S_is_set[key]) { | |
8941 | value = S[key] | |
8942 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8943 | len += length(value) + length(field[++i]) | |
8944 | substed = 1 | |
8945 | } else | |
8946 | len += 1 + keylen | |
8947 | } | |
8948 | ||
8949 | print line | |
8950 | } | |
5e0d2ebf | 8951 | |
daae650d | 8952 | _ACAWK |
5e0d2ebf | 8953 | _ACEOF |
daae650d MW |
8954 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8955 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8956 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8957 | else | |
8958 | cat | |
8959 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8960 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
8961 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
8962 | { (exit 1); exit 1; }; } | |
5e0d2ebf DS |
8963 | _ACEOF |
8964 | ||
5e0d2ebf DS |
8965 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8966 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8967 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8968 | # (actually we leave an empty line to preserve line numbers). | |
8969 | if test "x$srcdir" = x.; then | |
8970 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8971 | s/:*\$(srcdir):*/:/ | |
8972 | s/:*\${srcdir}:*/:/ | |
8973 | s/:*@srcdir@:*/:/ | |
8974 | s/^\([^=]*=[ ]*\):*/\1/ | |
8975 | s/:*$// | |
8976 | s/^[^=]*=[ ]*$// | |
8977 | }' | |
8978 | fi | |
8979 | ||
daae650d | 8980 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5e0d2ebf DS |
8981 | fi # test -n "$CONFIG_FILES" |
8982 | ||
daae650d MW |
8983 | # Set up the scripts for CONFIG_HEADERS section. |
8984 | # No need to generate them if there are no CONFIG_HEADERS. | |
8985 | # This happens for instance with `./config.status Makefile'. | |
8986 | if test -n "$CONFIG_HEADERS"; then | |
8987 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8988 | BEGIN { | |
8989 | _ACEOF | |
8990 | ||
8991 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8992 | # here-document in config.status, that substitutes the proper values into | |
8993 | # config.h.in to produce config.h. | |
8994 | ||
8995 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8996 | # handling of long lines. | |
8997 | ac_delim='%!_!# ' | |
8998 | for ac_last_try in false false :; do | |
8999 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
9000 | if test -z "$ac_t"; then | |
9001 | break | |
9002 | elif $ac_last_try; then | |
9003 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
9004 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
9005 | { (exit 1); exit 1; }; } | |
9006 | else | |
9007 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9008 | fi | |
9009 | done | |
9010 | ||
9011 | # For the awk script, D is an array of macro values keyed by name, | |
9012 | # likewise P contains macro parameters if any. Preserve backslash | |
9013 | # newline sequences. | |
9014 | ||
9015 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
9016 | sed -n ' | |
9017 | s/.\{148\}/&'"$ac_delim"'/g | |
9018 | t rset | |
9019 | :rset | |
9020 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
9021 | t def | |
9022 | d | |
9023 | :def | |
9024 | s/\\$// | |
9025 | t bsnl | |
9026 | s/["\\]/\\&/g | |
9027 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9028 | D["\1"]=" \3"/p | |
9029 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
9030 | d | |
9031 | :bsnl | |
9032 | s/["\\]/\\&/g | |
9033 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9034 | D["\1"]=" \3\\\\\\n"\\/p | |
9035 | t cont | |
9036 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
9037 | t cont | |
9038 | d | |
9039 | :cont | |
9040 | n | |
9041 | s/.\{148\}/&'"$ac_delim"'/g | |
9042 | t clear | |
9043 | :clear | |
9044 | s/\\$// | |
9045 | t bsnlc | |
9046 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
9047 | d | |
9048 | :bsnlc | |
9049 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
9050 | b cont | |
9051 | ' <confdefs.h | sed ' | |
9052 | s/'"$ac_delim"'/"\\\ | |
9053 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
9054 | ||
9055 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9056 | for (key in D) D_is_set[key] = 1 | |
9057 | FS = "\a" | |
9058 | } | |
9059 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
9060 | line = \$ 0 | |
9061 | split(line, arg, " ") | |
9062 | if (arg[1] == "#") { | |
9063 | defundef = arg[2] | |
9064 | mac1 = arg[3] | |
9065 | } else { | |
9066 | defundef = substr(arg[1], 2) | |
9067 | mac1 = arg[2] | |
9068 | } | |
9069 | split(mac1, mac2, "(") #) | |
9070 | macro = mac2[1] | |
9071 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9072 | if (D_is_set[macro]) { | |
9073 | # Preserve the white space surrounding the "#". | |
9074 | print prefix "define", macro P[macro] D[macro] | |
9075 | next | |
9076 | } else { | |
9077 | # Replace #undef with comments. This is necessary, for example, | |
9078 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9079 | # on some systems where configure will not decide to define it. | |
9080 | if (defundef == "undef") { | |
9081 | print "/*", prefix defundef, macro, "*/" | |
9082 | next | |
9083 | } | |
9084 | } | |
9085 | } | |
9086 | { print } | |
9087 | _ACAWK | |
9088 | _ACEOF | |
9089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9090 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
9091 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
9092 | { (exit 1); exit 1; }; } | |
9093 | fi # test -n "$CONFIG_HEADERS" | |
19a0d4b6 | 9094 | |
daae650d MW |
9095 | |
9096 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
9097 | shift | |
9098 | for ac_tag | |
5e0d2ebf DS |
9099 | do |
9100 | case $ac_tag in | |
9101 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
9102 | esac | |
9103 | case $ac_mode$ac_tag in | |
9104 | :[FHL]*:*);; | |
daae650d MW |
9105 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
9106 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
5e0d2ebf DS |
9107 | { (exit 1); exit 1; }; };; |
9108 | :[FH]-) ac_tag=-:-;; | |
9109 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
9110 | esac | |
9111 | ac_save_IFS=$IFS | |
9112 | IFS=: | |
9113 | set x $ac_tag | |
9114 | IFS=$ac_save_IFS | |
9115 | shift | |
9116 | ac_file=$1 | |
9117 | shift | |
9118 | ||
9119 | case $ac_mode in | |
9120 | :L) ac_source=$1;; | |
9121 | :[FH]) | |
9122 | ac_file_inputs= | |
9123 | for ac_f | |
9124 | do | |
9125 | case $ac_f in | |
9126 | -) ac_f="$tmp/stdin";; | |
9127 | *) # Look for the file first in the build tree, then in the source tree | |
9128 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9129 | # because $ac_f cannot contain `:'. | |
9130 | test -f "$ac_f" || | |
9131 | case $ac_f in | |
9132 | [\\/$]*) false;; | |
9133 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9134 | esac || | |
daae650d MW |
9135 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
9136 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
5e0d2ebf DS |
9137 | { (exit 1); exit 1; }; };; |
9138 | esac | |
daae650d MW |
9139 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9140 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
5e0d2ebf DS |
9141 | done |
9142 | ||
9143 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9144 | # use $as_me), people would be surprised to read: | |
9145 | # /* config.h. Generated by config.status. */ | |
daae650d MW |
9146 | configure_input='Generated from '` |
9147 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9148 | `' by configure.' | |
5e0d2ebf DS |
9149 | if test x"$ac_file" != x-; then |
9150 | configure_input="$ac_file. $configure_input" | |
daae650d MW |
9151 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
9152 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5e0d2ebf | 9153 | fi |
daae650d MW |
9154 | # Neutralize special characters interpreted by sed in replacement strings. |
9155 | case $configure_input in #( | |
9156 | *\&* | *\|* | *\\* ) | |
9157 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9158 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9159 | *) ac_sed_conf_input=$configure_input;; | |
9160 | esac | |
5e0d2ebf DS |
9161 | |
9162 | case $ac_tag in | |
daae650d MW |
9163 | *:-:* | *:-) cat >"$tmp/stdin" \ |
9164 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9165 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9166 | { (exit 1); exit 1; }; } ;; | |
5e0d2ebf DS |
9167 | esac |
9168 | ;; | |
2f1a1aea FCE |
9169 | esac |
9170 | ||
5e0d2ebf | 9171 | ac_dir=`$as_dirname -- "$ac_file" || |
2f1a1aea FCE |
9172 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9173 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9174 | X"$ac_file" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9175 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9176 | $as_echo X"$ac_file" | |
5e0d2ebf DS |
9177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9178 | s//\1/ | |
9179 | q | |
9180 | } | |
9181 | /^X\(\/\/\)[^/].*/{ | |
9182 | s//\1/ | |
9183 | q | |
9184 | } | |
9185 | /^X\(\/\/\)$/{ | |
9186 | s//\1/ | |
9187 | q | |
9188 | } | |
9189 | /^X\(\/\).*/{ | |
9190 | s//\1/ | |
9191 | q | |
9192 | } | |
9193 | s/.*/./; q'` | |
9194 | { as_dir="$ac_dir" | |
9195 | case $as_dir in #( | |
9196 | -*) as_dir=./$as_dir;; | |
9197 | esac | |
9198 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9199 | as_dirs= |
5e0d2ebf DS |
9200 | while :; do |
9201 | case $as_dir in #( | |
daae650d | 9202 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5e0d2ebf DS |
9203 | *) as_qdir=$as_dir;; |
9204 | esac | |
9205 | as_dirs="'$as_qdir' $as_dirs" | |
9206 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9207 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9208 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9209 | X"$as_dir" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9210 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9211 | $as_echo X"$as_dir" | |
5e0d2ebf DS |
9212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9213 | s//\1/ | |
9214 | q | |
9215 | } | |
9216 | /^X\(\/\/\)[^/].*/{ | |
9217 | s//\1/ | |
9218 | q | |
9219 | } | |
9220 | /^X\(\/\/\)$/{ | |
9221 | s//\1/ | |
9222 | q | |
9223 | } | |
9224 | /^X\(\/\).*/{ | |
9225 | s//\1/ | |
9226 | q | |
9227 | } | |
9228 | s/.*/./; q'` | |
9229 | test -d "$as_dir" && break | |
2f1a1aea | 9230 | done |
5e0d2ebf | 9231 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
daae650d MW |
9232 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9233 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9234 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9235 | ac_builddir=. |
9236 | ||
5e0d2ebf DS |
9237 | case "$ac_dir" in |
9238 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9239 | *) | |
daae650d | 9240 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
5e0d2ebf | 9241 | # A ".." for each directory in $ac_dir_suffix. |
daae650d | 9242 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5e0d2ebf DS |
9243 | case $ac_top_builddir_sub in |
9244 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9245 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9246 | esac ;; | |
9247 | esac | |
9248 | ac_abs_top_builddir=$ac_pwd | |
9249 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9250 | # for backward compatibility: | |
9251 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
9252 | |
9253 | case $srcdir in | |
5e0d2ebf | 9254 | .) # We are building in place. |
2f1a1aea | 9255 | ac_srcdir=. |
5e0d2ebf DS |
9256 | ac_top_srcdir=$ac_top_builddir_sub |
9257 | ac_abs_top_srcdir=$ac_pwd ;; | |
9258 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 9259 | ac_srcdir=$srcdir$ac_dir_suffix; |
5e0d2ebf DS |
9260 | ac_top_srcdir=$srcdir |
9261 | ac_abs_top_srcdir=$srcdir ;; | |
9262 | *) # Relative name. | |
9263 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9264 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9265 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 9266 | esac |
5e0d2ebf | 9267 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 9268 | |
2f1a1aea | 9269 | |
5e0d2ebf DS |
9270 | case $ac_mode in |
9271 | :F) | |
9272 | # | |
9273 | # CONFIG_FILE | |
9274 | # | |
2f1a1aea FCE |
9275 | |
9276 | case $INSTALL in | |
9277 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5e0d2ebf | 9278 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
2f1a1aea | 9279 | esac |
5e0d2ebf DS |
9280 | ac_MKDIR_P=$MKDIR_P |
9281 | case $MKDIR_P in | |
9282 | [\\/$]* | ?:[\\/]* ) ;; | |
9283 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
9284 | esac | |
9285 | _ACEOF | |
70d28673 | 9286 | |
daae650d | 9287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5e0d2ebf DS |
9288 | # If the template does not know about datarootdir, expand it. |
9289 | # FIXME: This hack should be removed a few years after 2.60. | |
9290 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9291 | ||
daae650d MW |
9292 | ac_sed_dataroot=' |
9293 | /datarootdir/ { | |
5e0d2ebf DS |
9294 | p |
9295 | q | |
9296 | } | |
9297 | /@datadir@/p | |
9298 | /@docdir@/p | |
9299 | /@infodir@/p | |
9300 | /@localedir@/p | |
9301 | /@mandir@/p | |
daae650d MW |
9302 | ' |
9303 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5e0d2ebf DS |
9304 | *datarootdir*) ac_datarootdir_seen=yes;; |
9305 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
daae650d MW |
9306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9307 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5e0d2ebf | 9308 | _ACEOF |
daae650d | 9309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5e0d2ebf DS |
9310 | ac_datarootdir_hack=' |
9311 | s&@datadir@&$datadir&g | |
9312 | s&@docdir@&$docdir&g | |
9313 | s&@infodir@&$infodir&g | |
9314 | s&@localedir@&$localedir&g | |
9315 | s&@mandir@&$mandir&g | |
9316 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9317 | esac | |
70d28673 | 9318 | _ACEOF |
5e0d2ebf DS |
9319 | |
9320 | # Neutralize VPATH when `$srcdir' = `.'. | |
9321 | # Shell code in configure.ac might set extrasub. | |
9322 | # FIXME: do we really want to maintain this feature? | |
daae650d MW |
9323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9324 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
9325 | $extrasub |
9326 | _ACEOF | |
daae650d | 9327 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
9328 | :t |
9329 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
daae650d | 9330 | s|@configure_input@|$ac_sed_conf_input|;t t |
5e0d2ebf | 9331 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
daae650d | 9332 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
5e0d2ebf DS |
9333 | s&@srcdir@&$ac_srcdir&;t t |
9334 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9335 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9336 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9337 | s&@builddir@&$ac_builddir&;t t | |
9338 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9339 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9340 | s&@INSTALL@&$ac_INSTALL&;t t | |
9341 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
9342 | $ac_datarootdir_hack | |
daae650d MW |
9343 | " |
9344 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9345 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9346 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9347 | { (exit 1); exit 1; }; } | |
5e0d2ebf DS |
9348 | |
9349 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9350 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9351 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
daae650d | 9352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5e0d2ebf | 9353 | which seems to be undefined. Please make sure it is defined." >&5 |
daae650d | 9354 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5e0d2ebf DS |
9355 | which seems to be undefined. Please make sure it is defined." >&2;} |
9356 | ||
9357 | rm -f "$tmp/stdin" | |
2f1a1aea | 9358 | case $ac_file in |
daae650d MW |
9359 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9360 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9361 | esac \ | |
9362 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9363 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9364 | { (exit 1); exit 1; }; } | |
5e0d2ebf DS |
9365 | ;; |
9366 | :H) | |
9367 | # | |
9368 | # CONFIG_HEADER | |
9369 | # | |
2f1a1aea | 9370 | if test x"$ac_file" != x-; then |
daae650d MW |
9371 | { |
9372 | $as_echo "/* $configure_input */" \ | |
9373 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9374 | } >"$tmp/config.h" \ | |
9375 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9376 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9377 | { (exit 1); exit 1; }; } | |
9378 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9379 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9380 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
2f1a1aea | 9381 | else |
daae650d MW |
9382 | rm -f "$ac_file" |
9383 | mv "$tmp/config.h" "$ac_file" \ | |
9384 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9385 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9386 | { (exit 1); exit 1; }; } | |
2f1a1aea FCE |
9387 | fi |
9388 | else | |
daae650d MW |
9389 | $as_echo "/* $configure_input */" \ |
9390 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9391 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
9392 | $as_echo "$as_me: error: could not create -" >&2;} | |
9393 | { (exit 1); exit 1; }; } | |
2f1a1aea | 9394 | fi |
daae650d MW |
9395 | # Compute "$ac_file"'s index in $config_headers. |
9396 | _am_arg="$ac_file" | |
2f1a1aea FCE |
9397 | _am_stamp_count=1 |
9398 | for _am_header in $config_headers :; do | |
9399 | case $_am_header in | |
19a0d4b6 | 9400 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
9401 | break ;; |
9402 | * ) | |
9403 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9404 | esac | |
9405 | done | |
19a0d4b6 MW |
9406 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9407 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9408 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9409 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9410 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
daae650d | 9411 | $as_echo X"$_am_arg" | |
5e0d2ebf DS |
9412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9413 | s//\1/ | |
9414 | q | |
9415 | } | |
9416 | /^X\(\/\/\)[^/].*/{ | |
9417 | s//\1/ | |
9418 | q | |
9419 | } | |
9420 | /^X\(\/\/\)$/{ | |
9421 | s//\1/ | |
9422 | q | |
9423 | } | |
9424 | /^X\(\/\).*/{ | |
9425 | s//\1/ | |
9426 | q | |
9427 | } | |
9428 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9429 | ;; | |
8ae7a94a | 9430 | |
daae650d MW |
9431 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
9432 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
5e0d2ebf DS |
9433 | ;; |
9434 | esac | |
2f1a1aea FCE |
9435 | |
9436 | ||
5e0d2ebf DS |
9437 | case $ac_file$ac_mode in |
9438 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
2f1a1aea FCE |
9439 | # Strip MF so we end up with the name of the file. |
9440 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9441 | # Check whether this is an Automake generated Makefile or not. | |
9442 | # We used to match only the files named `Makefile.in', but | |
9443 | # some people rename them; so instead we look at the file content. | |
9444 | # Grep'ing the first line is not enough: some people post-process | |
9445 | # each Makefile.in and add a new line on top of each file to say so. | |
10b20266 FCE |
9446 | # Grep'ing the whole file is not good either: AIX grep has a line |
9447 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19a0d4b6 | 9448 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
5e0d2ebf | 9449 | dirpart=`$as_dirname -- "$mf" || |
2f1a1aea FCE |
9450 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9451 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9452 | X"$mf" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9453 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9454 | $as_echo X"$mf" | |
5e0d2ebf DS |
9455 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9456 | s//\1/ | |
9457 | q | |
9458 | } | |
9459 | /^X\(\/\/\)[^/].*/{ | |
9460 | s//\1/ | |
9461 | q | |
9462 | } | |
9463 | /^X\(\/\/\)$/{ | |
9464 | s//\1/ | |
9465 | q | |
9466 | } | |
9467 | /^X\(\/\).*/{ | |
9468 | s//\1/ | |
9469 | q | |
9470 | } | |
9471 | s/.*/./; q'` | |
2f1a1aea FCE |
9472 | else |
9473 | continue | |
9474 | fi | |
9475 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9476 | # from the Makefile without running `make'. | |
9477 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9478 | test -z "$DEPDIR" && continue | |
9479 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9480 | test -z "am__include" && continue | |
9481 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9482 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9483 | U=`sed -n 's/^U = //p' < "$mf"` | |
9484 | # Find all dependency output files, they are included files with | |
9485 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9486 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9487 | # expansion. | |
9488 | for file in `sed -n " | |
9489 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9490 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9491 | # Make sure the directory exists. | |
9492 | test -f "$dirpart/$file" && continue | |
5e0d2ebf | 9493 | fdir=`$as_dirname -- "$file" || |
2f1a1aea FCE |
9494 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9495 | X"$file" : 'X\(//\)[^/]' \| \ | |
9496 | X"$file" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9497 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9498 | $as_echo X"$file" | |
5e0d2ebf DS |
9499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9500 | s//\1/ | |
9501 | q | |
9502 | } | |
9503 | /^X\(\/\/\)[^/].*/{ | |
9504 | s//\1/ | |
9505 | q | |
9506 | } | |
9507 | /^X\(\/\/\)$/{ | |
9508 | s//\1/ | |
9509 | q | |
9510 | } | |
9511 | /^X\(\/\).*/{ | |
9512 | s//\1/ | |
9513 | q | |
9514 | } | |
9515 | s/.*/./; q'` | |
9516 | { as_dir=$dirpart/$fdir | |
9517 | case $as_dir in #( | |
9518 | -*) as_dir=./$as_dir;; | |
9519 | esac | |
9520 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
2f1a1aea | 9521 | as_dirs= |
5e0d2ebf DS |
9522 | while :; do |
9523 | case $as_dir in #( | |
daae650d | 9524 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5e0d2ebf DS |
9525 | *) as_qdir=$as_dir;; |
9526 | esac | |
9527 | as_dirs="'$as_qdir' $as_dirs" | |
9528 | as_dir=`$as_dirname -- "$as_dir" || | |
2f1a1aea FCE |
9529 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9530 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9531 | X"$as_dir" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9532 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9533 | $as_echo X"$as_dir" | |
5e0d2ebf DS |
9534 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9535 | s//\1/ | |
9536 | q | |
9537 | } | |
9538 | /^X\(\/\/\)[^/].*/{ | |
9539 | s//\1/ | |
9540 | q | |
9541 | } | |
9542 | /^X\(\/\/\)$/{ | |
9543 | s//\1/ | |
9544 | q | |
9545 | } | |
9546 | /^X\(\/\).*/{ | |
9547 | s//\1/ | |
9548 | q | |
9549 | } | |
9550 | s/.*/./; q'` | |
9551 | test -d "$as_dir" && break | |
2f1a1aea | 9552 | done |
5e0d2ebf | 9553 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
daae650d MW |
9554 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9555 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
2f1a1aea | 9556 | { (exit 1); exit 1; }; }; } |
2f1a1aea FCE |
9557 | # echo "creating $dirpart/$file" |
9558 | echo '# dummy' > "$dirpart/$file" | |
9559 | done | |
9560 | done | |
9561 | ;; | |
2f62657c | 9562 | "run-stap":F) chmod +x run-stap ;; |
5e0d2ebf | 9563 | |
2f1a1aea | 9564 | esac |
5e0d2ebf | 9565 | done # for ac_tag |
2f1a1aea | 9566 | |
2f1a1aea FCE |
9567 | |
9568 | { (exit 0); exit 0; } | |
9569 | _ACEOF | |
9570 | chmod +x $CONFIG_STATUS | |
9571 | ac_clean_files=$ac_clean_files_save | |
9572 | ||
daae650d MW |
9573 | test $ac_write_fail = 0 || |
9574 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
9575 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
9576 | { (exit 1); exit 1; }; } | |
9577 | ||
2f1a1aea FCE |
9578 | |
9579 | # configure is writing to config.log, and then calls config.status. | |
9580 | # config.status does its own redirection, appending to config.log. | |
9581 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9582 | # by configure, so config.status won't be able to write to it; its | |
9583 | # output is simply discarded. So we exec the FD to /dev/null, | |
9584 | # effectively closing config.log, so it can be properly (re)opened and | |
9585 | # appended to by config.status. When coming back to configure, we | |
9586 | # need to make the FD available again. | |
9587 | if test "$no_create" != yes; then | |
9588 | ac_cs_success=: | |
9589 | ac_config_status_args= | |
9590 | test "$silent" = yes && | |
9591 | ac_config_status_args="$ac_config_status_args --quiet" | |
9592 | exec 5>/dev/null | |
9593 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9594 | exec 5>>config.log | |
9595 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9596 | # would make configure fail if this is the last instruction. | |
9597 | $ac_cs_success || { (exit 1); exit 1; } | |
9598 | fi | |
9599 | ||
5ba96b90 FCE |
9600 | # |
9601 | # CONFIG_SUBDIRS section. | |
9602 | # | |
9603 | if test "$no_recursion" != yes; then | |
9604 | ||
daae650d MW |
9605 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
9606 | # so they do not pile up. | |
5ba96b90 FCE |
9607 | ac_sub_configure_args= |
9608 | ac_prev= | |
5e0d2ebf DS |
9609 | eval "set x $ac_configure_args" |
9610 | shift | |
9611 | for ac_arg | |
9612 | do | |
5ba96b90 FCE |
9613 | if test -n "$ac_prev"; then |
9614 | ac_prev= | |
9615 | continue | |
9616 | fi | |
9617 | case $ac_arg in | |
9618 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
9619 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
9620 | ac_prev=cache_file ;; | |
9621 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
9622 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
9623 | | --c=*) | |
9624 | ;; | |
9625 | --config-cache | -C) | |
9626 | ;; | |
9627 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
9628 | ac_prev=srcdir ;; | |
9629 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9630 | ;; | |
9631 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
9632 | ac_prev=prefix ;; | |
9633 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9634 | ;; | |
daae650d MW |
9635 | --disable-option-checking) |
9636 | ;; | |
5e0d2ebf DS |
9637 | *) |
9638 | case $ac_arg in | |
daae650d | 9639 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
5e0d2ebf DS |
9640 | esac |
9641 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
5ba96b90 FCE |
9642 | esac |
9643 | done | |
9644 | ||
9645 | # Always prepend --prefix to ensure using the same prefix | |
9646 | # in subdir configurations. | |
5e0d2ebf DS |
9647 | ac_arg="--prefix=$prefix" |
9648 | case $ac_arg in | |
daae650d | 9649 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
5e0d2ebf DS |
9650 | esac |
9651 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
9652 | ||
9653 | # Pass --silent | |
9654 | if test "$silent" = yes; then | |
9655 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
9656 | fi | |
5ba96b90 | 9657 | |
daae650d MW |
9658 | # Always prepend --disable-option-checking to silence warnings, since |
9659 | # different subdirs can have different --enable and --with options. | |
9660 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
9661 | ||
5ba96b90 FCE |
9662 | ac_popdir=`pwd` |
9663 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
9664 | ||
9665 | # Do not complain, so a configure script can configure whichever | |
9666 | # parts of a large source tree are present. | |
5e0d2ebf DS |
9667 | test -d "$srcdir/$ac_dir" || continue |
9668 | ||
9669 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
daae650d MW |
9670 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
9671 | $as_echo "$ac_msg" >&6 | |
5e0d2ebf DS |
9672 | { as_dir="$ac_dir" |
9673 | case $as_dir in #( | |
9674 | -*) as_dir=./$as_dir;; | |
9675 | esac | |
9676 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
5ba96b90 | 9677 | as_dirs= |
5e0d2ebf DS |
9678 | while :; do |
9679 | case $as_dir in #( | |
daae650d | 9680 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5e0d2ebf DS |
9681 | *) as_qdir=$as_dir;; |
9682 | esac | |
9683 | as_dirs="'$as_qdir' $as_dirs" | |
9684 | as_dir=`$as_dirname -- "$as_dir" || | |
5ba96b90 FCE |
9685 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9686 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9687 | X"$as_dir" : 'X\(//\)$' \| \ | |
5e0d2ebf | 9688 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
daae650d | 9689 | $as_echo X"$as_dir" | |
5e0d2ebf DS |
9690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9691 | s//\1/ | |
9692 | q | |
9693 | } | |
9694 | /^X\(\/\/\)[^/].*/{ | |
9695 | s//\1/ | |
9696 | q | |
9697 | } | |
9698 | /^X\(\/\/\)$/{ | |
9699 | s//\1/ | |
9700 | q | |
9701 | } | |
9702 | /^X\(\/\).*/{ | |
9703 | s//\1/ | |
9704 | q | |
9705 | } | |
9706 | s/.*/./; q'` | |
9707 | test -d "$as_dir" && break | |
5ba96b90 | 9708 | done |
5e0d2ebf | 9709 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
daae650d MW |
9710 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9711 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
5ba96b90 | 9712 | { (exit 1); exit 1; }; }; } |
5ba96b90 FCE |
9713 | ac_builddir=. |
9714 | ||
5e0d2ebf DS |
9715 | case "$ac_dir" in |
9716 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9717 | *) | |
daae650d | 9718 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
5e0d2ebf | 9719 | # A ".." for each directory in $ac_dir_suffix. |
daae650d | 9720 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5e0d2ebf DS |
9721 | case $ac_top_builddir_sub in |
9722 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9723 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9724 | esac ;; | |
9725 | esac | |
9726 | ac_abs_top_builddir=$ac_pwd | |
9727 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9728 | # for backward compatibility: | |
9729 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
9730 | |
9731 | case $srcdir in | |
5e0d2ebf | 9732 | .) # We are building in place. |
5ba96b90 | 9733 | ac_srcdir=. |
5e0d2ebf DS |
9734 | ac_top_srcdir=$ac_top_builddir_sub |
9735 | ac_abs_top_srcdir=$ac_pwd ;; | |
9736 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 9737 | ac_srcdir=$srcdir$ac_dir_suffix; |
5e0d2ebf DS |
9738 | ac_top_srcdir=$srcdir |
9739 | ac_abs_top_srcdir=$srcdir ;; | |
9740 | *) # Relative name. | |
9741 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9742 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9743 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 9744 | esac |
5e0d2ebf | 9745 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
9746 | |
9747 | ||
5e0d2ebf | 9748 | cd "$ac_dir" |
5ba96b90 FCE |
9749 | |
9750 | # Check for guested configure; otherwise get Cygnus style configure. | |
5e0d2ebf DS |
9751 | if test -f "$ac_srcdir/configure.gnu"; then |
9752 | ac_sub_configure=$ac_srcdir/configure.gnu | |
9753 | elif test -f "$ac_srcdir/configure"; then | |
9754 | ac_sub_configure=$ac_srcdir/configure | |
9755 | elif test -f "$ac_srcdir/configure.in"; then | |
9756 | # This should be Cygnus configure. | |
9757 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 9758 | else |
daae650d MW |
9759 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
9760 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
5ba96b90 FCE |
9761 | ac_sub_configure= |
9762 | fi | |
9763 | ||
9764 | # The recursion is here. | |
9765 | if test -n "$ac_sub_configure"; then | |
9766 | # Make the cache file name correct relative to the subdirectory. | |
9767 | case $cache_file in | |
9768 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
5e0d2ebf DS |
9769 | *) # Relative name. |
9770 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
9771 | esac |
9772 | ||
daae650d MW |
9773 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
9774 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5ba96b90 | 9775 | # The eval makes quoting arguments work. |
5e0d2ebf DS |
9776 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
9777 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
daae650d MW |
9778 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
9779 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
5ba96b90 FCE |
9780 | { (exit 1); exit 1; }; } |
9781 | fi | |
9782 | ||
5e0d2ebf | 9783 | cd "$ac_popdir" |
5ba96b90 FCE |
9784 | done |
9785 | fi | |
daae650d MW |
9786 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
9787 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9788 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9789 | fi | |
5ba96b90 | 9790 | |
4d9087fc | 9791 | |
af29024d | 9792 | if test "${prefix}" = "/usr/local"; then |
daae650d MW |
9793 | { $as_echo "$as_me:$LINENO: " >&5 |
9794 | $as_echo "$as_me: " >&6;} | |
9795 | { $as_echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 | |
9796 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} | |
9797 | { $as_echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 | |
9798 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} | |
9799 | { $as_echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 | |
9800 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} | |
9801 | { $as_echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 | |
9802 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} | |
9803 | { $as_echo "$as_me:$LINENO: is not supported." >&5 | |
9804 | $as_echo "$as_me: is not supported." >&6;} | |
af29024d | 9805 | fi |