]>
Commit | Line | Data |
---|---|---|
b3076f16 | 1 | #! /bin/sh |
1136f709 | 2 | # From configure.in Id: configure.in 2430 2009-01-26 06:02:53Z rubin . |
b3076f16 | 3 | # Guess values for system-dependent variables and create Makefiles. |
1136f709 | 4 | # Generated by GNU Autoconf 2.61 for X3 1.7. |
b3076f16 | 5 | # |
63c95a47 | 6 | # Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 7 | # |
a8b2ad8d | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b3076f16 | 10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
0bd0bef6 | 16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
b3076f16 | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | emulate sh | |
20 | NULLCMD=: | |
21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22 | # is contrary to our usage. Disable this feature. | |
23 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 24 | setopt NO_GLOB_SUBST |
25 | else | |
0bd0bef6 | 26 | case `(set -o) 2>/dev/null` in |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
b3076f16 | 30 | fi |
0bd0bef6 | 31 | |
32 | ||
b3076f16 | 33 | |
a8b2ad8d | 34 | |
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
43 | # The user is always right. | |
44 | if test "${PATH_SEPARATOR+set}" != set; then | |
45 | echo "#! /bin/sh" >conf$$.sh | |
46 | echo "exit 0" >>conf$$.sh | |
47 | chmod +x conf$$.sh | |
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49 | PATH_SEPARATOR=';' | |
50 | else | |
51 | PATH_SEPARATOR=: | |
52 | fi | |
53 | rm -f conf$$.sh | |
54 | fi | |
55 | ||
b3076f16 | 56 | # Support unset when possible. |
57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
58 | as_unset=unset | |
59 | else | |
60 | as_unset=false | |
61 | fi | |
62 | ||
63 | ||
a8b2ad8d | 64 | # IFS |
65 | # We need space, tab and new line, in precisely that order. Quoting is | |
66 | # there to prevent editors from complaining about space-tab. | |
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
68 | # splitting by setting IFS to empty value.) | |
69 | as_nl=' | |
70 | ' | |
71 | IFS=" "" $as_nl" | |
72 | ||
73 | # Find who we are. Look in the path if we contain no directory separator. | |
74 | case $0 in | |
75 | *[\\/]* ) as_myself=$0 ;; | |
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
77 | for as_dir in $PATH | |
78 | do | |
79 | IFS=$as_save_IFS | |
80 | test -z "$as_dir" && as_dir=. | |
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
82 | done | |
83 | IFS=$as_save_IFS | |
84 | ||
85 | ;; | |
86 | esac | |
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
88 | # in which case we are not to be found in the path. | |
89 | if test "x$as_myself" = x; then | |
90 | as_myself=$0 | |
91 | fi | |
92 | if test ! -f "$as_myself"; then | |
93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
94 | { (exit 1); exit 1; } | |
95 | fi | |
96 | ||
b3076f16 | 97 | # Work around bugs in pre-3.0 UWIN ksh. |
a8b2ad8d | 98 | for as_var in ENV MAIL MAILPATH |
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
100 | done | |
b3076f16 | 101 | PS1='$ ' |
102 | PS2='> ' | |
103 | PS4='+ ' | |
104 | ||
105 | # NLS nuisances. | |
106 | for as_var in \ | |
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
109 | LC_TELEPHONE LC_TIME | |
110 | do | |
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
112 | eval $as_var=C; export $as_var | |
113 | else | |
a8b2ad8d | 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b3076f16 | 115 | fi |
116 | done | |
117 | ||
118 | # Required to use basename. | |
a8b2ad8d | 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 121 | as_expr=expr |
122 | else | |
123 | as_expr=false | |
124 | fi | |
125 | ||
a8b2ad8d | 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 127 | as_basename=basename |
128 | else | |
129 | as_basename=false | |
130 | fi | |
131 | ||
132 | ||
133 | # Name of the executable. | |
a8b2ad8d | 134 | as_me=`$as_basename -- "$0" || |
b3076f16 | 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
136 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 138 | echo X/"$0" | |
a8b2ad8d | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
140 | s//\1/ | |
141 | q | |
142 | } | |
143 | /^X\/\(\/\/\)$/{ | |
144 | s//\1/ | |
145 | q | |
146 | } | |
147 | /^X\/\(\/\).*/{ | |
148 | s//\1/ | |
149 | q | |
150 | } | |
151 | s/.*/./; q'` | |
b3076f16 | 152 | |
a8b2ad8d | 153 | # CDPATH. |
154 | $as_unset CDPATH | |
b3076f16 | 155 | |
b3076f16 | 156 | |
a8b2ad8d | 157 | if test "x$CONFIG_SHELL" = x; then |
158 | if (eval ":") 2>/dev/null; then | |
159 | as_have_required=yes | |
160 | else | |
161 | as_have_required=no | |
b3076f16 | 162 | fi |
163 | ||
a8b2ad8d | 164 | if test $as_have_required = yes && (eval ": |
165 | (as_func_return () { | |
166 | (exit \$1) | |
167 | } | |
168 | as_func_success () { | |
169 | as_func_return 0 | |
170 | } | |
171 | as_func_failure () { | |
172 | as_func_return 1 | |
173 | } | |
174 | as_func_ret_success () { | |
175 | return 0 | |
176 | } | |
177 | as_func_ret_failure () { | |
178 | return 1 | |
179 | } | |
b3076f16 | 180 | |
a8b2ad8d | 181 | exitcode=0 |
182 | if as_func_success; then | |
183 | : | |
184 | else | |
185 | exitcode=1 | |
186 | echo as_func_success failed. | |
187 | fi | |
b3076f16 | 188 | |
a8b2ad8d | 189 | if as_func_failure; then |
190 | exitcode=1 | |
191 | echo as_func_failure succeeded. | |
192 | fi | |
193 | ||
194 | if as_func_ret_success; then | |
195 | : | |
196 | else | |
197 | exitcode=1 | |
198 | echo as_func_ret_success failed. | |
199 | fi | |
200 | ||
201 | if as_func_ret_failure; then | |
202 | exitcode=1 | |
203 | echo as_func_ret_failure succeeded. | |
204 | fi | |
205 | ||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
207 | : | |
208 | else | |
209 | exitcode=1 | |
210 | echo positional parameters were not saved. | |
211 | fi | |
212 | ||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
214 | ||
215 | ( | |
216 | as_lineno_1=\$LINENO | |
217 | as_lineno_2=\$LINENO | |
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
220 | ") 2> /dev/null; then | |
221 | : | |
222 | else | |
223 | as_candidate_shells= | |
b3076f16 | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
0bd0bef6 | 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
b3076f16 | 226 | do |
227 | IFS=$as_save_IFS | |
228 | test -z "$as_dir" && as_dir=. | |
a8b2ad8d | 229 | case $as_dir in |
b3076f16 | 230 | /*) |
a8b2ad8d | 231 | for as_base in sh bash ksh sh5; do |
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
233 | done;; | |
234 | esac | |
235 | done | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | for as_shell in $as_candidate_shells $SHELL; do | |
240 | # Try only shells that exist, to save several forks. | |
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
a8b2ad8d | 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
244 | emulate sh | |
245 | NULLCMD=: | |
246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
247 | # is contrary to our usage. Disable this feature. | |
248 | alias -g '${1+"$@"}'='"$@"' | |
249 | setopt NO_GLOB_SUBST | |
250 | else | |
0bd0bef6 | 251 | case `(set -o) 2>/dev/null` in |
252 | *posix*) set -o posix ;; | |
253 | esac | |
254 | ||
a8b2ad8d | 255 | fi |
0bd0bef6 | 256 | |
a8b2ad8d | 257 | |
258 | : | |
259 | _ASEOF | |
260 | }; then | |
261 | CONFIG_SHELL=$as_shell | |
262 | as_have_required=yes | |
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
a8b2ad8d | 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
265 | emulate sh | |
266 | NULLCMD=: | |
267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
268 | # is contrary to our usage. Disable this feature. | |
269 | alias -g '${1+"$@"}'='"$@"' | |
270 | setopt NO_GLOB_SUBST | |
271 | else | |
0bd0bef6 | 272 | case `(set -o) 2>/dev/null` in |
273 | *posix*) set -o posix ;; | |
274 | esac | |
275 | ||
a8b2ad8d | 276 | fi |
0bd0bef6 | 277 | |
a8b2ad8d | 278 | |
279 | : | |
280 | (as_func_return () { | |
281 | (exit $1) | |
282 | } | |
283 | as_func_success () { | |
284 | as_func_return 0 | |
285 | } | |
286 | as_func_failure () { | |
287 | as_func_return 1 | |
288 | } | |
289 | as_func_ret_success () { | |
290 | return 0 | |
291 | } | |
292 | as_func_ret_failure () { | |
293 | return 1 | |
294 | } | |
295 | ||
296 | exitcode=0 | |
297 | if as_func_success; then | |
298 | : | |
299 | else | |
300 | exitcode=1 | |
301 | echo as_func_success failed. | |
302 | fi | |
303 | ||
304 | if as_func_failure; then | |
305 | exitcode=1 | |
306 | echo as_func_failure succeeded. | |
307 | fi | |
308 | ||
309 | if as_func_ret_success; then | |
310 | : | |
311 | else | |
312 | exitcode=1 | |
313 | echo as_func_ret_success failed. | |
314 | fi | |
315 | ||
316 | if as_func_ret_failure; then | |
317 | exitcode=1 | |
318 | echo as_func_ret_failure succeeded. | |
319 | fi | |
320 | ||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
322 | : | |
323 | else | |
324 | exitcode=1 | |
325 | echo positional parameters were not saved. | |
326 | fi | |
327 | ||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | |
329 | ||
330 | ( | |
b3076f16 | 331 | as_lineno_1=$LINENO |
332 | as_lineno_2=$LINENO | |
b3076f16 | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a8b2ad8d | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
335 | ||
336 | _ASEOF | |
337 | }; then | |
338 | break | |
339 | fi | |
340 | ||
341 | fi | |
342 | ||
343 | done | |
344 | ||
345 | if test "x$CONFIG_SHELL" != x; then | |
346 | for as_var in BASH_ENV ENV | |
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
348 | done | |
349 | export CONFIG_SHELL | |
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
351 | fi | |
352 | ||
353 | ||
354 | if test $as_have_required = no; then | |
355 | echo This script requires a shell more modern than all the | |
356 | echo shells that I found on your system. Please install a | |
357 | echo modern shell, or manually run the script under such a | |
358 | echo shell if you do have one. | |
359 | { (exit 1); exit 1; } | |
360 | fi | |
361 | ||
362 | ||
363 | fi | |
364 | ||
365 | fi | |
366 | ||
367 | ||
368 | ||
369 | (eval "as_func_return () { | |
370 | (exit \$1) | |
371 | } | |
372 | as_func_success () { | |
373 | as_func_return 0 | |
374 | } | |
375 | as_func_failure () { | |
376 | as_func_return 1 | |
377 | } | |
378 | as_func_ret_success () { | |
379 | return 0 | |
380 | } | |
381 | as_func_ret_failure () { | |
382 | return 1 | |
383 | } | |
384 | ||
385 | exitcode=0 | |
386 | if as_func_success; then | |
387 | : | |
388 | else | |
389 | exitcode=1 | |
390 | echo as_func_success failed. | |
391 | fi | |
392 | ||
393 | if as_func_failure; then | |
394 | exitcode=1 | |
395 | echo as_func_failure succeeded. | |
396 | fi | |
397 | ||
398 | if as_func_ret_success; then | |
399 | : | |
400 | else | |
401 | exitcode=1 | |
402 | echo as_func_ret_success failed. | |
403 | fi | |
404 | ||
405 | if as_func_ret_failure; then | |
406 | exitcode=1 | |
407 | echo as_func_ret_failure succeeded. | |
408 | fi | |
409 | ||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
411 | : | |
412 | else | |
413 | exitcode=1 | |
414 | echo positional parameters were not saved. | |
415 | fi | |
416 | ||
417 | test \$exitcode = 0") || { | |
418 | echo No shell found that supports shell functions. | |
419 | echo Please tell autoconf@gnu.org about your system, | |
420 | echo including any error possibly output before this | |
421 | echo message | |
422 | } | |
423 | ||
424 | ||
425 | ||
426 | as_lineno_1=$LINENO | |
427 | as_lineno_2=$LINENO | |
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
b3076f16 | 430 | |
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
432 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a8b2ad8d | 433 | # line-number line after each line using $LINENO; the second 'sed' |
434 | # does the real work. The second script uses 'N' to pair each | |
435 | # line-number line with the line containing $LINENO, and appends | |
436 | # trailing '-' during substitution so that $LINENO is not a special | |
437 | # case at line end. | |
b3076f16 | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a8b2ad8d | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
441 | sed -n ' | |
442 | p | |
443 | /[$]LINENO/= | |
444 | ' <$as_myself | | |
b3076f16 | 445 | sed ' |
a8b2ad8d | 446 | s/[$]LINENO.*/&-/ |
447 | t lineno | |
448 | b | |
449 | :lineno | |
b3076f16 | 450 | N |
a8b2ad8d | 451 | :loop |
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b3076f16 | 453 | t loop |
a8b2ad8d | 454 | s/-\n.*// |
b3076f16 | 455 | ' >$as_me.lineno && |
a8b2ad8d | 456 | chmod +x "$as_me.lineno" || |
b3076f16 | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
458 | { (exit 1); exit 1; }; } | |
459 | ||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | |
461 | # (the dirname of $[0] is not the place where we might find the | |
a8b2ad8d | 462 | # original and so on. Autoconf is especially sensitive to this). |
463 | . "./$as_me.lineno" | |
b3076f16 | 464 | # Exit status is that of the last command. |
465 | exit | |
466 | } | |
467 | ||
468 | ||
a8b2ad8d | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
470 | as_dirname=dirname | |
471 | else | |
472 | as_dirname=false | |
473 | fi | |
474 | ||
475 | ECHO_C= ECHO_N= ECHO_T= | |
476 | case `echo -n x` in | |
477 | -n*) | |
478 | case `echo 'x\c'` in | |
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
480 | *) ECHO_C='\c';; | |
481 | esac;; | |
482 | *) | |
483 | ECHO_N='-n';; | |
b3076f16 | 484 | esac |
485 | ||
a8b2ad8d | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 488 | as_expr=expr |
489 | else | |
490 | as_expr=false | |
491 | fi | |
492 | ||
493 | rm -f conf$$ conf$$.exe conf$$.file | |
a8b2ad8d | 494 | if test -d conf$$.dir; then |
495 | rm -f conf$$.dir/conf$$.file | |
496 | else | |
497 | rm -f conf$$.dir | |
498 | mkdir conf$$.dir | |
499 | fi | |
b3076f16 | 500 | echo >conf$$.file |
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8b2ad8d | 502 | as_ln_s='ln -s' |
503 | # ... but there are two gotchas: | |
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
506 | # In both cases, we have to default to `cp -p'. | |
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b3076f16 | 508 | as_ln_s='cp -p' |
b3076f16 | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
510 | as_ln_s=ln | |
511 | else | |
512 | as_ln_s='cp -p' | |
513 | fi | |
a8b2ad8d | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
515 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 516 | |
517 | if mkdir -p . 2>/dev/null; then | |
518 | as_mkdir_p=: | |
519 | else | |
520 | test -d ./-p && rmdir ./-p | |
521 | as_mkdir_p=false | |
522 | fi | |
523 | ||
0bd0bef6 | 524 | if test -x / >/dev/null 2>&1; then |
525 | as_test_x='test -x' | |
a8b2ad8d | 526 | else |
0bd0bef6 | 527 | if ls -dL / >/dev/null 2>&1; then |
528 | as_ls_L_option=L | |
529 | else | |
530 | as_ls_L_option= | |
531 | fi | |
532 | as_test_x=' | |
533 | eval sh -c '\'' | |
534 | if test -d "$1"; then | |
535 | test -d "$1/."; | |
536 | else | |
537 | case $1 in | |
538 | -*)set "./$1";; | |
539 | esac; | |
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
541 | ???[sx]*):;;*)false;;esac;fi | |
542 | '\'' sh | |
543 | ' | |
a8b2ad8d | 544 | fi |
0bd0bef6 | 545 | as_executable_p=$as_test_x |
b3076f16 | 546 | |
547 | # Sed expression to map a string onto a valid CPP name. | |
548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | # Sed expression to map a string onto a valid variable name. | |
551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | ||
b3076f16 | 554 | |
a8b2ad8d | 555 | exec 7<&0 </dev/null 6>&1 |
b3076f16 | 556 | |
557 | # Name of the host. | |
558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
559 | # so uname gets run too. | |
560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
561 | ||
b3076f16 | 562 | # |
563 | # Initializations. | |
564 | # | |
565 | ac_default_prefix=/usr/local | |
a8b2ad8d | 566 | ac_clean_files= |
b3076f16 | 567 | ac_config_libobj_dir=. |
a8b2ad8d | 568 | LIBOBJS= |
b3076f16 | 569 | cross_compiling=no |
570 | subdirs= | |
571 | MFLAGS= | |
572 | MAKEFLAGS= | |
573 | SHELL=${CONFIG_SHELL-/bin/sh} | |
574 | ||
b3076f16 | 575 | # Identity of this package. |
ceafd592 | 576 | PACKAGE_NAME='X3' |
577 | PACKAGE_TARNAME='x3' | |
1136f709 | 578 | PACKAGE_VERSION='1.7' |
579 | PACKAGE_STRING='X3 1.7' | |
63c95a47 | 580 | PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net' |
b3076f16 | 581 | |
582 | ac_unique_file="src/opserv.c" | |
583 | # Factoring default headers for most tests. | |
584 | ac_includes_default="\ | |
585 | #include <stdio.h> | |
0bd0bef6 | 586 | #ifdef HAVE_SYS_TYPES_H |
b3076f16 | 587 | # include <sys/types.h> |
588 | #endif | |
0bd0bef6 | 589 | #ifdef HAVE_SYS_STAT_H |
b3076f16 | 590 | # include <sys/stat.h> |
591 | #endif | |
0bd0bef6 | 592 | #ifdef STDC_HEADERS |
b3076f16 | 593 | # include <stdlib.h> |
594 | # include <stddef.h> | |
595 | #else | |
0bd0bef6 | 596 | # ifdef HAVE_STDLIB_H |
b3076f16 | 597 | # include <stdlib.h> |
598 | # endif | |
599 | #endif | |
0bd0bef6 | 600 | #ifdef HAVE_STRING_H |
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b3076f16 | 602 | # include <memory.h> |
603 | # endif | |
604 | # include <string.h> | |
605 | #endif | |
0bd0bef6 | 606 | #ifdef HAVE_STRINGS_H |
b3076f16 | 607 | # include <strings.h> |
608 | #endif | |
0bd0bef6 | 609 | #ifdef HAVE_INTTYPES_H |
b3076f16 | 610 | # include <inttypes.h> |
a8b2ad8d | 611 | #endif |
0bd0bef6 | 612 | #ifdef HAVE_STDINT_H |
a8b2ad8d | 613 | # include <stdint.h> |
b3076f16 | 614 | #endif |
0bd0bef6 | 615 | #ifdef HAVE_UNISTD_H |
b3076f16 | 616 | # include <unistd.h> |
617 | #endif" | |
618 | ||
a8b2ad8d | 619 | ac_subst_vars='SHELL |
620 | PATH_SEPARATOR | |
621 | PACKAGE_NAME | |
622 | PACKAGE_TARNAME | |
623 | PACKAGE_VERSION | |
624 | PACKAGE_STRING | |
625 | PACKAGE_BUGREPORT | |
626 | exec_prefix | |
627 | prefix | |
628 | program_transform_name | |
629 | bindir | |
630 | sbindir | |
631 | libexecdir | |
632 | datarootdir | |
633 | datadir | |
634 | sysconfdir | |
635 | sharedstatedir | |
636 | localstatedir | |
637 | includedir | |
638 | oldincludedir | |
639 | docdir | |
640 | infodir | |
641 | htmldir | |
642 | dvidir | |
643 | pdfdir | |
644 | psdir | |
645 | libdir | |
646 | localedir | |
647 | mandir | |
648 | DEFS | |
649 | ECHO_C | |
650 | ECHO_N | |
651 | ECHO_T | |
652 | LIBS | |
653 | build_alias | |
654 | host_alias | |
655 | target_alias | |
656 | build | |
657 | build_cpu | |
658 | build_vendor | |
659 | build_os | |
660 | host | |
661 | host_cpu | |
662 | host_vendor | |
663 | host_os | |
664 | target | |
665 | target_cpu | |
666 | target_vendor | |
667 | target_os | |
668 | INSTALL_PROGRAM | |
669 | INSTALL_SCRIPT | |
670 | INSTALL_DATA | |
2f65da8f | 671 | am__isrc |
a8b2ad8d | 672 | CYGPATH_W |
673 | PACKAGE | |
674 | VERSION | |
675 | ACLOCAL | |
676 | AUTOCONF | |
677 | AUTOMAKE | |
678 | AUTOHEADER | |
679 | MAKEINFO | |
680 | install_sh | |
681 | STRIP | |
682 | INSTALL_STRIP_PROGRAM | |
683 | mkdir_p | |
684 | AWK | |
685 | SET_MAKE | |
686 | am__leading_dot | |
687 | AMTAR | |
688 | am__tar | |
689 | am__untar | |
690 | MAINTAINER_MODE_TRUE | |
691 | MAINTAINER_MODE_FALSE | |
692 | MAINT | |
693 | CC | |
694 | CFLAGS | |
695 | LDFLAGS | |
696 | CPPFLAGS | |
697 | ac_ct_CC | |
698 | EXEEXT | |
699 | OBJEXT | |
700 | DEPDIR | |
701 | am__include | |
702 | am__quote | |
703 | AMDEP_TRUE | |
704 | AMDEP_FALSE | |
705 | AMDEPBACKSLASH | |
706 | CCDEPMODE | |
707 | am__fastdepCC_TRUE | |
708 | am__fastdepCC_FALSE | |
07559983 | 709 | CP |
a8b2ad8d | 710 | RANLIB |
ff3b058a | 711 | LN_S |
ff3b058a | 712 | CPP |
0f6fe38c | 713 | GREP |
714 | EGREP | |
a8b2ad8d | 715 | MAKER |
716 | ALLOCA | |
2f65da8f | 717 | pythonpath |
718 | DO_PYTHON_TRUE | |
719 | DO_PYTHON_FALSE | |
a8b2ad8d | 720 | MODULE_OBJS |
721 | MY_SUBDIRS | |
722 | RX_INCLUDES | |
723 | RX_LIBS | |
724 | TRACK | |
2f65da8f | 725 | PY_CFLAGS |
726 | PY_LIBS | |
a8b2ad8d | 727 | LIBOBJS |
728 | LTLIBOBJS' | |
b3076f16 | 729 | ac_subst_files='' |
a8b2ad8d | 730 | ac_precious_vars='build_alias |
731 | host_alias | |
732 | target_alias | |
733 | CC | |
734 | CFLAGS | |
735 | LDFLAGS | |
0bd0bef6 | 736 | LIBS |
a8b2ad8d | 737 | CPPFLAGS |
0f6fe38c | 738 | CPP' |
a8b2ad8d | 739 | |
b3076f16 | 740 | |
741 | # Initialize some variables set by options. | |
742 | ac_init_help= | |
743 | ac_init_version=false | |
744 | # The variables have the same names as the options, with | |
745 | # dashes changed to underlines. | |
746 | cache_file=/dev/null | |
747 | exec_prefix=NONE | |
748 | no_create= | |
749 | no_recursion= | |
750 | prefix=NONE | |
751 | program_prefix=NONE | |
752 | program_suffix=NONE | |
753 | program_transform_name=s,x,x, | |
754 | silent= | |
755 | site= | |
756 | srcdir= | |
757 | verbose= | |
758 | x_includes=NONE | |
759 | x_libraries=NONE | |
760 | ||
761 | # Installation directory options. | |
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
763 | # and all the variables that are supposed to be based on exec_prefix | |
764 | # by default will actually change. | |
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
a8b2ad8d | 766 | # (The list follows the same order as the GNU Coding Standards.) |
b3076f16 | 767 | bindir='${exec_prefix}/bin' |
768 | sbindir='${exec_prefix}/sbin' | |
769 | libexecdir='${exec_prefix}/libexec' | |
a8b2ad8d | 770 | datarootdir='${prefix}/share' |
771 | datadir='${datarootdir}' | |
b3076f16 | 772 | sysconfdir='${prefix}/etc' |
773 | sharedstatedir='${prefix}/com' | |
774 | localstatedir='${prefix}/var' | |
b3076f16 | 775 | includedir='${prefix}/include' |
776 | oldincludedir='/usr/include' | |
a8b2ad8d | 777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
778 | infodir='${datarootdir}/info' | |
779 | htmldir='${docdir}' | |
780 | dvidir='${docdir}' | |
781 | pdfdir='${docdir}' | |
782 | psdir='${docdir}' | |
783 | libdir='${exec_prefix}/lib' | |
784 | localedir='${datarootdir}/locale' | |
785 | mandir='${datarootdir}/man' | |
b3076f16 | 786 | |
787 | ac_prev= | |
a8b2ad8d | 788 | ac_dashdash= |
b3076f16 | 789 | for ac_option |
790 | do | |
791 | # If the previous option needs an argument, assign it. | |
792 | if test -n "$ac_prev"; then | |
a8b2ad8d | 793 | eval $ac_prev=\$ac_option |
b3076f16 | 794 | ac_prev= |
795 | continue | |
796 | fi | |
797 | ||
a8b2ad8d | 798 | case $ac_option in |
799 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
800 | *) ac_optarg=yes ;; | |
801 | esac | |
b3076f16 | 802 | |
803 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
804 | ||
a8b2ad8d | 805 | case $ac_dashdash$ac_option in |
806 | --) | |
807 | ac_dashdash=yes ;; | |
b3076f16 | 808 | |
809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
810 | ac_prev=bindir ;; | |
811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
812 | bindir=$ac_optarg ;; | |
813 | ||
814 | -build | --build | --buil | --bui | --bu) | |
815 | ac_prev=build_alias ;; | |
816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
817 | build_alias=$ac_optarg ;; | |
818 | ||
819 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
820 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
821 | ac_prev=cache_file ;; | |
822 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
823 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
824 | cache_file=$ac_optarg ;; | |
825 | ||
826 | --config-cache | -C) | |
827 | cache_file=config.cache ;; | |
828 | ||
a8b2ad8d | 829 | -datadir | --datadir | --datadi | --datad) |
b3076f16 | 830 | ac_prev=datadir ;; |
a8b2ad8d | 831 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b3076f16 | 832 | datadir=$ac_optarg ;; |
833 | ||
a8b2ad8d | 834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
835 | | --dataroo | --dataro | --datar) | |
836 | ac_prev=datarootdir ;; | |
837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
839 | datarootdir=$ac_optarg ;; | |
840 | ||
b3076f16 | 841 | -disable-* | --disable-*) |
842 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
843 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 844 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 845 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
846 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 847 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
a8b2ad8d | 848 | eval enable_$ac_feature=no ;; |
849 | ||
850 | -docdir | --docdir | --docdi | --doc | --do) | |
851 | ac_prev=docdir ;; | |
852 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
853 | docdir=$ac_optarg ;; | |
854 | ||
855 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
856 | ac_prev=dvidir ;; | |
857 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
858 | dvidir=$ac_optarg ;; | |
b3076f16 | 859 | |
860 | -enable-* | --enable-*) | |
861 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
862 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 863 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 864 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
865 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 866 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
a8b2ad8d | 867 | eval enable_$ac_feature=\$ac_optarg ;; |
b3076f16 | 868 | |
869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
871 | | --exec | --exe | --ex) | |
872 | ac_prev=exec_prefix ;; | |
873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
875 | | --exec=* | --exe=* | --ex=*) | |
876 | exec_prefix=$ac_optarg ;; | |
877 | ||
878 | -gas | --gas | --ga | --g) | |
879 | # Obsolete; use --with-gas. | |
880 | with_gas=yes ;; | |
881 | ||
882 | -help | --help | --hel | --he | -h) | |
883 | ac_init_help=long ;; | |
884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
885 | ac_init_help=recursive ;; | |
886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
887 | ac_init_help=short ;; | |
888 | ||
889 | -host | --host | --hos | --ho) | |
890 | ac_prev=host_alias ;; | |
891 | -host=* | --host=* | --hos=* | --ho=*) | |
892 | host_alias=$ac_optarg ;; | |
893 | ||
a8b2ad8d | 894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
895 | ac_prev=htmldir ;; | |
896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
897 | | --ht=*) | |
898 | htmldir=$ac_optarg ;; | |
899 | ||
b3076f16 | 900 | -includedir | --includedir | --includedi | --included | --include \ |
901 | | --includ | --inclu | --incl | --inc) | |
902 | ac_prev=includedir ;; | |
903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
904 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
905 | includedir=$ac_optarg ;; | |
906 | ||
907 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
908 | ac_prev=infodir ;; | |
909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
910 | infodir=$ac_optarg ;; | |
911 | ||
912 | -libdir | --libdir | --libdi | --libd) | |
913 | ac_prev=libdir ;; | |
914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
915 | libdir=$ac_optarg ;; | |
916 | ||
917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
918 | | --libexe | --libex | --libe) | |
919 | ac_prev=libexecdir ;; | |
920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
921 | | --libexe=* | --libex=* | --libe=*) | |
922 | libexecdir=$ac_optarg ;; | |
923 | ||
a8b2ad8d | 924 | -localedir | --localedir | --localedi | --localed | --locale) |
925 | ac_prev=localedir ;; | |
926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
927 | localedir=$ac_optarg ;; | |
928 | ||
b3076f16 | 929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
a8b2ad8d | 930 | | --localstate | --localstat | --localsta | --localst | --locals) |
b3076f16 | 931 | ac_prev=localstatedir ;; |
932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
a8b2ad8d | 933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b3076f16 | 934 | localstatedir=$ac_optarg ;; |
935 | ||
936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
937 | ac_prev=mandir ;; | |
938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
939 | mandir=$ac_optarg ;; | |
940 | ||
941 | -nfp | --nfp | --nf) | |
942 | # Obsolete; use --without-fp. | |
943 | with_fp=no ;; | |
944 | ||
945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
946 | | --no-cr | --no-c | -n) | |
947 | no_create=yes ;; | |
948 | ||
949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
951 | no_recursion=yes ;; | |
952 | ||
953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
955 | | --oldin | --oldi | --old | --ol | --o) | |
956 | ac_prev=oldincludedir ;; | |
957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
960 | oldincludedir=$ac_optarg ;; | |
961 | ||
962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
963 | ac_prev=prefix ;; | |
964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
965 | prefix=$ac_optarg ;; | |
966 | ||
967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
968 | | --program-pre | --program-pr | --program-p) | |
969 | ac_prev=program_prefix ;; | |
970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
972 | program_prefix=$ac_optarg ;; | |
973 | ||
974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
975 | | --program-suf | --program-su | --program-s) | |
976 | ac_prev=program_suffix ;; | |
977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
979 | program_suffix=$ac_optarg ;; | |
980 | ||
981 | -program-transform-name | --program-transform-name \ | |
982 | | --program-transform-nam | --program-transform-na \ | |
983 | | --program-transform-n | --program-transform- \ | |
984 | | --program-transform | --program-transfor \ | |
985 | | --program-transfo | --program-transf \ | |
986 | | --program-trans | --program-tran \ | |
987 | | --progr-tra | --program-tr | --program-t) | |
988 | ac_prev=program_transform_name ;; | |
989 | -program-transform-name=* | --program-transform-name=* \ | |
990 | | --program-transform-nam=* | --program-transform-na=* \ | |
991 | | --program-transform-n=* | --program-transform-=* \ | |
992 | | --program-transform=* | --program-transfor=* \ | |
993 | | --program-transfo=* | --program-transf=* \ | |
994 | | --program-trans=* | --program-tran=* \ | |
995 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
996 | program_transform_name=$ac_optarg ;; | |
997 | ||
a8b2ad8d | 998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
999 | ac_prev=pdfdir ;; | |
1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1001 | pdfdir=$ac_optarg ;; | |
1002 | ||
1003 | -psdir | --psdir | --psdi | --psd | --ps) | |
1004 | ac_prev=psdir ;; | |
1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1006 | psdir=$ac_optarg ;; | |
1007 | ||
b3076f16 | 1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1009 | | -silent | --silent | --silen | --sile | --sil) | |
1010 | silent=yes ;; | |
1011 | ||
1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1013 | ac_prev=sbindir ;; | |
1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1015 | | --sbi=* | --sb=*) | |
1016 | sbindir=$ac_optarg ;; | |
1017 | ||
1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1020 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1021 | | --sha | --sh) | |
1022 | ac_prev=sharedstatedir ;; | |
1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1026 | | --sha=* | --sh=*) | |
1027 | sharedstatedir=$ac_optarg ;; | |
1028 | ||
1029 | -site | --site | --sit) | |
1030 | ac_prev=site ;; | |
1031 | -site=* | --site=* | --sit=*) | |
1032 | site=$ac_optarg ;; | |
1033 | ||
1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1035 | ac_prev=srcdir ;; | |
1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1037 | srcdir=$ac_optarg ;; | |
1038 | ||
1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1040 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1041 | ac_prev=sysconfdir ;; | |
1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1044 | sysconfdir=$ac_optarg ;; | |
1045 | ||
1046 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1047 | ac_prev=target_alias ;; | |
1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1049 | target_alias=$ac_optarg ;; | |
1050 | ||
1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1052 | verbose=yes ;; | |
1053 | ||
1054 | -version | --version | --versio | --versi | --vers | -V) | |
1055 | ac_init_version=: ;; | |
1056 | ||
1057 | -with-* | --with-*) | |
1058 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1059 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 1060 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1062 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 1063 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
a8b2ad8d | 1064 | eval with_$ac_package=\$ac_optarg ;; |
b3076f16 | 1065 | |
1066 | -without-* | --without-*) | |
1067 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1068 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1071 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
a8b2ad8d | 1073 | eval with_$ac_package=no ;; |
b3076f16 | 1074 | |
1075 | --x) | |
1076 | # Obsolete; use --with-x. | |
1077 | with_x=yes ;; | |
1078 | ||
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1080 | | --x-incl | --x-inc | --x-in | --x-i) | |
1081 | ac_prev=x_includes ;; | |
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1084 | x_includes=$ac_optarg ;; | |
1085 | ||
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1088 | ac_prev=x_libraries ;; | |
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1091 | x_libraries=$ac_optarg ;; | |
1092 | ||
1093 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1094 | Try \`$0 --help' for more information." >&2 | |
1095 | { (exit 1); exit 1; }; } | |
1096 | ;; | |
1097 | ||
1098 | *=*) | |
1099 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1100 | # Reject names that are not valid shell variable names. | |
1101 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1102 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1103 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1104 | eval $ac_envvar=\$ac_optarg |
b3076f16 | 1105 | export $ac_envvar ;; |
1106 | ||
1107 | *) | |
1108 | # FIXME: should be removed in autoconf 3.0. | |
1109 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1111 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1113 | ;; | |
1114 | ||
1115 | esac | |
1116 | done | |
1117 | ||
1118 | if test -n "$ac_prev"; then | |
1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1120 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1121 | { (exit 1); exit 1; }; } | |
1122 | fi | |
1123 | ||
a8b2ad8d | 1124 | # Be sure to have absolute directory names. |
1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1126 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1128 | libdir localedir mandir | |
b3076f16 | 1129 | do |
a8b2ad8d | 1130 | eval ac_val=\$$ac_var |
b3076f16 | 1131 | case $ac_val in |
a8b2ad8d | 1132 | [\\/$]* | ?:[\\/]* ) continue;; |
1133 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b3076f16 | 1134 | esac |
a8b2ad8d | 1135 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1136 | { (exit 1); exit 1; }; } | |
b3076f16 | 1137 | done |
1138 | ||
1139 | # There might be people who depend on the old broken behavior: `$host' | |
1140 | # used to hold the argument of --host etc. | |
1141 | # FIXME: To remove some day. | |
1142 | build=$build_alias | |
1143 | host=$host_alias | |
1144 | target=$target_alias | |
1145 | ||
1146 | # FIXME: To remove some day. | |
1147 | if test "x$host_alias" != x; then | |
1148 | if test "x$build_alias" = x; then | |
1149 | cross_compiling=maybe | |
1150 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1151 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1152 | elif test "x$build_alias" != "x$host_alias"; then | |
1153 | cross_compiling=yes | |
1154 | fi | |
1155 | fi | |
1156 | ||
1157 | ac_tool_prefix= | |
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1159 | ||
1160 | test "$silent" = yes && exec 6>/dev/null | |
1161 | ||
1162 | ||
a8b2ad8d | 1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1164 | ac_ls_di=`ls -di .` && | |
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1166 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1167 | { (exit 1); exit 1; }; } | |
1168 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1169 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1170 | { (exit 1); exit 1; }; } | |
1171 | ||
1172 | ||
b3076f16 | 1173 | # Find the source files, if location was not specified. |
1174 | if test -z "$srcdir"; then | |
1175 | ac_srcdir_defaulted=yes | |
a8b2ad8d | 1176 | # Try the directory containing this script, then the parent directory. |
1177 | ac_confdir=`$as_dirname -- "$0" || | |
b3076f16 | 1178 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1179 | X"$0" : 'X\(//\)[^/]' \| \ | |
1180 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 1181 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 1182 | echo X"$0" | |
a8b2ad8d | 1183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1184 | s//\1/ | |
1185 | q | |
1186 | } | |
1187 | /^X\(\/\/\)[^/].*/{ | |
1188 | s//\1/ | |
1189 | q | |
1190 | } | |
1191 | /^X\(\/\/\)$/{ | |
1192 | s//\1/ | |
1193 | q | |
1194 | } | |
1195 | /^X\(\/\).*/{ | |
1196 | s//\1/ | |
1197 | q | |
1198 | } | |
1199 | s/.*/./; q'` | |
b3076f16 | 1200 | srcdir=$ac_confdir |
a8b2ad8d | 1201 | if test ! -r "$srcdir/$ac_unique_file"; then |
b3076f16 | 1202 | srcdir=.. |
1203 | fi | |
1204 | else | |
1205 | ac_srcdir_defaulted=no | |
1206 | fi | |
a8b2ad8d | 1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
1208 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1209 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
b3076f16 | 1210 | { (exit 1); exit 1; }; } |
b3076f16 | 1211 | fi |
a8b2ad8d | 1212 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1213 | ac_abs_confdir=`( | |
1214 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
b3076f16 | 1215 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1216 | pwd)` |
1217 | # When building in place, set srcdir=. | |
1218 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1219 | srcdir=. | |
1220 | fi | |
1221 | # Remove unnecessary trailing slashes from srcdir. | |
1222 | # Double slashes in file names in object file debugging info | |
1223 | # mess up M-x gdb in Emacs. | |
1224 | case $srcdir in | |
1225 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1226 | esac | |
1227 | for ac_var in $ac_precious_vars; do | |
1228 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1229 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1230 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1231 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1232 | done | |
b3076f16 | 1233 | |
1234 | # | |
1235 | # Report the --help message. | |
1236 | # | |
1237 | if test "$ac_init_help" = "long"; then | |
1238 | # Omit some internal or obsolete options to make the list less imposing. | |
1239 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1240 | cat <<_ACEOF | |
1136f709 | 1241 | \`configure' configures X3 1.7 to adapt to many kinds of systems. |
b3076f16 | 1242 | |
1243 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1244 | ||
1245 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1246 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1247 | ||
1248 | Defaults for the options are specified in brackets. | |
1249 | ||
1250 | Configuration: | |
1251 | -h, --help display this help and exit | |
1252 | --help=short display options specific to this package | |
1253 | --help=recursive display the short help of all the included packages | |
1254 | -V, --version display version information and exit | |
1255 | -q, --quiet, --silent do not print \`checking...' messages | |
1256 | --cache-file=FILE cache test results in FILE [disabled] | |
1257 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1258 | -n, --no-create do not create output files | |
1259 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1260 | ||
b3076f16 | 1261 | Installation directories: |
1262 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1263 | [$ac_default_prefix] | |
1264 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1265 | [PREFIX] | |
1266 | ||
1267 | By default, \`make install' will install all the files in | |
1268 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1269 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1270 | for instance \`--prefix=\$HOME'. | |
1271 | ||
1272 | For better control, use the options below. | |
1273 | ||
1274 | Fine tuning of the installation directories: | |
1275 | --bindir=DIR user executables [EPREFIX/bin] | |
1276 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1277 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b3076f16 | 1278 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1279 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1280 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1281 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1282 | --includedir=DIR C header files [PREFIX/include] | |
1283 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
a8b2ad8d | 1284 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1285 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1286 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1287 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1288 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1289 | --docdir=DIR documentation root [DATAROOTDIR/doc/x3] | |
1290 | --htmldir=DIR html documentation [DOCDIR] | |
1291 | --dvidir=DIR dvi documentation [DOCDIR] | |
1292 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1293 | --psdir=DIR ps documentation [DOCDIR] | |
b3076f16 | 1294 | _ACEOF |
1295 | ||
1296 | cat <<\_ACEOF | |
1297 | ||
1298 | Program names: | |
1299 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1300 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1301 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1302 | ||
1303 | System types: | |
1304 | --build=BUILD configure for building on BUILD [guessed] | |
1305 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1306 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1307 | _ACEOF | |
1308 | fi | |
1309 | ||
1310 | if test -n "$ac_init_help"; then | |
1311 | case $ac_init_help in | |
1136f709 | 1312 | short | recursive ) echo "Configuration of X3 1.7:";; |
b3076f16 | 1313 | esac |
1314 | cat <<\_ACEOF | |
1315 | ||
1316 | Optional Features: | |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ec1a68c8 | 1319 | --enable-maintainer-mode enable make rules and dependencies not useful |
1320 | (and sometimes confusing) to the casual installer | |
1321 | --disable-dependency-tracking speeds up one-time build | |
1322 | --enable-dependency-tracking do not reject slow dependency extractors | |
b3076f16 | 1323 | --disable-tokens Disables tokenization of P10 protocol output |
1324 | (tokens required if linking to ircu 2.10.11) | |
1325 | --enable-debug Enables debugging behaviors | |
1326 | --enable-modules=list,of,modules Enable extra modules | |
2f65da8f | 1327 | --disable-python don't build the python plugin |
b3076f16 | 1328 | |
1329 | Optional Packages: | |
1330 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1331 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1332 | --with-malloc=type Enables use of a special malloc library; one of: | |
b8cb2a14 | 1333 | system (the default), boehm-gc, dmalloc, mpatrol, x3, slab |
b3076f16 | 1334 | --with-protocol=name Choose IRC dialect to support; one of: |
7827220c | 1335 | p10 (the default) |
1136f709 | 1336 | --with-mail=name How to send mail; one of: |
1337 | sendmail (the default), smtp | |
1338 | --without-epoll Disables the epoll_*() I/O backend | |
1339 | --without-kevent Disables the kevent() I/O backend | |
b3076f16 | 1340 | --without-getopt Disables building of the GNU getopt library |
a8b2ad8d | 1341 | --with-tre=PATH Base path to where libtre is installed, such that |
1342 | PATH/lib/libtre.so and PATH/include/tre/regex.h exist. | |
1343 | --with-coredumper=PATH Base path to where core dumper is installed, such | |
1344 | that PATH/lib/libcoredumper.so and | |
1345 | PATH/include/google/coredumper.h exist. | |
73d4cc91 | 1346 | --with-ssl=PATH Base path to where openssl is installed |
8da89711 | 1347 | --with-ldap=PATH Base path to where the ldap library and headers are installed, |
1348 | such that PATH/include/ldap.h and PATH/lib/libldap.so exist. | |
b3076f16 | 1349 | |
1350 | Some influential environment variables: | |
1351 | CC C compiler command | |
1352 | CFLAGS C compiler flags | |
1353 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1354 | nonstandard directory <lib dir> | |
0bd0bef6 | 1355 | LIBS libraries to pass to the linker, e.g. -l<library> |
a8b2ad8d | 1356 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1357 | you have headers in a nonstandard directory <include dir> | |
b3076f16 | 1358 | CPP C preprocessor |
1359 | ||
1360 | Use these variables to override the choices made by `configure' or to help | |
1361 | it to find libraries and programs with nonstandard names/locations. | |
1362 | ||
63c95a47 | 1363 | Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 1364 | _ACEOF |
a8b2ad8d | 1365 | ac_status=$? |
b3076f16 | 1366 | fi |
1367 | ||
1368 | if test "$ac_init_help" = "recursive"; then | |
1369 | # If there are subdirs, report their specific --help. | |
b3076f16 | 1370 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
a8b2ad8d | 1371 | test -d "$ac_dir" || continue |
b3076f16 | 1372 | ac_builddir=. |
1373 | ||
a8b2ad8d | 1374 | case "$ac_dir" in |
1375 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1376 | *) | |
b3076f16 | 1377 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 1378 | # A ".." for each directory in $ac_dir_suffix. |
1379 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1380 | case $ac_top_builddir_sub in | |
1381 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1382 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1383 | esac ;; | |
1384 | esac | |
1385 | ac_abs_top_builddir=$ac_pwd | |
1386 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1387 | # for backward compatibility: | |
1388 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 1389 | |
1390 | case $srcdir in | |
a8b2ad8d | 1391 | .) # We are building in place. |
b3076f16 | 1392 | ac_srcdir=. |
a8b2ad8d | 1393 | ac_top_srcdir=$ac_top_builddir_sub |
1394 | ac_abs_top_srcdir=$ac_pwd ;; | |
1395 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 1396 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 1397 | ac_top_srcdir=$srcdir |
1398 | ac_abs_top_srcdir=$srcdir ;; | |
1399 | *) # Relative name. | |
1400 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1401 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1402 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 1403 | esac |
a8b2ad8d | 1404 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1405 | ||
1406 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1407 | # Check for guested configure. | |
1408 | if test -f "$ac_srcdir/configure.gnu"; then | |
1409 | echo && | |
1410 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1411 | elif test -f "$ac_srcdir/configure"; then | |
1412 | echo && | |
1413 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b3076f16 | 1414 | else |
1415 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
a8b2ad8d | 1416 | fi || ac_status=$? |
1417 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b3076f16 | 1418 | done |
1419 | fi | |
1420 | ||
a8b2ad8d | 1421 | test -n "$ac_init_help" && exit $ac_status |
b3076f16 | 1422 | if $ac_init_version; then |
1423 | cat <<\_ACEOF | |
1136f709 | 1424 | X3 configure 1.7 |
0bd0bef6 | 1425 | generated by GNU Autoconf 2.61 |
b3076f16 | 1426 | |
a8b2ad8d | 1427 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1428 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b3076f16 | 1429 | This configure script is free software; the Free Software Foundation |
1430 | gives unlimited permission to copy, distribute and modify it. | |
1431 | _ACEOF | |
a8b2ad8d | 1432 | exit |
b3076f16 | 1433 | fi |
a8b2ad8d | 1434 | cat >config.log <<_ACEOF |
b3076f16 | 1435 | This file contains any messages produced by compilers while |
1436 | running configure, to aid debugging if configure makes a mistake. | |
1437 | ||
1136f709 | 1438 | It was created by X3 $as_me 1.7, which was |
0bd0bef6 | 1439 | generated by GNU Autoconf 2.61. Invocation command line was |
b3076f16 | 1440 | |
1441 | $ $0 $@ | |
1442 | ||
1443 | _ACEOF | |
a8b2ad8d | 1444 | exec 5>>config.log |
b3076f16 | 1445 | { |
1446 | cat <<_ASUNAME | |
1447 | ## --------- ## | |
1448 | ## Platform. ## | |
1449 | ## --------- ## | |
1450 | ||
1451 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1452 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1453 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1454 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1455 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1456 | ||
1457 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1458 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1459 | ||
1460 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1461 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1462 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
a8b2ad8d | 1463 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b3076f16 | 1464 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1465 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1466 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1467 | ||
1468 | _ASUNAME | |
1469 | ||
1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1471 | for as_dir in $PATH | |
1472 | do | |
1473 | IFS=$as_save_IFS | |
1474 | test -z "$as_dir" && as_dir=. | |
1475 | echo "PATH: $as_dir" | |
1476 | done | |
a8b2ad8d | 1477 | IFS=$as_save_IFS |
b3076f16 | 1478 | |
1479 | } >&5 | |
1480 | ||
1481 | cat >&5 <<_ACEOF | |
1482 | ||
1483 | ||
1484 | ## ----------- ## | |
1485 | ## Core tests. ## | |
1486 | ## ----------- ## | |
1487 | ||
1488 | _ACEOF | |
1489 | ||
1490 | ||
1491 | # Keep a trace of the command line. | |
1492 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1493 | # Strip out --silent because we don't want to record it for future runs. | |
1494 | # Also quote any args containing shell meta-characters. | |
1495 | # Make two passes to allow for proper duplicate-argument suppression. | |
1496 | ac_configure_args= | |
1497 | ac_configure_args0= | |
1498 | ac_configure_args1= | |
b3076f16 | 1499 | ac_must_keep_next=false |
1500 | for ac_pass in 1 2 | |
1501 | do | |
1502 | for ac_arg | |
1503 | do | |
1504 | case $ac_arg in | |
1505 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1507 | | -silent | --silent | --silen | --sile | --sil) | |
1508 | continue ;; | |
a8b2ad8d | 1509 | *\'*) |
b3076f16 | 1510 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1511 | esac | |
1512 | case $ac_pass in | |
1513 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1514 | 2) | |
1515 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1516 | if test $ac_must_keep_next = true; then | |
1517 | ac_must_keep_next=false # Got value, back to normal. | |
1518 | else | |
1519 | case $ac_arg in | |
1520 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1521 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1522 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1523 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1524 | case "$ac_configure_args0 " in | |
1525 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1526 | esac | |
1527 | ;; | |
1528 | -* ) ac_must_keep_next=true ;; | |
1529 | esac | |
1530 | fi | |
a8b2ad8d | 1531 | ac_configure_args="$ac_configure_args '$ac_arg'" |
b3076f16 | 1532 | ;; |
1533 | esac | |
1534 | done | |
1535 | done | |
1536 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1537 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1538 | ||
1539 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1540 | # config.log. We remove comments because anyway the quotes in there | |
1541 | # would cause problems or look ugly. | |
a8b2ad8d | 1542 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1543 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b3076f16 | 1544 | trap 'exit_status=$? |
1545 | # Save into config.log some information that might help in debugging. | |
1546 | { | |
1547 | echo | |
1548 | ||
1549 | cat <<\_ASBOX | |
1550 | ## ---------------- ## | |
1551 | ## Cache variables. ## | |
1552 | ## ---------------- ## | |
1553 | _ASBOX | |
1554 | echo | |
1555 | # The following way of writing the cache mishandles newlines in values, | |
a8b2ad8d | 1556 | ( |
1557 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1558 | eval ac_val=\$$ac_var | |
1559 | case $ac_val in #( | |
1560 | *${as_nl}*) | |
1561 | case $ac_var in #( | |
1562 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1563 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1564 | esac | |
1565 | case $ac_var in #( | |
1566 | _ | IFS | as_nl) ;; #( | |
1567 | *) $as_unset $ac_var ;; | |
1568 | esac ;; | |
1569 | esac | |
1570 | done | |
b3076f16 | 1571 | (set) 2>&1 | |
a8b2ad8d | 1572 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1573 | *${as_nl}ac_space=\ *) | |
b3076f16 | 1574 | sed -n \ |
a8b2ad8d | 1575 | "s/'\''/'\''\\\\'\'''\''/g; |
1576 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1577 | ;; #( | |
b3076f16 | 1578 | *) |
a8b2ad8d | 1579 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 1580 | ;; |
a8b2ad8d | 1581 | esac | |
1582 | sort | |
1583 | ) | |
b3076f16 | 1584 | echo |
1585 | ||
1586 | cat <<\_ASBOX | |
1587 | ## ----------------- ## | |
1588 | ## Output variables. ## | |
1589 | ## ----------------- ## | |
1590 | _ASBOX | |
1591 | echo | |
1592 | for ac_var in $ac_subst_vars | |
1593 | do | |
a8b2ad8d | 1594 | eval ac_val=\$$ac_var |
1595 | case $ac_val in | |
1596 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1597 | esac | |
1598 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1599 | done | sort |
1600 | echo | |
1601 | ||
1602 | if test -n "$ac_subst_files"; then | |
1603 | cat <<\_ASBOX | |
a8b2ad8d | 1604 | ## ------------------- ## |
1605 | ## File substitutions. ## | |
1606 | ## ------------------- ## | |
b3076f16 | 1607 | _ASBOX |
1608 | echo | |
1609 | for ac_var in $ac_subst_files | |
1610 | do | |
a8b2ad8d | 1611 | eval ac_val=\$$ac_var |
1612 | case $ac_val in | |
1613 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1614 | esac | |
1615 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1616 | done | sort |
1617 | echo | |
1618 | fi | |
1619 | ||
1620 | if test -s confdefs.h; then | |
1621 | cat <<\_ASBOX | |
1622 | ## ----------- ## | |
1623 | ## confdefs.h. ## | |
1624 | ## ----------- ## | |
1625 | _ASBOX | |
1626 | echo | |
a8b2ad8d | 1627 | cat confdefs.h |
b3076f16 | 1628 | echo |
1629 | fi | |
1630 | test "$ac_signal" != 0 && | |
1631 | echo "$as_me: caught signal $ac_signal" | |
1632 | echo "$as_me: exit $exit_status" | |
1633 | } >&5 | |
a8b2ad8d | 1634 | rm -f core *.core core.conftest.* && |
1635 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b3076f16 | 1636 | exit $exit_status |
a8b2ad8d | 1637 | ' 0 |
b3076f16 | 1638 | for ac_signal in 1 2 13 15; do |
1639 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1640 | done | |
1641 | ac_signal=0 | |
1642 | ||
1643 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
a8b2ad8d | 1644 | rm -f -r conftest* confdefs.h |
b3076f16 | 1645 | |
1646 | # Predefined preprocessor variables. | |
1647 | ||
1648 | cat >>confdefs.h <<_ACEOF | |
1649 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1650 | _ACEOF | |
1651 | ||
1652 | ||
1653 | cat >>confdefs.h <<_ACEOF | |
1654 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1655 | _ACEOF | |
1656 | ||
1657 | ||
1658 | cat >>confdefs.h <<_ACEOF | |
1659 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1660 | _ACEOF | |
1661 | ||
1662 | ||
1663 | cat >>confdefs.h <<_ACEOF | |
1664 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1665 | _ACEOF | |
1666 | ||
1667 | ||
1668 | cat >>confdefs.h <<_ACEOF | |
1669 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1670 | _ACEOF | |
1671 | ||
1672 | ||
1673 | # Let the site file select an alternate cache file if it wants to. | |
1674 | # Prefer explicitly selected file to automatically selected ones. | |
a8b2ad8d | 1675 | if test -n "$CONFIG_SITE"; then |
1676 | set x "$CONFIG_SITE" | |
1677 | elif test "x$prefix" != xNONE; then | |
1678 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1679 | else | |
1680 | set x "$ac_default_prefix/share/config.site" \ | |
1681 | "$ac_default_prefix/etc/config.site" | |
b3076f16 | 1682 | fi |
a8b2ad8d | 1683 | shift |
1684 | for ac_site_file | |
1685 | do | |
b3076f16 | 1686 | if test -r "$ac_site_file"; then |
1687 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1688 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1689 | sed 's/^/| /' "$ac_site_file" >&5 | |
1690 | . "$ac_site_file" | |
1691 | fi | |
1692 | done | |
1693 | ||
1694 | if test -r "$cache_file"; then | |
1695 | # Some versions of bash will fail to source /dev/null (special | |
1696 | # files actually), so we avoid doing that. | |
1697 | if test -f "$cache_file"; then | |
1698 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1699 | echo "$as_me: loading cache $cache_file" >&6;} | |
1700 | case $cache_file in | |
a8b2ad8d | 1701 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1702 | *) . "./$cache_file";; | |
b3076f16 | 1703 | esac |
1704 | fi | |
1705 | else | |
1706 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1707 | echo "$as_me: creating cache $cache_file" >&6;} | |
1708 | >$cache_file | |
1709 | fi | |
1710 | ||
1711 | # Check that the precious variables saved in the cache have kept the same | |
1712 | # value. | |
1713 | ac_cache_corrupted=false | |
a8b2ad8d | 1714 | for ac_var in $ac_precious_vars; do |
b3076f16 | 1715 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1716 | eval ac_new_set=\$ac_env_${ac_var}_set | |
a8b2ad8d | 1717 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1718 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b3076f16 | 1719 | case $ac_old_set,$ac_new_set in |
1720 | set,) | |
1721 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1722 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1723 | ac_cache_corrupted=: ;; | |
1724 | ,set) | |
1725 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1726 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1727 | ac_cache_corrupted=: ;; | |
1728 | ,);; | |
1729 | *) | |
1730 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1731 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1732 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1733 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1734 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1735 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1736 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1737 | ac_cache_corrupted=: | |
1738 | fi;; | |
1739 | esac | |
1740 | # Pass precious variables to config.status. | |
1741 | if test "$ac_new_set" = set; then | |
1742 | case $ac_new_val in | |
a8b2ad8d | 1743 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b3076f16 | 1744 | *) ac_arg=$ac_var=$ac_new_val ;; |
1745 | esac | |
1746 | case " $ac_configure_args " in | |
1747 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1748 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1749 | esac | |
1750 | fi | |
1751 | done | |
1752 | if $ac_cache_corrupted; then | |
1753 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1754 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1755 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1756 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1757 | { (exit 1); exit 1; }; } | |
1758 | fi | |
1759 | ||
b3076f16 | 1760 | |
1761 | ||
1762 | ||
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | ||
1782 | ||
1783 | ||
a8b2ad8d | 1784 | ac_ext=c |
1785 | ac_cpp='$CPP $CPPFLAGS' | |
1786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3076f16 | 1789 | |
1790 | ||
ceafd592 | 1791 | CODENAME=X3 |
a8b2ad8d | 1792 | ac_config_headers="$ac_config_headers src/config.h" |
b3076f16 | 1793 | |
1794 | ||
1795 | ac_aux_dir= | |
a8b2ad8d | 1796 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1797 | if test -f "$ac_dir/install-sh"; then | |
b3076f16 | 1798 | ac_aux_dir=$ac_dir |
1799 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1800 | break | |
a8b2ad8d | 1801 | elif test -f "$ac_dir/install.sh"; then |
b3076f16 | 1802 | ac_aux_dir=$ac_dir |
1803 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1804 | break | |
a8b2ad8d | 1805 | elif test -f "$ac_dir/shtool"; then |
b3076f16 | 1806 | ac_aux_dir=$ac_dir |
1807 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1808 | break | |
1809 | fi | |
1810 | done | |
1811 | if test -z "$ac_aux_dir"; then | |
a8b2ad8d | 1812 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1813 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
b3076f16 | 1814 | { (exit 1); exit 1; }; } |
1815 | fi | |
a8b2ad8d | 1816 | |
1817 | # These three variables are undocumented and unsupported, | |
1818 | # and are intended to be withdrawn in a future Autoconf release. | |
1819 | # They can cause serious problems if a builder's source tree is in a directory | |
1820 | # whose full name contains unusual characters. | |
1821 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1822 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1823 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1824 | ||
b3076f16 | 1825 | |
1826 | # Make sure we can run config.sub. | |
a8b2ad8d | 1827 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1828 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1829 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
b3076f16 | 1830 | { (exit 1); exit 1; }; } |
1831 | ||
a8b2ad8d | 1832 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1833 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
b3076f16 | 1834 | if test "${ac_cv_build+set}" = set; then |
1835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1836 | else | |
a8b2ad8d | 1837 | ac_build_alias=$build_alias |
1838 | test "x$ac_build_alias" = x && | |
1839 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1840 | test "x$ac_build_alias" = x && | |
b3076f16 | 1841 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1842 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1843 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1844 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1845 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1846 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
b3076f16 | 1847 | { (exit 1); exit 1; }; } |
1848 | ||
1849 | fi | |
a8b2ad8d | 1850 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1851 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1852 | case $ac_cv_build in | |
1853 | *-*-*) ;; | |
1854 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1855 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1856 | { (exit 1); exit 1; }; };; | |
1857 | esac | |
b3076f16 | 1858 | build=$ac_cv_build |
a8b2ad8d | 1859 | ac_save_IFS=$IFS; IFS='-' |
1860 | set x $ac_cv_build | |
1861 | shift | |
1862 | build_cpu=$1 | |
1863 | build_vendor=$2 | |
1864 | shift; shift | |
1865 | # Remember, the first character of IFS is used to create $*, | |
1866 | # except with old shells: | |
1867 | build_os=$* | |
1868 | IFS=$ac_save_IFS | |
1869 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1870 | ||
1871 | ||
1872 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1873 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
b3076f16 | 1874 | if test "${ac_cv_host+set}" = set; then |
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1876 | else | |
a8b2ad8d | 1877 | if test "x$host_alias" = x; then |
1878 | ac_cv_host=$ac_cv_build | |
1879 | else | |
1880 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1881 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1882 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
b3076f16 | 1883 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1884 | fi |
b3076f16 | 1885 | |
1886 | fi | |
a8b2ad8d | 1887 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1888 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1889 | case $ac_cv_host in | |
1890 | *-*-*) ;; | |
1891 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1892 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1893 | { (exit 1); exit 1; }; };; | |
1894 | esac | |
b3076f16 | 1895 | host=$ac_cv_host |
a8b2ad8d | 1896 | ac_save_IFS=$IFS; IFS='-' |
1897 | set x $ac_cv_host | |
1898 | shift | |
1899 | host_cpu=$1 | |
1900 | host_vendor=$2 | |
1901 | shift; shift | |
1902 | # Remember, the first character of IFS is used to create $*, | |
1903 | # except with old shells: | |
1904 | host_os=$* | |
1905 | IFS=$ac_save_IFS | |
1906 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1907 | ||
1908 | ||
1909 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
1910 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
b3076f16 | 1911 | if test "${ac_cv_target+set}" = set; then |
1912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1913 | else | |
a8b2ad8d | 1914 | if test "x$target_alias" = x; then |
1915 | ac_cv_target=$ac_cv_host | |
1916 | else | |
1917 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1918 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
1919 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
b3076f16 | 1920 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1921 | fi |
b3076f16 | 1922 | |
1923 | fi | |
a8b2ad8d | 1924 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1925 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
1926 | case $ac_cv_target in | |
1927 | *-*-*) ;; | |
1928 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
1929 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
1930 | { (exit 1); exit 1; }; };; | |
1931 | esac | |
b3076f16 | 1932 | target=$ac_cv_target |
a8b2ad8d | 1933 | ac_save_IFS=$IFS; IFS='-' |
1934 | set x $ac_cv_target | |
1935 | shift | |
1936 | target_cpu=$1 | |
1937 | target_vendor=$2 | |
1938 | shift; shift | |
1939 | # Remember, the first character of IFS is used to create $*, | |
1940 | # except with old shells: | |
1941 | target_os=$* | |
1942 | IFS=$ac_save_IFS | |
1943 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b3076f16 | 1944 | |
1945 | ||
1946 | # The aliases save the names the user supplied, while $host etc. | |
1947 | # will get canonicalized. | |
1948 | test -n "$target_alias" && | |
1949 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1950 | NONENONEs,x,x, && | |
1951 | program_prefix=${target_alias}- | |
2f65da8f | 1952 | am__api_version='1.10' |
1953 | ||
b3076f16 | 1954 | # Find a good install program. We prefer a C program (faster), |
1955 | # so one script is as good as another. But avoid the broken or | |
1956 | # incompatible versions: | |
1957 | # SysV /etc/install, /usr/sbin/install | |
1958 | # SunOS /usr/etc/install | |
1959 | # IRIX /sbin/install | |
1960 | # AIX /bin/install | |
1961 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1962 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1963 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1964 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1965 | # OS/2's system install, which has a completely different semantic | |
1966 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 1967 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1968 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 1969 | if test -z "$INSTALL"; then |
1970 | if test "${ac_cv_path_install+set}" = set; then | |
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1972 | else | |
1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1974 | for as_dir in $PATH | |
1975 | do | |
1976 | IFS=$as_save_IFS | |
1977 | test -z "$as_dir" && as_dir=. | |
1978 | # Account for people who put trailing slashes in PATH elements. | |
1979 | case $as_dir/ in | |
1980 | ./ | .// | /cC/* | \ | |
1981 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1982 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1983 | /usr/ucb/* ) ;; | |
1984 | *) | |
1985 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1986 | # Don't use installbsd from OSF since it installs stuff as root | |
1987 | # by default. | |
1988 | for ac_prog in ginstall scoinst install; do | |
1989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 1990 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 1991 | if test $ac_prog = install && |
1992 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1993 | # AIX install. It has an incompatible calling convention. | |
1994 | : | |
1995 | elif test $ac_prog = install && | |
1996 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1997 | # program-specific install script used by HP pwplus--don't use. | |
1998 | : | |
1999 | else | |
2000 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2001 | break 3 | |
2002 | fi | |
2003 | fi | |
2004 | done | |
2005 | done | |
2006 | ;; | |
2007 | esac | |
2008 | done | |
a8b2ad8d | 2009 | IFS=$as_save_IFS |
b3076f16 | 2010 | |
2011 | ||
2012 | fi | |
2013 | if test "${ac_cv_path_install+set}" = set; then | |
2014 | INSTALL=$ac_cv_path_install | |
2015 | else | |
a8b2ad8d | 2016 | # As a last resort, use the slow shell script. Don't cache a |
2017 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 2018 | # break other packages using the cache if that directory is |
a8b2ad8d | 2019 | # removed, or if the value is a relative name. |
b3076f16 | 2020 | INSTALL=$ac_install_sh |
2021 | fi | |
2022 | fi | |
a8b2ad8d | 2023 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2024 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 2025 | |
2026 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2027 | # It thinks the first close brace ends the variable substitution. | |
2028 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2029 | ||
2030 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2031 | ||
2032 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2033 | ||
a8b2ad8d | 2034 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2035 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
b3076f16 | 2036 | # Just in case |
2037 | sleep 1 | |
ec1a68c8 | 2038 | echo timestamp > conftest.file |
b3076f16 | 2039 | # Do `set' in a subshell so we don't clobber the current shell's |
2040 | # arguments. Must try -L first in case configure is actually a | |
2041 | # symlink; some systems play weird games with the mod time of symlinks | |
2042 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2043 | # directory). | |
2044 | if ( | |
ec1a68c8 | 2045 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
b3076f16 | 2046 | if test "$*" = "X"; then |
2047 | # -L didn't work. | |
ec1a68c8 | 2048 | set X `ls -t $srcdir/configure conftest.file` |
b3076f16 | 2049 | fi |
ec1a68c8 | 2050 | rm -f conftest.file |
2051 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2052 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b3076f16 | 2053 | |
2054 | # If neither matched, then we have a broken ls. This can happen | |
2055 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2056 | # broken ls alias from the environment. This has actually | |
2057 | # happened. Such a system could not be considered "sane". | |
2058 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2059 | alias in your environment" >&5 | |
2060 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2061 | alias in your environment" >&2;} | |
2062 | { (exit 1); exit 1; }; } | |
2063 | fi | |
2064 | ||
ec1a68c8 | 2065 | test "$2" = conftest.file |
b3076f16 | 2066 | ) |
2067 | then | |
2068 | # Ok. | |
2069 | : | |
2070 | else | |
2071 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2072 | Check your system clock" >&5 | |
2073 | echo "$as_me: error: newly created file is older than distributed files! | |
2074 | Check your system clock" >&2;} | |
2075 | { (exit 1); exit 1; }; } | |
2076 | fi | |
a8b2ad8d | 2077 | { echo "$as_me:$LINENO: result: yes" >&5 |
2078 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2079 | test "$program_prefix" != NONE && |
a8b2ad8d | 2080 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
b3076f16 | 2081 | # Use a double $ so make ignores it. |
2082 | test "$program_suffix" != NONE && | |
a8b2ad8d | 2083 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
b3076f16 | 2084 | # Double any \ or $. echo might interpret backslashes. |
2085 | # By default was `s,x,x', remove it if useless. | |
2086 | cat <<\_ACEOF >conftest.sed | |
2087 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2088 | _ACEOF | |
2089 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
a8b2ad8d | 2090 | rm -f conftest.sed |
b3076f16 | 2091 | |
ec1a68c8 | 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= | |
2101 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2102 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2103 | fi | |
2104 | ||
2f65da8f | 2105 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2106 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
2107 | if test -z "$MKDIR_P"; then | |
2108 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
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" | |
ec1a68c8 | 2135 | else |
2f65da8f | 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" | |
ec1a68c8 | 2142 | fi |
2143 | fi | |
2f65da8f | 2144 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2145 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
2146 | ||
2147 | mkdir_p="$MKDIR_P" | |
2148 | case $mkdir_p in | |
2149 | [\\/$]* | ?:[\\/]*) ;; | |
2150 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2151 | esac | |
ec1a68c8 | 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 | |
a8b2ad8d | 2157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2159 | if test "${ac_cv_prog_AWK+set}" = set; then |
2160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
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 | |
0bd0bef6 | 2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2172 | ac_cv_prog_AWK="$ac_prog" |
2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2174 | break 2 | |
2175 | fi | |
2176 | done | |
2177 | done | |
a8b2ad8d | 2178 | IFS=$as_save_IFS |
ec1a68c8 | 2179 | |
2180 | fi | |
2181 | fi | |
2182 | AWK=$ac_cv_prog_AWK | |
2183 | if test -n "$AWK"; then | |
a8b2ad8d | 2184 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2185 | echo "${ECHO_T}$AWK" >&6; } | |
ec1a68c8 | 2186 | else |
a8b2ad8d | 2187 | { echo "$as_me:$LINENO: result: no" >&5 |
2188 | echo "${ECHO_T}no" >&6; } | |
ec1a68c8 | 2189 | fi |
2190 | ||
a8b2ad8d | 2191 | |
ec1a68c8 | 2192 | test -n "$AWK" && break |
2193 | done | |
2194 | ||
a8b2ad8d | 2195 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2196 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2197 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2198 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 2199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2200 | else | |
2201 | cat >conftest.make <<\_ACEOF | |
a8b2ad8d | 2202 | SHELL = /bin/sh |
b3076f16 | 2203 | all: |
a8b2ad8d | 2204 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b3076f16 | 2205 | _ACEOF |
2206 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
a8b2ad8d | 2207 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2208 | *@@@%%%=?*=@@@%%%*) | |
2209 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2210 | *) | |
2211 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2212 | esac | |
b3076f16 | 2213 | rm -f conftest.make |
2214 | fi | |
a8b2ad8d | 2215 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2216 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2217 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2218 | SET_MAKE= |
2219 | else | |
a8b2ad8d | 2220 | { echo "$as_me:$LINENO: result: no" >&5 |
2221 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2222 | SET_MAKE="MAKE=${MAKE-make}" |
2223 | fi | |
2224 | ||
ec1a68c8 | 2225 | rm -rf .tst 2>/dev/null |
2226 | mkdir .tst 2>/dev/null | |
2227 | if test -d .tst; then | |
2228 | am__leading_dot=. | |
2229 | else | |
2230 | am__leading_dot=_ | |
2231 | fi | |
2232 | rmdir .tst 2>/dev/null | |
b3076f16 | 2233 | |
2f65da8f | 2234 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2235 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2236 | # is not polluted with repeated "-I." | |
2237 | am__isrc=' -I$(srcdir)' | |
2238 | # test to see if srcdir already configured | |
2239 | if test -f $srcdir/config.status; then | |
2240 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
b3076f16 | 2241 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2242 | { (exit 1); exit 1; }; } | |
2f65da8f | 2243 | fi |
b3076f16 | 2244 | fi |
2245 | ||
ec1a68c8 | 2246 | # test whether we have cygpath |
2247 | if test -z "$CYGPATH_W"; then | |
2248 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2249 | CYGPATH_W='cygpath -w' | |
2250 | else | |
2251 | CYGPATH_W=echo | |
2252 | fi | |
2253 | fi | |
2254 | ||
2255 | ||
2256 | # Define the identity of the package. | |
ceafd592 | 2257 | PACKAGE='x3' |
1136f709 | 2258 | VERSION='1.7' |
ec1a68c8 | 2259 | |
2260 | ||
b3076f16 | 2261 | cat >>confdefs.h <<_ACEOF |
2262 | #define PACKAGE "$PACKAGE" | |
2263 | _ACEOF | |
2264 | ||
2265 | ||
2266 | cat >>confdefs.h <<_ACEOF | |
2267 | #define VERSION "$VERSION" | |
2268 | _ACEOF | |
2269 | ||
ec1a68c8 | 2270 | # Some tools Automake needs. |
b3076f16 | 2271 | |
ec1a68c8 | 2272 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
b3076f16 | 2273 | |
ec1a68c8 | 2274 | |
2275 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2276 | ||
2277 | ||
2278 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2279 | ||
2280 | ||
2281 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2282 | ||
2283 | ||
2284 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2285 | ||
2f65da8f | 2286 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
ec1a68c8 | 2287 | |
2288 | # Installed binaries are usually stripped using `strip' when the user | |
2289 | # run `make install-strip'. However `strip' might not be the right | |
2290 | # tool to use in cross-compilation environments, therefore Automake | |
2291 | # will honor the `STRIP' environment variable to overrule this program. | |
2292 | if test "$cross_compiling" != no; then | |
2293 | if test -n "$ac_tool_prefix"; then | |
2294 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2295 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a8b2ad8d | 2296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2298 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 2300 | else |
ec1a68c8 | 2301 | if test -n "$STRIP"; then |
2302 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2303 | else | |
2304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2305 | for as_dir in $PATH | |
2306 | do | |
2307 | IFS=$as_save_IFS | |
2308 | test -z "$as_dir" && as_dir=. | |
2309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2311 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2313 | break 2 | |
2314 | fi | |
2315 | done | |
2316 | done | |
a8b2ad8d | 2317 | IFS=$as_save_IFS |
b3076f16 | 2318 | |
ec1a68c8 | 2319 | fi |
2320 | fi | |
2321 | STRIP=$ac_cv_prog_STRIP | |
2322 | if test -n "$STRIP"; then | |
a8b2ad8d | 2323 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2324 | echo "${ECHO_T}$STRIP" >&6; } | |
b3076f16 | 2325 | else |
a8b2ad8d | 2326 | { echo "$as_me:$LINENO: result: no" >&5 |
2327 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2328 | fi |
b2cf3d66 | 2329 | |
a8b2ad8d | 2330 | |
b3076f16 | 2331 | fi |
ec1a68c8 | 2332 | if test -z "$ac_cv_prog_STRIP"; then |
2333 | ac_ct_STRIP=$STRIP | |
2334 | # Extract the first word of "strip", so it can be a program name with args. | |
2335 | set dummy strip; ac_word=$2 | |
a8b2ad8d | 2336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2338 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2340 | else | |
2341 | if test -n "$ac_ct_STRIP"; then | |
2342 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2343 | else | |
2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2345 | for as_dir in $PATH | |
2346 | do | |
2347 | IFS=$as_save_IFS | |
2348 | test -z "$as_dir" && as_dir=. | |
2349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2351 | ac_cv_prog_ac_ct_STRIP="strip" |
2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2353 | break 2 | |
2354 | fi | |
2355 | done | |
2356 | done | |
a8b2ad8d | 2357 | IFS=$as_save_IFS |
b3076f16 | 2358 | |
ec1a68c8 | 2359 | fi |
2360 | fi | |
2361 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2362 | if test -n "$ac_ct_STRIP"; then | |
a8b2ad8d | 2363 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2364 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
b3076f16 | 2365 | else |
a8b2ad8d | 2366 | { echo "$as_me:$LINENO: result: no" >&5 |
2367 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2368 | fi |
2369 | ||
a8b2ad8d | 2370 | if test "x$ac_ct_STRIP" = x; then |
2371 | STRIP=":" | |
2372 | else | |
2373 | case $cross_compiling:$ac_tool_warned in | |
2374 | yes:) | |
2375 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2376 | whose name does not start with the host triplet. If you think this | |
2377 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2378 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2379 | whose name does not start with the host triplet. If you think this | |
2380 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2381 | ac_tool_warned=yes ;; | |
2382 | esac | |
2383 | STRIP=$ac_ct_STRIP | |
2384 | fi | |
b2cf3d66 | 2385 | else |
ec1a68c8 | 2386 | STRIP="$ac_cv_prog_STRIP" |
b3076f16 | 2387 | fi |
b3076f16 | 2388 | |
ec1a68c8 | 2389 | fi |
2f65da8f | 2390 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
ec1a68c8 | 2391 | |
2392 | # We need awk for the "check" target. The system "awk" is bad on | |
2393 | # some platforms. | |
2394 | # Always define AMTAR for backward compatibility. | |
2395 | ||
2396 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2397 | ||
2398 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2399 | ||
2400 | ||
2401 | ||
2402 | ||
b3076f16 | 2403 | |
a8b2ad8d | 2404 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2405 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2406 | # Check whether --enable-maintainer-mode was given. | |
b3076f16 | 2407 | if test "${enable_maintainer_mode+set}" = set; then |
a8b2ad8d | 2408 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
b3076f16 | 2409 | else |
2410 | USE_MAINTAINER_MODE=no | |
a8b2ad8d | 2411 | fi |
2412 | ||
2413 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2414 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
2f65da8f | 2415 | if test $USE_MAINTAINER_MODE = yes; then |
b3076f16 | 2416 | MAINTAINER_MODE_TRUE= |
2417 | MAINTAINER_MODE_FALSE='#' | |
2418 | else | |
2419 | MAINTAINER_MODE_TRUE='#' | |
2420 | MAINTAINER_MODE_FALSE= | |
2421 | fi | |
ec1a68c8 | 2422 | |
b3076f16 | 2423 | MAINT=$MAINTAINER_MODE_TRUE |
2424 | ||
2425 | ||
2426 | ||
ec1a68c8 | 2427 | DEPDIR="${am__leading_dot}deps" |
2428 | ||
a8b2ad8d | 2429 | ac_config_commands="$ac_config_commands depfiles" |
ec1a68c8 | 2430 | |
2431 | ||
2432 | am_make=${MAKE-make} | |
2433 | cat > confinc << 'END' | |
2434 | am__doit: | |
2435 | @echo done | |
2436 | .PHONY: am__doit | |
2437 | END | |
2438 | # If we don't find an include directive, just comment out the code. | |
a8b2ad8d | 2439 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2440 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
ec1a68c8 | 2441 | am__include="#" |
2442 | am__quote= | |
2443 | _am_result=none | |
2444 | # First try GNU make style include. | |
2445 | echo "include confinc" > confmf | |
2446 | # We grep out `Entering directory' and `Leaving directory' | |
2447 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2448 | # In particular we don't look at `^make:' because GNU make might | |
2449 | # be invoked under some other name (usually "gmake"), in which | |
2450 | # case it prints its new name instead of `make'. | |
2451 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2452 | am__include=include | |
2453 | am__quote= | |
2454 | _am_result=GNU | |
2455 | fi | |
2456 | # Now try BSD make style include. | |
2457 | if test "$am__include" = "#"; then | |
2458 | echo '.include "confinc"' > confmf | |
2459 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2460 | am__include=.include | |
2461 | am__quote="\"" | |
2462 | _am_result=BSD | |
2463 | fi | |
2464 | fi | |
2465 | ||
2466 | ||
a8b2ad8d | 2467 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
2468 | echo "${ECHO_T}$_am_result" >&6; } | |
ec1a68c8 | 2469 | rm -f confinc confmf |
2470 | ||
a8b2ad8d | 2471 | # Check whether --enable-dependency-tracking was given. |
ec1a68c8 | 2472 | if test "${enable_dependency_tracking+set}" = set; then |
a8b2ad8d | 2473 | enableval=$enable_dependency_tracking; |
2474 | fi | |
ec1a68c8 | 2475 | |
ec1a68c8 | 2476 | if test "x$enable_dependency_tracking" != xno; then |
2477 | am_depcomp="$ac_aux_dir/depcomp" | |
2478 | AMDEPBACKSLASH='\' | |
2479 | fi | |
2f65da8f | 2480 | if test "x$enable_dependency_tracking" != xno; then |
ec1a68c8 | 2481 | AMDEP_TRUE= |
2482 | AMDEP_FALSE='#' | |
2483 | else | |
2484 | AMDEP_TRUE='#' | |
2485 | AMDEP_FALSE= | |
2486 | fi | |
2487 | ||
2488 | ||
b3076f16 | 2489 | ac_ext=c |
2490 | ac_cpp='$CPP $CPPFLAGS' | |
2491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2494 | if test -n "$ac_tool_prefix"; then | |
2495 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2496 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 2497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2499 | if test "${ac_cv_prog_CC+set}" = set; then |
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2501 | else | |
2502 | if test -n "$CC"; then | |
2503 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2504 | else | |
2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2506 | for as_dir in $PATH | |
2507 | do | |
2508 | IFS=$as_save_IFS | |
2509 | test -z "$as_dir" && as_dir=. | |
2510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2512 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2514 | break 2 | |
2515 | fi | |
2516 | done | |
2517 | done | |
a8b2ad8d | 2518 | IFS=$as_save_IFS |
b3076f16 | 2519 | |
2520 | fi | |
2521 | fi | |
2522 | CC=$ac_cv_prog_CC | |
2523 | if test -n "$CC"; then | |
a8b2ad8d | 2524 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2525 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2526 | else |
a8b2ad8d | 2527 | { echo "$as_me:$LINENO: result: no" >&5 |
2528 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2529 | fi |
2530 | ||
a8b2ad8d | 2531 | |
b3076f16 | 2532 | fi |
2533 | if test -z "$ac_cv_prog_CC"; then | |
2534 | ac_ct_CC=$CC | |
2535 | # Extract the first word of "gcc", so it can be a program name with args. | |
2536 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 2537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2539 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2541 | else | |
2542 | if test -n "$ac_ct_CC"; then | |
2543 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2544 | else | |
2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2546 | for as_dir in $PATH | |
2547 | do | |
2548 | IFS=$as_save_IFS | |
2549 | test -z "$as_dir" && as_dir=. | |
2550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2552 | ac_cv_prog_ac_ct_CC="gcc" |
2553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2554 | break 2 | |
2555 | fi | |
2556 | done | |
2557 | done | |
a8b2ad8d | 2558 | IFS=$as_save_IFS |
b3076f16 | 2559 | |
2560 | fi | |
2561 | fi | |
2562 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2563 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2564 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2565 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2566 | else |
a8b2ad8d | 2567 | { echo "$as_me:$LINENO: result: no" >&5 |
2568 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2569 | fi |
2570 | ||
a8b2ad8d | 2571 | if test "x$ac_ct_CC" = x; then |
2572 | CC="" | |
2573 | else | |
2574 | case $cross_compiling:$ac_tool_warned in | |
2575 | yes:) | |
2576 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2577 | whose name does not start with the host triplet. If you think this | |
2578 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2579 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2580 | whose name does not start with the host triplet. If you think this | |
2581 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2582 | ac_tool_warned=yes ;; | |
2583 | esac | |
2584 | CC=$ac_ct_CC | |
2585 | fi | |
b3076f16 | 2586 | else |
2587 | CC="$ac_cv_prog_CC" | |
2588 | fi | |
2589 | ||
2590 | if test -z "$CC"; then | |
a8b2ad8d | 2591 | if test -n "$ac_tool_prefix"; then |
2592 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 2593 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 2594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2596 | if test "${ac_cv_prog_CC+set}" = set; then |
2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2598 | else | |
2599 | if test -n "$CC"; then | |
2600 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2601 | else | |
2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2603 | for as_dir in $PATH | |
2604 | do | |
2605 | IFS=$as_save_IFS | |
2606 | test -z "$as_dir" && as_dir=. | |
2607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2609 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2611 | break 2 | |
2612 | fi | |
2613 | done | |
2614 | done | |
a8b2ad8d | 2615 | IFS=$as_save_IFS |
b3076f16 | 2616 | |
2617 | fi | |
2618 | fi | |
2619 | CC=$ac_cv_prog_CC | |
2620 | if test -n "$CC"; then | |
a8b2ad8d | 2621 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2622 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2623 | else |
a8b2ad8d | 2624 | { echo "$as_me:$LINENO: result: no" >&5 |
2625 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2626 | fi |
2627 | ||
b3076f16 | 2628 | |
a8b2ad8d | 2629 | fi |
b3076f16 | 2630 | fi |
2631 | if test -z "$CC"; then | |
2632 | # Extract the first word of "cc", so it can be a program name with args. | |
2633 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 2634 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2636 | if test "${ac_cv_prog_CC+set}" = set; then |
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2638 | else | |
2639 | if test -n "$CC"; then | |
2640 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2641 | else | |
2642 | ac_prog_rejected=no | |
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2644 | for as_dir in $PATH | |
2645 | do | |
2646 | IFS=$as_save_IFS | |
2647 | test -z "$as_dir" && as_dir=. | |
2648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2650 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2651 | ac_prog_rejected=yes | |
2652 | continue | |
2653 | fi | |
2654 | ac_cv_prog_CC="cc" | |
2655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2656 | break 2 | |
2657 | fi | |
2658 | done | |
2659 | done | |
a8b2ad8d | 2660 | IFS=$as_save_IFS |
b3076f16 | 2661 | |
2662 | if test $ac_prog_rejected = yes; then | |
2663 | # We found a bogon in the path, so make sure we never use it. | |
2664 | set dummy $ac_cv_prog_CC | |
2665 | shift | |
2666 | if test $# != 0; then | |
2667 | # We chose a different compiler from the bogus one. | |
2668 | # However, it has the same basename, so the bogon will be chosen | |
2669 | # first if we set CC to just the basename; use the full file name. | |
2670 | shift | |
2671 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2672 | fi | |
2673 | fi | |
2674 | fi | |
2675 | fi | |
2676 | CC=$ac_cv_prog_CC | |
2677 | if test -n "$CC"; then | |
a8b2ad8d | 2678 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2679 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2680 | else |
a8b2ad8d | 2681 | { echo "$as_me:$LINENO: result: no" >&5 |
2682 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2683 | fi |
2684 | ||
a8b2ad8d | 2685 | |
b3076f16 | 2686 | fi |
2687 | if test -z "$CC"; then | |
2688 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 2689 | for ac_prog in cl.exe |
b3076f16 | 2690 | do |
2691 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2692 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 2693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2695 | if test "${ac_cv_prog_CC+set}" = set; then |
2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2697 | else | |
2698 | if test -n "$CC"; then | |
2699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2700 | else | |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2708 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
2713 | done | |
a8b2ad8d | 2714 | IFS=$as_save_IFS |
b3076f16 | 2715 | |
2716 | fi | |
2717 | fi | |
2718 | CC=$ac_cv_prog_CC | |
2719 | if test -n "$CC"; then | |
a8b2ad8d | 2720 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2721 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2722 | else |
a8b2ad8d | 2723 | { echo "$as_me:$LINENO: result: no" >&5 |
2724 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2725 | fi |
2726 | ||
a8b2ad8d | 2727 | |
b3076f16 | 2728 | test -n "$CC" && break |
2729 | done | |
2730 | fi | |
2731 | if test -z "$CC"; then | |
2732 | ac_ct_CC=$CC | |
a8b2ad8d | 2733 | for ac_prog in cl.exe |
b3076f16 | 2734 | do |
2735 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2736 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 2737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2739 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2741 | else | |
2742 | if test -n "$ac_ct_CC"; then | |
2743 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2744 | else | |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2746 | for as_dir in $PATH | |
2747 | do | |
2748 | IFS=$as_save_IFS | |
2749 | test -z "$as_dir" && as_dir=. | |
2750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2752 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2754 | break 2 | |
2755 | fi | |
2756 | done | |
2757 | done | |
a8b2ad8d | 2758 | IFS=$as_save_IFS |
b3076f16 | 2759 | |
2760 | fi | |
2761 | fi | |
2762 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2763 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2764 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2765 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2766 | else |
a8b2ad8d | 2767 | { echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2769 | fi |
2770 | ||
a8b2ad8d | 2771 | |
b3076f16 | 2772 | test -n "$ac_ct_CC" && break |
2773 | done | |
2774 | ||
a8b2ad8d | 2775 | if test "x$ac_ct_CC" = x; then |
2776 | CC="" | |
2777 | else | |
2778 | case $cross_compiling:$ac_tool_warned in | |
2779 | yes:) | |
2780 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2781 | whose name does not start with the host triplet. If you think this | |
2782 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2783 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2784 | whose name does not start with the host triplet. If you think this | |
2785 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2786 | ac_tool_warned=yes ;; | |
2787 | esac | |
2788 | CC=$ac_ct_CC | |
2789 | fi | |
b3076f16 | 2790 | fi |
2791 | ||
2792 | fi | |
2793 | ||
2794 | ||
2795 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2796 | See \`config.log' for more details." >&5 | |
2797 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2798 | See \`config.log' for more details." >&2;} | |
2799 | { (exit 1); exit 1; }; } | |
2800 | ||
2801 | # Provide some information about the compiler. | |
a8b2ad8d | 2802 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 2803 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 2804 | { (ac_try="$ac_compiler --version >&5" |
2805 | case "(($ac_try" in | |
2806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2807 | *) ac_try_echo=$ac_try;; | |
2808 | esac | |
2809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2810 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 2811 | ac_status=$? |
2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2813 | (exit $ac_status); } | |
a8b2ad8d | 2814 | { (ac_try="$ac_compiler -v >&5" |
2815 | case "(($ac_try" in | |
2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2817 | *) ac_try_echo=$ac_try;; | |
2818 | esac | |
2819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2820 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 2821 | ac_status=$? |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); } | |
a8b2ad8d | 2824 | { (ac_try="$ac_compiler -V >&5" |
2825 | case "(($ac_try" in | |
2826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2827 | *) ac_try_echo=$ac_try;; | |
2828 | esac | |
2829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2830 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 2831 | ac_status=$? |
2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2833 | (exit $ac_status); } | |
2834 | ||
2835 | cat >conftest.$ac_ext <<_ACEOF | |
2836 | /* confdefs.h. */ | |
2837 | _ACEOF | |
2838 | cat confdefs.h >>conftest.$ac_ext | |
2839 | cat >>conftest.$ac_ext <<_ACEOF | |
2840 | /* end confdefs.h. */ | |
2841 | ||
2842 | int | |
2843 | main () | |
2844 | { | |
2845 | ||
2846 | ; | |
2847 | return 0; | |
2848 | } | |
2849 | _ACEOF | |
2850 | ac_clean_files_save=$ac_clean_files | |
2851 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2852 | # Try to create an executable without -o first, disregard a.out. | |
2853 | # It will help us diagnose broken compilers, and finding out an intuition | |
2854 | # of exeext. | |
a8b2ad8d | 2855 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2856 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
b3076f16 | 2857 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a8b2ad8d | 2858 | # |
2859 | # List of possible output files, starting from the most likely. | |
2860 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2861 | # only as a last resort. b.out is created by i960 compilers. | |
2862 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2863 | # | |
2864 | # The IRIX 6 linker writes into existing files which may not be | |
2865 | # executable, retaining their permissions. Remove them first so a | |
2866 | # subsequent execution test works. | |
2867 | ac_rmfiles= | |
2868 | for ac_file in $ac_files | |
2869 | do | |
2870 | case $ac_file in | |
2871 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2872 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2873 | esac | |
2874 | done | |
2875 | rm -f $ac_rmfiles | |
2876 | ||
2877 | if { (ac_try="$ac_link_default" | |
2878 | case "(($ac_try" in | |
2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2880 | *) ac_try_echo=$ac_try;; | |
2881 | esac | |
2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2883 | (eval "$ac_link_default") 2>&5 | |
b3076f16 | 2884 | ac_status=$? |
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2886 | (exit $ac_status); }; then | |
a8b2ad8d | 2887 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2888 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2889 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2890 | # so that the user can short-circuit this test for compilers unknown to | |
2891 | # Autoconf. | |
0bd0bef6 | 2892 | for ac_file in $ac_files '' |
b3076f16 | 2893 | do |
2894 | test -f "$ac_file" || continue | |
2895 | case $ac_file in | |
a8b2ad8d | 2896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
b3076f16 | 2897 | ;; |
2898 | [ab].out ) | |
2899 | # We found the default executable, but exeext='' is most | |
2900 | # certainly right. | |
2901 | break;; | |
2902 | *.* ) | |
a8b2ad8d | 2903 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2904 | then :; else | |
2905 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2906 | fi | |
2907 | # We set ac_cv_exeext here because the later test for it is not | |
2908 | # safe: cross compilers may not add the suffix if given an `-o' | |
2909 | # argument, so we may need to know it at that point already. | |
2910 | # Even if this section looks crufty: it has the advantage of | |
2911 | # actually working. | |
b3076f16 | 2912 | break;; |
2913 | * ) | |
2914 | break;; | |
2915 | esac | |
2916 | done | |
a8b2ad8d | 2917 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2918 | ||
b3076f16 | 2919 | else |
0bd0bef6 | 2920 | ac_file='' |
2921 | fi | |
2922 | ||
2923 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2924 | echo "${ECHO_T}$ac_file" >&6; } | |
2925 | if test -z "$ac_file"; then | |
b3076f16 | 2926 | echo "$as_me: failed program was:" >&5 |
2927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2928 | ||
2929 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2930 | See \`config.log' for more details." >&5 | |
2931 | echo "$as_me: error: C compiler cannot create executables | |
2932 | See \`config.log' for more details." >&2;} | |
2933 | { (exit 77); exit 77; }; } | |
2934 | fi | |
2935 | ||
2936 | ac_exeext=$ac_cv_exeext | |
b3076f16 | 2937 | |
a8b2ad8d | 2938 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2939 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2940 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2941 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
b3076f16 | 2942 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2943 | # If not cross compiling, check that we can run a simple program. | |
2944 | if test "$cross_compiling" != yes; then | |
2945 | if { ac_try='./$ac_file' | |
a8b2ad8d | 2946 | { (case "(($ac_try" in |
2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2948 | *) ac_try_echo=$ac_try;; | |
2949 | esac | |
2950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2951 | (eval "$ac_try") 2>&5 | |
b3076f16 | 2952 | ac_status=$? |
2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2954 | (exit $ac_status); }; }; then | |
2955 | cross_compiling=no | |
2956 | else | |
2957 | if test "$cross_compiling" = maybe; then | |
2958 | cross_compiling=yes | |
2959 | else | |
2960 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2961 | If you meant to cross compile, use \`--host'. | |
2962 | See \`config.log' for more details." >&5 | |
2963 | echo "$as_me: error: cannot run C compiled programs. | |
2964 | If you meant to cross compile, use \`--host'. | |
2965 | See \`config.log' for more details." >&2;} | |
2966 | { (exit 1); exit 1; }; } | |
2967 | fi | |
2968 | fi | |
2969 | fi | |
a8b2ad8d | 2970 | { echo "$as_me:$LINENO: result: yes" >&5 |
2971 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2972 | |
2973 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2974 | ac_clean_files=$ac_clean_files_save | |
a8b2ad8d | 2975 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2976 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2977 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2978 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2979 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2980 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2981 | ||
2982 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2983 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2984 | if { (ac_try="$ac_link" | |
2985 | case "(($ac_try" in | |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2987 | *) ac_try_echo=$ac_try;; | |
2988 | esac | |
2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2990 | (eval "$ac_link") 2>&5 | |
b3076f16 | 2991 | ac_status=$? |
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2993 | (exit $ac_status); }; then | |
2994 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2995 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2996 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2997 | # `rm'. | |
2998 | for ac_file in conftest.exe conftest conftest.*; do | |
2999 | test -f "$ac_file" || continue | |
3000 | case $ac_file in | |
a8b2ad8d | 3001 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
b3076f16 | 3002 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b3076f16 | 3003 | break;; |
3004 | * ) break;; | |
3005 | esac | |
3006 | done | |
3007 | else | |
3008 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3009 | See \`config.log' for more details." >&5 | |
3010 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3011 | See \`config.log' for more details." >&2;} | |
3012 | { (exit 1); exit 1; }; } | |
3013 | fi | |
3014 | ||
3015 | rm -f conftest$ac_cv_exeext | |
a8b2ad8d | 3016 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3017 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
b3076f16 | 3018 | |
3019 | rm -f conftest.$ac_ext | |
3020 | EXEEXT=$ac_cv_exeext | |
3021 | ac_exeext=$EXEEXT | |
a8b2ad8d | 3022 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3023 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
b3076f16 | 3024 | if test "${ac_cv_objext+set}" = set; then |
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3026 | else | |
3027 | cat >conftest.$ac_ext <<_ACEOF | |
3028 | /* confdefs.h. */ | |
3029 | _ACEOF | |
3030 | cat confdefs.h >>conftest.$ac_ext | |
3031 | cat >>conftest.$ac_ext <<_ACEOF | |
3032 | /* end confdefs.h. */ | |
3033 | ||
3034 | int | |
3035 | main () | |
3036 | { | |
3037 | ||
3038 | ; | |
3039 | return 0; | |
3040 | } | |
3041 | _ACEOF | |
3042 | rm -f conftest.o conftest.obj | |
a8b2ad8d | 3043 | if { (ac_try="$ac_compile" |
3044 | case "(($ac_try" in | |
3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3046 | *) ac_try_echo=$ac_try;; | |
3047 | esac | |
3048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3049 | (eval "$ac_compile") 2>&5 | |
b3076f16 | 3050 | ac_status=$? |
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3052 | (exit $ac_status); }; then | |
a8b2ad8d | 3053 | for ac_file in conftest.o conftest.obj conftest.*; do |
3054 | test -f "$ac_file" || continue; | |
b3076f16 | 3055 | case $ac_file in |
a8b2ad8d | 3056 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
b3076f16 | 3057 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3058 | break;; | |
3059 | esac | |
3060 | done | |
3061 | else | |
3062 | echo "$as_me: failed program was:" >&5 | |
3063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3064 | ||
3065 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3066 | See \`config.log' for more details." >&5 | |
3067 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3068 | See \`config.log' for more details." >&2;} | |
3069 | { (exit 1); exit 1; }; } | |
3070 | fi | |
3071 | ||
3072 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3073 | fi | |
a8b2ad8d | 3074 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3075 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
b3076f16 | 3076 | OBJEXT=$ac_cv_objext |
3077 | ac_objext=$OBJEXT | |
a8b2ad8d | 3078 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3079 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 3080 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3082 | else | |
3083 | cat >conftest.$ac_ext <<_ACEOF | |
3084 | /* confdefs.h. */ | |
3085 | _ACEOF | |
3086 | cat confdefs.h >>conftest.$ac_ext | |
3087 | cat >>conftest.$ac_ext <<_ACEOF | |
3088 | /* end confdefs.h. */ | |
3089 | ||
3090 | int | |
3091 | main () | |
3092 | { | |
3093 | #ifndef __GNUC__ | |
3094 | choke me | |
3095 | #endif | |
3096 | ||
3097 | ; | |
3098 | return 0; | |
3099 | } | |
3100 | _ACEOF | |
3101 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3102 | if { (ac_try="$ac_compile" |
3103 | case "(($ac_try" in | |
3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3105 | *) ac_try_echo=$ac_try;; | |
3106 | esac | |
3107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3108 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3109 | ac_status=$? |
3110 | grep -v '^ *+' conftest.er1 >conftest.err | |
3111 | rm -f conftest.er1 | |
3112 | cat conftest.err >&5 | |
3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3114 | (exit $ac_status); } && { |
3115 | test -z "$ac_c_werror_flag" || | |
3116 | test ! -s conftest.err | |
3117 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3118 | ac_compiler_gnu=yes |
3119 | else | |
3120 | echo "$as_me: failed program was:" >&5 | |
3121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3122 | ||
a8b2ad8d | 3123 | ac_compiler_gnu=no |
b3076f16 | 3124 | fi |
a8b2ad8d | 3125 | |
3126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3127 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3128 | ||
3129 | fi | |
a8b2ad8d | 3130 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3131 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 3132 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3133 | ac_test_CFLAGS=${CFLAGS+set} | |
3134 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 3135 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3136 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 3137 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3139 | else | |
a8b2ad8d | 3140 | ac_save_c_werror_flag=$ac_c_werror_flag |
3141 | ac_c_werror_flag=yes | |
3142 | ac_cv_prog_cc_g=no | |
3143 | CFLAGS="-g" | |
3144 | cat >conftest.$ac_ext <<_ACEOF | |
3145 | /* confdefs.h. */ | |
3146 | _ACEOF | |
3147 | cat confdefs.h >>conftest.$ac_ext | |
3148 | cat >>conftest.$ac_ext <<_ACEOF | |
3149 | /* end confdefs.h. */ | |
3150 | ||
3151 | int | |
3152 | main () | |
3153 | { | |
3154 | ||
3155 | ; | |
3156 | return 0; | |
3157 | } | |
3158 | _ACEOF | |
3159 | rm -f conftest.$ac_objext | |
3160 | if { (ac_try="$ac_compile" | |
3161 | case "(($ac_try" in | |
3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3163 | *) ac_try_echo=$ac_try;; | |
3164 | esac | |
3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3166 | (eval "$ac_compile") 2>conftest.er1 | |
3167 | ac_status=$? | |
3168 | grep -v '^ *+' conftest.er1 >conftest.err | |
3169 | rm -f conftest.er1 | |
3170 | cat conftest.err >&5 | |
3171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3172 | (exit $ac_status); } && { |
3173 | test -z "$ac_c_werror_flag" || | |
3174 | test ! -s conftest.err | |
3175 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3176 | ac_cv_prog_cc_g=yes |
3177 | else | |
3178 | echo "$as_me: failed program was:" >&5 | |
3179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3180 | ||
3181 | CFLAGS="" | |
3182 | cat >conftest.$ac_ext <<_ACEOF | |
3183 | /* confdefs.h. */ | |
3184 | _ACEOF | |
3185 | cat confdefs.h >>conftest.$ac_ext | |
3186 | cat >>conftest.$ac_ext <<_ACEOF | |
3187 | /* end confdefs.h. */ | |
3188 | ||
3189 | int | |
3190 | main () | |
3191 | { | |
3192 | ||
3193 | ; | |
3194 | return 0; | |
3195 | } | |
3196 | _ACEOF | |
3197 | rm -f conftest.$ac_objext | |
3198 | if { (ac_try="$ac_compile" | |
3199 | case "(($ac_try" in | |
3200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3201 | *) ac_try_echo=$ac_try;; | |
3202 | esac | |
3203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3204 | (eval "$ac_compile") 2>conftest.er1 | |
3205 | ac_status=$? | |
3206 | grep -v '^ *+' conftest.er1 >conftest.err | |
3207 | rm -f conftest.er1 | |
3208 | cat conftest.err >&5 | |
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3210 | (exit $ac_status); } && { |
3211 | test -z "$ac_c_werror_flag" || | |
3212 | test ! -s conftest.err | |
3213 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3214 | : |
3215 | else | |
3216 | echo "$as_me: failed program was:" >&5 | |
3217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3218 | ||
3219 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3220 | CFLAGS="-g" | |
3221 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 3222 | /* confdefs.h. */ |
3223 | _ACEOF | |
3224 | cat confdefs.h >>conftest.$ac_ext | |
3225 | cat >>conftest.$ac_ext <<_ACEOF | |
3226 | /* end confdefs.h. */ | |
3227 | ||
3228 | int | |
3229 | main () | |
3230 | { | |
3231 | ||
3232 | ; | |
3233 | return 0; | |
3234 | } | |
3235 | _ACEOF | |
3236 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3237 | if { (ac_try="$ac_compile" |
3238 | case "(($ac_try" in | |
3239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3240 | *) ac_try_echo=$ac_try;; | |
3241 | esac | |
3242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3243 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3244 | ac_status=$? |
3245 | grep -v '^ *+' conftest.er1 >conftest.err | |
3246 | rm -f conftest.er1 | |
3247 | cat conftest.err >&5 | |
3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3249 | (exit $ac_status); } && { |
3250 | test -z "$ac_c_werror_flag" || | |
3251 | test ! -s conftest.err | |
3252 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3253 | ac_cv_prog_cc_g=yes |
3254 | else | |
3255 | echo "$as_me: failed program was:" >&5 | |
3256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3257 | ||
a8b2ad8d | 3258 | |
3259 | fi | |
3260 | ||
3261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3262 | fi | |
3263 | ||
3264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3265 | fi |
a8b2ad8d | 3266 | |
3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3268 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 3269 | fi |
a8b2ad8d | 3270 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3271 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 3272 | if test "$ac_test_CFLAGS" = set; then |
3273 | CFLAGS=$ac_save_CFLAGS | |
3274 | elif test $ac_cv_prog_cc_g = yes; then | |
3275 | if test "$GCC" = yes; then | |
3276 | CFLAGS="-g -O2" | |
3277 | else | |
3278 | CFLAGS="-g" | |
3279 | fi | |
3280 | else | |
3281 | if test "$GCC" = yes; then | |
3282 | CFLAGS="-O2" | |
3283 | else | |
3284 | CFLAGS= | |
3285 | fi | |
3286 | fi | |
a8b2ad8d | 3287 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3288 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3289 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3291 | else | |
a8b2ad8d | 3292 | ac_cv_prog_cc_c89=no |
b3076f16 | 3293 | ac_save_CC=$CC |
3294 | cat >conftest.$ac_ext <<_ACEOF | |
3295 | /* confdefs.h. */ | |
3296 | _ACEOF | |
3297 | cat confdefs.h >>conftest.$ac_ext | |
3298 | cat >>conftest.$ac_ext <<_ACEOF | |
3299 | /* end confdefs.h. */ | |
3300 | #include <stdarg.h> | |
3301 | #include <stdio.h> | |
3302 | #include <sys/types.h> | |
3303 | #include <sys/stat.h> | |
3304 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3305 | struct buf { int x; }; | |
3306 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3307 | static char *e (p, i) | |
3308 | char **p; | |
3309 | int i; | |
3310 | { | |
3311 | return p[i]; | |
3312 | } | |
3313 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3314 | { | |
3315 | char *s; | |
3316 | va_list v; | |
3317 | va_start (v,p); | |
3318 | s = g (p, va_arg (v,int)); | |
3319 | va_end (v); | |
3320 | return s; | |
3321 | } | |
3322 | ||
3323 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3324 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3325 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 3326 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 3327 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3328 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 3329 | that's true only with -std. */ |
b3076f16 | 3330 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3331 | ||
a8b2ad8d | 3332 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3333 | inside strings and character constants. */ | |
3334 | #define FOO(x) 'x' | |
3335 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3336 | ||
b3076f16 | 3337 | int test (int i, double x); |
3338 | struct s1 {int (*f) (int a);}; | |
3339 | struct s2 {int (*f) (double a);}; | |
3340 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3341 | int argc; | |
3342 | char **argv; | |
3343 | int | |
3344 | main () | |
3345 | { | |
3346 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3347 | ; | |
3348 | return 0; | |
3349 | } | |
3350 | _ACEOF | |
a8b2ad8d | 3351 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3352 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 3353 | do |
3354 | CC="$ac_save_CC $ac_arg" | |
3355 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3356 | if { (ac_try="$ac_compile" |
3357 | case "(($ac_try" in | |
3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3359 | *) ac_try_echo=$ac_try;; | |
3360 | esac | |
3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3362 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3363 | ac_status=$? |
3364 | grep -v '^ *+' conftest.er1 >conftest.err | |
3365 | rm -f conftest.er1 | |
3366 | cat conftest.err >&5 | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3368 | (exit $ac_status); } && { |
3369 | test -z "$ac_c_werror_flag" || | |
3370 | test ! -s conftest.err | |
3371 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3372 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 3373 | else |
3374 | echo "$as_me: failed program was:" >&5 | |
3375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3376 | ||
a8b2ad8d | 3377 | |
b3076f16 | 3378 | fi |
a8b2ad8d | 3379 | |
3380 | rm -f core conftest.err conftest.$ac_objext | |
3381 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 3382 | done |
a8b2ad8d | 3383 | rm -f conftest.$ac_ext |
b3076f16 | 3384 | CC=$ac_save_CC |
3385 | ||
3386 | fi | |
a8b2ad8d | 3387 | # AC_CACHE_VAL |
3388 | case "x$ac_cv_prog_cc_c89" in | |
3389 | x) | |
3390 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3391 | echo "${ECHO_T}none needed" >&6; } ;; | |
3392 | xno) | |
3393 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3394 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 3395 | *) |
a8b2ad8d | 3396 | CC="$CC $ac_cv_prog_cc_c89" |
3397 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3398 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 3399 | esac |
3400 | ||
b3076f16 | 3401 | |
b3076f16 | 3402 | ac_ext=c |
3403 | ac_cpp='$CPP $CPPFLAGS' | |
3404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3407 | ||
ec1a68c8 | 3408 | depcc="$CC" am_compiler_list= |
3409 | ||
a8b2ad8d | 3410 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3411 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 3412 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3414 | else | |
3415 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3416 | # We make a subdir and do the tests there. Otherwise we can end up | |
3417 | # making bogus files that we don't know about and never remove. For | |
3418 | # instance it was reported that on HP-UX the gcc test will end up | |
3419 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3420 | # in D'. | |
3421 | mkdir conftest.dir | |
3422 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3423 | # using a relative directory. | |
3424 | cp "$am_depcomp" conftest.dir | |
3425 | cd conftest.dir | |
3426 | # We will build objects and dependencies in a subdirectory because | |
3427 | # it helps to detect inapplicable dependency modes. For instance | |
3428 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3429 | # side effect of compilation, but ICC will put the dependencies in | |
3430 | # the current directory while Tru64 will put them in the object | |
3431 | # directory. | |
3432 | mkdir sub | |
3433 | ||
3434 | am_cv_CC_dependencies_compiler_type=none | |
3435 | if test "$am_compiler_list" = ""; then | |
3436 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3437 | fi | |
3438 | for depmode in $am_compiler_list; do | |
3439 | # Setup a source with many dependencies, because some compilers | |
3440 | # like to wrap large dependency lists on column 80 (with \), and | |
3441 | # we should not choose a depcomp mode which is confused by this. | |
3442 | # | |
3443 | # We need to recreate these files for each test, as the compiler may | |
3444 | # overwrite some of them when testing with obscure command lines. | |
3445 | # This happens at least with the AIX C compiler. | |
3446 | : > sub/conftest.c | |
3447 | for i in 1 2 3 4 5 6; do | |
3448 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3449 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3450 | # Solaris 8's {/usr,}/bin/sh. | |
3451 | touch sub/conftst$i.h | |
3452 | done | |
3453 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3454 | ||
3455 | case $depmode in | |
3456 | nosideeffect) | |
3457 | # after this tag, mechanisms are not by side-effect, so they'll | |
3458 | # only be used when explicitly requested | |
3459 | if test "x$enable_dependency_tracking" = xyes; then | |
3460 | continue | |
3461 | else | |
3462 | break | |
3463 | fi | |
3464 | ;; | |
3465 | none) break ;; | |
3466 | esac | |
3467 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3468 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3469 | # handle `-M -o', and we need to detect this. | |
3470 | if depmode=$depmode \ | |
3471 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3472 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3473 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3474 | >/dev/null 2>conftest.err && | |
2f65da8f | 3475 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 3476 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3477 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3478 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3479 | # icc doesn't choke on unknown options, it will just issue warnings | |
3480 | # or remarks (even with -Werror). So we grep stderr for any message | |
3481 | # that says an option was ignored or not supported. | |
3482 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3483 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3484 | # The diagnosis changed in icc 8.0: | |
3485 | # icc: Command line remark: option '-MP' not supported | |
3486 | if (grep 'ignoring option' conftest.err || | |
3487 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3488 | am_cv_CC_dependencies_compiler_type=$depmode | |
3489 | break | |
3490 | fi | |
3491 | fi | |
3492 | done | |
3493 | ||
3494 | cd .. | |
3495 | rm -rf conftest.dir | |
3496 | else | |
3497 | am_cv_CC_dependencies_compiler_type=none | |
3498 | fi | |
3499 | ||
3500 | fi | |
a8b2ad8d | 3501 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3502 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 3503 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3504 | ||
2f65da8f | 3505 | if |
ec1a68c8 | 3506 | test "x$enable_dependency_tracking" != xno \ |
3507 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3508 | am__fastdepCC_TRUE= | |
3509 | am__fastdepCC_FALSE='#' | |
3510 | else | |
3511 | am__fastdepCC_TRUE='#' | |
3512 | am__fastdepCC_FALSE= | |
3513 | fi | |
3514 | ||
3515 | ||
b3076f16 | 3516 | |
a8b2ad8d | 3517 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
3518 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
b3076f16 | 3519 | if test "${ac_cv_type_signal+set}" = set; then |
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3521 | else | |
3522 | cat >conftest.$ac_ext <<_ACEOF | |
3523 | /* confdefs.h. */ | |
3524 | _ACEOF | |
3525 | cat confdefs.h >>conftest.$ac_ext | |
3526 | cat >>conftest.$ac_ext <<_ACEOF | |
3527 | /* end confdefs.h. */ | |
3528 | #include <sys/types.h> | |
3529 | #include <signal.h> | |
b3076f16 | 3530 | |
3531 | int | |
3532 | main () | |
3533 | { | |
a8b2ad8d | 3534 | return *(signal (0, 0)) (0) == 1; |
b3076f16 | 3535 | ; |
3536 | return 0; | |
3537 | } | |
3538 | _ACEOF | |
3539 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3540 | if { (ac_try="$ac_compile" |
3541 | case "(($ac_try" in | |
3542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3543 | *) ac_try_echo=$ac_try;; | |
3544 | esac | |
3545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3546 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3547 | ac_status=$? |
3548 | grep -v '^ *+' conftest.er1 >conftest.err | |
3549 | rm -f conftest.er1 | |
3550 | cat conftest.err >&5 | |
3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3552 | (exit $ac_status); } && { |
3553 | test -z "$ac_c_werror_flag" || | |
3554 | test ! -s conftest.err | |
3555 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3556 | ac_cv_type_signal=int |
b3076f16 | 3557 | else |
3558 | echo "$as_me: failed program was:" >&5 | |
3559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3560 | ||
a8b2ad8d | 3561 | ac_cv_type_signal=void |
b3076f16 | 3562 | fi |
a8b2ad8d | 3563 | |
3564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3565 | fi |
a8b2ad8d | 3566 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
3567 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
b3076f16 | 3568 | |
3569 | cat >>confdefs.h <<_ACEOF | |
3570 | #define RETSIGTYPE $ac_cv_type_signal | |
3571 | _ACEOF | |
3572 | ||
3573 | ||
a8b2ad8d | 3574 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3575 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
b3076f16 | 3576 | if test "${ac_cv_c_const+set}" = set; then |
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3578 | else | |
3579 | cat >conftest.$ac_ext <<_ACEOF | |
3580 | /* confdefs.h. */ | |
3581 | _ACEOF | |
3582 | cat confdefs.h >>conftest.$ac_ext | |
3583 | cat >>conftest.$ac_ext <<_ACEOF | |
3584 | /* end confdefs.h. */ | |
3585 | ||
3586 | int | |
3587 | main () | |
3588 | { | |
3589 | /* FIXME: Include the comments suggested by Paul. */ | |
3590 | #ifndef __cplusplus | |
3591 | /* Ultrix mips cc rejects this. */ | |
3592 | typedef int charset[2]; | |
0bd0bef6 | 3593 | const charset cs; |
b3076f16 | 3594 | /* SunOS 4.1.1 cc rejects this. */ |
0bd0bef6 | 3595 | char const *const *pcpcc; |
3596 | char **ppc; | |
b3076f16 | 3597 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3598 | struct point {int x, y;}; | |
3599 | static struct point const zero = {0,0}; | |
3600 | /* AIX XL C 1.02.0.0 rejects this. | |
3601 | It does not let you subtract one const X* pointer from another in | |
3602 | an arm of an if-expression whose if-part is not a constant | |
3603 | expression */ | |
3604 | const char *g = "string"; | |
0bd0bef6 | 3605 | pcpcc = &g + (g ? g-g : 0); |
b3076f16 | 3606 | /* HPUX 7.0 cc rejects these. */ |
0bd0bef6 | 3607 | ++pcpcc; |
3608 | ppc = (char**) pcpcc; | |
3609 | pcpcc = (char const *const *) ppc; | |
b3076f16 | 3610 | { /* SCO 3.2v4 cc rejects this. */ |
3611 | char *t; | |
3612 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3613 | ||
3614 | *t++ = 0; | |
a8b2ad8d | 3615 | if (s) return 0; |
b3076f16 | 3616 | } |
3617 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3618 | int x[] = {25, 17}; | |
3619 | const int *foo = &x[0]; | |
3620 | ++foo; | |
3621 | } | |
3622 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3623 | typedef const int *iptr; | |
3624 | iptr p = 0; | |
3625 | ++p; | |
3626 | } | |
3627 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3628 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3629 | struct s { int j; const int *ap[3]; }; | |
3630 | struct s *b; b->j = 5; | |
3631 | } | |
3632 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3633 | const int foo = 10; | |
a8b2ad8d | 3634 | if (!foo) return 0; |
b3076f16 | 3635 | } |
0bd0bef6 | 3636 | return !cs[0] && !zero.x; |
b3076f16 | 3637 | #endif |
3638 | ||
3639 | ; | |
3640 | return 0; | |
3641 | } | |
3642 | _ACEOF | |
3643 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3644 | if { (ac_try="$ac_compile" |
3645 | case "(($ac_try" in | |
3646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3647 | *) ac_try_echo=$ac_try;; | |
3648 | esac | |
3649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3650 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3651 | ac_status=$? |
3652 | grep -v '^ *+' conftest.er1 >conftest.err | |
3653 | rm -f conftest.er1 | |
3654 | cat conftest.err >&5 | |
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3656 | (exit $ac_status); } && { |
3657 | test -z "$ac_c_werror_flag" || | |
3658 | test ! -s conftest.err | |
3659 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3660 | ac_cv_c_const=yes |
3661 | else | |
3662 | echo "$as_me: failed program was:" >&5 | |
3663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3664 | ||
a8b2ad8d | 3665 | ac_cv_c_const=no |
b3076f16 | 3666 | fi |
a8b2ad8d | 3667 | |
3668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3669 | fi |
a8b2ad8d | 3670 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3671 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
b3076f16 | 3672 | if test $ac_cv_c_const = no; then |
3673 | ||
3674 | cat >>confdefs.h <<\_ACEOF | |
3675 | #define const | |
3676 | _ACEOF | |
3677 | ||
3678 | fi | |
3679 | ||
0f6fe38c | 3680 | |
3681 | for ac_prog in gawk mawk nawk awk | |
3682 | do | |
3683 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3684 | set dummy $ac_prog; ac_word=$2 | |
3685 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3687 | if test "${ac_cv_prog_AWK+set}" = set; then | |
3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3689 | else | |
3690 | if test -n "$AWK"; then | |
3691 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3692 | else | |
3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3694 | for as_dir in $PATH | |
3695 | do | |
3696 | IFS=$as_save_IFS | |
3697 | test -z "$as_dir" && as_dir=. | |
3698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
0f6fe38c | 3700 | ac_cv_prog_AWK="$ac_prog" |
3701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3702 | break 2 | |
3703 | fi | |
3704 | done | |
3705 | done | |
3706 | IFS=$as_save_IFS | |
3707 | ||
3708 | fi | |
3709 | fi | |
3710 | AWK=$ac_cv_prog_AWK | |
3711 | if test -n "$AWK"; then | |
3712 | { echo "$as_me:$LINENO: result: $AWK" >&5 | |
3713 | echo "${ECHO_T}$AWK" >&6; } | |
3714 | else | |
3715 | { echo "$as_me:$LINENO: result: no" >&5 | |
3716 | echo "${ECHO_T}no" >&6; } | |
3717 | fi | |
b3076f16 | 3718 | |
a8b2ad8d | 3719 | |
b3076f16 | 3720 | test -n "$AWK" && break |
3721 | done | |
3722 | ||
3723 | ac_ext=c | |
3724 | ac_cpp='$CPP $CPPFLAGS' | |
3725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3728 | if test -n "$ac_tool_prefix"; then | |
3729 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3730 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 3731 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3733 | if test "${ac_cv_prog_CC+set}" = set; then |
3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3735 | else | |
3736 | if test -n "$CC"; then | |
3737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3738 | else | |
3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3740 | for as_dir in $PATH | |
3741 | do | |
3742 | IFS=$as_save_IFS | |
3743 | test -z "$as_dir" && as_dir=. | |
3744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3746 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3748 | break 2 | |
3749 | fi | |
3750 | done | |
3751 | done | |
a8b2ad8d | 3752 | IFS=$as_save_IFS |
b3076f16 | 3753 | |
3754 | fi | |
3755 | fi | |
3756 | CC=$ac_cv_prog_CC | |
3757 | if test -n "$CC"; then | |
a8b2ad8d | 3758 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3759 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3760 | else |
a8b2ad8d | 3761 | { echo "$as_me:$LINENO: result: no" >&5 |
3762 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3763 | fi |
3764 | ||
a8b2ad8d | 3765 | |
b3076f16 | 3766 | fi |
3767 | if test -z "$ac_cv_prog_CC"; then | |
3768 | ac_ct_CC=$CC | |
3769 | # Extract the first word of "gcc", so it can be a program name with args. | |
3770 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 3771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3775 | else | |
3776 | if test -n "$ac_ct_CC"; then | |
3777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3778 | else | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3786 | ac_cv_prog_ac_ct_CC="gcc" |
3787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
a8b2ad8d | 3792 | IFS=$as_save_IFS |
b3076f16 | 3793 | |
3794 | fi | |
3795 | fi | |
3796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3797 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 3798 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3799 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 3800 | else |
a8b2ad8d | 3801 | { echo "$as_me:$LINENO: result: no" >&5 |
3802 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3803 | fi |
3804 | ||
a8b2ad8d | 3805 | if test "x$ac_ct_CC" = x; then |
3806 | CC="" | |
3807 | else | |
3808 | case $cross_compiling:$ac_tool_warned in | |
3809 | yes:) | |
3810 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3811 | whose name does not start with the host triplet. If you think this | |
3812 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3813 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3814 | whose name does not start with the host triplet. If you think this | |
3815 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3816 | ac_tool_warned=yes ;; | |
3817 | esac | |
3818 | CC=$ac_ct_CC | |
3819 | fi | |
b3076f16 | 3820 | else |
3821 | CC="$ac_cv_prog_CC" | |
3822 | fi | |
3823 | ||
3824 | if test -z "$CC"; then | |
a8b2ad8d | 3825 | if test -n "$ac_tool_prefix"; then |
3826 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 3827 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 3828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3830 | if test "${ac_cv_prog_CC+set}" = set; then |
3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3832 | else | |
3833 | if test -n "$CC"; then | |
3834 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3835 | else | |
3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3837 | for as_dir in $PATH | |
3838 | do | |
3839 | IFS=$as_save_IFS | |
3840 | test -z "$as_dir" && as_dir=. | |
3841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3843 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3845 | break 2 | |
3846 | fi | |
3847 | done | |
3848 | done | |
a8b2ad8d | 3849 | IFS=$as_save_IFS |
b3076f16 | 3850 | |
3851 | fi | |
3852 | fi | |
3853 | CC=$ac_cv_prog_CC | |
3854 | if test -n "$CC"; then | |
a8b2ad8d | 3855 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3856 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3857 | else |
a8b2ad8d | 3858 | { echo "$as_me:$LINENO: result: no" >&5 |
3859 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3860 | fi |
3861 | ||
b3076f16 | 3862 | |
a8b2ad8d | 3863 | fi |
b3076f16 | 3864 | fi |
3865 | if test -z "$CC"; then | |
3866 | # Extract the first word of "cc", so it can be a program name with args. | |
3867 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 3868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3870 | if test "${ac_cv_prog_CC+set}" = set; then |
3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3872 | else | |
3873 | if test -n "$CC"; then | |
3874 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3875 | else | |
3876 | ac_prog_rejected=no | |
3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3878 | for as_dir in $PATH | |
3879 | do | |
3880 | IFS=$as_save_IFS | |
3881 | test -z "$as_dir" && as_dir=. | |
3882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3884 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3885 | ac_prog_rejected=yes | |
3886 | continue | |
3887 | fi | |
3888 | ac_cv_prog_CC="cc" | |
3889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3890 | break 2 | |
3891 | fi | |
3892 | done | |
3893 | done | |
a8b2ad8d | 3894 | IFS=$as_save_IFS |
b3076f16 | 3895 | |
3896 | if test $ac_prog_rejected = yes; then | |
3897 | # We found a bogon in the path, so make sure we never use it. | |
3898 | set dummy $ac_cv_prog_CC | |
3899 | shift | |
3900 | if test $# != 0; then | |
3901 | # We chose a different compiler from the bogus one. | |
3902 | # However, it has the same basename, so the bogon will be chosen | |
3903 | # first if we set CC to just the basename; use the full file name. | |
3904 | shift | |
3905 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3906 | fi | |
3907 | fi | |
3908 | fi | |
3909 | fi | |
3910 | CC=$ac_cv_prog_CC | |
3911 | if test -n "$CC"; then | |
a8b2ad8d | 3912 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3913 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3914 | else |
a8b2ad8d | 3915 | { echo "$as_me:$LINENO: result: no" >&5 |
3916 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3917 | fi |
3918 | ||
a8b2ad8d | 3919 | |
b3076f16 | 3920 | fi |
3921 | if test -z "$CC"; then | |
3922 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 3923 | for ac_prog in cl.exe |
b3076f16 | 3924 | do |
3925 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3926 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 3927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3929 | if test "${ac_cv_prog_CC+set}" = set; then |
3930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3931 | else | |
3932 | if test -n "$CC"; then | |
3933 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3934 | else | |
3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3936 | for as_dir in $PATH | |
3937 | do | |
3938 | IFS=$as_save_IFS | |
3939 | test -z "$as_dir" && as_dir=. | |
3940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3942 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3944 | break 2 | |
3945 | fi | |
3946 | done | |
3947 | done | |
a8b2ad8d | 3948 | IFS=$as_save_IFS |
b3076f16 | 3949 | |
3950 | fi | |
3951 | fi | |
3952 | CC=$ac_cv_prog_CC | |
3953 | if test -n "$CC"; then | |
a8b2ad8d | 3954 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3955 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3956 | else |
a8b2ad8d | 3957 | { echo "$as_me:$LINENO: result: no" >&5 |
3958 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3959 | fi |
3960 | ||
a8b2ad8d | 3961 | |
b3076f16 | 3962 | test -n "$CC" && break |
3963 | done | |
3964 | fi | |
3965 | if test -z "$CC"; then | |
3966 | ac_ct_CC=$CC | |
a8b2ad8d | 3967 | for ac_prog in cl.exe |
b3076f16 | 3968 | do |
3969 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3970 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 3971 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3973 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3975 | else | |
3976 | if test -n "$ac_ct_CC"; then | |
3977 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3978 | else | |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3980 | for as_dir in $PATH | |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3986 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3988 | break 2 | |
3989 | fi | |
3990 | done | |
3991 | done | |
a8b2ad8d | 3992 | IFS=$as_save_IFS |
b3076f16 | 3993 | |
3994 | fi | |
3995 | fi | |
3996 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3997 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 3998 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3999 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 4000 | else |
a8b2ad8d | 4001 | { echo "$as_me:$LINENO: result: no" >&5 |
4002 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4003 | fi |
4004 | ||
a8b2ad8d | 4005 | |
b3076f16 | 4006 | test -n "$ac_ct_CC" && break |
4007 | done | |
4008 | ||
a8b2ad8d | 4009 | if test "x$ac_ct_CC" = x; then |
4010 | CC="" | |
4011 | else | |
4012 | case $cross_compiling:$ac_tool_warned in | |
4013 | yes:) | |
4014 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4015 | whose name does not start with the host triplet. If you think this | |
4016 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4017 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4018 | whose name does not start with the host triplet. If you think this | |
4019 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4020 | ac_tool_warned=yes ;; | |
4021 | esac | |
4022 | CC=$ac_ct_CC | |
4023 | fi | |
b3076f16 | 4024 | fi |
4025 | ||
4026 | fi | |
4027 | ||
4028 | ||
4029 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4030 | See \`config.log' for more details." >&5 | |
4031 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4032 | See \`config.log' for more details." >&2;} | |
4033 | { (exit 1); exit 1; }; } | |
4034 | ||
4035 | # Provide some information about the compiler. | |
a8b2ad8d | 4036 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 4037 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 4038 | { (ac_try="$ac_compiler --version >&5" |
4039 | case "(($ac_try" in | |
4040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4041 | *) ac_try_echo=$ac_try;; | |
4042 | esac | |
4043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4044 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 4045 | ac_status=$? |
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4047 | (exit $ac_status); } | |
a8b2ad8d | 4048 | { (ac_try="$ac_compiler -v >&5" |
4049 | case "(($ac_try" in | |
4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4051 | *) ac_try_echo=$ac_try;; | |
4052 | esac | |
4053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4054 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 4055 | ac_status=$? |
4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4057 | (exit $ac_status); } | |
a8b2ad8d | 4058 | { (ac_try="$ac_compiler -V >&5" |
4059 | case "(($ac_try" in | |
4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4061 | *) ac_try_echo=$ac_try;; | |
4062 | esac | |
4063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4064 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 4065 | ac_status=$? |
4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4067 | (exit $ac_status); } | |
4068 | ||
a8b2ad8d | 4069 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4070 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 4071 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4073 | else | |
4074 | cat >conftest.$ac_ext <<_ACEOF | |
4075 | /* confdefs.h. */ | |
4076 | _ACEOF | |
4077 | cat confdefs.h >>conftest.$ac_ext | |
4078 | cat >>conftest.$ac_ext <<_ACEOF | |
4079 | /* end confdefs.h. */ | |
4080 | ||
4081 | int | |
4082 | main () | |
4083 | { | |
4084 | #ifndef __GNUC__ | |
4085 | choke me | |
4086 | #endif | |
4087 | ||
4088 | ; | |
4089 | return 0; | |
4090 | } | |
4091 | _ACEOF | |
4092 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4093 | if { (ac_try="$ac_compile" |
4094 | case "(($ac_try" in | |
4095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4096 | *) ac_try_echo=$ac_try;; | |
4097 | esac | |
4098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4099 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4100 | ac_status=$? |
4101 | grep -v '^ *+' conftest.er1 >conftest.err | |
4102 | rm -f conftest.er1 | |
4103 | cat conftest.err >&5 | |
4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4105 | (exit $ac_status); } && { |
4106 | test -z "$ac_c_werror_flag" || | |
4107 | test ! -s conftest.err | |
4108 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 4109 | ac_compiler_gnu=yes |
4110 | else | |
4111 | echo "$as_me: failed program was:" >&5 | |
4112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4113 | ||
a8b2ad8d | 4114 | ac_compiler_gnu=no |
b3076f16 | 4115 | fi |
a8b2ad8d | 4116 | |
4117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4118 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4119 | ||
4120 | fi | |
a8b2ad8d | 4121 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4122 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 4123 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
4124 | ac_test_CFLAGS=${CFLAGS+set} | |
4125 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 4126 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4127 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 4128 | if test "${ac_cv_prog_cc_g+set}" = set; then |
4129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4130 | else | |
a8b2ad8d | 4131 | ac_save_c_werror_flag=$ac_c_werror_flag |
4132 | ac_c_werror_flag=yes | |
4133 | ac_cv_prog_cc_g=no | |
4134 | CFLAGS="-g" | |
4135 | cat >conftest.$ac_ext <<_ACEOF | |
4136 | /* confdefs.h. */ | |
4137 | _ACEOF | |
4138 | cat confdefs.h >>conftest.$ac_ext | |
4139 | cat >>conftest.$ac_ext <<_ACEOF | |
4140 | /* end confdefs.h. */ | |
4141 | ||
4142 | int | |
4143 | main () | |
4144 | { | |
4145 | ||
4146 | ; | |
4147 | return 0; | |
4148 | } | |
4149 | _ACEOF | |
4150 | rm -f conftest.$ac_objext | |
4151 | if { (ac_try="$ac_compile" | |
4152 | case "(($ac_try" in | |
4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4154 | *) ac_try_echo=$ac_try;; | |
4155 | esac | |
4156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4157 | (eval "$ac_compile") 2>conftest.er1 | |
4158 | ac_status=$? | |
4159 | grep -v '^ *+' conftest.er1 >conftest.err | |
4160 | rm -f conftest.er1 | |
4161 | cat conftest.err >&5 | |
4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4163 | (exit $ac_status); } && { |
4164 | test -z "$ac_c_werror_flag" || | |
4165 | test ! -s conftest.err | |
4166 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4167 | ac_cv_prog_cc_g=yes |
4168 | else | |
4169 | echo "$as_me: failed program was:" >&5 | |
4170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4171 | ||
4172 | CFLAGS="" | |
4173 | cat >conftest.$ac_ext <<_ACEOF | |
4174 | /* confdefs.h. */ | |
4175 | _ACEOF | |
4176 | cat confdefs.h >>conftest.$ac_ext | |
4177 | cat >>conftest.$ac_ext <<_ACEOF | |
4178 | /* end confdefs.h. */ | |
4179 | ||
4180 | int | |
4181 | main () | |
4182 | { | |
4183 | ||
4184 | ; | |
4185 | return 0; | |
4186 | } | |
4187 | _ACEOF | |
4188 | rm -f conftest.$ac_objext | |
4189 | if { (ac_try="$ac_compile" | |
4190 | case "(($ac_try" in | |
4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4192 | *) ac_try_echo=$ac_try;; | |
4193 | esac | |
4194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4195 | (eval "$ac_compile") 2>conftest.er1 | |
4196 | ac_status=$? | |
4197 | grep -v '^ *+' conftest.er1 >conftest.err | |
4198 | rm -f conftest.er1 | |
4199 | cat conftest.err >&5 | |
4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4201 | (exit $ac_status); } && { |
4202 | test -z "$ac_c_werror_flag" || | |
4203 | test ! -s conftest.err | |
4204 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4205 | : |
4206 | else | |
4207 | echo "$as_me: failed program was:" >&5 | |
4208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4209 | ||
4210 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4211 | CFLAGS="-g" | |
4212 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 4213 | /* confdefs.h. */ |
4214 | _ACEOF | |
4215 | cat confdefs.h >>conftest.$ac_ext | |
4216 | cat >>conftest.$ac_ext <<_ACEOF | |
4217 | /* end confdefs.h. */ | |
4218 | ||
4219 | int | |
4220 | main () | |
4221 | { | |
4222 | ||
4223 | ; | |
4224 | return 0; | |
4225 | } | |
4226 | _ACEOF | |
4227 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4228 | if { (ac_try="$ac_compile" |
4229 | case "(($ac_try" in | |
4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4231 | *) ac_try_echo=$ac_try;; | |
4232 | esac | |
4233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4234 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4235 | ac_status=$? |
4236 | grep -v '^ *+' conftest.er1 >conftest.err | |
4237 | rm -f conftest.er1 | |
4238 | cat conftest.err >&5 | |
4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4240 | (exit $ac_status); } && { |
4241 | test -z "$ac_c_werror_flag" || | |
4242 | test ! -s conftest.err | |
4243 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 4244 | ac_cv_prog_cc_g=yes |
4245 | else | |
4246 | echo "$as_me: failed program was:" >&5 | |
4247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4248 | ||
a8b2ad8d | 4249 | |
4250 | fi | |
4251 | ||
4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4253 | fi | |
4254 | ||
4255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4256 | fi |
a8b2ad8d | 4257 | |
4258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4259 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 4260 | fi |
a8b2ad8d | 4261 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4262 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 4263 | if test "$ac_test_CFLAGS" = set; then |
4264 | CFLAGS=$ac_save_CFLAGS | |
4265 | elif test $ac_cv_prog_cc_g = yes; then | |
4266 | if test "$GCC" = yes; then | |
4267 | CFLAGS="-g -O2" | |
4268 | else | |
4269 | CFLAGS="-g" | |
4270 | fi | |
4271 | else | |
4272 | if test "$GCC" = yes; then | |
4273 | CFLAGS="-O2" | |
4274 | else | |
4275 | CFLAGS= | |
4276 | fi | |
4277 | fi | |
a8b2ad8d | 4278 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4279 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4280 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4282 | else | |
a8b2ad8d | 4283 | ac_cv_prog_cc_c89=no |
b3076f16 | 4284 | ac_save_CC=$CC |
4285 | cat >conftest.$ac_ext <<_ACEOF | |
4286 | /* confdefs.h. */ | |
4287 | _ACEOF | |
4288 | cat confdefs.h >>conftest.$ac_ext | |
4289 | cat >>conftest.$ac_ext <<_ACEOF | |
4290 | /* end confdefs.h. */ | |
4291 | #include <stdarg.h> | |
4292 | #include <stdio.h> | |
4293 | #include <sys/types.h> | |
4294 | #include <sys/stat.h> | |
4295 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4296 | struct buf { int x; }; | |
4297 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4298 | static char *e (p, i) | |
4299 | char **p; | |
4300 | int i; | |
4301 | { | |
4302 | return p[i]; | |
4303 | } | |
4304 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4305 | { | |
4306 | char *s; | |
4307 | va_list v; | |
4308 | va_start (v,p); | |
4309 | s = g (p, va_arg (v,int)); | |
4310 | va_end (v); | |
4311 | return s; | |
4312 | } | |
4313 | ||
4314 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4315 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4316 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 4317 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 4318 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4319 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 4320 | that's true only with -std. */ |
b3076f16 | 4321 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4322 | ||
a8b2ad8d | 4323 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4324 | inside strings and character constants. */ | |
4325 | #define FOO(x) 'x' | |
4326 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4327 | ||
b3076f16 | 4328 | int test (int i, double x); |
4329 | struct s1 {int (*f) (int a);}; | |
4330 | struct s2 {int (*f) (double a);}; | |
4331 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4332 | int argc; | |
4333 | char **argv; | |
4334 | int | |
4335 | main () | |
4336 | { | |
4337 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4338 | ; | |
4339 | return 0; | |
4340 | } | |
4341 | _ACEOF | |
a8b2ad8d | 4342 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4343 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 4344 | do |
4345 | CC="$ac_save_CC $ac_arg" | |
4346 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4347 | if { (ac_try="$ac_compile" |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
4352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4353 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4354 | ac_status=$? |
4355 | grep -v '^ *+' conftest.er1 >conftest.err | |
4356 | rm -f conftest.er1 | |
4357 | cat conftest.err >&5 | |
4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4359 | (exit $ac_status); } && { |
4360 | test -z "$ac_c_werror_flag" || | |
4361 | test ! -s conftest.err | |
4362 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4363 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 4364 | else |
4365 | echo "$as_me: failed program was:" >&5 | |
4366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4367 | ||
a8b2ad8d | 4368 | |
b3076f16 | 4369 | fi |
a8b2ad8d | 4370 | |
4371 | rm -f core conftest.err conftest.$ac_objext | |
4372 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 4373 | done |
a8b2ad8d | 4374 | rm -f conftest.$ac_ext |
b3076f16 | 4375 | CC=$ac_save_CC |
4376 | ||
4377 | fi | |
a8b2ad8d | 4378 | # AC_CACHE_VAL |
4379 | case "x$ac_cv_prog_cc_c89" in | |
4380 | x) | |
4381 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4382 | echo "${ECHO_T}none needed" >&6; } ;; | |
4383 | xno) | |
4384 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4385 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 4386 | *) |
a8b2ad8d | 4387 | CC="$CC $ac_cv_prog_cc_c89" |
4388 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4389 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 4390 | esac |
4391 | ||
b3076f16 | 4392 | |
b3076f16 | 4393 | ac_ext=c |
4394 | ac_cpp='$CPP $CPPFLAGS' | |
4395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4398 | ||
ec1a68c8 | 4399 | depcc="$CC" am_compiler_list= |
4400 | ||
a8b2ad8d | 4401 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4402 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 4403 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4405 | else | |
4406 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4407 | # We make a subdir and do the tests there. Otherwise we can end up | |
4408 | # making bogus files that we don't know about and never remove. For | |
4409 | # instance it was reported that on HP-UX the gcc test will end up | |
4410 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4411 | # in D'. | |
4412 | mkdir conftest.dir | |
4413 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4414 | # using a relative directory. | |
4415 | cp "$am_depcomp" conftest.dir | |
4416 | cd conftest.dir | |
4417 | # We will build objects and dependencies in a subdirectory because | |
4418 | # it helps to detect inapplicable dependency modes. For instance | |
4419 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4420 | # side effect of compilation, but ICC will put the dependencies in | |
4421 | # the current directory while Tru64 will put them in the object | |
4422 | # directory. | |
4423 | mkdir sub | |
4424 | ||
4425 | am_cv_CC_dependencies_compiler_type=none | |
4426 | if test "$am_compiler_list" = ""; then | |
4427 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4428 | fi | |
4429 | for depmode in $am_compiler_list; do | |
4430 | # Setup a source with many dependencies, because some compilers | |
4431 | # like to wrap large dependency lists on column 80 (with \), and | |
4432 | # we should not choose a depcomp mode which is confused by this. | |
4433 | # | |
4434 | # We need to recreate these files for each test, as the compiler may | |
4435 | # overwrite some of them when testing with obscure command lines. | |
4436 | # This happens at least with the AIX C compiler. | |
4437 | : > sub/conftest.c | |
4438 | for i in 1 2 3 4 5 6; do | |
4439 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4440 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4441 | # Solaris 8's {/usr,}/bin/sh. | |
4442 | touch sub/conftst$i.h | |
4443 | done | |
4444 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4445 | ||
4446 | case $depmode in | |
4447 | nosideeffect) | |
4448 | # after this tag, mechanisms are not by side-effect, so they'll | |
4449 | # only be used when explicitly requested | |
4450 | if test "x$enable_dependency_tracking" = xyes; then | |
4451 | continue | |
4452 | else | |
4453 | break | |
4454 | fi | |
4455 | ;; | |
4456 | none) break ;; | |
4457 | esac | |
4458 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4459 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4460 | # handle `-M -o', and we need to detect this. | |
4461 | if depmode=$depmode \ | |
4462 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4463 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4464 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4465 | >/dev/null 2>conftest.err && | |
2f65da8f | 4466 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
ec1a68c8 | 4467 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4468 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4469 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4470 | # icc doesn't choke on unknown options, it will just issue warnings | |
4471 | # or remarks (even with -Werror). So we grep stderr for any message | |
4472 | # that says an option was ignored or not supported. | |
4473 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4474 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4475 | # The diagnosis changed in icc 8.0: | |
4476 | # icc: Command line remark: option '-MP' not supported | |
4477 | if (grep 'ignoring option' conftest.err || | |
4478 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4479 | am_cv_CC_dependencies_compiler_type=$depmode | |
4480 | break | |
4481 | fi | |
4482 | fi | |
4483 | done | |
4484 | ||
4485 | cd .. | |
4486 | rm -rf conftest.dir | |
4487 | else | |
4488 | am_cv_CC_dependencies_compiler_type=none | |
4489 | fi | |
4490 | ||
4491 | fi | |
a8b2ad8d | 4492 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4493 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 4494 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4495 | ||
2f65da8f | 4496 | if |
ec1a68c8 | 4497 | test "x$enable_dependency_tracking" != xno \ |
4498 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4499 | am__fastdepCC_TRUE= | |
4500 | am__fastdepCC_FALSE='#' | |
4501 | else | |
4502 | am__fastdepCC_TRUE='#' | |
4503 | am__fastdepCC_FALSE= | |
4504 | fi | |
4505 | ||
4506 | ||
b3076f16 | 4507 | # Find a good install program. We prefer a C program (faster), |
4508 | # so one script is as good as another. But avoid the broken or | |
4509 | # incompatible versions: | |
4510 | # SysV /etc/install, /usr/sbin/install | |
4511 | # SunOS /usr/etc/install | |
4512 | # IRIX /sbin/install | |
4513 | # AIX /bin/install | |
4514 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4515 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4516 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4517 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4518 | # OS/2's system install, which has a completely different semantic | |
4519 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 4520 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4521 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 4522 | if test -z "$INSTALL"; then |
4523 | if test "${ac_cv_path_install+set}" = set; then | |
4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4525 | else | |
4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4527 | for as_dir in $PATH | |
4528 | do | |
4529 | IFS=$as_save_IFS | |
4530 | test -z "$as_dir" && as_dir=. | |
4531 | # Account for people who put trailing slashes in PATH elements. | |
4532 | case $as_dir/ in | |
4533 | ./ | .// | /cC/* | \ | |
4534 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4535 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4536 | /usr/ucb/* ) ;; | |
4537 | *) | |
4538 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4539 | # Don't use installbsd from OSF since it installs stuff as root | |
4540 | # by default. | |
4541 | for ac_prog in ginstall scoinst install; do | |
4542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 4543 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 4544 | if test $ac_prog = install && |
4545 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4546 | # AIX install. It has an incompatible calling convention. | |
4547 | : | |
4548 | elif test $ac_prog = install && | |
4549 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4550 | # program-specific install script used by HP pwplus--don't use. | |
4551 | : | |
4552 | else | |
4553 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4554 | break 3 | |
4555 | fi | |
4556 | fi | |
4557 | done | |
4558 | done | |
4559 | ;; | |
4560 | esac | |
4561 | done | |
a8b2ad8d | 4562 | IFS=$as_save_IFS |
b3076f16 | 4563 | |
4564 | ||
4565 | fi | |
4566 | if test "${ac_cv_path_install+set}" = set; then | |
4567 | INSTALL=$ac_cv_path_install | |
4568 | else | |
a8b2ad8d | 4569 | # As a last resort, use the slow shell script. Don't cache a |
4570 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 4571 | # break other packages using the cache if that directory is |
a8b2ad8d | 4572 | # removed, or if the value is a relative name. |
b3076f16 | 4573 | INSTALL=$ac_install_sh |
4574 | fi | |
4575 | fi | |
a8b2ad8d | 4576 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4577 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 4578 | |
4579 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4580 | # It thinks the first close brace ends the variable substitution. | |
4581 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4582 | ||
4583 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4584 | ||
4585 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4586 | ||
0f6fe38c | 4587 | |
07559983 | 4588 | # Extract the first word of "cp", so it can be a program name with args. |
4589 | set dummy cp; ac_word=$2 | |
4590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4592 | if test "${ac_cv_path_CP+set}" = set; then | |
4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4594 | else | |
4595 | case $CP in | |
4596 | [\\/]* | ?:[\\/]*) | |
4597 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4598 | ;; | |
4599 | *) | |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
4605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4607 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
4608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4609 | break 2 | |
4610 | fi | |
4611 | done | |
4612 | done | |
4613 | IFS=$as_save_IFS | |
4614 | ||
4615 | ;; | |
4616 | esac | |
4617 | fi | |
4618 | CP=$ac_cv_path_CP | |
4619 | if test -n "$CP"; then | |
4620 | { echo "$as_me:$LINENO: result: $CP" >&5 | |
4621 | echo "${ECHO_T}$CP" >&6; } | |
4622 | else | |
4623 | { echo "$as_me:$LINENO: result: no" >&5 | |
4624 | echo "${ECHO_T}no" >&6; } | |
4625 | fi | |
4626 | ||
4627 | ||
4628 | ||
35305a49 | 4629 | if test -n "$ac_tool_prefix"; then |
4630 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4631 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a8b2ad8d | 4632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4634 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
2f61d1d7 | 4635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4636 | else | |
35305a49 | 4637 | if test -n "$RANLIB"; then |
4638 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4639 | else | |
2f61d1d7 | 4640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4641 | for as_dir in $PATH | |
4642 | do | |
4643 | IFS=$as_save_IFS | |
4644 | test -z "$as_dir" && as_dir=. | |
35305a49 | 4645 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4647 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4649 | break 2 | |
2f61d1d7 | 4650 | fi |
35305a49 | 4651 | done |
2f61d1d7 | 4652 | done |
a8b2ad8d | 4653 | IFS=$as_save_IFS |
2f61d1d7 | 4654 | |
b3076f16 | 4655 | fi |
35305a49 | 4656 | fi |
4657 | RANLIB=$ac_cv_prog_RANLIB | |
4658 | if test -n "$RANLIB"; then | |
a8b2ad8d | 4659 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4660 | echo "${ECHO_T}$RANLIB" >&6; } | |
b3076f16 | 4661 | else |
a8b2ad8d | 4662 | { echo "$as_me:$LINENO: result: no" >&5 |
4663 | echo "${ECHO_T}no" >&6; } | |
2f61d1d7 | 4664 | fi |
2f61d1d7 | 4665 | |
a8b2ad8d | 4666 | |
b3076f16 | 4667 | fi |
35305a49 | 4668 | if test -z "$ac_cv_prog_RANLIB"; then |
4669 | ac_ct_RANLIB=$RANLIB | |
4670 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4671 | set dummy ranlib; ac_word=$2 | |
a8b2ad8d | 4672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4674 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2f61d1d7 | 4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4676 | else | |
35305a49 | 4677 | if test -n "$ac_ct_RANLIB"; then |
4678 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f61d1d7 | 4679 | else |
35305a49 | 4680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4681 | for as_dir in $PATH | |
4682 | do | |
4683 | IFS=$as_save_IFS | |
4684 | test -z "$as_dir" && as_dir=. | |
4685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 4686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4687 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4689 | break 2 | |
4690 | fi | |
4691 | done | |
4692 | done | |
a8b2ad8d | 4693 | IFS=$as_save_IFS |
35305a49 | 4694 | |
b3076f16 | 4695 | fi |
2f61d1d7 | 4696 | fi |
35305a49 | 4697 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4698 | if test -n "$ac_ct_RANLIB"; then | |
a8b2ad8d | 4699 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4700 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
b3076f16 | 4701 | else |
a8b2ad8d | 4702 | { echo "$as_me:$LINENO: result: no" >&5 |
4703 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4704 | fi |
4705 | ||
a8b2ad8d | 4706 | if test "x$ac_ct_RANLIB" = x; then |
4707 | RANLIB=":" | |
4708 | else | |
4709 | case $cross_compiling:$ac_tool_warned in | |
4710 | yes:) | |
4711 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4712 | whose name does not start with the host triplet. If you think this | |
4713 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4714 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4715 | whose name does not start with the host triplet. If you think this | |
4716 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4717 | ac_tool_warned=yes ;; | |
4718 | esac | |
4719 | RANLIB=$ac_ct_RANLIB | |
4720 | fi | |
2f61d1d7 | 4721 | else |
35305a49 | 4722 | RANLIB="$ac_cv_prog_RANLIB" |
b3076f16 | 4723 | fi |
2f61d1d7 | 4724 | |
0f6fe38c | 4725 | |
4726 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4727 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
4728 | LN_S=$as_ln_s | |
4729 | if test "$LN_S" = "ln -s"; then | |
4730 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4731 | echo "${ECHO_T}yes" >&6; } | |
2f61d1d7 | 4732 | else |
0f6fe38c | 4733 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4734 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
2f61d1d7 | 4735 | fi |
4736 | ||
0f6fe38c | 4737 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4738 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4739 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4740 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f61d1d7 | 4742 | else |
0f6fe38c | 4743 | cat >conftest.make <<\_ACEOF |
4744 | SHELL = /bin/sh | |
4745 | all: | |
4746 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4747 | _ACEOF | |
4748 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4749 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4750 | *@@@%%%=?*=@@@%%%*) | |
4751 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4752 | *) | |
4753 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4754 | esac | |
4755 | rm -f conftest.make | |
35305a49 | 4756 | fi |
0f6fe38c | 4757 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4758 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4759 | echo "${ECHO_T}yes" >&6; } | |
4760 | SET_MAKE= | |
35305a49 | 4761 | else |
0f6fe38c | 4762 | { echo "$as_me:$LINENO: result: no" >&5 |
4763 | echo "${ECHO_T}no" >&6; } | |
4764 | SET_MAKE="MAKE=${MAKE-make}" | |
2f61d1d7 | 4765 | fi |
2f61d1d7 | 4766 | |
0f6fe38c | 4767 | ac_ext=c |
4768 | ac_cpp='$CPP $CPPFLAGS' | |
4769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4772 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4773 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
4774 | # On Suns, sometimes $CPP names a directory. | |
4775 | if test -n "$CPP" && test -d "$CPP"; then | |
4776 | CPP= | |
4777 | fi | |
4778 | if test -z "$CPP"; then | |
4779 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff3b058a | 4781 | else |
0f6fe38c | 4782 | # Double quotes because CPP needs to be expanded |
4783 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4784 | do | |
4785 | ac_preproc_ok=false | |
4786 | for ac_c_preproc_warn_flag in '' yes | |
ff3b058a | 4787 | do |
0f6fe38c | 4788 | # Use a header file that comes with gcc, so configuring glibc |
4789 | # with a fresh cross-compiler works. | |
4790 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4791 | # <limits.h> exists even on freestanding compilers. | |
4792 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4793 | # not just through cpp. "Syntax error" is here to catch this case. | |
4794 | cat >conftest.$ac_ext <<_ACEOF | |
4795 | /* confdefs.h. */ | |
4796 | _ACEOF | |
4797 | cat confdefs.h >>conftest.$ac_ext | |
4798 | cat >>conftest.$ac_ext <<_ACEOF | |
4799 | /* end confdefs.h. */ | |
4800 | #ifdef __STDC__ | |
4801 | # include <limits.h> | |
4802 | #else | |
4803 | # include <assert.h> | |
4804 | #endif | |
4805 | Syntax error | |
4806 | _ACEOF | |
4807 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4808 | case "(($ac_try" in | |
4809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4810 | *) ac_try_echo=$ac_try;; | |
4811 | esac | |
4812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4814 | ac_status=$? | |
4815 | grep -v '^ *+' conftest.er1 >conftest.err | |
4816 | rm -f conftest.er1 | |
4817 | cat conftest.err >&5 | |
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4819 | (exit $ac_status); } >/dev/null && { |
4820 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4821 | test ! -s conftest.err | |
4822 | }; then | |
0f6fe38c | 4823 | : |
4824 | else | |
4825 | echo "$as_me: failed program was:" >&5 | |
4826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4827 | ||
4828 | # Broken: fails on valid input. | |
4829 | continue | |
4830 | fi | |
4831 | ||
4832 | rm -f conftest.err conftest.$ac_ext | |
4833 | ||
4834 | # OK, works on sane cases. Now check whether nonexistent headers | |
4835 | # can be detected and how. | |
4836 | cat >conftest.$ac_ext <<_ACEOF | |
4837 | /* confdefs.h. */ | |
4838 | _ACEOF | |
4839 | cat confdefs.h >>conftest.$ac_ext | |
4840 | cat >>conftest.$ac_ext <<_ACEOF | |
4841 | /* end confdefs.h. */ | |
4842 | #include <ac_nonexistent.h> | |
4843 | _ACEOF | |
4844 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4845 | case "(($ac_try" in | |
4846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4847 | *) ac_try_echo=$ac_try;; | |
4848 | esac | |
4849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4850 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4851 | ac_status=$? | |
4852 | grep -v '^ *+' conftest.er1 >conftest.err | |
4853 | rm -f conftest.er1 | |
4854 | cat conftest.err >&5 | |
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4856 | (exit $ac_status); } >/dev/null && { |
4857 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4858 | test ! -s conftest.err | |
4859 | }; then | |
0f6fe38c | 4860 | # Broken: success on invalid input. |
4861 | continue | |
4862 | else | |
4863 | echo "$as_me: failed program was:" >&5 | |
4864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4865 | ||
4866 | # Passes both tests. | |
4867 | ac_preproc_ok=: | |
4868 | break | |
4869 | fi | |
4870 | ||
4871 | rm -f conftest.err conftest.$ac_ext | |
4872 | ||
ff3b058a | 4873 | done |
0f6fe38c | 4874 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4875 | rm -f conftest.err conftest.$ac_ext | |
4876 | if $ac_preproc_ok; then | |
4877 | break | |
4878 | fi | |
4879 | ||
4880 | done | |
4881 | ac_cv_prog_CPP=$CPP | |
4882 | ||
4883 | fi | |
4884 | CPP=$ac_cv_prog_CPP | |
4885 | else | |
4886 | ac_cv_prog_CPP=$CPP | |
4887 | fi | |
4888 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
4889 | echo "${ECHO_T}$CPP" >&6; } | |
4890 | ac_preproc_ok=false | |
4891 | for ac_c_preproc_warn_flag in '' yes | |
4892 | do | |
4893 | # Use a header file that comes with gcc, so configuring glibc | |
4894 | # with a fresh cross-compiler works. | |
4895 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4896 | # <limits.h> exists even on freestanding compilers. | |
4897 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4898 | # not just through cpp. "Syntax error" is here to catch this case. | |
4899 | cat >conftest.$ac_ext <<_ACEOF | |
4900 | /* confdefs.h. */ | |
4901 | _ACEOF | |
4902 | cat confdefs.h >>conftest.$ac_ext | |
4903 | cat >>conftest.$ac_ext <<_ACEOF | |
4904 | /* end confdefs.h. */ | |
4905 | #ifdef __STDC__ | |
4906 | # include <limits.h> | |
4907 | #else | |
4908 | # include <assert.h> | |
4909 | #endif | |
4910 | Syntax error | |
4911 | _ACEOF | |
4912 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4913 | case "(($ac_try" in | |
4914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4915 | *) ac_try_echo=$ac_try;; | |
4916 | esac | |
4917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4918 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4919 | ac_status=$? | |
4920 | grep -v '^ *+' conftest.er1 >conftest.err | |
4921 | rm -f conftest.er1 | |
4922 | cat conftest.err >&5 | |
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4924 | (exit $ac_status); } >/dev/null && { |
4925 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4926 | test ! -s conftest.err | |
4927 | }; then | |
0f6fe38c | 4928 | : |
4929 | else | |
4930 | echo "$as_me: failed program was:" >&5 | |
4931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4932 | ||
4933 | # Broken: fails on valid input. | |
4934 | continue | |
4935 | fi | |
4936 | ||
4937 | rm -f conftest.err conftest.$ac_ext | |
4938 | ||
4939 | # OK, works on sane cases. Now check whether nonexistent headers | |
4940 | # can be detected and how. | |
4941 | cat >conftest.$ac_ext <<_ACEOF | |
4942 | /* confdefs.h. */ | |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
4947 | #include <ac_nonexistent.h> | |
4948 | _ACEOF | |
4949 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4950 | case "(($ac_try" in | |
4951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4952 | *) ac_try_echo=$ac_try;; | |
4953 | esac | |
4954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4956 | ac_status=$? | |
4957 | grep -v '^ *+' conftest.er1 >conftest.err | |
4958 | rm -f conftest.er1 | |
4959 | cat conftest.err >&5 | |
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4961 | (exit $ac_status); } >/dev/null && { |
4962 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4963 | test ! -s conftest.err | |
4964 | }; then | |
0f6fe38c | 4965 | # Broken: success on invalid input. |
4966 | continue | |
4967 | else | |
4968 | echo "$as_me: failed program was:" >&5 | |
4969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4970 | ||
4971 | # Passes both tests. | |
4972 | ac_preproc_ok=: | |
4973 | break | |
4974 | fi | |
ff3b058a | 4975 | |
0f6fe38c | 4976 | rm -f conftest.err conftest.$ac_ext |
4977 | ||
4978 | done | |
4979 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4980 | rm -f conftest.err conftest.$ac_ext | |
4981 | if $ac_preproc_ok; then | |
4982 | : | |
4983 | else | |
4984 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4985 | See \`config.log' for more details." >&5 | |
4986 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4987 | See \`config.log' for more details." >&2;} | |
4988 | { (exit 1); exit 1; }; } | |
2f61d1d7 | 4989 | fi |
ff3b058a | 4990 | |
0f6fe38c | 4991 | ac_ext=c |
4992 | ac_cpp='$CPP $CPPFLAGS' | |
4993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ff3b058a | 4996 | |
ff3b058a | 4997 | |
4998 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4999 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
5000 | if test "${ac_cv_path_GREP+set}" = set; then | |
2f61d1d7 | 5001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5002 | else | |
ff3b058a | 5003 | # Extract the first word of "grep ggrep" to use in msg output |
5004 | if test -z "$GREP"; then | |
5005 | set dummy grep ggrep; ac_prog_name=$2 | |
5006 | if test "${ac_cv_path_GREP+set}" = set; then | |
5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5008 | else | |
5009 | ac_path_GREP_found=false | |
5010 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5012 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
a8b2ad8d | 5013 | do |
5014 | IFS=$as_save_IFS | |
5015 | test -z "$as_dir" && as_dir=. | |
5016 | for ac_prog in grep ggrep; do | |
5017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5018 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
0bd0bef6 | 5019 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
a8b2ad8d | 5020 | # Check for GNU ac_path_GREP and select it if it is found. |
5021 | # Check for GNU $ac_path_GREP | |
5022 | case `"$ac_path_GREP" --version 2>&1` in | |
5023 | *GNU*) | |
5024 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5025 | *) | |
5026 | ac_count=0 | |
5027 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5028 | while : | |
5029 | do | |
5030 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5031 | mv "conftest.tmp" "conftest.in" | |
5032 | cp "conftest.in" "conftest.nl" | |
5033 | echo 'GREP' >> "conftest.nl" | |
5034 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5035 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5036 | ac_count=`expr $ac_count + 1` | |
5037 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5038 | # Best one so far, save it but keep looking for a better one | |
5039 | ac_cv_path_GREP="$ac_path_GREP" | |
5040 | ac_path_GREP_max=$ac_count | |
5041 | fi | |
5042 | # 10*(2^10) chars as input seems more than enough | |
5043 | test $ac_count -gt 10 && break | |
5044 | done | |
5045 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5046 | esac | |
5047 | ||
5048 | ||
5049 | $ac_path_GREP_found && break 3 | |
5050 | done | |
5051 | done | |
5052 | ||
5053 | done | |
5054 | IFS=$as_save_IFS | |
5055 | ||
5056 | ||
5057 | fi | |
5058 | ||
5059 | GREP="$ac_cv_path_GREP" | |
5060 | if test -z "$GREP"; then | |
5061 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5062 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5063 | { (exit 1); exit 1; }; } | |
5064 | fi | |
5065 | ||
5066 | else | |
5067 | ac_cv_path_GREP=$GREP | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | fi | |
5072 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
5073 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
5074 | GREP="$ac_cv_path_GREP" | |
5075 | ||
5076 | ||
5077 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
5078 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
5079 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5081 | else | |
5082 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5083 | then ac_cv_path_EGREP="$GREP -E" | |
5084 | else | |
5085 | # Extract the first word of "egrep" to use in msg output | |
5086 | if test -z "$EGREP"; then | |
5087 | set dummy egrep; ac_prog_name=$2 | |
5088 | if test "${ac_cv_path_EGREP+set}" = set; then | |
2f61d1d7 | 5089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5090 | else | |
a8b2ad8d | 5091 | ac_path_EGREP_found=false |
5092 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5094 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5095 | do | |
5096 | IFS=$as_save_IFS | |
5097 | test -z "$as_dir" && as_dir=. | |
5098 | for ac_prog in egrep; do | |
5099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5100 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
0bd0bef6 | 5101 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
a8b2ad8d | 5102 | # Check for GNU ac_path_EGREP and select it if it is found. |
0f6fe38c | 5103 | # Check for GNU $ac_path_EGREP |
5104 | case `"$ac_path_EGREP" --version 2>&1` in | |
5105 | *GNU*) | |
5106 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5107 | *) | |
5108 | ac_count=0 | |
5109 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5110 | while : | |
5111 | do | |
5112 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5113 | mv "conftest.tmp" "conftest.in" | |
5114 | cp "conftest.in" "conftest.nl" | |
5115 | echo 'EGREP' >> "conftest.nl" | |
5116 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5117 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5118 | ac_count=`expr $ac_count + 1` | |
5119 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5120 | # Best one so far, save it but keep looking for a better one | |
5121 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5122 | ac_path_EGREP_max=$ac_count | |
5123 | fi | |
5124 | # 10*(2^10) chars as input seems more than enough | |
5125 | test $ac_count -gt 10 && break | |
5126 | done | |
5127 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5128 | esac | |
ff3b058a | 5129 | |
5130 | ||
0f6fe38c | 5131 | $ac_path_EGREP_found && break 3 |
5132 | done | |
5133 | done | |
ff3b058a | 5134 | |
0f6fe38c | 5135 | done |
5136 | IFS=$as_save_IFS | |
ff3b058a | 5137 | |
5138 | ||
0f6fe38c | 5139 | fi |
ff3b058a | 5140 | |
0f6fe38c | 5141 | EGREP="$ac_cv_path_EGREP" |
5142 | if test -z "$EGREP"; then | |
5143 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5144 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5145 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 5146 | fi |
5147 | ||
5148 | else | |
0f6fe38c | 5149 | ac_cv_path_EGREP=$EGREP |
a8b2ad8d | 5150 | fi |
0f6fe38c | 5151 | |
5152 | ||
5153 | fi | |
2f61d1d7 | 5154 | fi |
0f6fe38c | 5155 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5156 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
5157 | EGREP="$ac_cv_path_EGREP" | |
5158 | ||
b3076f16 | 5159 | |
5160 | if test $ac_cv_c_compiler_gnu = yes; then | |
a8b2ad8d | 5161 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5162 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
b3076f16 | 5163 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5165 | else | |
5166 | ac_pattern="Autoconf.*'x'" | |
5167 | cat >conftest.$ac_ext <<_ACEOF | |
5168 | /* confdefs.h. */ | |
5169 | _ACEOF | |
5170 | cat confdefs.h >>conftest.$ac_ext | |
5171 | cat >>conftest.$ac_ext <<_ACEOF | |
5172 | /* end confdefs.h. */ | |
5173 | #include <sgtty.h> | |
5174 | Autoconf TIOCGETP | |
5175 | _ACEOF | |
5176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5177 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5178 | ac_cv_prog_gcc_traditional=yes | |
5179 | else | |
5180 | ac_cv_prog_gcc_traditional=no | |
5181 | fi | |
5182 | rm -f conftest* | |
5183 | ||
5184 | ||
5185 | if test $ac_cv_prog_gcc_traditional = no; then | |
5186 | cat >conftest.$ac_ext <<_ACEOF | |
5187 | /* confdefs.h. */ | |
5188 | _ACEOF | |
5189 | cat confdefs.h >>conftest.$ac_ext | |
5190 | cat >>conftest.$ac_ext <<_ACEOF | |
5191 | /* end confdefs.h. */ | |
5192 | #include <termio.h> | |
5193 | Autoconf TCGETA | |
5194 | _ACEOF | |
5195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5196 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5197 | ac_cv_prog_gcc_traditional=yes | |
5198 | fi | |
5199 | rm -f conftest* | |
5200 | ||
5201 | fi | |
5202 | fi | |
a8b2ad8d | 5203 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5204 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
b3076f16 | 5205 | if test $ac_cv_prog_gcc_traditional = yes; then |
5206 | CC="$CC -traditional" | |
5207 | fi | |
5208 | fi | |
5209 | ||
5b1166fd | 5210 | # Extract the first word of "gmake", so it can be a program name with args. |
5211 | set dummy gmake; ac_word=$2 | |
a8b2ad8d | 5212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5b1166fd | 5214 | if test "${ac_cv_prog_MAKER+set}" = set; then |
5215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5216 | else | |
5217 | if test -n "$MAKER"; then | |
5218 | ac_cv_prog_MAKER="$MAKER" # Let the user override the test. | |
5219 | else | |
5220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5221 | for as_dir in $PATH | |
5222 | do | |
5223 | IFS=$as_save_IFS | |
5224 | test -z "$as_dir" && as_dir=. | |
5225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 5226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5b1166fd | 5227 | ac_cv_prog_MAKER="gmake" |
5228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5229 | break 2 | |
5230 | fi | |
5231 | done | |
5232 | done | |
a8b2ad8d | 5233 | IFS=$as_save_IFS |
5b1166fd | 5234 | |
5235 | test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" | |
5236 | fi | |
5237 | fi | |
5238 | MAKER=$ac_cv_prog_MAKER | |
5239 | if test -n "$MAKER"; then | |
a8b2ad8d | 5240 | { echo "$as_me:$LINENO: result: $MAKER" >&5 |
5241 | echo "${ECHO_T}$MAKER" >&6; } | |
5b1166fd | 5242 | else |
a8b2ad8d | 5243 | { echo "$as_me:$LINENO: result: no" >&5 |
5244 | echo "${ECHO_T}no" >&6; } | |
5b1166fd | 5245 | fi |
5246 | ||
b3076f16 | 5247 | |
a8b2ad8d | 5248 | |
b3076f16 | 5249 | case $target in |
5250 | *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*) | |
5251 | ANSI_SRC="" | |
5252 | ;; | |
5253 | *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) | |
5254 | ANSI_SRC="" | |
b3076f16 | 5255 | ;; |
5256 | *-solaris*) | |
5257 | EXTRA_DEFINE="-D__SOLARIS__" | |
5258 | ANSI_SRC="-fno-builtin" | |
5259 | ;; | |
5260 | *-cygwin) | |
5261 | ANSI_SRC="-fno-builtin" | |
5262 | ;; | |
5263 | *-linux*) | |
5264 | EXTRA_DEFINE="-D_GNU_SOURCE" | |
5265 | ANSI_SRC="" | |
5266 | ;; | |
5267 | *) | |
5268 | ANSI_SRC="" | |
5269 | ;; | |
5270 | esac | |
5271 | CFLAGS="$CFLAGS $EXTRA_DEFINE" | |
5272 | ||
5273 | ||
a8b2ad8d | 5274 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
5275 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
b3076f16 | 5276 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5278 | else | |
5279 | ac_check_lib_save_LIBS=$LIBS | |
5280 | LIBS="-lsocket $LIBS" | |
5281 | cat >conftest.$ac_ext <<_ACEOF | |
5282 | /* confdefs.h. */ | |
5283 | _ACEOF | |
5284 | cat confdefs.h >>conftest.$ac_ext | |
5285 | cat >>conftest.$ac_ext <<_ACEOF | |
5286 | /* end confdefs.h. */ | |
5287 | ||
a8b2ad8d | 5288 | /* Override any GCC internal prototype to avoid an error. |
5289 | Use char because int might match the return type of a GCC | |
5290 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5291 | #ifdef __cplusplus |
5292 | extern "C" | |
5293 | #endif | |
b3076f16 | 5294 | char socket (); |
5295 | int | |
5296 | main () | |
5297 | { | |
a8b2ad8d | 5298 | return socket (); |
b3076f16 | 5299 | ; |
5300 | return 0; | |
5301 | } | |
5302 | _ACEOF | |
5303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5304 | if { (ac_try="$ac_link" |
5305 | case "(($ac_try" in | |
5306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5307 | *) ac_try_echo=$ac_try;; | |
5308 | esac | |
5309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5310 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5311 | ac_status=$? |
5312 | grep -v '^ *+' conftest.er1 >conftest.err | |
5313 | rm -f conftest.er1 | |
5314 | cat conftest.err >&5 | |
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5316 | (exit $ac_status); } && { |
5317 | test -z "$ac_c_werror_flag" || | |
5318 | test ! -s conftest.err | |
5319 | } && test -s conftest$ac_exeext && | |
5320 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5321 | ac_cv_lib_socket_socket=yes |
5322 | else | |
5323 | echo "$as_me: failed program was:" >&5 | |
5324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5325 | ||
a8b2ad8d | 5326 | ac_cv_lib_socket_socket=no |
b3076f16 | 5327 | fi |
a8b2ad8d | 5328 | |
0bd0bef6 | 5329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5330 | conftest$ac_exeext conftest.$ac_ext |
5331 | LIBS=$ac_check_lib_save_LIBS | |
5332 | fi | |
a8b2ad8d | 5333 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
5334 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
b3076f16 | 5335 | if test $ac_cv_lib_socket_socket = yes; then |
5336 | cat >>confdefs.h <<_ACEOF | |
5337 | #define HAVE_LIBSOCKET 1 | |
5338 | _ACEOF | |
5339 | ||
5340 | LIBS="-lsocket $LIBS" | |
5341 | ||
5342 | fi | |
5343 | ||
5344 | ||
a8b2ad8d | 5345 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
5346 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
b3076f16 | 5347 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
5348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5349 | else | |
5350 | ac_check_lib_save_LIBS=$LIBS | |
5351 | LIBS="-lnsl $LIBS" | |
5352 | cat >conftest.$ac_ext <<_ACEOF | |
5353 | /* confdefs.h. */ | |
5354 | _ACEOF | |
5355 | cat confdefs.h >>conftest.$ac_ext | |
5356 | cat >>conftest.$ac_ext <<_ACEOF | |
5357 | /* end confdefs.h. */ | |
5358 | ||
a8b2ad8d | 5359 | /* Override any GCC internal prototype to avoid an error. |
5360 | Use char because int might match the return type of a GCC | |
5361 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5362 | #ifdef __cplusplus |
5363 | extern "C" | |
5364 | #endif | |
b3076f16 | 5365 | char gethostbyname (); |
5366 | int | |
5367 | main () | |
5368 | { | |
a8b2ad8d | 5369 | return gethostbyname (); |
b3076f16 | 5370 | ; |
5371 | return 0; | |
5372 | } | |
5373 | _ACEOF | |
5374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5375 | if { (ac_try="$ac_link" |
5376 | case "(($ac_try" in | |
5377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5378 | *) ac_try_echo=$ac_try;; | |
5379 | esac | |
5380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5381 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5382 | ac_status=$? |
5383 | grep -v '^ *+' conftest.er1 >conftest.err | |
5384 | rm -f conftest.er1 | |
5385 | cat conftest.err >&5 | |
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5387 | (exit $ac_status); } && { |
5388 | test -z "$ac_c_werror_flag" || | |
5389 | test ! -s conftest.err | |
5390 | } && test -s conftest$ac_exeext && | |
5391 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5392 | ac_cv_lib_nsl_gethostbyname=yes |
5393 | else | |
5394 | echo "$as_me: failed program was:" >&5 | |
5395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5396 | ||
a8b2ad8d | 5397 | ac_cv_lib_nsl_gethostbyname=no |
b3076f16 | 5398 | fi |
a8b2ad8d | 5399 | |
0bd0bef6 | 5400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5401 | conftest$ac_exeext conftest.$ac_ext |
5402 | LIBS=$ac_check_lib_save_LIBS | |
5403 | fi | |
a8b2ad8d | 5404 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
5405 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
b3076f16 | 5406 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
5407 | cat >>confdefs.h <<_ACEOF | |
5408 | #define HAVE_LIBNSL 1 | |
5409 | _ACEOF | |
5410 | ||
5411 | LIBS="-lnsl $LIBS" | |
5412 | ||
5413 | fi | |
5414 | ||
5415 | ||
a8b2ad8d | 5416 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 |
5417 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | |
b3076f16 | 5418 | if test "${ac_cv_lib_m_main+set}" = set; then |
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5420 | else | |
5421 | ac_check_lib_save_LIBS=$LIBS | |
5422 | LIBS="-lm $LIBS" | |
5423 | cat >conftest.$ac_ext <<_ACEOF | |
5424 | /* confdefs.h. */ | |
5425 | _ACEOF | |
5426 | cat confdefs.h >>conftest.$ac_ext | |
5427 | cat >>conftest.$ac_ext <<_ACEOF | |
5428 | /* end confdefs.h. */ | |
5429 | ||
5430 | ||
5431 | int | |
5432 | main () | |
5433 | { | |
a8b2ad8d | 5434 | return main (); |
b3076f16 | 5435 | ; |
5436 | return 0; | |
5437 | } | |
5438 | _ACEOF | |
5439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5440 | if { (ac_try="$ac_link" |
5441 | case "(($ac_try" in | |
5442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5443 | *) ac_try_echo=$ac_try;; | |
5444 | esac | |
5445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5446 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5447 | ac_status=$? |
5448 | grep -v '^ *+' conftest.er1 >conftest.err | |
5449 | rm -f conftest.er1 | |
5450 | cat conftest.err >&5 | |
5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5452 | (exit $ac_status); } && { |
5453 | test -z "$ac_c_werror_flag" || | |
5454 | test ! -s conftest.err | |
5455 | } && test -s conftest$ac_exeext && | |
5456 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5457 | ac_cv_lib_m_main=yes |
5458 | else | |
5459 | echo "$as_me: failed program was:" >&5 | |
5460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5461 | ||
a8b2ad8d | 5462 | ac_cv_lib_m_main=no |
b3076f16 | 5463 | fi |
a8b2ad8d | 5464 | |
0bd0bef6 | 5465 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5466 | conftest$ac_exeext conftest.$ac_ext |
5467 | LIBS=$ac_check_lib_save_LIBS | |
5468 | fi | |
a8b2ad8d | 5469 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
5470 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | |
b3076f16 | 5471 | if test $ac_cv_lib_m_main = yes; then |
5472 | cat >>confdefs.h <<_ACEOF | |
5473 | #define HAVE_LIBM 1 | |
5474 | _ACEOF | |
5475 | ||
5476 | LIBS="-lm $LIBS" | |
5477 | ||
5478 | fi | |
5479 | ||
5480 | ||
a8b2ad8d | 5481 | { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5 |
5482 | echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; } | |
21f6caee | 5483 | if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then |
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5485 | else | |
5486 | ac_check_lib_save_LIBS=$LIBS | |
5487 | LIBS="-lGeoIP $LIBS" | |
5488 | cat >conftest.$ac_ext <<_ACEOF | |
5489 | /* confdefs.h. */ | |
5490 | _ACEOF | |
5491 | cat confdefs.h >>conftest.$ac_ext | |
5492 | cat >>conftest.$ac_ext <<_ACEOF | |
5493 | /* end confdefs.h. */ | |
5494 | ||
a8b2ad8d | 5495 | /* Override any GCC internal prototype to avoid an error. |
5496 | Use char because int might match the return type of a GCC | |
5497 | builtin and then its argument prototype would still apply. */ | |
21f6caee | 5498 | #ifdef __cplusplus |
5499 | extern "C" | |
5500 | #endif | |
21f6caee | 5501 | char GeoIP_open (); |
5502 | int | |
5503 | main () | |
5504 | { | |
a8b2ad8d | 5505 | return GeoIP_open (); |
21f6caee | 5506 | ; |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
5510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5511 | if { (ac_try="$ac_link" |
5512 | case "(($ac_try" in | |
5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5514 | *) ac_try_echo=$ac_try;; | |
5515 | esac | |
5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5517 | (eval "$ac_link") 2>conftest.er1 | |
21f6caee | 5518 | ac_status=$? |
5519 | grep -v '^ *+' conftest.er1 >conftest.err | |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5523 | (exit $ac_status); } && { |
5524 | test -z "$ac_c_werror_flag" || | |
5525 | test ! -s conftest.err | |
5526 | } && test -s conftest$ac_exeext && | |
5527 | $as_test_x conftest$ac_exeext; then | |
21f6caee | 5528 | ac_cv_lib_GeoIP_GeoIP_open=yes |
5529 | else | |
5530 | echo "$as_me: failed program was:" >&5 | |
5531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5532 | ||
a8b2ad8d | 5533 | ac_cv_lib_GeoIP_GeoIP_open=no |
21f6caee | 5534 | fi |
a8b2ad8d | 5535 | |
0bd0bef6 | 5536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
21f6caee | 5537 | conftest$ac_exeext conftest.$ac_ext |
5538 | LIBS=$ac_check_lib_save_LIBS | |
5539 | fi | |
a8b2ad8d | 5540 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 |
5541 | echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; } | |
21f6caee | 5542 | if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then |
5543 | cat >>confdefs.h <<_ACEOF | |
5544 | #define HAVE_LIBGEOIP 1 | |
5545 | _ACEOF | |
5546 | ||
5547 | LIBS="-lGeoIP $LIBS" | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | ||
a8b2ad8d | 5552 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5553 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
b3076f16 | 5554 | if test "${ac_cv_header_stdc+set}" = set; then |
5555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5556 | else | |
5557 | cat >conftest.$ac_ext <<_ACEOF | |
5558 | /* confdefs.h. */ | |
5559 | _ACEOF | |
5560 | cat confdefs.h >>conftest.$ac_ext | |
5561 | cat >>conftest.$ac_ext <<_ACEOF | |
5562 | /* end confdefs.h. */ | |
5563 | #include <stdlib.h> | |
5564 | #include <stdarg.h> | |
5565 | #include <string.h> | |
5566 | #include <float.h> | |
5567 | ||
5568 | int | |
5569 | main () | |
5570 | { | |
5571 | ||
5572 | ; | |
5573 | return 0; | |
5574 | } | |
5575 | _ACEOF | |
5576 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5577 | if { (ac_try="$ac_compile" |
5578 | case "(($ac_try" in | |
5579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5580 | *) ac_try_echo=$ac_try;; | |
5581 | esac | |
5582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5583 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5584 | ac_status=$? |
5585 | grep -v '^ *+' conftest.er1 >conftest.err | |
5586 | rm -f conftest.er1 | |
5587 | cat conftest.err >&5 | |
5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5589 | (exit $ac_status); } && { |
5590 | test -z "$ac_c_werror_flag" || | |
5591 | test ! -s conftest.err | |
5592 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5593 | ac_cv_header_stdc=yes |
5594 | else | |
5595 | echo "$as_me: failed program was:" >&5 | |
5596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5597 | ||
a8b2ad8d | 5598 | ac_cv_header_stdc=no |
b3076f16 | 5599 | fi |
a8b2ad8d | 5600 | |
5601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5602 | |
5603 | if test $ac_cv_header_stdc = yes; then | |
5604 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5605 | cat >conftest.$ac_ext <<_ACEOF | |
5606 | /* confdefs.h. */ | |
5607 | _ACEOF | |
5608 | cat confdefs.h >>conftest.$ac_ext | |
5609 | cat >>conftest.$ac_ext <<_ACEOF | |
5610 | /* end confdefs.h. */ | |
5611 | #include <string.h> | |
5612 | ||
5613 | _ACEOF | |
5614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5615 | $EGREP "memchr" >/dev/null 2>&1; then | |
5616 | : | |
5617 | else | |
5618 | ac_cv_header_stdc=no | |
5619 | fi | |
5620 | rm -f conftest* | |
5621 | ||
5622 | fi | |
5623 | ||
5624 | if test $ac_cv_header_stdc = yes; then | |
5625 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5626 | cat >conftest.$ac_ext <<_ACEOF | |
5627 | /* confdefs.h. */ | |
5628 | _ACEOF | |
5629 | cat confdefs.h >>conftest.$ac_ext | |
5630 | cat >>conftest.$ac_ext <<_ACEOF | |
5631 | /* end confdefs.h. */ | |
5632 | #include <stdlib.h> | |
5633 | ||
5634 | _ACEOF | |
5635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5636 | $EGREP "free" >/dev/null 2>&1; then | |
5637 | : | |
5638 | else | |
5639 | ac_cv_header_stdc=no | |
5640 | fi | |
5641 | rm -f conftest* | |
5642 | ||
5643 | fi | |
5644 | ||
5645 | if test $ac_cv_header_stdc = yes; then | |
5646 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5647 | if test "$cross_compiling" = yes; then | |
5648 | : | |
5649 | else | |
5650 | cat >conftest.$ac_ext <<_ACEOF | |
5651 | /* confdefs.h. */ | |
5652 | _ACEOF | |
5653 | cat confdefs.h >>conftest.$ac_ext | |
5654 | cat >>conftest.$ac_ext <<_ACEOF | |
5655 | /* end confdefs.h. */ | |
5656 | #include <ctype.h> | |
a8b2ad8d | 5657 | #include <stdlib.h> |
b3076f16 | 5658 | #if ((' ' & 0x0FF) == 0x020) |
5659 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5660 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5661 | #else | |
5662 | # define ISLOWER(c) \ | |
5663 | (('a' <= (c) && (c) <= 'i') \ | |
5664 | || ('j' <= (c) && (c) <= 'r') \ | |
5665 | || ('s' <= (c) && (c) <= 'z')) | |
5666 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5667 | #endif | |
5668 | ||
5669 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5670 | int | |
5671 | main () | |
5672 | { | |
5673 | int i; | |
5674 | for (i = 0; i < 256; i++) | |
5675 | if (XOR (islower (i), ISLOWER (i)) | |
5676 | || toupper (i) != TOUPPER (i)) | |
a8b2ad8d | 5677 | return 2; |
5678 | return 0; | |
b3076f16 | 5679 | } |
5680 | _ACEOF | |
5681 | rm -f conftest$ac_exeext | |
a8b2ad8d | 5682 | if { (ac_try="$ac_link" |
5683 | case "(($ac_try" in | |
5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5685 | *) ac_try_echo=$ac_try;; | |
5686 | esac | |
5687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5688 | (eval "$ac_link") 2>&5 | |
b3076f16 | 5689 | ac_status=$? |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 5692 | { (case "(($ac_try" in |
5693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5694 | *) ac_try_echo=$ac_try;; | |
5695 | esac | |
5696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5697 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5698 | ac_status=$? |
5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5700 | (exit $ac_status); }; }; then | |
5701 | : | |
5702 | else | |
5703 | echo "$as_me: program exited with status $ac_status" >&5 | |
5704 | echo "$as_me: failed program was:" >&5 | |
5705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5706 | ||
5707 | ( exit $ac_status ) | |
5708 | ac_cv_header_stdc=no | |
5709 | fi | |
a8b2ad8d | 5710 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 5711 | fi |
a8b2ad8d | 5712 | |
5713 | ||
b3076f16 | 5714 | fi |
5715 | fi | |
a8b2ad8d | 5716 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5717 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
b3076f16 | 5718 | if test $ac_cv_header_stdc = yes; then |
5719 | ||
5720 | cat >>confdefs.h <<\_ACEOF | |
5721 | #define STDC_HEADERS 1 | |
5722 | _ACEOF | |
5723 | ||
5724 | fi | |
5725 | ||
5726 | ||
a8b2ad8d | 5727 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
5728 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
b3076f16 | 5729 | if test "${ac_cv_header_time+set}" = set; then |
5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5731 | else | |
5732 | cat >conftest.$ac_ext <<_ACEOF | |
5733 | /* confdefs.h. */ | |
5734 | _ACEOF | |
5735 | cat confdefs.h >>conftest.$ac_ext | |
5736 | cat >>conftest.$ac_ext <<_ACEOF | |
5737 | /* end confdefs.h. */ | |
5738 | #include <sys/types.h> | |
5739 | #include <sys/time.h> | |
5740 | #include <time.h> | |
5741 | ||
5742 | int | |
5743 | main () | |
5744 | { | |
5745 | if ((struct tm *) 0) | |
5746 | return 0; | |
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5752 | if { (ac_try="$ac_compile" |
5753 | case "(($ac_try" in | |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5755 | *) ac_try_echo=$ac_try;; | |
5756 | esac | |
5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5758 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5759 | ac_status=$? |
5760 | grep -v '^ *+' conftest.er1 >conftest.err | |
5761 | rm -f conftest.er1 | |
5762 | cat conftest.err >&5 | |
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5764 | (exit $ac_status); } && { |
5765 | test -z "$ac_c_werror_flag" || | |
5766 | test ! -s conftest.err | |
5767 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5768 | ac_cv_header_time=yes |
5769 | else | |
5770 | echo "$as_me: failed program was:" >&5 | |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5772 | ||
a8b2ad8d | 5773 | ac_cv_header_time=no |
b3076f16 | 5774 | fi |
a8b2ad8d | 5775 | |
5776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5777 | fi |
a8b2ad8d | 5778 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
5779 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
b3076f16 | 5780 | if test $ac_cv_header_time = yes; then |
5781 | ||
5782 | cat >>confdefs.h <<\_ACEOF | |
5783 | #define TIME_WITH_SYS_TIME 1 | |
5784 | _ACEOF | |
5785 | ||
5786 | fi | |
5787 | ||
a8b2ad8d | 5788 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5789 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
b3076f16 | 5790 | if test "${ac_cv_struct_tm+set}" = set; then |
5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5792 | else | |
5793 | cat >conftest.$ac_ext <<_ACEOF | |
5794 | /* confdefs.h. */ | |
5795 | _ACEOF | |
5796 | cat confdefs.h >>conftest.$ac_ext | |
5797 | cat >>conftest.$ac_ext <<_ACEOF | |
5798 | /* end confdefs.h. */ | |
5799 | #include <sys/types.h> | |
5800 | #include <time.h> | |
5801 | ||
5802 | int | |
5803 | main () | |
5804 | { | |
0bd0bef6 | 5805 | struct tm tm; |
5806 | int *p = &tm.tm_sec; | |
5807 | return !p; | |
ff3b058a | 5808 | ; |
5809 | return 0; | |
5810 | } | |
5811 | _ACEOF | |
5812 | rm -f conftest.$ac_objext | |
5813 | if { (ac_try="$ac_compile" | |
5814 | case "(($ac_try" in | |
a8b2ad8d | 5815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5816 | *) ac_try_echo=$ac_try;; | |
5817 | esac | |
5818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
ff3b058a | 5819 | (eval "$ac_compile") 2>conftest.er1 |
35305a49 | 5820 | ac_status=$? |
ff3b058a | 5821 | grep -v '^ *+' conftest.er1 >conftest.err |
5822 | rm -f conftest.er1 | |
5823 | cat conftest.err >&5 | |
35305a49 | 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0bd0bef6 | 5825 | (exit $ac_status); } && { |
5826 | test -z "$ac_c_werror_flag" || | |
5827 | test ! -s conftest.err | |
5828 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 5829 | ac_cv_struct_tm=time.h |
5830 | else | |
5831 | echo "$as_me: failed program was:" >&5 | |
5832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5833 | ||
5834 | ac_cv_struct_tm=sys/time.h | |
5835 | fi | |
5836 | ||
5837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5838 | fi | |
5839 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
5840 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
5841 | if test $ac_cv_struct_tm = sys/time.h; then | |
5842 | ||
5843 | cat >>confdefs.h <<\_ACEOF | |
5844 | #define TM_IN_SYS_TIME 1 | |
5845 | _ACEOF | |
5846 | ||
5847 | fi | |
5848 | ||
5849 | ||
5850 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5861 | inttypes.h stdint.h unistd.h | |
5862 | do | |
5863 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5864 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5868 | else | |
5869 | cat >conftest.$ac_ext <<_ACEOF | |
5870 | /* confdefs.h. */ | |
5871 | _ACEOF | |
5872 | cat confdefs.h >>conftest.$ac_ext | |
5873 | cat >>conftest.$ac_ext <<_ACEOF | |
5874 | /* end confdefs.h. */ | |
5875 | $ac_includes_default | |
5876 | ||
5877 | #include <$ac_header> | |
5878 | _ACEOF | |
5879 | rm -f conftest.$ac_objext | |
5880 | if { (ac_try="$ac_compile" | |
5881 | case "(($ac_try" in | |
5882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5883 | *) ac_try_echo=$ac_try;; | |
5884 | esac | |
5885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5886 | (eval "$ac_compile") 2>conftest.er1 | |
5887 | ac_status=$? | |
5888 | grep -v '^ *+' conftest.er1 >conftest.err | |
5889 | rm -f conftest.er1 | |
5890 | cat conftest.err >&5 | |
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5892 | (exit $ac_status); } && { |
5893 | test -z "$ac_c_werror_flag" || | |
5894 | test ! -s conftest.err | |
5895 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 5896 | eval "$as_ac_Header=yes" |
35305a49 | 5897 | else |
5898 | echo "$as_me: failed program was:" >&5 | |
5899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5900 | ||
0f6fe38c | 5901 | eval "$as_ac_Header=no" |
35305a49 | 5902 | fi |
a8b2ad8d | 5903 | |
5904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
35305a49 | 5905 | fi |
0f6fe38c | 5906 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5907 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5908 | echo "${ECHO_T}$ac_res" >&6; } | |
5909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5910 | cat >>confdefs.h <<_ACEOF | |
5911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35305a49 | 5912 | _ACEOF |
5913 | ||
5914 | fi | |
5915 | ||
0f6fe38c | 5916 | done |
35305a49 | 5917 | |
5918 | ||
b3076f16 | 5919 | |
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
21f6caee | 5939 | |
5940 | ||
4cb36ef0 | 5941 | |
1136f709 | 5942 | |
5943 | ||
5944 | ||
5945 | for ac_header in GeoIP.h GeoIPCity.h arpa/inet.h fcntl.h math.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h sys/epoll.h sys/event.h | |
b3076f16 | 5946 | do |
5947 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 5948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5949 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5951 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 5952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5953 | fi | |
a8b2ad8d | 5954 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5955 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5956 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 5957 | else |
5958 | # Is the header compilable? | |
a8b2ad8d | 5959 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5960 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 5961 | cat >conftest.$ac_ext <<_ACEOF |
5962 | /* confdefs.h. */ | |
5963 | _ACEOF | |
5964 | cat confdefs.h >>conftest.$ac_ext | |
5965 | cat >>conftest.$ac_ext <<_ACEOF | |
5966 | /* end confdefs.h. */ | |
5967 | $ac_includes_default | |
5968 | #include <$ac_header> | |
5969 | _ACEOF | |
5970 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5971 | if { (ac_try="$ac_compile" |
5972 | case "(($ac_try" in | |
5973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5974 | *) ac_try_echo=$ac_try;; | |
5975 | esac | |
5976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5977 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5978 | ac_status=$? |
5979 | grep -v '^ *+' conftest.er1 >conftest.err | |
5980 | rm -f conftest.er1 | |
5981 | cat conftest.err >&5 | |
5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5983 | (exit $ac_status); } && { |
5984 | test -z "$ac_c_werror_flag" || | |
5985 | test ! -s conftest.err | |
5986 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5987 | ac_header_compiler=yes |
5988 | else | |
5989 | echo "$as_me: failed program was:" >&5 | |
5990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5991 | ||
a8b2ad8d | 5992 | ac_header_compiler=no |
b3076f16 | 5993 | fi |
a8b2ad8d | 5994 | |
5995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5996 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5997 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 5998 | |
5999 | # Is the header present? | |
a8b2ad8d | 6000 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6001 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 6002 | cat >conftest.$ac_ext <<_ACEOF |
6003 | /* confdefs.h. */ | |
6004 | _ACEOF | |
6005 | cat confdefs.h >>conftest.$ac_ext | |
6006 | cat >>conftest.$ac_ext <<_ACEOF | |
6007 | /* end confdefs.h. */ | |
6008 | #include <$ac_header> | |
6009 | _ACEOF | |
a8b2ad8d | 6010 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6011 | case "(($ac_try" in | |
6012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6013 | *) ac_try_echo=$ac_try;; | |
6014 | esac | |
6015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6016 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 6017 | ac_status=$? |
6018 | grep -v '^ *+' conftest.er1 >conftest.err | |
6019 | rm -f conftest.er1 | |
6020 | cat conftest.err >&5 | |
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6022 | (exit $ac_status); } >/dev/null && { |
6023 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6024 | test ! -s conftest.err | |
6025 | }; then | |
b3076f16 | 6026 | ac_header_preproc=yes |
6027 | else | |
6028 | echo "$as_me: failed program was:" >&5 | |
6029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6030 | ||
6031 | ac_header_preproc=no | |
6032 | fi | |
a8b2ad8d | 6033 | |
b3076f16 | 6034 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 6035 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6036 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 6037 | |
6038 | # So? What about this header? | |
6039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6040 | yes:no: ) | |
6041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6044 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6045 | ac_header_preproc=yes | |
6046 | ;; | |
6047 | no:yes:* ) | |
6048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6052 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6053 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6054 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6055 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6057 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6058 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6059 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 6060 | ( cat <<\_ASBOX |
63c95a47 | 6061 | ## -------------------------------------------------- ## |
6062 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
6063 | ## -------------------------------------------------- ## | |
b3076f16 | 6064 | _ASBOX |
a8b2ad8d | 6065 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 6066 | ;; |
6067 | esac | |
a8b2ad8d | 6068 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6072 | else | |
6073 | eval "$as_ac_Header=\$ac_header_preproc" | |
6074 | fi | |
a8b2ad8d | 6075 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6077 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6078 | |
6079 | fi | |
6080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6081 | cat >>confdefs.h <<_ACEOF | |
6082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6083 | _ACEOF | |
6084 | ||
6085 | fi | |
6086 | ||
6087 | done | |
6088 | ||
6089 | ||
a8b2ad8d | 6090 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
6091 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
2f61d1d7 | 6092 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
b3076f16 | 6093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6094 | else | |
6095 | cat >conftest.$ac_ext <<_ACEOF | |
6096 | /* confdefs.h. */ | |
6097 | _ACEOF | |
6098 | cat confdefs.h >>conftest.$ac_ext | |
6099 | cat >>conftest.$ac_ext <<_ACEOF | |
6100 | /* end confdefs.h. */ | |
2f61d1d7 | 6101 | #include <sys/types.h> |
6102 | #include <sys/socket.h> | |
b3076f16 | 6103 | |
6104 | int | |
6105 | main () | |
6106 | { | |
2f61d1d7 | 6107 | static struct sockaddr ac_aggr; |
6108 | if (ac_aggr.sa_len) | |
b3076f16 | 6109 | return 0; |
6110 | ; | |
6111 | return 0; | |
6112 | } | |
6113 | _ACEOF | |
6114 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6115 | if { (ac_try="$ac_compile" |
6116 | case "(($ac_try" in | |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6118 | *) ac_try_echo=$ac_try;; | |
6119 | esac | |
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6121 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6122 | ac_status=$? |
6123 | grep -v '^ *+' conftest.er1 >conftest.err | |
6124 | rm -f conftest.er1 | |
6125 | cat conftest.err >&5 | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6127 | (exit $ac_status); } && { |
6128 | test -z "$ac_c_werror_flag" || | |
6129 | test ! -s conftest.err | |
6130 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6131 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6132 | else |
6133 | echo "$as_me: failed program was:" >&5 | |
6134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6135 | ||
a8b2ad8d | 6136 | cat >conftest.$ac_ext <<_ACEOF |
b3076f16 | 6137 | /* confdefs.h. */ |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
2f61d1d7 | 6142 | #include <sys/types.h> |
6143 | #include <sys/socket.h> | |
b3076f16 | 6144 | |
6145 | int | |
6146 | main () | |
6147 | { | |
2f61d1d7 | 6148 | static struct sockaddr ac_aggr; |
6149 | if (sizeof ac_aggr.sa_len) | |
b3076f16 | 6150 | return 0; |
6151 | ; | |
6152 | return 0; | |
6153 | } | |
6154 | _ACEOF | |
6155 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6156 | if { (ac_try="$ac_compile" |
6157 | case "(($ac_try" in | |
6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6159 | *) ac_try_echo=$ac_try;; | |
6160 | esac | |
6161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6162 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6163 | ac_status=$? |
6164 | grep -v '^ *+' conftest.er1 >conftest.err | |
6165 | rm -f conftest.er1 | |
6166 | cat conftest.err >&5 | |
6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6168 | (exit $ac_status); } && { |
6169 | test -z "$ac_c_werror_flag" || | |
6170 | test ! -s conftest.err | |
6171 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6172 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6173 | else |
6174 | echo "$as_me: failed program was:" >&5 | |
6175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6176 | ||
a8b2ad8d | 6177 | ac_cv_member_struct_sockaddr_sa_len=no |
b3076f16 | 6178 | fi |
a8b2ad8d | 6179 | |
6180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6181 | fi |
a8b2ad8d | 6182 | |
6183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6184 | fi |
a8b2ad8d | 6185 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
6186 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
2f61d1d7 | 6187 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
b3076f16 | 6188 | |
6189 | cat >>confdefs.h <<\_ACEOF | |
2f61d1d7 | 6190 | #define HAVE_SOCKADDR_SA_LEN |
6191 | _ACEOF | |
6192 | ||
6193 | fi | |
6194 | ||
a8b2ad8d | 6195 | { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5 |
6196 | echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; } | |
2f61d1d7 | 6197 | if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then |
6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6199 | else | |
6200 | cat >conftest.$ac_ext <<_ACEOF | |
6201 | /* confdefs.h. */ | |
6202 | _ACEOF | |
6203 | cat confdefs.h >>conftest.$ac_ext | |
6204 | cat >>conftest.$ac_ext <<_ACEOF | |
6205 | /* end confdefs.h. */ | |
6206 | #include <sys/types.h> | |
6207 | #include <sys/socket.h> | |
6208 | #include <netdb.h> | |
6209 | ||
6210 | int | |
6211 | main () | |
6212 | { | |
6213 | static struct addrinfo ac_aggr; | |
6214 | if (ac_aggr.ai_flags) | |
6215 | return 0; | |
6216 | ; | |
6217 | return 0; | |
6218 | } | |
6219 | _ACEOF | |
6220 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6221 | if { (ac_try="$ac_compile" |
6222 | case "(($ac_try" in | |
6223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6224 | *) ac_try_echo=$ac_try;; | |
6225 | esac | |
6226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6227 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6228 | ac_status=$? |
6229 | grep -v '^ *+' conftest.er1 >conftest.err | |
6230 | rm -f conftest.er1 | |
6231 | cat conftest.err >&5 | |
6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6233 | (exit $ac_status); } && { |
6234 | test -z "$ac_c_werror_flag" || | |
6235 | test ! -s conftest.err | |
6236 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6237 | ac_cv_member_struct_addrinfo_ai_flags=yes |
6238 | else | |
6239 | echo "$as_me: failed program was:" >&5 | |
6240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6241 | ||
a8b2ad8d | 6242 | cat >conftest.$ac_ext <<_ACEOF |
2f61d1d7 | 6243 | /* confdefs.h. */ |
6244 | _ACEOF | |
6245 | cat confdefs.h >>conftest.$ac_ext | |
6246 | cat >>conftest.$ac_ext <<_ACEOF | |
6247 | /* end confdefs.h. */ | |
6248 | #include <sys/types.h> | |
6249 | #include <sys/socket.h> | |
6250 | #include <netdb.h> | |
6251 | ||
6252 | int | |
6253 | main () | |
6254 | { | |
6255 | static struct addrinfo ac_aggr; | |
6256 | if (sizeof ac_aggr.ai_flags) | |
6257 | return 0; | |
6258 | ; | |
6259 | return 0; | |
6260 | } | |
b3076f16 | 6261 | _ACEOF |
2f61d1d7 | 6262 | rm -f conftest.$ac_objext |
a8b2ad8d | 6263 | if { (ac_try="$ac_compile" |
6264 | case "(($ac_try" in | |
6265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6266 | *) ac_try_echo=$ac_try;; | |
6267 | esac | |
6268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6269 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6270 | ac_status=$? |
6271 | grep -v '^ *+' conftest.er1 >conftest.err | |
6272 | rm -f conftest.er1 | |
6273 | cat conftest.err >&5 | |
6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6275 | (exit $ac_status); } && { |
6276 | test -z "$ac_c_werror_flag" || | |
6277 | test ! -s conftest.err | |
6278 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6279 | ac_cv_member_struct_addrinfo_ai_flags=yes |
6280 | else | |
6281 | echo "$as_me: failed program was:" >&5 | |
6282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 6283 | |
a8b2ad8d | 6284 | ac_cv_member_struct_addrinfo_ai_flags=no |
2f61d1d7 | 6285 | fi |
a8b2ad8d | 6286 | |
6287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f61d1d7 | 6288 | fi |
a8b2ad8d | 6289 | |
6290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6291 | fi |
a8b2ad8d | 6292 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5 |
6293 | echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; } | |
2f61d1d7 | 6294 | if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then |
6295 | ||
6296 | cat >>confdefs.h <<\_ACEOF | |
6297 | #define HAVE_STRUCT_ADDRINFO | |
6298 | _ACEOF | |
b3076f16 | 6299 | |
2f61d1d7 | 6300 | fi |
b3076f16 | 6301 | |
6302 | ||
21f6caee | 6303 | |
b3076f16 | 6304 | |
b3076f16 | 6305 | |
b3076f16 | 6306 | |
b3076f16 | 6307 | |
b3076f16 | 6308 | |
b3076f16 | 6309 | |
a8b2ad8d | 6310 | |
b3076f16 | 6311 | |
b3076f16 | 6312 | |
b3076f16 | 6313 | |
1136f709 | 6314 | |
6315 | ||
6316 | ||
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create kqueue kevent select gettimeofday times GetProcessTimes mprotect | |
b3076f16 | 6331 | do |
6332 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6333 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6334 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6335 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6337 | else | |
6338 | cat >conftest.$ac_ext <<_ACEOF | |
6339 | /* confdefs.h. */ | |
6340 | _ACEOF | |
6341 | cat confdefs.h >>conftest.$ac_ext | |
6342 | cat >>conftest.$ac_ext <<_ACEOF | |
6343 | /* end confdefs.h. */ | |
6344 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6346 | #define $ac_func innocuous_$ac_func | |
6347 | ||
6348 | /* System header to define __stub macros and hopefully few prototypes, | |
6349 | which can conflict with char $ac_func (); below. | |
6350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6351 | <limits.h> exists even on freestanding compilers. */ | |
6352 | ||
6353 | #ifdef __STDC__ | |
6354 | # include <limits.h> | |
6355 | #else | |
6356 | # include <assert.h> | |
6357 | #endif | |
6358 | ||
6359 | #undef $ac_func | |
6360 | ||
a8b2ad8d | 6361 | /* Override any GCC internal prototype to avoid an error. |
6362 | Use char because int might match the return type of a GCC | |
6363 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6364 | #ifdef __cplusplus |
6365 | extern "C" | |
b3076f16 | 6366 | #endif |
b3076f16 | 6367 | char $ac_func (); |
6368 | /* The GNU C library defines this for functions which it implements | |
6369 | to always fail with ENOSYS. Some functions are actually named | |
6370 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6371 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6372 | choke me |
b3076f16 | 6373 | #endif |
6374 | ||
6375 | int | |
6376 | main () | |
6377 | { | |
a8b2ad8d | 6378 | return $ac_func (); |
b3076f16 | 6379 | ; |
6380 | return 0; | |
ff3b058a | 6381 | } |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6384 | if { (ac_try="$ac_link" | |
6385 | case "(($ac_try" in | |
a8b2ad8d | 6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6387 | *) ac_try_echo=$ac_try;; | |
6388 | esac | |
6389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
ff3b058a | 6390 | (eval "$ac_link") 2>conftest.er1 |
b3076f16 | 6391 | ac_status=$? |
ff3b058a | 6392 | grep -v '^ *+' conftest.er1 >conftest.err |
6393 | rm -f conftest.er1 | |
6394 | cat conftest.err >&5 | |
b3076f16 | 6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0bd0bef6 | 6396 | (exit $ac_status); } && { |
6397 | test -z "$ac_c_werror_flag" || | |
6398 | test ! -s conftest.err | |
6399 | } && test -s conftest$ac_exeext && | |
6400 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6401 | eval "$as_ac_var=yes" |
6402 | else | |
6403 | echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
a8b2ad8d | 6406 | eval "$as_ac_var=no" |
b3076f16 | 6407 | fi |
a8b2ad8d | 6408 | |
0bd0bef6 | 6409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6410 | conftest$ac_exeext conftest.$ac_ext |
6411 | fi | |
a8b2ad8d | 6412 | ac_res=`eval echo '${'$as_ac_var'}'` |
6413 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6414 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6415 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6416 | cat >>confdefs.h <<_ACEOF | |
6417 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6418 | _ACEOF | |
6419 | ||
b3076f16 | 6420 | fi |
6421 | done | |
6422 | ||
0f6fe38c | 6423 | |
6424 | ||
1136f709 | 6425 | if test $ac_cv_func_gettimeofday = no; then |
0f6fe38c | 6426 | |
1136f709 | 6427 | for ac_func in ftime |
b3076f16 | 6428 | do |
6429 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6430 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6431 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6432 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6434 | else | |
6435 | cat >conftest.$ac_ext <<_ACEOF | |
6436 | /* confdefs.h. */ | |
6437 | _ACEOF | |
6438 | cat confdefs.h >>conftest.$ac_ext | |
6439 | cat >>conftest.$ac_ext <<_ACEOF | |
6440 | /* end confdefs.h. */ | |
6441 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6442 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6443 | #define $ac_func innocuous_$ac_func | |
6444 | ||
6445 | /* System header to define __stub macros and hopefully few prototypes, | |
6446 | which can conflict with char $ac_func (); below. | |
6447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6448 | <limits.h> exists even on freestanding compilers. */ | |
6449 | ||
6450 | #ifdef __STDC__ | |
6451 | # include <limits.h> | |
6452 | #else | |
6453 | # include <assert.h> | |
6454 | #endif | |
6455 | ||
6456 | #undef $ac_func | |
6457 | ||
a8b2ad8d | 6458 | /* Override any GCC internal prototype to avoid an error. |
6459 | Use char because int might match the return type of a GCC | |
6460 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6461 | #ifdef __cplusplus |
6462 | extern "C" | |
b3076f16 | 6463 | #endif |
b3076f16 | 6464 | char $ac_func (); |
6465 | /* The GNU C library defines this for functions which it implements | |
6466 | to always fail with ENOSYS. Some functions are actually named | |
6467 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6468 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6469 | choke me |
b3076f16 | 6470 | #endif |
6471 | ||
6472 | int | |
6473 | main () | |
6474 | { | |
a8b2ad8d | 6475 | return $ac_func (); |
b3076f16 | 6476 | ; |
6477 | return 0; | |
6478 | } | |
6479 | _ACEOF | |
6480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6481 | if { (ac_try="$ac_link" |
6482 | case "(($ac_try" in | |
6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6484 | *) ac_try_echo=$ac_try;; | |
6485 | esac | |
6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6487 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6488 | ac_status=$? |
6489 | grep -v '^ *+' conftest.er1 >conftest.err | |
6490 | rm -f conftest.er1 | |
6491 | cat conftest.err >&5 | |
6492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6493 | (exit $ac_status); } && { |
6494 | test -z "$ac_c_werror_flag" || | |
6495 | test ! -s conftest.err | |
6496 | } && test -s conftest$ac_exeext && | |
6497 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6498 | eval "$as_ac_var=yes" |
6499 | else | |
6500 | echo "$as_me: failed program was:" >&5 | |
6501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6502 | ||
a8b2ad8d | 6503 | eval "$as_ac_var=no" |
b3076f16 | 6504 | fi |
a8b2ad8d | 6505 | |
0bd0bef6 | 6506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6507 | conftest$ac_exeext conftest.$ac_ext |
6508 | fi | |
a8b2ad8d | 6509 | ac_res=`eval echo '${'$as_ac_var'}'` |
6510 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6511 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6512 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6513 | cat >>confdefs.h <<_ACEOF | |
6514 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6515 | _ACEOF | |
6516 | ||
1136f709 | 6517 | else |
6518 | { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5 | |
6519 | echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;} | |
6520 | { (exit 1); exit 1; }; } | |
b3076f16 | 6521 | fi |
6522 | done | |
6523 | ||
1136f709 | 6524 | fi |
b3076f16 | 6525 | |
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
1136f709 | 6531 | for ac_func in socket strcspn strspn strtod strtoul |
b3076f16 | 6532 | do |
6533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6534 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6536 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6538 | else | |
6539 | cat >conftest.$ac_ext <<_ACEOF | |
6540 | /* confdefs.h. */ | |
6541 | _ACEOF | |
6542 | cat confdefs.h >>conftest.$ac_ext | |
6543 | cat >>conftest.$ac_ext <<_ACEOF | |
6544 | /* end confdefs.h. */ | |
6545 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6546 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6547 | #define $ac_func innocuous_$ac_func | |
6548 | ||
6549 | /* System header to define __stub macros and hopefully few prototypes, | |
6550 | which can conflict with char $ac_func (); below. | |
6551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6552 | <limits.h> exists even on freestanding compilers. */ | |
6553 | ||
6554 | #ifdef __STDC__ | |
6555 | # include <limits.h> | |
6556 | #else | |
6557 | # include <assert.h> | |
6558 | #endif | |
6559 | ||
6560 | #undef $ac_func | |
6561 | ||
a8b2ad8d | 6562 | /* Override any GCC internal prototype to avoid an error. |
6563 | Use char because int might match the return type of a GCC | |
6564 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6565 | #ifdef __cplusplus |
6566 | extern "C" | |
b3076f16 | 6567 | #endif |
b3076f16 | 6568 | char $ac_func (); |
6569 | /* The GNU C library defines this for functions which it implements | |
6570 | to always fail with ENOSYS. Some functions are actually named | |
6571 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6572 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6573 | choke me |
b3076f16 | 6574 | #endif |
6575 | ||
6576 | int | |
6577 | main () | |
6578 | { | |
a8b2ad8d | 6579 | return $ac_func (); |
b3076f16 | 6580 | ; |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6585 | if { (ac_try="$ac_link" |
6586 | case "(($ac_try" in | |
6587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6588 | *) ac_try_echo=$ac_try;; | |
6589 | esac | |
6590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6591 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6592 | ac_status=$? |
6593 | grep -v '^ *+' conftest.er1 >conftest.err | |
6594 | rm -f conftest.er1 | |
6595 | cat conftest.err >&5 | |
6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6597 | (exit $ac_status); } && { |
6598 | test -z "$ac_c_werror_flag" || | |
6599 | test ! -s conftest.err | |
6600 | } && test -s conftest$ac_exeext && | |
6601 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6602 | eval "$as_ac_var=yes" |
6603 | else | |
6604 | echo "$as_me: failed program was:" >&5 | |
6605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6606 | ||
a8b2ad8d | 6607 | eval "$as_ac_var=no" |
b3076f16 | 6608 | fi |
a8b2ad8d | 6609 | |
0bd0bef6 | 6610 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6611 | conftest$ac_exeext conftest.$ac_ext |
6612 | fi | |
a8b2ad8d | 6613 | ac_res=`eval echo '${'$as_ac_var'}'` |
6614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6615 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6616 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6617 | cat >>confdefs.h <<_ACEOF | |
6618 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6619 | _ACEOF | |
6620 | ||
6621 | else | |
2f61d1d7 | 6622 | { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5 |
6623 | echo "$as_me: error: a required function was not found. X3 build will fail." >&2;} | |
b3076f16 | 6624 | { (exit 1); exit 1; }; } |
6625 | fi | |
6626 | done | |
6627 | ||
6628 | ||
6629 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6630 | # for constant arguments. Useless! | |
a8b2ad8d | 6631 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6632 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
b3076f16 | 6633 | if test "${ac_cv_working_alloca_h+set}" = set; then |
6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6635 | else | |
6636 | cat >conftest.$ac_ext <<_ACEOF | |
6637 | /* confdefs.h. */ | |
6638 | _ACEOF | |
6639 | cat confdefs.h >>conftest.$ac_ext | |
6640 | cat >>conftest.$ac_ext <<_ACEOF | |
6641 | /* end confdefs.h. */ | |
6642 | #include <alloca.h> | |
6643 | int | |
6644 | main () | |
6645 | { | |
6646 | char *p = (char *) alloca (2 * sizeof (int)); | |
a8b2ad8d | 6647 | if (p) return 0; |
b3076f16 | 6648 | ; |
6649 | return 0; | |
6650 | } | |
6651 | _ACEOF | |
6652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6653 | if { (ac_try="$ac_link" |
6654 | case "(($ac_try" in | |
6655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6656 | *) ac_try_echo=$ac_try;; | |
6657 | esac | |
6658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6659 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6660 | ac_status=$? |
6661 | grep -v '^ *+' conftest.er1 >conftest.err | |
6662 | rm -f conftest.er1 | |
6663 | cat conftest.err >&5 | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6665 | (exit $ac_status); } && { |
6666 | test -z "$ac_c_werror_flag" || | |
6667 | test ! -s conftest.err | |
6668 | } && test -s conftest$ac_exeext && | |
6669 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6670 | ac_cv_working_alloca_h=yes |
6671 | else | |
6672 | echo "$as_me: failed program was:" >&5 | |
6673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6674 | ||
a8b2ad8d | 6675 | ac_cv_working_alloca_h=no |
b3076f16 | 6676 | fi |
a8b2ad8d | 6677 | |
0bd0bef6 | 6678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6679 | conftest$ac_exeext conftest.$ac_ext |
6680 | fi | |
a8b2ad8d | 6681 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6682 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
b3076f16 | 6683 | if test $ac_cv_working_alloca_h = yes; then |
6684 | ||
6685 | cat >>confdefs.h <<\_ACEOF | |
6686 | #define HAVE_ALLOCA_H 1 | |
6687 | _ACEOF | |
6688 | ||
6689 | fi | |
6690 | ||
a8b2ad8d | 6691 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6692 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
b3076f16 | 6693 | if test "${ac_cv_func_alloca_works+set}" = set; then |
6694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6695 | else | |
6696 | cat >conftest.$ac_ext <<_ACEOF | |
6697 | /* confdefs.h. */ | |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
6702 | #ifdef __GNUC__ | |
6703 | # define alloca __builtin_alloca | |
6704 | #else | |
6705 | # ifdef _MSC_VER | |
6706 | # include <malloc.h> | |
6707 | # define alloca _alloca | |
6708 | # else | |
0bd0bef6 | 6709 | # ifdef HAVE_ALLOCA_H |
b3076f16 | 6710 | # include <alloca.h> |
6711 | # else | |
6712 | # ifdef _AIX | |
6713 | #pragma alloca | |
6714 | # else | |
6715 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6716 | char *alloca (); | |
6717 | # endif | |
6718 | # endif | |
6719 | # endif | |
6720 | # endif | |
6721 | #endif | |
6722 | ||
6723 | int | |
6724 | main () | |
6725 | { | |
6726 | char *p = (char *) alloca (1); | |
a8b2ad8d | 6727 | if (p) return 0; |
b3076f16 | 6728 | ; |
6729 | return 0; | |
6730 | } | |
6731 | _ACEOF | |
6732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6733 | if { (ac_try="$ac_link" |
6734 | case "(($ac_try" in | |
6735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6736 | *) ac_try_echo=$ac_try;; | |
6737 | esac | |
6738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6739 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6740 | ac_status=$? |
6741 | grep -v '^ *+' conftest.er1 >conftest.err | |
6742 | rm -f conftest.er1 | |
6743 | cat conftest.err >&5 | |
6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6745 | (exit $ac_status); } && { |
6746 | test -z "$ac_c_werror_flag" || | |
6747 | test ! -s conftest.err | |
6748 | } && test -s conftest$ac_exeext && | |
6749 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6750 | ac_cv_func_alloca_works=yes |
6751 | else | |
6752 | echo "$as_me: failed program was:" >&5 | |
6753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6754 | ||
a8b2ad8d | 6755 | ac_cv_func_alloca_works=no |
b3076f16 | 6756 | fi |
a8b2ad8d | 6757 | |
0bd0bef6 | 6758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6759 | conftest$ac_exeext conftest.$ac_ext |
6760 | fi | |
a8b2ad8d | 6761 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6762 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
b3076f16 | 6763 | |
6764 | if test $ac_cv_func_alloca_works = yes; then | |
6765 | ||
6766 | cat >>confdefs.h <<\_ACEOF | |
6767 | #define HAVE_ALLOCA 1 | |
6768 | _ACEOF | |
6769 | ||
6770 | else | |
6771 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6772 | # that cause trouble. Some versions do not even contain alloca or | |
6773 | # contain a buggy version. If you still want to use their alloca, | |
6774 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6775 | ||
a8b2ad8d | 6776 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b3076f16 | 6777 | |
6778 | cat >>confdefs.h <<\_ACEOF | |
6779 | #define C_ALLOCA 1 | |
6780 | _ACEOF | |
6781 | ||
6782 | ||
a8b2ad8d | 6783 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6784 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
b3076f16 | 6785 | if test "${ac_cv_os_cray+set}" = set; then |
6786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6787 | else | |
6788 | cat >conftest.$ac_ext <<_ACEOF | |
6789 | /* confdefs.h. */ | |
6790 | _ACEOF | |
6791 | cat confdefs.h >>conftest.$ac_ext | |
6792 | cat >>conftest.$ac_ext <<_ACEOF | |
6793 | /* end confdefs.h. */ | |
a8b2ad8d | 6794 | #if defined CRAY && ! defined CRAY2 |
b3076f16 | 6795 | webecray |
6796 | #else | |
6797 | wenotbecray | |
6798 | #endif | |
6799 | ||
6800 | _ACEOF | |
6801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6802 | $EGREP "webecray" >/dev/null 2>&1; then | |
6803 | ac_cv_os_cray=yes | |
6804 | else | |
6805 | ac_cv_os_cray=no | |
6806 | fi | |
6807 | rm -f conftest* | |
6808 | ||
6809 | fi | |
a8b2ad8d | 6810 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6811 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
b3076f16 | 6812 | if test $ac_cv_os_cray = yes; then |
6813 | for ac_func in _getb67 GETB67 getb67; do | |
6814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6815 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6817 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6819 | else | |
6820 | cat >conftest.$ac_ext <<_ACEOF | |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
6825 | /* end confdefs.h. */ | |
6826 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6828 | #define $ac_func innocuous_$ac_func | |
6829 | ||
6830 | /* System header to define __stub macros and hopefully few prototypes, | |
6831 | which can conflict with char $ac_func (); below. | |
6832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6833 | <limits.h> exists even on freestanding compilers. */ | |
6834 | ||
6835 | #ifdef __STDC__ | |
6836 | # include <limits.h> | |
6837 | #else | |
6838 | # include <assert.h> | |
6839 | #endif | |
6840 | ||
6841 | #undef $ac_func | |
6842 | ||
a8b2ad8d | 6843 | /* Override any GCC internal prototype to avoid an error. |
6844 | Use char because int might match the return type of a GCC | |
6845 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6846 | #ifdef __cplusplus |
6847 | extern "C" | |
b3076f16 | 6848 | #endif |
b3076f16 | 6849 | char $ac_func (); |
6850 | /* The GNU C library defines this for functions which it implements | |
6851 | to always fail with ENOSYS. Some functions are actually named | |
6852 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6853 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6854 | choke me |
b3076f16 | 6855 | #endif |
6856 | ||
6857 | int | |
6858 | main () | |
6859 | { | |
a8b2ad8d | 6860 | return $ac_func (); |
b3076f16 | 6861 | ; |
6862 | return 0; | |
6863 | } | |
6864 | _ACEOF | |
6865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6866 | if { (ac_try="$ac_link" |
6867 | case "(($ac_try" in | |
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6869 | *) ac_try_echo=$ac_try;; | |
6870 | esac | |
6871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6872 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6873 | ac_status=$? |
6874 | grep -v '^ *+' conftest.er1 >conftest.err | |
6875 | rm -f conftest.er1 | |
6876 | cat conftest.err >&5 | |
6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6878 | (exit $ac_status); } && { |
6879 | test -z "$ac_c_werror_flag" || | |
6880 | test ! -s conftest.err | |
6881 | } && test -s conftest$ac_exeext && | |
6882 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6883 | eval "$as_ac_var=yes" |
6884 | else | |
6885 | echo "$as_me: failed program was:" >&5 | |
6886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6887 | ||
a8b2ad8d | 6888 | eval "$as_ac_var=no" |
b3076f16 | 6889 | fi |
a8b2ad8d | 6890 | |
0bd0bef6 | 6891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6892 | conftest$ac_exeext conftest.$ac_ext |
6893 | fi | |
a8b2ad8d | 6894 | ac_res=`eval echo '${'$as_ac_var'}'` |
6895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6896 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6897 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6898 | ||
6899 | cat >>confdefs.h <<_ACEOF | |
6900 | #define CRAY_STACKSEG_END $ac_func | |
6901 | _ACEOF | |
6902 | ||
6903 | break | |
6904 | fi | |
6905 | ||
6906 | done | |
6907 | fi | |
6908 | ||
a8b2ad8d | 6909 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6910 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
b3076f16 | 6911 | if test "${ac_cv_c_stack_direction+set}" = set; then |
6912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6913 | else | |
6914 | if test "$cross_compiling" = yes; then | |
6915 | ac_cv_c_stack_direction=0 | |
6916 | else | |
6917 | cat >conftest.$ac_ext <<_ACEOF | |
6918 | /* confdefs.h. */ | |
6919 | _ACEOF | |
6920 | cat confdefs.h >>conftest.$ac_ext | |
6921 | cat >>conftest.$ac_ext <<_ACEOF | |
6922 | /* end confdefs.h. */ | |
a8b2ad8d | 6923 | $ac_includes_default |
b3076f16 | 6924 | int |
6925 | find_stack_direction () | |
6926 | { | |
6927 | static char *addr = 0; | |
6928 | auto char dummy; | |
6929 | if (addr == 0) | |
6930 | { | |
6931 | addr = &dummy; | |
6932 | return find_stack_direction (); | |
6933 | } | |
6934 | else | |
6935 | return (&dummy > addr) ? 1 : -1; | |
6936 | } | |
6937 | ||
6938 | int | |
6939 | main () | |
6940 | { | |
a8b2ad8d | 6941 | return find_stack_direction () < 0; |
b3076f16 | 6942 | } |
6943 | _ACEOF | |
6944 | rm -f conftest$ac_exeext | |
a8b2ad8d | 6945 | if { (ac_try="$ac_link" |
6946 | case "(($ac_try" in | |
6947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6948 | *) ac_try_echo=$ac_try;; | |
6949 | esac | |
6950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6951 | (eval "$ac_link") 2>&5 | |
b3076f16 | 6952 | ac_status=$? |
6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 6955 | { (case "(($ac_try" in |
6956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6957 | *) ac_try_echo=$ac_try;; | |
6958 | esac | |
6959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6960 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6961 | ac_status=$? |
6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6963 | (exit $ac_status); }; }; then | |
6964 | ac_cv_c_stack_direction=1 | |
6965 | else | |
6966 | echo "$as_me: program exited with status $ac_status" >&5 | |
6967 | echo "$as_me: failed program was:" >&5 | |
6968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6969 | ||
6970 | ( exit $ac_status ) | |
6971 | ac_cv_c_stack_direction=-1 | |
6972 | fi | |
a8b2ad8d | 6973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 6974 | fi |
a8b2ad8d | 6975 | |
6976 | ||
b3076f16 | 6977 | fi |
a8b2ad8d | 6978 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6979 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
b3076f16 | 6980 | |
6981 | cat >>confdefs.h <<_ACEOF | |
6982 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6983 | _ACEOF | |
6984 | ||
6985 | ||
6986 | fi | |
6987 | ||
6988 | ||
6989 | ||
6990 | for ac_header in stdlib.h unistd.h | |
6991 | do | |
6992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 6993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6998 | fi | |
a8b2ad8d | 6999 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7001 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7002 | else |
7003 | # Is the header compilable? | |
a8b2ad8d | 7004 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7005 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 7006 | cat >conftest.$ac_ext <<_ACEOF |
7007 | /* confdefs.h. */ | |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
7012 | $ac_includes_default | |
7013 | #include <$ac_header> | |
7014 | _ACEOF | |
7015 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7016 | if { (ac_try="$ac_compile" |
7017 | case "(($ac_try" in | |
7018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7019 | *) ac_try_echo=$ac_try;; | |
7020 | esac | |
7021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7022 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7023 | ac_status=$? |
7024 | grep -v '^ *+' conftest.er1 >conftest.err | |
7025 | rm -f conftest.er1 | |
7026 | cat conftest.err >&5 | |
7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7028 | (exit $ac_status); } && { |
7029 | test -z "$ac_c_werror_flag" || | |
7030 | test ! -s conftest.err | |
7031 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7032 | ac_header_compiler=yes |
7033 | else | |
7034 | echo "$as_me: failed program was:" >&5 | |
7035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7036 | ||
a8b2ad8d | 7037 | ac_header_compiler=no |
b3076f16 | 7038 | fi |
a8b2ad8d | 7039 | |
7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7041 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7042 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 7043 | |
7044 | # Is the header present? | |
a8b2ad8d | 7045 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 7047 | cat >conftest.$ac_ext <<_ACEOF |
7048 | /* confdefs.h. */ | |
7049 | _ACEOF | |
7050 | cat confdefs.h >>conftest.$ac_ext | |
7051 | cat >>conftest.$ac_ext <<_ACEOF | |
7052 | /* end confdefs.h. */ | |
7053 | #include <$ac_header> | |
7054 | _ACEOF | |
a8b2ad8d | 7055 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7056 | case "(($ac_try" in | |
7057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7058 | *) ac_try_echo=$ac_try;; | |
7059 | esac | |
7060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 7062 | ac_status=$? |
7063 | grep -v '^ *+' conftest.er1 >conftest.err | |
7064 | rm -f conftest.er1 | |
7065 | cat conftest.err >&5 | |
7066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7067 | (exit $ac_status); } >/dev/null && { |
7068 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7069 | test ! -s conftest.err | |
7070 | }; then | |
b3076f16 | 7071 | ac_header_preproc=yes |
7072 | else | |
7073 | echo "$as_me: failed program was:" >&5 | |
7074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7075 | ||
7076 | ac_header_preproc=no | |
7077 | fi | |
a8b2ad8d | 7078 | |
b3076f16 | 7079 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 7080 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7081 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 7082 | |
7083 | # So? What about this header? | |
7084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7085 | yes:no: ) | |
7086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7090 | ac_header_preproc=yes | |
7091 | ;; | |
7092 | no:yes:* ) | |
7093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 7105 | ( cat <<\_ASBOX |
63c95a47 | 7106 | ## -------------------------------------------------- ## |
7107 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
7108 | ## -------------------------------------------------- ## | |
b3076f16 | 7109 | _ASBOX |
a8b2ad8d | 7110 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 7111 | ;; |
7112 | esac | |
a8b2ad8d | 7113 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7115 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7117 | else | |
7118 | eval "$as_ac_Header=\$ac_header_preproc" | |
7119 | fi | |
a8b2ad8d | 7120 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7122 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7123 | |
7124 | fi | |
7125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7126 | cat >>confdefs.h <<_ACEOF | |
7127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7128 | _ACEOF | |
7129 | ||
7130 | fi | |
7131 | ||
7132 | done | |
7133 | ||
7134 | ||
7135 | for ac_func in getpagesize | |
7136 | do | |
7137 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 7138 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7139 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7140 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7142 | else | |
7143 | cat >conftest.$ac_ext <<_ACEOF | |
7144 | /* confdefs.h. */ | |
7145 | _ACEOF | |
7146 | cat confdefs.h >>conftest.$ac_ext | |
7147 | cat >>conftest.$ac_ext <<_ACEOF | |
7148 | /* end confdefs.h. */ | |
7149 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7151 | #define $ac_func innocuous_$ac_func | |
7152 | ||
7153 | /* System header to define __stub macros and hopefully few prototypes, | |
7154 | which can conflict with char $ac_func (); below. | |
7155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7156 | <limits.h> exists even on freestanding compilers. */ | |
7157 | ||
7158 | #ifdef __STDC__ | |
7159 | # include <limits.h> | |
7160 | #else | |
7161 | # include <assert.h> | |
7162 | #endif | |
7163 | ||
7164 | #undef $ac_func | |
7165 | ||
a8b2ad8d | 7166 | /* Override any GCC internal prototype to avoid an error. |
7167 | Use char because int might match the return type of a GCC | |
7168 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7169 | #ifdef __cplusplus |
7170 | extern "C" | |
b3076f16 | 7171 | #endif |
b3076f16 | 7172 | char $ac_func (); |
7173 | /* The GNU C library defines this for functions which it implements | |
7174 | to always fail with ENOSYS. Some functions are actually named | |
7175 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7176 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7177 | choke me |
b3076f16 | 7178 | #endif |
7179 | ||
7180 | int | |
7181 | main () | |
7182 | { | |
a8b2ad8d | 7183 | return $ac_func (); |
b3076f16 | 7184 | ; |
7185 | return 0; | |
7186 | } | |
7187 | _ACEOF | |
7188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7189 | if { (ac_try="$ac_link" |
7190 | case "(($ac_try" in | |
7191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7192 | *) ac_try_echo=$ac_try;; | |
7193 | esac | |
7194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7195 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7196 | ac_status=$? |
7197 | grep -v '^ *+' conftest.er1 >conftest.err | |
7198 | rm -f conftest.er1 | |
7199 | cat conftest.err >&5 | |
7200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7201 | (exit $ac_status); } && { |
7202 | test -z "$ac_c_werror_flag" || | |
7203 | test ! -s conftest.err | |
7204 | } && test -s conftest$ac_exeext && | |
7205 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7206 | eval "$as_ac_var=yes" |
7207 | else | |
7208 | echo "$as_me: failed program was:" >&5 | |
7209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7210 | ||
a8b2ad8d | 7211 | eval "$as_ac_var=no" |
b3076f16 | 7212 | fi |
a8b2ad8d | 7213 | |
0bd0bef6 | 7214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7215 | conftest$ac_exeext conftest.$ac_ext |
7216 | fi | |
a8b2ad8d | 7217 | ac_res=`eval echo '${'$as_ac_var'}'` |
7218 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7219 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7220 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7221 | cat >>confdefs.h <<_ACEOF | |
7222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7223 | _ACEOF | |
7224 | ||
7225 | fi | |
7226 | done | |
7227 | ||
a8b2ad8d | 7228 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7229 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
b3076f16 | 7230 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
7231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7232 | else | |
7233 | if test "$cross_compiling" = yes; then | |
7234 | ac_cv_func_mmap_fixed_mapped=no | |
7235 | else | |
7236 | cat >conftest.$ac_ext <<_ACEOF | |
7237 | /* confdefs.h. */ | |
7238 | _ACEOF | |
7239 | cat confdefs.h >>conftest.$ac_ext | |
7240 | cat >>conftest.$ac_ext <<_ACEOF | |
7241 | /* end confdefs.h. */ | |
7242 | $ac_includes_default | |
7243 | /* malloc might have been renamed as rpl_malloc. */ | |
7244 | #undef malloc | |
7245 | ||
7246 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7247 | Here is a matrix of mmap possibilities: | |
7248 | mmap private not fixed | |
7249 | mmap private fixed at somewhere currently unmapped | |
7250 | mmap private fixed at somewhere already mapped | |
7251 | mmap shared not fixed | |
7252 | mmap shared fixed at somewhere currently unmapped | |
7253 | mmap shared fixed at somewhere already mapped | |
7254 | For private mappings, we should verify that changes cannot be read() | |
7255 | back from the file, nor mmap's back from the file at a different | |
7256 | address. (There have been systems where private was not correctly | |
7257 | implemented like the infamous i386 svr4.0, and systems where the | |
7258 | VM page cache was not coherent with the file system buffer cache | |
7259 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7260 | For shared mappings, we should conversely verify that changes get | |
7261 | propagated back to all the places they're supposed to be. | |
7262 | ||
7263 | Grep wants private fixed already mapped. | |
7264 | The main things grep needs to know about mmap are: | |
7265 | * does it exist and is it safe to write into the mmap'd area | |
7266 | * how to use it (BSD variants) */ | |
7267 | ||
7268 | #include <fcntl.h> | |
7269 | #include <sys/mman.h> | |
7270 | ||
0bd0bef6 | 7271 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b3076f16 | 7272 | char *malloc (); |
7273 | #endif | |
7274 | ||
7275 | /* This mess was copied from the GNU getpagesize.h. */ | |
0bd0bef6 | 7276 | #ifndef HAVE_GETPAGESIZE |
b3076f16 | 7277 | /* Assume that all systems that can run configure have sys/param.h. */ |
0bd0bef6 | 7278 | # ifndef HAVE_SYS_PARAM_H |
b3076f16 | 7279 | # define HAVE_SYS_PARAM_H 1 |
7280 | # endif | |
7281 | ||
7282 | # ifdef _SC_PAGESIZE | |
7283 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7284 | # else /* no _SC_PAGESIZE */ | |
0bd0bef6 | 7285 | # ifdef HAVE_SYS_PARAM_H |
b3076f16 | 7286 | # include <sys/param.h> |
7287 | # ifdef EXEC_PAGESIZE | |
7288 | # define getpagesize() EXEC_PAGESIZE | |
7289 | # else /* no EXEC_PAGESIZE */ | |
7290 | # ifdef NBPG | |
7291 | # define getpagesize() NBPG * CLSIZE | |
7292 | # ifndef CLSIZE | |
7293 | # define CLSIZE 1 | |
7294 | # endif /* no CLSIZE */ | |
7295 | # else /* no NBPG */ | |
7296 | # ifdef NBPC | |
7297 | # define getpagesize() NBPC | |
7298 | # else /* no NBPC */ | |
7299 | # ifdef PAGESIZE | |
7300 | # define getpagesize() PAGESIZE | |
7301 | # endif /* PAGESIZE */ | |
7302 | # endif /* no NBPC */ | |
7303 | # endif /* no NBPG */ | |
7304 | # endif /* no EXEC_PAGESIZE */ | |
7305 | # else /* no HAVE_SYS_PARAM_H */ | |
7306 | # define getpagesize() 8192 /* punt totally */ | |
7307 | # endif /* no HAVE_SYS_PARAM_H */ | |
7308 | # endif /* no _SC_PAGESIZE */ | |
7309 | ||
7310 | #endif /* no HAVE_GETPAGESIZE */ | |
7311 | ||
7312 | int | |
7313 | main () | |
7314 | { | |
7315 | char *data, *data2, *data3; | |
7316 | int i, pagesize; | |
7317 | int fd; | |
7318 | ||
7319 | pagesize = getpagesize (); | |
7320 | ||
7321 | /* First, make a file with some known garbage in it. */ | |
7322 | data = (char *) malloc (pagesize); | |
7323 | if (!data) | |
a8b2ad8d | 7324 | return 1; |
b3076f16 | 7325 | for (i = 0; i < pagesize; ++i) |
7326 | *(data + i) = rand (); | |
7327 | umask (0); | |
7328 | fd = creat ("conftest.mmap", 0600); | |
7329 | if (fd < 0) | |
a8b2ad8d | 7330 | return 1; |
b3076f16 | 7331 | if (write (fd, data, pagesize) != pagesize) |
a8b2ad8d | 7332 | return 1; |
b3076f16 | 7333 | close (fd); |
7334 | ||
7335 | /* Next, try to mmap the file at a fixed address which already has | |
7336 | something else allocated at it. If we can, also make sure that | |
7337 | we see the same garbage. */ | |
7338 | fd = open ("conftest.mmap", O_RDWR); | |
7339 | if (fd < 0) | |
a8b2ad8d | 7340 | return 1; |
b3076f16 | 7341 | data2 = (char *) malloc (2 * pagesize); |
7342 | if (!data2) | |
a8b2ad8d | 7343 | return 1; |
7344 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b3076f16 | 7345 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
7346 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
a8b2ad8d | 7347 | return 1; |
b3076f16 | 7348 | for (i = 0; i < pagesize; ++i) |
7349 | if (*(data + i) != *(data2 + i)) | |
a8b2ad8d | 7350 | return 1; |
b3076f16 | 7351 | |
7352 | /* Finally, make sure that changes to the mapped area do not | |
7353 | percolate back to the file as seen by read(). (This is a bug on | |
7354 | some variants of i386 svr4.0.) */ | |
7355 | for (i = 0; i < pagesize; ++i) | |
7356 | *(data2 + i) = *(data2 + i) + 1; | |
7357 | data3 = (char *) malloc (pagesize); | |
7358 | if (!data3) | |
a8b2ad8d | 7359 | return 1; |
b3076f16 | 7360 | if (read (fd, data3, pagesize) != pagesize) |
a8b2ad8d | 7361 | return 1; |
b3076f16 | 7362 | for (i = 0; i < pagesize; ++i) |
7363 | if (*(data + i) != *(data3 + i)) | |
a8b2ad8d | 7364 | return 1; |
b3076f16 | 7365 | close (fd); |
a8b2ad8d | 7366 | return 0; |
b3076f16 | 7367 | } |
7368 | _ACEOF | |
7369 | rm -f conftest$ac_exeext | |
a8b2ad8d | 7370 | if { (ac_try="$ac_link" |
7371 | case "(($ac_try" in | |
7372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7373 | *) ac_try_echo=$ac_try;; | |
7374 | esac | |
7375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7376 | (eval "$ac_link") 2>&5 | |
b3076f16 | 7377 | ac_status=$? |
7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 7380 | { (case "(($ac_try" in |
7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7382 | *) ac_try_echo=$ac_try;; | |
7383 | esac | |
7384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7385 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7386 | ac_status=$? |
7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7388 | (exit $ac_status); }; }; then | |
7389 | ac_cv_func_mmap_fixed_mapped=yes | |
7390 | else | |
7391 | echo "$as_me: program exited with status $ac_status" >&5 | |
7392 | echo "$as_me: failed program was:" >&5 | |
7393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7394 | ||
7395 | ( exit $ac_status ) | |
7396 | ac_cv_func_mmap_fixed_mapped=no | |
7397 | fi | |
a8b2ad8d | 7398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 7399 | fi |
a8b2ad8d | 7400 | |
7401 | ||
b3076f16 | 7402 | fi |
a8b2ad8d | 7403 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7404 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b3076f16 | 7405 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7406 | ||
7407 | cat >>confdefs.h <<\_ACEOF | |
7408 | #define HAVE_MMAP 1 | |
7409 | _ACEOF | |
7410 | ||
7411 | fi | |
7412 | rm -f conftest.mmap | |
7413 | ||
7414 | ||
a8b2ad8d | 7415 | { echo "$as_me:$LINENO: checking for sin_len" >&5 |
7416 | echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; } | |
b3076f16 | 7417 | if test "${ac_cv_sin_len+set}" = set; then |
7418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7419 | else | |
7420 | cat >conftest.$ac_ext <<_ACEOF | |
7421 | /* confdefs.h. */ | |
7422 | _ACEOF | |
7423 | cat confdefs.h >>conftest.$ac_ext | |
7424 | cat >>conftest.$ac_ext <<_ACEOF | |
7425 | /* end confdefs.h. */ | |
7426 | #include <sys/types.h> | |
7427 | #include <netinet/in.h> | |
7428 | int | |
7429 | main () | |
7430 | { | |
7431 | struct sockaddr_in *sin; sin->sin_len = 0; | |
7432 | ; | |
7433 | return 0; | |
7434 | } | |
7435 | _ACEOF | |
7436 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7437 | if { (ac_try="$ac_compile" |
7438 | case "(($ac_try" in | |
7439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7440 | *) ac_try_echo=$ac_try;; | |
7441 | esac | |
7442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7443 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7444 | ac_status=$? |
7445 | grep -v '^ *+' conftest.er1 >conftest.err | |
7446 | rm -f conftest.er1 | |
7447 | cat conftest.err >&5 | |
7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7449 | (exit $ac_status); } && { |
7450 | test -z "$ac_c_werror_flag" || | |
7451 | test ! -s conftest.err | |
7452 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7453 | ac_cv_sin_len="yes" |
7454 | else | |
7455 | echo "$as_me: failed program was:" >&5 | |
7456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7457 | ||
a8b2ad8d | 7458 | ac_cv_sin_len="no" |
b3076f16 | 7459 | fi |
a8b2ad8d | 7460 | |
7461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7462 | fi |
a8b2ad8d | 7463 | { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5 |
7464 | echo "${ECHO_T}$ac_cv_sin_len" >&6; } | |
b3076f16 | 7465 | if test $ac_cv_sin_len = yes ; then |
7466 | ||
7467 | cat >>confdefs.h <<\_ACEOF | |
7468 | #define HAVE_SIN_LEN 1 | |
7469 | _ACEOF | |
7470 | ||
7471 | fi | |
7472 | ||
a8b2ad8d | 7473 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7474 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
79886419 | 7475 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7477 | else | |
7478 | cat >conftest.$ac_ext <<_ACEOF | |
7479 | /* confdefs.h. */ | |
7480 | _ACEOF | |
7481 | cat confdefs.h >>conftest.$ac_ext | |
7482 | cat >>conftest.$ac_ext <<_ACEOF | |
7483 | /* end confdefs.h. */ | |
7484 | #include <sys/types.h> | |
7485 | #include<sys/socket.h> | |
7486 | ||
a8b2ad8d | 7487 | typedef socklen_t ac__type_new_; |
79886419 | 7488 | int |
7489 | main () | |
7490 | { | |
a8b2ad8d | 7491 | if ((ac__type_new_ *) 0) |
79886419 | 7492 | return 0; |
a8b2ad8d | 7493 | if (sizeof (ac__type_new_)) |
79886419 | 7494 | return 0; |
7495 | ; | |
7496 | return 0; | |
7497 | } | |
7498 | _ACEOF | |
7499 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7500 | if { (ac_try="$ac_compile" |
7501 | case "(($ac_try" in | |
7502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7503 | *) ac_try_echo=$ac_try;; | |
7504 | esac | |
7505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7506 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 7507 | ac_status=$? |
7508 | grep -v '^ *+' conftest.er1 >conftest.err | |
7509 | rm -f conftest.er1 | |
7510 | cat conftest.err >&5 | |
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7512 | (exit $ac_status); } && { |
7513 | test -z "$ac_c_werror_flag" || | |
7514 | test ! -s conftest.err | |
7515 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 7516 | ac_cv_type_socklen_t=yes |
ff3b058a | 7517 | else |
7518 | echo "$as_me: failed program was:" >&5 | |
7519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7520 | ||
0f6fe38c | 7521 | ac_cv_type_socklen_t=no |
ff3b058a | 7522 | fi |
7523 | ||
7524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff3b058a | 7525 | fi |
0f6fe38c | 7526 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7527 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
7528 | if test $ac_cv_type_socklen_t = yes; then | |
7529 | : | |
7530 | else | |
ff3b058a | 7531 | |
0f6fe38c | 7532 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 |
7533 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | |
7534 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | |
ff3b058a | 7535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7536 | else | |
0f6fe38c | 7537 | |
7538 | curl_cv_socklen_t_equiv= | |
7539 | for arg2 in "struct sockaddr" void ; do | |
7540 | for t in int size_t unsigned long "unsigned long" ; do | |
7541 | cat >conftest.$ac_ext <<_ACEOF | |
ff3b058a | 7542 | /* confdefs.h. */ |
7543 | _ACEOF | |
7544 | cat confdefs.h >>conftest.$ac_ext | |
7545 | cat >>conftest.$ac_ext <<_ACEOF | |
7546 | /* end confdefs.h. */ | |
0f6fe38c | 7547 | #include <sys/types.h> |
7548 | #include <sys/socket.h> | |
7549 | int getpeername (int $arg2 *, $t *); | |
7550 | int | |
7551 | main () | |
7552 | { | |
7553 | $t len; | |
7554 | getpeername(0, 0, &len); | |
7555 | ; | |
7556 | return 0; | |
7557 | } | |
79886419 | 7558 | _ACEOF |
7559 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7560 | if { (ac_try="$ac_compile" |
7561 | case "(($ac_try" in | |
7562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7563 | *) ac_try_echo=$ac_try;; | |
7564 | esac | |
7565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7566 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 7567 | ac_status=$? |
7568 | grep -v '^ *+' conftest.er1 >conftest.err | |
7569 | rm -f conftest.er1 | |
7570 | cat conftest.err >&5 | |
7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7572 | (exit $ac_status); } && { |
7573 | test -z "$ac_c_werror_flag" || | |
7574 | test ! -s conftest.err | |
7575 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 7576 | curl_cv_socklen_t_equiv="$t" |
7577 | break | |
79886419 | 7578 | else |
7579 | echo "$as_me: failed program was:" >&5 | |
7580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7581 | ||
a8b2ad8d | 7582 | |
79886419 | 7583 | fi |
a8b2ad8d | 7584 | |
7585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0f6fe38c | 7586 | done |
7587 | done | |
79886419 | 7588 | |
7589 | fi | |
7590 | ||
0f6fe38c | 7591 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 |
7592 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | |
79886419 | 7593 | |
0f6fe38c | 7594 | cat >>confdefs.h <<_ACEOF |
7595 | #define socklen_t $curl_cv_socklen_t_equiv | |
79886419 | 7596 | _ACEOF |
7597 | ||
0f6fe38c | 7598 | fi |
7599 | ||
7600 | ||
7601 | OLD_CFLAGS=$CFLAGS | |
7602 | CFLAGS="$CFLAGS -W -Wall -Werror" | |
b3076f16 | 7603 | |
1136f709 | 7604 | if test "z$USE_MAINTAINER_MODE" = zyes ; then |
7605 | CFLAGS="$CFLAGS -ansi" | |
7606 | fi | |
7607 | ||
7608 | { echo "$as_me:$LINENO: checking for inline" >&5 | |
7609 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
7610 | if test "${ac_cv_c_inline+set}" = set; then | |
7611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7612 | else | |
7613 | ac_cv_c_inline=no | |
7614 | for ac_kw in inline __inline__ __inline; do | |
7615 | cat >conftest.$ac_ext <<_ACEOF | |
7616 | /* confdefs.h. */ | |
7617 | _ACEOF | |
7618 | cat confdefs.h >>conftest.$ac_ext | |
7619 | cat >>conftest.$ac_ext <<_ACEOF | |
7620 | /* end confdefs.h. */ | |
7621 | #ifndef __cplusplus | |
7622 | typedef int foo_t; | |
7623 | static $ac_kw foo_t static_foo () {return 0; } | |
7624 | $ac_kw foo_t foo () {return 0; } | |
7625 | #endif | |
7626 | ||
7627 | _ACEOF | |
7628 | rm -f conftest.$ac_objext | |
7629 | if { (ac_try="$ac_compile" | |
7630 | case "(($ac_try" in | |
7631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7632 | *) ac_try_echo=$ac_try;; | |
7633 | esac | |
7634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7635 | (eval "$ac_compile") 2>conftest.er1 | |
7636 | ac_status=$? | |
7637 | grep -v '^ *+' conftest.er1 >conftest.err | |
7638 | rm -f conftest.er1 | |
7639 | cat conftest.err >&5 | |
7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7641 | (exit $ac_status); } && { | |
7642 | test -z "$ac_c_werror_flag" || | |
7643 | test ! -s conftest.err | |
7644 | } && test -s conftest.$ac_objext; then | |
7645 | ac_cv_c_inline=$ac_kw | |
7646 | else | |
7647 | echo "$as_me: failed program was:" >&5 | |
7648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7649 | ||
7650 | ||
7651 | fi | |
7652 | ||
7653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7654 | test "$ac_cv_c_inline" != no && break | |
7655 | done | |
7656 | ||
7657 | fi | |
7658 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
7659 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
7660 | ||
7661 | ||
7662 | case $ac_cv_c_inline in | |
7663 | inline | yes) ;; | |
7664 | *) | |
7665 | case $ac_cv_c_inline in | |
7666 | no) ac_val=;; | |
7667 | *) ac_val=$ac_cv_c_inline;; | |
7668 | esac | |
7669 | cat >>confdefs.h <<_ACEOF | |
7670 | #ifndef __cplusplus | |
7671 | #define inline $ac_val | |
7672 | #endif | |
7673 | _ACEOF | |
7674 | ;; | |
7675 | esac | |
7676 | ||
7677 | ||
a8b2ad8d | 7678 | { echo "$as_me:$LINENO: checking for time_t format" >&5 |
7679 | echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; } | |
b3076f16 | 7680 | if test "${ac_cv_fmt_time_t+set}" = set; then |
7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7682 | else | |
7683 | ||
7684 | ac_cv_fmt_time_t=no | |
7685 | cat >conftest.$ac_ext <<_ACEOF | |
7686 | #include <sys/types.h> | |
7687 | #include <stdio.h> | |
7688 | void myfunc(void) { | |
7689 | time_t test=0; | |
7690 | printf("%li", test); | |
7691 | } | |
7692 | _ACEOF | |
7693 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7694 | if { (ac_try="$ac_compile" |
7695 | case "(($ac_try" in | |
7696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7697 | *) ac_try_echo=$ac_try;; | |
7698 | esac | |
7699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7700 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7701 | ac_status=$? |
7702 | grep -v '^ *+' conftest.er1 >conftest.err | |
7703 | rm -f conftest.er1 | |
7704 | cat conftest.err >&5 | |
7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7706 | (exit $ac_status); } && { |
7707 | test -z "$ac_c_werror_flag" || | |
7708 | test ! -s conftest.err | |
7709 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7710 | ac_cv_fmt_time_t="\"%li\"" |
7711 | else | |
7712 | echo "$as_me: failed program was:" >&5 | |
7713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7714 | ||
a8b2ad8d | 7715 | |
b3076f16 | 7716 | fi |
a8b2ad8d | 7717 | |
7718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7719 | if test $ac_cv_fmt_time_t = no; then |
7720 | cat >conftest.$ac_ext <<_ACEOF | |
7721 | #include <sys/types.h> | |
7722 | #include <stdio.h> | |
7723 | void myfunc(void) { | |
7724 | time_t test=0; | |
7725 | printf("%i", test); | |
7726 | } | |
7727 | _ACEOF | |
7728 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7729 | if { (ac_try="$ac_compile" |
7730 | case "(($ac_try" in | |
7731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7732 | *) ac_try_echo=$ac_try;; | |
7733 | esac | |
7734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7735 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7736 | ac_status=$? |
7737 | grep -v '^ *+' conftest.er1 >conftest.err | |
7738 | rm -f conftest.er1 | |
7739 | cat conftest.err >&5 | |
7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7741 | (exit $ac_status); } && { |
7742 | test -z "$ac_c_werror_flag" || | |
7743 | test ! -s conftest.err | |
7744 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7745 | ac_cv_fmt_time_t="\"%i\"" |
7746 | else | |
7747 | echo "$as_me: failed program was:" >&5 | |
7748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7749 | ||
a8b2ad8d | 7750 | |
b3076f16 | 7751 | fi |
a8b2ad8d | 7752 | |
7753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7754 | fi |
7755 | if test $ac_cv_fmt_time_t = no; then | |
7756 | { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t | |
7757 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&5 | |
7758 | echo "$as_me: error: Cannot detect format string for time_t | |
7759 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;} | |
7760 | { (exit 1); exit 1; }; } | |
7761 | fi | |
7762 | ||
7763 | fi | |
7764 | ||
7765 | ||
7766 | cat >>confdefs.h <<_ACEOF | |
7767 | #define FMT_TIME_T $ac_cv_fmt_time_t | |
7768 | _ACEOF | |
7769 | ||
a8b2ad8d | 7770 | { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5 |
7771 | echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; } | |
b3076f16 | 7772 | |
a8b2ad8d | 7773 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
7774 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } | |
b3076f16 | 7775 | if test "${ac_cv_c_va_copy+set}" = set; then |
7776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7777 | else | |
7778 | cat >conftest.$ac_ext <<_ACEOF | |
7779 | /* confdefs.h. */ | |
7780 | _ACEOF | |
7781 | cat confdefs.h >>conftest.$ac_ext | |
7782 | cat >>conftest.$ac_ext <<_ACEOF | |
7783 | /* end confdefs.h. */ | |
7784 | #include <stdarg.h> | |
7785 | int | |
7786 | main () | |
7787 | { | |
7788 | va_list ap1, ap2; va_copy(ap1, ap2); | |
7789 | ; | |
7790 | return 0; | |
7791 | } | |
7792 | _ACEOF | |
7793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7794 | if { (ac_try="$ac_link" |
7795 | case "(($ac_try" in | |
7796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7797 | *) ac_try_echo=$ac_try;; | |
7798 | esac | |
7799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7800 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7801 | ac_status=$? |
7802 | grep -v '^ *+' conftest.er1 >conftest.err | |
7803 | rm -f conftest.er1 | |
7804 | cat conftest.err >&5 | |
7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7806 | (exit $ac_status); } && { |
7807 | test -z "$ac_c_werror_flag" || | |
7808 | test ! -s conftest.err | |
7809 | } && test -s conftest$ac_exeext && | |
7810 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7811 | ac_cv_c_va_copy="yes" |
7812 | else | |
7813 | echo "$as_me: failed program was:" >&5 | |
7814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7815 | ||
a8b2ad8d | 7816 | ac_cv_c_va_copy="no" |
b3076f16 | 7817 | |
7818 | fi | |
a8b2ad8d | 7819 | |
0bd0bef6 | 7820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7821 | conftest$ac_exeext conftest.$ac_ext |
7822 | fi | |
a8b2ad8d | 7823 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
7824 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } | |
b3076f16 | 7825 | if test "$ac_cv_c_va_copy" = "yes" ; then |
7826 | ||
7827 | cat >>confdefs.h <<\_ACEOF | |
7828 | #define HAVE_VA_COPY 1 | |
7829 | _ACEOF | |
7830 | ||
7831 | fi | |
7832 | ||
a8b2ad8d | 7833 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
7834 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } | |
b3076f16 | 7835 | if test "${ac_cv_c___va_copy+set}" = set; then |
7836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7837 | else | |
7838 | cat >conftest.$ac_ext <<_ACEOF | |
7839 | /* confdefs.h. */ | |
7840 | _ACEOF | |
7841 | cat confdefs.h >>conftest.$ac_ext | |
7842 | cat >>conftest.$ac_ext <<_ACEOF | |
7843 | /* end confdefs.h. */ | |
7844 | #include <stdarg.h> | |
7845 | int | |
7846 | main () | |
7847 | { | |
7848 | va_list ap1, ap2; __va_copy(ap1, ap2); | |
7849 | ; | |
7850 | return 0; | |
7851 | } | |
7852 | _ACEOF | |
7853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7854 | if { (ac_try="$ac_link" |
7855 | case "(($ac_try" in | |
7856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7857 | *) ac_try_echo=$ac_try;; | |
7858 | esac | |
7859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7860 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7861 | ac_status=$? |
7862 | grep -v '^ *+' conftest.er1 >conftest.err | |
7863 | rm -f conftest.er1 | |
7864 | cat conftest.err >&5 | |
7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7866 | (exit $ac_status); } && { |
7867 | test -z "$ac_c_werror_flag" || | |
7868 | test ! -s conftest.err | |
7869 | } && test -s conftest$ac_exeext && | |
7870 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7871 | ac_cv_c___va_copy="yes" |
7872 | else | |
7873 | echo "$as_me: failed program was:" >&5 | |
7874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7875 | ||
a8b2ad8d | 7876 | ac_cv_c___va_copy="no" |
b3076f16 | 7877 | |
7878 | fi | |
a8b2ad8d | 7879 | |
0bd0bef6 | 7880 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7881 | conftest$ac_exeext conftest.$ac_ext |
7882 | fi | |
a8b2ad8d | 7883 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
7884 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } | |
b3076f16 | 7885 | if test "$ac_cv_c___va_copy" = "yes" ; then |
7886 | ||
7887 | cat >>confdefs.h <<\_ACEOF | |
7888 | #define HAVE___VA_COPY 1 | |
7889 | _ACEOF | |
7890 | ||
7891 | fi | |
7892 | ||
7893 | CFLAGS=$OLD_CFLAGS | |
7894 | ||
a8b2ad8d | 7895 | { echo "$as_me:$LINENO: checking which malloc to use" >&5 |
7896 | echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; } | |
b3076f16 | 7897 | |
a8b2ad8d | 7898 | # Check whether --with-malloc was given. |
b3076f16 | 7899 | if test "${with_malloc+set}" = set; then |
a8b2ad8d | 7900 | withval=$with_malloc; |
b3076f16 | 7901 | else |
7902 | withval="system" | |
a8b2ad8d | 7903 | fi |
7904 | ||
b3076f16 | 7905 | if test "x$withval" = "xsystem" ; then |
a8b2ad8d | 7906 | { echo "$as_me:$LINENO: result: system" >&5 |
7907 | echo "${ECHO_T}system" >&6; } | |
b3076f16 | 7908 | |
7909 | cat >>confdefs.h <<\_ACEOF | |
7910 | #define WITH_MALLOC_SYSTEM 1 | |
7911 | _ACEOF | |
7912 | ||
5b1166fd | 7913 | x3_malloc="System" |
b3076f16 | 7914 | elif test "x$withval" = "xdmalloc" ; then |
a8b2ad8d | 7915 | { echo "$as_me:$LINENO: result: dmalloc" >&5 |
7916 | echo "${ECHO_T}dmalloc" >&6; } | |
b3076f16 | 7917 | |
7918 | for ac_header in dmalloc.h | |
7919 | do | |
7920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 7921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7922 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7926 | fi | |
a8b2ad8d | 7927 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7929 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7930 | else |
7931 | # Is the header compilable? | |
a8b2ad8d | 7932 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7933 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 7934 | cat >conftest.$ac_ext <<_ACEOF |
7935 | /* confdefs.h. */ | |
7936 | _ACEOF | |
7937 | cat confdefs.h >>conftest.$ac_ext | |
7938 | cat >>conftest.$ac_ext <<_ACEOF | |
7939 | /* end confdefs.h. */ | |
7940 | $ac_includes_default | |
7941 | #include <$ac_header> | |
7942 | _ACEOF | |
7943 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7944 | if { (ac_try="$ac_compile" |
7945 | case "(($ac_try" in | |
7946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7947 | *) ac_try_echo=$ac_try;; | |
7948 | esac | |
7949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7950 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7951 | ac_status=$? |
7952 | grep -v '^ *+' conftest.er1 >conftest.err | |
7953 | rm -f conftest.er1 | |
7954 | cat conftest.err >&5 | |
7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7956 | (exit $ac_status); } && { |
7957 | test -z "$ac_c_werror_flag" || | |
7958 | test ! -s conftest.err | |
7959 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7960 | ac_header_compiler=yes |
7961 | else | |
7962 | echo "$as_me: failed program was:" >&5 | |
7963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7964 | ||
a8b2ad8d | 7965 | ac_header_compiler=no |
b3076f16 | 7966 | fi |
a8b2ad8d | 7967 | |
7968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7969 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7970 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 7971 | |
7972 | # Is the header present? | |
a8b2ad8d | 7973 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7974 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 7975 | cat >conftest.$ac_ext <<_ACEOF |
7976 | /* confdefs.h. */ | |
7977 | _ACEOF | |
7978 | cat confdefs.h >>conftest.$ac_ext | |
7979 | cat >>conftest.$ac_ext <<_ACEOF | |
7980 | /* end confdefs.h. */ | |
7981 | #include <$ac_header> | |
7982 | _ACEOF | |
a8b2ad8d | 7983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7984 | case "(($ac_try" in | |
7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7986 | *) ac_try_echo=$ac_try;; | |
7987 | esac | |
7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 7990 | ac_status=$? |
7991 | grep -v '^ *+' conftest.er1 >conftest.err | |
7992 | rm -f conftest.er1 | |
7993 | cat conftest.err >&5 | |
7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 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 | |
b3076f16 | 7999 | ac_header_preproc=yes |
8000 | else | |
8001 | echo "$as_me: failed program was:" >&5 | |
8002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8003 | ||
8004 | ac_header_preproc=no | |
8005 | fi | |
a8b2ad8d | 8006 | |
b3076f16 | 8007 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8008 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8009 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8010 | |
8011 | # So? What about this header? | |
8012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8013 | yes:no: ) | |
8014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8018 | ac_header_preproc=yes | |
8019 | ;; | |
8020 | no:yes:* ) | |
8021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8033 | ( cat <<\_ASBOX |
63c95a47 | 8034 | ## -------------------------------------------------- ## |
8035 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8036 | ## -------------------------------------------------- ## | |
b3076f16 | 8037 | _ASBOX |
a8b2ad8d | 8038 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8039 | ;; |
8040 | esac | |
a8b2ad8d | 8041 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8045 | else | |
8046 | eval "$as_ac_Header=\$ac_header_preproc" | |
8047 | fi | |
a8b2ad8d | 8048 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8050 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8051 | |
8052 | fi | |
8053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8054 | cat >>confdefs.h <<_ACEOF | |
8055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8056 | _ACEOF | |
8057 | ||
8058 | else | |
8059 | { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5 | |
8060 | echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;} | |
8061 | { (exit 1); exit 1; }; } | |
8062 | fi | |
8063 | ||
8064 | done | |
8065 | ||
8066 | ||
a8b2ad8d | 8067 | { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5 |
8068 | echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; } | |
b3076f16 | 8069 | if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then |
8070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8071 | else | |
8072 | ac_check_lib_save_LIBS=$LIBS | |
8073 | LIBS="-ldmalloc $LIBS" | |
8074 | cat >conftest.$ac_ext <<_ACEOF | |
8075 | /* confdefs.h. */ | |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
8080 | ||
a8b2ad8d | 8081 | /* Override any GCC internal prototype to avoid an error. |
8082 | Use char because int might match the return type of a GCC | |
8083 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8084 | #ifdef __cplusplus |
8085 | extern "C" | |
8086 | #endif | |
b3076f16 | 8087 | char malloc (); |
8088 | int | |
8089 | main () | |
8090 | { | |
a8b2ad8d | 8091 | return malloc (); |
b3076f16 | 8092 | ; |
8093 | return 0; | |
8094 | } | |
8095 | _ACEOF | |
8096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8097 | if { (ac_try="$ac_link" |
8098 | case "(($ac_try" in | |
8099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8100 | *) ac_try_echo=$ac_try;; | |
8101 | esac | |
8102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8103 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8104 | ac_status=$? |
8105 | grep -v '^ *+' conftest.er1 >conftest.err | |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8109 | (exit $ac_status); } && { |
8110 | test -z "$ac_c_werror_flag" || | |
8111 | test ! -s conftest.err | |
8112 | } && test -s conftest$ac_exeext && | |
8113 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8114 | ac_cv_lib_dmalloc_malloc=yes |
8115 | else | |
8116 | echo "$as_me: failed program was:" >&5 | |
8117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8118 | ||
a8b2ad8d | 8119 | ac_cv_lib_dmalloc_malloc=no |
b3076f16 | 8120 | fi |
a8b2ad8d | 8121 | |
0bd0bef6 | 8122 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8123 | conftest$ac_exeext conftest.$ac_ext |
8124 | LIBS=$ac_check_lib_save_LIBS | |
8125 | fi | |
a8b2ad8d | 8126 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5 |
8127 | echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; } | |
b3076f16 | 8128 | if test $ac_cv_lib_dmalloc_malloc = yes; then |
8129 | cat >>confdefs.h <<_ACEOF | |
8130 | #define HAVE_LIBDMALLOC 1 | |
8131 | _ACEOF | |
8132 | ||
8133 | LIBS="-ldmalloc $LIBS" | |
8134 | ||
8135 | else | |
8136 | { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5 | |
8137 | echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;} | |
8138 | { (exit 1); exit 1; }; } | |
8139 | fi | |
8140 | ||
8141 | ||
8142 | cat >>confdefs.h <<\_ACEOF | |
8143 | #define WITH_MALLOC_DMALLOC 1 | |
8144 | _ACEOF | |
8145 | ||
5b1166fd | 8146 | x3_malloc="DMalloc" |
b3076f16 | 8147 | elif test "x$withval" = "xmpatrol" ; then |
a8b2ad8d | 8148 | { echo "$as_me:$LINENO: result: mpatrol" >&5 |
8149 | echo "${ECHO_T}mpatrol" >&6; } | |
b3076f16 | 8150 | |
8151 | for ac_header in mpatrol.h | |
8152 | do | |
8153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8155 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8159 | fi | |
a8b2ad8d | 8160 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8162 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8163 | else |
8164 | # Is the header compilable? | |
a8b2ad8d | 8165 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8167 | cat >conftest.$ac_ext <<_ACEOF |
8168 | /* confdefs.h. */ | |
8169 | _ACEOF | |
8170 | cat confdefs.h >>conftest.$ac_ext | |
8171 | cat >>conftest.$ac_ext <<_ACEOF | |
8172 | /* end confdefs.h. */ | |
8173 | $ac_includes_default | |
8174 | #include <$ac_header> | |
8175 | _ACEOF | |
8176 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8177 | if { (ac_try="$ac_compile" |
8178 | case "(($ac_try" in | |
8179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8180 | *) ac_try_echo=$ac_try;; | |
8181 | esac | |
8182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8183 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8184 | ac_status=$? |
8185 | grep -v '^ *+' conftest.er1 >conftest.err | |
8186 | rm -f conftest.er1 | |
8187 | cat conftest.err >&5 | |
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8189 | (exit $ac_status); } && { |
8190 | test -z "$ac_c_werror_flag" || | |
8191 | test ! -s conftest.err | |
8192 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 8193 | ac_header_compiler=yes |
8194 | else | |
8195 | echo "$as_me: failed program was:" >&5 | |
8196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8197 | ||
a8b2ad8d | 8198 | ac_header_compiler=no |
b3076f16 | 8199 | fi |
a8b2ad8d | 8200 | |
8201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8202 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8203 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8204 | |
8205 | # Is the header present? | |
a8b2ad8d | 8206 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8207 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8208 | cat >conftest.$ac_ext <<_ACEOF |
8209 | /* confdefs.h. */ | |
8210 | _ACEOF | |
8211 | cat confdefs.h >>conftest.$ac_ext | |
8212 | cat >>conftest.$ac_ext <<_ACEOF | |
8213 | /* end confdefs.h. */ | |
8214 | #include <$ac_header> | |
8215 | _ACEOF | |
a8b2ad8d | 8216 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8217 | case "(($ac_try" in | |
8218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8219 | *) ac_try_echo=$ac_try;; | |
8220 | esac | |
8221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8222 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 8223 | ac_status=$? |
8224 | grep -v '^ *+' conftest.er1 >conftest.err | |
8225 | rm -f conftest.er1 | |
8226 | cat conftest.err >&5 | |
8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8228 | (exit $ac_status); } >/dev/null && { |
8229 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8230 | test ! -s conftest.err | |
8231 | }; then | |
b3076f16 | 8232 | ac_header_preproc=yes |
8233 | else | |
8234 | echo "$as_me: failed program was:" >&5 | |
8235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8236 | ||
8237 | ac_header_preproc=no | |
8238 | fi | |
a8b2ad8d | 8239 | |
b3076f16 | 8240 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8241 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8242 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8243 | |
8244 | # So? What about this header? | |
8245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8246 | yes:no: ) | |
8247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8251 | ac_header_preproc=yes | |
8252 | ;; | |
8253 | no:yes:* ) | |
8254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8266 | ( cat <<\_ASBOX |
63c95a47 | 8267 | ## -------------------------------------------------- ## |
8268 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8269 | ## -------------------------------------------------- ## | |
b3076f16 | 8270 | _ASBOX |
a8b2ad8d | 8271 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8272 | ;; |
8273 | esac | |
a8b2ad8d | 8274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8278 | else | |
8279 | eval "$as_ac_Header=\$ac_header_preproc" | |
8280 | fi | |
a8b2ad8d | 8281 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8282 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8283 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8284 | |
8285 | fi | |
8286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8287 | cat >>confdefs.h <<_ACEOF | |
8288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8289 | _ACEOF | |
8290 | ||
8291 | else | |
8292 | { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5 | |
8293 | echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;} | |
8294 | { (exit 1); exit 1; }; } | |
8295 | fi | |
8296 | ||
8297 | done | |
8298 | ||
8299 | ||
a8b2ad8d | 8300 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
8301 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
b3076f16 | 8302 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
8303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8304 | else | |
8305 | ac_check_lib_save_LIBS=$LIBS | |
8306 | LIBS="-lelf $LIBS" | |
8307 | cat >conftest.$ac_ext <<_ACEOF | |
8308 | /* confdefs.h. */ | |
8309 | _ACEOF | |
8310 | cat confdefs.h >>conftest.$ac_ext | |
8311 | cat >>conftest.$ac_ext <<_ACEOF | |
8312 | /* end confdefs.h. */ | |
8313 | ||
a8b2ad8d | 8314 | /* Override any GCC internal prototype to avoid an error. |
8315 | Use char because int might match the return type of a GCC | |
8316 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8317 | #ifdef __cplusplus |
8318 | extern "C" | |
8319 | #endif | |
b3076f16 | 8320 | char elf_begin (); |
8321 | int | |
8322 | main () | |
8323 | { | |
a8b2ad8d | 8324 | return elf_begin (); |
b3076f16 | 8325 | ; |
8326 | return 0; | |
8327 | } | |
8328 | _ACEOF | |
8329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8330 | if { (ac_try="$ac_link" |
8331 | case "(($ac_try" in | |
8332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8333 | *) ac_try_echo=$ac_try;; | |
8334 | esac | |
8335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8336 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8337 | ac_status=$? |
8338 | grep -v '^ *+' conftest.er1 >conftest.err | |
8339 | rm -f conftest.er1 | |
8340 | cat conftest.err >&5 | |
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8342 | (exit $ac_status); } && { |
8343 | test -z "$ac_c_werror_flag" || | |
8344 | test ! -s conftest.err | |
8345 | } && test -s conftest$ac_exeext && | |
8346 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8347 | ac_cv_lib_elf_elf_begin=yes |
8348 | else | |
8349 | echo "$as_me: failed program was:" >&5 | |
8350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8351 | ||
a8b2ad8d | 8352 | ac_cv_lib_elf_elf_begin=no |
b3076f16 | 8353 | fi |
a8b2ad8d | 8354 | |
0bd0bef6 | 8355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8356 | conftest$ac_exeext conftest.$ac_ext |
8357 | LIBS=$ac_check_lib_save_LIBS | |
8358 | fi | |
a8b2ad8d | 8359 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
8360 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
b3076f16 | 8361 | if test $ac_cv_lib_elf_elf_begin = yes; then |
8362 | cat >>confdefs.h <<_ACEOF | |
8363 | #define HAVE_LIBELF 1 | |
8364 | _ACEOF | |
8365 | ||
8366 | LIBS="-lelf $LIBS" | |
8367 | ||
8368 | fi | |
8369 | ||
8370 | ||
a8b2ad8d | 8371 | { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5 |
8372 | echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; } | |
b3076f16 | 8373 | if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then |
8374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8375 | else | |
8376 | ac_check_lib_save_LIBS=$LIBS | |
8377 | LIBS="-lmpatrol $LIBS" | |
8378 | cat >conftest.$ac_ext <<_ACEOF | |
8379 | /* confdefs.h. */ | |
8380 | _ACEOF | |
8381 | cat confdefs.h >>conftest.$ac_ext | |
8382 | cat >>conftest.$ac_ext <<_ACEOF | |
8383 | /* end confdefs.h. */ | |
8384 | ||
a8b2ad8d | 8385 | /* Override any GCC internal prototype to avoid an error. |
8386 | Use char because int might match the return type of a GCC | |
8387 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8388 | #ifdef __cplusplus |
8389 | extern "C" | |
8390 | #endif | |
b3076f16 | 8391 | char __mp_atexit (); |
8392 | int | |
8393 | main () | |
8394 | { | |
a8b2ad8d | 8395 | return __mp_atexit (); |
b3076f16 | 8396 | ; |
8397 | return 0; | |
8398 | } | |
8399 | _ACEOF | |
8400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8401 | if { (ac_try="$ac_link" |
8402 | case "(($ac_try" in | |
8403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8404 | *) ac_try_echo=$ac_try;; | |
8405 | esac | |
8406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8407 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8408 | ac_status=$? |
8409 | grep -v '^ *+' conftest.er1 >conftest.err | |
8410 | rm -f conftest.er1 | |
8411 | cat conftest.err >&5 | |
8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8413 | (exit $ac_status); } && { |
8414 | test -z "$ac_c_werror_flag" || | |
8415 | test ! -s conftest.err | |
8416 | } && test -s conftest$ac_exeext && | |
8417 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8418 | ac_cv_lib_mpatrol___mp_atexit=yes |
8419 | else | |
8420 | echo "$as_me: failed program was:" >&5 | |
8421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8422 | ||
a8b2ad8d | 8423 | ac_cv_lib_mpatrol___mp_atexit=no |
b3076f16 | 8424 | fi |
a8b2ad8d | 8425 | |
0bd0bef6 | 8426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8427 | conftest$ac_exeext conftest.$ac_ext |
8428 | LIBS=$ac_check_lib_save_LIBS | |
8429 | fi | |
a8b2ad8d | 8430 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5 |
8431 | echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; } | |
b3076f16 | 8432 | if test $ac_cv_lib_mpatrol___mp_atexit = yes; then |
8433 | cat >>confdefs.h <<_ACEOF | |
8434 | #define HAVE_LIBMPATROL 1 | |
8435 | _ACEOF | |
8436 | ||
8437 | LIBS="-lmpatrol $LIBS" | |
8438 | ||
8439 | else | |
8440 | { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5 | |
8441 | echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;} | |
8442 | { (exit 1); exit 1; }; } | |
8443 | fi | |
8444 | ||
8445 | ||
8446 | cat >>confdefs.h <<\_ACEOF | |
8447 | #define WITH_MALLOC_MPATROL 1 | |
8448 | _ACEOF | |
8449 | ||
5b1166fd | 8450 | x3_malloc="MPatrol" |
b3076f16 | 8451 | elif test "x$withval" = "xboehm-gc" ; then |
a8b2ad8d | 8452 | { echo "$as_me:$LINENO: result: boehm-gc" >&5 |
8453 | echo "${ECHO_T}boehm-gc" >&6; } | |
b3076f16 | 8454 | |
8455 | for ac_header in gc/gc.h | |
8456 | do | |
8457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8459 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8461 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8463 | fi | |
a8b2ad8d | 8464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8466 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8467 | else |
8468 | # Is the header compilable? | |
a8b2ad8d | 8469 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8471 | cat >conftest.$ac_ext <<_ACEOF |
8472 | /* confdefs.h. */ | |
8473 | _ACEOF | |
8474 | cat confdefs.h >>conftest.$ac_ext | |
8475 | cat >>conftest.$ac_ext <<_ACEOF | |
8476 | /* end confdefs.h. */ | |
8477 | $ac_includes_default | |
ff3b058a | 8478 | #include <$ac_header> |
8479 | _ACEOF | |
8480 | rm -f conftest.$ac_objext | |
8481 | if { (ac_try="$ac_compile" | |
8482 | case "(($ac_try" in | |
a8b2ad8d | 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8484 | *) ac_try_echo=$ac_try;; | |
8485 | esac | |
8486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
0f6fe38c | 8487 | (eval "$ac_compile") 2>conftest.er1 |
8488 | ac_status=$? | |
8489 | grep -v '^ *+' conftest.er1 >conftest.err | |
8490 | rm -f conftest.er1 | |
8491 | cat conftest.err >&5 | |
8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8493 | (exit $ac_status); } && { |
8494 | test -z "$ac_c_werror_flag" || | |
8495 | test ! -s conftest.err | |
8496 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 8497 | ac_header_compiler=yes |
8498 | else | |
8499 | echo "$as_me: failed program was:" >&5 | |
8500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8501 | ||
a8b2ad8d | 8502 | ac_header_compiler=no |
b3076f16 | 8503 | fi |
a8b2ad8d | 8504 | |
8505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8506 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8507 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8508 | |
8509 | # Is the header present? | |
a8b2ad8d | 8510 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8512 | cat >conftest.$ac_ext <<_ACEOF |
8513 | /* confdefs.h. */ | |
8514 | _ACEOF | |
8515 | cat confdefs.h >>conftest.$ac_ext | |
8516 | cat >>conftest.$ac_ext <<_ACEOF | |
8517 | /* end confdefs.h. */ | |
8518 | #include <$ac_header> | |
8519 | _ACEOF | |
a8b2ad8d | 8520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8521 | case "(($ac_try" in | |
8522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8523 | *) ac_try_echo=$ac_try;; | |
8524 | esac | |
8525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 8527 | ac_status=$? |
8528 | grep -v '^ *+' conftest.er1 >conftest.err | |
8529 | rm -f conftest.er1 | |
8530 | cat conftest.err >&5 | |
8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8532 | (exit $ac_status); } >/dev/null && { |
8533 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8534 | test ! -s conftest.err | |
8535 | }; then | |
b3076f16 | 8536 | ac_header_preproc=yes |
8537 | else | |
8538 | echo "$as_me: failed program was:" >&5 | |
8539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8540 | ||
8541 | ac_header_preproc=no | |
8542 | fi | |
a8b2ad8d | 8543 | |
b3076f16 | 8544 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8545 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8546 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8547 | |
8548 | # So? What about this header? | |
8549 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8550 | yes:no: ) | |
8551 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8552 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8554 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8555 | ac_header_preproc=yes | |
8556 | ;; | |
8557 | no:yes:* ) | |
8558 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8559 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8560 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8561 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8562 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8563 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8564 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8565 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8567 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8568 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8569 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8570 | ( cat <<\_ASBOX |
63c95a47 | 8571 | ## -------------------------------------------------- ## |
8572 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8573 | ## -------------------------------------------------- ## | |
b3076f16 | 8574 | _ASBOX |
a8b2ad8d | 8575 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8576 | ;; |
8577 | esac | |
a8b2ad8d | 8578 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8579 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8582 | else | |
8583 | eval "$as_ac_Header=\$ac_header_preproc" | |
8584 | fi | |
a8b2ad8d | 8585 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8586 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8587 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8588 | |
8589 | fi | |
8590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8591 | cat >>confdefs.h <<_ACEOF | |
8592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8593 | _ACEOF | |
8594 | ||
8595 | else | |
8596 | { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5 | |
8597 | echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;} | |
8598 | { (exit 1); exit 1; }; } | |
8599 | fi | |
8600 | ||
8601 | done | |
8602 | ||
8603 | ||
a8b2ad8d | 8604 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8605 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
b3076f16 | 8606 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8608 | else | |
8609 | ac_check_lib_save_LIBS=$LIBS | |
8610 | LIBS="-ldl $LIBS" | |
8611 | cat >conftest.$ac_ext <<_ACEOF | |
8612 | /* confdefs.h. */ | |
8613 | _ACEOF | |
8614 | cat confdefs.h >>conftest.$ac_ext | |
8615 | cat >>conftest.$ac_ext <<_ACEOF | |
8616 | /* end confdefs.h. */ | |
8617 | ||
a8b2ad8d | 8618 | /* Override any GCC internal prototype to avoid an error. |
8619 | Use char because int might match the return type of a GCC | |
8620 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8621 | #ifdef __cplusplus |
8622 | extern "C" | |
8623 | #endif | |
b3076f16 | 8624 | char dlopen (); |
8625 | int | |
8626 | main () | |
8627 | { | |
a8b2ad8d | 8628 | return dlopen (); |
b3076f16 | 8629 | ; |
8630 | return 0; | |
8631 | } | |
8632 | _ACEOF | |
8633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8634 | if { (ac_try="$ac_link" |
8635 | case "(($ac_try" in | |
8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8637 | *) ac_try_echo=$ac_try;; | |
8638 | esac | |
8639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8640 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8641 | ac_status=$? |
8642 | grep -v '^ *+' conftest.er1 >conftest.err | |
8643 | rm -f conftest.er1 | |
8644 | cat conftest.err >&5 | |
8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8646 | (exit $ac_status); } && { |
8647 | test -z "$ac_c_werror_flag" || | |
8648 | test ! -s conftest.err | |
8649 | } && test -s conftest$ac_exeext && | |
8650 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8651 | ac_cv_lib_dl_dlopen=yes |
8652 | else | |
8653 | echo "$as_me: failed program was:" >&5 | |
8654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8655 | ||
a8b2ad8d | 8656 | ac_cv_lib_dl_dlopen=no |
b3076f16 | 8657 | fi |
a8b2ad8d | 8658 | |
0bd0bef6 | 8659 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8660 | conftest$ac_exeext conftest.$ac_ext |
8661 | LIBS=$ac_check_lib_save_LIBS | |
8662 | fi | |
a8b2ad8d | 8663 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8664 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
b3076f16 | 8665 | if test $ac_cv_lib_dl_dlopen = yes; then |
8666 | cat >>confdefs.h <<_ACEOF | |
8667 | #define HAVE_LIBDL 1 | |
8668 | _ACEOF | |
8669 | ||
8670 | LIBS="-ldl $LIBS" | |
8671 | ||
8672 | else | |
8673 | { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5 | |
8674 | echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;} | |
8675 | { (exit 1); exit 1; }; } | |
8676 | fi | |
8677 | ||
8678 | ||
a8b2ad8d | 8679 | { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5 |
8680 | echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; } | |
b3076f16 | 8681 | if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then |
8682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8683 | else | |
8684 | ac_check_lib_save_LIBS=$LIBS | |
8685 | LIBS="-lgc $LIBS" | |
8686 | cat >conftest.$ac_ext <<_ACEOF | |
8687 | /* confdefs.h. */ | |
8688 | _ACEOF | |
8689 | cat confdefs.h >>conftest.$ac_ext | |
8690 | cat >>conftest.$ac_ext <<_ACEOF | |
8691 | /* end confdefs.h. */ | |
8692 | ||
a8b2ad8d | 8693 | /* Override any GCC internal prototype to avoid an error. |
8694 | Use char because int might match the return type of a GCC | |
8695 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8696 | #ifdef __cplusplus |
8697 | extern "C" | |
8698 | #endif | |
b3076f16 | 8699 | char GC_gcollect (); |
8700 | int | |
8701 | main () | |
8702 | { | |
a8b2ad8d | 8703 | return GC_gcollect (); |
b3076f16 | 8704 | ; |
8705 | return 0; | |
8706 | } | |
8707 | _ACEOF | |
8708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8709 | if { (ac_try="$ac_link" |
8710 | case "(($ac_try" in | |
8711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8712 | *) ac_try_echo=$ac_try;; | |
8713 | esac | |
8714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8715 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8716 | ac_status=$? |
8717 | grep -v '^ *+' conftest.er1 >conftest.err | |
8718 | rm -f conftest.er1 | |
8719 | cat conftest.err >&5 | |
8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8721 | (exit $ac_status); } && { |
8722 | test -z "$ac_c_werror_flag" || | |
8723 | test ! -s conftest.err | |
8724 | } && test -s conftest$ac_exeext && | |
8725 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8726 | ac_cv_lib_gc_GC_gcollect=yes |
8727 | else | |
8728 | echo "$as_me: failed program was:" >&5 | |
8729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8730 | ||
a8b2ad8d | 8731 | ac_cv_lib_gc_GC_gcollect=no |
b3076f16 | 8732 | fi |
a8b2ad8d | 8733 | |
0bd0bef6 | 8734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8735 | conftest$ac_exeext conftest.$ac_ext |
8736 | LIBS=$ac_check_lib_save_LIBS | |
8737 | fi | |
a8b2ad8d | 8738 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5 |
8739 | echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; } | |
b3076f16 | 8740 | if test $ac_cv_lib_gc_GC_gcollect = yes; then |
8741 | cat >>confdefs.h <<_ACEOF | |
8742 | #define HAVE_LIBGC 1 | |
8743 | _ACEOF | |
8744 | ||
8745 | LIBS="-lgc $LIBS" | |
8746 | ||
8747 | else | |
8748 | { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5 | |
8749 | echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;} | |
8750 | { (exit 1); exit 1; }; } | |
8751 | fi | |
8752 | ||
8753 | ||
8754 | cat >>confdefs.h <<\_ACEOF | |
8755 | #define WITH_MALLOC_BOEHM_GC 1 | |
8756 | _ACEOF | |
8757 | ||
5b1166fd | 8758 | x3_malloc="Boehm" |
b8cb2a14 | 8759 | elif test "x$withval" = "xx3" ; then |
a8b2ad8d | 8760 | { echo "$as_me:$LINENO: result: x3" >&5 |
8761 | echo "${ECHO_T}x3" >&6; } | |
ec1a68c8 | 8762 | |
8763 | cat >>confdefs.h <<\_ACEOF | |
b8cb2a14 | 8764 | #define WITH_MALLOC_X3 1 |
ec1a68c8 | 8765 | _ACEOF |
8766 | ||
b8cb2a14 | 8767 | MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)" |
5b1166fd | 8768 | x3_malloc="X3" |
ceafd592 | 8769 | elif test "x$withval" = "xslab" ; then |
a8b2ad8d | 8770 | { echo "$as_me:$LINENO: result: slab" >&5 |
8771 | echo "${ECHO_T}slab" >&6; } | |
ceafd592 | 8772 | |
8773 | cat >>confdefs.h <<\_ACEOF | |
8774 | #define WITH_MALLOC_SLAB 1 | |
8775 | _ACEOF | |
8776 | ||
8777 | MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)" | |
5b1166fd | 8778 | x3_malloc="Slab" |
b3076f16 | 8779 | else |
8780 | { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5 | |
8781 | echo "$as_me: error: Unknown malloc type $withval" >&2;} | |
8782 | { (exit 1); exit 1; }; } | |
8783 | fi | |
8784 | ||
a8b2ad8d | 8785 | { echo "$as_me:$LINENO: checking which protocol to use" >&5 |
8786 | echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; } | |
b3076f16 | 8787 | |
a8b2ad8d | 8788 | # Check whether --with-protocol was given. |
b3076f16 | 8789 | if test "${with_protocol+set}" = set; then |
a8b2ad8d | 8790 | withval=$with_protocol; |
b3076f16 | 8791 | else |
8792 | withval="p10" | |
a8b2ad8d | 8793 | fi |
8794 | ||
b3076f16 | 8795 | if test "x$withval" = "xp10" ; then |
a8b2ad8d | 8796 | { echo "$as_me:$LINENO: result: P10" >&5 |
8797 | echo "${ECHO_T}P10" >&6; } | |
b3076f16 | 8798 | |
8799 | cat >>confdefs.h <<\_ACEOF | |
8800 | #define WITH_PROTOCOL_P10 1 | |
8801 | _ACEOF | |
8802 | ||
2f61d1d7 | 8803 | MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)" |
0f6fe38c | 8804 | PROTO_FILES=proto-p10.c |
5b1166fd | 8805 | x3_ircd="P10" |
b3076f16 | 8806 | else |
8807 | { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5 | |
8808 | echo "$as_me: error: Unknown IRC dialect $withval" >&2;} | |
8809 | { (exit 1); exit 1; }; } | |
8810 | fi | |
8811 | ||
1136f709 | 8812 | { echo "$as_me:$LINENO: checking how to send mail" >&5 |
8813 | echo $ECHO_N "checking how to send mail... $ECHO_C" >&6; } | |
8814 | ||
8815 | # Check whether --with-mail was given. | |
8816 | if test "${with_mail+set}" = set; then | |
8817 | withval=$with_mail; | |
8818 | else | |
8819 | withval="sendmail" | |
8820 | fi | |
8821 | ||
8822 | if test -r "${srcdir}/src/mail-${withval}.c" ; then | |
8823 | { echo "$as_me:$LINENO: result: $withval" >&5 | |
8824 | echo "${ECHO_T}$withval" >&6; } | |
8825 | MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)" | |
8826 | else | |
8827 | { { echo "$as_me:$LINENO: error: Unknown mail method $withval" >&5 | |
8828 | echo "$as_me: error: Unknown mail method $withval" >&2;} | |
8829 | { (exit 1); exit 1; }; } | |
8830 | fi | |
8831 | ||
8832 | { echo "$as_me:$LINENO: checking I/O multiplexing backends" >&5 | |
8833 | echo $ECHO_N "checking I/O multiplexing backends... $ECHO_C" >&6; } | |
8834 | IOMUXES="" | |
8835 | ||
8836 | if test "x$ac_cv_func_select" = xyes ; then | |
8837 | ||
8838 | cat >>confdefs.h <<\_ACEOF | |
8839 | #define WITH_IOSET_SELECT 1 | |
8840 | _ACEOF | |
8841 | ||
8842 | MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)" | |
8843 | IOMUXES="$IOMUXES select" | |
8844 | fi | |
8845 | ||
8846 | ||
8847 | # Check whether --with-epoll was given. | |
8848 | if test "${with_epoll+set}" = set; then | |
8849 | withval=$with_epoll; | |
8850 | else | |
8851 | withval="$ac_cv_func_epoll_create" | |
8852 | fi | |
8853 | ||
8854 | if test "x$withval" = xyes ; then | |
8855 | ||
8856 | cat >>confdefs.h <<\_ACEOF | |
8857 | #define WITH_IOSET_EPOLL 1 | |
8858 | _ACEOF | |
8859 | ||
8860 | MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)" | |
8861 | IOMUXES="$IOMUXES epoll" | |
8862 | fi | |
8863 | ||
8864 | ||
8865 | # Check whether --with-kevent was given. | |
8866 | if test "${with_kevent+set}" = set; then | |
8867 | withval=$with_kevent; | |
8868 | else | |
8869 | withval="$ac_cv_func_kevent" | |
8870 | fi | |
8871 | ||
8872 | if test "x$withval" = xyes ; then | |
8873 | ||
8874 | cat >>confdefs.h <<\_ACEOF | |
8875 | #define WITH_IOSET_KEVENT 1 | |
8876 | _ACEOF | |
8877 | ||
8878 | MODULE_OBJS="$MODULE_OBJS ioset-kevent.\$(OBJEXT)" | |
8879 | IOMUXES="$IOMUXES kevent" | |
8880 | fi | |
8881 | ||
8882 | IOMUXES=`echo $IOMUXES | sed 's/^ +//'` | |
8883 | { echo "$as_me:$LINENO: result: $IOMUXES" >&5 | |
8884 | echo "${ECHO_T}$IOMUXES" >&6; } | |
8885 | if test "x$IOMUXES" = "x" ; then | |
8886 | { { echo "$as_me:$LINENO: error: No supported I/O multiplexing backend found" >&5 | |
8887 | echo "$as_me: error: No supported I/O multiplexing backend found" >&2;} | |
8888 | { (exit 1); exit 1; }; } | |
8889 | else | |
8890 | { echo "$as_me:$LINENO: result: $IOMUXES" >&5 | |
8891 | echo "${ECHO_T}$IOMUXES" >&6; } | |
8892 | fi | |
8893 | ||
8da89711 | 8894 | |
8895 | # Check whether --with-getopt was given. | |
8896 | if test "${with_getopt+set}" = set; then | |
8897 | withval=$with_getopt; if test "$withval" = no; then | |
8898 | ||
8899 | cat >>confdefs.h <<\_ACEOF | |
8900 | #define IGNORE_GETOPT 1 | |
8901 | _ACEOF | |
8902 | ||
8903 | fi | |
8904 | fi | |
8905 | ||
8906 | ||
8907 | { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5 | |
8908 | echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; } | |
8909 | # Check whether --enable-tokens was given. | |
8910 | if test "${enable_tokens+set}" = set; then | |
8911 | enableval=$enable_tokens; | |
8912 | else | |
8913 | enableval=yes | |
8914 | fi | |
8915 | ||
8916 | if test "z$enableval" = zno ; then | |
8917 | { echo "$as_me:$LINENO: result: no" >&5 | |
8918 | echo "${ECHO_T}no" >&6; } | |
8919 | else | |
8920 | ||
8921 | cat >>confdefs.h <<\_ACEOF | |
8922 | #define ENABLE_TOKENS 1 | |
8923 | _ACEOF | |
8924 | ||
8925 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8926 | echo "${ECHO_T}yes" >&6; } | |
8927 | fi | |
8928 | ||
8929 | { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5 | |
8930 | echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; } | |
8931 | # Check whether --enable-debug was given. | |
8932 | if test "${enable_debug+set}" = set; then | |
8933 | enableval=$enable_debug; | |
8934 | CPPFLAGS="$CPPFLAGS" | |
e166c31b | 8935 | { echo "$as_me:$LINENO: result: yes" >&5 |
8936 | echo "${ECHO_T}yes" >&6; } | |
8da89711 | 8937 | x3_debug="Enabled" |
e166c31b | 8938 | |
8939 | else | |
8940 | ||
8da89711 | 8941 | CPPFLAGS="$CPPFLAGS -DNDEBUG" |
e166c31b | 8942 | { echo "$as_me:$LINENO: result: no" >&5 |
8943 | echo "${ECHO_T}no" >&6; } | |
8da89711 | 8944 | x3_debug="Disabled" |
e166c31b | 8945 | |
8946 | fi | |
8947 | ||
8948 | ||
8da89711 | 8949 | if test -e src ; then |
8950 | if test ! -d src ; then | |
8951 | { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5 | |
8952 | echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;} | |
8953 | { (exit 1); exit 1; }; } | |
8954 | fi | |
8955 | else | |
8956 | mkdir src | |
8957 | fi | |
8958 | { echo "$as_me:$LINENO: checking for extra module files" >&5 | |
8959 | echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; } | |
8960 | MODULE_DEFINES="src/modules-list.h" | |
8961 | echo > $MODULE_DEFINES | |
8962 | touch $MODULE_DEFINES | |
8963 | # Check whether --enable-modules was given. | |
8964 | if test "${enable_modules+set}" = set; then | |
8965 | enableval=$enable_modules; | |
8966 | OIFS="$IFS" | |
8967 | IFS=',' | |
8968 | EXTRA_MODULE_OBJS="" | |
8969 | module_list="" | |
8970 | for module in $enableval ; do | |
8971 | module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` | |
8972 | EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" | |
8973 | module_list="$module_list $module" | |
8974 | echo "WITH_MODULE($module)" >> $MODULE_DEFINES | |
8975 | if test "x$module" = "xtrack" ; then | |
8976 | TRACK="-D HAVE_TRACK" | |
e166c31b | 8977 | |
8978 | cat >>confdefs.h <<\_ACEOF | |
8da89711 | 8979 | #define HAVE_TRACK 1 |
e166c31b | 8980 | _ACEOF |
8981 | ||
8da89711 | 8982 | fi |
8983 | if test "x$module" = "xhelpserv" ; then | |
8984 | TRACK="-D HAVE_HELPSERV" | |
e166c31b | 8985 | |
8da89711 | 8986 | cat >>confdefs.h <<\_ACEOF |
8987 | #define HAVE_HELPSERV 1 | |
e166c31b | 8988 | _ACEOF |
e166c31b | 8989 | |
8da89711 | 8990 | fi |
8991 | done | |
8992 | IFS="$OIFS" | |
8993 | MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS" | |
8994 | { echo "$as_me:$LINENO: result: $module_list" >&5 | |
8995 | echo "${ECHO_T}$module_list" >&6; } | |
8996 | ||
e166c31b | 8997 | else |
e166c31b | 8998 | |
8da89711 | 8999 | { echo "$as_me:$LINENO: result: none" >&5 |
9000 | echo "${ECHO_T}none" >&6; } | |
e166c31b | 9001 | |
e166c31b | 9002 | fi |
e166c31b | 9003 | |
e166c31b | 9004 | |
2f65da8f | 9005 | # Check whether --enable-python was given. |
9006 | if test "${enable_python+set}" = set; then | |
9007 | enableval=$enable_python; python=$enableval | |
9008 | else | |
9009 | python=yes | |
9010 | fi | |
9011 | ||
9012 | ||
9013 | ||
8da89711 | 9014 | MY_SUBDIRS="" |
9015 | RX_INCLUDES="" | |
9016 | RX_LIBS="" | |
9017 | if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then | |
9018 | MY_SUBDIRS="rx $MY_SUBDIRS" | |
9019 | RX_INCLUDES="-I../rx" | |
9020 | RX_LIBS="../rx/librx.a" | |
9021 | fi | |
9022 | MY_SUBDIRS="$MY_SUBDIRS src" | |
9023 | CFLAGS="$CFLAGS $ANSI_SRC -W -Wall" | |
9024 | if test "z$USE_MAINTAINER_MODE" = zyes ; then | |
0f6fe38c | 9025 | CFLAGS="$CFLAGS -Werror" |
e166c31b | 9026 | fi |
9027 | ||
9028 | ||
8da89711 | 9029 | tre_version="0.7.5" |
9030 | withval='' | |
9031 | ||
9032 | # Check whether --with-tre was given. | |
9033 | if test "${with_tre+set}" = set; then | |
9034 | withval=$with_tre; | |
9035 | fi | |
9036 | ||
9037 | if test "x$withval" != "x"; then | |
9038 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5 | |
9039 | echo "${ECHO_T}Using include dir $withval to find libtre" >&6; } | |
39edf54a | 9040 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
8da89711 | 9041 | LIBS="$LIBS -L$withval/lib" |
9042 | else | |
9043 | { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5 | |
9044 | echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; } | |
39edf54a | 9045 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" |
8da89711 | 9046 | LIBS="$LIBS -L${HOME}/lib" |
9047 | fi | |
9048 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
9049 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 | |
9050 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
9051 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9053 | fi | |
8da89711 | 9054 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
9055 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 9056 | else |
9057 | # Is the header compilable? | |
8da89711 | 9058 | { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5 |
9059 | echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; } | |
e166c31b | 9060 | cat >conftest.$ac_ext <<_ACEOF |
9061 | /* confdefs.h. */ | |
9062 | _ACEOF | |
9063 | cat confdefs.h >>conftest.$ac_ext | |
9064 | cat >>conftest.$ac_ext <<_ACEOF | |
9065 | /* end confdefs.h. */ | |
9066 | $ac_includes_default | |
8da89711 | 9067 | #include <tre/regex.h> |
e166c31b | 9068 | _ACEOF |
9069 | rm -f conftest.$ac_objext | |
9070 | if { (ac_try="$ac_compile" | |
9071 | case "(($ac_try" in | |
9072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9073 | *) ac_try_echo=$ac_try;; | |
9074 | esac | |
9075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9076 | (eval "$ac_compile") 2>conftest.er1 | |
9077 | ac_status=$? | |
9078 | grep -v '^ *+' conftest.er1 >conftest.err | |
9079 | rm -f conftest.er1 | |
9080 | cat conftest.err >&5 | |
9081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9082 | (exit $ac_status); } && { |
9083 | test -z "$ac_c_werror_flag" || | |
9084 | test ! -s conftest.err | |
9085 | } && test -s conftest.$ac_objext; then | |
e166c31b | 9086 | ac_header_compiler=yes |
9087 | else | |
9088 | echo "$as_me: failed program was:" >&5 | |
9089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9090 | ||
9091 | ac_header_compiler=no | |
9092 | fi | |
9093 | ||
9094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9095 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9096 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9097 | ||
9098 | # Is the header present? | |
8da89711 | 9099 | { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5 |
9100 | echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; } | |
e166c31b | 9101 | cat >conftest.$ac_ext <<_ACEOF |
9102 | /* confdefs.h. */ | |
9103 | _ACEOF | |
9104 | cat confdefs.h >>conftest.$ac_ext | |
9105 | cat >>conftest.$ac_ext <<_ACEOF | |
9106 | /* end confdefs.h. */ | |
8da89711 | 9107 | #include <tre/regex.h> |
e166c31b | 9108 | _ACEOF |
9109 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9110 | case "(($ac_try" in | |
9111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9112 | *) ac_try_echo=$ac_try;; | |
9113 | esac | |
9114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9115 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9116 | ac_status=$? | |
9117 | grep -v '^ *+' conftest.er1 >conftest.err | |
9118 | rm -f conftest.er1 | |
9119 | cat conftest.err >&5 | |
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9121 | (exit $ac_status); } >/dev/null && { |
9122 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9123 | test ! -s conftest.err | |
9124 | }; then | |
e166c31b | 9125 | ac_header_preproc=yes |
9126 | else | |
9127 | echo "$as_me: failed program was:" >&5 | |
9128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9129 | ||
9130 | ac_header_preproc=no | |
9131 | fi | |
9132 | ||
9133 | rm -f conftest.err conftest.$ac_ext | |
9134 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9135 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9136 | ||
9137 | # So? What about this header? | |
9138 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9139 | yes:no: ) | |
8da89711 | 9140 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9141 | echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9142 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5 | |
9143 | echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;} | |
e166c31b | 9144 | ac_header_preproc=yes |
9145 | ;; | |
9146 | no:yes:* ) | |
8da89711 | 9147 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5 |
9148 | echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;} | |
9149 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5 | |
9150 | echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;} | |
9151 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5 | |
9152 | echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;} | |
9153 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9154 | echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9155 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5 | |
9156 | echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;} | |
9157 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5 | |
9158 | echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;} | |
e166c31b | 9159 | ( cat <<\_ASBOX |
9160 | ## -------------------------------------------------- ## | |
9161 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9162 | ## -------------------------------------------------- ## | |
9163 | _ASBOX | |
9164 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9165 | ;; | |
9166 | esac | |
8da89711 | 9167 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 |
9168 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
9169 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 9170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9171 | else | |
8da89711 | 9172 | ac_cv_header_tre_regex_h=$ac_header_preproc |
e166c31b | 9173 | fi |
8da89711 | 9174 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
9175 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 9176 | |
9177 | fi | |
8da89711 | 9178 | if test $ac_cv_header_tre_regex_h = yes; then |
9179 | : | |
e166c31b | 9180 | else |
0bd0bef6 | 9181 | { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5 |
9182 | echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;} | |
e166c31b | 9183 | { (exit 1); exit 1; }; } |
9184 | fi | |
9185 | ||
e166c31b | 9186 | |
b3076f16 | 9187 | |
8da89711 | 9188 | { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5 |
9189 | echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; } | |
9190 | if test "${ac_cv_lib_tre_regexec+set}" = set; then | |
9191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 9192 | else |
8da89711 | 9193 | ac_check_lib_save_LIBS=$LIBS |
9194 | LIBS="-ltre $LIBS" | |
9195 | cat >conftest.$ac_ext <<_ACEOF | |
9196 | /* confdefs.h. */ | |
b3076f16 | 9197 | _ACEOF |
8da89711 | 9198 | cat confdefs.h >>conftest.$ac_ext |
9199 | cat >>conftest.$ac_ext <<_ACEOF | |
9200 | /* end confdefs.h. */ | |
b3076f16 | 9201 | |
8da89711 | 9202 | /* Override any GCC internal prototype to avoid an error. |
9203 | Use char because int might match the return type of a GCC | |
9204 | builtin and then its argument prototype would still apply. */ | |
9205 | #ifdef __cplusplus | |
9206 | extern "C" | |
9207 | #endif | |
9208 | char regexec (); | |
9209 | int | |
9210 | main () | |
9211 | { | |
9212 | return regexec (); | |
9213 | ; | |
9214 | return 0; | |
9215 | } | |
9216 | _ACEOF | |
9217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9218 | if { (ac_try="$ac_link" | |
9219 | case "(($ac_try" in | |
9220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9221 | *) ac_try_echo=$ac_try;; | |
9222 | esac | |
9223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9224 | (eval "$ac_link") 2>conftest.er1 | |
9225 | ac_status=$? | |
9226 | grep -v '^ *+' conftest.er1 >conftest.err | |
9227 | rm -f conftest.er1 | |
9228 | cat conftest.err >&5 | |
9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9230 | (exit $ac_status); } && { |
9231 | test -z "$ac_c_werror_flag" || | |
9232 | test ! -s conftest.err | |
9233 | } && test -s conftest$ac_exeext && | |
9234 | $as_test_x conftest$ac_exeext; then | |
8da89711 | 9235 | ac_cv_lib_tre_regexec=yes |
b3076f16 | 9236 | else |
8da89711 | 9237 | echo "$as_me: failed program was:" >&5 |
9238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9239 | |
8da89711 | 9240 | ac_cv_lib_tre_regexec=no |
a8b2ad8d | 9241 | fi |
9242 | ||
0bd0bef6 | 9243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8da89711 | 9244 | conftest$ac_exeext conftest.$ac_ext |
9245 | LIBS=$ac_check_lib_save_LIBS | |
b3076f16 | 9246 | fi |
8da89711 | 9247 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5 |
9248 | echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; } | |
9249 | if test $ac_cv_lib_tre_regexec = yes; then | |
9250 | cat >>confdefs.h <<_ACEOF | |
9251 | #define HAVE_LIBTRE 1 | |
8de34abd | 9252 | _ACEOF |
9253 | ||
8da89711 | 9254 | LIBS="-ltre $LIBS" |
b3076f16 | 9255 | |
9256 | else | |
0bd0bef6 | 9257 | { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5 |
9258 | echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;} | |
8da89711 | 9259 | { (exit 1); exit 1; }; } |
b3076f16 | 9260 | fi |
9261 | ||
35305a49 | 9262 | |
2784452e | 9263 | core_version="1.1" |
35305a49 | 9264 | withval='' |
9265 | ||
8da89711 | 9266 | # Check whether --with-coredumper was given. |
9267 | if test "${with_coredumper+set}" = set; then | |
9268 | withval=$with_coredumper; | |
a8b2ad8d | 9269 | fi |
35305a49 | 9270 | |
35305a49 | 9271 | if test "x$withval" != "x"; then |
8da89711 | 9272 | { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5 |
9273 | echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; } | |
39edf54a | 9274 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
0754f993 | 9275 | LIBS="$LIBS -L$withval/lib" |
35305a49 | 9276 | else |
8da89711 | 9277 | { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5 |
9278 | echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; } | |
39edf54a | 9279 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" |
2784452e | 9280 | LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib" |
35305a49 | 9281 | fi |
8da89711 | 9282 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then |
9283 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 | |
9284 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
9285 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 9286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9287 | fi | |
8da89711 | 9288 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 |
9289 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
35305a49 | 9290 | else |
9291 | # Is the header compilable? | |
8da89711 | 9292 | { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5 |
9293 | echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; } | |
35305a49 | 9294 | cat >conftest.$ac_ext <<_ACEOF |
9295 | /* confdefs.h. */ | |
9296 | _ACEOF | |
9297 | cat confdefs.h >>conftest.$ac_ext | |
9298 | cat >>conftest.$ac_ext <<_ACEOF | |
9299 | /* end confdefs.h. */ | |
9300 | $ac_includes_default | |
8da89711 | 9301 | #include <google/coredumper.h> |
35305a49 | 9302 | _ACEOF |
9303 | rm -f conftest.$ac_objext | |
a8b2ad8d | 9304 | if { (ac_try="$ac_compile" |
9305 | case "(($ac_try" in | |
9306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9307 | *) ac_try_echo=$ac_try;; | |
9308 | esac | |
9309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9310 | (eval "$ac_compile") 2>conftest.er1 | |
35305a49 | 9311 | ac_status=$? |
9312 | grep -v '^ *+' conftest.er1 >conftest.err | |
9313 | rm -f conftest.er1 | |
9314 | cat conftest.err >&5 | |
9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9316 | (exit $ac_status); } && { |
9317 | test -z "$ac_c_werror_flag" || | |
9318 | test ! -s conftest.err | |
9319 | } && test -s conftest.$ac_objext; then | |
35305a49 | 9320 | ac_header_compiler=yes |
9321 | else | |
9322 | echo "$as_me: failed program was:" >&5 | |
9323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9324 | ||
a8b2ad8d | 9325 | ac_header_compiler=no |
35305a49 | 9326 | fi |
a8b2ad8d | 9327 | |
9328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9329 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9330 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
35305a49 | 9331 | |
9332 | # Is the header present? | |
8da89711 | 9333 | { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5 |
9334 | echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; } | |
35305a49 | 9335 | cat >conftest.$ac_ext <<_ACEOF |
9336 | /* confdefs.h. */ | |
9337 | _ACEOF | |
9338 | cat confdefs.h >>conftest.$ac_ext | |
9339 | cat >>conftest.$ac_ext <<_ACEOF | |
9340 | /* end confdefs.h. */ | |
8da89711 | 9341 | #include <google/coredumper.h> |
35305a49 | 9342 | _ACEOF |
a8b2ad8d | 9343 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9344 | case "(($ac_try" in | |
9345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9346 | *) ac_try_echo=$ac_try;; | |
9347 | esac | |
9348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9349 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
35305a49 | 9350 | ac_status=$? |
9351 | grep -v '^ *+' conftest.er1 >conftest.err | |
9352 | rm -f conftest.er1 | |
9353 | cat conftest.err >&5 | |
9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9355 | (exit $ac_status); } >/dev/null && { |
9356 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9357 | test ! -s conftest.err | |
9358 | }; then | |
35305a49 | 9359 | ac_header_preproc=yes |
9360 | else | |
9361 | echo "$as_me: failed program was:" >&5 | |
9362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9363 | ||
9364 | ac_header_preproc=no | |
9365 | fi | |
a8b2ad8d | 9366 | |
35305a49 | 9367 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 9368 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9369 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35305a49 | 9370 | |
9371 | # So? What about this header? | |
9372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9373 | yes:no: ) | |
8da89711 | 9374 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9375 | echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9376 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5 | |
9377 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;} | |
35305a49 | 9378 | ac_header_preproc=yes |
9379 | ;; | |
9380 | no:yes:* ) | |
8da89711 | 9381 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5 |
9382 | echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;} | |
9383 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5 | |
9384 | echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;} | |
9385 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5 | |
9386 | echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;} | |
9387 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9388 | echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9389 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5 | |
9390 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;} | |
9391 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5 | |
9392 | echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9393 | ( cat <<\_ASBOX |
35305a49 | 9394 | ## -------------------------------------------------- ## |
9395 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9396 | ## -------------------------------------------------- ## | |
9397 | _ASBOX | |
a8b2ad8d | 9398 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
35305a49 | 9399 | ;; |
9400 | esac | |
8da89711 | 9401 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 |
9402 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
9403 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 9404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9405 | else | |
8da89711 | 9406 | ac_cv_header_google_coredumper_h=$ac_header_preproc |
9407 | fi | |
9408 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 | |
9409 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
9410 | ||
9411 | fi | |
9412 | if test $ac_cv_header_google_coredumper_h = yes; then | |
9413 | : | |
9414 | else | |
0bd0bef6 | 9415 | { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 |
9416 | echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
8da89711 | 9417 | fi |
9418 | ||
9419 | ||
9420 | ||
9421 | { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5 | |
9422 | echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; } | |
9423 | if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then | |
9424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9425 | else | |
9426 | ac_check_lib_save_LIBS=$LIBS | |
9427 | LIBS="-lcoredumper $LIBS" | |
9428 | cat >conftest.$ac_ext <<_ACEOF | |
9429 | /* confdefs.h. */ | |
9430 | _ACEOF | |
9431 | cat confdefs.h >>conftest.$ac_ext | |
9432 | cat >>conftest.$ac_ext <<_ACEOF | |
9433 | /* end confdefs.h. */ | |
9434 | ||
9435 | /* Override any GCC internal prototype to avoid an error. | |
9436 | Use char because int might match the return type of a GCC | |
9437 | builtin and then its argument prototype would still apply. */ | |
9438 | #ifdef __cplusplus | |
9439 | extern "C" | |
9440 | #endif | |
9441 | char WriteCoreDump (); | |
9442 | int | |
9443 | main () | |
9444 | { | |
9445 | return WriteCoreDump (); | |
9446 | ; | |
9447 | return 0; | |
9448 | } | |
9449 | _ACEOF | |
9450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9451 | if { (ac_try="$ac_link" | |
9452 | case "(($ac_try" in | |
9453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9454 | *) ac_try_echo=$ac_try;; | |
9455 | esac | |
9456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9457 | (eval "$ac_link") 2>conftest.er1 | |
9458 | ac_status=$? | |
9459 | grep -v '^ *+' conftest.er1 >conftest.err | |
9460 | rm -f conftest.er1 | |
9461 | cat conftest.err >&5 | |
9462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9463 | (exit $ac_status); } && { |
9464 | test -z "$ac_c_werror_flag" || | |
9465 | test ! -s conftest.err | |
9466 | } && test -s conftest$ac_exeext && | |
9467 | $as_test_x conftest$ac_exeext; then | |
8da89711 | 9468 | ac_cv_lib_coredumper_WriteCoreDump=yes |
9469 | else | |
9470 | echo "$as_me: failed program was:" >&5 | |
9471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9472 | ||
9473 | ac_cv_lib_coredumper_WriteCoreDump=no | |
35305a49 | 9474 | fi |
35305a49 | 9475 | |
0bd0bef6 | 9476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8da89711 | 9477 | conftest$ac_exeext conftest.$ac_ext |
9478 | LIBS=$ac_check_lib_save_LIBS | |
35305a49 | 9479 | fi |
8da89711 | 9480 | { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5 |
9481 | echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; } | |
9482 | if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then | |
9483 | cat >>confdefs.h <<_ACEOF | |
9484 | #define HAVE_LIBCOREDUMPER 1 | |
9485 | _ACEOF | |
9486 | ||
9487 | LIBS="-lcoredumper $LIBS" | |
9488 | ||
35305a49 | 9489 | else |
0bd0bef6 | 9490 | { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 |
9491 | echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
35305a49 | 9492 | fi |
9493 | ||
9494 | ||
73d4cc91 | 9495 | withval='' |
9496 | ||
9497 | # Check whether --with-ssl was given. | |
9498 | if test "${with_ssl+set}" = set; then | |
9499 | withval=$with_ssl; | |
9500 | fi | |
9501 | ||
9502 | if test "x$withval" != "x"; then | |
9503 | { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5 | |
9504 | echo "${ECHO_T}Using include dir $withval to find openssl" >&6; } | |
9505 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
9506 | LIBS="$LIBS -L$withval/lib" | |
9507 | else | |
9508 | { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5 | |
9509 | echo "${ECHO_T}Looking for openssl in system " >&6; } | |
9510 | fi | |
9511 | ||
9512 | { echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5 | |
9513 | echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; } | |
9514 | if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then | |
9515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9516 | else | |
9517 | ac_check_lib_save_LIBS=$LIBS | |
9518 | LIBS="-lssl $LIBS" | |
9519 | cat >conftest.$ac_ext <<_ACEOF | |
9520 | /* confdefs.h. */ | |
9521 | _ACEOF | |
9522 | cat confdefs.h >>conftest.$ac_ext | |
9523 | cat >>conftest.$ac_ext <<_ACEOF | |
9524 | /* end confdefs.h. */ | |
9525 | ||
9526 | /* Override any GCC internal prototype to avoid an error. | |
9527 | Use char because int might match the return type of a GCC | |
9528 | builtin and then its argument prototype would still apply. */ | |
9529 | #ifdef __cplusplus | |
9530 | extern "C" | |
9531 | #endif | |
9532 | char BIO_new (); | |
9533 | int | |
9534 | main () | |
9535 | { | |
9536 | return BIO_new (); | |
9537 | ; | |
9538 | return 0; | |
9539 | } | |
9540 | _ACEOF | |
9541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9542 | if { (ac_try="$ac_link" | |
9543 | case "(($ac_try" in | |
9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9545 | *) ac_try_echo=$ac_try;; | |
9546 | esac | |
9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9548 | (eval "$ac_link") 2>conftest.er1 | |
9549 | ac_status=$? | |
9550 | grep -v '^ *+' conftest.er1 >conftest.err | |
9551 | rm -f conftest.er1 | |
9552 | cat conftest.err >&5 | |
9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9554 | (exit $ac_status); } && { |
9555 | test -z "$ac_c_werror_flag" || | |
9556 | test ! -s conftest.err | |
9557 | } && test -s conftest$ac_exeext && | |
9558 | $as_test_x conftest$ac_exeext; then | |
73d4cc91 | 9559 | ac_cv_lib_ssl_BIO_new=yes |
9560 | else | |
9561 | echo "$as_me: failed program was:" >&5 | |
9562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9563 | ||
9564 | ac_cv_lib_ssl_BIO_new=no | |
9565 | fi | |
9566 | ||
0bd0bef6 | 9567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
73d4cc91 | 9568 | conftest$ac_exeext conftest.$ac_ext |
9569 | LIBS=$ac_check_lib_save_LIBS | |
9570 | fi | |
9571 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5 | |
9572 | echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; } | |
9573 | if test $ac_cv_lib_ssl_BIO_new = yes; then | |
9574 | ||
9575 | LIBS="-lssl $LIBS" | |
9576 | ||
9577 | for ac_header in openssl/bio.h | |
9578 | do | |
9579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9581 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9583 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9585 | fi | |
9586 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
9587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9588 | echo "${ECHO_T}$ac_res" >&6; } | |
9589 | else | |
9590 | # Is the header compilable? | |
9591 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9592 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
9593 | cat >conftest.$ac_ext <<_ACEOF | |
9594 | /* confdefs.h. */ | |
9595 | _ACEOF | |
9596 | cat confdefs.h >>conftest.$ac_ext | |
9597 | cat >>conftest.$ac_ext <<_ACEOF | |
9598 | /* end confdefs.h. */ | |
9599 | $ac_includes_default | |
9600 | #include <$ac_header> | |
9601 | _ACEOF | |
9602 | rm -f conftest.$ac_objext | |
9603 | if { (ac_try="$ac_compile" | |
9604 | case "(($ac_try" in | |
9605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9606 | *) ac_try_echo=$ac_try;; | |
9607 | esac | |
9608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9609 | (eval "$ac_compile") 2>conftest.er1 | |
9610 | ac_status=$? | |
9611 | grep -v '^ *+' conftest.er1 >conftest.err | |
9612 | rm -f conftest.er1 | |
9613 | cat conftest.err >&5 | |
9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9615 | (exit $ac_status); } && { |
9616 | test -z "$ac_c_werror_flag" || | |
9617 | test ! -s conftest.err | |
9618 | } && test -s conftest.$ac_objext; then | |
73d4cc91 | 9619 | ac_header_compiler=yes |
9620 | else | |
9621 | echo "$as_me: failed program was:" >&5 | |
9622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9623 | ||
9624 | ac_header_compiler=no | |
9625 | fi | |
9626 | ||
9627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9628 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9629 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9630 | ||
9631 | # Is the header present? | |
9632 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9633 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
9634 | cat >conftest.$ac_ext <<_ACEOF | |
9635 | /* confdefs.h. */ | |
9636 | _ACEOF | |
9637 | cat confdefs.h >>conftest.$ac_ext | |
9638 | cat >>conftest.$ac_ext <<_ACEOF | |
9639 | /* end confdefs.h. */ | |
9640 | #include <$ac_header> | |
9641 | _ACEOF | |
9642 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9643 | case "(($ac_try" in | |
9644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9645 | *) ac_try_echo=$ac_try;; | |
9646 | esac | |
9647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9648 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9649 | ac_status=$? | |
9650 | grep -v '^ *+' conftest.er1 >conftest.err | |
9651 | rm -f conftest.er1 | |
9652 | cat conftest.err >&5 | |
9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9654 | (exit $ac_status); } >/dev/null && { |
9655 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9656 | test ! -s conftest.err | |
9657 | }; then | |
73d4cc91 | 9658 | ac_header_preproc=yes |
9659 | else | |
9660 | echo "$as_me: failed program was:" >&5 | |
9661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9662 | ||
9663 | ac_header_preproc=no | |
9664 | fi | |
9665 | ||
9666 | rm -f conftest.err conftest.$ac_ext | |
9667 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9668 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9669 | ||
9670 | # So? What about this header? | |
9671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9672 | yes:no: ) | |
9673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9677 | ac_header_preproc=yes | |
9678 | ;; | |
9679 | no:yes:* ) | |
9680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9692 | ( cat <<\_ASBOX | |
9693 | ## -------------------------------------------------- ## | |
9694 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9695 | ## -------------------------------------------------- ## | |
9696 | _ASBOX | |
9697 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9698 | ;; | |
9699 | esac | |
9700 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9704 | else | |
9705 | eval "$as_ac_Header=\$ac_header_preproc" | |
9706 | fi | |
9707 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
9708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9709 | echo "${ECHO_T}$ac_res" >&6; } | |
9710 | ||
9711 | fi | |
9712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9713 | cat >>confdefs.h <<_ACEOF | |
9714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9715 | _ACEOF | |
9716 | ||
9717 | ||
9718 | cat >>confdefs.h <<\_ACEOF | |
9719 | #define WITH_SSL 1 | |
9720 | _ACEOF | |
9721 | ||
9722 | ssl_message="LDAP library: enabled" | |
9723 | ||
9724 | else | |
9725 | ||
9726 | if test "x$withval" != "x"; then | |
9727 | { { echo "$as_me:$LINENO: error: ssl headers not found" >&5 | |
9728 | echo "$as_me: error: ssl headers not found" >&2;} | |
9729 | { (exit 1); exit 1; }; } | |
9730 | fi | |
9731 | ||
9732 | fi | |
9733 | ||
9734 | done | |
9735 | ||
9736 | ||
9737 | else | |
9738 | ||
9739 | if test "x$withval" != "x"; then | |
9740 | { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5 | |
9741 | echo "$as_me: error: libldap not found or not valid" >&2;} | |
9742 | { (exit 1); exit 1; }; } | |
9743 | fi | |
9744 | ||
9745 | ||
9746 | fi | |
9747 | ||
9748 | { echo "$as_me:$LINENO: result: $LIBS" >&5 | |
9749 | echo "${ECHO_T}$LIBS" >&6; } | |
9750 | ||
9751 | ||
8da89711 | 9752 | withval='' |
35305a49 | 9753 | |
8da89711 | 9754 | # Check whether --with-ldap was given. |
9755 | if test "${with_ldap+set}" = set; then | |
9756 | withval=$with_ldap; | |
9757 | fi | |
9758 | ||
9759 | if test "x$withval" != "x"; then | |
9760 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5 | |
9761 | echo "${ECHO_T}Using include dir $withval to find libldap" >&6; } | |
9762 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
9763 | LIBS="$LIBS -L$withval/lib" | |
9764 | else | |
9765 | { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5 | |
9766 | echo "${ECHO_T}Looking for ldap in system " >&6; } | |
9767 | fi | |
9768 | ||
39edf54a | 9769 | { echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5 |
9770 | echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; } | |
9771 | if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then | |
35305a49 | 9772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9773 | else | |
9774 | ac_check_lib_save_LIBS=$LIBS | |
8da89711 | 9775 | LIBS="-lldap $LIBS" |
35305a49 | 9776 | cat >conftest.$ac_ext <<_ACEOF |
9777 | /* confdefs.h. */ | |
9778 | _ACEOF | |
9779 | cat confdefs.h >>conftest.$ac_ext | |
9780 | cat >>conftest.$ac_ext <<_ACEOF | |
9781 | /* end confdefs.h. */ | |
9782 | ||
a8b2ad8d | 9783 | /* Override any GCC internal prototype to avoid an error. |
9784 | Use char because int might match the return type of a GCC | |
9785 | builtin and then its argument prototype would still apply. */ | |
35305a49 | 9786 | #ifdef __cplusplus |
9787 | extern "C" | |
9788 | #endif | |
39edf54a | 9789 | char ldap_simple_bind_s (); |
35305a49 | 9790 | int |
9791 | main () | |
9792 | { | |
39edf54a | 9793 | return ldap_simple_bind_s (); |
35305a49 | 9794 | ; |
9795 | return 0; | |
9796 | } | |
9797 | _ACEOF | |
9798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9799 | if { (ac_try="$ac_link" |
9800 | case "(($ac_try" in | |
9801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9802 | *) ac_try_echo=$ac_try;; | |
9803 | esac | |
9804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9805 | (eval "$ac_link") 2>conftest.er1 | |
35305a49 | 9806 | ac_status=$? |
9807 | grep -v '^ *+' conftest.er1 >conftest.err | |
9808 | rm -f conftest.er1 | |
9809 | cat conftest.err >&5 | |
9810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9811 | (exit $ac_status); } && { |
9812 | test -z "$ac_c_werror_flag" || | |
9813 | test ! -s conftest.err | |
9814 | } && test -s conftest$ac_exeext && | |
9815 | $as_test_x conftest$ac_exeext; then | |
39edf54a | 9816 | ac_cv_lib_ldap_ldap_simple_bind_s=yes |
5b1166fd | 9817 | else |
35305a49 | 9818 | echo "$as_me: failed program was:" >&5 |
9819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9820 | ||
39edf54a | 9821 | ac_cv_lib_ldap_ldap_simple_bind_s=no |
35305a49 | 9822 | fi |
a8b2ad8d | 9823 | |
0bd0bef6 | 9824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
35305a49 | 9825 | conftest$ac_exeext conftest.$ac_ext |
9826 | LIBS=$ac_check_lib_save_LIBS | |
5b1166fd | 9827 | fi |
39edf54a | 9828 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5 |
9829 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; } | |
9830 | if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then | |
b3076f16 | 9831 | |
39edf54a | 9832 | LIBS="-lldap $LIBS" |
b3076f16 | 9833 | |
8da89711 | 9834 | for ac_header in ldap.h |
9835 | do | |
9836 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9838 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 9841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9842 | fi | |
8da89711 | 9843 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9845 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 9846 | else |
9847 | # Is the header compilable? | |
8da89711 | 9848 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9849 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a8b2ad8d | 9850 | cat >conftest.$ac_ext <<_ACEOF |
9851 | /* confdefs.h. */ | |
9852 | _ACEOF | |
9853 | cat confdefs.h >>conftest.$ac_ext | |
9854 | cat >>conftest.$ac_ext <<_ACEOF | |
9855 | /* end confdefs.h. */ | |
9856 | $ac_includes_default | |
8da89711 | 9857 | #include <$ac_header> |
a8b2ad8d | 9858 | _ACEOF |
9859 | rm -f conftest.$ac_objext | |
9860 | if { (ac_try="$ac_compile" | |
9861 | case "(($ac_try" in | |
9862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9863 | *) ac_try_echo=$ac_try;; | |
9864 | esac | |
9865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9866 | (eval "$ac_compile") 2>conftest.er1 | |
9867 | ac_status=$? | |
9868 | grep -v '^ *+' conftest.er1 >conftest.err | |
9869 | rm -f conftest.er1 | |
9870 | cat conftest.err >&5 | |
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9872 | (exit $ac_status); } && { |
9873 | test -z "$ac_c_werror_flag" || | |
9874 | test ! -s conftest.err | |
9875 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 9876 | ac_header_compiler=yes |
9877 | else | |
9878 | echo "$as_me: failed program was:" >&5 | |
9879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9880 | |
a8b2ad8d | 9881 | ac_header_compiler=no |
9882 | fi | |
b3076f16 | 9883 | |
a8b2ad8d | 9884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9885 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9886 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 9887 | |
a8b2ad8d | 9888 | # Is the header present? |
8da89711 | 9889 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9890 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
a8b2ad8d | 9891 | cat >conftest.$ac_ext <<_ACEOF |
9892 | /* confdefs.h. */ | |
9893 | _ACEOF | |
9894 | cat confdefs.h >>conftest.$ac_ext | |
9895 | cat >>conftest.$ac_ext <<_ACEOF | |
9896 | /* end confdefs.h. */ | |
8da89711 | 9897 | #include <$ac_header> |
a8b2ad8d | 9898 | _ACEOF |
9899 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9900 | case "(($ac_try" in | |
9901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9902 | *) ac_try_echo=$ac_try;; | |
9903 | esac | |
9904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9905 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9906 | ac_status=$? | |
9907 | grep -v '^ *+' conftest.er1 >conftest.err | |
9908 | rm -f conftest.er1 | |
9909 | cat conftest.err >&5 | |
9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9911 | (exit $ac_status); } >/dev/null && { |
9912 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9913 | test ! -s conftest.err | |
9914 | }; then | |
a8b2ad8d | 9915 | ac_header_preproc=yes |
9916 | else | |
9917 | echo "$as_me: failed program was:" >&5 | |
9918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9919 | |
a8b2ad8d | 9920 | ac_header_preproc=no |
9921 | fi | |
ec311f39 | 9922 | |
a8b2ad8d | 9923 | rm -f conftest.err conftest.$ac_ext |
9924 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9925 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 9926 | |
a8b2ad8d | 9927 | # So? What about this header? |
9928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9929 | yes:no: ) | |
8da89711 | 9930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a8b2ad8d | 9934 | ac_header_preproc=yes |
9935 | ;; | |
9936 | no:yes:* ) | |
8da89711 | 9937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9949 | ( cat <<\_ASBOX |
9950 | ## -------------------------------------------------- ## | |
9951 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9952 | ## -------------------------------------------------- ## | |
9953 | _ASBOX | |
9954 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9955 | ;; | |
9956 | esac | |
8da89711 | 9957 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9961 | else | |
8da89711 | 9962 | eval "$as_ac_Header=\$ac_header_preproc" |
a8b2ad8d | 9963 | fi |
8da89711 | 9964 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9965 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9966 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 9967 | |
9968 | fi | |
8da89711 | 9969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9970 | cat >>confdefs.h <<_ACEOF | |
9971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9972 | _ACEOF | |
a8b2ad8d | 9973 | |
9974 | ||
8da89711 | 9975 | cat >>confdefs.h <<\_ACEOF |
9976 | #define WITH_LDAP 1 | |
a8b2ad8d | 9977 | _ACEOF |
a8b2ad8d | 9978 | |
8da89711 | 9979 | ldap_message="LDAP library: enabled" |
9980 | ||
a8b2ad8d | 9981 | else |
a8b2ad8d | 9982 | |
db9a9a8a | 9983 | if test "x$withval" != "x"; then |
8da89711 | 9984 | { { echo "$as_me:$LINENO: error: ldap.h not found" >&5 |
9985 | echo "$as_me: error: ldap.h not found" >&2;} | |
9986 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 9987 | fi |
9988 | ||
a8b2ad8d | 9989 | fi |
a8b2ad8d | 9990 | |
8da89711 | 9991 | done |
9992 | ||
a8b2ad8d | 9993 | |
9994 | else | |
8da89711 | 9995 | |
db9a9a8a | 9996 | if test "x$withval" != "x"; then |
8da89711 | 9997 | { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5 |
9998 | echo "$as_me: error: libldap not found or not valid" >&2;} | |
9999 | { (exit 1); exit 1; }; } | |
10000 | fi | |
10001 | ||
10002 | ||
a8b2ad8d | 10003 | fi |
10004 | ||
2f65da8f | 10005 | |
10006 | ||
10007 | if test "$python" = yes; then | |
10008 | # Extract the first word of "python2", so it can be a program name with args. | |
10009 | set dummy python2; ac_word=$2 | |
10010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10012 | if test "${ac_cv_path_pythonpath+set}" = set; then | |
10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10014 | else | |
10015 | case $pythonpath in | |
10016 | [\\/]* | ?:[\\/]*) | |
10017 | ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path. | |
10018 | ;; | |
10019 | *) | |
10020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10021 | for as_dir in $PATH | |
10022 | do | |
10023 | IFS=$as_save_IFS | |
10024 | test -z "$as_dir" && as_dir=. | |
10025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10027 | ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext" | |
10028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10029 | break 2 | |
10030 | fi | |
10031 | done | |
10032 | done | |
10033 | IFS=$as_save_IFS | |
10034 | ||
10035 | ;; | |
10036 | esac | |
10037 | fi | |
10038 | pythonpath=$ac_cv_path_pythonpath | |
10039 | if test -n "$pythonpath"; then | |
10040 | { echo "$as_me:$LINENO: result: $pythonpath" >&5 | |
10041 | echo "${ECHO_T}$pythonpath" >&6; } | |
10042 | else | |
10043 | { echo "$as_me:$LINENO: result: no" >&5 | |
10044 | echo "${ECHO_T}no" >&6; } | |
10045 | fi | |
10046 | ||
10047 | ||
10048 | if test "_$pythonpath" = _ ; then | |
10049 | # Extract the first word of "python", so it can be a program name with args. | |
10050 | set dummy python; ac_word=$2 | |
10051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10053 | if test "${ac_cv_path_pythonpath+set}" = set; then | |
10054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10055 | else | |
10056 | case $pythonpath in | |
10057 | [\\/]* | ?:[\\/]*) | |
10058 | ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path. | |
10059 | ;; | |
10060 | *) | |
10061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10062 | for as_dir in $PATH | |
10063 | do | |
10064 | IFS=$as_save_IFS | |
10065 | test -z "$as_dir" && as_dir=. | |
10066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10068 | ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext" | |
10069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10070 | break 2 | |
10071 | fi | |
10072 | done | |
10073 | done | |
10074 | IFS=$as_save_IFS | |
10075 | ||
10076 | ;; | |
10077 | esac | |
10078 | fi | |
10079 | pythonpath=$ac_cv_path_pythonpath | |
10080 | if test -n "$pythonpath"; then | |
10081 | { echo "$as_me:$LINENO: result: $pythonpath" >&5 | |
10082 | echo "${ECHO_T}$pythonpath" >&6; } | |
10083 | else | |
10084 | { echo "$as_me:$LINENO: result: no" >&5 | |
10085 | echo "${ECHO_T}no" >&6; } | |
10086 | fi | |
10087 | ||
10088 | ||
10089 | fi | |
10090 | if test "_$pythonpath" = _ ; then | |
10091 | python=no | |
10092 | else | |
10093 | { echo "$as_me:$LINENO: checking Python version" >&5 | |
10094 | echo $ECHO_N "checking Python version... $ECHO_C" >&6; } | |
10095 | PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'` | |
10096 | PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'` | |
10097 | PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'` | |
10098 | $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)" | |
10099 | { echo "$as_me:$LINENO: result: $PY_VER" >&5 | |
10100 | echo "${ECHO_T}$PY_VER" >&6; } | |
10101 | if test "$?" != "1"; then | |
10102 | { echo "$as_me:$LINENO: checking Python compile flags" >&5 | |
10103 | echo $ECHO_N "checking Python compile flags... $ECHO_C" >&6; } | |
10104 | PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'` | |
10105 | PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'` | |
10106 | if test -f $PY_INC/Python.h; then | |
10107 | ||
10108 | cat >>confdefs.h <<\_ACEOF | |
10109 | #define WITH_PYTHON 1 | |
10110 | _ACEOF | |
10111 | ||
10112 | PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil" | |
10113 | PY_CFLAGS="-I$PY_INC" | |
10114 | { echo "$as_me:$LINENO: result: ok" >&5 | |
10115 | echo "${ECHO_T}ok" >&6; } | |
cbfd323c | 10116 | CFLAGS="$CFLAGS $PY_CFLAGS" |
10117 | LIBS="$LIBS $PY_LIBS" | |
2f65da8f | 10118 | else |
10119 | python=no | |
10120 | { echo "$as_me:$LINENO: result: Can't find Python.h" >&5 | |
10121 | echo "${ECHO_T}Can't find Python.h" >&6; } | |
10122 | fi | |
10123 | else | |
10124 | echo "Python too old. Only 2.2 or above is supported." | |
10125 | python=no | |
10126 | fi | |
10127 | fi | |
10128 | fi | |
10129 | ||
10130 | if test "x$python" = "xyes"; then | |
10131 | DO_PYTHON_TRUE= | |
10132 | DO_PYTHON_FALSE='#' | |
10133 | else | |
10134 | DO_PYTHON_TRUE='#' | |
10135 | DO_PYTHON_FALSE= | |
10136 | fi | |
10137 | ||
10138 | ||
39edf54a | 10139 | { echo "$as_me:$LINENO: result: $LIBS" >&5 |
10140 | echo "${ECHO_T}$LIBS" >&6; } | |
a8b2ad8d | 10141 | |
10142 | ||
10143 | cat >>confdefs.h <<_ACEOF | |
10144 | #define CODENAME "${CODENAME}" | |
10145 | _ACEOF | |
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
2f65da8f | 10152 | |
10153 | ||
10154 | ||
a8b2ad8d | 10155 | ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" |
10156 | ||
10157 | cat >confcache <<\_ACEOF | |
10158 | # This file is a shell script that caches the results of configure | |
10159 | # tests run on this system so they can be shared between configure | |
10160 | # scripts and configure runs, see configure's option --config-cache. | |
10161 | # It is not useful on other systems. If it contains results you don't | |
10162 | # want to keep, you may remove or edit it. | |
10163 | # | |
b3076f16 | 10164 | # config.status only pays attention to the cache file if you give it |
10165 | # the --recheck option to rerun configure. | |
10166 | # | |
10167 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10168 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10169 | # following values. | |
10170 | ||
10171 | _ACEOF | |
10172 | ||
10173 | # The following way of writing the cache mishandles newlines in values, | |
10174 | # but we know of no workaround that is simple, portable, and efficient. | |
a8b2ad8d | 10175 | # So, we kill variables containing newlines. |
b3076f16 | 10176 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10177 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8b2ad8d | 10178 | ( |
10179 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10180 | eval ac_val=\$$ac_var | |
10181 | case $ac_val in #( | |
10182 | *${as_nl}*) | |
10183 | case $ac_var in #( | |
10184 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
10185 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
10186 | esac | |
10187 | case $ac_var in #( | |
10188 | _ | IFS | as_nl) ;; #( | |
10189 | *) $as_unset $ac_var ;; | |
10190 | esac ;; | |
10191 | esac | |
10192 | done | |
10193 | ||
b3076f16 | 10194 | (set) 2>&1 | |
a8b2ad8d | 10195 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10196 | *${as_nl}ac_space=\ *) | |
b3076f16 | 10197 | # `set' does not quote correctly, so add quotes (double-quote |
10198 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10199 | sed -n \ | |
10200 | "s/'/'\\\\''/g; | |
10201 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a8b2ad8d | 10202 | ;; #( |
b3076f16 | 10203 | *) |
10204 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a8b2ad8d | 10205 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 10206 | ;; |
a8b2ad8d | 10207 | esac | |
10208 | sort | |
10209 | ) | | |
b3076f16 | 10210 | sed ' |
a8b2ad8d | 10211 | /^ac_cv_env_/b end |
b3076f16 | 10212 | t clear |
a8b2ad8d | 10213 | :clear |
b3076f16 | 10214 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10215 | t end | |
a8b2ad8d | 10216 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10217 | :end' >>confcache | |
10218 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10219 | if test -w "$cache_file"; then | |
10220 | test "x$cache_file" != "x/dev/null" && | |
10221 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
10222 | echo "$as_me: updating cache $cache_file" >&6;} | |
b3076f16 | 10223 | cat confcache >$cache_file |
10224 | else | |
a8b2ad8d | 10225 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
10226 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b3076f16 | 10227 | fi |
10228 | fi | |
10229 | rm -f confcache | |
10230 | ||
10231 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10232 | # Let make expand exec_prefix. | |
10233 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10234 | ||
b3076f16 | 10235 | DEFS=-DHAVE_CONFIG_H |
10236 | ||
10237 | ac_libobjs= | |
10238 | ac_ltlibobjs= | |
10239 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10240 | # 1. Remove the extension, and $U if already installed. | |
a8b2ad8d | 10241 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
10242 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
10243 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10244 | # will be set to the directory where LIBOBJS objects are built. | |
10245 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10246 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
b3076f16 | 10247 | done |
10248 | LIBOBJS=$ac_libobjs | |
10249 | ||
10250 | LTLIBOBJS=$ac_ltlibobjs | |
10251 | ||
10252 | ||
ec1a68c8 | 10253 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
10254 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10255 | Usually this means the macro was only invoked conditionally." >&5 | |
10256 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10257 | Usually this means the macro was only invoked conditionally." >&2;} | |
10258 | { (exit 1); exit 1; }; } | |
10259 | fi | |
10260 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10261 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
10262 | Usually this means the macro was only invoked conditionally." >&5 | |
10263 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
10264 | Usually this means the macro was only invoked conditionally." >&2;} | |
10265 | { (exit 1); exit 1; }; } | |
10266 | fi | |
10267 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10268 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10269 | Usually this means the macro was only invoked conditionally." >&5 | |
10270 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10271 | Usually this means the macro was only invoked conditionally." >&2;} | |
10272 | { (exit 1); exit 1; }; } | |
10273 | fi | |
10274 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10275 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10276 | Usually this means the macro was only invoked conditionally." >&5 | |
10277 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10278 | Usually this means the macro was only invoked conditionally." >&2;} | |
10279 | { (exit 1); exit 1; }; } | |
10280 | fi | |
2f65da8f | 10281 | if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then |
10282 | { { echo "$as_me:$LINENO: error: conditional \"DO_PYTHON\" was never defined. | |
10283 | Usually this means the macro was only invoked conditionally." >&5 | |
10284 | echo "$as_me: error: conditional \"DO_PYTHON\" was never defined. | |
10285 | Usually this means the macro was only invoked conditionally." >&2;} | |
10286 | { (exit 1); exit 1; }; } | |
10287 | fi | |
b3076f16 | 10288 | |
10289 | : ${CONFIG_STATUS=./config.status} | |
10290 | ac_clean_files_save=$ac_clean_files | |
10291 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10292 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10293 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10294 | cat >$CONFIG_STATUS <<_ACEOF | |
10295 | #! $SHELL | |
10296 | # Generated by $as_me. | |
10297 | # Run this file to recreate the current configuration. | |
10298 | # Compiler output produced by configure, useful for debugging | |
10299 | # configure, is in config.log if it exists. | |
10300 | ||
10301 | debug=false | |
10302 | ac_cs_recheck=false | |
10303 | ac_cs_silent=false | |
10304 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10305 | _ACEOF | |
10306 | ||
10307 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10308 | ## --------------------- ## | |
10309 | ## M4sh Initialization. ## | |
10310 | ## --------------------- ## | |
10311 | ||
0bd0bef6 | 10312 | # Be more Bourne compatible |
10313 | DUALCASE=1; export DUALCASE # for MKS sh | |
b3076f16 | 10314 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
10315 | emulate sh | |
10316 | NULLCMD=: | |
10317 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10318 | # is contrary to our usage. Disable this feature. | |
10319 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 10320 | setopt NO_GLOB_SUBST |
10321 | else | |
0bd0bef6 | 10322 | case `(set -o) 2>/dev/null` in |
10323 | *posix*) set -o posix ;; | |
10324 | esac | |
10325 | ||
b3076f16 | 10326 | fi |
0bd0bef6 | 10327 | |
10328 | ||
b3076f16 | 10329 | |
a8b2ad8d | 10330 | |
10331 | # PATH needs CR | |
10332 | # Avoid depending upon Character Ranges. | |
10333 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10334 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10335 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10336 | as_cr_digits='0123456789' | |
10337 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10338 | ||
10339 | # The user is always right. | |
10340 | if test "${PATH_SEPARATOR+set}" != set; then | |
10341 | echo "#! /bin/sh" >conf$$.sh | |
10342 | echo "exit 0" >>conf$$.sh | |
10343 | chmod +x conf$$.sh | |
10344 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10345 | PATH_SEPARATOR=';' | |
10346 | else | |
10347 | PATH_SEPARATOR=: | |
10348 | fi | |
10349 | rm -f conf$$.sh | |
10350 | fi | |
10351 | ||
b3076f16 | 10352 | # Support unset when possible. |
10353 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10354 | as_unset=unset | |
10355 | else | |
10356 | as_unset=false | |
10357 | fi | |
10358 | ||
10359 | ||
a8b2ad8d | 10360 | # IFS |
10361 | # We need space, tab and new line, in precisely that order. Quoting is | |
10362 | # there to prevent editors from complaining about space-tab. | |
10363 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10364 | # splitting by setting IFS to empty value.) | |
10365 | as_nl=' | |
10366 | ' | |
10367 | IFS=" "" $as_nl" | |
10368 | ||
10369 | # Find who we are. Look in the path if we contain no directory separator. | |
10370 | case $0 in | |
10371 | *[\\/]* ) as_myself=$0 ;; | |
10372 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10373 | for as_dir in $PATH | |
10374 | do | |
10375 | IFS=$as_save_IFS | |
10376 | test -z "$as_dir" && as_dir=. | |
10377 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10378 | done | |
10379 | IFS=$as_save_IFS | |
10380 | ||
10381 | ;; | |
10382 | esac | |
10383 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10384 | # in which case we are not to be found in the path. | |
10385 | if test "x$as_myself" = x; then | |
10386 | as_myself=$0 | |
10387 | fi | |
10388 | if test ! -f "$as_myself"; then | |
10389 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10390 | { (exit 1); exit 1; } | |
10391 | fi | |
10392 | ||
b3076f16 | 10393 | # Work around bugs in pre-3.0 UWIN ksh. |
a8b2ad8d | 10394 | for as_var in ENV MAIL MAILPATH |
10395 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
10396 | done | |
b3076f16 | 10397 | PS1='$ ' |
10398 | PS2='> ' | |
10399 | PS4='+ ' | |
10400 | ||
10401 | # NLS nuisances. | |
10402 | for as_var in \ | |
10403 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10404 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10405 | LC_TELEPHONE LC_TIME | |
10406 | do | |
10407 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
10408 | eval $as_var=C; export $as_var | |
10409 | else | |
a8b2ad8d | 10410 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b3076f16 | 10411 | fi |
10412 | done | |
10413 | ||
10414 | # Required to use basename. | |
a8b2ad8d | 10415 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10416 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 10417 | as_expr=expr |
10418 | else | |
10419 | as_expr=false | |
10420 | fi | |
10421 | ||
a8b2ad8d | 10422 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 10423 | as_basename=basename |
10424 | else | |
10425 | as_basename=false | |
10426 | fi | |
10427 | ||
10428 | ||
10429 | # Name of the executable. | |
a8b2ad8d | 10430 | as_me=`$as_basename -- "$0" || |
b3076f16 | 10431 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10432 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 10433 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 10434 | echo X/"$0" | |
a8b2ad8d | 10435 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10436 | s//\1/ | |
10437 | q | |
10438 | } | |
10439 | /^X\/\(\/\/\)$/{ | |
10440 | s//\1/ | |
10441 | q | |
10442 | } | |
10443 | /^X\/\(\/\).*/{ | |
10444 | s//\1/ | |
10445 | q | |
10446 | } | |
10447 | s/.*/./; q'` | |
b3076f16 | 10448 | |
a8b2ad8d | 10449 | # CDPATH. |
10450 | $as_unset CDPATH | |
b3076f16 | 10451 | |
10452 | ||
b3076f16 | 10453 | |
b3076f16 | 10454 | as_lineno_1=$LINENO |
10455 | as_lineno_2=$LINENO | |
b3076f16 | 10456 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a8b2ad8d | 10457 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b3076f16 | 10458 | |
10459 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
10460 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a8b2ad8d | 10461 | # line-number line after each line using $LINENO; the second 'sed' |
10462 | # does the real work. The second script uses 'N' to pair each | |
10463 | # line-number line with the line containing $LINENO, and appends | |
10464 | # trailing '-' during substitution so that $LINENO is not a special | |
10465 | # case at line end. | |
b3076f16 | 10466 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a8b2ad8d | 10467 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
10468 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
10469 | sed -n ' | |
10470 | p | |
10471 | /[$]LINENO/= | |
10472 | ' <$as_myself | | |
b3076f16 | 10473 | sed ' |
a8b2ad8d | 10474 | s/[$]LINENO.*/&-/ |
10475 | t lineno | |
10476 | b | |
10477 | :lineno | |
b3076f16 | 10478 | N |
a8b2ad8d | 10479 | :loop |
10480 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b3076f16 | 10481 | t loop |
a8b2ad8d | 10482 | s/-\n.*// |
b3076f16 | 10483 | ' >$as_me.lineno && |
a8b2ad8d | 10484 | chmod +x "$as_me.lineno" || |
10485 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b3076f16 | 10486 | { (exit 1); exit 1; }; } |
10487 | ||
10488 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10489 | # (the dirname of $[0] is not the place where we might find the | |
a8b2ad8d | 10490 | # original and so on. Autoconf is especially sensitive to this). |
10491 | . "./$as_me.lineno" | |
b3076f16 | 10492 | # Exit status is that of the last command. |
10493 | exit | |
10494 | } | |
10495 | ||
10496 | ||
a8b2ad8d | 10497 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10498 | as_dirname=dirname | |
10499 | else | |
10500 | as_dirname=false | |
10501 | fi | |
10502 | ||
10503 | ECHO_C= ECHO_N= ECHO_T= | |
10504 | case `echo -n x` in | |
10505 | -n*) | |
10506 | case `echo 'x\c'` in | |
10507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10508 | *) ECHO_C='\c';; | |
10509 | esac;; | |
10510 | *) | |
10511 | ECHO_N='-n';; | |
b3076f16 | 10512 | esac |
10513 | ||
a8b2ad8d | 10514 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10515 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 10516 | as_expr=expr |
10517 | else | |
10518 | as_expr=false | |
10519 | fi | |
10520 | ||
10521 | rm -f conf$$ conf$$.exe conf$$.file | |
a8b2ad8d | 10522 | if test -d conf$$.dir; then |
10523 | rm -f conf$$.dir/conf$$.file | |
10524 | else | |
10525 | rm -f conf$$.dir | |
10526 | mkdir conf$$.dir | |
10527 | fi | |
b3076f16 | 10528 | echo >conf$$.file |
10529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8b2ad8d | 10530 | as_ln_s='ln -s' |
10531 | # ... but there are two gotchas: | |
10532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10534 | # In both cases, we have to default to `cp -p'. | |
10535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b3076f16 | 10536 | as_ln_s='cp -p' |
b3076f16 | 10537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10538 | as_ln_s=ln | |
10539 | else | |
10540 | as_ln_s='cp -p' | |
10541 | fi | |
a8b2ad8d | 10542 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10543 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 10544 | |
10545 | if mkdir -p . 2>/dev/null; then | |
10546 | as_mkdir_p=: | |
10547 | else | |
10548 | test -d ./-p && rmdir ./-p | |
10549 | as_mkdir_p=false | |
10550 | fi | |
10551 | ||
0bd0bef6 | 10552 | if test -x / >/dev/null 2>&1; then |
10553 | as_test_x='test -x' | |
a8b2ad8d | 10554 | else |
0bd0bef6 | 10555 | if ls -dL / >/dev/null 2>&1; then |
10556 | as_ls_L_option=L | |
10557 | else | |
10558 | as_ls_L_option= | |
10559 | fi | |
10560 | as_test_x=' | |
10561 | eval sh -c '\'' | |
10562 | if test -d "$1"; then | |
10563 | test -d "$1/."; | |
10564 | else | |
10565 | case $1 in | |
10566 | -*)set "./$1";; | |
10567 | esac; | |
10568 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
10569 | ???[sx]*):;;*)false;;esac;fi | |
10570 | '\'' sh | |
10571 | ' | |
a8b2ad8d | 10572 | fi |
0bd0bef6 | 10573 | as_executable_p=$as_test_x |
b3076f16 | 10574 | |
10575 | # Sed expression to map a string onto a valid CPP name. | |
10576 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10577 | ||
10578 | # Sed expression to map a string onto a valid variable name. | |
10579 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10580 | ||
10581 | ||
b3076f16 | 10582 | exec 6>&1 |
10583 | ||
a8b2ad8d | 10584 | # Save the log message, to keep $[0] and so on meaningful, and to |
b3076f16 | 10585 | # report actual input values of CONFIG_FILES etc. instead of their |
a8b2ad8d | 10586 | # values after options handling. |
10587 | ac_log=" | |
1136f709 | 10588 | This file was extended by X3 $as_me 1.7, which was |
0bd0bef6 | 10589 | generated by GNU Autoconf 2.61. Invocation command line was |
b3076f16 | 10590 | |
10591 | CONFIG_FILES = $CONFIG_FILES | |
10592 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10593 | CONFIG_LINKS = $CONFIG_LINKS | |
10594 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10595 | $ $0 $@ | |
10596 | ||
a8b2ad8d | 10597 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10598 | " | |
10599 | ||
b3076f16 | 10600 | _ACEOF |
10601 | ||
a8b2ad8d | 10602 | cat >>$CONFIG_STATUS <<_ACEOF |
b3076f16 | 10603 | # Files that config.status was made for. |
a8b2ad8d | 10604 | config_files="$ac_config_files" |
10605 | config_headers="$ac_config_headers" | |
10606 | config_commands="$ac_config_commands" | |
b3076f16 | 10607 | |
a8b2ad8d | 10608 | _ACEOF |
b3076f16 | 10609 | |
10610 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b3076f16 | 10611 | ac_cs_usage="\ |
10612 | \`$as_me' instantiates files from templates according to the | |
10613 | current configuration. | |
10614 | ||
10615 | Usage: $0 [OPTIONS] [FILE]... | |
10616 | ||
10617 | -h, --help print this help, then exit | |
0bd0bef6 | 10618 | -V, --version print version number and configuration settings, then exit |
b3076f16 | 10619 | -q, --quiet do not print progress messages |
10620 | -d, --debug don't remove temporary files | |
10621 | --recheck update $as_me by reconfiguring in the same conditions | |
10622 | --file=FILE[:TEMPLATE] | |
10623 | instantiate the configuration file FILE | |
10624 | --header=FILE[:TEMPLATE] | |
10625 | instantiate the configuration header FILE | |
10626 | ||
10627 | Configuration files: | |
10628 | $config_files | |
10629 | ||
10630 | Configuration headers: | |
10631 | $config_headers | |
10632 | ||
ec1a68c8 | 10633 | Configuration commands: |
10634 | $config_commands | |
10635 | ||
b3076f16 | 10636 | Report bugs to <bug-autoconf@gnu.org>." |
b3076f16 | 10637 | |
a8b2ad8d | 10638 | _ACEOF |
b3076f16 | 10639 | cat >>$CONFIG_STATUS <<_ACEOF |
10640 | ac_cs_version="\\ | |
1136f709 | 10641 | X3 config.status 1.7 |
0bd0bef6 | 10642 | configured by $0, generated by GNU Autoconf 2.61, |
a8b2ad8d | 10643 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
b3076f16 | 10644 | |
a8b2ad8d | 10645 | Copyright (C) 2006 Free Software Foundation, Inc. |
b3076f16 | 10646 | This config.status script is free software; the Free Software Foundation |
10647 | gives unlimited permission to copy, distribute and modify it." | |
a8b2ad8d | 10648 | |
10649 | ac_pwd='$ac_pwd' | |
10650 | srcdir='$srcdir' | |
10651 | INSTALL='$INSTALL' | |
2f65da8f | 10652 | MKDIR_P='$MKDIR_P' |
b3076f16 | 10653 | _ACEOF |
10654 | ||
10655 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10656 | # If no file are specified by the user, then we need to provide default | |
10657 | # value. By we need to know if files were specified by the user. | |
10658 | ac_need_defaults=: | |
10659 | while test $# != 0 | |
10660 | do | |
10661 | case $1 in | |
10662 | --*=*) | |
a8b2ad8d | 10663 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10664 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b3076f16 | 10665 | ac_shift=: |
10666 | ;; | |
a8b2ad8d | 10667 | *) |
b3076f16 | 10668 | ac_option=$1 |
10669 | ac_optarg=$2 | |
10670 | ac_shift=shift | |
10671 | ;; | |
b3076f16 | 10672 | esac |
10673 | ||
10674 | case $ac_option in | |
10675 | # Handling of the options. | |
b3076f16 | 10676 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10677 | ac_cs_recheck=: ;; | |
a8b2ad8d | 10678 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
10679 | echo "$ac_cs_version"; exit ;; | |
10680 | --debug | --debu | --deb | --de | --d | -d ) | |
b3076f16 | 10681 | debug=: ;; |
10682 | --file | --fil | --fi | --f ) | |
10683 | $ac_shift | |
10684 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10685 | ac_need_defaults=false;; | |
10686 | --header | --heade | --head | --hea ) | |
10687 | $ac_shift | |
10688 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
10689 | ac_need_defaults=false;; | |
a8b2ad8d | 10690 | --he | --h) |
10691 | # Conflict between --help and --header | |
10692 | { echo "$as_me: error: ambiguous option: $1 | |
10693 | Try \`$0 --help' for more information." >&2 | |
10694 | { (exit 1); exit 1; }; };; | |
10695 | --help | --hel | -h ) | |
10696 | echo "$ac_cs_usage"; exit ;; | |
b3076f16 | 10697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10698 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10699 | ac_cs_silent=: ;; | |
10700 | ||
10701 | # This is an error. | |
a8b2ad8d | 10702 | -*) { echo "$as_me: error: unrecognized option: $1 |
10703 | Try \`$0 --help' for more information." >&2 | |
b3076f16 | 10704 | { (exit 1); exit 1; }; } ;; |
10705 | ||
a8b2ad8d | 10706 | *) ac_config_targets="$ac_config_targets $1" |
10707 | ac_need_defaults=false ;; | |
b3076f16 | 10708 | |
10709 | esac | |
10710 | shift | |
10711 | done | |
10712 | ||
10713 | ac_configure_extra_args= | |
10714 | ||
10715 | if $ac_cs_silent; then | |
10716 | exec 6>/dev/null | |
10717 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10718 | fi | |
10719 | ||
10720 | _ACEOF | |
10721 | cat >>$CONFIG_STATUS <<_ACEOF | |
10722 | if \$ac_cs_recheck; then | |
a8b2ad8d | 10723 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
10724 | CONFIG_SHELL=$SHELL | |
10725 | export CONFIG_SHELL | |
10726 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
b3076f16 | 10727 | fi |
10728 | ||
10729 | _ACEOF | |
a8b2ad8d | 10730 | cat >>$CONFIG_STATUS <<\_ACEOF |
10731 | exec 5>>config.log | |
10732 | { | |
10733 | echo | |
10734 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10735 | ## Running $as_me. ## | |
10736 | _ASBOX | |
10737 | echo "$ac_log" | |
10738 | } >&5 | |
b3076f16 | 10739 | |
a8b2ad8d | 10740 | _ACEOF |
ec1a68c8 | 10741 | cat >>$CONFIG_STATUS <<_ACEOF |
10742 | # | |
a8b2ad8d | 10743 | # INIT-COMMANDS |
ec1a68c8 | 10744 | # |
ec1a68c8 | 10745 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
10746 | ||
10747 | _ACEOF | |
b3076f16 | 10748 | |
b3076f16 | 10749 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 10750 | |
10751 | # Handling of arguments. | |
b3076f16 | 10752 | for ac_config_target in $ac_config_targets |
10753 | do | |
a8b2ad8d | 10754 | case $ac_config_target in |
10755 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
10756 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
10757 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10758 | "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;; | |
10759 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
10760 | ||
b3076f16 | 10761 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
10762 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10763 | { (exit 1); exit 1; }; };; | |
10764 | esac | |
10765 | done | |
10766 | ||
a8b2ad8d | 10767 | |
b3076f16 | 10768 | # If the user did not use the arguments to specify the items to instantiate, |
10769 | # then the envvar interface is used. Set only those that are not. | |
10770 | # We use the long form for the default assignment because of an extremely | |
10771 | # bizarre bug on SunOS 4.1.3. | |
10772 | if $ac_need_defaults; then | |
10773 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10774 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
ec1a68c8 | 10775 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b3076f16 | 10776 | fi |
10777 | ||
10778 | # Have a temporary directory for convenience. Make it in the build tree | |
a8b2ad8d | 10779 | # simply because there is no reason against having it here, and in addition, |
b3076f16 | 10780 | # creating and moving files from /tmp can sometimes cause problems. |
a8b2ad8d | 10781 | # Hook for its removal unless debugging. |
10782 | # Note that there is a small window in which the directory will not be cleaned: | |
10783 | # after its creation but before its name has been assigned to `$tmp'. | |
b3076f16 | 10784 | $debug || |
10785 | { | |
a8b2ad8d | 10786 | tmp= |
10787 | trap 'exit_status=$? | |
10788 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10789 | ' 0 | |
b3076f16 | 10790 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
10791 | } | |
b3076f16 | 10792 | # Create a (secure) tmp directory for tmp files. |
10793 | ||
10794 | { | |
a8b2ad8d | 10795 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b3076f16 | 10796 | test -n "$tmp" && test -d "$tmp" |
10797 | } || | |
10798 | { | |
a8b2ad8d | 10799 | tmp=./conf$$-$RANDOM |
10800 | (umask 077 && mkdir "$tmp") | |
b3076f16 | 10801 | } || |
10802 | { | |
10803 | echo "$me: cannot create a temporary directory in ." >&2 | |
10804 | { (exit 1); exit 1; } | |
10805 | } | |
10806 | ||
b3076f16 | 10807 | # |
a8b2ad8d | 10808 | # Set up the sed scripts for CONFIG_FILES section. |
b3076f16 | 10809 | # |
10810 | ||
10811 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10812 | # This happens for instance when ./config.status config.h | |
a8b2ad8d | 10813 | if test -n "$CONFIG_FILES"; then |
10814 | ||
10815 | _ACEOF | |
10816 | ||
10817 | ||
10818 | ||
10819 | ac_delim='%!_!# ' | |
10820 | for ac_last_try in false false false false false :; do | |
10821 | cat >conf$$subs.sed <<_ACEOF | |
10822 | SHELL!$SHELL$ac_delim | |
10823 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
10824 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
10825 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
10826 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
10827 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
10828 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
10829 | exec_prefix!$exec_prefix$ac_delim | |
10830 | prefix!$prefix$ac_delim | |
10831 | program_transform_name!$program_transform_name$ac_delim | |
10832 | bindir!$bindir$ac_delim | |
10833 | sbindir!$sbindir$ac_delim | |
10834 | libexecdir!$libexecdir$ac_delim | |
10835 | datarootdir!$datarootdir$ac_delim | |
10836 | datadir!$datadir$ac_delim | |
10837 | sysconfdir!$sysconfdir$ac_delim | |
10838 | sharedstatedir!$sharedstatedir$ac_delim | |
10839 | localstatedir!$localstatedir$ac_delim | |
10840 | includedir!$includedir$ac_delim | |
10841 | oldincludedir!$oldincludedir$ac_delim | |
10842 | docdir!$docdir$ac_delim | |
10843 | infodir!$infodir$ac_delim | |
10844 | htmldir!$htmldir$ac_delim | |
10845 | dvidir!$dvidir$ac_delim | |
10846 | pdfdir!$pdfdir$ac_delim | |
10847 | psdir!$psdir$ac_delim | |
10848 | libdir!$libdir$ac_delim | |
10849 | localedir!$localedir$ac_delim | |
10850 | mandir!$mandir$ac_delim | |
10851 | DEFS!$DEFS$ac_delim | |
10852 | ECHO_C!$ECHO_C$ac_delim | |
10853 | ECHO_N!$ECHO_N$ac_delim | |
10854 | ECHO_T!$ECHO_T$ac_delim | |
10855 | LIBS!$LIBS$ac_delim | |
10856 | build_alias!$build_alias$ac_delim | |
10857 | host_alias!$host_alias$ac_delim | |
10858 | target_alias!$target_alias$ac_delim | |
10859 | build!$build$ac_delim | |
10860 | build_cpu!$build_cpu$ac_delim | |
10861 | build_vendor!$build_vendor$ac_delim | |
10862 | build_os!$build_os$ac_delim | |
10863 | host!$host$ac_delim | |
10864 | host_cpu!$host_cpu$ac_delim | |
10865 | host_vendor!$host_vendor$ac_delim | |
10866 | host_os!$host_os$ac_delim | |
10867 | target!$target$ac_delim | |
10868 | target_cpu!$target_cpu$ac_delim | |
10869 | target_vendor!$target_vendor$ac_delim | |
10870 | target_os!$target_os$ac_delim | |
10871 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
10872 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
10873 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
2f65da8f | 10874 | am__isrc!$am__isrc$ac_delim |
a8b2ad8d | 10875 | CYGPATH_W!$CYGPATH_W$ac_delim |
10876 | PACKAGE!$PACKAGE$ac_delim | |
10877 | VERSION!$VERSION$ac_delim | |
10878 | ACLOCAL!$ACLOCAL$ac_delim | |
10879 | AUTOCONF!$AUTOCONF$ac_delim | |
10880 | AUTOMAKE!$AUTOMAKE$ac_delim | |
10881 | AUTOHEADER!$AUTOHEADER$ac_delim | |
10882 | MAKEINFO!$MAKEINFO$ac_delim | |
10883 | install_sh!$install_sh$ac_delim | |
10884 | STRIP!$STRIP$ac_delim | |
10885 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
10886 | mkdir_p!$mkdir_p$ac_delim | |
10887 | AWK!$AWK$ac_delim | |
10888 | SET_MAKE!$SET_MAKE$ac_delim | |
10889 | am__leading_dot!$am__leading_dot$ac_delim | |
10890 | AMTAR!$AMTAR$ac_delim | |
10891 | am__tar!$am__tar$ac_delim | |
10892 | am__untar!$am__untar$ac_delim | |
10893 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
10894 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
10895 | MAINT!$MAINT$ac_delim | |
10896 | CC!$CC$ac_delim | |
10897 | CFLAGS!$CFLAGS$ac_delim | |
10898 | LDFLAGS!$LDFLAGS$ac_delim | |
10899 | CPPFLAGS!$CPPFLAGS$ac_delim | |
10900 | ac_ct_CC!$ac_ct_CC$ac_delim | |
10901 | EXEEXT!$EXEEXT$ac_delim | |
10902 | OBJEXT!$OBJEXT$ac_delim | |
10903 | DEPDIR!$DEPDIR$ac_delim | |
10904 | am__include!$am__include$ac_delim | |
10905 | am__quote!$am__quote$ac_delim | |
10906 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
10907 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
10908 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
10909 | CCDEPMODE!$CCDEPMODE$ac_delim | |
10910 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
10911 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
07559983 | 10912 | CP!$CP$ac_delim |
a8b2ad8d | 10913 | RANLIB!$RANLIB$ac_delim |
0f6fe38c | 10914 | LN_S!$LN_S$ac_delim |
10915 | CPP!$CPP$ac_delim | |
a8b2ad8d | 10916 | GREP!$GREP$ac_delim |
10917 | EGREP!$EGREP$ac_delim | |
0f6fe38c | 10918 | MAKER!$MAKER$ac_delim |
a8b2ad8d | 10919 | _ACEOF |
10920 | ||
10921 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
10922 | break | |
10923 | elif $ac_last_try; then | |
10924 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10925 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10926 | { (exit 1); exit 1; }; } | |
10927 | else | |
10928 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
b3076f16 | 10929 | fi |
a8b2ad8d | 10930 | done |
b3076f16 | 10931 | |
a8b2ad8d | 10932 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
10933 | if test -n "$ac_eof"; then | |
10934 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10935 | ac_eof=`expr $ac_eof + 1` | |
10936 | fi | |
10937 | ||
10938 | cat >>$CONFIG_STATUS <<_ACEOF | |
10939 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
10940 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b3076f16 | 10941 | _ACEOF |
a8b2ad8d | 10942 | sed ' |
10943 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10944 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10945 | :n | |
10946 | t n | |
10947 | s/'"$ac_delim"'$/,g/; t | |
10948 | s/$/\\/; p | |
10949 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10950 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10951 | rm -f conf$$subs.sed | |
10952 | cat >>$CONFIG_STATUS <<_ACEOF | |
10953 | CEOF$ac_eof | |
10954 | _ACEOF | |
10955 | ||
10956 | ||
10957 | ac_delim='%!_!# ' | |
10958 | for ac_last_try in false false false false false :; do | |
10959 | cat >conf$$subs.sed <<_ACEOF | |
07559983 | 10960 | ALLOCA!$ALLOCA$ac_delim |
2f65da8f | 10961 | pythonpath!$pythonpath$ac_delim |
10962 | DO_PYTHON_TRUE!$DO_PYTHON_TRUE$ac_delim | |
10963 | DO_PYTHON_FALSE!$DO_PYTHON_FALSE$ac_delim | |
10964 | MODULE_OBJS!$MODULE_OBJS$ac_delim | |
a8b2ad8d | 10965 | MY_SUBDIRS!$MY_SUBDIRS$ac_delim |
10966 | RX_INCLUDES!$RX_INCLUDES$ac_delim | |
10967 | RX_LIBS!$RX_LIBS$ac_delim | |
10968 | TRACK!$TRACK$ac_delim | |
2f65da8f | 10969 | PY_CFLAGS!$PY_CFLAGS$ac_delim |
10970 | PY_LIBS!$PY_LIBS$ac_delim | |
a8b2ad8d | 10971 | LIBOBJS!$LIBOBJS$ac_delim |
10972 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
10973 | _ACEOF | |
10974 | ||
07559983 | 10975 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then |
a8b2ad8d | 10976 | break |
10977 | elif $ac_last_try; then | |
10978 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10979 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10980 | { (exit 1); exit 1; }; } | |
10981 | else | |
10982 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10983 | fi | |
10984 | done | |
10985 | ||
10986 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
10987 | if test -n "$ac_eof"; then | |
10988 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10989 | ac_eof=`expr $ac_eof + 1` | |
10990 | fi | |
10991 | ||
10992 | cat >>$CONFIG_STATUS <<_ACEOF | |
10993 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
10994 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
10995 | _ACEOF | |
10996 | sed ' | |
10997 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10998 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10999 | :n | |
11000 | t n | |
11001 | s/'"$ac_delim"'$/,g/; t | |
11002 | s/$/\\/; p | |
11003 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
11004 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
11005 | rm -f conf$$subs.sed | |
11006 | cat >>$CONFIG_STATUS <<_ACEOF | |
11007 | :end | |
11008 | s/|#_!!_#|//g | |
11009 | CEOF$ac_eof | |
11010 | _ACEOF | |
11011 | ||
11012 | ||
11013 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11014 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11015 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11016 | # (actually we leave an empty line to preserve line numbers). | |
11017 | if test "x$srcdir" = x.; then | |
11018 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11019 | s/:*\$(srcdir):*/:/ | |
11020 | s/:*\${srcdir}:*/:/ | |
11021 | s/:*@srcdir@:*/:/ | |
11022 | s/^\([^=]*=[ ]*\):*/\1/ | |
11023 | s/:*$// | |
11024 | s/^[^=]*=[ ]*$// | |
11025 | }' | |
11026 | fi | |
11027 | ||
b3076f16 | 11028 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 11029 | fi # test -n "$CONFIG_FILES" |
11030 | ||
11031 | ||
11032 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
11033 | do | |
11034 | case $ac_tag in | |
11035 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11036 | esac | |
11037 | case $ac_mode$ac_tag in | |
11038 | :[FHL]*:*);; | |
11039 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
11040 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
11041 | { (exit 1); exit 1; }; };; | |
11042 | :[FH]-) ac_tag=-:-;; | |
11043 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11044 | esac | |
11045 | ac_save_IFS=$IFS | |
11046 | IFS=: | |
11047 | set x $ac_tag | |
11048 | IFS=$ac_save_IFS | |
11049 | shift | |
11050 | ac_file=$1 | |
11051 | shift | |
11052 | ||
11053 | case $ac_mode in | |
11054 | :L) ac_source=$1;; | |
11055 | :[FH]) | |
11056 | ac_file_inputs= | |
11057 | for ac_f | |
11058 | do | |
11059 | case $ac_f in | |
11060 | -) ac_f="$tmp/stdin";; | |
11061 | *) # Look for the file first in the build tree, then in the source tree | |
11062 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11063 | # because $ac_f cannot contain `:'. | |
11064 | test -f "$ac_f" || | |
11065 | case $ac_f in | |
11066 | [\\/$]*) false;; | |
11067 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11068 | esac || | |
11069 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
11070 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
11071 | { (exit 1); exit 1; }; };; | |
11072 | esac | |
11073 | ac_file_inputs="$ac_file_inputs $ac_f" | |
11074 | done | |
11075 | ||
11076 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11077 | # use $as_me), people would be surprised to read: | |
11078 | # /* config.h. Generated by config.status. */ | |
11079 | configure_input="Generated from "`IFS=: | |
11080 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
11081 | if test x"$ac_file" != x-; then | |
11082 | configure_input="$ac_file. $configure_input" | |
11083 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11084 | echo "$as_me: creating $ac_file" >&6;} | |
11085 | fi | |
11086 | ||
11087 | case $ac_tag in | |
11088 | *:-:* | *:-) cat >"$tmp/stdin";; | |
11089 | esac | |
11090 | ;; | |
b3076f16 | 11091 | esac |
11092 | ||
a8b2ad8d | 11093 | ac_dir=`$as_dirname -- "$ac_file" || |
b3076f16 | 11094 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11095 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11096 | X"$ac_file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11097 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 11098 | echo X"$ac_file" | |
a8b2ad8d | 11099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11100 | s//\1/ | |
11101 | q | |
11102 | } | |
11103 | /^X\(\/\/\)[^/].*/{ | |
11104 | s//\1/ | |
11105 | q | |
11106 | } | |
11107 | /^X\(\/\/\)$/{ | |
11108 | s//\1/ | |
11109 | q | |
11110 | } | |
11111 | /^X\(\/\).*/{ | |
11112 | s//\1/ | |
11113 | q | |
11114 | } | |
11115 | s/.*/./; q'` | |
11116 | { as_dir="$ac_dir" | |
11117 | case $as_dir in #( | |
11118 | -*) as_dir=./$as_dir;; | |
11119 | esac | |
11120 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
b3076f16 | 11121 | as_dirs= |
a8b2ad8d | 11122 | while :; do |
11123 | case $as_dir in #( | |
11124 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
11125 | *) as_qdir=$as_dir;; | |
11126 | esac | |
11127 | as_dirs="'$as_qdir' $as_dirs" | |
11128 | as_dir=`$as_dirname -- "$as_dir" || | |
b3076f16 | 11129 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11130 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11131 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11132 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 11133 | echo X"$as_dir" | |
a8b2ad8d | 11134 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11135 | s//\1/ | |
11136 | q | |
11137 | } | |
11138 | /^X\(\/\/\)[^/].*/{ | |
11139 | s//\1/ | |
11140 | q | |
11141 | } | |
11142 | /^X\(\/\/\)$/{ | |
11143 | s//\1/ | |
11144 | q | |
11145 | } | |
11146 | /^X\(\/\).*/{ | |
11147 | s//\1/ | |
11148 | q | |
11149 | } | |
11150 | s/.*/./; q'` | |
11151 | test -d "$as_dir" && break | |
b3076f16 | 11152 | done |
a8b2ad8d | 11153 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
11154 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
11155 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
b3076f16 | 11156 | { (exit 1); exit 1; }; }; } |
b3076f16 | 11157 | ac_builddir=. |
11158 | ||
a8b2ad8d | 11159 | case "$ac_dir" in |
11160 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11161 | *) | |
b3076f16 | 11162 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 11163 | # A ".." for each directory in $ac_dir_suffix. |
11164 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
11165 | case $ac_top_builddir_sub in | |
11166 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11167 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11168 | esac ;; | |
11169 | esac | |
11170 | ac_abs_top_builddir=$ac_pwd | |
11171 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11172 | # for backward compatibility: | |
11173 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 11174 | |
11175 | case $srcdir in | |
a8b2ad8d | 11176 | .) # We are building in place. |
b3076f16 | 11177 | ac_srcdir=. |
a8b2ad8d | 11178 | ac_top_srcdir=$ac_top_builddir_sub |
11179 | ac_abs_top_srcdir=$ac_pwd ;; | |
11180 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 11181 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 11182 | ac_top_srcdir=$srcdir |
11183 | ac_abs_top_srcdir=$srcdir ;; | |
11184 | *) # Relative name. | |
11185 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11186 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11187 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 11188 | esac |
a8b2ad8d | 11189 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b3076f16 | 11190 | |
b3076f16 | 11191 | |
a8b2ad8d | 11192 | case $ac_mode in |
11193 | :F) | |
11194 | # | |
11195 | # CONFIG_FILE | |
11196 | # | |
b3076f16 | 11197 | |
11198 | case $INSTALL in | |
11199 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a8b2ad8d | 11200 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
b3076f16 | 11201 | esac |
2f65da8f | 11202 | ac_MKDIR_P=$MKDIR_P |
11203 | case $MKDIR_P in | |
11204 | [\\/$]* | ?:[\\/]* ) ;; | |
11205 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11206 | esac | |
a8b2ad8d | 11207 | _ACEOF |
b3076f16 | 11208 | |
a8b2ad8d | 11209 | cat >>$CONFIG_STATUS <<\_ACEOF |
11210 | # If the template does not know about datarootdir, expand it. | |
11211 | # FIXME: This hack should be removed a few years after 2.60. | |
11212 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
b8cb2a14 | 11213 | |
a8b2ad8d | 11214 | case `sed -n '/datarootdir/ { |
11215 | p | |
11216 | q | |
11217 | } | |
11218 | /@datadir@/p | |
11219 | /@docdir@/p | |
11220 | /@infodir@/p | |
11221 | /@localedir@/p | |
11222 | /@mandir@/p | |
11223 | ' $ac_file_inputs` in | |
11224 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11225 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11226 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11227 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11228 | _ACEOF | |
11229 | cat >>$CONFIG_STATUS <<_ACEOF | |
11230 | ac_datarootdir_hack=' | |
11231 | s&@datadir@&$datadir&g | |
11232 | s&@docdir@&$docdir&g | |
11233 | s&@infodir@&$infodir&g | |
11234 | s&@localedir@&$localedir&g | |
11235 | s&@mandir@&$mandir&g | |
11236 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11237 | esac | |
b3076f16 | 11238 | _ACEOF |
a8b2ad8d | 11239 | |
11240 | # Neutralize VPATH when `$srcdir' = `.'. | |
11241 | # Shell code in configure.ac might set extrasub. | |
11242 | # FIXME: do we really want to maintain this feature? | |
b3076f16 | 11243 | cat >>$CONFIG_STATUS <<_ACEOF |
11244 | sed "$ac_vpsub | |
11245 | $extrasub | |
11246 | _ACEOF | |
11247 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11248 | :t | |
11249 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a8b2ad8d | 11250 | s&@configure_input@&$configure_input&;t t |
11251 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11252 | s&@srcdir@&$ac_srcdir&;t t | |
11253 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11254 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11255 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11256 | s&@builddir@&$ac_builddir&;t t | |
11257 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11258 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11259 | s&@INSTALL@&$ac_INSTALL&;t t | |
2f65da8f | 11260 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
a8b2ad8d | 11261 | $ac_datarootdir_hack |
11262 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
11263 | ||
11264 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11265 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11266 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
11267 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11268 | which seems to be undefined. Please make sure it is defined." >&5 | |
11269 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11270 | which seems to be undefined. Please make sure it is defined." >&2;} | |
11271 | ||
11272 | rm -f "$tmp/stdin" | |
b3076f16 | 11273 | case $ac_file in |
a8b2ad8d | 11274 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
11275 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
b3076f16 | 11276 | esac |
a8b2ad8d | 11277 | ;; |
11278 | :H) | |
11279 | # | |
11280 | # CONFIG_HEADER | |
11281 | # | |
11282 | _ACEOF | |
11283 | ||
11284 | # Transform confdefs.h into a sed script `conftest.defines', that | |
11285 | # substitutes the proper values into config.h.in to produce config.h. | |
11286 | rm -f conftest.defines conftest.tail | |
11287 | # First, append a space to every undef/define line, to ease matching. | |
11288 | echo 's/$/ /' >conftest.defines | |
11289 | # Then, protect against being on the right side of a sed subst, or in | |
11290 | # an unquoted here document, in config.status. If some macros were | |
11291 | # called several times there might be several #defines for the same | |
11292 | # symbol, which is useless. But do not sort them, since the last | |
11293 | # AC_DEFINE must be honored. | |
11294 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11295 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
11296 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
11297 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
11298 | # just an empty string. | |
11299 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
11300 | ac_dB='\\)[ (].*,\\1define\\2' | |
11301 | ac_dC=' ' | |
11302 | ac_dD=' ,' | |
11303 | ||
11304 | uniq confdefs.h | | |
11305 | sed -n ' | |
11306 | t rset | |
11307 | :rset | |
11308 | s/^[ ]*#[ ]*define[ ][ ]*// | |
11309 | t ok | |
11310 | d | |
11311 | :ok | |
11312 | s/[\\&,]/\\&/g | |
11313 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
11314 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
11315 | ' >>conftest.defines | |
11316 | ||
11317 | # Remove the space that was appended to ease matching. | |
11318 | # Then replace #undef with comments. This is necessary, for | |
b3076f16 | 11319 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
11320 | # on some systems where configure will not decide to define it. | |
a8b2ad8d | 11321 | # (The regexp can be short, since the line contains either #define or #undef.) |
11322 | echo 's/ $// | |
11323 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
11324 | ||
11325 | # Break up conftest.defines: | |
11326 | ac_max_sed_lines=50 | |
11327 | ||
11328 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
11329 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
11330 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
11331 | # et cetera. | |
11332 | ac_in='$ac_file_inputs' | |
11333 | ac_out='"$tmp/out1"' | |
11334 | ac_nxt='"$tmp/out2"' | |
11335 | ||
11336 | while : | |
b3076f16 | 11337 | do |
a8b2ad8d | 11338 | # Write a here document: |
11339 | cat >>$CONFIG_STATUS <<_ACEOF | |
11340 | # First, check the format of the line: | |
11341 | cat >"\$tmp/defines.sed" <<\\CEOF | |
11342 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
11343 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
11344 | b | |
11345 | :def | |
11346 | _ACEOF | |
11347 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
b3076f16 | 11348 | echo 'CEOF |
a8b2ad8d | 11349 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
11350 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
11351 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
11352 | grep . conftest.tail >/dev/null || break | |
b3076f16 | 11353 | rm -f conftest.defines |
11354 | mv conftest.tail conftest.defines | |
11355 | done | |
a8b2ad8d | 11356 | rm -f conftest.defines conftest.tail |
b3076f16 | 11357 | |
a8b2ad8d | 11358 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
b3076f16 | 11359 | cat >>$CONFIG_STATUS <<\_ACEOF |
b3076f16 | 11360 | if test x"$ac_file" != x-; then |
a8b2ad8d | 11361 | echo "/* $configure_input */" >"$tmp/config.h" |
11362 | cat "$ac_result" >>"$tmp/config.h" | |
11363 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
b3076f16 | 11364 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
11365 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11366 | else | |
b3076f16 | 11367 | rm -f $ac_file |
a8b2ad8d | 11368 | mv "$tmp/config.h" $ac_file |
b3076f16 | 11369 | fi |
11370 | else | |
a8b2ad8d | 11371 | echo "/* $configure_input */" |
11372 | cat "$ac_result" | |
b3076f16 | 11373 | fi |
a8b2ad8d | 11374 | rm -f "$tmp/out12" |
ec1a68c8 | 11375 | # Compute $ac_file's index in $config_headers. |
cbfd323c | 11376 | _am_arg=$ac_file |
ec1a68c8 | 11377 | _am_stamp_count=1 |
11378 | for _am_header in $config_headers :; do | |
11379 | case $_am_header in | |
cbfd323c | 11380 | $_am_arg | $_am_arg:* ) |
ec1a68c8 | 11381 | break ;; |
11382 | * ) | |
11383 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
11384 | esac | |
11385 | done | |
cbfd323c | 11386 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
11387 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11388 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
11389 | X"$_am_arg" : 'X\(//\)$' \| \ | |
11390 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
11391 | echo X"$_am_arg" | | |
a8b2ad8d | 11392 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11393 | s//\1/ | |
11394 | q | |
11395 | } | |
11396 | /^X\(\/\/\)[^/].*/{ | |
11397 | s//\1/ | |
11398 | q | |
11399 | } | |
11400 | /^X\(\/\/\)$/{ | |
11401 | s//\1/ | |
11402 | q | |
11403 | } | |
11404 | /^X\(\/\).*/{ | |
11405 | s//\1/ | |
11406 | q | |
11407 | } | |
11408 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
11409 | ;; | |
ec1a68c8 | 11410 | |
a8b2ad8d | 11411 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
11412 | echo "$as_me: executing $ac_file commands" >&6;} | |
11413 | ;; | |
11414 | esac | |
ec1a68c8 | 11415 | |
11416 | ||
a8b2ad8d | 11417 | case $ac_file$ac_mode in |
11418 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
ec1a68c8 | 11419 | # Strip MF so we end up with the name of the file. |
11420 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11421 | # Check whether this is an Automake generated Makefile or not. | |
11422 | # We used to match only the files named `Makefile.in', but | |
11423 | # some people rename them; so instead we look at the file content. | |
11424 | # Grep'ing the first line is not enough: some people post-process | |
11425 | # each Makefile.in and add a new line on top of each file to say so. | |
2f65da8f | 11426 | # Grep'ing the whole file is not good either: AIX grep has a line |
11427 | # limit of 2048, but all sed's we know have understand at least 4000. | |
cbfd323c | 11428 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
a8b2ad8d | 11429 | dirpart=`$as_dirname -- "$mf" || |
ec1a68c8 | 11430 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11431 | X"$mf" : 'X\(//\)[^/]' \| \ | |
11432 | X"$mf" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11433 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11434 | echo X"$mf" | |
a8b2ad8d | 11435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11436 | s//\1/ | |
11437 | q | |
11438 | } | |
11439 | /^X\(\/\/\)[^/].*/{ | |
11440 | s//\1/ | |
11441 | q | |
11442 | } | |
11443 | /^X\(\/\/\)$/{ | |
11444 | s//\1/ | |
11445 | q | |
11446 | } | |
11447 | /^X\(\/\).*/{ | |
11448 | s//\1/ | |
11449 | q | |
11450 | } | |
11451 | s/.*/./; q'` | |
ec1a68c8 | 11452 | else |
11453 | continue | |
11454 | fi | |
11455 | # Extract the definition of DEPDIR, am__include, and am__quote | |
11456 | # from the Makefile without running `make'. | |
11457 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11458 | test -z "$DEPDIR" && continue | |
11459 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11460 | test -z "am__include" && continue | |
11461 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11462 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11463 | U=`sed -n 's/^U = //p' < "$mf"` | |
11464 | # Find all dependency output files, they are included files with | |
11465 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11466 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
11467 | # expansion. | |
11468 | for file in `sed -n " | |
11469 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11470 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11471 | # Make sure the directory exists. | |
11472 | test -f "$dirpart/$file" && continue | |
a8b2ad8d | 11473 | fdir=`$as_dirname -- "$file" || |
ec1a68c8 | 11474 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11475 | X"$file" : 'X\(//\)[^/]' \| \ | |
11476 | X"$file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11477 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11478 | echo X"$file" | |
a8b2ad8d | 11479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11480 | s//\1/ | |
11481 | q | |
11482 | } | |
11483 | /^X\(\/\/\)[^/].*/{ | |
11484 | s//\1/ | |
11485 | q | |
11486 | } | |
11487 | /^X\(\/\/\)$/{ | |
11488 | s//\1/ | |
11489 | q | |
11490 | } | |
11491 | /^X\(\/\).*/{ | |
11492 | s//\1/ | |
11493 | q | |
11494 | } | |
11495 | s/.*/./; q'` | |
11496 | { as_dir=$dirpart/$fdir | |
11497 | case $as_dir in #( | |
11498 | -*) as_dir=./$as_dir;; | |
11499 | esac | |
11500 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ec1a68c8 | 11501 | as_dirs= |
a8b2ad8d | 11502 | while :; do |
11503 | case $as_dir in #( | |
11504 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
11505 | *) as_qdir=$as_dir;; | |
11506 | esac | |
11507 | as_dirs="'$as_qdir' $as_dirs" | |
11508 | as_dir=`$as_dirname -- "$as_dir" || | |
ec1a68c8 | 11509 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11510 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11511 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11512 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11513 | echo X"$as_dir" | |
a8b2ad8d | 11514 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11515 | s//\1/ | |
11516 | q | |
11517 | } | |
11518 | /^X\(\/\/\)[^/].*/{ | |
11519 | s//\1/ | |
11520 | q | |
11521 | } | |
11522 | /^X\(\/\/\)$/{ | |
11523 | s//\1/ | |
11524 | q | |
11525 | } | |
11526 | /^X\(\/\).*/{ | |
11527 | s//\1/ | |
11528 | q | |
11529 | } | |
11530 | s/.*/./; q'` | |
11531 | test -d "$as_dir" && break | |
ec1a68c8 | 11532 | done |
a8b2ad8d | 11533 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
11534 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
11535 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ec1a68c8 | 11536 | { (exit 1); exit 1; }; }; } |
ec1a68c8 | 11537 | # echo "creating $dirpart/$file" |
11538 | echo '# dummy' > "$dirpart/$file" | |
11539 | done | |
11540 | done | |
11541 | ;; | |
a8b2ad8d | 11542 | |
ec1a68c8 | 11543 | esac |
a8b2ad8d | 11544 | done # for ac_tag |
b3076f16 | 11545 | |
b3076f16 | 11546 | |
11547 | { (exit 0); exit 0; } | |
11548 | _ACEOF | |
11549 | chmod +x $CONFIG_STATUS | |
11550 | ac_clean_files=$ac_clean_files_save | |
11551 | ||
11552 | ||
11553 | # configure is writing to config.log, and then calls config.status. | |
11554 | # config.status does its own redirection, appending to config.log. | |
11555 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11556 | # by configure, so config.status won't be able to write to it; its | |
11557 | # output is simply discarded. So we exec the FD to /dev/null, | |
11558 | # effectively closing config.log, so it can be properly (re)opened and | |
11559 | # appended to by config.status. When coming back to configure, we | |
11560 | # need to make the FD available again. | |
11561 | if test "$no_create" != yes; then | |
11562 | ac_cs_success=: | |
11563 | ac_config_status_args= | |
11564 | test "$silent" = yes && | |
11565 | ac_config_status_args="$ac_config_status_args --quiet" | |
11566 | exec 5>/dev/null | |
11567 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11568 | exec 5>>config.log | |
11569 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11570 | # would make configure fail if this is the last instruction. | |
11571 | $ac_cs_success || { (exit 1); exit 1; } | |
11572 | fi | |
11573 | ||
5b1166fd | 11574 | |
11575 | ||
11576 | ||
11577 | cat <<EOF | |
11578 | ||
11579 | Configuration summary | |
11580 | ===================== | |
11581 | ||
11582 | X3 is now configured as follows: | |
11583 | ||
11584 | * Compilation environment | |
11585 | ||
11586 | CC = $CC | |
11587 | CFLAGS = $CFLAGS | |
11588 | CPP = $CPP | |
11589 | CPPFLAGS = $CPPFLAGS | |
11590 | LD = $LD | |
11591 | LDFLAGS = $LDFLAGS | |
11592 | LIBS = $LIBS | |
11593 | ||
11594 | * X3 options | |
11595 | ||
a8b2ad8d | 11596 | Debug: $x3_debug |
11597 | Extra Modules: $module_list | |
11598 | Malloc: $x3_malloc | |
11599 | Protocol: $x3_ircd | |
11600 | Regexp Library TRE $tre_version | |
11601 | Coredumper Library Coredumper $core_version | |
8da89711 | 11602 | $ldap_message |
2f65da8f | 11603 | python: $python |
5b1166fd | 11604 | |
a8b2ad8d | 11605 | Install to: $prefix |
35305a49 | 11606 | |
5b1166fd | 11607 | Now you can proceed with compiling X3 |
11608 | ||
11609 | EOF | |
11610 |