]>
Commit | Line | Data |
---|---|---|
b3076f16 | 1 | #! /bin/sh |
0bd0bef6 | 2 | # From configure.in Id: configure.in 2000 2008-01-16 01:19:37Z sirvulcan . |
b3076f16 | 3 | # Guess values for system-dependent variables and create Makefiles. |
0bd0bef6 | 4 | # Generated by GNU Autoconf 2.61 for X3 1.5. |
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' | |
0f6fe38c | 578 | PACKAGE_VERSION='1.5' |
579 | PACKAGE_STRING='X3 1.5' | |
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 | |
671 | CYGPATH_W | |
672 | PACKAGE | |
673 | VERSION | |
674 | ACLOCAL | |
675 | AUTOCONF | |
676 | AUTOMAKE | |
677 | AUTOHEADER | |
678 | MAKEINFO | |
679 | install_sh | |
680 | STRIP | |
681 | INSTALL_STRIP_PROGRAM | |
682 | mkdir_p | |
683 | AWK | |
684 | SET_MAKE | |
685 | am__leading_dot | |
686 | AMTAR | |
687 | am__tar | |
688 | am__untar | |
689 | MAINTAINER_MODE_TRUE | |
690 | MAINTAINER_MODE_FALSE | |
691 | MAINT | |
692 | CC | |
693 | CFLAGS | |
694 | LDFLAGS | |
695 | CPPFLAGS | |
696 | ac_ct_CC | |
697 | EXEEXT | |
698 | OBJEXT | |
699 | DEPDIR | |
700 | am__include | |
701 | am__quote | |
702 | AMDEP_TRUE | |
703 | AMDEP_FALSE | |
704 | AMDEPBACKSLASH | |
705 | CCDEPMODE | |
706 | am__fastdepCC_TRUE | |
707 | am__fastdepCC_FALSE | |
708 | RANLIB | |
ff3b058a | 709 | LN_S |
ff3b058a | 710 | CPP |
0f6fe38c | 711 | GREP |
712 | EGREP | |
a8b2ad8d | 713 | MAKER |
714 | ALLOCA | |
715 | MODULE_OBJS | |
716 | MY_SUBDIRS | |
717 | RX_INCLUDES | |
718 | RX_LIBS | |
719 | TRACK | |
720 | LIBOBJS | |
721 | LTLIBOBJS' | |
b3076f16 | 722 | ac_subst_files='' |
a8b2ad8d | 723 | ac_precious_vars='build_alias |
724 | host_alias | |
725 | target_alias | |
726 | CC | |
727 | CFLAGS | |
728 | LDFLAGS | |
0bd0bef6 | 729 | LIBS |
a8b2ad8d | 730 | CPPFLAGS |
0f6fe38c | 731 | CPP' |
a8b2ad8d | 732 | |
b3076f16 | 733 | |
734 | # Initialize some variables set by options. | |
735 | ac_init_help= | |
736 | ac_init_version=false | |
737 | # The variables have the same names as the options, with | |
738 | # dashes changed to underlines. | |
739 | cache_file=/dev/null | |
740 | exec_prefix=NONE | |
741 | no_create= | |
742 | no_recursion= | |
743 | prefix=NONE | |
744 | program_prefix=NONE | |
745 | program_suffix=NONE | |
746 | program_transform_name=s,x,x, | |
747 | silent= | |
748 | site= | |
749 | srcdir= | |
750 | verbose= | |
751 | x_includes=NONE | |
752 | x_libraries=NONE | |
753 | ||
754 | # Installation directory options. | |
755 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
756 | # and all the variables that are supposed to be based on exec_prefix | |
757 | # by default will actually change. | |
758 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
a8b2ad8d | 759 | # (The list follows the same order as the GNU Coding Standards.) |
b3076f16 | 760 | bindir='${exec_prefix}/bin' |
761 | sbindir='${exec_prefix}/sbin' | |
762 | libexecdir='${exec_prefix}/libexec' | |
a8b2ad8d | 763 | datarootdir='${prefix}/share' |
764 | datadir='${datarootdir}' | |
b3076f16 | 765 | sysconfdir='${prefix}/etc' |
766 | sharedstatedir='${prefix}/com' | |
767 | localstatedir='${prefix}/var' | |
b3076f16 | 768 | includedir='${prefix}/include' |
769 | oldincludedir='/usr/include' | |
a8b2ad8d | 770 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
771 | infodir='${datarootdir}/info' | |
772 | htmldir='${docdir}' | |
773 | dvidir='${docdir}' | |
774 | pdfdir='${docdir}' | |
775 | psdir='${docdir}' | |
776 | libdir='${exec_prefix}/lib' | |
777 | localedir='${datarootdir}/locale' | |
778 | mandir='${datarootdir}/man' | |
b3076f16 | 779 | |
780 | ac_prev= | |
a8b2ad8d | 781 | ac_dashdash= |
b3076f16 | 782 | for ac_option |
783 | do | |
784 | # If the previous option needs an argument, assign it. | |
785 | if test -n "$ac_prev"; then | |
a8b2ad8d | 786 | eval $ac_prev=\$ac_option |
b3076f16 | 787 | ac_prev= |
788 | continue | |
789 | fi | |
790 | ||
a8b2ad8d | 791 | case $ac_option in |
792 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
793 | *) ac_optarg=yes ;; | |
794 | esac | |
b3076f16 | 795 | |
796 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
797 | ||
a8b2ad8d | 798 | case $ac_dashdash$ac_option in |
799 | --) | |
800 | ac_dashdash=yes ;; | |
b3076f16 | 801 | |
802 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
803 | ac_prev=bindir ;; | |
804 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
805 | bindir=$ac_optarg ;; | |
806 | ||
807 | -build | --build | --buil | --bui | --bu) | |
808 | ac_prev=build_alias ;; | |
809 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
810 | build_alias=$ac_optarg ;; | |
811 | ||
812 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
813 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
814 | ac_prev=cache_file ;; | |
815 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
816 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
817 | cache_file=$ac_optarg ;; | |
818 | ||
819 | --config-cache | -C) | |
820 | cache_file=config.cache ;; | |
821 | ||
a8b2ad8d | 822 | -datadir | --datadir | --datadi | --datad) |
b3076f16 | 823 | ac_prev=datadir ;; |
a8b2ad8d | 824 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b3076f16 | 825 | datadir=$ac_optarg ;; |
826 | ||
a8b2ad8d | 827 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
828 | | --dataroo | --dataro | --datar) | |
829 | ac_prev=datarootdir ;; | |
830 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
831 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
832 | datarootdir=$ac_optarg ;; | |
833 | ||
b3076f16 | 834 | -disable-* | --disable-*) |
835 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
836 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 837 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 838 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
839 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 840 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
a8b2ad8d | 841 | eval enable_$ac_feature=no ;; |
842 | ||
843 | -docdir | --docdir | --docdi | --doc | --do) | |
844 | ac_prev=docdir ;; | |
845 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
846 | docdir=$ac_optarg ;; | |
847 | ||
848 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
849 | ac_prev=dvidir ;; | |
850 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
851 | dvidir=$ac_optarg ;; | |
b3076f16 | 852 | |
853 | -enable-* | --enable-*) | |
854 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
855 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 856 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 857 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
858 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 859 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
a8b2ad8d | 860 | eval enable_$ac_feature=\$ac_optarg ;; |
b3076f16 | 861 | |
862 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
863 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
864 | | --exec | --exe | --ex) | |
865 | ac_prev=exec_prefix ;; | |
866 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
867 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
868 | | --exec=* | --exe=* | --ex=*) | |
869 | exec_prefix=$ac_optarg ;; | |
870 | ||
871 | -gas | --gas | --ga | --g) | |
872 | # Obsolete; use --with-gas. | |
873 | with_gas=yes ;; | |
874 | ||
875 | -help | --help | --hel | --he | -h) | |
876 | ac_init_help=long ;; | |
877 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
878 | ac_init_help=recursive ;; | |
879 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
880 | ac_init_help=short ;; | |
881 | ||
882 | -host | --host | --hos | --ho) | |
883 | ac_prev=host_alias ;; | |
884 | -host=* | --host=* | --hos=* | --ho=*) | |
885 | host_alias=$ac_optarg ;; | |
886 | ||
a8b2ad8d | 887 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
888 | ac_prev=htmldir ;; | |
889 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
890 | | --ht=*) | |
891 | htmldir=$ac_optarg ;; | |
892 | ||
b3076f16 | 893 | -includedir | --includedir | --includedi | --included | --include \ |
894 | | --includ | --inclu | --incl | --inc) | |
895 | ac_prev=includedir ;; | |
896 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
897 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
898 | includedir=$ac_optarg ;; | |
899 | ||
900 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
901 | ac_prev=infodir ;; | |
902 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
903 | infodir=$ac_optarg ;; | |
904 | ||
905 | -libdir | --libdir | --libdi | --libd) | |
906 | ac_prev=libdir ;; | |
907 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
908 | libdir=$ac_optarg ;; | |
909 | ||
910 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
911 | | --libexe | --libex | --libe) | |
912 | ac_prev=libexecdir ;; | |
913 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
914 | | --libexe=* | --libex=* | --libe=*) | |
915 | libexecdir=$ac_optarg ;; | |
916 | ||
a8b2ad8d | 917 | -localedir | --localedir | --localedi | --localed | --locale) |
918 | ac_prev=localedir ;; | |
919 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
920 | localedir=$ac_optarg ;; | |
921 | ||
b3076f16 | 922 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
a8b2ad8d | 923 | | --localstate | --localstat | --localsta | --localst | --locals) |
b3076f16 | 924 | ac_prev=localstatedir ;; |
925 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
a8b2ad8d | 926 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b3076f16 | 927 | localstatedir=$ac_optarg ;; |
928 | ||
929 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
930 | ac_prev=mandir ;; | |
931 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
932 | mandir=$ac_optarg ;; | |
933 | ||
934 | -nfp | --nfp | --nf) | |
935 | # Obsolete; use --without-fp. | |
936 | with_fp=no ;; | |
937 | ||
938 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
939 | | --no-cr | --no-c | -n) | |
940 | no_create=yes ;; | |
941 | ||
942 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
943 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
944 | no_recursion=yes ;; | |
945 | ||
946 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
947 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
948 | | --oldin | --oldi | --old | --ol | --o) | |
949 | ac_prev=oldincludedir ;; | |
950 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
951 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
952 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
953 | oldincludedir=$ac_optarg ;; | |
954 | ||
955 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
956 | ac_prev=prefix ;; | |
957 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
958 | prefix=$ac_optarg ;; | |
959 | ||
960 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
961 | | --program-pre | --program-pr | --program-p) | |
962 | ac_prev=program_prefix ;; | |
963 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
964 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
965 | program_prefix=$ac_optarg ;; | |
966 | ||
967 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
968 | | --program-suf | --program-su | --program-s) | |
969 | ac_prev=program_suffix ;; | |
970 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
971 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
972 | program_suffix=$ac_optarg ;; | |
973 | ||
974 | -program-transform-name | --program-transform-name \ | |
975 | | --program-transform-nam | --program-transform-na \ | |
976 | | --program-transform-n | --program-transform- \ | |
977 | | --program-transform | --program-transfor \ | |
978 | | --program-transfo | --program-transf \ | |
979 | | --program-trans | --program-tran \ | |
980 | | --progr-tra | --program-tr | --program-t) | |
981 | ac_prev=program_transform_name ;; | |
982 | -program-transform-name=* | --program-transform-name=* \ | |
983 | | --program-transform-nam=* | --program-transform-na=* \ | |
984 | | --program-transform-n=* | --program-transform-=* \ | |
985 | | --program-transform=* | --program-transfor=* \ | |
986 | | --program-transfo=* | --program-transf=* \ | |
987 | | --program-trans=* | --program-tran=* \ | |
988 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
989 | program_transform_name=$ac_optarg ;; | |
990 | ||
a8b2ad8d | 991 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
992 | ac_prev=pdfdir ;; | |
993 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
994 | pdfdir=$ac_optarg ;; | |
995 | ||
996 | -psdir | --psdir | --psdi | --psd | --ps) | |
997 | ac_prev=psdir ;; | |
998 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
999 | psdir=$ac_optarg ;; | |
1000 | ||
b3076f16 | 1001 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1002 | | -silent | --silent | --silen | --sile | --sil) | |
1003 | silent=yes ;; | |
1004 | ||
1005 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1006 | ac_prev=sbindir ;; | |
1007 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1008 | | --sbi=* | --sb=*) | |
1009 | sbindir=$ac_optarg ;; | |
1010 | ||
1011 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1012 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1013 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1014 | | --sha | --sh) | |
1015 | ac_prev=sharedstatedir ;; | |
1016 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1017 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1018 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1019 | | --sha=* | --sh=*) | |
1020 | sharedstatedir=$ac_optarg ;; | |
1021 | ||
1022 | -site | --site | --sit) | |
1023 | ac_prev=site ;; | |
1024 | -site=* | --site=* | --sit=*) | |
1025 | site=$ac_optarg ;; | |
1026 | ||
1027 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1028 | ac_prev=srcdir ;; | |
1029 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1030 | srcdir=$ac_optarg ;; | |
1031 | ||
1032 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1033 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1034 | ac_prev=sysconfdir ;; | |
1035 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1036 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1037 | sysconfdir=$ac_optarg ;; | |
1038 | ||
1039 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1040 | ac_prev=target_alias ;; | |
1041 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1042 | target_alias=$ac_optarg ;; | |
1043 | ||
1044 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1045 | verbose=yes ;; | |
1046 | ||
1047 | -version | --version | --versio | --versi | --vers | -V) | |
1048 | ac_init_version=: ;; | |
1049 | ||
1050 | -with-* | --with-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
a8b2ad8d | 1057 | eval with_$ac_package=\$ac_optarg ;; |
b3076f16 | 1058 | |
1059 | -without-* | --without-*) | |
1060 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1061 | # Reject names that are not valid shell variable names. | |
0bd0bef6 | 1062 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
b3076f16 | 1063 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1064 | { (exit 1); exit 1; }; } | |
0bd0bef6 | 1065 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
a8b2ad8d | 1066 | eval with_$ac_package=no ;; |
b3076f16 | 1067 | |
1068 | --x) | |
1069 | # Obsolete; use --with-x. | |
1070 | with_x=yes ;; | |
1071 | ||
1072 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1073 | | --x-incl | --x-inc | --x-in | --x-i) | |
1074 | ac_prev=x_includes ;; | |
1075 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1076 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1077 | x_includes=$ac_optarg ;; | |
1078 | ||
1079 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1080 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1081 | ac_prev=x_libraries ;; | |
1082 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1083 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1084 | x_libraries=$ac_optarg ;; | |
1085 | ||
1086 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1087 | Try \`$0 --help' for more information." >&2 | |
1088 | { (exit 1); exit 1; }; } | |
1089 | ;; | |
1090 | ||
1091 | *=*) | |
1092 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1093 | # Reject names that are not valid shell variable names. | |
1094 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1095 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1096 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1097 | eval $ac_envvar=\$ac_optarg |
b3076f16 | 1098 | export $ac_envvar ;; |
1099 | ||
1100 | *) | |
1101 | # FIXME: should be removed in autoconf 3.0. | |
1102 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1103 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1104 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1105 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1106 | ;; | |
1107 | ||
1108 | esac | |
1109 | done | |
1110 | ||
1111 | if test -n "$ac_prev"; then | |
1112 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1113 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1114 | { (exit 1); exit 1; }; } | |
1115 | fi | |
1116 | ||
a8b2ad8d | 1117 | # Be sure to have absolute directory names. |
1118 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1119 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1120 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1121 | libdir localedir mandir | |
b3076f16 | 1122 | do |
a8b2ad8d | 1123 | eval ac_val=\$$ac_var |
b3076f16 | 1124 | case $ac_val in |
a8b2ad8d | 1125 | [\\/$]* | ?:[\\/]* ) continue;; |
1126 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b3076f16 | 1127 | esac |
a8b2ad8d | 1128 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1129 | { (exit 1); exit 1; }; } | |
b3076f16 | 1130 | done |
1131 | ||
1132 | # There might be people who depend on the old broken behavior: `$host' | |
1133 | # used to hold the argument of --host etc. | |
1134 | # FIXME: To remove some day. | |
1135 | build=$build_alias | |
1136 | host=$host_alias | |
1137 | target=$target_alias | |
1138 | ||
1139 | # FIXME: To remove some day. | |
1140 | if test "x$host_alias" != x; then | |
1141 | if test "x$build_alias" = x; then | |
1142 | cross_compiling=maybe | |
1143 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1144 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1145 | elif test "x$build_alias" != "x$host_alias"; then | |
1146 | cross_compiling=yes | |
1147 | fi | |
1148 | fi | |
1149 | ||
1150 | ac_tool_prefix= | |
1151 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1152 | ||
1153 | test "$silent" = yes && exec 6>/dev/null | |
1154 | ||
1155 | ||
a8b2ad8d | 1156 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1157 | ac_ls_di=`ls -di .` && | |
1158 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1159 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1160 | { (exit 1); exit 1; }; } | |
1161 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1162 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1163 | { (exit 1); exit 1; }; } | |
1164 | ||
1165 | ||
b3076f16 | 1166 | # Find the source files, if location was not specified. |
1167 | if test -z "$srcdir"; then | |
1168 | ac_srcdir_defaulted=yes | |
a8b2ad8d | 1169 | # Try the directory containing this script, then the parent directory. |
1170 | ac_confdir=`$as_dirname -- "$0" || | |
b3076f16 | 1171 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1172 | X"$0" : 'X\(//\)[^/]' \| \ | |
1173 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 1174 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 1175 | echo X"$0" | |
a8b2ad8d | 1176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1177 | s//\1/ | |
1178 | q | |
1179 | } | |
1180 | /^X\(\/\/\)[^/].*/{ | |
1181 | s//\1/ | |
1182 | q | |
1183 | } | |
1184 | /^X\(\/\/\)$/{ | |
1185 | s//\1/ | |
1186 | q | |
1187 | } | |
1188 | /^X\(\/\).*/{ | |
1189 | s//\1/ | |
1190 | q | |
1191 | } | |
1192 | s/.*/./; q'` | |
b3076f16 | 1193 | srcdir=$ac_confdir |
a8b2ad8d | 1194 | if test ! -r "$srcdir/$ac_unique_file"; then |
b3076f16 | 1195 | srcdir=.. |
1196 | fi | |
1197 | else | |
1198 | ac_srcdir_defaulted=no | |
1199 | fi | |
a8b2ad8d | 1200 | if test ! -r "$srcdir/$ac_unique_file"; then |
1201 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1202 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
b3076f16 | 1203 | { (exit 1); exit 1; }; } |
b3076f16 | 1204 | fi |
a8b2ad8d | 1205 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1206 | ac_abs_confdir=`( | |
1207 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
b3076f16 | 1208 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1209 | pwd)` |
1210 | # When building in place, set srcdir=. | |
1211 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1212 | srcdir=. | |
1213 | fi | |
1214 | # Remove unnecessary trailing slashes from srcdir. | |
1215 | # Double slashes in file names in object file debugging info | |
1216 | # mess up M-x gdb in Emacs. | |
1217 | case $srcdir in | |
1218 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1219 | esac | |
1220 | for ac_var in $ac_precious_vars; do | |
1221 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1222 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1223 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1224 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1225 | done | |
b3076f16 | 1226 | |
1227 | # | |
1228 | # Report the --help message. | |
1229 | # | |
1230 | if test "$ac_init_help" = "long"; then | |
1231 | # Omit some internal or obsolete options to make the list less imposing. | |
1232 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1233 | cat <<_ACEOF | |
0f6fe38c | 1234 | \`configure' configures X3 1.5 to adapt to many kinds of systems. |
b3076f16 | 1235 | |
1236 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1237 | ||
1238 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1239 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1240 | ||
1241 | Defaults for the options are specified in brackets. | |
1242 | ||
1243 | Configuration: | |
1244 | -h, --help display this help and exit | |
1245 | --help=short display options specific to this package | |
1246 | --help=recursive display the short help of all the included packages | |
1247 | -V, --version display version information and exit | |
1248 | -q, --quiet, --silent do not print \`checking...' messages | |
1249 | --cache-file=FILE cache test results in FILE [disabled] | |
1250 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1251 | -n, --no-create do not create output files | |
1252 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1253 | ||
b3076f16 | 1254 | Installation directories: |
1255 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1256 | [$ac_default_prefix] | |
1257 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1258 | [PREFIX] | |
1259 | ||
1260 | By default, \`make install' will install all the files in | |
1261 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1262 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1263 | for instance \`--prefix=\$HOME'. | |
1264 | ||
1265 | For better control, use the options below. | |
1266 | ||
1267 | Fine tuning of the installation directories: | |
1268 | --bindir=DIR user executables [EPREFIX/bin] | |
1269 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1270 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b3076f16 | 1271 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1272 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1273 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1274 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1275 | --includedir=DIR C header files [PREFIX/include] | |
1276 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
a8b2ad8d | 1277 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1278 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1279 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1280 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1281 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1282 | --docdir=DIR documentation root [DATAROOTDIR/doc/x3] | |
1283 | --htmldir=DIR html documentation [DOCDIR] | |
1284 | --dvidir=DIR dvi documentation [DOCDIR] | |
1285 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1286 | --psdir=DIR ps documentation [DOCDIR] | |
b3076f16 | 1287 | _ACEOF |
1288 | ||
1289 | cat <<\_ACEOF | |
1290 | ||
1291 | Program names: | |
1292 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1293 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1294 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1295 | ||
1296 | System types: | |
1297 | --build=BUILD configure for building on BUILD [guessed] | |
1298 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1299 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1300 | _ACEOF | |
1301 | fi | |
1302 | ||
1303 | if test -n "$ac_init_help"; then | |
1304 | case $ac_init_help in | |
0f6fe38c | 1305 | short | recursive ) echo "Configuration of X3 1.5:";; |
b3076f16 | 1306 | esac |
1307 | cat <<\_ACEOF | |
1308 | ||
1309 | Optional Features: | |
1310 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1311 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ec1a68c8 | 1312 | --enable-maintainer-mode enable make rules and dependencies not useful |
1313 | (and sometimes confusing) to the casual installer | |
1314 | --disable-dependency-tracking speeds up one-time build | |
1315 | --enable-dependency-tracking do not reject slow dependency extractors | |
b3076f16 | 1316 | --disable-tokens Disables tokenization of P10 protocol output |
1317 | (tokens required if linking to ircu 2.10.11) | |
1318 | --enable-debug Enables debugging behaviors | |
1319 | --enable-modules=list,of,modules Enable extra modules | |
1320 | ||
1321 | Optional Packages: | |
1322 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1323 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1324 | --with-malloc=type Enables use of a special malloc library; one of: | |
b8cb2a14 | 1325 | system (the default), boehm-gc, dmalloc, mpatrol, x3, slab |
b3076f16 | 1326 | --with-protocol=name Choose IRC dialect to support; one of: |
7827220c | 1327 | p10 (the default) |
b3076f16 | 1328 | --without-getopt Disables building of the GNU getopt library |
a8b2ad8d | 1329 | --with-tre=PATH Base path to where libtre is installed, such that |
1330 | PATH/lib/libtre.so and PATH/include/tre/regex.h exist. | |
1331 | --with-coredumper=PATH Base path to where core dumper is installed, such | |
1332 | that PATH/lib/libcoredumper.so and | |
1333 | PATH/include/google/coredumper.h exist. | |
73d4cc91 | 1334 | --with-ssl=PATH Base path to where openssl is installed |
8da89711 | 1335 | --with-ldap=PATH Base path to where the ldap library and headers are installed, |
1336 | such that PATH/include/ldap.h and PATH/lib/libldap.so exist. | |
b3076f16 | 1337 | |
1338 | Some influential environment variables: | |
1339 | CC C compiler command | |
1340 | CFLAGS C compiler flags | |
1341 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1342 | nonstandard directory <lib dir> | |
0bd0bef6 | 1343 | LIBS libraries to pass to the linker, e.g. -l<library> |
a8b2ad8d | 1344 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1345 | you have headers in a nonstandard directory <include dir> | |
b3076f16 | 1346 | CPP C preprocessor |
1347 | ||
1348 | Use these variables to override the choices made by `configure' or to help | |
1349 | it to find libraries and programs with nonstandard names/locations. | |
1350 | ||
63c95a47 | 1351 | Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 1352 | _ACEOF |
a8b2ad8d | 1353 | ac_status=$? |
b3076f16 | 1354 | fi |
1355 | ||
1356 | if test "$ac_init_help" = "recursive"; then | |
1357 | # If there are subdirs, report their specific --help. | |
b3076f16 | 1358 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
a8b2ad8d | 1359 | test -d "$ac_dir" || continue |
b3076f16 | 1360 | ac_builddir=. |
1361 | ||
a8b2ad8d | 1362 | case "$ac_dir" in |
1363 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1364 | *) | |
b3076f16 | 1365 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 1366 | # A ".." for each directory in $ac_dir_suffix. |
1367 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1368 | case $ac_top_builddir_sub in | |
1369 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1370 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1371 | esac ;; | |
1372 | esac | |
1373 | ac_abs_top_builddir=$ac_pwd | |
1374 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1375 | # for backward compatibility: | |
1376 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 1377 | |
1378 | case $srcdir in | |
a8b2ad8d | 1379 | .) # We are building in place. |
b3076f16 | 1380 | ac_srcdir=. |
a8b2ad8d | 1381 | ac_top_srcdir=$ac_top_builddir_sub |
1382 | ac_abs_top_srcdir=$ac_pwd ;; | |
1383 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 1384 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 1385 | ac_top_srcdir=$srcdir |
1386 | ac_abs_top_srcdir=$srcdir ;; | |
1387 | *) # Relative name. | |
1388 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1389 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1390 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 1391 | esac |
a8b2ad8d | 1392 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1393 | ||
1394 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1395 | # Check for guested configure. | |
1396 | if test -f "$ac_srcdir/configure.gnu"; then | |
1397 | echo && | |
1398 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1399 | elif test -f "$ac_srcdir/configure"; then | |
1400 | echo && | |
1401 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b3076f16 | 1402 | else |
1403 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
a8b2ad8d | 1404 | fi || ac_status=$? |
1405 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b3076f16 | 1406 | done |
1407 | fi | |
1408 | ||
a8b2ad8d | 1409 | test -n "$ac_init_help" && exit $ac_status |
b3076f16 | 1410 | if $ac_init_version; then |
1411 | cat <<\_ACEOF | |
0f6fe38c | 1412 | X3 configure 1.5 |
0bd0bef6 | 1413 | generated by GNU Autoconf 2.61 |
b3076f16 | 1414 | |
a8b2ad8d | 1415 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1416 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b3076f16 | 1417 | This configure script is free software; the Free Software Foundation |
1418 | gives unlimited permission to copy, distribute and modify it. | |
1419 | _ACEOF | |
a8b2ad8d | 1420 | exit |
b3076f16 | 1421 | fi |
a8b2ad8d | 1422 | cat >config.log <<_ACEOF |
b3076f16 | 1423 | This file contains any messages produced by compilers while |
1424 | running configure, to aid debugging if configure makes a mistake. | |
1425 | ||
0f6fe38c | 1426 | It was created by X3 $as_me 1.5, which was |
0bd0bef6 | 1427 | generated by GNU Autoconf 2.61. Invocation command line was |
b3076f16 | 1428 | |
1429 | $ $0 $@ | |
1430 | ||
1431 | _ACEOF | |
a8b2ad8d | 1432 | exec 5>>config.log |
b3076f16 | 1433 | { |
1434 | cat <<_ASUNAME | |
1435 | ## --------- ## | |
1436 | ## Platform. ## | |
1437 | ## --------- ## | |
1438 | ||
1439 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1440 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1441 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1442 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1443 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1444 | ||
1445 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1446 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1447 | ||
1448 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1449 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1450 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
a8b2ad8d | 1451 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b3076f16 | 1452 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1453 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1454 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1455 | ||
1456 | _ASUNAME | |
1457 | ||
1458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1459 | for as_dir in $PATH | |
1460 | do | |
1461 | IFS=$as_save_IFS | |
1462 | test -z "$as_dir" && as_dir=. | |
1463 | echo "PATH: $as_dir" | |
1464 | done | |
a8b2ad8d | 1465 | IFS=$as_save_IFS |
b3076f16 | 1466 | |
1467 | } >&5 | |
1468 | ||
1469 | cat >&5 <<_ACEOF | |
1470 | ||
1471 | ||
1472 | ## ----------- ## | |
1473 | ## Core tests. ## | |
1474 | ## ----------- ## | |
1475 | ||
1476 | _ACEOF | |
1477 | ||
1478 | ||
1479 | # Keep a trace of the command line. | |
1480 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1481 | # Strip out --silent because we don't want to record it for future runs. | |
1482 | # Also quote any args containing shell meta-characters. | |
1483 | # Make two passes to allow for proper duplicate-argument suppression. | |
1484 | ac_configure_args= | |
1485 | ac_configure_args0= | |
1486 | ac_configure_args1= | |
b3076f16 | 1487 | ac_must_keep_next=false |
1488 | for ac_pass in 1 2 | |
1489 | do | |
1490 | for ac_arg | |
1491 | do | |
1492 | case $ac_arg in | |
1493 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1494 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1495 | | -silent | --silent | --silen | --sile | --sil) | |
1496 | continue ;; | |
a8b2ad8d | 1497 | *\'*) |
b3076f16 | 1498 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1499 | esac | |
1500 | case $ac_pass in | |
1501 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1502 | 2) | |
1503 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1504 | if test $ac_must_keep_next = true; then | |
1505 | ac_must_keep_next=false # Got value, back to normal. | |
1506 | else | |
1507 | case $ac_arg in | |
1508 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1509 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1510 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1511 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1512 | case "$ac_configure_args0 " in | |
1513 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1514 | esac | |
1515 | ;; | |
1516 | -* ) ac_must_keep_next=true ;; | |
1517 | esac | |
1518 | fi | |
a8b2ad8d | 1519 | ac_configure_args="$ac_configure_args '$ac_arg'" |
b3076f16 | 1520 | ;; |
1521 | esac | |
1522 | done | |
1523 | done | |
1524 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1525 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1526 | ||
1527 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1528 | # config.log. We remove comments because anyway the quotes in there | |
1529 | # would cause problems or look ugly. | |
a8b2ad8d | 1530 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1531 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b3076f16 | 1532 | trap 'exit_status=$? |
1533 | # Save into config.log some information that might help in debugging. | |
1534 | { | |
1535 | echo | |
1536 | ||
1537 | cat <<\_ASBOX | |
1538 | ## ---------------- ## | |
1539 | ## Cache variables. ## | |
1540 | ## ---------------- ## | |
1541 | _ASBOX | |
1542 | echo | |
1543 | # The following way of writing the cache mishandles newlines in values, | |
a8b2ad8d | 1544 | ( |
1545 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1546 | eval ac_val=\$$ac_var | |
1547 | case $ac_val in #( | |
1548 | *${as_nl}*) | |
1549 | case $ac_var in #( | |
1550 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1551 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1552 | esac | |
1553 | case $ac_var in #( | |
1554 | _ | IFS | as_nl) ;; #( | |
1555 | *) $as_unset $ac_var ;; | |
1556 | esac ;; | |
1557 | esac | |
1558 | done | |
b3076f16 | 1559 | (set) 2>&1 | |
a8b2ad8d | 1560 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1561 | *${as_nl}ac_space=\ *) | |
b3076f16 | 1562 | sed -n \ |
a8b2ad8d | 1563 | "s/'\''/'\''\\\\'\'''\''/g; |
1564 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1565 | ;; #( | |
b3076f16 | 1566 | *) |
a8b2ad8d | 1567 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 1568 | ;; |
a8b2ad8d | 1569 | esac | |
1570 | sort | |
1571 | ) | |
b3076f16 | 1572 | echo |
1573 | ||
1574 | cat <<\_ASBOX | |
1575 | ## ----------------- ## | |
1576 | ## Output variables. ## | |
1577 | ## ----------------- ## | |
1578 | _ASBOX | |
1579 | echo | |
1580 | for ac_var in $ac_subst_vars | |
1581 | do | |
a8b2ad8d | 1582 | eval ac_val=\$$ac_var |
1583 | case $ac_val in | |
1584 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1585 | esac | |
1586 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1587 | done | sort |
1588 | echo | |
1589 | ||
1590 | if test -n "$ac_subst_files"; then | |
1591 | cat <<\_ASBOX | |
a8b2ad8d | 1592 | ## ------------------- ## |
1593 | ## File substitutions. ## | |
1594 | ## ------------------- ## | |
b3076f16 | 1595 | _ASBOX |
1596 | echo | |
1597 | for ac_var in $ac_subst_files | |
1598 | do | |
a8b2ad8d | 1599 | eval ac_val=\$$ac_var |
1600 | case $ac_val in | |
1601 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1602 | esac | |
1603 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1604 | done | sort |
1605 | echo | |
1606 | fi | |
1607 | ||
1608 | if test -s confdefs.h; then | |
1609 | cat <<\_ASBOX | |
1610 | ## ----------- ## | |
1611 | ## confdefs.h. ## | |
1612 | ## ----------- ## | |
1613 | _ASBOX | |
1614 | echo | |
a8b2ad8d | 1615 | cat confdefs.h |
b3076f16 | 1616 | echo |
1617 | fi | |
1618 | test "$ac_signal" != 0 && | |
1619 | echo "$as_me: caught signal $ac_signal" | |
1620 | echo "$as_me: exit $exit_status" | |
1621 | } >&5 | |
a8b2ad8d | 1622 | rm -f core *.core core.conftest.* && |
1623 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b3076f16 | 1624 | exit $exit_status |
a8b2ad8d | 1625 | ' 0 |
b3076f16 | 1626 | for ac_signal in 1 2 13 15; do |
1627 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1628 | done | |
1629 | ac_signal=0 | |
1630 | ||
1631 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
a8b2ad8d | 1632 | rm -f -r conftest* confdefs.h |
b3076f16 | 1633 | |
1634 | # Predefined preprocessor variables. | |
1635 | ||
1636 | cat >>confdefs.h <<_ACEOF | |
1637 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1638 | _ACEOF | |
1639 | ||
1640 | ||
1641 | cat >>confdefs.h <<_ACEOF | |
1642 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1643 | _ACEOF | |
1644 | ||
1645 | ||
1646 | cat >>confdefs.h <<_ACEOF | |
1647 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1648 | _ACEOF | |
1649 | ||
1650 | ||
1651 | cat >>confdefs.h <<_ACEOF | |
1652 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1653 | _ACEOF | |
1654 | ||
1655 | ||
1656 | cat >>confdefs.h <<_ACEOF | |
1657 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1658 | _ACEOF | |
1659 | ||
1660 | ||
1661 | # Let the site file select an alternate cache file if it wants to. | |
1662 | # Prefer explicitly selected file to automatically selected ones. | |
a8b2ad8d | 1663 | if test -n "$CONFIG_SITE"; then |
1664 | set x "$CONFIG_SITE" | |
1665 | elif test "x$prefix" != xNONE; then | |
1666 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1667 | else | |
1668 | set x "$ac_default_prefix/share/config.site" \ | |
1669 | "$ac_default_prefix/etc/config.site" | |
b3076f16 | 1670 | fi |
a8b2ad8d | 1671 | shift |
1672 | for ac_site_file | |
1673 | do | |
b3076f16 | 1674 | if test -r "$ac_site_file"; then |
1675 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1676 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1677 | sed 's/^/| /' "$ac_site_file" >&5 | |
1678 | . "$ac_site_file" | |
1679 | fi | |
1680 | done | |
1681 | ||
1682 | if test -r "$cache_file"; then | |
1683 | # Some versions of bash will fail to source /dev/null (special | |
1684 | # files actually), so we avoid doing that. | |
1685 | if test -f "$cache_file"; then | |
1686 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1687 | echo "$as_me: loading cache $cache_file" >&6;} | |
1688 | case $cache_file in | |
a8b2ad8d | 1689 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1690 | *) . "./$cache_file";; | |
b3076f16 | 1691 | esac |
1692 | fi | |
1693 | else | |
1694 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1695 | echo "$as_me: creating cache $cache_file" >&6;} | |
1696 | >$cache_file | |
1697 | fi | |
1698 | ||
1699 | # Check that the precious variables saved in the cache have kept the same | |
1700 | # value. | |
1701 | ac_cache_corrupted=false | |
a8b2ad8d | 1702 | for ac_var in $ac_precious_vars; do |
b3076f16 | 1703 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1704 | eval ac_new_set=\$ac_env_${ac_var}_set | |
a8b2ad8d | 1705 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1706 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b3076f16 | 1707 | case $ac_old_set,$ac_new_set in |
1708 | set,) | |
1709 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1710 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1711 | ac_cache_corrupted=: ;; | |
1712 | ,set) | |
1713 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1714 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1715 | ac_cache_corrupted=: ;; | |
1716 | ,);; | |
1717 | *) | |
1718 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1719 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1720 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1721 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1722 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1723 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1724 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1725 | ac_cache_corrupted=: | |
1726 | fi;; | |
1727 | esac | |
1728 | # Pass precious variables to config.status. | |
1729 | if test "$ac_new_set" = set; then | |
1730 | case $ac_new_val in | |
a8b2ad8d | 1731 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b3076f16 | 1732 | *) ac_arg=$ac_var=$ac_new_val ;; |
1733 | esac | |
1734 | case " $ac_configure_args " in | |
1735 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1736 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1737 | esac | |
1738 | fi | |
1739 | done | |
1740 | if $ac_cache_corrupted; then | |
1741 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1742 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1743 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1744 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1745 | { (exit 1); exit 1; }; } | |
1746 | fi | |
1747 | ||
b3076f16 | 1748 | |
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
a8b2ad8d | 1772 | ac_ext=c |
1773 | ac_cpp='$CPP $CPPFLAGS' | |
1774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3076f16 | 1777 | |
1778 | ||
ceafd592 | 1779 | CODENAME=X3 |
a8b2ad8d | 1780 | ac_config_headers="$ac_config_headers src/config.h" |
b3076f16 | 1781 | |
1782 | ||
1783 | ac_aux_dir= | |
a8b2ad8d | 1784 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1785 | if test -f "$ac_dir/install-sh"; then | |
b3076f16 | 1786 | ac_aux_dir=$ac_dir |
1787 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1788 | break | |
a8b2ad8d | 1789 | elif test -f "$ac_dir/install.sh"; then |
b3076f16 | 1790 | ac_aux_dir=$ac_dir |
1791 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1792 | break | |
a8b2ad8d | 1793 | elif test -f "$ac_dir/shtool"; then |
b3076f16 | 1794 | ac_aux_dir=$ac_dir |
1795 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1796 | break | |
1797 | fi | |
1798 | done | |
1799 | if test -z "$ac_aux_dir"; then | |
a8b2ad8d | 1800 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1801 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
b3076f16 | 1802 | { (exit 1); exit 1; }; } |
1803 | fi | |
a8b2ad8d | 1804 | |
1805 | # These three variables are undocumented and unsupported, | |
1806 | # and are intended to be withdrawn in a future Autoconf release. | |
1807 | # They can cause serious problems if a builder's source tree is in a directory | |
1808 | # whose full name contains unusual characters. | |
1809 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1810 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1811 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1812 | ||
b3076f16 | 1813 | |
1814 | # Make sure we can run config.sub. | |
a8b2ad8d | 1815 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1816 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1817 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
b3076f16 | 1818 | { (exit 1); exit 1; }; } |
1819 | ||
a8b2ad8d | 1820 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1821 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
b3076f16 | 1822 | if test "${ac_cv_build+set}" = set; then |
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1824 | else | |
a8b2ad8d | 1825 | ac_build_alias=$build_alias |
1826 | test "x$ac_build_alias" = x && | |
1827 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1828 | test "x$ac_build_alias" = x && | |
b3076f16 | 1829 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1830 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1831 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1832 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1833 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1834 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
b3076f16 | 1835 | { (exit 1); exit 1; }; } |
1836 | ||
1837 | fi | |
a8b2ad8d | 1838 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1839 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1840 | case $ac_cv_build in | |
1841 | *-*-*) ;; | |
1842 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1843 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1844 | { (exit 1); exit 1; }; };; | |
1845 | esac | |
b3076f16 | 1846 | build=$ac_cv_build |
a8b2ad8d | 1847 | ac_save_IFS=$IFS; IFS='-' |
1848 | set x $ac_cv_build | |
1849 | shift | |
1850 | build_cpu=$1 | |
1851 | build_vendor=$2 | |
1852 | shift; shift | |
1853 | # Remember, the first character of IFS is used to create $*, | |
1854 | # except with old shells: | |
1855 | build_os=$* | |
1856 | IFS=$ac_save_IFS | |
1857 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1858 | ||
1859 | ||
1860 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1861 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
b3076f16 | 1862 | if test "${ac_cv_host+set}" = set; then |
1863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1864 | else | |
a8b2ad8d | 1865 | if test "x$host_alias" = x; then |
1866 | ac_cv_host=$ac_cv_build | |
1867 | else | |
1868 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1869 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1870 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
b3076f16 | 1871 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1872 | fi |
b3076f16 | 1873 | |
1874 | fi | |
a8b2ad8d | 1875 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1876 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1877 | case $ac_cv_host in | |
1878 | *-*-*) ;; | |
1879 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1880 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1881 | { (exit 1); exit 1; }; };; | |
1882 | esac | |
b3076f16 | 1883 | host=$ac_cv_host |
a8b2ad8d | 1884 | ac_save_IFS=$IFS; IFS='-' |
1885 | set x $ac_cv_host | |
1886 | shift | |
1887 | host_cpu=$1 | |
1888 | host_vendor=$2 | |
1889 | shift; shift | |
1890 | # Remember, the first character of IFS is used to create $*, | |
1891 | # except with old shells: | |
1892 | host_os=$* | |
1893 | IFS=$ac_save_IFS | |
1894 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1895 | ||
1896 | ||
1897 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
1898 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
b3076f16 | 1899 | if test "${ac_cv_target+set}" = set; then |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1901 | else | |
a8b2ad8d | 1902 | if test "x$target_alias" = x; then |
1903 | ac_cv_target=$ac_cv_host | |
1904 | else | |
1905 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1906 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
1907 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
b3076f16 | 1908 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1909 | fi |
b3076f16 | 1910 | |
1911 | fi | |
a8b2ad8d | 1912 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1913 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
1914 | case $ac_cv_target in | |
1915 | *-*-*) ;; | |
1916 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
1917 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
1918 | { (exit 1); exit 1; }; };; | |
1919 | esac | |
b3076f16 | 1920 | target=$ac_cv_target |
a8b2ad8d | 1921 | ac_save_IFS=$IFS; IFS='-' |
1922 | set x $ac_cv_target | |
1923 | shift | |
1924 | target_cpu=$1 | |
1925 | target_vendor=$2 | |
1926 | shift; shift | |
1927 | # Remember, the first character of IFS is used to create $*, | |
1928 | # except with old shells: | |
1929 | target_os=$* | |
1930 | IFS=$ac_save_IFS | |
1931 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b3076f16 | 1932 | |
1933 | ||
1934 | # The aliases save the names the user supplied, while $host etc. | |
1935 | # will get canonicalized. | |
1936 | test -n "$target_alias" && | |
1937 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1938 | NONENONEs,x,x, && | |
1939 | program_prefix=${target_alias}- | |
0f6fe38c | 1940 | am__api_version="1.9" |
b3076f16 | 1941 | # Find a good install program. We prefer a C program (faster), |
1942 | # so one script is as good as another. But avoid the broken or | |
1943 | # incompatible versions: | |
1944 | # SysV /etc/install, /usr/sbin/install | |
1945 | # SunOS /usr/etc/install | |
1946 | # IRIX /sbin/install | |
1947 | # AIX /bin/install | |
1948 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1949 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1950 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1951 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1952 | # OS/2's system install, which has a completely different semantic | |
1953 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 1954 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1955 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 1956 | if test -z "$INSTALL"; then |
1957 | if test "${ac_cv_path_install+set}" = set; then | |
1958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1959 | else | |
1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1961 | for as_dir in $PATH | |
1962 | do | |
1963 | IFS=$as_save_IFS | |
1964 | test -z "$as_dir" && as_dir=. | |
1965 | # Account for people who put trailing slashes in PATH elements. | |
1966 | case $as_dir/ in | |
1967 | ./ | .// | /cC/* | \ | |
1968 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1969 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1970 | /usr/ucb/* ) ;; | |
1971 | *) | |
1972 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1973 | # Don't use installbsd from OSF since it installs stuff as root | |
1974 | # by default. | |
1975 | for ac_prog in ginstall scoinst install; do | |
1976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 1977 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 1978 | if test $ac_prog = install && |
1979 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1980 | # AIX install. It has an incompatible calling convention. | |
1981 | : | |
1982 | elif test $ac_prog = install && | |
1983 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1984 | # program-specific install script used by HP pwplus--don't use. | |
1985 | : | |
1986 | else | |
1987 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1988 | break 3 | |
1989 | fi | |
1990 | fi | |
1991 | done | |
1992 | done | |
1993 | ;; | |
1994 | esac | |
1995 | done | |
a8b2ad8d | 1996 | IFS=$as_save_IFS |
b3076f16 | 1997 | |
1998 | ||
1999 | fi | |
2000 | if test "${ac_cv_path_install+set}" = set; then | |
2001 | INSTALL=$ac_cv_path_install | |
2002 | else | |
a8b2ad8d | 2003 | # As a last resort, use the slow shell script. Don't cache a |
2004 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 2005 | # break other packages using the cache if that directory is |
a8b2ad8d | 2006 | # removed, or if the value is a relative name. |
b3076f16 | 2007 | INSTALL=$ac_install_sh |
2008 | fi | |
2009 | fi | |
a8b2ad8d | 2010 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2011 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 2012 | |
2013 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2014 | # It thinks the first close brace ends the variable substitution. | |
2015 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2016 | ||
2017 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2018 | ||
2019 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2020 | ||
a8b2ad8d | 2021 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2022 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
b3076f16 | 2023 | # Just in case |
2024 | sleep 1 | |
ec1a68c8 | 2025 | echo timestamp > conftest.file |
b3076f16 | 2026 | # Do `set' in a subshell so we don't clobber the current shell's |
2027 | # arguments. Must try -L first in case configure is actually a | |
2028 | # symlink; some systems play weird games with the mod time of symlinks | |
2029 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2030 | # directory). | |
2031 | if ( | |
ec1a68c8 | 2032 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
b3076f16 | 2033 | if test "$*" = "X"; then |
2034 | # -L didn't work. | |
ec1a68c8 | 2035 | set X `ls -t $srcdir/configure conftest.file` |
b3076f16 | 2036 | fi |
ec1a68c8 | 2037 | rm -f conftest.file |
2038 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2039 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b3076f16 | 2040 | |
2041 | # If neither matched, then we have a broken ls. This can happen | |
2042 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2043 | # broken ls alias from the environment. This has actually | |
2044 | # happened. Such a system could not be considered "sane". | |
2045 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2046 | alias in your environment" >&5 | |
2047 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2048 | alias in your environment" >&2;} | |
2049 | { (exit 1); exit 1; }; } | |
2050 | fi | |
2051 | ||
ec1a68c8 | 2052 | test "$2" = conftest.file |
b3076f16 | 2053 | ) |
2054 | then | |
2055 | # Ok. | |
2056 | : | |
2057 | else | |
2058 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2059 | Check your system clock" >&5 | |
2060 | echo "$as_me: error: newly created file is older than distributed files! | |
2061 | Check your system clock" >&2;} | |
2062 | { (exit 1); exit 1; }; } | |
2063 | fi | |
a8b2ad8d | 2064 | { echo "$as_me:$LINENO: result: yes" >&5 |
2065 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2066 | test "$program_prefix" != NONE && |
a8b2ad8d | 2067 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
b3076f16 | 2068 | # Use a double $ so make ignores it. |
2069 | test "$program_suffix" != NONE && | |
a8b2ad8d | 2070 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
b3076f16 | 2071 | # Double any \ or $. echo might interpret backslashes. |
2072 | # By default was `s,x,x', remove it if useless. | |
2073 | cat <<\_ACEOF >conftest.sed | |
2074 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2075 | _ACEOF | |
2076 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
a8b2ad8d | 2077 | rm -f conftest.sed |
b3076f16 | 2078 | |
ec1a68c8 | 2079 | # expand $ac_aux_dir to an absolute path |
2080 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2081 | ||
2082 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2083 | # Use eval to expand $SHELL | |
2084 | if eval "$MISSING --run true"; then | |
2085 | am_missing_run="$MISSING --run " | |
2086 | else | |
2087 | am_missing_run= | |
2088 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2089 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2090 | fi | |
2091 | ||
0f6fe38c | 2092 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
2093 | # We used to keeping the `.' as first argument, in order to | |
2094 | # allow $(mkdir_p) to be used without argument. As in | |
2095 | # $(mkdir_p) $(somedir) | |
2096 | # where $(somedir) is conditionally defined. However this is wrong | |
2097 | # for two reasons: | |
2098 | # 1. if the package is installed by a user who cannot write `.' | |
2099 | # make install will fail, | |
2100 | # 2. the above comment should most certainly read | |
2101 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2102 | # so it does not work when $(somedir) is undefined and | |
2103 | # $(DESTDIR) is not. | |
2104 | # To support the latter case, we have to write | |
2105 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2106 | # so the `.' trick is pointless. | |
2107 | mkdir_p='mkdir -p --' | |
2108 | else | |
2109 | # On NextStep and OpenStep, the `mkdir' command does not | |
2110 | # recognize any option. It will interpret all options as | |
2111 | # directories to create, and then abort because `.' already | |
2112 | # exists. | |
2113 | for d in ./-p ./--version; | |
2114 | do | |
2115 | test -d $d && rmdir $d | |
2116 | done | |
2117 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2118 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2119 | mkdir_p='$(mkinstalldirs)' | |
ec1a68c8 | 2120 | else |
0f6fe38c | 2121 | mkdir_p='$(install_sh) -d' |
ec1a68c8 | 2122 | fi |
2123 | fi | |
2124 | ||
2125 | for ac_prog in gawk mawk nawk awk | |
2126 | do | |
2127 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2128 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2131 | if test "${ac_cv_prog_AWK+set}" = set; then |
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2133 | else | |
2134 | if test -n "$AWK"; then | |
2135 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2136 | else | |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2138 | for as_dir in $PATH | |
2139 | do | |
2140 | IFS=$as_save_IFS | |
2141 | test -z "$as_dir" && as_dir=. | |
2142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2144 | ac_cv_prog_AWK="$ac_prog" |
2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2146 | break 2 | |
2147 | fi | |
2148 | done | |
2149 | done | |
a8b2ad8d | 2150 | IFS=$as_save_IFS |
ec1a68c8 | 2151 | |
2152 | fi | |
2153 | fi | |
2154 | AWK=$ac_cv_prog_AWK | |
2155 | if test -n "$AWK"; then | |
a8b2ad8d | 2156 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2157 | echo "${ECHO_T}$AWK" >&6; } | |
ec1a68c8 | 2158 | else |
a8b2ad8d | 2159 | { echo "$as_me:$LINENO: result: no" >&5 |
2160 | echo "${ECHO_T}no" >&6; } | |
ec1a68c8 | 2161 | fi |
2162 | ||
a8b2ad8d | 2163 | |
ec1a68c8 | 2164 | test -n "$AWK" && break |
2165 | done | |
2166 | ||
a8b2ad8d | 2167 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2168 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2169 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2170 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2172 | else | |
2173 | cat >conftest.make <<\_ACEOF | |
a8b2ad8d | 2174 | SHELL = /bin/sh |
b3076f16 | 2175 | all: |
a8b2ad8d | 2176 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b3076f16 | 2177 | _ACEOF |
2178 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
a8b2ad8d | 2179 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2180 | *@@@%%%=?*=@@@%%%*) | |
2181 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2182 | *) | |
2183 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2184 | esac | |
b3076f16 | 2185 | rm -f conftest.make |
2186 | fi | |
a8b2ad8d | 2187 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2188 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2189 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2190 | SET_MAKE= |
2191 | else | |
a8b2ad8d | 2192 | { echo "$as_me:$LINENO: result: no" >&5 |
2193 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2194 | SET_MAKE="MAKE=${MAKE-make}" |
2195 | fi | |
2196 | ||
ec1a68c8 | 2197 | rm -rf .tst 2>/dev/null |
2198 | mkdir .tst 2>/dev/null | |
2199 | if test -d .tst; then | |
2200 | am__leading_dot=. | |
2201 | else | |
2202 | am__leading_dot=_ | |
2203 | fi | |
2204 | rmdir .tst 2>/dev/null | |
b3076f16 | 2205 | |
0f6fe38c | 2206 | # test to see if srcdir already configured |
2207 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2208 | test -f $srcdir/config.status; then | |
2209 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
b3076f16 | 2210 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2211 | { (exit 1); exit 1; }; } | |
2212 | fi | |
2213 | ||
ec1a68c8 | 2214 | # test whether we have cygpath |
2215 | if test -z "$CYGPATH_W"; then | |
2216 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2217 | CYGPATH_W='cygpath -w' | |
2218 | else | |
2219 | CYGPATH_W=echo | |
2220 | fi | |
2221 | fi | |
2222 | ||
2223 | ||
2224 | # Define the identity of the package. | |
ceafd592 | 2225 | PACKAGE='x3' |
0f6fe38c | 2226 | VERSION='1.5' |
ec1a68c8 | 2227 | |
2228 | ||
b3076f16 | 2229 | cat >>confdefs.h <<_ACEOF |
2230 | #define PACKAGE "$PACKAGE" | |
2231 | _ACEOF | |
2232 | ||
2233 | ||
2234 | cat >>confdefs.h <<_ACEOF | |
2235 | #define VERSION "$VERSION" | |
2236 | _ACEOF | |
2237 | ||
ec1a68c8 | 2238 | # Some tools Automake needs. |
b3076f16 | 2239 | |
ec1a68c8 | 2240 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
b3076f16 | 2241 | |
ec1a68c8 | 2242 | |
2243 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2244 | ||
2245 | ||
2246 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2247 | ||
2248 | ||
2249 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2250 | ||
2251 | ||
2252 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2253 | ||
0f6fe38c | 2254 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
ec1a68c8 | 2255 | |
2256 | # Installed binaries are usually stripped using `strip' when the user | |
2257 | # run `make install-strip'. However `strip' might not be the right | |
2258 | # tool to use in cross-compilation environments, therefore Automake | |
2259 | # will honor the `STRIP' environment variable to overrule this program. | |
2260 | if test "$cross_compiling" != no; then | |
2261 | if test -n "$ac_tool_prefix"; then | |
2262 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2263 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a8b2ad8d | 2264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2266 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 2268 | else |
ec1a68c8 | 2269 | if test -n "$STRIP"; then |
2270 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2271 | else | |
2272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2273 | for as_dir in $PATH | |
2274 | do | |
2275 | IFS=$as_save_IFS | |
2276 | test -z "$as_dir" && as_dir=. | |
2277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2279 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2281 | break 2 | |
2282 | fi | |
2283 | done | |
2284 | done | |
a8b2ad8d | 2285 | IFS=$as_save_IFS |
b3076f16 | 2286 | |
ec1a68c8 | 2287 | fi |
2288 | fi | |
2289 | STRIP=$ac_cv_prog_STRIP | |
2290 | if test -n "$STRIP"; then | |
a8b2ad8d | 2291 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2292 | echo "${ECHO_T}$STRIP" >&6; } | |
b3076f16 | 2293 | else |
a8b2ad8d | 2294 | { echo "$as_me:$LINENO: result: no" >&5 |
2295 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2296 | fi |
b2cf3d66 | 2297 | |
a8b2ad8d | 2298 | |
b3076f16 | 2299 | fi |
ec1a68c8 | 2300 | if test -z "$ac_cv_prog_STRIP"; then |
2301 | ac_ct_STRIP=$STRIP | |
2302 | # Extract the first word of "strip", so it can be a program name with args. | |
2303 | set dummy strip; ac_word=$2 | |
a8b2ad8d | 2304 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2306 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2308 | else | |
2309 | if test -n "$ac_ct_STRIP"; then | |
2310 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2311 | else | |
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2313 | for as_dir in $PATH | |
2314 | do | |
2315 | IFS=$as_save_IFS | |
2316 | test -z "$as_dir" && as_dir=. | |
2317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2319 | ac_cv_prog_ac_ct_STRIP="strip" |
2320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2321 | break 2 | |
2322 | fi | |
2323 | done | |
2324 | done | |
a8b2ad8d | 2325 | IFS=$as_save_IFS |
b3076f16 | 2326 | |
ec1a68c8 | 2327 | fi |
2328 | fi | |
2329 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2330 | if test -n "$ac_ct_STRIP"; then | |
a8b2ad8d | 2331 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2332 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
b3076f16 | 2333 | else |
a8b2ad8d | 2334 | { echo "$as_me:$LINENO: result: no" >&5 |
2335 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2336 | fi |
2337 | ||
a8b2ad8d | 2338 | if test "x$ac_ct_STRIP" = x; then |
2339 | STRIP=":" | |
2340 | else | |
2341 | case $cross_compiling:$ac_tool_warned in | |
2342 | yes:) | |
2343 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2344 | whose name does not start with the host triplet. If you think this | |
2345 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2346 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2347 | whose name does not start with the host triplet. If you think this | |
2348 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2349 | ac_tool_warned=yes ;; | |
2350 | esac | |
2351 | STRIP=$ac_ct_STRIP | |
2352 | fi | |
b2cf3d66 | 2353 | else |
ec1a68c8 | 2354 | STRIP="$ac_cv_prog_STRIP" |
b3076f16 | 2355 | fi |
b3076f16 | 2356 | |
ec1a68c8 | 2357 | fi |
0f6fe38c | 2358 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
ec1a68c8 | 2359 | |
2360 | # We need awk for the "check" target. The system "awk" is bad on | |
2361 | # some platforms. | |
2362 | # Always define AMTAR for backward compatibility. | |
2363 | ||
2364 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2365 | ||
2366 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2367 | ||
2368 | ||
2369 | ||
2370 | ||
b3076f16 | 2371 | |
a8b2ad8d | 2372 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2373 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2374 | # Check whether --enable-maintainer-mode was given. | |
b3076f16 | 2375 | if test "${enable_maintainer_mode+set}" = set; then |
a8b2ad8d | 2376 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
b3076f16 | 2377 | else |
2378 | USE_MAINTAINER_MODE=no | |
a8b2ad8d | 2379 | fi |
2380 | ||
2381 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2382 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
0f6fe38c | 2383 | |
2384 | ||
2385 | if test $USE_MAINTAINER_MODE = yes; then | |
b3076f16 | 2386 | MAINTAINER_MODE_TRUE= |
2387 | MAINTAINER_MODE_FALSE='#' | |
2388 | else | |
2389 | MAINTAINER_MODE_TRUE='#' | |
2390 | MAINTAINER_MODE_FALSE= | |
2391 | fi | |
ec1a68c8 | 2392 | |
b3076f16 | 2393 | MAINT=$MAINTAINER_MODE_TRUE |
2394 | ||
2395 | ||
2396 | ||
ec1a68c8 | 2397 | DEPDIR="${am__leading_dot}deps" |
2398 | ||
a8b2ad8d | 2399 | ac_config_commands="$ac_config_commands depfiles" |
ec1a68c8 | 2400 | |
2401 | ||
2402 | am_make=${MAKE-make} | |
2403 | cat > confinc << 'END' | |
2404 | am__doit: | |
2405 | @echo done | |
2406 | .PHONY: am__doit | |
2407 | END | |
2408 | # If we don't find an include directive, just comment out the code. | |
a8b2ad8d | 2409 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2410 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
ec1a68c8 | 2411 | am__include="#" |
2412 | am__quote= | |
2413 | _am_result=none | |
2414 | # First try GNU make style include. | |
2415 | echo "include confinc" > confmf | |
2416 | # We grep out `Entering directory' and `Leaving directory' | |
2417 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2418 | # In particular we don't look at `^make:' because GNU make might | |
2419 | # be invoked under some other name (usually "gmake"), in which | |
2420 | # case it prints its new name instead of `make'. | |
2421 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2422 | am__include=include | |
2423 | am__quote= | |
2424 | _am_result=GNU | |
2425 | fi | |
2426 | # Now try BSD make style include. | |
2427 | if test "$am__include" = "#"; then | |
2428 | echo '.include "confinc"' > confmf | |
2429 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2430 | am__include=.include | |
2431 | am__quote="\"" | |
2432 | _am_result=BSD | |
2433 | fi | |
2434 | fi | |
2435 | ||
2436 | ||
a8b2ad8d | 2437 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
2438 | echo "${ECHO_T}$_am_result" >&6; } | |
ec1a68c8 | 2439 | rm -f confinc confmf |
2440 | ||
a8b2ad8d | 2441 | # Check whether --enable-dependency-tracking was given. |
ec1a68c8 | 2442 | if test "${enable_dependency_tracking+set}" = set; then |
a8b2ad8d | 2443 | enableval=$enable_dependency_tracking; |
2444 | fi | |
ec1a68c8 | 2445 | |
ec1a68c8 | 2446 | if test "x$enable_dependency_tracking" != xno; then |
2447 | am_depcomp="$ac_aux_dir/depcomp" | |
2448 | AMDEPBACKSLASH='\' | |
2449 | fi | |
0f6fe38c | 2450 | |
2451 | ||
2452 | if test "x$enable_dependency_tracking" != xno; then | |
ec1a68c8 | 2453 | AMDEP_TRUE= |
2454 | AMDEP_FALSE='#' | |
2455 | else | |
2456 | AMDEP_TRUE='#' | |
2457 | AMDEP_FALSE= | |
2458 | fi | |
2459 | ||
2460 | ||
0f6fe38c | 2461 | |
b3076f16 | 2462 | ac_ext=c |
2463 | ac_cpp='$CPP $CPPFLAGS' | |
2464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2467 | if test -n "$ac_tool_prefix"; then | |
2468 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2469 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 2470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2472 | if test "${ac_cv_prog_CC+set}" = set; then |
2473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2474 | else | |
2475 | if test -n "$CC"; then | |
2476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2477 | else | |
2478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2479 | for as_dir in $PATH | |
2480 | do | |
2481 | IFS=$as_save_IFS | |
2482 | test -z "$as_dir" && as_dir=. | |
2483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2485 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2487 | break 2 | |
2488 | fi | |
2489 | done | |
2490 | done | |
a8b2ad8d | 2491 | IFS=$as_save_IFS |
b3076f16 | 2492 | |
2493 | fi | |
2494 | fi | |
2495 | CC=$ac_cv_prog_CC | |
2496 | if test -n "$CC"; then | |
a8b2ad8d | 2497 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2498 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2499 | else |
a8b2ad8d | 2500 | { echo "$as_me:$LINENO: result: no" >&5 |
2501 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2502 | fi |
2503 | ||
a8b2ad8d | 2504 | |
b3076f16 | 2505 | fi |
2506 | if test -z "$ac_cv_prog_CC"; then | |
2507 | ac_ct_CC=$CC | |
2508 | # Extract the first word of "gcc", so it can be a program name with args. | |
2509 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 2510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2514 | else | |
2515 | if test -n "$ac_ct_CC"; then | |
2516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2517 | else | |
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2519 | for as_dir in $PATH | |
2520 | do | |
2521 | IFS=$as_save_IFS | |
2522 | test -z "$as_dir" && as_dir=. | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2525 | ac_cv_prog_ac_ct_CC="gcc" |
2526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2527 | break 2 | |
2528 | fi | |
2529 | done | |
2530 | done | |
a8b2ad8d | 2531 | IFS=$as_save_IFS |
b3076f16 | 2532 | |
2533 | fi | |
2534 | fi | |
2535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2536 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2537 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2538 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2539 | else |
a8b2ad8d | 2540 | { echo "$as_me:$LINENO: result: no" >&5 |
2541 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2542 | fi |
2543 | ||
a8b2ad8d | 2544 | if test "x$ac_ct_CC" = x; then |
2545 | CC="" | |
2546 | else | |
2547 | case $cross_compiling:$ac_tool_warned in | |
2548 | yes:) | |
2549 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2550 | whose name does not start with the host triplet. If you think this | |
2551 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2552 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2553 | whose name does not start with the host triplet. If you think this | |
2554 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2555 | ac_tool_warned=yes ;; | |
2556 | esac | |
2557 | CC=$ac_ct_CC | |
2558 | fi | |
b3076f16 | 2559 | else |
2560 | CC="$ac_cv_prog_CC" | |
2561 | fi | |
2562 | ||
2563 | if test -z "$CC"; then | |
a8b2ad8d | 2564 | if test -n "$ac_tool_prefix"; then |
2565 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 2566 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 2567 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2569 | if test "${ac_cv_prog_CC+set}" = set; then |
2570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2571 | else | |
2572 | if test -n "$CC"; then | |
2573 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2574 | else | |
2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2576 | for as_dir in $PATH | |
2577 | do | |
2578 | IFS=$as_save_IFS | |
2579 | test -z "$as_dir" && as_dir=. | |
2580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2582 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2584 | break 2 | |
2585 | fi | |
2586 | done | |
2587 | done | |
a8b2ad8d | 2588 | IFS=$as_save_IFS |
b3076f16 | 2589 | |
2590 | fi | |
2591 | fi | |
2592 | CC=$ac_cv_prog_CC | |
2593 | if test -n "$CC"; then | |
a8b2ad8d | 2594 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2595 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2596 | else |
a8b2ad8d | 2597 | { echo "$as_me:$LINENO: result: no" >&5 |
2598 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2599 | fi |
2600 | ||
b3076f16 | 2601 | |
a8b2ad8d | 2602 | fi |
b3076f16 | 2603 | fi |
2604 | if test -z "$CC"; then | |
2605 | # Extract the first word of "cc", so it can be a program name with args. | |
2606 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 2607 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2609 | if test "${ac_cv_prog_CC+set}" = set; then |
2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2611 | else | |
2612 | if test -n "$CC"; then | |
2613 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2614 | else | |
2615 | ac_prog_rejected=no | |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2617 | for as_dir in $PATH | |
2618 | do | |
2619 | IFS=$as_save_IFS | |
2620 | test -z "$as_dir" && as_dir=. | |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2623 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2624 | ac_prog_rejected=yes | |
2625 | continue | |
2626 | fi | |
2627 | ac_cv_prog_CC="cc" | |
2628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2629 | break 2 | |
2630 | fi | |
2631 | done | |
2632 | done | |
a8b2ad8d | 2633 | IFS=$as_save_IFS |
b3076f16 | 2634 | |
2635 | if test $ac_prog_rejected = yes; then | |
2636 | # We found a bogon in the path, so make sure we never use it. | |
2637 | set dummy $ac_cv_prog_CC | |
2638 | shift | |
2639 | if test $# != 0; then | |
2640 | # We chose a different compiler from the bogus one. | |
2641 | # However, it has the same basename, so the bogon will be chosen | |
2642 | # first if we set CC to just the basename; use the full file name. | |
2643 | shift | |
2644 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2645 | fi | |
2646 | fi | |
2647 | fi | |
2648 | fi | |
2649 | CC=$ac_cv_prog_CC | |
2650 | if test -n "$CC"; then | |
a8b2ad8d | 2651 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2652 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2653 | else |
a8b2ad8d | 2654 | { echo "$as_me:$LINENO: result: no" >&5 |
2655 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2656 | fi |
2657 | ||
a8b2ad8d | 2658 | |
b3076f16 | 2659 | fi |
2660 | if test -z "$CC"; then | |
2661 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 2662 | for ac_prog in cl.exe |
b3076f16 | 2663 | do |
2664 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2665 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 2666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2668 | if test "${ac_cv_prog_CC+set}" = set; then |
2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2670 | else | |
2671 | if test -n "$CC"; then | |
2672 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2673 | else | |
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2675 | for as_dir in $PATH | |
2676 | do | |
2677 | IFS=$as_save_IFS | |
2678 | test -z "$as_dir" && as_dir=. | |
2679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2681 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2683 | break 2 | |
2684 | fi | |
2685 | done | |
2686 | done | |
a8b2ad8d | 2687 | IFS=$as_save_IFS |
b3076f16 | 2688 | |
2689 | fi | |
2690 | fi | |
2691 | CC=$ac_cv_prog_CC | |
2692 | if test -n "$CC"; then | |
a8b2ad8d | 2693 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2694 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2695 | else |
a8b2ad8d | 2696 | { echo "$as_me:$LINENO: result: no" >&5 |
2697 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2698 | fi |
2699 | ||
a8b2ad8d | 2700 | |
b3076f16 | 2701 | test -n "$CC" && break |
2702 | done | |
2703 | fi | |
2704 | if test -z "$CC"; then | |
2705 | ac_ct_CC=$CC | |
a8b2ad8d | 2706 | for ac_prog in cl.exe |
b3076f16 | 2707 | do |
2708 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2709 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 2710 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2712 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2714 | else | |
2715 | if test -n "$ac_ct_CC"; then | |
2716 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2717 | else | |
2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2719 | for as_dir in $PATH | |
2720 | do | |
2721 | IFS=$as_save_IFS | |
2722 | test -z "$as_dir" && as_dir=. | |
2723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 2724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2725 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2727 | break 2 | |
2728 | fi | |
2729 | done | |
2730 | done | |
a8b2ad8d | 2731 | IFS=$as_save_IFS |
b3076f16 | 2732 | |
2733 | fi | |
2734 | fi | |
2735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2736 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2737 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2738 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2739 | else |
a8b2ad8d | 2740 | { echo "$as_me:$LINENO: result: no" >&5 |
2741 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2742 | fi |
2743 | ||
a8b2ad8d | 2744 | |
b3076f16 | 2745 | test -n "$ac_ct_CC" && break |
2746 | done | |
2747 | ||
a8b2ad8d | 2748 | if test "x$ac_ct_CC" = x; then |
2749 | CC="" | |
2750 | else | |
2751 | case $cross_compiling:$ac_tool_warned in | |
2752 | yes:) | |
2753 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2754 | whose name does not start with the host triplet. If you think this | |
2755 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2756 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2757 | whose name does not start with the host triplet. If you think this | |
2758 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2759 | ac_tool_warned=yes ;; | |
2760 | esac | |
2761 | CC=$ac_ct_CC | |
2762 | fi | |
b3076f16 | 2763 | fi |
2764 | ||
2765 | fi | |
2766 | ||
2767 | ||
2768 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2769 | See \`config.log' for more details." >&5 | |
2770 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2771 | See \`config.log' for more details." >&2;} | |
2772 | { (exit 1); exit 1; }; } | |
2773 | ||
2774 | # Provide some information about the compiler. | |
a8b2ad8d | 2775 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 2776 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 2777 | { (ac_try="$ac_compiler --version >&5" |
2778 | case "(($ac_try" in | |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2780 | *) ac_try_echo=$ac_try;; | |
2781 | esac | |
2782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2783 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 2784 | ac_status=$? |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 | (exit $ac_status); } | |
a8b2ad8d | 2787 | { (ac_try="$ac_compiler -v >&5" |
2788 | case "(($ac_try" in | |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2790 | *) ac_try_echo=$ac_try;; | |
2791 | esac | |
2792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2793 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 2794 | ac_status=$? |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2796 | (exit $ac_status); } | |
a8b2ad8d | 2797 | { (ac_try="$ac_compiler -V >&5" |
2798 | case "(($ac_try" in | |
2799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2800 | *) ac_try_echo=$ac_try;; | |
2801 | esac | |
2802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2803 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 2804 | ac_status=$? |
2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2806 | (exit $ac_status); } | |
2807 | ||
2808 | cat >conftest.$ac_ext <<_ACEOF | |
2809 | /* confdefs.h. */ | |
2810 | _ACEOF | |
2811 | cat confdefs.h >>conftest.$ac_ext | |
2812 | cat >>conftest.$ac_ext <<_ACEOF | |
2813 | /* end confdefs.h. */ | |
2814 | ||
2815 | int | |
2816 | main () | |
2817 | { | |
2818 | ||
2819 | ; | |
2820 | return 0; | |
2821 | } | |
2822 | _ACEOF | |
2823 | ac_clean_files_save=$ac_clean_files | |
2824 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2825 | # Try to create an executable without -o first, disregard a.out. | |
2826 | # It will help us diagnose broken compilers, and finding out an intuition | |
2827 | # of exeext. | |
a8b2ad8d | 2828 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2829 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
b3076f16 | 2830 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a8b2ad8d | 2831 | # |
2832 | # List of possible output files, starting from the most likely. | |
2833 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2834 | # only as a last resort. b.out is created by i960 compilers. | |
2835 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2836 | # | |
2837 | # The IRIX 6 linker writes into existing files which may not be | |
2838 | # executable, retaining their permissions. Remove them first so a | |
2839 | # subsequent execution test works. | |
2840 | ac_rmfiles= | |
2841 | for ac_file in $ac_files | |
2842 | do | |
2843 | case $ac_file in | |
2844 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2845 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2846 | esac | |
2847 | done | |
2848 | rm -f $ac_rmfiles | |
2849 | ||
2850 | if { (ac_try="$ac_link_default" | |
2851 | case "(($ac_try" in | |
2852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2853 | *) ac_try_echo=$ac_try;; | |
2854 | esac | |
2855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2856 | (eval "$ac_link_default") 2>&5 | |
b3076f16 | 2857 | ac_status=$? |
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2859 | (exit $ac_status); }; then | |
a8b2ad8d | 2860 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2861 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2862 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2863 | # so that the user can short-circuit this test for compilers unknown to | |
2864 | # Autoconf. | |
0bd0bef6 | 2865 | for ac_file in $ac_files '' |
b3076f16 | 2866 | do |
2867 | test -f "$ac_file" || continue | |
2868 | case $ac_file in | |
a8b2ad8d | 2869 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
b3076f16 | 2870 | ;; |
2871 | [ab].out ) | |
2872 | # We found the default executable, but exeext='' is most | |
2873 | # certainly right. | |
2874 | break;; | |
2875 | *.* ) | |
a8b2ad8d | 2876 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2877 | then :; else | |
2878 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2879 | fi | |
2880 | # We set ac_cv_exeext here because the later test for it is not | |
2881 | # safe: cross compilers may not add the suffix if given an `-o' | |
2882 | # argument, so we may need to know it at that point already. | |
2883 | # Even if this section looks crufty: it has the advantage of | |
2884 | # actually working. | |
b3076f16 | 2885 | break;; |
2886 | * ) | |
2887 | break;; | |
2888 | esac | |
2889 | done | |
a8b2ad8d | 2890 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2891 | ||
b3076f16 | 2892 | else |
0bd0bef6 | 2893 | ac_file='' |
2894 | fi | |
2895 | ||
2896 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2897 | echo "${ECHO_T}$ac_file" >&6; } | |
2898 | if test -z "$ac_file"; then | |
b3076f16 | 2899 | echo "$as_me: failed program was:" >&5 |
2900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2901 | ||
2902 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2903 | See \`config.log' for more details." >&5 | |
2904 | echo "$as_me: error: C compiler cannot create executables | |
2905 | See \`config.log' for more details." >&2;} | |
2906 | { (exit 77); exit 77; }; } | |
2907 | fi | |
2908 | ||
2909 | ac_exeext=$ac_cv_exeext | |
b3076f16 | 2910 | |
a8b2ad8d | 2911 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2912 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2913 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2914 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
b3076f16 | 2915 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2916 | # If not cross compiling, check that we can run a simple program. | |
2917 | if test "$cross_compiling" != yes; then | |
2918 | if { ac_try='./$ac_file' | |
a8b2ad8d | 2919 | { (case "(($ac_try" in |
2920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2921 | *) ac_try_echo=$ac_try;; | |
2922 | esac | |
2923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2924 | (eval "$ac_try") 2>&5 | |
b3076f16 | 2925 | ac_status=$? |
2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2927 | (exit $ac_status); }; }; then | |
2928 | cross_compiling=no | |
2929 | else | |
2930 | if test "$cross_compiling" = maybe; then | |
2931 | cross_compiling=yes | |
2932 | else | |
2933 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2934 | If you meant to cross compile, use \`--host'. | |
2935 | See \`config.log' for more details." >&5 | |
2936 | echo "$as_me: error: cannot run C compiled programs. | |
2937 | If you meant to cross compile, use \`--host'. | |
2938 | See \`config.log' for more details." >&2;} | |
2939 | { (exit 1); exit 1; }; } | |
2940 | fi | |
2941 | fi | |
2942 | fi | |
a8b2ad8d | 2943 | { echo "$as_me:$LINENO: result: yes" >&5 |
2944 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2945 | |
2946 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2947 | ac_clean_files=$ac_clean_files_save | |
a8b2ad8d | 2948 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2949 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2950 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2951 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2952 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2953 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2954 | ||
2955 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2956 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2957 | if { (ac_try="$ac_link" | |
2958 | case "(($ac_try" in | |
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2960 | *) ac_try_echo=$ac_try;; | |
2961 | esac | |
2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2963 | (eval "$ac_link") 2>&5 | |
b3076f16 | 2964 | ac_status=$? |
2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2966 | (exit $ac_status); }; then | |
2967 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2968 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2969 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2970 | # `rm'. | |
2971 | for ac_file in conftest.exe conftest conftest.*; do | |
2972 | test -f "$ac_file" || continue | |
2973 | case $ac_file in | |
a8b2ad8d | 2974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
b3076f16 | 2975 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b3076f16 | 2976 | break;; |
2977 | * ) break;; | |
2978 | esac | |
2979 | done | |
2980 | else | |
2981 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2982 | See \`config.log' for more details." >&5 | |
2983 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2984 | See \`config.log' for more details." >&2;} | |
2985 | { (exit 1); exit 1; }; } | |
2986 | fi | |
2987 | ||
2988 | rm -f conftest$ac_cv_exeext | |
a8b2ad8d | 2989 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2990 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
b3076f16 | 2991 | |
2992 | rm -f conftest.$ac_ext | |
2993 | EXEEXT=$ac_cv_exeext | |
2994 | ac_exeext=$EXEEXT | |
a8b2ad8d | 2995 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2996 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
b3076f16 | 2997 | if test "${ac_cv_objext+set}" = set; then |
2998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2999 | else | |
3000 | cat >conftest.$ac_ext <<_ACEOF | |
3001 | /* confdefs.h. */ | |
3002 | _ACEOF | |
3003 | cat confdefs.h >>conftest.$ac_ext | |
3004 | cat >>conftest.$ac_ext <<_ACEOF | |
3005 | /* end confdefs.h. */ | |
3006 | ||
3007 | int | |
3008 | main () | |
3009 | { | |
3010 | ||
3011 | ; | |
3012 | return 0; | |
3013 | } | |
3014 | _ACEOF | |
3015 | rm -f conftest.o conftest.obj | |
a8b2ad8d | 3016 | if { (ac_try="$ac_compile" |
3017 | case "(($ac_try" in | |
3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3019 | *) ac_try_echo=$ac_try;; | |
3020 | esac | |
3021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3022 | (eval "$ac_compile") 2>&5 | |
b3076f16 | 3023 | ac_status=$? |
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3025 | (exit $ac_status); }; then | |
a8b2ad8d | 3026 | for ac_file in conftest.o conftest.obj conftest.*; do |
3027 | test -f "$ac_file" || continue; | |
b3076f16 | 3028 | case $ac_file in |
a8b2ad8d | 3029 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
b3076f16 | 3030 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3031 | break;; | |
3032 | esac | |
3033 | done | |
3034 | else | |
3035 | echo "$as_me: failed program was:" >&5 | |
3036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3037 | ||
3038 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3039 | See \`config.log' for more details." >&5 | |
3040 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3041 | See \`config.log' for more details." >&2;} | |
3042 | { (exit 1); exit 1; }; } | |
3043 | fi | |
3044 | ||
3045 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3046 | fi | |
a8b2ad8d | 3047 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3048 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
b3076f16 | 3049 | OBJEXT=$ac_cv_objext |
3050 | ac_objext=$OBJEXT | |
a8b2ad8d | 3051 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3052 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 3053 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3055 | else | |
3056 | cat >conftest.$ac_ext <<_ACEOF | |
3057 | /* confdefs.h. */ | |
3058 | _ACEOF | |
3059 | cat confdefs.h >>conftest.$ac_ext | |
3060 | cat >>conftest.$ac_ext <<_ACEOF | |
3061 | /* end confdefs.h. */ | |
3062 | ||
3063 | int | |
3064 | main () | |
3065 | { | |
3066 | #ifndef __GNUC__ | |
3067 | choke me | |
3068 | #endif | |
3069 | ||
3070 | ; | |
3071 | return 0; | |
3072 | } | |
3073 | _ACEOF | |
3074 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3075 | if { (ac_try="$ac_compile" |
3076 | case "(($ac_try" in | |
3077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3078 | *) ac_try_echo=$ac_try;; | |
3079 | esac | |
3080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3081 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3082 | ac_status=$? |
3083 | grep -v '^ *+' conftest.er1 >conftest.err | |
3084 | rm -f conftest.er1 | |
3085 | cat conftest.err >&5 | |
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3087 | (exit $ac_status); } && { |
3088 | test -z "$ac_c_werror_flag" || | |
3089 | test ! -s conftest.err | |
3090 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3091 | ac_compiler_gnu=yes |
3092 | else | |
3093 | echo "$as_me: failed program was:" >&5 | |
3094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3095 | ||
a8b2ad8d | 3096 | ac_compiler_gnu=no |
b3076f16 | 3097 | fi |
a8b2ad8d | 3098 | |
3099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3100 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3101 | ||
3102 | fi | |
a8b2ad8d | 3103 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3104 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 3105 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3106 | ac_test_CFLAGS=${CFLAGS+set} | |
3107 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 3108 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3109 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 3110 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3112 | else | |
a8b2ad8d | 3113 | ac_save_c_werror_flag=$ac_c_werror_flag |
3114 | ac_c_werror_flag=yes | |
3115 | ac_cv_prog_cc_g=no | |
3116 | CFLAGS="-g" | |
3117 | cat >conftest.$ac_ext <<_ACEOF | |
3118 | /* confdefs.h. */ | |
3119 | _ACEOF | |
3120 | cat confdefs.h >>conftest.$ac_ext | |
3121 | cat >>conftest.$ac_ext <<_ACEOF | |
3122 | /* end confdefs.h. */ | |
3123 | ||
3124 | int | |
3125 | main () | |
3126 | { | |
3127 | ||
3128 | ; | |
3129 | return 0; | |
3130 | } | |
3131 | _ACEOF | |
3132 | rm -f conftest.$ac_objext | |
3133 | if { (ac_try="$ac_compile" | |
3134 | case "(($ac_try" in | |
3135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3136 | *) ac_try_echo=$ac_try;; | |
3137 | esac | |
3138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3139 | (eval "$ac_compile") 2>conftest.er1 | |
3140 | ac_status=$? | |
3141 | grep -v '^ *+' conftest.er1 >conftest.err | |
3142 | rm -f conftest.er1 | |
3143 | cat conftest.err >&5 | |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3145 | (exit $ac_status); } && { |
3146 | test -z "$ac_c_werror_flag" || | |
3147 | test ! -s conftest.err | |
3148 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3149 | ac_cv_prog_cc_g=yes |
3150 | else | |
3151 | echo "$as_me: failed program was:" >&5 | |
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3153 | ||
3154 | CFLAGS="" | |
3155 | cat >conftest.$ac_ext <<_ACEOF | |
3156 | /* confdefs.h. */ | |
3157 | _ACEOF | |
3158 | cat confdefs.h >>conftest.$ac_ext | |
3159 | cat >>conftest.$ac_ext <<_ACEOF | |
3160 | /* end confdefs.h. */ | |
3161 | ||
3162 | int | |
3163 | main () | |
3164 | { | |
3165 | ||
3166 | ; | |
3167 | return 0; | |
3168 | } | |
3169 | _ACEOF | |
3170 | rm -f conftest.$ac_objext | |
3171 | if { (ac_try="$ac_compile" | |
3172 | case "(($ac_try" in | |
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3174 | *) ac_try_echo=$ac_try;; | |
3175 | esac | |
3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3177 | (eval "$ac_compile") 2>conftest.er1 | |
3178 | ac_status=$? | |
3179 | grep -v '^ *+' conftest.er1 >conftest.err | |
3180 | rm -f conftest.er1 | |
3181 | cat conftest.err >&5 | |
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3183 | (exit $ac_status); } && { |
3184 | test -z "$ac_c_werror_flag" || | |
3185 | test ! -s conftest.err | |
3186 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3187 | : |
3188 | else | |
3189 | echo "$as_me: failed program was:" >&5 | |
3190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3191 | ||
3192 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3193 | CFLAGS="-g" | |
3194 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 3195 | /* confdefs.h. */ |
3196 | _ACEOF | |
3197 | cat confdefs.h >>conftest.$ac_ext | |
3198 | cat >>conftest.$ac_ext <<_ACEOF | |
3199 | /* end confdefs.h. */ | |
3200 | ||
3201 | int | |
3202 | main () | |
3203 | { | |
3204 | ||
3205 | ; | |
3206 | return 0; | |
3207 | } | |
3208 | _ACEOF | |
3209 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3210 | if { (ac_try="$ac_compile" |
3211 | case "(($ac_try" in | |
3212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3213 | *) ac_try_echo=$ac_try;; | |
3214 | esac | |
3215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3216 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3217 | ac_status=$? |
3218 | grep -v '^ *+' conftest.er1 >conftest.err | |
3219 | rm -f conftest.er1 | |
3220 | cat conftest.err >&5 | |
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3222 | (exit $ac_status); } && { |
3223 | test -z "$ac_c_werror_flag" || | |
3224 | test ! -s conftest.err | |
3225 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3226 | ac_cv_prog_cc_g=yes |
3227 | else | |
3228 | echo "$as_me: failed program was:" >&5 | |
3229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3230 | ||
a8b2ad8d | 3231 | |
3232 | fi | |
3233 | ||
3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3235 | fi | |
3236 | ||
3237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3238 | fi |
a8b2ad8d | 3239 | |
3240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3241 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 3242 | fi |
a8b2ad8d | 3243 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3244 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 3245 | if test "$ac_test_CFLAGS" = set; then |
3246 | CFLAGS=$ac_save_CFLAGS | |
3247 | elif test $ac_cv_prog_cc_g = yes; then | |
3248 | if test "$GCC" = yes; then | |
3249 | CFLAGS="-g -O2" | |
3250 | else | |
3251 | CFLAGS="-g" | |
3252 | fi | |
3253 | else | |
3254 | if test "$GCC" = yes; then | |
3255 | CFLAGS="-O2" | |
3256 | else | |
3257 | CFLAGS= | |
3258 | fi | |
3259 | fi | |
a8b2ad8d | 3260 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3261 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3262 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3264 | else | |
a8b2ad8d | 3265 | ac_cv_prog_cc_c89=no |
b3076f16 | 3266 | ac_save_CC=$CC |
3267 | cat >conftest.$ac_ext <<_ACEOF | |
3268 | /* confdefs.h. */ | |
3269 | _ACEOF | |
3270 | cat confdefs.h >>conftest.$ac_ext | |
3271 | cat >>conftest.$ac_ext <<_ACEOF | |
3272 | /* end confdefs.h. */ | |
3273 | #include <stdarg.h> | |
3274 | #include <stdio.h> | |
3275 | #include <sys/types.h> | |
3276 | #include <sys/stat.h> | |
3277 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3278 | struct buf { int x; }; | |
3279 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3280 | static char *e (p, i) | |
3281 | char **p; | |
3282 | int i; | |
3283 | { | |
3284 | return p[i]; | |
3285 | } | |
3286 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3287 | { | |
3288 | char *s; | |
3289 | va_list v; | |
3290 | va_start (v,p); | |
3291 | s = g (p, va_arg (v,int)); | |
3292 | va_end (v); | |
3293 | return s; | |
3294 | } | |
3295 | ||
3296 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3297 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3298 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 3299 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 3300 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3301 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 3302 | that's true only with -std. */ |
b3076f16 | 3303 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3304 | ||
a8b2ad8d | 3305 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3306 | inside strings and character constants. */ | |
3307 | #define FOO(x) 'x' | |
3308 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3309 | ||
b3076f16 | 3310 | int test (int i, double x); |
3311 | struct s1 {int (*f) (int a);}; | |
3312 | struct s2 {int (*f) (double a);}; | |
3313 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3314 | int argc; | |
3315 | char **argv; | |
3316 | int | |
3317 | main () | |
3318 | { | |
3319 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3320 | ; | |
3321 | return 0; | |
3322 | } | |
3323 | _ACEOF | |
a8b2ad8d | 3324 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3325 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 3326 | do |
3327 | CC="$ac_save_CC $ac_arg" | |
3328 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3329 | if { (ac_try="$ac_compile" |
3330 | case "(($ac_try" in | |
3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3332 | *) ac_try_echo=$ac_try;; | |
3333 | esac | |
3334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3335 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3336 | ac_status=$? |
3337 | grep -v '^ *+' conftest.er1 >conftest.err | |
3338 | rm -f conftest.er1 | |
3339 | cat conftest.err >&5 | |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3341 | (exit $ac_status); } && { |
3342 | test -z "$ac_c_werror_flag" || | |
3343 | test ! -s conftest.err | |
3344 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3345 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 3346 | else |
3347 | echo "$as_me: failed program was:" >&5 | |
3348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3349 | ||
a8b2ad8d | 3350 | |
b3076f16 | 3351 | fi |
a8b2ad8d | 3352 | |
3353 | rm -f core conftest.err conftest.$ac_objext | |
3354 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 3355 | done |
a8b2ad8d | 3356 | rm -f conftest.$ac_ext |
b3076f16 | 3357 | CC=$ac_save_CC |
3358 | ||
3359 | fi | |
a8b2ad8d | 3360 | # AC_CACHE_VAL |
3361 | case "x$ac_cv_prog_cc_c89" in | |
3362 | x) | |
3363 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3364 | echo "${ECHO_T}none needed" >&6; } ;; | |
3365 | xno) | |
3366 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3367 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 3368 | *) |
a8b2ad8d | 3369 | CC="$CC $ac_cv_prog_cc_c89" |
3370 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3371 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 3372 | esac |
3373 | ||
b3076f16 | 3374 | |
b3076f16 | 3375 | ac_ext=c |
3376 | ac_cpp='$CPP $CPPFLAGS' | |
3377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3380 | ||
ec1a68c8 | 3381 | depcc="$CC" am_compiler_list= |
3382 | ||
a8b2ad8d | 3383 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3384 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 3385 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3387 | else | |
3388 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3389 | # We make a subdir and do the tests there. Otherwise we can end up | |
3390 | # making bogus files that we don't know about and never remove. For | |
3391 | # instance it was reported that on HP-UX the gcc test will end up | |
3392 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3393 | # in D'. | |
3394 | mkdir conftest.dir | |
3395 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3396 | # using a relative directory. | |
3397 | cp "$am_depcomp" conftest.dir | |
3398 | cd conftest.dir | |
3399 | # We will build objects and dependencies in a subdirectory because | |
3400 | # it helps to detect inapplicable dependency modes. For instance | |
3401 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3402 | # side effect of compilation, but ICC will put the dependencies in | |
3403 | # the current directory while Tru64 will put them in the object | |
3404 | # directory. | |
3405 | mkdir sub | |
3406 | ||
3407 | am_cv_CC_dependencies_compiler_type=none | |
3408 | if test "$am_compiler_list" = ""; then | |
3409 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3410 | fi | |
3411 | for depmode in $am_compiler_list; do | |
3412 | # Setup a source with many dependencies, because some compilers | |
3413 | # like to wrap large dependency lists on column 80 (with \), and | |
3414 | # we should not choose a depcomp mode which is confused by this. | |
3415 | # | |
3416 | # We need to recreate these files for each test, as the compiler may | |
3417 | # overwrite some of them when testing with obscure command lines. | |
3418 | # This happens at least with the AIX C compiler. | |
3419 | : > sub/conftest.c | |
3420 | for i in 1 2 3 4 5 6; do | |
3421 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3422 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3423 | # Solaris 8's {/usr,}/bin/sh. | |
3424 | touch sub/conftst$i.h | |
3425 | done | |
3426 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3427 | ||
3428 | case $depmode in | |
3429 | nosideeffect) | |
3430 | # after this tag, mechanisms are not by side-effect, so they'll | |
3431 | # only be used when explicitly requested | |
3432 | if test "x$enable_dependency_tracking" = xyes; then | |
3433 | continue | |
3434 | else | |
3435 | break | |
3436 | fi | |
3437 | ;; | |
3438 | none) break ;; | |
3439 | esac | |
3440 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3441 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3442 | # handle `-M -o', and we need to detect this. | |
3443 | if depmode=$depmode \ | |
3444 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3445 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3446 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3447 | >/dev/null 2>conftest.err && | |
3448 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3449 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3450 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3451 | # icc doesn't choke on unknown options, it will just issue warnings | |
3452 | # or remarks (even with -Werror). So we grep stderr for any message | |
3453 | # that says an option was ignored or not supported. | |
3454 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3455 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3456 | # The diagnosis changed in icc 8.0: | |
3457 | # icc: Command line remark: option '-MP' not supported | |
3458 | if (grep 'ignoring option' conftest.err || | |
3459 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3460 | am_cv_CC_dependencies_compiler_type=$depmode | |
3461 | break | |
3462 | fi | |
3463 | fi | |
3464 | done | |
3465 | ||
3466 | cd .. | |
3467 | rm -rf conftest.dir | |
3468 | else | |
3469 | am_cv_CC_dependencies_compiler_type=none | |
3470 | fi | |
3471 | ||
3472 | fi | |
a8b2ad8d | 3473 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3474 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 3475 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3476 | ||
0f6fe38c | 3477 | |
3478 | ||
3479 | if | |
ec1a68c8 | 3480 | test "x$enable_dependency_tracking" != xno \ |
3481 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3482 | am__fastdepCC_TRUE= | |
3483 | am__fastdepCC_FALSE='#' | |
3484 | else | |
3485 | am__fastdepCC_TRUE='#' | |
3486 | am__fastdepCC_FALSE= | |
3487 | fi | |
3488 | ||
3489 | ||
b3076f16 | 3490 | |
a8b2ad8d | 3491 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
3492 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
b3076f16 | 3493 | if test "${ac_cv_type_signal+set}" = set; then |
3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3495 | else | |
3496 | cat >conftest.$ac_ext <<_ACEOF | |
3497 | /* confdefs.h. */ | |
3498 | _ACEOF | |
3499 | cat confdefs.h >>conftest.$ac_ext | |
3500 | cat >>conftest.$ac_ext <<_ACEOF | |
3501 | /* end confdefs.h. */ | |
3502 | #include <sys/types.h> | |
3503 | #include <signal.h> | |
b3076f16 | 3504 | |
3505 | int | |
3506 | main () | |
3507 | { | |
a8b2ad8d | 3508 | return *(signal (0, 0)) (0) == 1; |
b3076f16 | 3509 | ; |
3510 | return 0; | |
3511 | } | |
3512 | _ACEOF | |
3513 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3514 | if { (ac_try="$ac_compile" |
3515 | case "(($ac_try" in | |
3516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3517 | *) ac_try_echo=$ac_try;; | |
3518 | esac | |
3519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3520 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3521 | ac_status=$? |
3522 | grep -v '^ *+' conftest.er1 >conftest.err | |
3523 | rm -f conftest.er1 | |
3524 | cat conftest.err >&5 | |
3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3526 | (exit $ac_status); } && { |
3527 | test -z "$ac_c_werror_flag" || | |
3528 | test ! -s conftest.err | |
3529 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 3530 | ac_cv_type_signal=int |
b3076f16 | 3531 | else |
3532 | echo "$as_me: failed program was:" >&5 | |
3533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3534 | ||
a8b2ad8d | 3535 | ac_cv_type_signal=void |
b3076f16 | 3536 | fi |
a8b2ad8d | 3537 | |
3538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3539 | fi |
a8b2ad8d | 3540 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
3541 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
b3076f16 | 3542 | |
3543 | cat >>confdefs.h <<_ACEOF | |
3544 | #define RETSIGTYPE $ac_cv_type_signal | |
3545 | _ACEOF | |
3546 | ||
3547 | ||
a8b2ad8d | 3548 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3549 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
b3076f16 | 3550 | if test "${ac_cv_c_const+set}" = set; then |
3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3552 | else | |
3553 | cat >conftest.$ac_ext <<_ACEOF | |
3554 | /* confdefs.h. */ | |
3555 | _ACEOF | |
3556 | cat confdefs.h >>conftest.$ac_ext | |
3557 | cat >>conftest.$ac_ext <<_ACEOF | |
3558 | /* end confdefs.h. */ | |
3559 | ||
3560 | int | |
3561 | main () | |
3562 | { | |
3563 | /* FIXME: Include the comments suggested by Paul. */ | |
3564 | #ifndef __cplusplus | |
3565 | /* Ultrix mips cc rejects this. */ | |
3566 | typedef int charset[2]; | |
0bd0bef6 | 3567 | const charset cs; |
b3076f16 | 3568 | /* SunOS 4.1.1 cc rejects this. */ |
0bd0bef6 | 3569 | char const *const *pcpcc; |
3570 | char **ppc; | |
b3076f16 | 3571 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3572 | struct point {int x, y;}; | |
3573 | static struct point const zero = {0,0}; | |
3574 | /* AIX XL C 1.02.0.0 rejects this. | |
3575 | It does not let you subtract one const X* pointer from another in | |
3576 | an arm of an if-expression whose if-part is not a constant | |
3577 | expression */ | |
3578 | const char *g = "string"; | |
0bd0bef6 | 3579 | pcpcc = &g + (g ? g-g : 0); |
b3076f16 | 3580 | /* HPUX 7.0 cc rejects these. */ |
0bd0bef6 | 3581 | ++pcpcc; |
3582 | ppc = (char**) pcpcc; | |
3583 | pcpcc = (char const *const *) ppc; | |
b3076f16 | 3584 | { /* SCO 3.2v4 cc rejects this. */ |
3585 | char *t; | |
3586 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3587 | ||
3588 | *t++ = 0; | |
a8b2ad8d | 3589 | if (s) return 0; |
b3076f16 | 3590 | } |
3591 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3592 | int x[] = {25, 17}; | |
3593 | const int *foo = &x[0]; | |
3594 | ++foo; | |
3595 | } | |
3596 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3597 | typedef const int *iptr; | |
3598 | iptr p = 0; | |
3599 | ++p; | |
3600 | } | |
3601 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3602 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3603 | struct s { int j; const int *ap[3]; }; | |
3604 | struct s *b; b->j = 5; | |
3605 | } | |
3606 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3607 | const int foo = 10; | |
a8b2ad8d | 3608 | if (!foo) return 0; |
b3076f16 | 3609 | } |
0bd0bef6 | 3610 | return !cs[0] && !zero.x; |
b3076f16 | 3611 | #endif |
3612 | ||
3613 | ; | |
3614 | return 0; | |
3615 | } | |
3616 | _ACEOF | |
3617 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3618 | if { (ac_try="$ac_compile" |
3619 | case "(($ac_try" in | |
3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3621 | *) ac_try_echo=$ac_try;; | |
3622 | esac | |
3623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3624 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3625 | ac_status=$? |
3626 | grep -v '^ *+' conftest.er1 >conftest.err | |
3627 | rm -f conftest.er1 | |
3628 | cat conftest.err >&5 | |
3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3630 | (exit $ac_status); } && { |
3631 | test -z "$ac_c_werror_flag" || | |
3632 | test ! -s conftest.err | |
3633 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 3634 | ac_cv_c_const=yes |
3635 | else | |
3636 | echo "$as_me: failed program was:" >&5 | |
3637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3638 | ||
a8b2ad8d | 3639 | ac_cv_c_const=no |
b3076f16 | 3640 | fi |
a8b2ad8d | 3641 | |
3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3643 | fi |
a8b2ad8d | 3644 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3645 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
b3076f16 | 3646 | if test $ac_cv_c_const = no; then |
3647 | ||
3648 | cat >>confdefs.h <<\_ACEOF | |
3649 | #define const | |
3650 | _ACEOF | |
3651 | ||
3652 | fi | |
3653 | ||
0f6fe38c | 3654 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3655 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
3656 | if test "${ac_cv_c_inline+set}" = set; then | |
b3076f16 | 3657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3658 | else | |
0f6fe38c | 3659 | ac_cv_c_inline=no |
3660 | for ac_kw in inline __inline__ __inline; do | |
3661 | cat >conftest.$ac_ext <<_ACEOF | |
3662 | /* confdefs.h. */ | |
3663 | _ACEOF | |
3664 | cat confdefs.h >>conftest.$ac_ext | |
3665 | cat >>conftest.$ac_ext <<_ACEOF | |
3666 | /* end confdefs.h. */ | |
3667 | #ifndef __cplusplus | |
3668 | typedef int foo_t; | |
3669 | static $ac_kw foo_t static_foo () {return 0; } | |
3670 | $ac_kw foo_t foo () {return 0; } | |
3671 | #endif | |
3672 | ||
3673 | _ACEOF | |
3674 | rm -f conftest.$ac_objext | |
3675 | if { (ac_try="$ac_compile" | |
3676 | case "(($ac_try" in | |
3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3678 | *) ac_try_echo=$ac_try;; | |
3679 | esac | |
3680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3681 | (eval "$ac_compile") 2>conftest.er1 | |
3682 | ac_status=$? | |
3683 | grep -v '^ *+' conftest.er1 >conftest.err | |
3684 | rm -f conftest.er1 | |
3685 | cat conftest.err >&5 | |
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 3687 | (exit $ac_status); } && { |
3688 | test -z "$ac_c_werror_flag" || | |
3689 | test ! -s conftest.err | |
3690 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 3691 | ac_cv_c_inline=$ac_kw |
3692 | else | |
3693 | echo "$as_me: failed program was:" >&5 | |
3694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3695 | ||
3696 | ||
3697 | fi | |
3698 | ||
3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3700 | test "$ac_cv_c_inline" != no && break | |
3701 | done | |
3702 | ||
3703 | fi | |
3704 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3705 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
3706 | ||
3707 | ||
3708 | case $ac_cv_c_inline in | |
3709 | inline | yes) ;; | |
3710 | *) | |
3711 | case $ac_cv_c_inline in | |
3712 | no) ac_val=;; | |
3713 | *) ac_val=$ac_cv_c_inline;; | |
3714 | esac | |
3715 | cat >>confdefs.h <<_ACEOF | |
3716 | #ifndef __cplusplus | |
3717 | #define inline $ac_val | |
3718 | #endif | |
3719 | _ACEOF | |
3720 | ;; | |
3721 | esac | |
3722 | ||
3723 | ||
3724 | for ac_prog in gawk mawk nawk awk | |
3725 | do | |
3726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3727 | set dummy $ac_prog; ac_word=$2 | |
3728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3730 | if test "${ac_cv_prog_AWK+set}" = set; then | |
3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3732 | else | |
3733 | if test -n "$AWK"; then | |
3734 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3735 | else | |
3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3737 | for as_dir in $PATH | |
3738 | do | |
3739 | IFS=$as_save_IFS | |
3740 | test -z "$as_dir" && as_dir=. | |
3741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
0f6fe38c | 3743 | ac_cv_prog_AWK="$ac_prog" |
3744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3745 | break 2 | |
3746 | fi | |
3747 | done | |
3748 | done | |
3749 | IFS=$as_save_IFS | |
3750 | ||
3751 | fi | |
3752 | fi | |
3753 | AWK=$ac_cv_prog_AWK | |
3754 | if test -n "$AWK"; then | |
3755 | { echo "$as_me:$LINENO: result: $AWK" >&5 | |
3756 | echo "${ECHO_T}$AWK" >&6; } | |
3757 | else | |
3758 | { echo "$as_me:$LINENO: result: no" >&5 | |
3759 | echo "${ECHO_T}no" >&6; } | |
3760 | fi | |
b3076f16 | 3761 | |
a8b2ad8d | 3762 | |
b3076f16 | 3763 | test -n "$AWK" && break |
3764 | done | |
3765 | ||
3766 | ac_ext=c | |
3767 | ac_cpp='$CPP $CPPFLAGS' | |
3768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3771 | if test -n "$ac_tool_prefix"; then | |
3772 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3773 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 3774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3776 | if test "${ac_cv_prog_CC+set}" = set; then |
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3778 | else | |
3779 | if test -n "$CC"; then | |
3780 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3781 | else | |
3782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3783 | for as_dir in $PATH | |
3784 | do | |
3785 | IFS=$as_save_IFS | |
3786 | test -z "$as_dir" && as_dir=. | |
3787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3789 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3791 | break 2 | |
3792 | fi | |
3793 | done | |
3794 | done | |
a8b2ad8d | 3795 | IFS=$as_save_IFS |
b3076f16 | 3796 | |
3797 | fi | |
3798 | fi | |
3799 | CC=$ac_cv_prog_CC | |
3800 | if test -n "$CC"; then | |
a8b2ad8d | 3801 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3802 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3803 | else |
a8b2ad8d | 3804 | { echo "$as_me:$LINENO: result: no" >&5 |
3805 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3806 | fi |
3807 | ||
a8b2ad8d | 3808 | |
b3076f16 | 3809 | fi |
3810 | if test -z "$ac_cv_prog_CC"; then | |
3811 | ac_ct_CC=$CC | |
3812 | # Extract the first word of "gcc", so it can be a program name with args. | |
3813 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 3814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3816 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3818 | else | |
3819 | if test -n "$ac_ct_CC"; then | |
3820 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3821 | else | |
3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3823 | for as_dir in $PATH | |
3824 | do | |
3825 | IFS=$as_save_IFS | |
3826 | test -z "$as_dir" && as_dir=. | |
3827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3829 | ac_cv_prog_ac_ct_CC="gcc" |
3830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3831 | break 2 | |
3832 | fi | |
3833 | done | |
3834 | done | |
a8b2ad8d | 3835 | IFS=$as_save_IFS |
b3076f16 | 3836 | |
3837 | fi | |
3838 | fi | |
3839 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3840 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 3841 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3842 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 3843 | else |
a8b2ad8d | 3844 | { echo "$as_me:$LINENO: result: no" >&5 |
3845 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3846 | fi |
3847 | ||
a8b2ad8d | 3848 | if test "x$ac_ct_CC" = x; then |
3849 | CC="" | |
3850 | else | |
3851 | case $cross_compiling:$ac_tool_warned in | |
3852 | yes:) | |
3853 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3854 | whose name does not start with the host triplet. If you think this | |
3855 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3856 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3857 | whose name does not start with the host triplet. If you think this | |
3858 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3859 | ac_tool_warned=yes ;; | |
3860 | esac | |
3861 | CC=$ac_ct_CC | |
3862 | fi | |
b3076f16 | 3863 | else |
3864 | CC="$ac_cv_prog_CC" | |
3865 | fi | |
3866 | ||
3867 | if test -z "$CC"; then | |
a8b2ad8d | 3868 | if test -n "$ac_tool_prefix"; then |
3869 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 3870 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 3871 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3873 | if test "${ac_cv_prog_CC+set}" = set; then |
3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3875 | else | |
3876 | if test -n "$CC"; then | |
3877 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3878 | else | |
3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3880 | for as_dir in $PATH | |
3881 | do | |
3882 | IFS=$as_save_IFS | |
3883 | test -z "$as_dir" && as_dir=. | |
3884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3886 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3888 | break 2 | |
3889 | fi | |
3890 | done | |
3891 | done | |
a8b2ad8d | 3892 | IFS=$as_save_IFS |
b3076f16 | 3893 | |
3894 | fi | |
3895 | fi | |
3896 | CC=$ac_cv_prog_CC | |
3897 | if test -n "$CC"; then | |
a8b2ad8d | 3898 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3899 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3900 | else |
a8b2ad8d | 3901 | { echo "$as_me:$LINENO: result: no" >&5 |
3902 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3903 | fi |
3904 | ||
b3076f16 | 3905 | |
a8b2ad8d | 3906 | fi |
b3076f16 | 3907 | fi |
3908 | if test -z "$CC"; then | |
3909 | # Extract the first word of "cc", so it can be a program name with args. | |
3910 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 3911 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3913 | if test "${ac_cv_prog_CC+set}" = set; then |
3914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3915 | else | |
3916 | if test -n "$CC"; then | |
3917 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3918 | else | |
3919 | ac_prog_rejected=no | |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3921 | for as_dir in $PATH | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3927 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3928 | ac_prog_rejected=yes | |
3929 | continue | |
3930 | fi | |
3931 | ac_cv_prog_CC="cc" | |
3932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3933 | break 2 | |
3934 | fi | |
3935 | done | |
3936 | done | |
a8b2ad8d | 3937 | IFS=$as_save_IFS |
b3076f16 | 3938 | |
3939 | if test $ac_prog_rejected = yes; then | |
3940 | # We found a bogon in the path, so make sure we never use it. | |
3941 | set dummy $ac_cv_prog_CC | |
3942 | shift | |
3943 | if test $# != 0; then | |
3944 | # We chose a different compiler from the bogus one. | |
3945 | # However, it has the same basename, so the bogon will be chosen | |
3946 | # first if we set CC to just the basename; use the full file name. | |
3947 | shift | |
3948 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3949 | fi | |
3950 | fi | |
3951 | fi | |
3952 | fi | |
3953 | CC=$ac_cv_prog_CC | |
3954 | if test -n "$CC"; then | |
a8b2ad8d | 3955 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3956 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3957 | else |
a8b2ad8d | 3958 | { echo "$as_me:$LINENO: result: no" >&5 |
3959 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3960 | fi |
3961 | ||
a8b2ad8d | 3962 | |
b3076f16 | 3963 | fi |
3964 | if test -z "$CC"; then | |
3965 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 3966 | for ac_prog in cl.exe |
b3076f16 | 3967 | do |
3968 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3969 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 3970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3972 | if test "${ac_cv_prog_CC+set}" = set; then |
3973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3974 | else | |
3975 | if test -n "$CC"; then | |
3976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3977 | else | |
3978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3979 | for as_dir in $PATH | |
3980 | do | |
3981 | IFS=$as_save_IFS | |
3982 | test -z "$as_dir" && as_dir=. | |
3983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 3984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3985 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3987 | break 2 | |
3988 | fi | |
3989 | done | |
3990 | done | |
a8b2ad8d | 3991 | IFS=$as_save_IFS |
b3076f16 | 3992 | |
3993 | fi | |
3994 | fi | |
3995 | CC=$ac_cv_prog_CC | |
3996 | if test -n "$CC"; then | |
a8b2ad8d | 3997 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3998 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3999 | else |
a8b2ad8d | 4000 | { echo "$as_me:$LINENO: result: no" >&5 |
4001 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4002 | fi |
4003 | ||
a8b2ad8d | 4004 | |
b3076f16 | 4005 | test -n "$CC" && break |
4006 | done | |
4007 | fi | |
4008 | if test -z "$CC"; then | |
4009 | ac_ct_CC=$CC | |
a8b2ad8d | 4010 | for ac_prog in cl.exe |
b3076f16 | 4011 | do |
4012 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4013 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 4014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 4016 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | if test -n "$ac_ct_CC"; then | |
4020 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4021 | else | |
4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4023 | for as_dir in $PATH | |
4024 | do | |
4025 | IFS=$as_save_IFS | |
4026 | test -z "$as_dir" && as_dir=. | |
4027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 4028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4029 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4031 | break 2 | |
4032 | fi | |
4033 | done | |
4034 | done | |
a8b2ad8d | 4035 | IFS=$as_save_IFS |
b3076f16 | 4036 | |
4037 | fi | |
4038 | fi | |
4039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4040 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 4041 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4042 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 4043 | else |
a8b2ad8d | 4044 | { echo "$as_me:$LINENO: result: no" >&5 |
4045 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4046 | fi |
4047 | ||
a8b2ad8d | 4048 | |
b3076f16 | 4049 | test -n "$ac_ct_CC" && break |
4050 | done | |
4051 | ||
a8b2ad8d | 4052 | if test "x$ac_ct_CC" = x; then |
4053 | CC="" | |
4054 | else | |
4055 | case $cross_compiling:$ac_tool_warned in | |
4056 | yes:) | |
4057 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4058 | whose name does not start with the host triplet. If you think this | |
4059 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4060 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4061 | whose name does not start with the host triplet. If you think this | |
4062 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4063 | ac_tool_warned=yes ;; | |
4064 | esac | |
4065 | CC=$ac_ct_CC | |
4066 | fi | |
b3076f16 | 4067 | fi |
4068 | ||
4069 | fi | |
4070 | ||
4071 | ||
4072 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4073 | See \`config.log' for more details." >&5 | |
4074 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4075 | See \`config.log' for more details." >&2;} | |
4076 | { (exit 1); exit 1; }; } | |
4077 | ||
4078 | # Provide some information about the compiler. | |
a8b2ad8d | 4079 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 4080 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 4081 | { (ac_try="$ac_compiler --version >&5" |
4082 | case "(($ac_try" in | |
4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4084 | *) ac_try_echo=$ac_try;; | |
4085 | esac | |
4086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4087 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 4088 | ac_status=$? |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); } | |
a8b2ad8d | 4091 | { (ac_try="$ac_compiler -v >&5" |
4092 | case "(($ac_try" in | |
4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4094 | *) ac_try_echo=$ac_try;; | |
4095 | esac | |
4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4097 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 4098 | ac_status=$? |
4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4100 | (exit $ac_status); } | |
a8b2ad8d | 4101 | { (ac_try="$ac_compiler -V >&5" |
4102 | case "(($ac_try" in | |
4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | *) ac_try_echo=$ac_try;; | |
4105 | esac | |
4106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4107 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 4108 | ac_status=$? |
4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4110 | (exit $ac_status); } | |
4111 | ||
a8b2ad8d | 4112 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4113 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 4114 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4116 | else | |
4117 | cat >conftest.$ac_ext <<_ACEOF | |
4118 | /* confdefs.h. */ | |
4119 | _ACEOF | |
4120 | cat confdefs.h >>conftest.$ac_ext | |
4121 | cat >>conftest.$ac_ext <<_ACEOF | |
4122 | /* end confdefs.h. */ | |
4123 | ||
4124 | int | |
4125 | main () | |
4126 | { | |
4127 | #ifndef __GNUC__ | |
4128 | choke me | |
4129 | #endif | |
4130 | ||
4131 | ; | |
4132 | return 0; | |
4133 | } | |
4134 | _ACEOF | |
4135 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4136 | if { (ac_try="$ac_compile" |
4137 | case "(($ac_try" in | |
4138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4139 | *) ac_try_echo=$ac_try;; | |
4140 | esac | |
4141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4142 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4143 | ac_status=$? |
4144 | grep -v '^ *+' conftest.er1 >conftest.err | |
4145 | rm -f conftest.er1 | |
4146 | cat conftest.err >&5 | |
4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4148 | (exit $ac_status); } && { |
4149 | test -z "$ac_c_werror_flag" || | |
4150 | test ! -s conftest.err | |
4151 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 4152 | ac_compiler_gnu=yes |
4153 | else | |
4154 | echo "$as_me: failed program was:" >&5 | |
4155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4156 | ||
a8b2ad8d | 4157 | ac_compiler_gnu=no |
b3076f16 | 4158 | fi |
a8b2ad8d | 4159 | |
4160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4161 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4162 | ||
4163 | fi | |
a8b2ad8d | 4164 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4165 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 4166 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
4167 | ac_test_CFLAGS=${CFLAGS+set} | |
4168 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 4169 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4170 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 4171 | if test "${ac_cv_prog_cc_g+set}" = set; then |
4172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4173 | else | |
a8b2ad8d | 4174 | ac_save_c_werror_flag=$ac_c_werror_flag |
4175 | ac_c_werror_flag=yes | |
4176 | ac_cv_prog_cc_g=no | |
4177 | CFLAGS="-g" | |
4178 | cat >conftest.$ac_ext <<_ACEOF | |
4179 | /* confdefs.h. */ | |
4180 | _ACEOF | |
4181 | cat confdefs.h >>conftest.$ac_ext | |
4182 | cat >>conftest.$ac_ext <<_ACEOF | |
4183 | /* end confdefs.h. */ | |
4184 | ||
4185 | int | |
4186 | main () | |
4187 | { | |
4188 | ||
4189 | ; | |
4190 | return 0; | |
4191 | } | |
4192 | _ACEOF | |
4193 | rm -f conftest.$ac_objext | |
4194 | if { (ac_try="$ac_compile" | |
4195 | case "(($ac_try" in | |
4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4197 | *) ac_try_echo=$ac_try;; | |
4198 | esac | |
4199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4200 | (eval "$ac_compile") 2>conftest.er1 | |
4201 | ac_status=$? | |
4202 | grep -v '^ *+' conftest.er1 >conftest.err | |
4203 | rm -f conftest.er1 | |
4204 | cat conftest.err >&5 | |
4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4206 | (exit $ac_status); } && { |
4207 | test -z "$ac_c_werror_flag" || | |
4208 | test ! -s conftest.err | |
4209 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4210 | ac_cv_prog_cc_g=yes |
4211 | else | |
4212 | echo "$as_me: failed program was:" >&5 | |
4213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4214 | ||
4215 | CFLAGS="" | |
4216 | cat >conftest.$ac_ext <<_ACEOF | |
4217 | /* confdefs.h. */ | |
4218 | _ACEOF | |
4219 | cat confdefs.h >>conftest.$ac_ext | |
4220 | cat >>conftest.$ac_ext <<_ACEOF | |
4221 | /* end confdefs.h. */ | |
4222 | ||
4223 | int | |
4224 | main () | |
4225 | { | |
4226 | ||
4227 | ; | |
4228 | return 0; | |
4229 | } | |
4230 | _ACEOF | |
4231 | rm -f conftest.$ac_objext | |
4232 | if { (ac_try="$ac_compile" | |
4233 | case "(($ac_try" in | |
4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4235 | *) ac_try_echo=$ac_try;; | |
4236 | esac | |
4237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4238 | (eval "$ac_compile") 2>conftest.er1 | |
4239 | ac_status=$? | |
4240 | grep -v '^ *+' conftest.er1 >conftest.err | |
4241 | rm -f conftest.er1 | |
4242 | cat conftest.err >&5 | |
4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4244 | (exit $ac_status); } && { |
4245 | test -z "$ac_c_werror_flag" || | |
4246 | test ! -s conftest.err | |
4247 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4248 | : |
4249 | else | |
4250 | echo "$as_me: failed program was:" >&5 | |
4251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4252 | ||
4253 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4254 | CFLAGS="-g" | |
4255 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 4256 | /* confdefs.h. */ |
4257 | _ACEOF | |
4258 | cat confdefs.h >>conftest.$ac_ext | |
4259 | cat >>conftest.$ac_ext <<_ACEOF | |
4260 | /* end confdefs.h. */ | |
4261 | ||
4262 | int | |
4263 | main () | |
4264 | { | |
4265 | ||
4266 | ; | |
4267 | return 0; | |
4268 | } | |
4269 | _ACEOF | |
4270 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4271 | if { (ac_try="$ac_compile" |
4272 | case "(($ac_try" in | |
4273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4274 | *) ac_try_echo=$ac_try;; | |
4275 | esac | |
4276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4277 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4278 | ac_status=$? |
4279 | grep -v '^ *+' conftest.er1 >conftest.err | |
4280 | rm -f conftest.er1 | |
4281 | cat conftest.err >&5 | |
4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4283 | (exit $ac_status); } && { |
4284 | test -z "$ac_c_werror_flag" || | |
4285 | test ! -s conftest.err | |
4286 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 4287 | ac_cv_prog_cc_g=yes |
4288 | else | |
4289 | echo "$as_me: failed program was:" >&5 | |
4290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4291 | ||
a8b2ad8d | 4292 | |
4293 | fi | |
4294 | ||
4295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4296 | fi | |
4297 | ||
4298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4299 | fi |
a8b2ad8d | 4300 | |
4301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4302 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 4303 | fi |
a8b2ad8d | 4304 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4305 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 4306 | if test "$ac_test_CFLAGS" = set; then |
4307 | CFLAGS=$ac_save_CFLAGS | |
4308 | elif test $ac_cv_prog_cc_g = yes; then | |
4309 | if test "$GCC" = yes; then | |
4310 | CFLAGS="-g -O2" | |
4311 | else | |
4312 | CFLAGS="-g" | |
4313 | fi | |
4314 | else | |
4315 | if test "$GCC" = yes; then | |
4316 | CFLAGS="-O2" | |
4317 | else | |
4318 | CFLAGS= | |
4319 | fi | |
4320 | fi | |
a8b2ad8d | 4321 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4322 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4323 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4325 | else | |
a8b2ad8d | 4326 | ac_cv_prog_cc_c89=no |
b3076f16 | 4327 | ac_save_CC=$CC |
4328 | cat >conftest.$ac_ext <<_ACEOF | |
4329 | /* confdefs.h. */ | |
4330 | _ACEOF | |
4331 | cat confdefs.h >>conftest.$ac_ext | |
4332 | cat >>conftest.$ac_ext <<_ACEOF | |
4333 | /* end confdefs.h. */ | |
4334 | #include <stdarg.h> | |
4335 | #include <stdio.h> | |
4336 | #include <sys/types.h> | |
4337 | #include <sys/stat.h> | |
4338 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4339 | struct buf { int x; }; | |
4340 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4341 | static char *e (p, i) | |
4342 | char **p; | |
4343 | int i; | |
4344 | { | |
4345 | return p[i]; | |
4346 | } | |
4347 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4348 | { | |
4349 | char *s; | |
4350 | va_list v; | |
4351 | va_start (v,p); | |
4352 | s = g (p, va_arg (v,int)); | |
4353 | va_end (v); | |
4354 | return s; | |
4355 | } | |
4356 | ||
4357 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4358 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4359 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 4360 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 4361 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4362 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 4363 | that's true only with -std. */ |
b3076f16 | 4364 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4365 | ||
a8b2ad8d | 4366 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4367 | inside strings and character constants. */ | |
4368 | #define FOO(x) 'x' | |
4369 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4370 | ||
b3076f16 | 4371 | int test (int i, double x); |
4372 | struct s1 {int (*f) (int a);}; | |
4373 | struct s2 {int (*f) (double a);}; | |
4374 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4375 | int argc; | |
4376 | char **argv; | |
4377 | int | |
4378 | main () | |
4379 | { | |
4380 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4381 | ; | |
4382 | return 0; | |
4383 | } | |
4384 | _ACEOF | |
a8b2ad8d | 4385 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4386 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 4387 | do |
4388 | CC="$ac_save_CC $ac_arg" | |
4389 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4390 | if { (ac_try="$ac_compile" |
4391 | case "(($ac_try" in | |
4392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4393 | *) ac_try_echo=$ac_try;; | |
4394 | esac | |
4395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4396 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4397 | ac_status=$? |
4398 | grep -v '^ *+' conftest.er1 >conftest.err | |
4399 | rm -f conftest.er1 | |
4400 | cat conftest.err >&5 | |
4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4402 | (exit $ac_status); } && { |
4403 | test -z "$ac_c_werror_flag" || | |
4404 | test ! -s conftest.err | |
4405 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 4406 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 4407 | else |
4408 | echo "$as_me: failed program was:" >&5 | |
4409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4410 | ||
a8b2ad8d | 4411 | |
b3076f16 | 4412 | fi |
a8b2ad8d | 4413 | |
4414 | rm -f core conftest.err conftest.$ac_objext | |
4415 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 4416 | done |
a8b2ad8d | 4417 | rm -f conftest.$ac_ext |
b3076f16 | 4418 | CC=$ac_save_CC |
4419 | ||
4420 | fi | |
a8b2ad8d | 4421 | # AC_CACHE_VAL |
4422 | case "x$ac_cv_prog_cc_c89" in | |
4423 | x) | |
4424 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4425 | echo "${ECHO_T}none needed" >&6; } ;; | |
4426 | xno) | |
4427 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4428 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 4429 | *) |
a8b2ad8d | 4430 | CC="$CC $ac_cv_prog_cc_c89" |
4431 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4432 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 4433 | esac |
4434 | ||
b3076f16 | 4435 | |
b3076f16 | 4436 | ac_ext=c |
4437 | ac_cpp='$CPP $CPPFLAGS' | |
4438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4441 | ||
ec1a68c8 | 4442 | depcc="$CC" am_compiler_list= |
4443 | ||
a8b2ad8d | 4444 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4445 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 4446 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4448 | else | |
4449 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4450 | # We make a subdir and do the tests there. Otherwise we can end up | |
4451 | # making bogus files that we don't know about and never remove. For | |
4452 | # instance it was reported that on HP-UX the gcc test will end up | |
4453 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4454 | # in D'. | |
4455 | mkdir conftest.dir | |
4456 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4457 | # using a relative directory. | |
4458 | cp "$am_depcomp" conftest.dir | |
4459 | cd conftest.dir | |
4460 | # We will build objects and dependencies in a subdirectory because | |
4461 | # it helps to detect inapplicable dependency modes. For instance | |
4462 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4463 | # side effect of compilation, but ICC will put the dependencies in | |
4464 | # the current directory while Tru64 will put them in the object | |
4465 | # directory. | |
4466 | mkdir sub | |
4467 | ||
4468 | am_cv_CC_dependencies_compiler_type=none | |
4469 | if test "$am_compiler_list" = ""; then | |
4470 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4471 | fi | |
4472 | for depmode in $am_compiler_list; do | |
4473 | # Setup a source with many dependencies, because some compilers | |
4474 | # like to wrap large dependency lists on column 80 (with \), and | |
4475 | # we should not choose a depcomp mode which is confused by this. | |
4476 | # | |
4477 | # We need to recreate these files for each test, as the compiler may | |
4478 | # overwrite some of them when testing with obscure command lines. | |
4479 | # This happens at least with the AIX C compiler. | |
4480 | : > sub/conftest.c | |
4481 | for i in 1 2 3 4 5 6; do | |
4482 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4483 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4484 | # Solaris 8's {/usr,}/bin/sh. | |
4485 | touch sub/conftst$i.h | |
4486 | done | |
4487 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4488 | ||
4489 | case $depmode in | |
4490 | nosideeffect) | |
4491 | # after this tag, mechanisms are not by side-effect, so they'll | |
4492 | # only be used when explicitly requested | |
4493 | if test "x$enable_dependency_tracking" = xyes; then | |
4494 | continue | |
4495 | else | |
4496 | break | |
4497 | fi | |
4498 | ;; | |
4499 | none) break ;; | |
4500 | esac | |
4501 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4502 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4503 | # handle `-M -o', and we need to detect this. | |
4504 | if depmode=$depmode \ | |
4505 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4506 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4507 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4508 | >/dev/null 2>conftest.err && | |
4509 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4510 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4511 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4512 | # icc doesn't choke on unknown options, it will just issue warnings | |
4513 | # or remarks (even with -Werror). So we grep stderr for any message | |
4514 | # that says an option was ignored or not supported. | |
4515 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4516 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4517 | # The diagnosis changed in icc 8.0: | |
4518 | # icc: Command line remark: option '-MP' not supported | |
4519 | if (grep 'ignoring option' conftest.err || | |
4520 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4521 | am_cv_CC_dependencies_compiler_type=$depmode | |
4522 | break | |
4523 | fi | |
4524 | fi | |
4525 | done | |
4526 | ||
4527 | cd .. | |
4528 | rm -rf conftest.dir | |
4529 | else | |
4530 | am_cv_CC_dependencies_compiler_type=none | |
4531 | fi | |
4532 | ||
4533 | fi | |
a8b2ad8d | 4534 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4535 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 4536 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4537 | ||
0f6fe38c | 4538 | |
4539 | ||
4540 | if | |
ec1a68c8 | 4541 | test "x$enable_dependency_tracking" != xno \ |
4542 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4543 | am__fastdepCC_TRUE= | |
4544 | am__fastdepCC_FALSE='#' | |
4545 | else | |
4546 | am__fastdepCC_TRUE='#' | |
4547 | am__fastdepCC_FALSE= | |
4548 | fi | |
4549 | ||
4550 | ||
b3076f16 | 4551 | # Find a good install program. We prefer a C program (faster), |
4552 | # so one script is as good as another. But avoid the broken or | |
4553 | # incompatible versions: | |
4554 | # SysV /etc/install, /usr/sbin/install | |
4555 | # SunOS /usr/etc/install | |
4556 | # IRIX /sbin/install | |
4557 | # AIX /bin/install | |
4558 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4559 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4560 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4561 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4562 | # OS/2's system install, which has a completely different semantic | |
4563 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 4564 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4565 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 4566 | if test -z "$INSTALL"; then |
4567 | if test "${ac_cv_path_install+set}" = set; then | |
4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4569 | else | |
4570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4571 | for as_dir in $PATH | |
4572 | do | |
4573 | IFS=$as_save_IFS | |
4574 | test -z "$as_dir" && as_dir=. | |
4575 | # Account for people who put trailing slashes in PATH elements. | |
4576 | case $as_dir/ in | |
4577 | ./ | .// | /cC/* | \ | |
4578 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4579 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4580 | /usr/ucb/* ) ;; | |
4581 | *) | |
4582 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4583 | # Don't use installbsd from OSF since it installs stuff as root | |
4584 | # by default. | |
4585 | for ac_prog in ginstall scoinst install; do | |
4586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 4587 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 4588 | if test $ac_prog = install && |
4589 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4590 | # AIX install. It has an incompatible calling convention. | |
4591 | : | |
4592 | elif test $ac_prog = install && | |
4593 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4594 | # program-specific install script used by HP pwplus--don't use. | |
4595 | : | |
4596 | else | |
4597 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4598 | break 3 | |
4599 | fi | |
4600 | fi | |
4601 | done | |
4602 | done | |
4603 | ;; | |
4604 | esac | |
4605 | done | |
a8b2ad8d | 4606 | IFS=$as_save_IFS |
b3076f16 | 4607 | |
4608 | ||
4609 | fi | |
4610 | if test "${ac_cv_path_install+set}" = set; then | |
4611 | INSTALL=$ac_cv_path_install | |
4612 | else | |
a8b2ad8d | 4613 | # As a last resort, use the slow shell script. Don't cache a |
4614 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 4615 | # break other packages using the cache if that directory is |
a8b2ad8d | 4616 | # removed, or if the value is a relative name. |
b3076f16 | 4617 | INSTALL=$ac_install_sh |
4618 | fi | |
4619 | fi | |
a8b2ad8d | 4620 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4621 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 4622 | |
4623 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4624 | # It thinks the first close brace ends the variable substitution. | |
4625 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4626 | ||
4627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4628 | ||
4629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4630 | ||
0f6fe38c | 4631 | |
35305a49 | 4632 | if test -n "$ac_tool_prefix"; then |
4633 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4634 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a8b2ad8d | 4635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4637 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
2f61d1d7 | 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4639 | else | |
35305a49 | 4640 | if test -n "$RANLIB"; then |
4641 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4642 | else | |
2f61d1d7 | 4643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4644 | for as_dir in $PATH | |
4645 | do | |
4646 | IFS=$as_save_IFS | |
4647 | test -z "$as_dir" && as_dir=. | |
35305a49 | 4648 | for ac_exec_ext in '' $ac_executable_extensions; do |
0bd0bef6 | 4649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4650 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4652 | break 2 | |
2f61d1d7 | 4653 | fi |
35305a49 | 4654 | done |
2f61d1d7 | 4655 | done |
a8b2ad8d | 4656 | IFS=$as_save_IFS |
2f61d1d7 | 4657 | |
b3076f16 | 4658 | fi |
35305a49 | 4659 | fi |
4660 | RANLIB=$ac_cv_prog_RANLIB | |
4661 | if test -n "$RANLIB"; then | |
a8b2ad8d | 4662 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4663 | echo "${ECHO_T}$RANLIB" >&6; } | |
b3076f16 | 4664 | else |
a8b2ad8d | 4665 | { echo "$as_me:$LINENO: result: no" >&5 |
4666 | echo "${ECHO_T}no" >&6; } | |
2f61d1d7 | 4667 | fi |
2f61d1d7 | 4668 | |
a8b2ad8d | 4669 | |
b3076f16 | 4670 | fi |
35305a49 | 4671 | if test -z "$ac_cv_prog_RANLIB"; then |
4672 | ac_ct_RANLIB=$RANLIB | |
4673 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4674 | set dummy ranlib; ac_word=$2 | |
a8b2ad8d | 4675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4677 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2f61d1d7 | 4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4679 | else | |
35305a49 | 4680 | if test -n "$ac_ct_RANLIB"; then |
4681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f61d1d7 | 4682 | else |
35305a49 | 4683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4684 | for as_dir in $PATH | |
4685 | do | |
4686 | IFS=$as_save_IFS | |
4687 | test -z "$as_dir" && as_dir=. | |
4688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 4689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4690 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4692 | break 2 | |
4693 | fi | |
4694 | done | |
4695 | done | |
a8b2ad8d | 4696 | IFS=$as_save_IFS |
35305a49 | 4697 | |
b3076f16 | 4698 | fi |
2f61d1d7 | 4699 | fi |
35305a49 | 4700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4701 | if test -n "$ac_ct_RANLIB"; then | |
a8b2ad8d | 4702 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4703 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
b3076f16 | 4704 | else |
a8b2ad8d | 4705 | { echo "$as_me:$LINENO: result: no" >&5 |
4706 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4707 | fi |
4708 | ||
a8b2ad8d | 4709 | if test "x$ac_ct_RANLIB" = x; then |
4710 | RANLIB=":" | |
4711 | else | |
4712 | case $cross_compiling:$ac_tool_warned in | |
4713 | yes:) | |
4714 | { echo "$as_me:$LINENO: 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." >&5 | |
4717 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4718 | whose name does not start with the host triplet. If you think this | |
4719 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4720 | ac_tool_warned=yes ;; | |
4721 | esac | |
4722 | RANLIB=$ac_ct_RANLIB | |
4723 | fi | |
2f61d1d7 | 4724 | else |
35305a49 | 4725 | RANLIB="$ac_cv_prog_RANLIB" |
b3076f16 | 4726 | fi |
2f61d1d7 | 4727 | |
0f6fe38c | 4728 | |
4729 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4730 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
4731 | LN_S=$as_ln_s | |
4732 | if test "$LN_S" = "ln -s"; then | |
4733 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4734 | echo "${ECHO_T}yes" >&6; } | |
2f61d1d7 | 4735 | else |
0f6fe38c | 4736 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4737 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
2f61d1d7 | 4738 | fi |
4739 | ||
0f6fe38c | 4740 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4741 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4742 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4743 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
4744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f61d1d7 | 4745 | else |
0f6fe38c | 4746 | cat >conftest.make <<\_ACEOF |
4747 | SHELL = /bin/sh | |
4748 | all: | |
4749 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4750 | _ACEOF | |
4751 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4752 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4753 | *@@@%%%=?*=@@@%%%*) | |
4754 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4755 | *) | |
4756 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4757 | esac | |
4758 | rm -f conftest.make | |
35305a49 | 4759 | fi |
0f6fe38c | 4760 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4761 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4762 | echo "${ECHO_T}yes" >&6; } | |
4763 | SET_MAKE= | |
35305a49 | 4764 | else |
0f6fe38c | 4765 | { echo "$as_me:$LINENO: result: no" >&5 |
4766 | echo "${ECHO_T}no" >&6; } | |
4767 | SET_MAKE="MAKE=${MAKE-make}" | |
2f61d1d7 | 4768 | fi |
2f61d1d7 | 4769 | |
0f6fe38c | 4770 | ac_ext=c |
4771 | ac_cpp='$CPP $CPPFLAGS' | |
4772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4775 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4776 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
4777 | # On Suns, sometimes $CPP names a directory. | |
4778 | if test -n "$CPP" && test -d "$CPP"; then | |
4779 | CPP= | |
4780 | fi | |
4781 | if test -z "$CPP"; then | |
4782 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff3b058a | 4784 | else |
0f6fe38c | 4785 | # Double quotes because CPP needs to be expanded |
4786 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4787 | do | |
4788 | ac_preproc_ok=false | |
4789 | for ac_c_preproc_warn_flag in '' yes | |
ff3b058a | 4790 | do |
0f6fe38c | 4791 | # Use a header file that comes with gcc, so configuring glibc |
4792 | # with a fresh cross-compiler works. | |
4793 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4794 | # <limits.h> exists even on freestanding compilers. | |
4795 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4796 | # not just through cpp. "Syntax error" is here to catch this case. | |
4797 | cat >conftest.$ac_ext <<_ACEOF | |
4798 | /* confdefs.h. */ | |
4799 | _ACEOF | |
4800 | cat confdefs.h >>conftest.$ac_ext | |
4801 | cat >>conftest.$ac_ext <<_ACEOF | |
4802 | /* end confdefs.h. */ | |
4803 | #ifdef __STDC__ | |
4804 | # include <limits.h> | |
4805 | #else | |
4806 | # include <assert.h> | |
4807 | #endif | |
4808 | Syntax error | |
4809 | _ACEOF | |
4810 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4811 | case "(($ac_try" in | |
4812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4813 | *) ac_try_echo=$ac_try;; | |
4814 | esac | |
4815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4817 | ac_status=$? | |
4818 | grep -v '^ *+' conftest.er1 >conftest.err | |
4819 | rm -f conftest.er1 | |
4820 | cat conftest.err >&5 | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4822 | (exit $ac_status); } >/dev/null && { |
4823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4824 | test ! -s conftest.err | |
4825 | }; then | |
0f6fe38c | 4826 | : |
4827 | else | |
4828 | echo "$as_me: failed program was:" >&5 | |
4829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4830 | ||
4831 | # Broken: fails on valid input. | |
4832 | continue | |
4833 | fi | |
4834 | ||
4835 | rm -f conftest.err conftest.$ac_ext | |
4836 | ||
4837 | # OK, works on sane cases. Now check whether nonexistent headers | |
4838 | # can be detected and how. | |
4839 | cat >conftest.$ac_ext <<_ACEOF | |
4840 | /* confdefs.h. */ | |
4841 | _ACEOF | |
4842 | cat confdefs.h >>conftest.$ac_ext | |
4843 | cat >>conftest.$ac_ext <<_ACEOF | |
4844 | /* end confdefs.h. */ | |
4845 | #include <ac_nonexistent.h> | |
4846 | _ACEOF | |
4847 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4848 | case "(($ac_try" in | |
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 | *) ac_try_echo=$ac_try;; | |
4851 | esac | |
4852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4853 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4854 | ac_status=$? | |
4855 | grep -v '^ *+' conftest.er1 >conftest.err | |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4859 | (exit $ac_status); } >/dev/null && { |
4860 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4861 | test ! -s conftest.err | |
4862 | }; then | |
0f6fe38c | 4863 | # Broken: success on invalid input. |
4864 | continue | |
4865 | else | |
4866 | echo "$as_me: failed program was:" >&5 | |
4867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4868 | ||
4869 | # Passes both tests. | |
4870 | ac_preproc_ok=: | |
4871 | break | |
4872 | fi | |
4873 | ||
4874 | rm -f conftest.err conftest.$ac_ext | |
4875 | ||
ff3b058a | 4876 | done |
0f6fe38c | 4877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4878 | rm -f conftest.err conftest.$ac_ext | |
4879 | if $ac_preproc_ok; then | |
4880 | break | |
4881 | fi | |
4882 | ||
4883 | done | |
4884 | ac_cv_prog_CPP=$CPP | |
4885 | ||
4886 | fi | |
4887 | CPP=$ac_cv_prog_CPP | |
4888 | else | |
4889 | ac_cv_prog_CPP=$CPP | |
4890 | fi | |
4891 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
4892 | echo "${ECHO_T}$CPP" >&6; } | |
4893 | ac_preproc_ok=false | |
4894 | for ac_c_preproc_warn_flag in '' yes | |
4895 | do | |
4896 | # Use a header file that comes with gcc, so configuring glibc | |
4897 | # with a fresh cross-compiler works. | |
4898 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4899 | # <limits.h> exists even on freestanding compilers. | |
4900 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4901 | # not just through cpp. "Syntax error" is here to catch this case. | |
4902 | cat >conftest.$ac_ext <<_ACEOF | |
4903 | /* confdefs.h. */ | |
4904 | _ACEOF | |
4905 | cat confdefs.h >>conftest.$ac_ext | |
4906 | cat >>conftest.$ac_ext <<_ACEOF | |
4907 | /* end confdefs.h. */ | |
4908 | #ifdef __STDC__ | |
4909 | # include <limits.h> | |
4910 | #else | |
4911 | # include <assert.h> | |
4912 | #endif | |
4913 | Syntax error | |
4914 | _ACEOF | |
4915 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4916 | case "(($ac_try" in | |
4917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4918 | *) ac_try_echo=$ac_try;; | |
4919 | esac | |
4920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4921 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4922 | ac_status=$? | |
4923 | grep -v '^ *+' conftest.er1 >conftest.err | |
4924 | rm -f conftest.er1 | |
4925 | cat conftest.err >&5 | |
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4927 | (exit $ac_status); } >/dev/null && { |
4928 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4929 | test ! -s conftest.err | |
4930 | }; then | |
0f6fe38c | 4931 | : |
4932 | else | |
4933 | echo "$as_me: failed program was:" >&5 | |
4934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4935 | ||
4936 | # Broken: fails on valid input. | |
4937 | continue | |
4938 | fi | |
4939 | ||
4940 | rm -f conftest.err conftest.$ac_ext | |
4941 | ||
4942 | # OK, works on sane cases. Now check whether nonexistent headers | |
4943 | # can be detected and how. | |
4944 | cat >conftest.$ac_ext <<_ACEOF | |
4945 | /* confdefs.h. */ | |
4946 | _ACEOF | |
4947 | cat confdefs.h >>conftest.$ac_ext | |
4948 | cat >>conftest.$ac_ext <<_ACEOF | |
4949 | /* end confdefs.h. */ | |
4950 | #include <ac_nonexistent.h> | |
4951 | _ACEOF | |
4952 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4953 | case "(($ac_try" in | |
4954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4955 | *) ac_try_echo=$ac_try;; | |
4956 | esac | |
4957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4959 | ac_status=$? | |
4960 | grep -v '^ *+' conftest.er1 >conftest.err | |
4961 | rm -f conftest.er1 | |
4962 | cat conftest.err >&5 | |
4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 4964 | (exit $ac_status); } >/dev/null && { |
4965 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4966 | test ! -s conftest.err | |
4967 | }; then | |
0f6fe38c | 4968 | # Broken: success on invalid input. |
4969 | continue | |
4970 | else | |
4971 | echo "$as_me: failed program was:" >&5 | |
4972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4973 | ||
4974 | # Passes both tests. | |
4975 | ac_preproc_ok=: | |
4976 | break | |
4977 | fi | |
ff3b058a | 4978 | |
0f6fe38c | 4979 | rm -f conftest.err conftest.$ac_ext |
4980 | ||
4981 | done | |
4982 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4983 | rm -f conftest.err conftest.$ac_ext | |
4984 | if $ac_preproc_ok; then | |
4985 | : | |
4986 | else | |
4987 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4988 | See \`config.log' for more details." >&5 | |
4989 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4990 | See \`config.log' for more details." >&2;} | |
4991 | { (exit 1); exit 1; }; } | |
2f61d1d7 | 4992 | fi |
ff3b058a | 4993 | |
0f6fe38c | 4994 | ac_ext=c |
4995 | ac_cpp='$CPP $CPPFLAGS' | |
4996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ff3b058a | 4999 | |
ff3b058a | 5000 | |
5001 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
5002 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
5003 | if test "${ac_cv_path_GREP+set}" = set; then | |
2f61d1d7 | 5004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5005 | else | |
ff3b058a | 5006 | # Extract the first word of "grep ggrep" to use in msg output |
5007 | if test -z "$GREP"; then | |
5008 | set dummy grep ggrep; ac_prog_name=$2 | |
5009 | if test "${ac_cv_path_GREP+set}" = set; then | |
5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5011 | else | |
5012 | ac_path_GREP_found=false | |
5013 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5015 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
a8b2ad8d | 5016 | do |
5017 | IFS=$as_save_IFS | |
5018 | test -z "$as_dir" && as_dir=. | |
5019 | for ac_prog in grep ggrep; do | |
5020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5021 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
0bd0bef6 | 5022 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
a8b2ad8d | 5023 | # Check for GNU ac_path_GREP and select it if it is found. |
5024 | # Check for GNU $ac_path_GREP | |
5025 | case `"$ac_path_GREP" --version 2>&1` in | |
5026 | *GNU*) | |
5027 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5028 | *) | |
5029 | ac_count=0 | |
5030 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5031 | while : | |
5032 | do | |
5033 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5034 | mv "conftest.tmp" "conftest.in" | |
5035 | cp "conftest.in" "conftest.nl" | |
5036 | echo 'GREP' >> "conftest.nl" | |
5037 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5038 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5039 | ac_count=`expr $ac_count + 1` | |
5040 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5041 | # Best one so far, save it but keep looking for a better one | |
5042 | ac_cv_path_GREP="$ac_path_GREP" | |
5043 | ac_path_GREP_max=$ac_count | |
5044 | fi | |
5045 | # 10*(2^10) chars as input seems more than enough | |
5046 | test $ac_count -gt 10 && break | |
5047 | done | |
5048 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5049 | esac | |
5050 | ||
5051 | ||
5052 | $ac_path_GREP_found && break 3 | |
5053 | done | |
5054 | done | |
5055 | ||
5056 | done | |
5057 | IFS=$as_save_IFS | |
5058 | ||
5059 | ||
5060 | fi | |
5061 | ||
5062 | GREP="$ac_cv_path_GREP" | |
5063 | if test -z "$GREP"; then | |
5064 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5065 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5066 | { (exit 1); exit 1; }; } | |
5067 | fi | |
5068 | ||
5069 | else | |
5070 | ac_cv_path_GREP=$GREP | |
5071 | fi | |
5072 | ||
5073 | ||
5074 | fi | |
5075 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
5076 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
5077 | GREP="$ac_cv_path_GREP" | |
5078 | ||
5079 | ||
5080 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
5081 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
5082 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5084 | else | |
5085 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5086 | then ac_cv_path_EGREP="$GREP -E" | |
5087 | else | |
5088 | # Extract the first word of "egrep" to use in msg output | |
5089 | if test -z "$EGREP"; then | |
5090 | set dummy egrep; ac_prog_name=$2 | |
5091 | if test "${ac_cv_path_EGREP+set}" = set; then | |
2f61d1d7 | 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5093 | else | |
a8b2ad8d | 5094 | ac_path_EGREP_found=false |
5095 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5097 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5098 | do | |
5099 | IFS=$as_save_IFS | |
5100 | test -z "$as_dir" && as_dir=. | |
5101 | for ac_prog in egrep; do | |
5102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5103 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
0bd0bef6 | 5104 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
a8b2ad8d | 5105 | # Check for GNU ac_path_EGREP and select it if it is found. |
0f6fe38c | 5106 | # Check for GNU $ac_path_EGREP |
5107 | case `"$ac_path_EGREP" --version 2>&1` in | |
5108 | *GNU*) | |
5109 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5110 | *) | |
5111 | ac_count=0 | |
5112 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5113 | while : | |
5114 | do | |
5115 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5116 | mv "conftest.tmp" "conftest.in" | |
5117 | cp "conftest.in" "conftest.nl" | |
5118 | echo 'EGREP' >> "conftest.nl" | |
5119 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5120 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5121 | ac_count=`expr $ac_count + 1` | |
5122 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5123 | # Best one so far, save it but keep looking for a better one | |
5124 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5125 | ac_path_EGREP_max=$ac_count | |
5126 | fi | |
5127 | # 10*(2^10) chars as input seems more than enough | |
5128 | test $ac_count -gt 10 && break | |
5129 | done | |
5130 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5131 | esac | |
ff3b058a | 5132 | |
5133 | ||
0f6fe38c | 5134 | $ac_path_EGREP_found && break 3 |
5135 | done | |
5136 | done | |
ff3b058a | 5137 | |
0f6fe38c | 5138 | done |
5139 | IFS=$as_save_IFS | |
ff3b058a | 5140 | |
5141 | ||
0f6fe38c | 5142 | fi |
ff3b058a | 5143 | |
0f6fe38c | 5144 | EGREP="$ac_cv_path_EGREP" |
5145 | if test -z "$EGREP"; then | |
5146 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5147 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5148 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 5149 | fi |
5150 | ||
5151 | else | |
0f6fe38c | 5152 | ac_cv_path_EGREP=$EGREP |
a8b2ad8d | 5153 | fi |
0f6fe38c | 5154 | |
5155 | ||
5156 | fi | |
2f61d1d7 | 5157 | fi |
0f6fe38c | 5158 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5159 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
5160 | EGREP="$ac_cv_path_EGREP" | |
5161 | ||
b3076f16 | 5162 | |
5163 | if test $ac_cv_c_compiler_gnu = yes; then | |
a8b2ad8d | 5164 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5165 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
b3076f16 | 5166 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
5167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5168 | else | |
5169 | ac_pattern="Autoconf.*'x'" | |
5170 | cat >conftest.$ac_ext <<_ACEOF | |
5171 | /* confdefs.h. */ | |
5172 | _ACEOF | |
5173 | cat confdefs.h >>conftest.$ac_ext | |
5174 | cat >>conftest.$ac_ext <<_ACEOF | |
5175 | /* end confdefs.h. */ | |
5176 | #include <sgtty.h> | |
5177 | Autoconf TIOCGETP | |
5178 | _ACEOF | |
5179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5180 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5181 | ac_cv_prog_gcc_traditional=yes | |
5182 | else | |
5183 | ac_cv_prog_gcc_traditional=no | |
5184 | fi | |
5185 | rm -f conftest* | |
5186 | ||
5187 | ||
5188 | if test $ac_cv_prog_gcc_traditional = no; then | |
5189 | cat >conftest.$ac_ext <<_ACEOF | |
5190 | /* confdefs.h. */ | |
5191 | _ACEOF | |
5192 | cat confdefs.h >>conftest.$ac_ext | |
5193 | cat >>conftest.$ac_ext <<_ACEOF | |
5194 | /* end confdefs.h. */ | |
5195 | #include <termio.h> | |
5196 | Autoconf TCGETA | |
5197 | _ACEOF | |
5198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5199 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5200 | ac_cv_prog_gcc_traditional=yes | |
5201 | fi | |
5202 | rm -f conftest* | |
5203 | ||
5204 | fi | |
5205 | fi | |
a8b2ad8d | 5206 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5207 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
b3076f16 | 5208 | if test $ac_cv_prog_gcc_traditional = yes; then |
5209 | CC="$CC -traditional" | |
5210 | fi | |
5211 | fi | |
5212 | ||
5b1166fd | 5213 | # Extract the first word of "gmake", so it can be a program name with args. |
5214 | set dummy gmake; ac_word=$2 | |
a8b2ad8d | 5215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5b1166fd | 5217 | if test "${ac_cv_prog_MAKER+set}" = set; then |
5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5219 | else | |
5220 | if test -n "$MAKER"; then | |
5221 | ac_cv_prog_MAKER="$MAKER" # Let the user override the test. | |
5222 | else | |
5223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5224 | for as_dir in $PATH | |
5225 | do | |
5226 | IFS=$as_save_IFS | |
5227 | test -z "$as_dir" && as_dir=. | |
5228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0bd0bef6 | 5229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5b1166fd | 5230 | ac_cv_prog_MAKER="gmake" |
5231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5232 | break 2 | |
5233 | fi | |
5234 | done | |
5235 | done | |
a8b2ad8d | 5236 | IFS=$as_save_IFS |
5b1166fd | 5237 | |
5238 | test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" | |
5239 | fi | |
5240 | fi | |
5241 | MAKER=$ac_cv_prog_MAKER | |
5242 | if test -n "$MAKER"; then | |
a8b2ad8d | 5243 | { echo "$as_me:$LINENO: result: $MAKER" >&5 |
5244 | echo "${ECHO_T}$MAKER" >&6; } | |
5b1166fd | 5245 | else |
a8b2ad8d | 5246 | { echo "$as_me:$LINENO: result: no" >&5 |
5247 | echo "${ECHO_T}no" >&6; } | |
5b1166fd | 5248 | fi |
5249 | ||
b3076f16 | 5250 | |
a8b2ad8d | 5251 | |
b3076f16 | 5252 | case $target in |
5253 | *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*) | |
5254 | ANSI_SRC="" | |
5255 | ;; | |
5256 | *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) | |
5257 | ANSI_SRC="" | |
b3076f16 | 5258 | ;; |
5259 | *-solaris*) | |
5260 | EXTRA_DEFINE="-D__SOLARIS__" | |
5261 | ANSI_SRC="-fno-builtin" | |
5262 | ;; | |
5263 | *-cygwin) | |
5264 | ANSI_SRC="-fno-builtin" | |
5265 | ;; | |
5266 | *-linux*) | |
5267 | EXTRA_DEFINE="-D_GNU_SOURCE" | |
5268 | ANSI_SRC="" | |
5269 | ;; | |
5270 | *) | |
5271 | ANSI_SRC="" | |
5272 | ;; | |
5273 | esac | |
5274 | CFLAGS="$CFLAGS $EXTRA_DEFINE" | |
5275 | ||
5276 | ||
a8b2ad8d | 5277 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
5278 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
b3076f16 | 5279 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
5280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5281 | else | |
5282 | ac_check_lib_save_LIBS=$LIBS | |
5283 | LIBS="-lsocket $LIBS" | |
5284 | cat >conftest.$ac_ext <<_ACEOF | |
5285 | /* confdefs.h. */ | |
5286 | _ACEOF | |
5287 | cat confdefs.h >>conftest.$ac_ext | |
5288 | cat >>conftest.$ac_ext <<_ACEOF | |
5289 | /* end confdefs.h. */ | |
5290 | ||
a8b2ad8d | 5291 | /* Override any GCC internal prototype to avoid an error. |
5292 | Use char because int might match the return type of a GCC | |
5293 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5294 | #ifdef __cplusplus |
5295 | extern "C" | |
5296 | #endif | |
b3076f16 | 5297 | char socket (); |
5298 | int | |
5299 | main () | |
5300 | { | |
a8b2ad8d | 5301 | return socket (); |
b3076f16 | 5302 | ; |
5303 | return 0; | |
5304 | } | |
5305 | _ACEOF | |
5306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5307 | if { (ac_try="$ac_link" |
5308 | case "(($ac_try" in | |
5309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5310 | *) ac_try_echo=$ac_try;; | |
5311 | esac | |
5312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5313 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5314 | ac_status=$? |
5315 | grep -v '^ *+' conftest.er1 >conftest.err | |
5316 | rm -f conftest.er1 | |
5317 | cat conftest.err >&5 | |
5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5319 | (exit $ac_status); } && { |
5320 | test -z "$ac_c_werror_flag" || | |
5321 | test ! -s conftest.err | |
5322 | } && test -s conftest$ac_exeext && | |
5323 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5324 | ac_cv_lib_socket_socket=yes |
5325 | else | |
5326 | echo "$as_me: failed program was:" >&5 | |
5327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5328 | ||
a8b2ad8d | 5329 | ac_cv_lib_socket_socket=no |
b3076f16 | 5330 | fi |
a8b2ad8d | 5331 | |
0bd0bef6 | 5332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5333 | conftest$ac_exeext conftest.$ac_ext |
5334 | LIBS=$ac_check_lib_save_LIBS | |
5335 | fi | |
a8b2ad8d | 5336 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
5337 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
b3076f16 | 5338 | if test $ac_cv_lib_socket_socket = yes; then |
5339 | cat >>confdefs.h <<_ACEOF | |
5340 | #define HAVE_LIBSOCKET 1 | |
5341 | _ACEOF | |
5342 | ||
5343 | LIBS="-lsocket $LIBS" | |
5344 | ||
5345 | fi | |
5346 | ||
5347 | ||
a8b2ad8d | 5348 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
5349 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
b3076f16 | 5350 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5352 | else | |
5353 | ac_check_lib_save_LIBS=$LIBS | |
5354 | LIBS="-lnsl $LIBS" | |
5355 | cat >conftest.$ac_ext <<_ACEOF | |
5356 | /* confdefs.h. */ | |
5357 | _ACEOF | |
5358 | cat confdefs.h >>conftest.$ac_ext | |
5359 | cat >>conftest.$ac_ext <<_ACEOF | |
5360 | /* end confdefs.h. */ | |
5361 | ||
a8b2ad8d | 5362 | /* Override any GCC internal prototype to avoid an error. |
5363 | Use char because int might match the return type of a GCC | |
5364 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5365 | #ifdef __cplusplus |
5366 | extern "C" | |
5367 | #endif | |
b3076f16 | 5368 | char gethostbyname (); |
5369 | int | |
5370 | main () | |
5371 | { | |
a8b2ad8d | 5372 | return gethostbyname (); |
b3076f16 | 5373 | ; |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5378 | if { (ac_try="$ac_link" |
5379 | case "(($ac_try" in | |
5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5381 | *) ac_try_echo=$ac_try;; | |
5382 | esac | |
5383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5384 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5385 | ac_status=$? |
5386 | grep -v '^ *+' conftest.er1 >conftest.err | |
5387 | rm -f conftest.er1 | |
5388 | cat conftest.err >&5 | |
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5390 | (exit $ac_status); } && { |
5391 | test -z "$ac_c_werror_flag" || | |
5392 | test ! -s conftest.err | |
5393 | } && test -s conftest$ac_exeext && | |
5394 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5395 | ac_cv_lib_nsl_gethostbyname=yes |
5396 | else | |
5397 | echo "$as_me: failed program was:" >&5 | |
5398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5399 | ||
a8b2ad8d | 5400 | ac_cv_lib_nsl_gethostbyname=no |
b3076f16 | 5401 | fi |
a8b2ad8d | 5402 | |
0bd0bef6 | 5403 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5404 | conftest$ac_exeext conftest.$ac_ext |
5405 | LIBS=$ac_check_lib_save_LIBS | |
5406 | fi | |
a8b2ad8d | 5407 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
5408 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
b3076f16 | 5409 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
5410 | cat >>confdefs.h <<_ACEOF | |
5411 | #define HAVE_LIBNSL 1 | |
5412 | _ACEOF | |
5413 | ||
5414 | LIBS="-lnsl $LIBS" | |
5415 | ||
5416 | fi | |
5417 | ||
5418 | ||
a8b2ad8d | 5419 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 |
5420 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | |
b3076f16 | 5421 | if test "${ac_cv_lib_m_main+set}" = set; then |
5422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5423 | else | |
5424 | ac_check_lib_save_LIBS=$LIBS | |
5425 | LIBS="-lm $LIBS" | |
5426 | cat >conftest.$ac_ext <<_ACEOF | |
5427 | /* confdefs.h. */ | |
5428 | _ACEOF | |
5429 | cat confdefs.h >>conftest.$ac_ext | |
5430 | cat >>conftest.$ac_ext <<_ACEOF | |
5431 | /* end confdefs.h. */ | |
5432 | ||
5433 | ||
5434 | int | |
5435 | main () | |
5436 | { | |
a8b2ad8d | 5437 | return main (); |
b3076f16 | 5438 | ; |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
5442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5443 | if { (ac_try="$ac_link" |
5444 | case "(($ac_try" in | |
5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5446 | *) ac_try_echo=$ac_try;; | |
5447 | esac | |
5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5449 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5450 | ac_status=$? |
5451 | grep -v '^ *+' conftest.er1 >conftest.err | |
5452 | rm -f conftest.er1 | |
5453 | cat conftest.err >&5 | |
5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5455 | (exit $ac_status); } && { |
5456 | test -z "$ac_c_werror_flag" || | |
5457 | test ! -s conftest.err | |
5458 | } && test -s conftest$ac_exeext && | |
5459 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 5460 | ac_cv_lib_m_main=yes |
5461 | else | |
5462 | echo "$as_me: failed program was:" >&5 | |
5463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464 | ||
a8b2ad8d | 5465 | ac_cv_lib_m_main=no |
b3076f16 | 5466 | fi |
a8b2ad8d | 5467 | |
0bd0bef6 | 5468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 5469 | conftest$ac_exeext conftest.$ac_ext |
5470 | LIBS=$ac_check_lib_save_LIBS | |
5471 | fi | |
a8b2ad8d | 5472 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
5473 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | |
b3076f16 | 5474 | if test $ac_cv_lib_m_main = yes; then |
5475 | cat >>confdefs.h <<_ACEOF | |
5476 | #define HAVE_LIBM 1 | |
5477 | _ACEOF | |
5478 | ||
5479 | LIBS="-lm $LIBS" | |
5480 | ||
5481 | fi | |
5482 | ||
5483 | ||
a8b2ad8d | 5484 | { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5 |
5485 | echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; } | |
21f6caee | 5486 | if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then |
5487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5488 | else | |
5489 | ac_check_lib_save_LIBS=$LIBS | |
5490 | LIBS="-lGeoIP $LIBS" | |
5491 | cat >conftest.$ac_ext <<_ACEOF | |
5492 | /* confdefs.h. */ | |
5493 | _ACEOF | |
5494 | cat confdefs.h >>conftest.$ac_ext | |
5495 | cat >>conftest.$ac_ext <<_ACEOF | |
5496 | /* end confdefs.h. */ | |
5497 | ||
a8b2ad8d | 5498 | /* Override any GCC internal prototype to avoid an error. |
5499 | Use char because int might match the return type of a GCC | |
5500 | builtin and then its argument prototype would still apply. */ | |
21f6caee | 5501 | #ifdef __cplusplus |
5502 | extern "C" | |
5503 | #endif | |
21f6caee | 5504 | char GeoIP_open (); |
5505 | int | |
5506 | main () | |
5507 | { | |
a8b2ad8d | 5508 | return GeoIP_open (); |
21f6caee | 5509 | ; |
5510 | return 0; | |
5511 | } | |
5512 | _ACEOF | |
5513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5514 | if { (ac_try="$ac_link" |
5515 | case "(($ac_try" in | |
5516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5517 | *) ac_try_echo=$ac_try;; | |
5518 | esac | |
5519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5520 | (eval "$ac_link") 2>conftest.er1 | |
21f6caee | 5521 | ac_status=$? |
5522 | grep -v '^ *+' conftest.er1 >conftest.err | |
5523 | rm -f conftest.er1 | |
5524 | cat conftest.err >&5 | |
5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5526 | (exit $ac_status); } && { |
5527 | test -z "$ac_c_werror_flag" || | |
5528 | test ! -s conftest.err | |
5529 | } && test -s conftest$ac_exeext && | |
5530 | $as_test_x conftest$ac_exeext; then | |
21f6caee | 5531 | ac_cv_lib_GeoIP_GeoIP_open=yes |
5532 | else | |
5533 | echo "$as_me: failed program was:" >&5 | |
5534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5535 | ||
a8b2ad8d | 5536 | ac_cv_lib_GeoIP_GeoIP_open=no |
21f6caee | 5537 | fi |
a8b2ad8d | 5538 | |
0bd0bef6 | 5539 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
21f6caee | 5540 | conftest$ac_exeext conftest.$ac_ext |
5541 | LIBS=$ac_check_lib_save_LIBS | |
5542 | fi | |
a8b2ad8d | 5543 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 |
5544 | echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; } | |
21f6caee | 5545 | if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then |
5546 | cat >>confdefs.h <<_ACEOF | |
5547 | #define HAVE_LIBGEOIP 1 | |
5548 | _ACEOF | |
5549 | ||
5550 | LIBS="-lGeoIP $LIBS" | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | ||
a8b2ad8d | 5555 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5556 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
b3076f16 | 5557 | if test "${ac_cv_header_stdc+set}" = set; then |
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5559 | else | |
5560 | cat >conftest.$ac_ext <<_ACEOF | |
5561 | /* confdefs.h. */ | |
5562 | _ACEOF | |
5563 | cat confdefs.h >>conftest.$ac_ext | |
5564 | cat >>conftest.$ac_ext <<_ACEOF | |
5565 | /* end confdefs.h. */ | |
5566 | #include <stdlib.h> | |
5567 | #include <stdarg.h> | |
5568 | #include <string.h> | |
5569 | #include <float.h> | |
5570 | ||
5571 | int | |
5572 | main () | |
5573 | { | |
5574 | ||
5575 | ; | |
5576 | return 0; | |
5577 | } | |
5578 | _ACEOF | |
5579 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5580 | if { (ac_try="$ac_compile" |
5581 | case "(($ac_try" in | |
5582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5583 | *) ac_try_echo=$ac_try;; | |
5584 | esac | |
5585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5586 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5587 | ac_status=$? |
5588 | grep -v '^ *+' conftest.er1 >conftest.err | |
5589 | rm -f conftest.er1 | |
5590 | cat conftest.err >&5 | |
5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5592 | (exit $ac_status); } && { |
5593 | test -z "$ac_c_werror_flag" || | |
5594 | test ! -s conftest.err | |
5595 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5596 | ac_cv_header_stdc=yes |
5597 | else | |
5598 | echo "$as_me: failed program was:" >&5 | |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
a8b2ad8d | 5601 | ac_cv_header_stdc=no |
b3076f16 | 5602 | fi |
a8b2ad8d | 5603 | |
5604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5605 | |
5606 | if test $ac_cv_header_stdc = yes; then | |
5607 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5608 | cat >conftest.$ac_ext <<_ACEOF | |
5609 | /* confdefs.h. */ | |
5610 | _ACEOF | |
5611 | cat confdefs.h >>conftest.$ac_ext | |
5612 | cat >>conftest.$ac_ext <<_ACEOF | |
5613 | /* end confdefs.h. */ | |
5614 | #include <string.h> | |
5615 | ||
5616 | _ACEOF | |
5617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5618 | $EGREP "memchr" >/dev/null 2>&1; then | |
5619 | : | |
5620 | else | |
5621 | ac_cv_header_stdc=no | |
5622 | fi | |
5623 | rm -f conftest* | |
5624 | ||
5625 | fi | |
5626 | ||
5627 | if test $ac_cv_header_stdc = yes; then | |
5628 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5629 | cat >conftest.$ac_ext <<_ACEOF | |
5630 | /* confdefs.h. */ | |
5631 | _ACEOF | |
5632 | cat confdefs.h >>conftest.$ac_ext | |
5633 | cat >>conftest.$ac_ext <<_ACEOF | |
5634 | /* end confdefs.h. */ | |
5635 | #include <stdlib.h> | |
5636 | ||
5637 | _ACEOF | |
5638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5639 | $EGREP "free" >/dev/null 2>&1; then | |
5640 | : | |
5641 | else | |
5642 | ac_cv_header_stdc=no | |
5643 | fi | |
5644 | rm -f conftest* | |
5645 | ||
5646 | fi | |
5647 | ||
5648 | if test $ac_cv_header_stdc = yes; then | |
5649 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5650 | if test "$cross_compiling" = yes; then | |
5651 | : | |
5652 | else | |
5653 | cat >conftest.$ac_ext <<_ACEOF | |
5654 | /* confdefs.h. */ | |
5655 | _ACEOF | |
5656 | cat confdefs.h >>conftest.$ac_ext | |
5657 | cat >>conftest.$ac_ext <<_ACEOF | |
5658 | /* end confdefs.h. */ | |
5659 | #include <ctype.h> | |
a8b2ad8d | 5660 | #include <stdlib.h> |
b3076f16 | 5661 | #if ((' ' & 0x0FF) == 0x020) |
5662 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5663 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5664 | #else | |
5665 | # define ISLOWER(c) \ | |
5666 | (('a' <= (c) && (c) <= 'i') \ | |
5667 | || ('j' <= (c) && (c) <= 'r') \ | |
5668 | || ('s' <= (c) && (c) <= 'z')) | |
5669 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5670 | #endif | |
5671 | ||
5672 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5673 | int | |
5674 | main () | |
5675 | { | |
5676 | int i; | |
5677 | for (i = 0; i < 256; i++) | |
5678 | if (XOR (islower (i), ISLOWER (i)) | |
5679 | || toupper (i) != TOUPPER (i)) | |
a8b2ad8d | 5680 | return 2; |
5681 | return 0; | |
b3076f16 | 5682 | } |
5683 | _ACEOF | |
5684 | rm -f conftest$ac_exeext | |
a8b2ad8d | 5685 | if { (ac_try="$ac_link" |
5686 | case "(($ac_try" in | |
5687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5688 | *) ac_try_echo=$ac_try;; | |
5689 | esac | |
5690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5691 | (eval "$ac_link") 2>&5 | |
b3076f16 | 5692 | ac_status=$? |
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 5695 | { (case "(($ac_try" in |
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5697 | *) ac_try_echo=$ac_try;; | |
5698 | esac | |
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5700 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5701 | ac_status=$? |
5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5703 | (exit $ac_status); }; }; then | |
5704 | : | |
5705 | else | |
5706 | echo "$as_me: program exited with status $ac_status" >&5 | |
5707 | echo "$as_me: failed program was:" >&5 | |
5708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5709 | ||
5710 | ( exit $ac_status ) | |
5711 | ac_cv_header_stdc=no | |
5712 | fi | |
a8b2ad8d | 5713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 5714 | fi |
a8b2ad8d | 5715 | |
5716 | ||
b3076f16 | 5717 | fi |
5718 | fi | |
a8b2ad8d | 5719 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5720 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
b3076f16 | 5721 | if test $ac_cv_header_stdc = yes; then |
5722 | ||
5723 | cat >>confdefs.h <<\_ACEOF | |
5724 | #define STDC_HEADERS 1 | |
5725 | _ACEOF | |
5726 | ||
5727 | fi | |
5728 | ||
5729 | ||
a8b2ad8d | 5730 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
5731 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
b3076f16 | 5732 | if test "${ac_cv_header_time+set}" = set; then |
5733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5734 | else | |
5735 | cat >conftest.$ac_ext <<_ACEOF | |
5736 | /* confdefs.h. */ | |
5737 | _ACEOF | |
5738 | cat confdefs.h >>conftest.$ac_ext | |
5739 | cat >>conftest.$ac_ext <<_ACEOF | |
5740 | /* end confdefs.h. */ | |
5741 | #include <sys/types.h> | |
5742 | #include <sys/time.h> | |
5743 | #include <time.h> | |
5744 | ||
5745 | int | |
5746 | main () | |
5747 | { | |
5748 | if ((struct tm *) 0) | |
5749 | return 0; | |
5750 | ; | |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
5754 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5755 | if { (ac_try="$ac_compile" |
5756 | case "(($ac_try" in | |
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5758 | *) ac_try_echo=$ac_try;; | |
5759 | esac | |
5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5761 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5762 | ac_status=$? |
5763 | grep -v '^ *+' conftest.er1 >conftest.err | |
5764 | rm -f conftest.er1 | |
5765 | cat conftest.err >&5 | |
5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5767 | (exit $ac_status); } && { |
5768 | test -z "$ac_c_werror_flag" || | |
5769 | test ! -s conftest.err | |
5770 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5771 | ac_cv_header_time=yes |
5772 | else | |
5773 | echo "$as_me: failed program was:" >&5 | |
5774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5775 | ||
a8b2ad8d | 5776 | ac_cv_header_time=no |
b3076f16 | 5777 | fi |
a8b2ad8d | 5778 | |
5779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5780 | fi |
a8b2ad8d | 5781 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
5782 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
b3076f16 | 5783 | if test $ac_cv_header_time = yes; then |
5784 | ||
5785 | cat >>confdefs.h <<\_ACEOF | |
5786 | #define TIME_WITH_SYS_TIME 1 | |
5787 | _ACEOF | |
5788 | ||
5789 | fi | |
5790 | ||
a8b2ad8d | 5791 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5792 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
b3076f16 | 5793 | if test "${ac_cv_struct_tm+set}" = set; then |
5794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5795 | else | |
5796 | cat >conftest.$ac_ext <<_ACEOF | |
5797 | /* confdefs.h. */ | |
5798 | _ACEOF | |
5799 | cat confdefs.h >>conftest.$ac_ext | |
5800 | cat >>conftest.$ac_ext <<_ACEOF | |
5801 | /* end confdefs.h. */ | |
5802 | #include <sys/types.h> | |
5803 | #include <time.h> | |
5804 | ||
5805 | int | |
5806 | main () | |
5807 | { | |
0bd0bef6 | 5808 | struct tm tm; |
5809 | int *p = &tm.tm_sec; | |
5810 | return !p; | |
ff3b058a | 5811 | ; |
5812 | return 0; | |
5813 | } | |
5814 | _ACEOF | |
5815 | rm -f conftest.$ac_objext | |
5816 | if { (ac_try="$ac_compile" | |
5817 | case "(($ac_try" in | |
a8b2ad8d | 5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5819 | *) ac_try_echo=$ac_try;; | |
5820 | esac | |
5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
ff3b058a | 5822 | (eval "$ac_compile") 2>conftest.er1 |
35305a49 | 5823 | ac_status=$? |
ff3b058a | 5824 | grep -v '^ *+' conftest.er1 >conftest.err |
5825 | rm -f conftest.er1 | |
5826 | cat conftest.err >&5 | |
35305a49 | 5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0bd0bef6 | 5828 | (exit $ac_status); } && { |
5829 | test -z "$ac_c_werror_flag" || | |
5830 | test ! -s conftest.err | |
5831 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 5832 | ac_cv_struct_tm=time.h |
5833 | else | |
5834 | echo "$as_me: failed program was:" >&5 | |
5835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5836 | ||
5837 | ac_cv_struct_tm=sys/time.h | |
5838 | fi | |
5839 | ||
5840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5841 | fi | |
5842 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
5843 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
5844 | if test $ac_cv_struct_tm = sys/time.h; then | |
5845 | ||
5846 | cat >>confdefs.h <<\_ACEOF | |
5847 | #define TM_IN_SYS_TIME 1 | |
5848 | _ACEOF | |
5849 | ||
5850 | fi | |
5851 | ||
5852 | ||
5853 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5864 | inttypes.h stdint.h unistd.h | |
5865 | do | |
5866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5867 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5871 | else | |
5872 | cat >conftest.$ac_ext <<_ACEOF | |
5873 | /* confdefs.h. */ | |
5874 | _ACEOF | |
5875 | cat confdefs.h >>conftest.$ac_ext | |
5876 | cat >>conftest.$ac_ext <<_ACEOF | |
5877 | /* end confdefs.h. */ | |
5878 | $ac_includes_default | |
5879 | ||
5880 | #include <$ac_header> | |
5881 | _ACEOF | |
5882 | rm -f conftest.$ac_objext | |
5883 | if { (ac_try="$ac_compile" | |
5884 | case "(($ac_try" in | |
5885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5886 | *) ac_try_echo=$ac_try;; | |
5887 | esac | |
5888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5889 | (eval "$ac_compile") 2>conftest.er1 | |
5890 | ac_status=$? | |
5891 | grep -v '^ *+' conftest.er1 >conftest.err | |
5892 | rm -f conftest.er1 | |
5893 | cat conftest.err >&5 | |
5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5895 | (exit $ac_status); } && { |
5896 | test -z "$ac_c_werror_flag" || | |
5897 | test ! -s conftest.err | |
5898 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 5899 | eval "$as_ac_Header=yes" |
35305a49 | 5900 | else |
5901 | echo "$as_me: failed program was:" >&5 | |
5902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5903 | ||
0f6fe38c | 5904 | eval "$as_ac_Header=no" |
35305a49 | 5905 | fi |
a8b2ad8d | 5906 | |
5907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
35305a49 | 5908 | fi |
0f6fe38c | 5909 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5910 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5911 | echo "${ECHO_T}$ac_res" >&6; } | |
5912 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5913 | cat >>confdefs.h <<_ACEOF | |
5914 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35305a49 | 5915 | _ACEOF |
5916 | ||
5917 | fi | |
5918 | ||
0f6fe38c | 5919 | done |
35305a49 | 5920 | |
5921 | ||
b3076f16 | 5922 | |
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
21f6caee | 5942 | |
5943 | ||
0f6fe38c | 5944 | for ac_header in GeoIP.h GeoIPCity.h fcntl.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 |
b3076f16 | 5945 | do |
5946 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 5947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5948 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5950 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 5951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5952 | fi | |
a8b2ad8d | 5953 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5955 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 5956 | else |
5957 | # Is the header compilable? | |
a8b2ad8d | 5958 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5959 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 5960 | cat >conftest.$ac_ext <<_ACEOF |
5961 | /* confdefs.h. */ | |
5962 | _ACEOF | |
5963 | cat confdefs.h >>conftest.$ac_ext | |
5964 | cat >>conftest.$ac_ext <<_ACEOF | |
5965 | /* end confdefs.h. */ | |
5966 | $ac_includes_default | |
5967 | #include <$ac_header> | |
5968 | _ACEOF | |
5969 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5970 | if { (ac_try="$ac_compile" |
5971 | case "(($ac_try" in | |
5972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5973 | *) ac_try_echo=$ac_try;; | |
5974 | esac | |
5975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5976 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5977 | ac_status=$? |
5978 | grep -v '^ *+' conftest.er1 >conftest.err | |
5979 | rm -f conftest.er1 | |
5980 | cat conftest.err >&5 | |
5981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 5982 | (exit $ac_status); } && { |
5983 | test -z "$ac_c_werror_flag" || | |
5984 | test ! -s conftest.err | |
5985 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 5986 | ac_header_compiler=yes |
5987 | else | |
5988 | echo "$as_me: failed program was:" >&5 | |
5989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5990 | ||
a8b2ad8d | 5991 | ac_header_compiler=no |
b3076f16 | 5992 | fi |
a8b2ad8d | 5993 | |
5994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5995 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5996 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 5997 | |
5998 | # Is the header present? | |
a8b2ad8d | 5999 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 6001 | cat >conftest.$ac_ext <<_ACEOF |
6002 | /* confdefs.h. */ | |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
6006 | /* end confdefs.h. */ | |
6007 | #include <$ac_header> | |
6008 | _ACEOF | |
a8b2ad8d | 6009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6010 | case "(($ac_try" in | |
6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6012 | *) ac_try_echo=$ac_try;; | |
6013 | esac | |
6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 6016 | ac_status=$? |
6017 | grep -v '^ *+' conftest.er1 >conftest.err | |
6018 | rm -f conftest.er1 | |
6019 | cat conftest.err >&5 | |
6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6021 | (exit $ac_status); } >/dev/null && { |
6022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6023 | test ! -s conftest.err | |
6024 | }; then | |
b3076f16 | 6025 | ac_header_preproc=yes |
6026 | else | |
6027 | echo "$as_me: failed program was:" >&5 | |
6028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6029 | ||
6030 | ac_header_preproc=no | |
6031 | fi | |
a8b2ad8d | 6032 | |
b3076f16 | 6033 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 6034 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6035 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 6036 | |
6037 | # So? What about this header? | |
6038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6039 | yes:no: ) | |
6040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6044 | ac_header_preproc=yes | |
6045 | ;; | |
6046 | no:yes:* ) | |
6047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 6059 | ( cat <<\_ASBOX |
63c95a47 | 6060 | ## -------------------------------------------------- ## |
6061 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
6062 | ## -------------------------------------------------- ## | |
b3076f16 | 6063 | _ASBOX |
a8b2ad8d | 6064 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 6065 | ;; |
6066 | esac | |
a8b2ad8d | 6067 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6069 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6071 | else | |
6072 | eval "$as_ac_Header=\$ac_header_preproc" | |
6073 | fi | |
a8b2ad8d | 6074 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6076 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6077 | |
6078 | fi | |
6079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6080 | cat >>confdefs.h <<_ACEOF | |
6081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6082 | _ACEOF | |
6083 | ||
6084 | fi | |
6085 | ||
6086 | done | |
6087 | ||
6088 | ||
a8b2ad8d | 6089 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
6090 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
2f61d1d7 | 6091 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
b3076f16 | 6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6093 | else | |
6094 | cat >conftest.$ac_ext <<_ACEOF | |
6095 | /* confdefs.h. */ | |
6096 | _ACEOF | |
6097 | cat confdefs.h >>conftest.$ac_ext | |
6098 | cat >>conftest.$ac_ext <<_ACEOF | |
6099 | /* end confdefs.h. */ | |
2f61d1d7 | 6100 | #include <sys/types.h> |
6101 | #include <sys/socket.h> | |
b3076f16 | 6102 | |
6103 | int | |
6104 | main () | |
6105 | { | |
2f61d1d7 | 6106 | static struct sockaddr ac_aggr; |
6107 | if (ac_aggr.sa_len) | |
b3076f16 | 6108 | return 0; |
6109 | ; | |
6110 | return 0; | |
6111 | } | |
6112 | _ACEOF | |
6113 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6114 | if { (ac_try="$ac_compile" |
6115 | case "(($ac_try" in | |
6116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6117 | *) ac_try_echo=$ac_try;; | |
6118 | esac | |
6119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6120 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6121 | ac_status=$? |
6122 | grep -v '^ *+' conftest.er1 >conftest.err | |
6123 | rm -f conftest.er1 | |
6124 | cat conftest.err >&5 | |
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6126 | (exit $ac_status); } && { |
6127 | test -z "$ac_c_werror_flag" || | |
6128 | test ! -s conftest.err | |
6129 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6130 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6131 | else |
6132 | echo "$as_me: failed program was:" >&5 | |
6133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6134 | ||
a8b2ad8d | 6135 | cat >conftest.$ac_ext <<_ACEOF |
b3076f16 | 6136 | /* confdefs.h. */ |
6137 | _ACEOF | |
6138 | cat confdefs.h >>conftest.$ac_ext | |
6139 | cat >>conftest.$ac_ext <<_ACEOF | |
6140 | /* end confdefs.h. */ | |
2f61d1d7 | 6141 | #include <sys/types.h> |
6142 | #include <sys/socket.h> | |
b3076f16 | 6143 | |
6144 | int | |
6145 | main () | |
6146 | { | |
2f61d1d7 | 6147 | static struct sockaddr ac_aggr; |
6148 | if (sizeof ac_aggr.sa_len) | |
b3076f16 | 6149 | return 0; |
6150 | ; | |
6151 | return 0; | |
6152 | } | |
6153 | _ACEOF | |
6154 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6155 | if { (ac_try="$ac_compile" |
6156 | case "(($ac_try" in | |
6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6158 | *) ac_try_echo=$ac_try;; | |
6159 | esac | |
6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6161 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6162 | ac_status=$? |
6163 | grep -v '^ *+' conftest.er1 >conftest.err | |
6164 | rm -f conftest.er1 | |
6165 | cat conftest.err >&5 | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6167 | (exit $ac_status); } && { |
6168 | test -z "$ac_c_werror_flag" || | |
6169 | test ! -s conftest.err | |
6170 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6171 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6172 | else |
6173 | echo "$as_me: failed program was:" >&5 | |
6174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6175 | ||
a8b2ad8d | 6176 | ac_cv_member_struct_sockaddr_sa_len=no |
b3076f16 | 6177 | fi |
a8b2ad8d | 6178 | |
6179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6180 | fi |
a8b2ad8d | 6181 | |
6182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6183 | fi |
a8b2ad8d | 6184 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
6185 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
2f61d1d7 | 6186 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
b3076f16 | 6187 | |
6188 | cat >>confdefs.h <<\_ACEOF | |
2f61d1d7 | 6189 | #define HAVE_SOCKADDR_SA_LEN |
6190 | _ACEOF | |
6191 | ||
6192 | fi | |
6193 | ||
a8b2ad8d | 6194 | { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5 |
6195 | echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; } | |
2f61d1d7 | 6196 | if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then |
6197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6198 | else | |
6199 | cat >conftest.$ac_ext <<_ACEOF | |
6200 | /* confdefs.h. */ | |
6201 | _ACEOF | |
6202 | cat confdefs.h >>conftest.$ac_ext | |
6203 | cat >>conftest.$ac_ext <<_ACEOF | |
6204 | /* end confdefs.h. */ | |
6205 | #include <sys/types.h> | |
6206 | #include <sys/socket.h> | |
6207 | #include <netdb.h> | |
6208 | ||
6209 | int | |
6210 | main () | |
6211 | { | |
6212 | static struct addrinfo ac_aggr; | |
6213 | if (ac_aggr.ai_flags) | |
6214 | return 0; | |
6215 | ; | |
6216 | return 0; | |
6217 | } | |
6218 | _ACEOF | |
6219 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6220 | if { (ac_try="$ac_compile" |
6221 | case "(($ac_try" in | |
6222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6223 | *) ac_try_echo=$ac_try;; | |
6224 | esac | |
6225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6226 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6227 | ac_status=$? |
6228 | grep -v '^ *+' conftest.er1 >conftest.err | |
6229 | rm -f conftest.er1 | |
6230 | cat conftest.err >&5 | |
6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6232 | (exit $ac_status); } && { |
6233 | test -z "$ac_c_werror_flag" || | |
6234 | test ! -s conftest.err | |
6235 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6236 | ac_cv_member_struct_addrinfo_ai_flags=yes |
6237 | else | |
6238 | echo "$as_me: failed program was:" >&5 | |
6239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6240 | ||
a8b2ad8d | 6241 | cat >conftest.$ac_ext <<_ACEOF |
2f61d1d7 | 6242 | /* confdefs.h. */ |
6243 | _ACEOF | |
6244 | cat confdefs.h >>conftest.$ac_ext | |
6245 | cat >>conftest.$ac_ext <<_ACEOF | |
6246 | /* end confdefs.h. */ | |
6247 | #include <sys/types.h> | |
6248 | #include <sys/socket.h> | |
6249 | #include <netdb.h> | |
6250 | ||
6251 | int | |
6252 | main () | |
6253 | { | |
6254 | static struct addrinfo ac_aggr; | |
6255 | if (sizeof ac_aggr.ai_flags) | |
6256 | return 0; | |
6257 | ; | |
6258 | return 0; | |
6259 | } | |
b3076f16 | 6260 | _ACEOF |
2f61d1d7 | 6261 | rm -f conftest.$ac_objext |
a8b2ad8d | 6262 | if { (ac_try="$ac_compile" |
6263 | case "(($ac_try" in | |
6264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6265 | *) ac_try_echo=$ac_try;; | |
6266 | esac | |
6267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6268 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6269 | ac_status=$? |
6270 | grep -v '^ *+' conftest.er1 >conftest.err | |
6271 | rm -f conftest.er1 | |
6272 | cat conftest.err >&5 | |
6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6274 | (exit $ac_status); } && { |
6275 | test -z "$ac_c_werror_flag" || | |
6276 | test ! -s conftest.err | |
6277 | } && test -s conftest.$ac_objext; then | |
2f61d1d7 | 6278 | ac_cv_member_struct_addrinfo_ai_flags=yes |
6279 | else | |
6280 | echo "$as_me: failed program was:" >&5 | |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 6282 | |
a8b2ad8d | 6283 | ac_cv_member_struct_addrinfo_ai_flags=no |
2f61d1d7 | 6284 | fi |
a8b2ad8d | 6285 | |
6286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f61d1d7 | 6287 | fi |
a8b2ad8d | 6288 | |
6289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6290 | fi |
a8b2ad8d | 6291 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5 |
6292 | echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; } | |
2f61d1d7 | 6293 | if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then |
6294 | ||
6295 | cat >>confdefs.h <<\_ACEOF | |
6296 | #define HAVE_STRUCT_ADDRINFO | |
6297 | _ACEOF | |
b3076f16 | 6298 | |
2f61d1d7 | 6299 | fi |
b3076f16 | 6300 | |
6301 | ||
21f6caee | 6302 | |
0f6fe38c | 6303 | for ac_func in gettimeofday |
6304 | do | |
6305 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6306 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6307 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6308 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6310 | else | |
6311 | cat >conftest.$ac_ext <<_ACEOF | |
6312 | /* confdefs.h. */ | |
6313 | _ACEOF | |
6314 | cat confdefs.h >>conftest.$ac_ext | |
6315 | cat >>conftest.$ac_ext <<_ACEOF | |
6316 | /* end confdefs.h. */ | |
6317 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6319 | #define $ac_func innocuous_$ac_func | |
b3076f16 | 6320 | |
0f6fe38c | 6321 | /* System header to define __stub macros and hopefully few prototypes, |
6322 | which can conflict with char $ac_func (); below. | |
6323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6324 | <limits.h> exists even on freestanding compilers. */ | |
b3076f16 | 6325 | |
0f6fe38c | 6326 | #ifdef __STDC__ |
6327 | # include <limits.h> | |
6328 | #else | |
6329 | # include <assert.h> | |
6330 | #endif | |
b3076f16 | 6331 | |
0f6fe38c | 6332 | #undef $ac_func |
b3076f16 | 6333 | |
0f6fe38c | 6334 | /* Override any GCC internal prototype to avoid an error. |
6335 | Use char because int might match the return type of a GCC | |
6336 | builtin and then its argument prototype would still apply. */ | |
6337 | #ifdef __cplusplus | |
6338 | extern "C" | |
6339 | #endif | |
6340 | char $ac_func (); | |
6341 | /* The GNU C library defines this for functions which it implements | |
6342 | to always fail with ENOSYS. Some functions are actually named | |
6343 | something starting with __ and the normal name is an alias. */ | |
6344 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6345 | choke me | |
6346 | #endif | |
b3076f16 | 6347 | |
0f6fe38c | 6348 | int |
6349 | main () | |
6350 | { | |
6351 | return $ac_func (); | |
6352 | ; | |
6353 | return 0; | |
6354 | } | |
6355 | _ACEOF | |
6356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6357 | if { (ac_try="$ac_link" | |
6358 | case "(($ac_try" in | |
6359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6360 | *) ac_try_echo=$ac_try;; | |
6361 | esac | |
6362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6363 | (eval "$ac_link") 2>conftest.er1 | |
6364 | ac_status=$? | |
6365 | grep -v '^ *+' conftest.er1 >conftest.err | |
6366 | rm -f conftest.er1 | |
6367 | cat conftest.err >&5 | |
6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6369 | (exit $ac_status); } && { |
6370 | test -z "$ac_c_werror_flag" || | |
6371 | test ! -s conftest.err | |
6372 | } && test -s conftest$ac_exeext && | |
6373 | $as_test_x conftest$ac_exeext; then | |
0f6fe38c | 6374 | eval "$as_ac_var=yes" |
6375 | else | |
6376 | echo "$as_me: failed program was:" >&5 | |
6377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 6378 | |
0f6fe38c | 6379 | eval "$as_ac_var=no" |
6380 | fi | |
a8b2ad8d | 6381 | |
0bd0bef6 | 6382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
0f6fe38c | 6383 | conftest$ac_exeext conftest.$ac_ext |
6384 | fi | |
6385 | ac_res=`eval echo '${'$as_ac_var'}'` | |
6386 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6387 | echo "${ECHO_T}$ac_res" >&6; } | |
6388 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6389 | cat >>confdefs.h <<_ACEOF | |
6390 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6391 | _ACEOF | |
b3076f16 | 6392 | |
0f6fe38c | 6393 | fi |
6394 | done | |
b3076f16 | 6395 | |
0f6fe38c | 6396 | if test $ac_cv_func_gettimeofday = no; then |
b3076f16 | 6397 | |
0f6fe38c | 6398 | for ac_func in ftime |
b3076f16 | 6399 | do |
6400 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6401 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6403 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6405 | else | |
6406 | cat >conftest.$ac_ext <<_ACEOF | |
6407 | /* confdefs.h. */ | |
6408 | _ACEOF | |
6409 | cat confdefs.h >>conftest.$ac_ext | |
6410 | cat >>conftest.$ac_ext <<_ACEOF | |
6411 | /* end confdefs.h. */ | |
6412 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6413 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6414 | #define $ac_func innocuous_$ac_func | |
6415 | ||
6416 | /* System header to define __stub macros and hopefully few prototypes, | |
6417 | which can conflict with char $ac_func (); below. | |
6418 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6419 | <limits.h> exists even on freestanding compilers. */ | |
6420 | ||
6421 | #ifdef __STDC__ | |
6422 | # include <limits.h> | |
6423 | #else | |
6424 | # include <assert.h> | |
6425 | #endif | |
6426 | ||
6427 | #undef $ac_func | |
6428 | ||
a8b2ad8d | 6429 | /* Override any GCC internal prototype to avoid an error. |
6430 | Use char because int might match the return type of a GCC | |
6431 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6432 | #ifdef __cplusplus |
6433 | extern "C" | |
b3076f16 | 6434 | #endif |
b3076f16 | 6435 | char $ac_func (); |
6436 | /* The GNU C library defines this for functions which it implements | |
6437 | to always fail with ENOSYS. Some functions are actually named | |
6438 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6439 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6440 | choke me |
b3076f16 | 6441 | #endif |
6442 | ||
6443 | int | |
6444 | main () | |
6445 | { | |
a8b2ad8d | 6446 | return $ac_func (); |
b3076f16 | 6447 | ; |
6448 | return 0; | |
ff3b058a | 6449 | } |
6450 | _ACEOF | |
6451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6452 | if { (ac_try="$ac_link" | |
6453 | case "(($ac_try" in | |
a8b2ad8d | 6454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6455 | *) ac_try_echo=$ac_try;; | |
6456 | esac | |
6457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
ff3b058a | 6458 | (eval "$ac_link") 2>conftest.er1 |
b3076f16 | 6459 | ac_status=$? |
ff3b058a | 6460 | grep -v '^ *+' conftest.er1 >conftest.err |
6461 | rm -f conftest.er1 | |
6462 | cat conftest.err >&5 | |
b3076f16 | 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0bd0bef6 | 6464 | (exit $ac_status); } && { |
6465 | test -z "$ac_c_werror_flag" || | |
6466 | test ! -s conftest.err | |
6467 | } && test -s conftest$ac_exeext && | |
6468 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6469 | eval "$as_ac_var=yes" |
6470 | else | |
6471 | echo "$as_me: failed program was:" >&5 | |
6472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6473 | ||
a8b2ad8d | 6474 | eval "$as_ac_var=no" |
b3076f16 | 6475 | fi |
a8b2ad8d | 6476 | |
0bd0bef6 | 6477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6478 | conftest$ac_exeext conftest.$ac_ext |
6479 | fi | |
a8b2ad8d | 6480 | ac_res=`eval echo '${'$as_ac_var'}'` |
6481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6482 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6484 | cat >>confdefs.h <<_ACEOF | |
6485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6486 | _ACEOF | |
6487 | ||
0f6fe38c | 6488 | else |
6489 | { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5 | |
6490 | echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;} | |
6491 | { (exit 1); exit 1; }; } | |
b3076f16 | 6492 | fi |
6493 | done | |
6494 | ||
0f6fe38c | 6495 | fi |
6496 | ||
b3076f16 | 6497 | |
6498 | ||
0f6fe38c | 6499 | |
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf | |
b3076f16 | 6512 | do |
6513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6514 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6516 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6518 | else | |
6519 | cat >conftest.$ac_ext <<_ACEOF | |
6520 | /* confdefs.h. */ | |
6521 | _ACEOF | |
6522 | cat confdefs.h >>conftest.$ac_ext | |
6523 | cat >>conftest.$ac_ext <<_ACEOF | |
6524 | /* end confdefs.h. */ | |
6525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6527 | #define $ac_func innocuous_$ac_func | |
6528 | ||
6529 | /* System header to define __stub macros and hopefully few prototypes, | |
6530 | which can conflict with char $ac_func (); below. | |
6531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6532 | <limits.h> exists even on freestanding compilers. */ | |
6533 | ||
6534 | #ifdef __STDC__ | |
6535 | # include <limits.h> | |
6536 | #else | |
6537 | # include <assert.h> | |
6538 | #endif | |
6539 | ||
6540 | #undef $ac_func | |
6541 | ||
a8b2ad8d | 6542 | /* Override any GCC internal prototype to avoid an error. |
6543 | Use char because int might match the return type of a GCC | |
6544 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6545 | #ifdef __cplusplus |
6546 | extern "C" | |
b3076f16 | 6547 | #endif |
b3076f16 | 6548 | char $ac_func (); |
6549 | /* The GNU C library defines this for functions which it implements | |
6550 | to always fail with ENOSYS. Some functions are actually named | |
6551 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6552 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6553 | choke me |
b3076f16 | 6554 | #endif |
6555 | ||
6556 | int | |
6557 | main () | |
6558 | { | |
a8b2ad8d | 6559 | return $ac_func (); |
b3076f16 | 6560 | ; |
6561 | return 0; | |
6562 | } | |
6563 | _ACEOF | |
6564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6565 | if { (ac_try="$ac_link" |
6566 | case "(($ac_try" in | |
6567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6568 | *) ac_try_echo=$ac_try;; | |
6569 | esac | |
6570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6571 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6572 | ac_status=$? |
6573 | grep -v '^ *+' conftest.er1 >conftest.err | |
6574 | rm -f conftest.er1 | |
6575 | cat conftest.err >&5 | |
6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6577 | (exit $ac_status); } && { |
6578 | test -z "$ac_c_werror_flag" || | |
6579 | test ! -s conftest.err | |
6580 | } && test -s conftest$ac_exeext && | |
6581 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6582 | eval "$as_ac_var=yes" |
6583 | else | |
6584 | echo "$as_me: failed program was:" >&5 | |
6585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6586 | ||
a8b2ad8d | 6587 | eval "$as_ac_var=no" |
b3076f16 | 6588 | fi |
a8b2ad8d | 6589 | |
0bd0bef6 | 6590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6591 | conftest$ac_exeext conftest.$ac_ext |
6592 | fi | |
a8b2ad8d | 6593 | ac_res=`eval echo '${'$as_ac_var'}'` |
6594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6595 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6596 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6597 | cat >>confdefs.h <<_ACEOF | |
6598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6599 | _ACEOF | |
6600 | ||
6601 | fi | |
6602 | done | |
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | ||
0f6fe38c | 6610 | |
6611 | for ac_func in select socket strcspn strspn strtod strtoul | |
b3076f16 | 6612 | do |
6613 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6614 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6615 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6616 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6618 | else | |
6619 | cat >conftest.$ac_ext <<_ACEOF | |
6620 | /* confdefs.h. */ | |
6621 | _ACEOF | |
6622 | cat confdefs.h >>conftest.$ac_ext | |
6623 | cat >>conftest.$ac_ext <<_ACEOF | |
6624 | /* end confdefs.h. */ | |
6625 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6627 | #define $ac_func innocuous_$ac_func | |
6628 | ||
6629 | /* System header to define __stub macros and hopefully few prototypes, | |
6630 | which can conflict with char $ac_func (); below. | |
6631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6632 | <limits.h> exists even on freestanding compilers. */ | |
6633 | ||
6634 | #ifdef __STDC__ | |
6635 | # include <limits.h> | |
6636 | #else | |
6637 | # include <assert.h> | |
6638 | #endif | |
6639 | ||
6640 | #undef $ac_func | |
6641 | ||
a8b2ad8d | 6642 | /* Override any GCC internal prototype to avoid an error. |
6643 | Use char because int might match the return type of a GCC | |
6644 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6645 | #ifdef __cplusplus |
6646 | extern "C" | |
b3076f16 | 6647 | #endif |
b3076f16 | 6648 | char $ac_func (); |
6649 | /* The GNU C library defines this for functions which it implements | |
6650 | to always fail with ENOSYS. Some functions are actually named | |
6651 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6652 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6653 | choke me |
b3076f16 | 6654 | #endif |
6655 | ||
6656 | int | |
6657 | main () | |
6658 | { | |
a8b2ad8d | 6659 | return $ac_func (); |
b3076f16 | 6660 | ; |
6661 | return 0; | |
6662 | } | |
6663 | _ACEOF | |
6664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6665 | if { (ac_try="$ac_link" |
6666 | case "(($ac_try" in | |
6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6668 | *) ac_try_echo=$ac_try;; | |
6669 | esac | |
6670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6671 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6672 | ac_status=$? |
6673 | grep -v '^ *+' conftest.er1 >conftest.err | |
6674 | rm -f conftest.er1 | |
6675 | cat conftest.err >&5 | |
6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6677 | (exit $ac_status); } && { |
6678 | test -z "$ac_c_werror_flag" || | |
6679 | test ! -s conftest.err | |
6680 | } && test -s conftest$ac_exeext && | |
6681 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6682 | eval "$as_ac_var=yes" |
6683 | else | |
6684 | echo "$as_me: failed program was:" >&5 | |
6685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6686 | ||
a8b2ad8d | 6687 | eval "$as_ac_var=no" |
b3076f16 | 6688 | fi |
a8b2ad8d | 6689 | |
0bd0bef6 | 6690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6691 | conftest$ac_exeext conftest.$ac_ext |
6692 | fi | |
a8b2ad8d | 6693 | ac_res=`eval echo '${'$as_ac_var'}'` |
6694 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6695 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6696 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6697 | cat >>confdefs.h <<_ACEOF | |
6698 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6699 | _ACEOF | |
6700 | ||
6701 | else | |
2f61d1d7 | 6702 | { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5 |
6703 | echo "$as_me: error: a required function was not found. X3 build will fail." >&2;} | |
b3076f16 | 6704 | { (exit 1); exit 1; }; } |
6705 | fi | |
6706 | done | |
6707 | ||
6708 | ||
6709 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6710 | # for constant arguments. Useless! | |
a8b2ad8d | 6711 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6712 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
b3076f16 | 6713 | if test "${ac_cv_working_alloca_h+set}" = set; then |
6714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6715 | else | |
6716 | cat >conftest.$ac_ext <<_ACEOF | |
6717 | /* confdefs.h. */ | |
6718 | _ACEOF | |
6719 | cat confdefs.h >>conftest.$ac_ext | |
6720 | cat >>conftest.$ac_ext <<_ACEOF | |
6721 | /* end confdefs.h. */ | |
6722 | #include <alloca.h> | |
6723 | int | |
6724 | main () | |
6725 | { | |
6726 | char *p = (char *) alloca (2 * sizeof (int)); | |
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_working_alloca_h=yes |
6751 | else | |
6752 | echo "$as_me: failed program was:" >&5 | |
6753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6754 | ||
a8b2ad8d | 6755 | ac_cv_working_alloca_h=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_working_alloca_h" >&5 |
6762 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
b3076f16 | 6763 | if test $ac_cv_working_alloca_h = yes; then |
6764 | ||
6765 | cat >>confdefs.h <<\_ACEOF | |
6766 | #define HAVE_ALLOCA_H 1 | |
6767 | _ACEOF | |
6768 | ||
6769 | fi | |
6770 | ||
a8b2ad8d | 6771 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6772 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
b3076f16 | 6773 | if test "${ac_cv_func_alloca_works+set}" = set; then |
6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6775 | else | |
6776 | cat >conftest.$ac_ext <<_ACEOF | |
6777 | /* confdefs.h. */ | |
6778 | _ACEOF | |
6779 | cat confdefs.h >>conftest.$ac_ext | |
6780 | cat >>conftest.$ac_ext <<_ACEOF | |
6781 | /* end confdefs.h. */ | |
6782 | #ifdef __GNUC__ | |
6783 | # define alloca __builtin_alloca | |
6784 | #else | |
6785 | # ifdef _MSC_VER | |
6786 | # include <malloc.h> | |
6787 | # define alloca _alloca | |
6788 | # else | |
0bd0bef6 | 6789 | # ifdef HAVE_ALLOCA_H |
b3076f16 | 6790 | # include <alloca.h> |
6791 | # else | |
6792 | # ifdef _AIX | |
6793 | #pragma alloca | |
6794 | # else | |
6795 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6796 | char *alloca (); | |
6797 | # endif | |
6798 | # endif | |
6799 | # endif | |
6800 | # endif | |
6801 | #endif | |
6802 | ||
6803 | int | |
6804 | main () | |
6805 | { | |
6806 | char *p = (char *) alloca (1); | |
a8b2ad8d | 6807 | if (p) return 0; |
b3076f16 | 6808 | ; |
6809 | return 0; | |
6810 | } | |
6811 | _ACEOF | |
6812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6813 | if { (ac_try="$ac_link" |
6814 | case "(($ac_try" in | |
6815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6816 | *) ac_try_echo=$ac_try;; | |
6817 | esac | |
6818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6819 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6820 | ac_status=$? |
6821 | grep -v '^ *+' conftest.er1 >conftest.err | |
6822 | rm -f conftest.er1 | |
6823 | cat conftest.err >&5 | |
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6825 | (exit $ac_status); } && { |
6826 | test -z "$ac_c_werror_flag" || | |
6827 | test ! -s conftest.err | |
6828 | } && test -s conftest$ac_exeext && | |
6829 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6830 | ac_cv_func_alloca_works=yes |
6831 | else | |
6832 | echo "$as_me: failed program was:" >&5 | |
6833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6834 | ||
a8b2ad8d | 6835 | ac_cv_func_alloca_works=no |
b3076f16 | 6836 | fi |
a8b2ad8d | 6837 | |
0bd0bef6 | 6838 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6839 | conftest$ac_exeext conftest.$ac_ext |
6840 | fi | |
a8b2ad8d | 6841 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6842 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
b3076f16 | 6843 | |
6844 | if test $ac_cv_func_alloca_works = yes; then | |
6845 | ||
6846 | cat >>confdefs.h <<\_ACEOF | |
6847 | #define HAVE_ALLOCA 1 | |
6848 | _ACEOF | |
6849 | ||
6850 | else | |
6851 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6852 | # that cause trouble. Some versions do not even contain alloca or | |
6853 | # contain a buggy version. If you still want to use their alloca, | |
6854 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6855 | ||
a8b2ad8d | 6856 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b3076f16 | 6857 | |
6858 | cat >>confdefs.h <<\_ACEOF | |
6859 | #define C_ALLOCA 1 | |
6860 | _ACEOF | |
6861 | ||
6862 | ||
a8b2ad8d | 6863 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6864 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
b3076f16 | 6865 | if test "${ac_cv_os_cray+set}" = set; then |
6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6867 | else | |
6868 | cat >conftest.$ac_ext <<_ACEOF | |
6869 | /* confdefs.h. */ | |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
a8b2ad8d | 6874 | #if defined CRAY && ! defined CRAY2 |
b3076f16 | 6875 | webecray |
6876 | #else | |
6877 | wenotbecray | |
6878 | #endif | |
6879 | ||
6880 | _ACEOF | |
6881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6882 | $EGREP "webecray" >/dev/null 2>&1; then | |
6883 | ac_cv_os_cray=yes | |
6884 | else | |
6885 | ac_cv_os_cray=no | |
6886 | fi | |
6887 | rm -f conftest* | |
6888 | ||
6889 | fi | |
a8b2ad8d | 6890 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6891 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
b3076f16 | 6892 | if test $ac_cv_os_cray = yes; then |
6893 | for ac_func in _getb67 GETB67 getb67; do | |
6894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6895 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6897 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6899 | else | |
6900 | cat >conftest.$ac_ext <<_ACEOF | |
6901 | /* confdefs.h. */ | |
6902 | _ACEOF | |
6903 | cat confdefs.h >>conftest.$ac_ext | |
6904 | cat >>conftest.$ac_ext <<_ACEOF | |
6905 | /* end confdefs.h. */ | |
6906 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6907 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6908 | #define $ac_func innocuous_$ac_func | |
6909 | ||
6910 | /* System header to define __stub macros and hopefully few prototypes, | |
6911 | which can conflict with char $ac_func (); below. | |
6912 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6913 | <limits.h> exists even on freestanding compilers. */ | |
6914 | ||
6915 | #ifdef __STDC__ | |
6916 | # include <limits.h> | |
6917 | #else | |
6918 | # include <assert.h> | |
6919 | #endif | |
6920 | ||
6921 | #undef $ac_func | |
6922 | ||
a8b2ad8d | 6923 | /* Override any GCC internal prototype to avoid an error. |
6924 | Use char because int might match the return type of a GCC | |
6925 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6926 | #ifdef __cplusplus |
6927 | extern "C" | |
b3076f16 | 6928 | #endif |
b3076f16 | 6929 | char $ac_func (); |
6930 | /* The GNU C library defines this for functions which it implements | |
6931 | to always fail with ENOSYS. Some functions are actually named | |
6932 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6933 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6934 | choke me |
b3076f16 | 6935 | #endif |
6936 | ||
6937 | int | |
6938 | main () | |
6939 | { | |
a8b2ad8d | 6940 | return $ac_func (); |
b3076f16 | 6941 | ; |
6942 | return 0; | |
6943 | } | |
6944 | _ACEOF | |
6945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6946 | if { (ac_try="$ac_link" |
6947 | case "(($ac_try" in | |
6948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6949 | *) ac_try_echo=$ac_try;; | |
6950 | esac | |
6951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6952 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6953 | ac_status=$? |
6954 | grep -v '^ *+' conftest.er1 >conftest.err | |
6955 | rm -f conftest.er1 | |
6956 | cat conftest.err >&5 | |
6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 6958 | (exit $ac_status); } && { |
6959 | test -z "$ac_c_werror_flag" || | |
6960 | test ! -s conftest.err | |
6961 | } && test -s conftest$ac_exeext && | |
6962 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 6963 | eval "$as_ac_var=yes" |
6964 | else | |
6965 | echo "$as_me: failed program was:" >&5 | |
6966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6967 | ||
a8b2ad8d | 6968 | eval "$as_ac_var=no" |
b3076f16 | 6969 | fi |
a8b2ad8d | 6970 | |
0bd0bef6 | 6971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 6972 | conftest$ac_exeext conftest.$ac_ext |
6973 | fi | |
a8b2ad8d | 6974 | ac_res=`eval echo '${'$as_ac_var'}'` |
6975 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6976 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6977 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6978 | ||
6979 | cat >>confdefs.h <<_ACEOF | |
6980 | #define CRAY_STACKSEG_END $ac_func | |
6981 | _ACEOF | |
6982 | ||
6983 | break | |
6984 | fi | |
6985 | ||
6986 | done | |
6987 | fi | |
6988 | ||
a8b2ad8d | 6989 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6990 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
b3076f16 | 6991 | if test "${ac_cv_c_stack_direction+set}" = set; then |
6992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6993 | else | |
6994 | if test "$cross_compiling" = yes; then | |
6995 | ac_cv_c_stack_direction=0 | |
6996 | else | |
6997 | cat >conftest.$ac_ext <<_ACEOF | |
6998 | /* confdefs.h. */ | |
6999 | _ACEOF | |
7000 | cat confdefs.h >>conftest.$ac_ext | |
7001 | cat >>conftest.$ac_ext <<_ACEOF | |
7002 | /* end confdefs.h. */ | |
a8b2ad8d | 7003 | $ac_includes_default |
b3076f16 | 7004 | int |
7005 | find_stack_direction () | |
7006 | { | |
7007 | static char *addr = 0; | |
7008 | auto char dummy; | |
7009 | if (addr == 0) | |
7010 | { | |
7011 | addr = &dummy; | |
7012 | return find_stack_direction (); | |
7013 | } | |
7014 | else | |
7015 | return (&dummy > addr) ? 1 : -1; | |
7016 | } | |
7017 | ||
7018 | int | |
7019 | main () | |
7020 | { | |
a8b2ad8d | 7021 | return find_stack_direction () < 0; |
b3076f16 | 7022 | } |
7023 | _ACEOF | |
7024 | rm -f conftest$ac_exeext | |
a8b2ad8d | 7025 | if { (ac_try="$ac_link" |
7026 | case "(($ac_try" in | |
7027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7028 | *) ac_try_echo=$ac_try;; | |
7029 | esac | |
7030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7031 | (eval "$ac_link") 2>&5 | |
b3076f16 | 7032 | ac_status=$? |
7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 7035 | { (case "(($ac_try" in |
7036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7037 | *) ac_try_echo=$ac_try;; | |
7038 | esac | |
7039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7040 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7041 | ac_status=$? |
7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7043 | (exit $ac_status); }; }; then | |
7044 | ac_cv_c_stack_direction=1 | |
7045 | else | |
7046 | echo "$as_me: program exited with status $ac_status" >&5 | |
7047 | echo "$as_me: failed program was:" >&5 | |
7048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7049 | ||
7050 | ( exit $ac_status ) | |
7051 | ac_cv_c_stack_direction=-1 | |
7052 | fi | |
a8b2ad8d | 7053 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 7054 | fi |
a8b2ad8d | 7055 | |
7056 | ||
b3076f16 | 7057 | fi |
a8b2ad8d | 7058 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7059 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
b3076f16 | 7060 | |
7061 | cat >>confdefs.h <<_ACEOF | |
7062 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7063 | _ACEOF | |
7064 | ||
7065 | ||
7066 | fi | |
7067 | ||
7068 | ||
7069 | ||
7070 | for ac_header in stdlib.h unistd.h | |
7071 | do | |
7072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 7073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7074 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7078 | fi | |
a8b2ad8d | 7079 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7080 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7081 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7082 | else |
7083 | # Is the header compilable? | |
a8b2ad8d | 7084 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 7086 | cat >conftest.$ac_ext <<_ACEOF |
7087 | /* confdefs.h. */ | |
7088 | _ACEOF | |
7089 | cat confdefs.h >>conftest.$ac_ext | |
7090 | cat >>conftest.$ac_ext <<_ACEOF | |
7091 | /* end confdefs.h. */ | |
7092 | $ac_includes_default | |
7093 | #include <$ac_header> | |
7094 | _ACEOF | |
7095 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7096 | if { (ac_try="$ac_compile" |
7097 | case "(($ac_try" in | |
7098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7099 | *) ac_try_echo=$ac_try;; | |
7100 | esac | |
7101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7102 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7103 | ac_status=$? |
7104 | grep -v '^ *+' conftest.er1 >conftest.err | |
7105 | rm -f conftest.er1 | |
7106 | cat conftest.err >&5 | |
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7108 | (exit $ac_status); } && { |
7109 | test -z "$ac_c_werror_flag" || | |
7110 | test ! -s conftest.err | |
7111 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7112 | ac_header_compiler=yes |
7113 | else | |
7114 | echo "$as_me: failed program was:" >&5 | |
7115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7116 | ||
a8b2ad8d | 7117 | ac_header_compiler=no |
b3076f16 | 7118 | fi |
a8b2ad8d | 7119 | |
7120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7121 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7122 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 7123 | |
7124 | # Is the header present? | |
a8b2ad8d | 7125 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 7127 | cat >conftest.$ac_ext <<_ACEOF |
7128 | /* confdefs.h. */ | |
7129 | _ACEOF | |
7130 | cat confdefs.h >>conftest.$ac_ext | |
7131 | cat >>conftest.$ac_ext <<_ACEOF | |
7132 | /* end confdefs.h. */ | |
7133 | #include <$ac_header> | |
7134 | _ACEOF | |
a8b2ad8d | 7135 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7136 | case "(($ac_try" in | |
7137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7138 | *) ac_try_echo=$ac_try;; | |
7139 | esac | |
7140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 7142 | ac_status=$? |
7143 | grep -v '^ *+' conftest.er1 >conftest.err | |
7144 | rm -f conftest.er1 | |
7145 | cat conftest.err >&5 | |
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7147 | (exit $ac_status); } >/dev/null && { |
7148 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7149 | test ! -s conftest.err | |
7150 | }; then | |
b3076f16 | 7151 | ac_header_preproc=yes |
7152 | else | |
7153 | echo "$as_me: failed program was:" >&5 | |
7154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7155 | ||
7156 | ac_header_preproc=no | |
7157 | fi | |
a8b2ad8d | 7158 | |
b3076f16 | 7159 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 7160 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7161 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 7162 | |
7163 | # So? What about this header? | |
7164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7165 | yes:no: ) | |
7166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7170 | ac_header_preproc=yes | |
7171 | ;; | |
7172 | no:yes:* ) | |
7173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 7185 | ( cat <<\_ASBOX |
63c95a47 | 7186 | ## -------------------------------------------------- ## |
7187 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
7188 | ## -------------------------------------------------- ## | |
b3076f16 | 7189 | _ASBOX |
a8b2ad8d | 7190 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 7191 | ;; |
7192 | esac | |
a8b2ad8d | 7193 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7197 | else | |
7198 | eval "$as_ac_Header=\$ac_header_preproc" | |
7199 | fi | |
a8b2ad8d | 7200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7202 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7203 | |
7204 | fi | |
7205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7206 | cat >>confdefs.h <<_ACEOF | |
7207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7208 | _ACEOF | |
7209 | ||
7210 | fi | |
7211 | ||
7212 | done | |
7213 | ||
7214 | ||
7215 | for ac_func in getpagesize | |
7216 | do | |
7217 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 7218 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7219 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7220 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7222 | else | |
7223 | cat >conftest.$ac_ext <<_ACEOF | |
7224 | /* confdefs.h. */ | |
7225 | _ACEOF | |
7226 | cat confdefs.h >>conftest.$ac_ext | |
7227 | cat >>conftest.$ac_ext <<_ACEOF | |
7228 | /* end confdefs.h. */ | |
7229 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7231 | #define $ac_func innocuous_$ac_func | |
7232 | ||
7233 | /* System header to define __stub macros and hopefully few prototypes, | |
7234 | which can conflict with char $ac_func (); below. | |
7235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7236 | <limits.h> exists even on freestanding compilers. */ | |
7237 | ||
7238 | #ifdef __STDC__ | |
7239 | # include <limits.h> | |
7240 | #else | |
7241 | # include <assert.h> | |
7242 | #endif | |
7243 | ||
7244 | #undef $ac_func | |
7245 | ||
a8b2ad8d | 7246 | /* Override any GCC internal prototype to avoid an error. |
7247 | Use char because int might match the return type of a GCC | |
7248 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7249 | #ifdef __cplusplus |
7250 | extern "C" | |
b3076f16 | 7251 | #endif |
b3076f16 | 7252 | char $ac_func (); |
7253 | /* The GNU C library defines this for functions which it implements | |
7254 | to always fail with ENOSYS. Some functions are actually named | |
7255 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7256 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7257 | choke me |
b3076f16 | 7258 | #endif |
7259 | ||
7260 | int | |
7261 | main () | |
7262 | { | |
a8b2ad8d | 7263 | return $ac_func (); |
b3076f16 | 7264 | ; |
7265 | return 0; | |
7266 | } | |
7267 | _ACEOF | |
7268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7269 | if { (ac_try="$ac_link" |
7270 | case "(($ac_try" in | |
7271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7272 | *) ac_try_echo=$ac_try;; | |
7273 | esac | |
7274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7275 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7276 | ac_status=$? |
7277 | grep -v '^ *+' conftest.er1 >conftest.err | |
7278 | rm -f conftest.er1 | |
7279 | cat conftest.err >&5 | |
7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7281 | (exit $ac_status); } && { |
7282 | test -z "$ac_c_werror_flag" || | |
7283 | test ! -s conftest.err | |
7284 | } && test -s conftest$ac_exeext && | |
7285 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7286 | eval "$as_ac_var=yes" |
7287 | else | |
7288 | echo "$as_me: failed program was:" >&5 | |
7289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7290 | ||
a8b2ad8d | 7291 | eval "$as_ac_var=no" |
b3076f16 | 7292 | fi |
a8b2ad8d | 7293 | |
0bd0bef6 | 7294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7295 | conftest$ac_exeext conftest.$ac_ext |
7296 | fi | |
a8b2ad8d | 7297 | ac_res=`eval echo '${'$as_ac_var'}'` |
7298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7299 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7300 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7301 | cat >>confdefs.h <<_ACEOF | |
7302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7303 | _ACEOF | |
7304 | ||
7305 | fi | |
7306 | done | |
7307 | ||
a8b2ad8d | 7308 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7309 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
b3076f16 | 7310 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
7311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7312 | else | |
7313 | if test "$cross_compiling" = yes; then | |
7314 | ac_cv_func_mmap_fixed_mapped=no | |
7315 | else | |
7316 | cat >conftest.$ac_ext <<_ACEOF | |
7317 | /* confdefs.h. */ | |
7318 | _ACEOF | |
7319 | cat confdefs.h >>conftest.$ac_ext | |
7320 | cat >>conftest.$ac_ext <<_ACEOF | |
7321 | /* end confdefs.h. */ | |
7322 | $ac_includes_default | |
7323 | /* malloc might have been renamed as rpl_malloc. */ | |
7324 | #undef malloc | |
7325 | ||
7326 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7327 | Here is a matrix of mmap possibilities: | |
7328 | mmap private not fixed | |
7329 | mmap private fixed at somewhere currently unmapped | |
7330 | mmap private fixed at somewhere already mapped | |
7331 | mmap shared not fixed | |
7332 | mmap shared fixed at somewhere currently unmapped | |
7333 | mmap shared fixed at somewhere already mapped | |
7334 | For private mappings, we should verify that changes cannot be read() | |
7335 | back from the file, nor mmap's back from the file at a different | |
7336 | address. (There have been systems where private was not correctly | |
7337 | implemented like the infamous i386 svr4.0, and systems where the | |
7338 | VM page cache was not coherent with the file system buffer cache | |
7339 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7340 | For shared mappings, we should conversely verify that changes get | |
7341 | propagated back to all the places they're supposed to be. | |
7342 | ||
7343 | Grep wants private fixed already mapped. | |
7344 | The main things grep needs to know about mmap are: | |
7345 | * does it exist and is it safe to write into the mmap'd area | |
7346 | * how to use it (BSD variants) */ | |
7347 | ||
7348 | #include <fcntl.h> | |
7349 | #include <sys/mman.h> | |
7350 | ||
0bd0bef6 | 7351 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
b3076f16 | 7352 | char *malloc (); |
7353 | #endif | |
7354 | ||
7355 | /* This mess was copied from the GNU getpagesize.h. */ | |
0bd0bef6 | 7356 | #ifndef HAVE_GETPAGESIZE |
b3076f16 | 7357 | /* Assume that all systems that can run configure have sys/param.h. */ |
0bd0bef6 | 7358 | # ifndef HAVE_SYS_PARAM_H |
b3076f16 | 7359 | # define HAVE_SYS_PARAM_H 1 |
7360 | # endif | |
7361 | ||
7362 | # ifdef _SC_PAGESIZE | |
7363 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7364 | # else /* no _SC_PAGESIZE */ | |
0bd0bef6 | 7365 | # ifdef HAVE_SYS_PARAM_H |
b3076f16 | 7366 | # include <sys/param.h> |
7367 | # ifdef EXEC_PAGESIZE | |
7368 | # define getpagesize() EXEC_PAGESIZE | |
7369 | # else /* no EXEC_PAGESIZE */ | |
7370 | # ifdef NBPG | |
7371 | # define getpagesize() NBPG * CLSIZE | |
7372 | # ifndef CLSIZE | |
7373 | # define CLSIZE 1 | |
7374 | # endif /* no CLSIZE */ | |
7375 | # else /* no NBPG */ | |
7376 | # ifdef NBPC | |
7377 | # define getpagesize() NBPC | |
7378 | # else /* no NBPC */ | |
7379 | # ifdef PAGESIZE | |
7380 | # define getpagesize() PAGESIZE | |
7381 | # endif /* PAGESIZE */ | |
7382 | # endif /* no NBPC */ | |
7383 | # endif /* no NBPG */ | |
7384 | # endif /* no EXEC_PAGESIZE */ | |
7385 | # else /* no HAVE_SYS_PARAM_H */ | |
7386 | # define getpagesize() 8192 /* punt totally */ | |
7387 | # endif /* no HAVE_SYS_PARAM_H */ | |
7388 | # endif /* no _SC_PAGESIZE */ | |
7389 | ||
7390 | #endif /* no HAVE_GETPAGESIZE */ | |
7391 | ||
7392 | int | |
7393 | main () | |
7394 | { | |
7395 | char *data, *data2, *data3; | |
7396 | int i, pagesize; | |
7397 | int fd; | |
7398 | ||
7399 | pagesize = getpagesize (); | |
7400 | ||
7401 | /* First, make a file with some known garbage in it. */ | |
7402 | data = (char *) malloc (pagesize); | |
7403 | if (!data) | |
a8b2ad8d | 7404 | return 1; |
b3076f16 | 7405 | for (i = 0; i < pagesize; ++i) |
7406 | *(data + i) = rand (); | |
7407 | umask (0); | |
7408 | fd = creat ("conftest.mmap", 0600); | |
7409 | if (fd < 0) | |
a8b2ad8d | 7410 | return 1; |
b3076f16 | 7411 | if (write (fd, data, pagesize) != pagesize) |
a8b2ad8d | 7412 | return 1; |
b3076f16 | 7413 | close (fd); |
7414 | ||
7415 | /* Next, try to mmap the file at a fixed address which already has | |
7416 | something else allocated at it. If we can, also make sure that | |
7417 | we see the same garbage. */ | |
7418 | fd = open ("conftest.mmap", O_RDWR); | |
7419 | if (fd < 0) | |
a8b2ad8d | 7420 | return 1; |
b3076f16 | 7421 | data2 = (char *) malloc (2 * pagesize); |
7422 | if (!data2) | |
a8b2ad8d | 7423 | return 1; |
7424 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b3076f16 | 7425 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
7426 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
a8b2ad8d | 7427 | return 1; |
b3076f16 | 7428 | for (i = 0; i < pagesize; ++i) |
7429 | if (*(data + i) != *(data2 + i)) | |
a8b2ad8d | 7430 | return 1; |
b3076f16 | 7431 | |
7432 | /* Finally, make sure that changes to the mapped area do not | |
7433 | percolate back to the file as seen by read(). (This is a bug on | |
7434 | some variants of i386 svr4.0.) */ | |
7435 | for (i = 0; i < pagesize; ++i) | |
7436 | *(data2 + i) = *(data2 + i) + 1; | |
7437 | data3 = (char *) malloc (pagesize); | |
7438 | if (!data3) | |
a8b2ad8d | 7439 | return 1; |
b3076f16 | 7440 | if (read (fd, data3, pagesize) != pagesize) |
a8b2ad8d | 7441 | return 1; |
b3076f16 | 7442 | for (i = 0; i < pagesize; ++i) |
7443 | if (*(data + i) != *(data3 + i)) | |
a8b2ad8d | 7444 | return 1; |
b3076f16 | 7445 | close (fd); |
a8b2ad8d | 7446 | return 0; |
b3076f16 | 7447 | } |
7448 | _ACEOF | |
7449 | rm -f conftest$ac_exeext | |
a8b2ad8d | 7450 | if { (ac_try="$ac_link" |
7451 | case "(($ac_try" in | |
7452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7453 | *) ac_try_echo=$ac_try;; | |
7454 | esac | |
7455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7456 | (eval "$ac_link") 2>&5 | |
b3076f16 | 7457 | ac_status=$? |
7458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 7460 | { (case "(($ac_try" in |
7461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7462 | *) ac_try_echo=$ac_try;; | |
7463 | esac | |
7464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7465 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7466 | ac_status=$? |
7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7468 | (exit $ac_status); }; }; then | |
7469 | ac_cv_func_mmap_fixed_mapped=yes | |
7470 | else | |
7471 | echo "$as_me: program exited with status $ac_status" >&5 | |
7472 | echo "$as_me: failed program was:" >&5 | |
7473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7474 | ||
7475 | ( exit $ac_status ) | |
7476 | ac_cv_func_mmap_fixed_mapped=no | |
7477 | fi | |
a8b2ad8d | 7478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 7479 | fi |
a8b2ad8d | 7480 | |
7481 | ||
b3076f16 | 7482 | fi |
a8b2ad8d | 7483 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7484 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b3076f16 | 7485 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7486 | ||
7487 | cat >>confdefs.h <<\_ACEOF | |
7488 | #define HAVE_MMAP 1 | |
7489 | _ACEOF | |
7490 | ||
7491 | fi | |
7492 | rm -f conftest.mmap | |
7493 | ||
7494 | ||
a8b2ad8d | 7495 | { echo "$as_me:$LINENO: checking for sin_len" >&5 |
7496 | echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; } | |
b3076f16 | 7497 | if test "${ac_cv_sin_len+set}" = set; then |
7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7499 | else | |
7500 | cat >conftest.$ac_ext <<_ACEOF | |
7501 | /* confdefs.h. */ | |
7502 | _ACEOF | |
7503 | cat confdefs.h >>conftest.$ac_ext | |
7504 | cat >>conftest.$ac_ext <<_ACEOF | |
7505 | /* end confdefs.h. */ | |
7506 | #include <sys/types.h> | |
7507 | #include <netinet/in.h> | |
7508 | int | |
7509 | main () | |
7510 | { | |
7511 | struct sockaddr_in *sin; sin->sin_len = 0; | |
7512 | ; | |
7513 | return 0; | |
7514 | } | |
7515 | _ACEOF | |
7516 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7517 | if { (ac_try="$ac_compile" |
7518 | case "(($ac_try" in | |
7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7520 | *) ac_try_echo=$ac_try;; | |
7521 | esac | |
7522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7523 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7524 | ac_status=$? |
7525 | grep -v '^ *+' conftest.er1 >conftest.err | |
7526 | rm -f conftest.er1 | |
7527 | cat conftest.err >&5 | |
7528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7529 | (exit $ac_status); } && { |
7530 | test -z "$ac_c_werror_flag" || | |
7531 | test ! -s conftest.err | |
7532 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7533 | ac_cv_sin_len="yes" |
7534 | else | |
7535 | echo "$as_me: failed program was:" >&5 | |
7536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7537 | ||
a8b2ad8d | 7538 | ac_cv_sin_len="no" |
b3076f16 | 7539 | fi |
a8b2ad8d | 7540 | |
7541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7542 | fi |
a8b2ad8d | 7543 | { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5 |
7544 | echo "${ECHO_T}$ac_cv_sin_len" >&6; } | |
b3076f16 | 7545 | if test $ac_cv_sin_len = yes ; then |
7546 | ||
7547 | cat >>confdefs.h <<\_ACEOF | |
7548 | #define HAVE_SIN_LEN 1 | |
7549 | _ACEOF | |
7550 | ||
7551 | fi | |
7552 | ||
a8b2ad8d | 7553 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7554 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
79886419 | 7555 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7557 | else | |
7558 | cat >conftest.$ac_ext <<_ACEOF | |
7559 | /* confdefs.h. */ | |
7560 | _ACEOF | |
7561 | cat confdefs.h >>conftest.$ac_ext | |
7562 | cat >>conftest.$ac_ext <<_ACEOF | |
7563 | /* end confdefs.h. */ | |
7564 | #include <sys/types.h> | |
7565 | #include<sys/socket.h> | |
7566 | ||
a8b2ad8d | 7567 | typedef socklen_t ac__type_new_; |
79886419 | 7568 | int |
7569 | main () | |
7570 | { | |
a8b2ad8d | 7571 | if ((ac__type_new_ *) 0) |
79886419 | 7572 | return 0; |
a8b2ad8d | 7573 | if (sizeof (ac__type_new_)) |
79886419 | 7574 | return 0; |
7575 | ; | |
7576 | return 0; | |
7577 | } | |
7578 | _ACEOF | |
7579 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7580 | if { (ac_try="$ac_compile" |
7581 | case "(($ac_try" in | |
7582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7583 | *) ac_try_echo=$ac_try;; | |
7584 | esac | |
7585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7586 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 7587 | ac_status=$? |
7588 | grep -v '^ *+' conftest.er1 >conftest.err | |
7589 | rm -f conftest.er1 | |
7590 | cat conftest.err >&5 | |
7591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7592 | (exit $ac_status); } && { |
7593 | test -z "$ac_c_werror_flag" || | |
7594 | test ! -s conftest.err | |
7595 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 7596 | ac_cv_type_socklen_t=yes |
ff3b058a | 7597 | else |
7598 | echo "$as_me: failed program was:" >&5 | |
7599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7600 | ||
0f6fe38c | 7601 | ac_cv_type_socklen_t=no |
ff3b058a | 7602 | fi |
7603 | ||
7604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff3b058a | 7605 | fi |
0f6fe38c | 7606 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7607 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
7608 | if test $ac_cv_type_socklen_t = yes; then | |
7609 | : | |
7610 | else | |
ff3b058a | 7611 | |
0f6fe38c | 7612 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 |
7613 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | |
7614 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | |
ff3b058a | 7615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7616 | else | |
0f6fe38c | 7617 | |
7618 | curl_cv_socklen_t_equiv= | |
7619 | for arg2 in "struct sockaddr" void ; do | |
7620 | for t in int size_t unsigned long "unsigned long" ; do | |
7621 | cat >conftest.$ac_ext <<_ACEOF | |
ff3b058a | 7622 | /* confdefs.h. */ |
7623 | _ACEOF | |
7624 | cat confdefs.h >>conftest.$ac_ext | |
7625 | cat >>conftest.$ac_ext <<_ACEOF | |
7626 | /* end confdefs.h. */ | |
0f6fe38c | 7627 | #include <sys/types.h> |
7628 | #include <sys/socket.h> | |
7629 | int getpeername (int $arg2 *, $t *); | |
7630 | int | |
7631 | main () | |
7632 | { | |
7633 | $t len; | |
7634 | getpeername(0, 0, &len); | |
7635 | ; | |
7636 | return 0; | |
7637 | } | |
79886419 | 7638 | _ACEOF |
7639 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7640 | if { (ac_try="$ac_compile" |
7641 | case "(($ac_try" in | |
7642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7643 | *) ac_try_echo=$ac_try;; | |
7644 | esac | |
7645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7646 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 7647 | ac_status=$? |
7648 | grep -v '^ *+' conftest.er1 >conftest.err | |
7649 | rm -f conftest.er1 | |
7650 | cat conftest.err >&5 | |
7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7652 | (exit $ac_status); } && { |
7653 | test -z "$ac_c_werror_flag" || | |
7654 | test ! -s conftest.err | |
7655 | } && test -s conftest.$ac_objext; then | |
0f6fe38c | 7656 | curl_cv_socklen_t_equiv="$t" |
7657 | break | |
79886419 | 7658 | else |
7659 | echo "$as_me: failed program was:" >&5 | |
7660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7661 | ||
a8b2ad8d | 7662 | |
79886419 | 7663 | fi |
a8b2ad8d | 7664 | |
7665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0f6fe38c | 7666 | done |
7667 | done | |
79886419 | 7668 | |
7669 | fi | |
7670 | ||
0f6fe38c | 7671 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 |
7672 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | |
79886419 | 7673 | |
0f6fe38c | 7674 | cat >>confdefs.h <<_ACEOF |
7675 | #define socklen_t $curl_cv_socklen_t_equiv | |
79886419 | 7676 | _ACEOF |
7677 | ||
0f6fe38c | 7678 | fi |
7679 | ||
7680 | ||
7681 | OLD_CFLAGS=$CFLAGS | |
7682 | CFLAGS="$CFLAGS -W -Wall -Werror" | |
b3076f16 | 7683 | |
a8b2ad8d | 7684 | { echo "$as_me:$LINENO: checking for time_t format" >&5 |
7685 | echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; } | |
b3076f16 | 7686 | if test "${ac_cv_fmt_time_t+set}" = set; then |
7687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7688 | else | |
7689 | ||
7690 | ac_cv_fmt_time_t=no | |
7691 | cat >conftest.$ac_ext <<_ACEOF | |
7692 | #include <sys/types.h> | |
7693 | #include <stdio.h> | |
7694 | void myfunc(void) { | |
7695 | time_t test=0; | |
7696 | printf("%li", test); | |
7697 | } | |
7698 | _ACEOF | |
7699 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7700 | if { (ac_try="$ac_compile" |
7701 | case "(($ac_try" in | |
7702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7703 | *) ac_try_echo=$ac_try;; | |
7704 | esac | |
7705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7706 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7707 | ac_status=$? |
7708 | grep -v '^ *+' conftest.er1 >conftest.err | |
7709 | rm -f conftest.er1 | |
7710 | cat conftest.err >&5 | |
7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7712 | (exit $ac_status); } && { |
7713 | test -z "$ac_c_werror_flag" || | |
7714 | test ! -s conftest.err | |
7715 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7716 | ac_cv_fmt_time_t="\"%li\"" |
7717 | else | |
7718 | echo "$as_me: failed program was:" >&5 | |
7719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7720 | ||
a8b2ad8d | 7721 | |
b3076f16 | 7722 | fi |
a8b2ad8d | 7723 | |
7724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7725 | if test $ac_cv_fmt_time_t = no; then |
7726 | cat >conftest.$ac_ext <<_ACEOF | |
7727 | #include <sys/types.h> | |
7728 | #include <stdio.h> | |
7729 | void myfunc(void) { | |
7730 | time_t test=0; | |
7731 | printf("%i", test); | |
7732 | } | |
7733 | _ACEOF | |
7734 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7735 | if { (ac_try="$ac_compile" |
7736 | case "(($ac_try" in | |
7737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7738 | *) ac_try_echo=$ac_try;; | |
7739 | esac | |
7740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7741 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7742 | ac_status=$? |
7743 | grep -v '^ *+' conftest.er1 >conftest.err | |
7744 | rm -f conftest.er1 | |
7745 | cat conftest.err >&5 | |
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7747 | (exit $ac_status); } && { |
7748 | test -z "$ac_c_werror_flag" || | |
7749 | test ! -s conftest.err | |
7750 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7751 | ac_cv_fmt_time_t="\"%i\"" |
7752 | else | |
7753 | echo "$as_me: failed program was:" >&5 | |
7754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7755 | ||
a8b2ad8d | 7756 | |
b3076f16 | 7757 | fi |
a8b2ad8d | 7758 | |
7759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 7760 | fi |
7761 | if test $ac_cv_fmt_time_t = no; then | |
7762 | { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t | |
7763 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&5 | |
7764 | echo "$as_me: error: Cannot detect format string for time_t | |
7765 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;} | |
7766 | { (exit 1); exit 1; }; } | |
7767 | fi | |
7768 | ||
7769 | fi | |
7770 | ||
7771 | ||
7772 | cat >>confdefs.h <<_ACEOF | |
7773 | #define FMT_TIME_T $ac_cv_fmt_time_t | |
7774 | _ACEOF | |
7775 | ||
a8b2ad8d | 7776 | { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5 |
7777 | echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; } | |
b3076f16 | 7778 | |
a8b2ad8d | 7779 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
7780 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } | |
b3076f16 | 7781 | if test "${ac_cv_c_va_copy+set}" = set; then |
7782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7783 | else | |
7784 | cat >conftest.$ac_ext <<_ACEOF | |
7785 | /* confdefs.h. */ | |
7786 | _ACEOF | |
7787 | cat confdefs.h >>conftest.$ac_ext | |
7788 | cat >>conftest.$ac_ext <<_ACEOF | |
7789 | /* end confdefs.h. */ | |
7790 | #include <stdarg.h> | |
7791 | int | |
7792 | main () | |
7793 | { | |
7794 | va_list ap1, ap2; va_copy(ap1, ap2); | |
7795 | ; | |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7800 | if { (ac_try="$ac_link" |
7801 | case "(($ac_try" in | |
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7803 | *) ac_try_echo=$ac_try;; | |
7804 | esac | |
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7806 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7807 | ac_status=$? |
7808 | grep -v '^ *+' conftest.er1 >conftest.err | |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7812 | (exit $ac_status); } && { |
7813 | test -z "$ac_c_werror_flag" || | |
7814 | test ! -s conftest.err | |
7815 | } && test -s conftest$ac_exeext && | |
7816 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7817 | ac_cv_c_va_copy="yes" |
7818 | else | |
7819 | echo "$as_me: failed program was:" >&5 | |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7821 | ||
a8b2ad8d | 7822 | ac_cv_c_va_copy="no" |
b3076f16 | 7823 | |
7824 | fi | |
a8b2ad8d | 7825 | |
0bd0bef6 | 7826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7827 | conftest$ac_exeext conftest.$ac_ext |
7828 | fi | |
a8b2ad8d | 7829 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
7830 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } | |
b3076f16 | 7831 | if test "$ac_cv_c_va_copy" = "yes" ; then |
7832 | ||
7833 | cat >>confdefs.h <<\_ACEOF | |
7834 | #define HAVE_VA_COPY 1 | |
7835 | _ACEOF | |
7836 | ||
7837 | fi | |
7838 | ||
a8b2ad8d | 7839 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
7840 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } | |
b3076f16 | 7841 | if test "${ac_cv_c___va_copy+set}" = set; then |
7842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7843 | else | |
7844 | cat >conftest.$ac_ext <<_ACEOF | |
7845 | /* confdefs.h. */ | |
7846 | _ACEOF | |
7847 | cat confdefs.h >>conftest.$ac_ext | |
7848 | cat >>conftest.$ac_ext <<_ACEOF | |
7849 | /* end confdefs.h. */ | |
7850 | #include <stdarg.h> | |
7851 | int | |
7852 | main () | |
7853 | { | |
7854 | va_list ap1, ap2; __va_copy(ap1, ap2); | |
7855 | ; | |
7856 | return 0; | |
7857 | } | |
7858 | _ACEOF | |
7859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7860 | if { (ac_try="$ac_link" |
7861 | case "(($ac_try" in | |
7862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7863 | *) ac_try_echo=$ac_try;; | |
7864 | esac | |
7865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7866 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7867 | ac_status=$? |
7868 | grep -v '^ *+' conftest.er1 >conftest.err | |
7869 | rm -f conftest.er1 | |
7870 | cat conftest.err >&5 | |
7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7872 | (exit $ac_status); } && { |
7873 | test -z "$ac_c_werror_flag" || | |
7874 | test ! -s conftest.err | |
7875 | } && test -s conftest$ac_exeext && | |
7876 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 7877 | ac_cv_c___va_copy="yes" |
7878 | else | |
7879 | echo "$as_me: failed program was:" >&5 | |
7880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7881 | ||
a8b2ad8d | 7882 | ac_cv_c___va_copy="no" |
b3076f16 | 7883 | |
7884 | fi | |
a8b2ad8d | 7885 | |
0bd0bef6 | 7886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 7887 | conftest$ac_exeext conftest.$ac_ext |
7888 | fi | |
a8b2ad8d | 7889 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
7890 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } | |
b3076f16 | 7891 | if test "$ac_cv_c___va_copy" = "yes" ; then |
7892 | ||
7893 | cat >>confdefs.h <<\_ACEOF | |
7894 | #define HAVE___VA_COPY 1 | |
7895 | _ACEOF | |
7896 | ||
7897 | fi | |
7898 | ||
7899 | CFLAGS=$OLD_CFLAGS | |
7900 | ||
a8b2ad8d | 7901 | { echo "$as_me:$LINENO: checking which malloc to use" >&5 |
7902 | echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; } | |
b3076f16 | 7903 | |
a8b2ad8d | 7904 | # Check whether --with-malloc was given. |
b3076f16 | 7905 | if test "${with_malloc+set}" = set; then |
a8b2ad8d | 7906 | withval=$with_malloc; |
b3076f16 | 7907 | else |
7908 | withval="system" | |
a8b2ad8d | 7909 | fi |
7910 | ||
b3076f16 | 7911 | if test "x$withval" = "xsystem" ; then |
a8b2ad8d | 7912 | { echo "$as_me:$LINENO: result: system" >&5 |
7913 | echo "${ECHO_T}system" >&6; } | |
b3076f16 | 7914 | |
7915 | cat >>confdefs.h <<\_ACEOF | |
7916 | #define WITH_MALLOC_SYSTEM 1 | |
7917 | _ACEOF | |
7918 | ||
5b1166fd | 7919 | x3_malloc="System" |
b3076f16 | 7920 | elif test "x$withval" = "xdmalloc" ; then |
a8b2ad8d | 7921 | { echo "$as_me:$LINENO: result: dmalloc" >&5 |
7922 | echo "${ECHO_T}dmalloc" >&6; } | |
b3076f16 | 7923 | |
7924 | for ac_header in dmalloc.h | |
7925 | do | |
7926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 7927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7928 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7932 | fi | |
a8b2ad8d | 7933 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7934 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7935 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7936 | else |
7937 | # Is the header compilable? | |
a8b2ad8d | 7938 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 7940 | cat >conftest.$ac_ext <<_ACEOF |
7941 | /* confdefs.h. */ | |
7942 | _ACEOF | |
7943 | cat confdefs.h >>conftest.$ac_ext | |
7944 | cat >>conftest.$ac_ext <<_ACEOF | |
7945 | /* end confdefs.h. */ | |
7946 | $ac_includes_default | |
7947 | #include <$ac_header> | |
7948 | _ACEOF | |
7949 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7950 | if { (ac_try="$ac_compile" |
7951 | case "(($ac_try" in | |
7952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7953 | *) ac_try_echo=$ac_try;; | |
7954 | esac | |
7955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7956 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7957 | ac_status=$? |
7958 | grep -v '^ *+' conftest.er1 >conftest.err | |
7959 | rm -f conftest.er1 | |
7960 | cat conftest.err >&5 | |
7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 7962 | (exit $ac_status); } && { |
7963 | test -z "$ac_c_werror_flag" || | |
7964 | test ! -s conftest.err | |
7965 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 7966 | ac_header_compiler=yes |
7967 | else | |
7968 | echo "$as_me: failed program was:" >&5 | |
7969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7970 | ||
a8b2ad8d | 7971 | ac_header_compiler=no |
b3076f16 | 7972 | fi |
a8b2ad8d | 7973 | |
7974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7975 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7976 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 7977 | |
7978 | # Is the header present? | |
a8b2ad8d | 7979 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7980 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 7981 | cat >conftest.$ac_ext <<_ACEOF |
7982 | /* confdefs.h. */ | |
7983 | _ACEOF | |
7984 | cat confdefs.h >>conftest.$ac_ext | |
7985 | cat >>conftest.$ac_ext <<_ACEOF | |
7986 | /* end confdefs.h. */ | |
7987 | #include <$ac_header> | |
7988 | _ACEOF | |
a8b2ad8d | 7989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7990 | case "(($ac_try" in | |
7991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7992 | *) ac_try_echo=$ac_try;; | |
7993 | esac | |
7994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 7996 | ac_status=$? |
7997 | grep -v '^ *+' conftest.er1 >conftest.err | |
7998 | rm -f conftest.er1 | |
7999 | cat conftest.err >&5 | |
8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8001 | (exit $ac_status); } >/dev/null && { |
8002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8003 | test ! -s conftest.err | |
8004 | }; then | |
b3076f16 | 8005 | ac_header_preproc=yes |
8006 | else | |
8007 | echo "$as_me: failed program was:" >&5 | |
8008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8009 | ||
8010 | ac_header_preproc=no | |
8011 | fi | |
a8b2ad8d | 8012 | |
b3076f16 | 8013 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8014 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8015 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8016 | |
8017 | # So? What about this header? | |
8018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8019 | yes:no: ) | |
8020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8024 | ac_header_preproc=yes | |
8025 | ;; | |
8026 | no:yes:* ) | |
8027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8039 | ( cat <<\_ASBOX |
63c95a47 | 8040 | ## -------------------------------------------------- ## |
8041 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8042 | ## -------------------------------------------------- ## | |
b3076f16 | 8043 | _ASBOX |
a8b2ad8d | 8044 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8045 | ;; |
8046 | esac | |
a8b2ad8d | 8047 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8051 | else | |
8052 | eval "$as_ac_Header=\$ac_header_preproc" | |
8053 | fi | |
a8b2ad8d | 8054 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8055 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8056 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8057 | |
8058 | fi | |
8059 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8060 | cat >>confdefs.h <<_ACEOF | |
8061 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8062 | _ACEOF | |
8063 | ||
8064 | else | |
8065 | { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5 | |
8066 | echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;} | |
8067 | { (exit 1); exit 1; }; } | |
8068 | fi | |
8069 | ||
8070 | done | |
8071 | ||
8072 | ||
a8b2ad8d | 8073 | { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5 |
8074 | echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; } | |
b3076f16 | 8075 | if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then |
8076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8077 | else | |
8078 | ac_check_lib_save_LIBS=$LIBS | |
8079 | LIBS="-ldmalloc $LIBS" | |
8080 | cat >conftest.$ac_ext <<_ACEOF | |
8081 | /* confdefs.h. */ | |
8082 | _ACEOF | |
8083 | cat confdefs.h >>conftest.$ac_ext | |
8084 | cat >>conftest.$ac_ext <<_ACEOF | |
8085 | /* end confdefs.h. */ | |
8086 | ||
a8b2ad8d | 8087 | /* Override any GCC internal prototype to avoid an error. |
8088 | Use char because int might match the return type of a GCC | |
8089 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8090 | #ifdef __cplusplus |
8091 | extern "C" | |
8092 | #endif | |
b3076f16 | 8093 | char malloc (); |
8094 | int | |
8095 | main () | |
8096 | { | |
a8b2ad8d | 8097 | return malloc (); |
b3076f16 | 8098 | ; |
8099 | return 0; | |
8100 | } | |
8101 | _ACEOF | |
8102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8103 | if { (ac_try="$ac_link" |
8104 | case "(($ac_try" in | |
8105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8106 | *) ac_try_echo=$ac_try;; | |
8107 | esac | |
8108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8109 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8110 | ac_status=$? |
8111 | grep -v '^ *+' conftest.er1 >conftest.err | |
8112 | rm -f conftest.er1 | |
8113 | cat conftest.err >&5 | |
8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8115 | (exit $ac_status); } && { |
8116 | test -z "$ac_c_werror_flag" || | |
8117 | test ! -s conftest.err | |
8118 | } && test -s conftest$ac_exeext && | |
8119 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8120 | ac_cv_lib_dmalloc_malloc=yes |
8121 | else | |
8122 | echo "$as_me: failed program was:" >&5 | |
8123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8124 | ||
a8b2ad8d | 8125 | ac_cv_lib_dmalloc_malloc=no |
b3076f16 | 8126 | fi |
a8b2ad8d | 8127 | |
0bd0bef6 | 8128 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8129 | conftest$ac_exeext conftest.$ac_ext |
8130 | LIBS=$ac_check_lib_save_LIBS | |
8131 | fi | |
a8b2ad8d | 8132 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5 |
8133 | echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; } | |
b3076f16 | 8134 | if test $ac_cv_lib_dmalloc_malloc = yes; then |
8135 | cat >>confdefs.h <<_ACEOF | |
8136 | #define HAVE_LIBDMALLOC 1 | |
8137 | _ACEOF | |
8138 | ||
8139 | LIBS="-ldmalloc $LIBS" | |
8140 | ||
8141 | else | |
8142 | { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5 | |
8143 | echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;} | |
8144 | { (exit 1); exit 1; }; } | |
8145 | fi | |
8146 | ||
8147 | ||
8148 | cat >>confdefs.h <<\_ACEOF | |
8149 | #define WITH_MALLOC_DMALLOC 1 | |
8150 | _ACEOF | |
8151 | ||
5b1166fd | 8152 | x3_malloc="DMalloc" |
b3076f16 | 8153 | elif test "x$withval" = "xmpatrol" ; then |
a8b2ad8d | 8154 | { echo "$as_me:$LINENO: result: mpatrol" >&5 |
8155 | echo "${ECHO_T}mpatrol" >&6; } | |
b3076f16 | 8156 | |
8157 | for ac_header in mpatrol.h | |
8158 | do | |
8159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8160 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8161 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8165 | fi | |
a8b2ad8d | 8166 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8168 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8169 | else |
8170 | # Is the header compilable? | |
a8b2ad8d | 8171 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8173 | cat >conftest.$ac_ext <<_ACEOF |
8174 | /* confdefs.h. */ | |
8175 | _ACEOF | |
8176 | cat confdefs.h >>conftest.$ac_ext | |
8177 | cat >>conftest.$ac_ext <<_ACEOF | |
8178 | /* end confdefs.h. */ | |
8179 | $ac_includes_default | |
8180 | #include <$ac_header> | |
8181 | _ACEOF | |
8182 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8183 | if { (ac_try="$ac_compile" |
8184 | case "(($ac_try" in | |
8185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8186 | *) ac_try_echo=$ac_try;; | |
8187 | esac | |
8188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8189 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8190 | ac_status=$? |
8191 | grep -v '^ *+' conftest.er1 >conftest.err | |
8192 | rm -f conftest.er1 | |
8193 | cat conftest.err >&5 | |
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8195 | (exit $ac_status); } && { |
8196 | test -z "$ac_c_werror_flag" || | |
8197 | test ! -s conftest.err | |
8198 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 8199 | ac_header_compiler=yes |
8200 | else | |
8201 | echo "$as_me: failed program was:" >&5 | |
8202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8203 | ||
a8b2ad8d | 8204 | ac_header_compiler=no |
b3076f16 | 8205 | fi |
a8b2ad8d | 8206 | |
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8208 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8209 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8210 | |
8211 | # Is the header present? | |
a8b2ad8d | 8212 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8213 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8214 | cat >conftest.$ac_ext <<_ACEOF |
8215 | /* confdefs.h. */ | |
8216 | _ACEOF | |
8217 | cat confdefs.h >>conftest.$ac_ext | |
8218 | cat >>conftest.$ac_ext <<_ACEOF | |
8219 | /* end confdefs.h. */ | |
8220 | #include <$ac_header> | |
8221 | _ACEOF | |
a8b2ad8d | 8222 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8223 | case "(($ac_try" in | |
8224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8225 | *) ac_try_echo=$ac_try;; | |
8226 | esac | |
8227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 8229 | ac_status=$? |
8230 | grep -v '^ *+' conftest.er1 >conftest.err | |
8231 | rm -f conftest.er1 | |
8232 | cat conftest.err >&5 | |
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8234 | (exit $ac_status); } >/dev/null && { |
8235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8236 | test ! -s conftest.err | |
8237 | }; then | |
b3076f16 | 8238 | ac_header_preproc=yes |
8239 | else | |
8240 | echo "$as_me: failed program was:" >&5 | |
8241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8242 | ||
8243 | ac_header_preproc=no | |
8244 | fi | |
a8b2ad8d | 8245 | |
b3076f16 | 8246 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8247 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8248 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8249 | |
8250 | # So? What about this header? | |
8251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8252 | yes:no: ) | |
8253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8257 | ac_header_preproc=yes | |
8258 | ;; | |
8259 | no:yes:* ) | |
8260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8272 | ( cat <<\_ASBOX |
63c95a47 | 8273 | ## -------------------------------------------------- ## |
8274 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8275 | ## -------------------------------------------------- ## | |
b3076f16 | 8276 | _ASBOX |
a8b2ad8d | 8277 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8278 | ;; |
8279 | esac | |
a8b2ad8d | 8280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8284 | else | |
8285 | eval "$as_ac_Header=\$ac_header_preproc" | |
8286 | fi | |
a8b2ad8d | 8287 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8288 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8289 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8290 | |
8291 | fi | |
8292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8293 | cat >>confdefs.h <<_ACEOF | |
8294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8295 | _ACEOF | |
8296 | ||
8297 | else | |
8298 | { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5 | |
8299 | echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;} | |
8300 | { (exit 1); exit 1; }; } | |
8301 | fi | |
8302 | ||
8303 | done | |
8304 | ||
8305 | ||
a8b2ad8d | 8306 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
8307 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
b3076f16 | 8308 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
8309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8310 | else | |
8311 | ac_check_lib_save_LIBS=$LIBS | |
8312 | LIBS="-lelf $LIBS" | |
8313 | cat >conftest.$ac_ext <<_ACEOF | |
8314 | /* confdefs.h. */ | |
8315 | _ACEOF | |
8316 | cat confdefs.h >>conftest.$ac_ext | |
8317 | cat >>conftest.$ac_ext <<_ACEOF | |
8318 | /* end confdefs.h. */ | |
8319 | ||
a8b2ad8d | 8320 | /* Override any GCC internal prototype to avoid an error. |
8321 | Use char because int might match the return type of a GCC | |
8322 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8323 | #ifdef __cplusplus |
8324 | extern "C" | |
8325 | #endif | |
b3076f16 | 8326 | char elf_begin (); |
8327 | int | |
8328 | main () | |
8329 | { | |
a8b2ad8d | 8330 | return elf_begin (); |
b3076f16 | 8331 | ; |
8332 | return 0; | |
8333 | } | |
8334 | _ACEOF | |
8335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8336 | if { (ac_try="$ac_link" |
8337 | case "(($ac_try" in | |
8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8339 | *) ac_try_echo=$ac_try;; | |
8340 | esac | |
8341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8342 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8343 | ac_status=$? |
8344 | grep -v '^ *+' conftest.er1 >conftest.err | |
8345 | rm -f conftest.er1 | |
8346 | cat conftest.err >&5 | |
8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8348 | (exit $ac_status); } && { |
8349 | test -z "$ac_c_werror_flag" || | |
8350 | test ! -s conftest.err | |
8351 | } && test -s conftest$ac_exeext && | |
8352 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8353 | ac_cv_lib_elf_elf_begin=yes |
8354 | else | |
8355 | echo "$as_me: failed program was:" >&5 | |
8356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8357 | ||
a8b2ad8d | 8358 | ac_cv_lib_elf_elf_begin=no |
b3076f16 | 8359 | fi |
a8b2ad8d | 8360 | |
0bd0bef6 | 8361 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8362 | conftest$ac_exeext conftest.$ac_ext |
8363 | LIBS=$ac_check_lib_save_LIBS | |
8364 | fi | |
a8b2ad8d | 8365 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
8366 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
b3076f16 | 8367 | if test $ac_cv_lib_elf_elf_begin = yes; then |
8368 | cat >>confdefs.h <<_ACEOF | |
8369 | #define HAVE_LIBELF 1 | |
8370 | _ACEOF | |
8371 | ||
8372 | LIBS="-lelf $LIBS" | |
8373 | ||
8374 | fi | |
8375 | ||
8376 | ||
a8b2ad8d | 8377 | { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5 |
8378 | echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; } | |
b3076f16 | 8379 | if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then |
8380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8381 | else | |
8382 | ac_check_lib_save_LIBS=$LIBS | |
8383 | LIBS="-lmpatrol $LIBS" | |
8384 | cat >conftest.$ac_ext <<_ACEOF | |
8385 | /* confdefs.h. */ | |
8386 | _ACEOF | |
8387 | cat confdefs.h >>conftest.$ac_ext | |
8388 | cat >>conftest.$ac_ext <<_ACEOF | |
8389 | /* end confdefs.h. */ | |
8390 | ||
a8b2ad8d | 8391 | /* Override any GCC internal prototype to avoid an error. |
8392 | Use char because int might match the return type of a GCC | |
8393 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8394 | #ifdef __cplusplus |
8395 | extern "C" | |
8396 | #endif | |
b3076f16 | 8397 | char __mp_atexit (); |
8398 | int | |
8399 | main () | |
8400 | { | |
a8b2ad8d | 8401 | return __mp_atexit (); |
b3076f16 | 8402 | ; |
8403 | return 0; | |
8404 | } | |
8405 | _ACEOF | |
8406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8407 | if { (ac_try="$ac_link" |
8408 | case "(($ac_try" in | |
8409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8410 | *) ac_try_echo=$ac_try;; | |
8411 | esac | |
8412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8413 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8414 | ac_status=$? |
8415 | grep -v '^ *+' conftest.er1 >conftest.err | |
8416 | rm -f conftest.er1 | |
8417 | cat conftest.err >&5 | |
8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8419 | (exit $ac_status); } && { |
8420 | test -z "$ac_c_werror_flag" || | |
8421 | test ! -s conftest.err | |
8422 | } && test -s conftest$ac_exeext && | |
8423 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8424 | ac_cv_lib_mpatrol___mp_atexit=yes |
8425 | else | |
8426 | echo "$as_me: failed program was:" >&5 | |
8427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8428 | ||
a8b2ad8d | 8429 | ac_cv_lib_mpatrol___mp_atexit=no |
b3076f16 | 8430 | fi |
a8b2ad8d | 8431 | |
0bd0bef6 | 8432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8433 | conftest$ac_exeext conftest.$ac_ext |
8434 | LIBS=$ac_check_lib_save_LIBS | |
8435 | fi | |
a8b2ad8d | 8436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5 |
8437 | echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; } | |
b3076f16 | 8438 | if test $ac_cv_lib_mpatrol___mp_atexit = yes; then |
8439 | cat >>confdefs.h <<_ACEOF | |
8440 | #define HAVE_LIBMPATROL 1 | |
8441 | _ACEOF | |
8442 | ||
8443 | LIBS="-lmpatrol $LIBS" | |
8444 | ||
8445 | else | |
8446 | { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5 | |
8447 | echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;} | |
8448 | { (exit 1); exit 1; }; } | |
8449 | fi | |
8450 | ||
8451 | ||
8452 | cat >>confdefs.h <<\_ACEOF | |
8453 | #define WITH_MALLOC_MPATROL 1 | |
8454 | _ACEOF | |
8455 | ||
5b1166fd | 8456 | x3_malloc="MPatrol" |
b3076f16 | 8457 | elif test "x$withval" = "xboehm-gc" ; then |
a8b2ad8d | 8458 | { echo "$as_me:$LINENO: result: boehm-gc" >&5 |
8459 | echo "${ECHO_T}boehm-gc" >&6; } | |
b3076f16 | 8460 | |
8461 | for ac_header in gc/gc.h | |
8462 | do | |
8463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8464 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8469 | fi | |
a8b2ad8d | 8470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8472 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8473 | else |
8474 | # Is the header compilable? | |
a8b2ad8d | 8475 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8476 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8477 | cat >conftest.$ac_ext <<_ACEOF |
8478 | /* confdefs.h. */ | |
8479 | _ACEOF | |
8480 | cat confdefs.h >>conftest.$ac_ext | |
8481 | cat >>conftest.$ac_ext <<_ACEOF | |
8482 | /* end confdefs.h. */ | |
8483 | $ac_includes_default | |
ff3b058a | 8484 | #include <$ac_header> |
8485 | _ACEOF | |
8486 | rm -f conftest.$ac_objext | |
8487 | if { (ac_try="$ac_compile" | |
8488 | case "(($ac_try" in | |
a8b2ad8d | 8489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8490 | *) ac_try_echo=$ac_try;; | |
8491 | esac | |
8492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
0f6fe38c | 8493 | (eval "$ac_compile") 2>conftest.er1 |
8494 | ac_status=$? | |
8495 | grep -v '^ *+' conftest.er1 >conftest.err | |
8496 | rm -f conftest.er1 | |
8497 | cat conftest.err >&5 | |
8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8499 | (exit $ac_status); } && { |
8500 | test -z "$ac_c_werror_flag" || | |
8501 | test ! -s conftest.err | |
8502 | } && test -s conftest.$ac_objext; then | |
b3076f16 | 8503 | ac_header_compiler=yes |
8504 | else | |
8505 | echo "$as_me: failed program was:" >&5 | |
8506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8507 | ||
a8b2ad8d | 8508 | ac_header_compiler=no |
b3076f16 | 8509 | fi |
a8b2ad8d | 8510 | |
8511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8512 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8513 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8514 | |
8515 | # Is the header present? | |
a8b2ad8d | 8516 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8517 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8518 | cat >conftest.$ac_ext <<_ACEOF |
8519 | /* confdefs.h. */ | |
8520 | _ACEOF | |
8521 | cat confdefs.h >>conftest.$ac_ext | |
8522 | cat >>conftest.$ac_ext <<_ACEOF | |
8523 | /* end confdefs.h. */ | |
8524 | #include <$ac_header> | |
8525 | _ACEOF | |
a8b2ad8d | 8526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8527 | case "(($ac_try" in | |
8528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8529 | *) ac_try_echo=$ac_try;; | |
8530 | esac | |
8531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 8533 | ac_status=$? |
8534 | grep -v '^ *+' conftest.er1 >conftest.err | |
8535 | rm -f conftest.er1 | |
8536 | cat conftest.err >&5 | |
8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8538 | (exit $ac_status); } >/dev/null && { |
8539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8540 | test ! -s conftest.err | |
8541 | }; then | |
b3076f16 | 8542 | ac_header_preproc=yes |
8543 | else | |
8544 | echo "$as_me: failed program was:" >&5 | |
8545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8546 | ||
8547 | ac_header_preproc=no | |
8548 | fi | |
a8b2ad8d | 8549 | |
b3076f16 | 8550 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8551 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8552 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8553 | |
8554 | # So? What about this header? | |
8555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8556 | yes:no: ) | |
8557 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8558 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8560 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8561 | ac_header_preproc=yes | |
8562 | ;; | |
8563 | no:yes:* ) | |
8564 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8565 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8566 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8567 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8568 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8569 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8570 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8571 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8574 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8575 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8576 | ( cat <<\_ASBOX |
63c95a47 | 8577 | ## -------------------------------------------------- ## |
8578 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8579 | ## -------------------------------------------------- ## | |
b3076f16 | 8580 | _ASBOX |
a8b2ad8d | 8581 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8582 | ;; |
8583 | esac | |
a8b2ad8d | 8584 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8588 | else | |
8589 | eval "$as_ac_Header=\$ac_header_preproc" | |
8590 | fi | |
a8b2ad8d | 8591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8593 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8594 | |
8595 | fi | |
8596 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8597 | cat >>confdefs.h <<_ACEOF | |
8598 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8599 | _ACEOF | |
8600 | ||
8601 | else | |
8602 | { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5 | |
8603 | echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;} | |
8604 | { (exit 1); exit 1; }; } | |
8605 | fi | |
8606 | ||
8607 | done | |
8608 | ||
8609 | ||
a8b2ad8d | 8610 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8611 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
b3076f16 | 8612 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8614 | else | |
8615 | ac_check_lib_save_LIBS=$LIBS | |
8616 | LIBS="-ldl $LIBS" | |
8617 | cat >conftest.$ac_ext <<_ACEOF | |
8618 | /* confdefs.h. */ | |
8619 | _ACEOF | |
8620 | cat confdefs.h >>conftest.$ac_ext | |
8621 | cat >>conftest.$ac_ext <<_ACEOF | |
8622 | /* end confdefs.h. */ | |
8623 | ||
a8b2ad8d | 8624 | /* Override any GCC internal prototype to avoid an error. |
8625 | Use char because int might match the return type of a GCC | |
8626 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8627 | #ifdef __cplusplus |
8628 | extern "C" | |
8629 | #endif | |
b3076f16 | 8630 | char dlopen (); |
8631 | int | |
8632 | main () | |
8633 | { | |
a8b2ad8d | 8634 | return dlopen (); |
b3076f16 | 8635 | ; |
8636 | return 0; | |
8637 | } | |
8638 | _ACEOF | |
8639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8640 | if { (ac_try="$ac_link" |
8641 | case "(($ac_try" in | |
8642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8643 | *) ac_try_echo=$ac_try;; | |
8644 | esac | |
8645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8646 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8647 | ac_status=$? |
8648 | grep -v '^ *+' conftest.er1 >conftest.err | |
8649 | rm -f conftest.er1 | |
8650 | cat conftest.err >&5 | |
8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8652 | (exit $ac_status); } && { |
8653 | test -z "$ac_c_werror_flag" || | |
8654 | test ! -s conftest.err | |
8655 | } && test -s conftest$ac_exeext && | |
8656 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8657 | ac_cv_lib_dl_dlopen=yes |
8658 | else | |
8659 | echo "$as_me: failed program was:" >&5 | |
8660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8661 | ||
a8b2ad8d | 8662 | ac_cv_lib_dl_dlopen=no |
b3076f16 | 8663 | fi |
a8b2ad8d | 8664 | |
0bd0bef6 | 8665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8666 | conftest$ac_exeext conftest.$ac_ext |
8667 | LIBS=$ac_check_lib_save_LIBS | |
8668 | fi | |
a8b2ad8d | 8669 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8670 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
b3076f16 | 8671 | if test $ac_cv_lib_dl_dlopen = yes; then |
8672 | cat >>confdefs.h <<_ACEOF | |
8673 | #define HAVE_LIBDL 1 | |
8674 | _ACEOF | |
8675 | ||
8676 | LIBS="-ldl $LIBS" | |
8677 | ||
8678 | else | |
8679 | { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5 | |
8680 | echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;} | |
8681 | { (exit 1); exit 1; }; } | |
8682 | fi | |
8683 | ||
8684 | ||
a8b2ad8d | 8685 | { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5 |
8686 | echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; } | |
b3076f16 | 8687 | if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then |
8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8689 | else | |
8690 | ac_check_lib_save_LIBS=$LIBS | |
8691 | LIBS="-lgc $LIBS" | |
8692 | cat >conftest.$ac_ext <<_ACEOF | |
8693 | /* confdefs.h. */ | |
8694 | _ACEOF | |
8695 | cat confdefs.h >>conftest.$ac_ext | |
8696 | cat >>conftest.$ac_ext <<_ACEOF | |
8697 | /* end confdefs.h. */ | |
8698 | ||
a8b2ad8d | 8699 | /* Override any GCC internal prototype to avoid an error. |
8700 | Use char because int might match the return type of a GCC | |
8701 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8702 | #ifdef __cplusplus |
8703 | extern "C" | |
8704 | #endif | |
b3076f16 | 8705 | char GC_gcollect (); |
8706 | int | |
8707 | main () | |
8708 | { | |
a8b2ad8d | 8709 | return GC_gcollect (); |
b3076f16 | 8710 | ; |
8711 | return 0; | |
8712 | } | |
8713 | _ACEOF | |
8714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8715 | if { (ac_try="$ac_link" |
8716 | case "(($ac_try" in | |
8717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8718 | *) ac_try_echo=$ac_try;; | |
8719 | esac | |
8720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8721 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8722 | ac_status=$? |
8723 | grep -v '^ *+' conftest.er1 >conftest.err | |
8724 | rm -f conftest.er1 | |
8725 | cat conftest.err >&5 | |
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8727 | (exit $ac_status); } && { |
8728 | test -z "$ac_c_werror_flag" || | |
8729 | test ! -s conftest.err | |
8730 | } && test -s conftest$ac_exeext && | |
8731 | $as_test_x conftest$ac_exeext; then | |
b3076f16 | 8732 | ac_cv_lib_gc_GC_gcollect=yes |
8733 | else | |
8734 | echo "$as_me: failed program was:" >&5 | |
8735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8736 | ||
a8b2ad8d | 8737 | ac_cv_lib_gc_GC_gcollect=no |
b3076f16 | 8738 | fi |
a8b2ad8d | 8739 | |
0bd0bef6 | 8740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b3076f16 | 8741 | conftest$ac_exeext conftest.$ac_ext |
8742 | LIBS=$ac_check_lib_save_LIBS | |
8743 | fi | |
a8b2ad8d | 8744 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5 |
8745 | echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; } | |
b3076f16 | 8746 | if test $ac_cv_lib_gc_GC_gcollect = yes; then |
8747 | cat >>confdefs.h <<_ACEOF | |
8748 | #define HAVE_LIBGC 1 | |
8749 | _ACEOF | |
8750 | ||
8751 | LIBS="-lgc $LIBS" | |
8752 | ||
8753 | else | |
8754 | { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5 | |
8755 | echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;} | |
8756 | { (exit 1); exit 1; }; } | |
8757 | fi | |
8758 | ||
8759 | ||
8760 | cat >>confdefs.h <<\_ACEOF | |
8761 | #define WITH_MALLOC_BOEHM_GC 1 | |
8762 | _ACEOF | |
8763 | ||
5b1166fd | 8764 | x3_malloc="Boehm" |
b8cb2a14 | 8765 | elif test "x$withval" = "xx3" ; then |
a8b2ad8d | 8766 | { echo "$as_me:$LINENO: result: x3" >&5 |
8767 | echo "${ECHO_T}x3" >&6; } | |
ec1a68c8 | 8768 | |
8769 | cat >>confdefs.h <<\_ACEOF | |
b8cb2a14 | 8770 | #define WITH_MALLOC_X3 1 |
ec1a68c8 | 8771 | _ACEOF |
8772 | ||
b8cb2a14 | 8773 | MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)" |
5b1166fd | 8774 | x3_malloc="X3" |
ceafd592 | 8775 | elif test "x$withval" = "xslab" ; then |
a8b2ad8d | 8776 | { echo "$as_me:$LINENO: result: slab" >&5 |
8777 | echo "${ECHO_T}slab" >&6; } | |
ceafd592 | 8778 | |
8779 | cat >>confdefs.h <<\_ACEOF | |
8780 | #define WITH_MALLOC_SLAB 1 | |
8781 | _ACEOF | |
8782 | ||
8783 | MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)" | |
5b1166fd | 8784 | x3_malloc="Slab" |
b3076f16 | 8785 | else |
8786 | { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5 | |
8787 | echo "$as_me: error: Unknown malloc type $withval" >&2;} | |
8788 | { (exit 1); exit 1; }; } | |
8789 | fi | |
8790 | ||
a8b2ad8d | 8791 | { echo "$as_me:$LINENO: checking which protocol to use" >&5 |
8792 | echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; } | |
b3076f16 | 8793 | |
a8b2ad8d | 8794 | # Check whether --with-protocol was given. |
b3076f16 | 8795 | if test "${with_protocol+set}" = set; then |
a8b2ad8d | 8796 | withval=$with_protocol; |
b3076f16 | 8797 | else |
8798 | withval="p10" | |
a8b2ad8d | 8799 | fi |
8800 | ||
b3076f16 | 8801 | if test "x$withval" = "xp10" ; then |
a8b2ad8d | 8802 | { echo "$as_me:$LINENO: result: P10" >&5 |
8803 | echo "${ECHO_T}P10" >&6; } | |
b3076f16 | 8804 | |
8805 | cat >>confdefs.h <<\_ACEOF | |
8806 | #define WITH_PROTOCOL_P10 1 | |
8807 | _ACEOF | |
8808 | ||
2f61d1d7 | 8809 | MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)" |
0f6fe38c | 8810 | PROTO_FILES=proto-p10.c |
5b1166fd | 8811 | x3_ircd="P10" |
b3076f16 | 8812 | else |
8813 | { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5 | |
8814 | echo "$as_me: error: Unknown IRC dialect $withval" >&2;} | |
8815 | { (exit 1); exit 1; }; } | |
8816 | fi | |
8817 | ||
8da89711 | 8818 | |
8819 | # Check whether --with-getopt was given. | |
8820 | if test "${with_getopt+set}" = set; then | |
8821 | withval=$with_getopt; if test "$withval" = no; then | |
8822 | ||
8823 | cat >>confdefs.h <<\_ACEOF | |
8824 | #define IGNORE_GETOPT 1 | |
8825 | _ACEOF | |
8826 | ||
8827 | fi | |
8828 | fi | |
8829 | ||
8830 | ||
8831 | { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5 | |
8832 | echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; } | |
8833 | # Check whether --enable-tokens was given. | |
8834 | if test "${enable_tokens+set}" = set; then | |
8835 | enableval=$enable_tokens; | |
8836 | else | |
8837 | enableval=yes | |
8838 | fi | |
8839 | ||
8840 | if test "z$enableval" = zno ; then | |
8841 | { echo "$as_me:$LINENO: result: no" >&5 | |
8842 | echo "${ECHO_T}no" >&6; } | |
8843 | else | |
8844 | ||
8845 | cat >>confdefs.h <<\_ACEOF | |
8846 | #define ENABLE_TOKENS 1 | |
8847 | _ACEOF | |
8848 | ||
8849 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8850 | echo "${ECHO_T}yes" >&6; } | |
8851 | fi | |
8852 | ||
8853 | { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5 | |
8854 | echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; } | |
8855 | # Check whether --enable-debug was given. | |
8856 | if test "${enable_debug+set}" = set; then | |
8857 | enableval=$enable_debug; | |
8858 | CPPFLAGS="$CPPFLAGS" | |
e166c31b | 8859 | { echo "$as_me:$LINENO: result: yes" >&5 |
8860 | echo "${ECHO_T}yes" >&6; } | |
8da89711 | 8861 | x3_debug="Enabled" |
e166c31b | 8862 | |
8863 | else | |
8864 | ||
8da89711 | 8865 | CPPFLAGS="$CPPFLAGS -DNDEBUG" |
e166c31b | 8866 | { echo "$as_me:$LINENO: result: no" >&5 |
8867 | echo "${ECHO_T}no" >&6; } | |
8da89711 | 8868 | x3_debug="Disabled" |
e166c31b | 8869 | |
8870 | fi | |
8871 | ||
8872 | ||
8da89711 | 8873 | if test -e src ; then |
8874 | if test ! -d src ; then | |
8875 | { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5 | |
8876 | echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;} | |
8877 | { (exit 1); exit 1; }; } | |
8878 | fi | |
8879 | else | |
8880 | mkdir src | |
8881 | fi | |
8882 | { echo "$as_me:$LINENO: checking for extra module files" >&5 | |
8883 | echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; } | |
8884 | MODULE_DEFINES="src/modules-list.h" | |
8885 | echo > $MODULE_DEFINES | |
8886 | touch $MODULE_DEFINES | |
8887 | # Check whether --enable-modules was given. | |
8888 | if test "${enable_modules+set}" = set; then | |
8889 | enableval=$enable_modules; | |
8890 | OIFS="$IFS" | |
8891 | IFS=',' | |
8892 | EXTRA_MODULE_OBJS="" | |
8893 | module_list="" | |
8894 | for module in $enableval ; do | |
8895 | module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` | |
8896 | EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" | |
8897 | module_list="$module_list $module" | |
8898 | echo "WITH_MODULE($module)" >> $MODULE_DEFINES | |
8899 | if test "x$module" = "xtrack" ; then | |
8900 | TRACK="-D HAVE_TRACK" | |
e166c31b | 8901 | |
8902 | cat >>confdefs.h <<\_ACEOF | |
8da89711 | 8903 | #define HAVE_TRACK 1 |
e166c31b | 8904 | _ACEOF |
8905 | ||
8da89711 | 8906 | fi |
8907 | if test "x$module" = "xhelpserv" ; then | |
8908 | TRACK="-D HAVE_HELPSERV" | |
e166c31b | 8909 | |
8da89711 | 8910 | cat >>confdefs.h <<\_ACEOF |
8911 | #define HAVE_HELPSERV 1 | |
e166c31b | 8912 | _ACEOF |
e166c31b | 8913 | |
8da89711 | 8914 | fi |
8915 | done | |
8916 | IFS="$OIFS" | |
8917 | MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS" | |
8918 | { echo "$as_me:$LINENO: result: $module_list" >&5 | |
8919 | echo "${ECHO_T}$module_list" >&6; } | |
8920 | ||
e166c31b | 8921 | else |
e166c31b | 8922 | |
8da89711 | 8923 | { echo "$as_me:$LINENO: result: none" >&5 |
8924 | echo "${ECHO_T}none" >&6; } | |
e166c31b | 8925 | |
e166c31b | 8926 | fi |
e166c31b | 8927 | |
e166c31b | 8928 | |
8da89711 | 8929 | MY_SUBDIRS="" |
8930 | RX_INCLUDES="" | |
8931 | RX_LIBS="" | |
8932 | if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then | |
8933 | MY_SUBDIRS="rx $MY_SUBDIRS" | |
8934 | RX_INCLUDES="-I../rx" | |
8935 | RX_LIBS="../rx/librx.a" | |
8936 | fi | |
8937 | MY_SUBDIRS="$MY_SUBDIRS src" | |
8938 | CFLAGS="$CFLAGS $ANSI_SRC -W -Wall" | |
8939 | if test "z$USE_MAINTAINER_MODE" = zyes ; then | |
0f6fe38c | 8940 | CFLAGS="$CFLAGS -Werror" |
e166c31b | 8941 | fi |
8942 | ||
8943 | ||
8da89711 | 8944 | tre_version="0.7.5" |
8945 | withval='' | |
8946 | ||
8947 | # Check whether --with-tre was given. | |
8948 | if test "${with_tre+set}" = set; then | |
8949 | withval=$with_tre; | |
8950 | fi | |
8951 | ||
8952 | if test "x$withval" != "x"; then | |
8953 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5 | |
8954 | echo "${ECHO_T}Using include dir $withval to find libtre" >&6; } | |
39edf54a | 8955 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
8da89711 | 8956 | LIBS="$LIBS -L$withval/lib" |
8957 | else | |
8958 | { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5 | |
8959 | echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; } | |
39edf54a | 8960 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" |
8da89711 | 8961 | LIBS="$LIBS -L${HOME}/lib" |
8962 | fi | |
8963 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
8964 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 | |
8965 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
8966 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 8967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8968 | fi | |
8da89711 | 8969 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
8970 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 8971 | else |
8972 | # Is the header compilable? | |
8da89711 | 8973 | { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5 |
8974 | echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; } | |
e166c31b | 8975 | cat >conftest.$ac_ext <<_ACEOF |
8976 | /* confdefs.h. */ | |
8977 | _ACEOF | |
8978 | cat confdefs.h >>conftest.$ac_ext | |
8979 | cat >>conftest.$ac_ext <<_ACEOF | |
8980 | /* end confdefs.h. */ | |
8981 | $ac_includes_default | |
8da89711 | 8982 | #include <tre/regex.h> |
e166c31b | 8983 | _ACEOF |
8984 | rm -f conftest.$ac_objext | |
8985 | if { (ac_try="$ac_compile" | |
8986 | case "(($ac_try" in | |
8987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8988 | *) ac_try_echo=$ac_try;; | |
8989 | esac | |
8990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8991 | (eval "$ac_compile") 2>conftest.er1 | |
8992 | ac_status=$? | |
8993 | grep -v '^ *+' conftest.er1 >conftest.err | |
8994 | rm -f conftest.er1 | |
8995 | cat conftest.err >&5 | |
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 8997 | (exit $ac_status); } && { |
8998 | test -z "$ac_c_werror_flag" || | |
8999 | test ! -s conftest.err | |
9000 | } && test -s conftest.$ac_objext; then | |
e166c31b | 9001 | ac_header_compiler=yes |
9002 | else | |
9003 | echo "$as_me: failed program was:" >&5 | |
9004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9005 | ||
9006 | ac_header_compiler=no | |
9007 | fi | |
9008 | ||
9009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9010 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9011 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9012 | ||
9013 | # Is the header present? | |
8da89711 | 9014 | { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5 |
9015 | echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; } | |
e166c31b | 9016 | cat >conftest.$ac_ext <<_ACEOF |
9017 | /* confdefs.h. */ | |
9018 | _ACEOF | |
9019 | cat confdefs.h >>conftest.$ac_ext | |
9020 | cat >>conftest.$ac_ext <<_ACEOF | |
9021 | /* end confdefs.h. */ | |
8da89711 | 9022 | #include <tre/regex.h> |
e166c31b | 9023 | _ACEOF |
9024 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9025 | case "(($ac_try" in | |
9026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9027 | *) ac_try_echo=$ac_try;; | |
9028 | esac | |
9029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9030 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9031 | ac_status=$? | |
9032 | grep -v '^ *+' conftest.er1 >conftest.err | |
9033 | rm -f conftest.er1 | |
9034 | cat conftest.err >&5 | |
9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9036 | (exit $ac_status); } >/dev/null && { |
9037 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9038 | test ! -s conftest.err | |
9039 | }; then | |
e166c31b | 9040 | ac_header_preproc=yes |
9041 | else | |
9042 | echo "$as_me: failed program was:" >&5 | |
9043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9044 | ||
9045 | ac_header_preproc=no | |
9046 | fi | |
9047 | ||
9048 | rm -f conftest.err conftest.$ac_ext | |
9049 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9050 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9051 | ||
9052 | # So? What about this header? | |
9053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9054 | yes:no: ) | |
8da89711 | 9055 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9056 | echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9057 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5 | |
9058 | echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;} | |
e166c31b | 9059 | ac_header_preproc=yes |
9060 | ;; | |
9061 | no:yes:* ) | |
8da89711 | 9062 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5 |
9063 | echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;} | |
9064 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5 | |
9065 | echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;} | |
9066 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5 | |
9067 | echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;} | |
9068 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9069 | echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9070 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5 | |
9071 | echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;} | |
9072 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5 | |
9073 | echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;} | |
e166c31b | 9074 | ( cat <<\_ASBOX |
9075 | ## -------------------------------------------------- ## | |
9076 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9077 | ## -------------------------------------------------- ## | |
9078 | _ASBOX | |
9079 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9080 | ;; | |
9081 | esac | |
8da89711 | 9082 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 |
9083 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
9084 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9086 | else | |
8da89711 | 9087 | ac_cv_header_tre_regex_h=$ac_header_preproc |
e166c31b | 9088 | fi |
8da89711 | 9089 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
9090 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 9091 | |
9092 | fi | |
8da89711 | 9093 | if test $ac_cv_header_tre_regex_h = yes; then |
9094 | : | |
e166c31b | 9095 | else |
0bd0bef6 | 9096 | { { 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 |
9097 | 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 | 9098 | { (exit 1); exit 1; }; } |
9099 | fi | |
9100 | ||
e166c31b | 9101 | |
b3076f16 | 9102 | |
8da89711 | 9103 | { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5 |
9104 | echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; } | |
9105 | if test "${ac_cv_lib_tre_regexec+set}" = set; then | |
9106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 9107 | else |
8da89711 | 9108 | ac_check_lib_save_LIBS=$LIBS |
9109 | LIBS="-ltre $LIBS" | |
9110 | cat >conftest.$ac_ext <<_ACEOF | |
9111 | /* confdefs.h. */ | |
b3076f16 | 9112 | _ACEOF |
8da89711 | 9113 | cat confdefs.h >>conftest.$ac_ext |
9114 | cat >>conftest.$ac_ext <<_ACEOF | |
9115 | /* end confdefs.h. */ | |
b3076f16 | 9116 | |
8da89711 | 9117 | /* Override any GCC internal prototype to avoid an error. |
9118 | Use char because int might match the return type of a GCC | |
9119 | builtin and then its argument prototype would still apply. */ | |
9120 | #ifdef __cplusplus | |
9121 | extern "C" | |
9122 | #endif | |
9123 | char regexec (); | |
9124 | int | |
9125 | main () | |
9126 | { | |
9127 | return regexec (); | |
9128 | ; | |
9129 | return 0; | |
9130 | } | |
9131 | _ACEOF | |
9132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9133 | if { (ac_try="$ac_link" | |
9134 | case "(($ac_try" in | |
9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9136 | *) ac_try_echo=$ac_try;; | |
9137 | esac | |
9138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9139 | (eval "$ac_link") 2>conftest.er1 | |
9140 | ac_status=$? | |
9141 | grep -v '^ *+' conftest.er1 >conftest.err | |
9142 | rm -f conftest.er1 | |
9143 | cat conftest.err >&5 | |
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9145 | (exit $ac_status); } && { |
9146 | test -z "$ac_c_werror_flag" || | |
9147 | test ! -s conftest.err | |
9148 | } && test -s conftest$ac_exeext && | |
9149 | $as_test_x conftest$ac_exeext; then | |
8da89711 | 9150 | ac_cv_lib_tre_regexec=yes |
b3076f16 | 9151 | else |
8da89711 | 9152 | echo "$as_me: failed program was:" >&5 |
9153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9154 | |
8da89711 | 9155 | ac_cv_lib_tre_regexec=no |
a8b2ad8d | 9156 | fi |
9157 | ||
0bd0bef6 | 9158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8da89711 | 9159 | conftest$ac_exeext conftest.$ac_ext |
9160 | LIBS=$ac_check_lib_save_LIBS | |
b3076f16 | 9161 | fi |
8da89711 | 9162 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5 |
9163 | echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; } | |
9164 | if test $ac_cv_lib_tre_regexec = yes; then | |
9165 | cat >>confdefs.h <<_ACEOF | |
9166 | #define HAVE_LIBTRE 1 | |
8de34abd | 9167 | _ACEOF |
9168 | ||
8da89711 | 9169 | LIBS="-ltre $LIBS" |
b3076f16 | 9170 | |
9171 | else | |
0bd0bef6 | 9172 | { { 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 |
9173 | 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 | 9174 | { (exit 1); exit 1; }; } |
b3076f16 | 9175 | fi |
9176 | ||
35305a49 | 9177 | |
2784452e | 9178 | core_version="1.1" |
35305a49 | 9179 | withval='' |
9180 | ||
8da89711 | 9181 | # Check whether --with-coredumper was given. |
9182 | if test "${with_coredumper+set}" = set; then | |
9183 | withval=$with_coredumper; | |
a8b2ad8d | 9184 | fi |
35305a49 | 9185 | |
35305a49 | 9186 | if test "x$withval" != "x"; then |
8da89711 | 9187 | { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5 |
9188 | echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; } | |
39edf54a | 9189 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" |
0754f993 | 9190 | LIBS="$LIBS -L$withval/lib" |
35305a49 | 9191 | else |
8da89711 | 9192 | { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5 |
9193 | echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; } | |
39edf54a | 9194 | CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib" |
2784452e | 9195 | LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib" |
35305a49 | 9196 | fi |
8da89711 | 9197 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then |
9198 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 | |
9199 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
9200 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9202 | fi | |
8da89711 | 9203 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 |
9204 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
35305a49 | 9205 | else |
9206 | # Is the header compilable? | |
8da89711 | 9207 | { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5 |
9208 | echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; } | |
35305a49 | 9209 | cat >conftest.$ac_ext <<_ACEOF |
9210 | /* confdefs.h. */ | |
9211 | _ACEOF | |
9212 | cat confdefs.h >>conftest.$ac_ext | |
9213 | cat >>conftest.$ac_ext <<_ACEOF | |
9214 | /* end confdefs.h. */ | |
9215 | $ac_includes_default | |
8da89711 | 9216 | #include <google/coredumper.h> |
35305a49 | 9217 | _ACEOF |
9218 | rm -f conftest.$ac_objext | |
a8b2ad8d | 9219 | if { (ac_try="$ac_compile" |
9220 | case "(($ac_try" in | |
9221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9222 | *) ac_try_echo=$ac_try;; | |
9223 | esac | |
9224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9225 | (eval "$ac_compile") 2>conftest.er1 | |
35305a49 | 9226 | ac_status=$? |
9227 | grep -v '^ *+' conftest.er1 >conftest.err | |
9228 | rm -f conftest.er1 | |
9229 | cat conftest.err >&5 | |
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9231 | (exit $ac_status); } && { |
9232 | test -z "$ac_c_werror_flag" || | |
9233 | test ! -s conftest.err | |
9234 | } && test -s conftest.$ac_objext; then | |
35305a49 | 9235 | ac_header_compiler=yes |
9236 | else | |
9237 | echo "$as_me: failed program was:" >&5 | |
9238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9239 | ||
a8b2ad8d | 9240 | ac_header_compiler=no |
35305a49 | 9241 | fi |
a8b2ad8d | 9242 | |
9243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9244 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9245 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
35305a49 | 9246 | |
9247 | # Is the header present? | |
8da89711 | 9248 | { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5 |
9249 | echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; } | |
35305a49 | 9250 | cat >conftest.$ac_ext <<_ACEOF |
9251 | /* confdefs.h. */ | |
9252 | _ACEOF | |
9253 | cat confdefs.h >>conftest.$ac_ext | |
9254 | cat >>conftest.$ac_ext <<_ACEOF | |
9255 | /* end confdefs.h. */ | |
8da89711 | 9256 | #include <google/coredumper.h> |
35305a49 | 9257 | _ACEOF |
a8b2ad8d | 9258 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9259 | case "(($ac_try" in | |
9260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9261 | *) ac_try_echo=$ac_try;; | |
9262 | esac | |
9263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9264 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
35305a49 | 9265 | ac_status=$? |
9266 | grep -v '^ *+' conftest.er1 >conftest.err | |
9267 | rm -f conftest.er1 | |
9268 | cat conftest.err >&5 | |
9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9270 | (exit $ac_status); } >/dev/null && { |
9271 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9272 | test ! -s conftest.err | |
9273 | }; then | |
35305a49 | 9274 | ac_header_preproc=yes |
9275 | else | |
9276 | echo "$as_me: failed program was:" >&5 | |
9277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9278 | ||
9279 | ac_header_preproc=no | |
9280 | fi | |
a8b2ad8d | 9281 | |
35305a49 | 9282 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 9283 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9284 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35305a49 | 9285 | |
9286 | # So? What about this header? | |
9287 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9288 | yes:no: ) | |
8da89711 | 9289 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9290 | echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9291 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5 | |
9292 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;} | |
35305a49 | 9293 | ac_header_preproc=yes |
9294 | ;; | |
9295 | no:yes:* ) | |
8da89711 | 9296 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5 |
9297 | echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;} | |
9298 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5 | |
9299 | echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;} | |
9300 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5 | |
9301 | echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;} | |
9302 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9303 | echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9304 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5 | |
9305 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;} | |
9306 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5 | |
9307 | echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9308 | ( cat <<\_ASBOX |
35305a49 | 9309 | ## -------------------------------------------------- ## |
9310 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9311 | ## -------------------------------------------------- ## | |
9312 | _ASBOX | |
a8b2ad8d | 9313 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
35305a49 | 9314 | ;; |
9315 | esac | |
8da89711 | 9316 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 |
9317 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
9318 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 9319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9320 | else | |
8da89711 | 9321 | ac_cv_header_google_coredumper_h=$ac_header_preproc |
9322 | fi | |
9323 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 | |
9324 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
9325 | ||
9326 | fi | |
9327 | if test $ac_cv_header_google_coredumper_h = yes; then | |
9328 | : | |
9329 | else | |
0bd0bef6 | 9330 | { 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 |
9331 | 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 | 9332 | fi |
9333 | ||
9334 | ||
9335 | ||
9336 | { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5 | |
9337 | echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; } | |
9338 | if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then | |
9339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9340 | else | |
9341 | ac_check_lib_save_LIBS=$LIBS | |
9342 | LIBS="-lcoredumper $LIBS" | |
9343 | cat >conftest.$ac_ext <<_ACEOF | |
9344 | /* confdefs.h. */ | |
9345 | _ACEOF | |
9346 | cat confdefs.h >>conftest.$ac_ext | |
9347 | cat >>conftest.$ac_ext <<_ACEOF | |
9348 | /* end confdefs.h. */ | |
9349 | ||
9350 | /* Override any GCC internal prototype to avoid an error. | |
9351 | Use char because int might match the return type of a GCC | |
9352 | builtin and then its argument prototype would still apply. */ | |
9353 | #ifdef __cplusplus | |
9354 | extern "C" | |
9355 | #endif | |
9356 | char WriteCoreDump (); | |
9357 | int | |
9358 | main () | |
9359 | { | |
9360 | return WriteCoreDump (); | |
9361 | ; | |
9362 | return 0; | |
9363 | } | |
9364 | _ACEOF | |
9365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9366 | if { (ac_try="$ac_link" | |
9367 | case "(($ac_try" in | |
9368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9369 | *) ac_try_echo=$ac_try;; | |
9370 | esac | |
9371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9372 | (eval "$ac_link") 2>conftest.er1 | |
9373 | ac_status=$? | |
9374 | grep -v '^ *+' conftest.er1 >conftest.err | |
9375 | rm -f conftest.er1 | |
9376 | cat conftest.err >&5 | |
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9378 | (exit $ac_status); } && { |
9379 | test -z "$ac_c_werror_flag" || | |
9380 | test ! -s conftest.err | |
9381 | } && test -s conftest$ac_exeext && | |
9382 | $as_test_x conftest$ac_exeext; then | |
8da89711 | 9383 | ac_cv_lib_coredumper_WriteCoreDump=yes |
9384 | else | |
9385 | echo "$as_me: failed program was:" >&5 | |
9386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9387 | ||
9388 | ac_cv_lib_coredumper_WriteCoreDump=no | |
35305a49 | 9389 | fi |
35305a49 | 9390 | |
0bd0bef6 | 9391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8da89711 | 9392 | conftest$ac_exeext conftest.$ac_ext |
9393 | LIBS=$ac_check_lib_save_LIBS | |
35305a49 | 9394 | fi |
8da89711 | 9395 | { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5 |
9396 | echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; } | |
9397 | if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then | |
9398 | cat >>confdefs.h <<_ACEOF | |
9399 | #define HAVE_LIBCOREDUMPER 1 | |
9400 | _ACEOF | |
9401 | ||
9402 | LIBS="-lcoredumper $LIBS" | |
9403 | ||
35305a49 | 9404 | else |
0bd0bef6 | 9405 | { 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 |
9406 | 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 | 9407 | fi |
9408 | ||
9409 | ||
73d4cc91 | 9410 | withval='' |
9411 | ||
9412 | # Check whether --with-ssl was given. | |
9413 | if test "${with_ssl+set}" = set; then | |
9414 | withval=$with_ssl; | |
9415 | fi | |
9416 | ||
9417 | if test "x$withval" != "x"; then | |
9418 | { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5 | |
9419 | echo "${ECHO_T}Using include dir $withval to find openssl" >&6; } | |
9420 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
9421 | LIBS="$LIBS -L$withval/lib" | |
9422 | else | |
9423 | { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5 | |
9424 | echo "${ECHO_T}Looking for openssl in system " >&6; } | |
9425 | fi | |
9426 | ||
9427 | { echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5 | |
9428 | echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; } | |
9429 | if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then | |
9430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9431 | else | |
9432 | ac_check_lib_save_LIBS=$LIBS | |
9433 | LIBS="-lssl $LIBS" | |
9434 | cat >conftest.$ac_ext <<_ACEOF | |
9435 | /* confdefs.h. */ | |
9436 | _ACEOF | |
9437 | cat confdefs.h >>conftest.$ac_ext | |
9438 | cat >>conftest.$ac_ext <<_ACEOF | |
9439 | /* end confdefs.h. */ | |
9440 | ||
9441 | /* Override any GCC internal prototype to avoid an error. | |
9442 | Use char because int might match the return type of a GCC | |
9443 | builtin and then its argument prototype would still apply. */ | |
9444 | #ifdef __cplusplus | |
9445 | extern "C" | |
9446 | #endif | |
9447 | char BIO_new (); | |
9448 | int | |
9449 | main () | |
9450 | { | |
9451 | return BIO_new (); | |
9452 | ; | |
9453 | return 0; | |
9454 | } | |
9455 | _ACEOF | |
9456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9457 | if { (ac_try="$ac_link" | |
9458 | case "(($ac_try" in | |
9459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9460 | *) ac_try_echo=$ac_try;; | |
9461 | esac | |
9462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9463 | (eval "$ac_link") 2>conftest.er1 | |
9464 | ac_status=$? | |
9465 | grep -v '^ *+' conftest.er1 >conftest.err | |
9466 | rm -f conftest.er1 | |
9467 | cat conftest.err >&5 | |
9468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9469 | (exit $ac_status); } && { |
9470 | test -z "$ac_c_werror_flag" || | |
9471 | test ! -s conftest.err | |
9472 | } && test -s conftest$ac_exeext && | |
9473 | $as_test_x conftest$ac_exeext; then | |
73d4cc91 | 9474 | ac_cv_lib_ssl_BIO_new=yes |
9475 | else | |
9476 | echo "$as_me: failed program was:" >&5 | |
9477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9478 | ||
9479 | ac_cv_lib_ssl_BIO_new=no | |
9480 | fi | |
9481 | ||
0bd0bef6 | 9482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
73d4cc91 | 9483 | conftest$ac_exeext conftest.$ac_ext |
9484 | LIBS=$ac_check_lib_save_LIBS | |
9485 | fi | |
9486 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5 | |
9487 | echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; } | |
9488 | if test $ac_cv_lib_ssl_BIO_new = yes; then | |
9489 | ||
9490 | LIBS="-lssl $LIBS" | |
9491 | ||
9492 | for ac_header in openssl/bio.h | |
9493 | do | |
9494 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9495 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9496 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9498 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9500 | fi | |
9501 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
9502 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9503 | echo "${ECHO_T}$ac_res" >&6; } | |
9504 | else | |
9505 | # Is the header compilable? | |
9506 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9507 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
9508 | cat >conftest.$ac_ext <<_ACEOF | |
9509 | /* confdefs.h. */ | |
9510 | _ACEOF | |
9511 | cat confdefs.h >>conftest.$ac_ext | |
9512 | cat >>conftest.$ac_ext <<_ACEOF | |
9513 | /* end confdefs.h. */ | |
9514 | $ac_includes_default | |
9515 | #include <$ac_header> | |
9516 | _ACEOF | |
9517 | rm -f conftest.$ac_objext | |
9518 | if { (ac_try="$ac_compile" | |
9519 | case "(($ac_try" in | |
9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9521 | *) ac_try_echo=$ac_try;; | |
9522 | esac | |
9523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9524 | (eval "$ac_compile") 2>conftest.er1 | |
9525 | ac_status=$? | |
9526 | grep -v '^ *+' conftest.er1 >conftest.err | |
9527 | rm -f conftest.er1 | |
9528 | cat conftest.err >&5 | |
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9530 | (exit $ac_status); } && { |
9531 | test -z "$ac_c_werror_flag" || | |
9532 | test ! -s conftest.err | |
9533 | } && test -s conftest.$ac_objext; then | |
73d4cc91 | 9534 | ac_header_compiler=yes |
9535 | else | |
9536 | echo "$as_me: failed program was:" >&5 | |
9537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9538 | ||
9539 | ac_header_compiler=no | |
9540 | fi | |
9541 | ||
9542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9543 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9544 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9545 | ||
9546 | # Is the header present? | |
9547 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
9549 | cat >conftest.$ac_ext <<_ACEOF | |
9550 | /* confdefs.h. */ | |
9551 | _ACEOF | |
9552 | cat confdefs.h >>conftest.$ac_ext | |
9553 | cat >>conftest.$ac_ext <<_ACEOF | |
9554 | /* end confdefs.h. */ | |
9555 | #include <$ac_header> | |
9556 | _ACEOF | |
9557 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9558 | case "(($ac_try" in | |
9559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9560 | *) ac_try_echo=$ac_try;; | |
9561 | esac | |
9562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9563 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9564 | ac_status=$? | |
9565 | grep -v '^ *+' conftest.er1 >conftest.err | |
9566 | rm -f conftest.er1 | |
9567 | cat conftest.err >&5 | |
9568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9569 | (exit $ac_status); } >/dev/null && { |
9570 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9571 | test ! -s conftest.err | |
9572 | }; then | |
73d4cc91 | 9573 | ac_header_preproc=yes |
9574 | else | |
9575 | echo "$as_me: failed program was:" >&5 | |
9576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9577 | ||
9578 | ac_header_preproc=no | |
9579 | fi | |
9580 | ||
9581 | rm -f conftest.err conftest.$ac_ext | |
9582 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9583 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9584 | ||
9585 | # So? What about this header? | |
9586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9587 | yes:no: ) | |
9588 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9589 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9591 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9592 | ac_header_preproc=yes | |
9593 | ;; | |
9594 | no:yes:* ) | |
9595 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9596 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9597 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9598 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9599 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9600 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9601 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9602 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9604 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9605 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9606 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9607 | ( cat <<\_ASBOX | |
9608 | ## -------------------------------------------------- ## | |
9609 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9610 | ## -------------------------------------------------- ## | |
9611 | _ASBOX | |
9612 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9613 | ;; | |
9614 | esac | |
9615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9619 | else | |
9620 | eval "$as_ac_Header=\$ac_header_preproc" | |
9621 | fi | |
9622 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
9623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9624 | echo "${ECHO_T}$ac_res" >&6; } | |
9625 | ||
9626 | fi | |
9627 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9628 | cat >>confdefs.h <<_ACEOF | |
9629 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9630 | _ACEOF | |
9631 | ||
9632 | ||
9633 | cat >>confdefs.h <<\_ACEOF | |
9634 | #define WITH_SSL 1 | |
9635 | _ACEOF | |
9636 | ||
9637 | ssl_message="LDAP library: enabled" | |
9638 | ||
9639 | else | |
9640 | ||
9641 | if test "x$withval" != "x"; then | |
9642 | { { echo "$as_me:$LINENO: error: ssl headers not found" >&5 | |
9643 | echo "$as_me: error: ssl headers not found" >&2;} | |
9644 | { (exit 1); exit 1; }; } | |
9645 | fi | |
9646 | ||
9647 | fi | |
9648 | ||
9649 | done | |
9650 | ||
9651 | ||
9652 | else | |
9653 | ||
9654 | if test "x$withval" != "x"; then | |
9655 | { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5 | |
9656 | echo "$as_me: error: libldap not found or not valid" >&2;} | |
9657 | { (exit 1); exit 1; }; } | |
9658 | fi | |
9659 | ||
9660 | ||
9661 | fi | |
9662 | ||
9663 | { echo "$as_me:$LINENO: result: $LIBS" >&5 | |
9664 | echo "${ECHO_T}$LIBS" >&6; } | |
9665 | ||
9666 | ||
8da89711 | 9667 | withval='' |
35305a49 | 9668 | |
8da89711 | 9669 | # Check whether --with-ldap was given. |
9670 | if test "${with_ldap+set}" = set; then | |
9671 | withval=$with_ldap; | |
9672 | fi | |
9673 | ||
9674 | if test "x$withval" != "x"; then | |
9675 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5 | |
9676 | echo "${ECHO_T}Using include dir $withval to find libldap" >&6; } | |
9677 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
9678 | LIBS="$LIBS -L$withval/lib" | |
9679 | else | |
9680 | { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5 | |
9681 | echo "${ECHO_T}Looking for ldap in system " >&6; } | |
9682 | fi | |
9683 | ||
39edf54a | 9684 | { echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5 |
9685 | echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; } | |
9686 | if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then | |
35305a49 | 9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9688 | else | |
9689 | ac_check_lib_save_LIBS=$LIBS | |
8da89711 | 9690 | LIBS="-lldap $LIBS" |
35305a49 | 9691 | cat >conftest.$ac_ext <<_ACEOF |
9692 | /* confdefs.h. */ | |
9693 | _ACEOF | |
9694 | cat confdefs.h >>conftest.$ac_ext | |
9695 | cat >>conftest.$ac_ext <<_ACEOF | |
9696 | /* end confdefs.h. */ | |
9697 | ||
a8b2ad8d | 9698 | /* Override any GCC internal prototype to avoid an error. |
9699 | Use char because int might match the return type of a GCC | |
9700 | builtin and then its argument prototype would still apply. */ | |
35305a49 | 9701 | #ifdef __cplusplus |
9702 | extern "C" | |
9703 | #endif | |
39edf54a | 9704 | char ldap_simple_bind_s (); |
35305a49 | 9705 | int |
9706 | main () | |
9707 | { | |
39edf54a | 9708 | return ldap_simple_bind_s (); |
35305a49 | 9709 | ; |
9710 | return 0; | |
9711 | } | |
9712 | _ACEOF | |
9713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9714 | if { (ac_try="$ac_link" |
9715 | case "(($ac_try" in | |
9716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9717 | *) ac_try_echo=$ac_try;; | |
9718 | esac | |
9719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9720 | (eval "$ac_link") 2>conftest.er1 | |
35305a49 | 9721 | ac_status=$? |
9722 | grep -v '^ *+' conftest.er1 >conftest.err | |
9723 | rm -f conftest.er1 | |
9724 | cat conftest.err >&5 | |
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9726 | (exit $ac_status); } && { |
9727 | test -z "$ac_c_werror_flag" || | |
9728 | test ! -s conftest.err | |
9729 | } && test -s conftest$ac_exeext && | |
9730 | $as_test_x conftest$ac_exeext; then | |
39edf54a | 9731 | ac_cv_lib_ldap_ldap_simple_bind_s=yes |
5b1166fd | 9732 | else |
35305a49 | 9733 | echo "$as_me: failed program was:" >&5 |
9734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9735 | ||
39edf54a | 9736 | ac_cv_lib_ldap_ldap_simple_bind_s=no |
35305a49 | 9737 | fi |
a8b2ad8d | 9738 | |
0bd0bef6 | 9739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
35305a49 | 9740 | conftest$ac_exeext conftest.$ac_ext |
9741 | LIBS=$ac_check_lib_save_LIBS | |
5b1166fd | 9742 | fi |
39edf54a | 9743 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5 |
9744 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; } | |
9745 | if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then | |
b3076f16 | 9746 | |
39edf54a | 9747 | LIBS="-lldap $LIBS" |
b3076f16 | 9748 | |
8da89711 | 9749 | for ac_header in ldap.h |
9750 | do | |
9751 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9757 | fi | |
8da89711 | 9758 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9759 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9760 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 9761 | else |
9762 | # Is the header compilable? | |
8da89711 | 9763 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9764 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a8b2ad8d | 9765 | cat >conftest.$ac_ext <<_ACEOF |
9766 | /* confdefs.h. */ | |
9767 | _ACEOF | |
9768 | cat confdefs.h >>conftest.$ac_ext | |
9769 | cat >>conftest.$ac_ext <<_ACEOF | |
9770 | /* end confdefs.h. */ | |
9771 | $ac_includes_default | |
8da89711 | 9772 | #include <$ac_header> |
a8b2ad8d | 9773 | _ACEOF |
9774 | rm -f conftest.$ac_objext | |
9775 | if { (ac_try="$ac_compile" | |
9776 | case "(($ac_try" in | |
9777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9778 | *) ac_try_echo=$ac_try;; | |
9779 | esac | |
9780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9781 | (eval "$ac_compile") 2>conftest.er1 | |
9782 | ac_status=$? | |
9783 | grep -v '^ *+' conftest.er1 >conftest.err | |
9784 | rm -f conftest.er1 | |
9785 | cat conftest.err >&5 | |
9786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9787 | (exit $ac_status); } && { |
9788 | test -z "$ac_c_werror_flag" || | |
9789 | test ! -s conftest.err | |
9790 | } && test -s conftest.$ac_objext; then | |
a8b2ad8d | 9791 | ac_header_compiler=yes |
9792 | else | |
9793 | echo "$as_me: failed program was:" >&5 | |
9794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9795 | |
a8b2ad8d | 9796 | ac_header_compiler=no |
9797 | fi | |
b3076f16 | 9798 | |
a8b2ad8d | 9799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9800 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9801 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 9802 | |
a8b2ad8d | 9803 | # Is the header present? |
8da89711 | 9804 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9805 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
a8b2ad8d | 9806 | cat >conftest.$ac_ext <<_ACEOF |
9807 | /* confdefs.h. */ | |
9808 | _ACEOF | |
9809 | cat confdefs.h >>conftest.$ac_ext | |
9810 | cat >>conftest.$ac_ext <<_ACEOF | |
9811 | /* end confdefs.h. */ | |
8da89711 | 9812 | #include <$ac_header> |
a8b2ad8d | 9813 | _ACEOF |
9814 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9815 | case "(($ac_try" in | |
9816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9817 | *) ac_try_echo=$ac_try;; | |
9818 | esac | |
9819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9821 | ac_status=$? | |
9822 | grep -v '^ *+' conftest.er1 >conftest.err | |
9823 | rm -f conftest.er1 | |
9824 | cat conftest.err >&5 | |
9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
0bd0bef6 | 9826 | (exit $ac_status); } >/dev/null && { |
9827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9828 | test ! -s conftest.err | |
9829 | }; then | |
a8b2ad8d | 9830 | ac_header_preproc=yes |
9831 | else | |
9832 | echo "$as_me: failed program was:" >&5 | |
9833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 9834 | |
a8b2ad8d | 9835 | ac_header_preproc=no |
9836 | fi | |
ec311f39 | 9837 | |
a8b2ad8d | 9838 | rm -f conftest.err conftest.$ac_ext |
9839 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9840 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 9841 | |
a8b2ad8d | 9842 | # So? What about this header? |
9843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9844 | yes:no: ) | |
8da89711 | 9845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9848 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a8b2ad8d | 9849 | ac_header_preproc=yes |
9850 | ;; | |
9851 | no:yes:* ) | |
8da89711 | 9852 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9853 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9854 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9855 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9856 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9857 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9858 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9859 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9862 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9863 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9864 | ( cat <<\_ASBOX |
9865 | ## -------------------------------------------------- ## | |
9866 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9867 | ## -------------------------------------------------- ## | |
9868 | _ASBOX | |
9869 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9870 | ;; | |
9871 | esac | |
8da89711 | 9872 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 9875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9876 | else | |
8da89711 | 9877 | eval "$as_ac_Header=\$ac_header_preproc" |
a8b2ad8d | 9878 | fi |
8da89711 | 9879 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9880 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9881 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 9882 | |
9883 | fi | |
8da89711 | 9884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9885 | cat >>confdefs.h <<_ACEOF | |
9886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9887 | _ACEOF | |
a8b2ad8d | 9888 | |
9889 | ||
8da89711 | 9890 | cat >>confdefs.h <<\_ACEOF |
9891 | #define WITH_LDAP 1 | |
a8b2ad8d | 9892 | _ACEOF |
a8b2ad8d | 9893 | |
8da89711 | 9894 | ldap_message="LDAP library: enabled" |
9895 | ||
a8b2ad8d | 9896 | else |
a8b2ad8d | 9897 | |
db9a9a8a | 9898 | if test "x$withval" != "x"; then |
8da89711 | 9899 | { { echo "$as_me:$LINENO: error: ldap.h not found" >&5 |
9900 | echo "$as_me: error: ldap.h not found" >&2;} | |
9901 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 9902 | fi |
9903 | ||
a8b2ad8d | 9904 | fi |
a8b2ad8d | 9905 | |
8da89711 | 9906 | done |
9907 | ||
a8b2ad8d | 9908 | |
9909 | else | |
8da89711 | 9910 | |
db9a9a8a | 9911 | if test "x$withval" != "x"; then |
8da89711 | 9912 | { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5 |
9913 | echo "$as_me: error: libldap not found or not valid" >&2;} | |
9914 | { (exit 1); exit 1; }; } | |
9915 | fi | |
9916 | ||
9917 | ||
a8b2ad8d | 9918 | fi |
9919 | ||
39edf54a | 9920 | { echo "$as_me:$LINENO: result: $LIBS" >&5 |
9921 | echo "${ECHO_T}$LIBS" >&6; } | |
a8b2ad8d | 9922 | |
9923 | ||
9924 | cat >>confdefs.h <<_ACEOF | |
9925 | #define CODENAME "${CODENAME}" | |
9926 | _ACEOF | |
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" | |
9934 | ||
9935 | cat >confcache <<\_ACEOF | |
9936 | # This file is a shell script that caches the results of configure | |
9937 | # tests run on this system so they can be shared between configure | |
9938 | # scripts and configure runs, see configure's option --config-cache. | |
9939 | # It is not useful on other systems. If it contains results you don't | |
9940 | # want to keep, you may remove or edit it. | |
9941 | # | |
b3076f16 | 9942 | # config.status only pays attention to the cache file if you give it |
9943 | # the --recheck option to rerun configure. | |
9944 | # | |
9945 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9946 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9947 | # following values. | |
9948 | ||
9949 | _ACEOF | |
9950 | ||
9951 | # The following way of writing the cache mishandles newlines in values, | |
9952 | # but we know of no workaround that is simple, portable, and efficient. | |
a8b2ad8d | 9953 | # So, we kill variables containing newlines. |
b3076f16 | 9954 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9955 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8b2ad8d | 9956 | ( |
9957 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9958 | eval ac_val=\$$ac_var | |
9959 | case $ac_val in #( | |
9960 | *${as_nl}*) | |
9961 | case $ac_var in #( | |
9962 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
9963 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
9964 | esac | |
9965 | case $ac_var in #( | |
9966 | _ | IFS | as_nl) ;; #( | |
9967 | *) $as_unset $ac_var ;; | |
9968 | esac ;; | |
9969 | esac | |
9970 | done | |
9971 | ||
b3076f16 | 9972 | (set) 2>&1 | |
a8b2ad8d | 9973 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9974 | *${as_nl}ac_space=\ *) | |
b3076f16 | 9975 | # `set' does not quote correctly, so add quotes (double-quote |
9976 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9977 | sed -n \ | |
9978 | "s/'/'\\\\''/g; | |
9979 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a8b2ad8d | 9980 | ;; #( |
b3076f16 | 9981 | *) |
9982 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a8b2ad8d | 9983 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 9984 | ;; |
a8b2ad8d | 9985 | esac | |
9986 | sort | |
9987 | ) | | |
b3076f16 | 9988 | sed ' |
a8b2ad8d | 9989 | /^ac_cv_env_/b end |
b3076f16 | 9990 | t clear |
a8b2ad8d | 9991 | :clear |
b3076f16 | 9992 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9993 | t end | |
a8b2ad8d | 9994 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9995 | :end' >>confcache | |
9996 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9997 | if test -w "$cache_file"; then | |
9998 | test "x$cache_file" != "x/dev/null" && | |
9999 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
10000 | echo "$as_me: updating cache $cache_file" >&6;} | |
b3076f16 | 10001 | cat confcache >$cache_file |
10002 | else | |
a8b2ad8d | 10003 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
10004 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b3076f16 | 10005 | fi |
10006 | fi | |
10007 | rm -f confcache | |
10008 | ||
10009 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10010 | # Let make expand exec_prefix. | |
10011 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10012 | ||
b3076f16 | 10013 | DEFS=-DHAVE_CONFIG_H |
10014 | ||
10015 | ac_libobjs= | |
10016 | ac_ltlibobjs= | |
10017 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10018 | # 1. Remove the extension, and $U if already installed. | |
a8b2ad8d | 10019 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
10020 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
10021 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10022 | # will be set to the directory where LIBOBJS objects are built. | |
10023 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10024 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
b3076f16 | 10025 | done |
10026 | LIBOBJS=$ac_libobjs | |
10027 | ||
10028 | LTLIBOBJS=$ac_ltlibobjs | |
10029 | ||
10030 | ||
ec1a68c8 | 10031 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
10032 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10033 | Usually this means the macro was only invoked conditionally." >&5 | |
10034 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10035 | Usually this means the macro was only invoked conditionally." >&2;} | |
10036 | { (exit 1); exit 1; }; } | |
10037 | fi | |
10038 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10039 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
10040 | Usually this means the macro was only invoked conditionally." >&5 | |
10041 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
10042 | Usually this means the macro was only invoked conditionally." >&2;} | |
10043 | { (exit 1); exit 1; }; } | |
10044 | fi | |
10045 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10046 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10047 | Usually this means the macro was only invoked conditionally." >&5 | |
10048 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10049 | Usually this means the macro was only invoked conditionally." >&2;} | |
10050 | { (exit 1); exit 1; }; } | |
10051 | fi | |
10052 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10053 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10054 | Usually this means the macro was only invoked conditionally." >&5 | |
10055 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10056 | Usually this means the macro was only invoked conditionally." >&2;} | |
10057 | { (exit 1); exit 1; }; } | |
10058 | fi | |
b3076f16 | 10059 | |
10060 | : ${CONFIG_STATUS=./config.status} | |
10061 | ac_clean_files_save=$ac_clean_files | |
10062 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10063 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10064 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10065 | cat >$CONFIG_STATUS <<_ACEOF | |
10066 | #! $SHELL | |
10067 | # Generated by $as_me. | |
10068 | # Run this file to recreate the current configuration. | |
10069 | # Compiler output produced by configure, useful for debugging | |
10070 | # configure, is in config.log if it exists. | |
10071 | ||
10072 | debug=false | |
10073 | ac_cs_recheck=false | |
10074 | ac_cs_silent=false | |
10075 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10076 | _ACEOF | |
10077 | ||
10078 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10079 | ## --------------------- ## | |
10080 | ## M4sh Initialization. ## | |
10081 | ## --------------------- ## | |
10082 | ||
0bd0bef6 | 10083 | # Be more Bourne compatible |
10084 | DUALCASE=1; export DUALCASE # for MKS sh | |
b3076f16 | 10085 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
10086 | emulate sh | |
10087 | NULLCMD=: | |
10088 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10089 | # is contrary to our usage. Disable this feature. | |
10090 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 10091 | setopt NO_GLOB_SUBST |
10092 | else | |
0bd0bef6 | 10093 | case `(set -o) 2>/dev/null` in |
10094 | *posix*) set -o posix ;; | |
10095 | esac | |
10096 | ||
b3076f16 | 10097 | fi |
0bd0bef6 | 10098 | |
10099 | ||
b3076f16 | 10100 | |
a8b2ad8d | 10101 | |
10102 | # PATH needs CR | |
10103 | # Avoid depending upon Character Ranges. | |
10104 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10105 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10106 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10107 | as_cr_digits='0123456789' | |
10108 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10109 | ||
10110 | # The user is always right. | |
10111 | if test "${PATH_SEPARATOR+set}" != set; then | |
10112 | echo "#! /bin/sh" >conf$$.sh | |
10113 | echo "exit 0" >>conf$$.sh | |
10114 | chmod +x conf$$.sh | |
10115 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10116 | PATH_SEPARATOR=';' | |
10117 | else | |
10118 | PATH_SEPARATOR=: | |
10119 | fi | |
10120 | rm -f conf$$.sh | |
10121 | fi | |
10122 | ||
b3076f16 | 10123 | # Support unset when possible. |
10124 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10125 | as_unset=unset | |
10126 | else | |
10127 | as_unset=false | |
10128 | fi | |
10129 | ||
10130 | ||
a8b2ad8d | 10131 | # IFS |
10132 | # We need space, tab and new line, in precisely that order. Quoting is | |
10133 | # there to prevent editors from complaining about space-tab. | |
10134 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10135 | # splitting by setting IFS to empty value.) | |
10136 | as_nl=' | |
10137 | ' | |
10138 | IFS=" "" $as_nl" | |
10139 | ||
10140 | # Find who we are. Look in the path if we contain no directory separator. | |
10141 | case $0 in | |
10142 | *[\\/]* ) as_myself=$0 ;; | |
10143 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10144 | for as_dir in $PATH | |
10145 | do | |
10146 | IFS=$as_save_IFS | |
10147 | test -z "$as_dir" && as_dir=. | |
10148 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10149 | done | |
10150 | IFS=$as_save_IFS | |
10151 | ||
10152 | ;; | |
10153 | esac | |
10154 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10155 | # in which case we are not to be found in the path. | |
10156 | if test "x$as_myself" = x; then | |
10157 | as_myself=$0 | |
10158 | fi | |
10159 | if test ! -f "$as_myself"; then | |
10160 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10161 | { (exit 1); exit 1; } | |
10162 | fi | |
10163 | ||
b3076f16 | 10164 | # Work around bugs in pre-3.0 UWIN ksh. |
a8b2ad8d | 10165 | for as_var in ENV MAIL MAILPATH |
10166 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
10167 | done | |
b3076f16 | 10168 | PS1='$ ' |
10169 | PS2='> ' | |
10170 | PS4='+ ' | |
10171 | ||
10172 | # NLS nuisances. | |
10173 | for as_var in \ | |
10174 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10175 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10176 | LC_TELEPHONE LC_TIME | |
10177 | do | |
10178 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
10179 | eval $as_var=C; export $as_var | |
10180 | else | |
a8b2ad8d | 10181 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b3076f16 | 10182 | fi |
10183 | done | |
10184 | ||
10185 | # Required to use basename. | |
a8b2ad8d | 10186 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10187 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 10188 | as_expr=expr |
10189 | else | |
10190 | as_expr=false | |
10191 | fi | |
10192 | ||
a8b2ad8d | 10193 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 10194 | as_basename=basename |
10195 | else | |
10196 | as_basename=false | |
10197 | fi | |
10198 | ||
10199 | ||
10200 | # Name of the executable. | |
a8b2ad8d | 10201 | as_me=`$as_basename -- "$0" || |
b3076f16 | 10202 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10203 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 10204 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 10205 | echo X/"$0" | |
a8b2ad8d | 10206 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10207 | s//\1/ | |
10208 | q | |
10209 | } | |
10210 | /^X\/\(\/\/\)$/{ | |
10211 | s//\1/ | |
10212 | q | |
10213 | } | |
10214 | /^X\/\(\/\).*/{ | |
10215 | s//\1/ | |
10216 | q | |
10217 | } | |
10218 | s/.*/./; q'` | |
b3076f16 | 10219 | |
a8b2ad8d | 10220 | # CDPATH. |
10221 | $as_unset CDPATH | |
b3076f16 | 10222 | |
10223 | ||
b3076f16 | 10224 | |
b3076f16 | 10225 | as_lineno_1=$LINENO |
10226 | as_lineno_2=$LINENO | |
b3076f16 | 10227 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a8b2ad8d | 10228 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b3076f16 | 10229 | |
10230 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
10231 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a8b2ad8d | 10232 | # line-number line after each line using $LINENO; the second 'sed' |
10233 | # does the real work. The second script uses 'N' to pair each | |
10234 | # line-number line with the line containing $LINENO, and appends | |
10235 | # trailing '-' during substitution so that $LINENO is not a special | |
10236 | # case at line end. | |
b3076f16 | 10237 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a8b2ad8d | 10238 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
10239 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
10240 | sed -n ' | |
10241 | p | |
10242 | /[$]LINENO/= | |
10243 | ' <$as_myself | | |
b3076f16 | 10244 | sed ' |
a8b2ad8d | 10245 | s/[$]LINENO.*/&-/ |
10246 | t lineno | |
10247 | b | |
10248 | :lineno | |
b3076f16 | 10249 | N |
a8b2ad8d | 10250 | :loop |
10251 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b3076f16 | 10252 | t loop |
a8b2ad8d | 10253 | s/-\n.*// |
b3076f16 | 10254 | ' >$as_me.lineno && |
a8b2ad8d | 10255 | chmod +x "$as_me.lineno" || |
10256 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b3076f16 | 10257 | { (exit 1); exit 1; }; } |
10258 | ||
10259 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10260 | # (the dirname of $[0] is not the place where we might find the | |
a8b2ad8d | 10261 | # original and so on. Autoconf is especially sensitive to this). |
10262 | . "./$as_me.lineno" | |
b3076f16 | 10263 | # Exit status is that of the last command. |
10264 | exit | |
10265 | } | |
10266 | ||
10267 | ||
a8b2ad8d | 10268 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10269 | as_dirname=dirname | |
10270 | else | |
10271 | as_dirname=false | |
10272 | fi | |
10273 | ||
10274 | ECHO_C= ECHO_N= ECHO_T= | |
10275 | case `echo -n x` in | |
10276 | -n*) | |
10277 | case `echo 'x\c'` in | |
10278 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10279 | *) ECHO_C='\c';; | |
10280 | esac;; | |
10281 | *) | |
10282 | ECHO_N='-n';; | |
b3076f16 | 10283 | esac |
10284 | ||
a8b2ad8d | 10285 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10286 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 10287 | as_expr=expr |
10288 | else | |
10289 | as_expr=false | |
10290 | fi | |
10291 | ||
10292 | rm -f conf$$ conf$$.exe conf$$.file | |
a8b2ad8d | 10293 | if test -d conf$$.dir; then |
10294 | rm -f conf$$.dir/conf$$.file | |
10295 | else | |
10296 | rm -f conf$$.dir | |
10297 | mkdir conf$$.dir | |
10298 | fi | |
b3076f16 | 10299 | echo >conf$$.file |
10300 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8b2ad8d | 10301 | as_ln_s='ln -s' |
10302 | # ... but there are two gotchas: | |
10303 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10304 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10305 | # In both cases, we have to default to `cp -p'. | |
10306 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b3076f16 | 10307 | as_ln_s='cp -p' |
b3076f16 | 10308 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10309 | as_ln_s=ln | |
10310 | else | |
10311 | as_ln_s='cp -p' | |
10312 | fi | |
a8b2ad8d | 10313 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10314 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 10315 | |
10316 | if mkdir -p . 2>/dev/null; then | |
10317 | as_mkdir_p=: | |
10318 | else | |
10319 | test -d ./-p && rmdir ./-p | |
10320 | as_mkdir_p=false | |
10321 | fi | |
10322 | ||
0bd0bef6 | 10323 | if test -x / >/dev/null 2>&1; then |
10324 | as_test_x='test -x' | |
a8b2ad8d | 10325 | else |
0bd0bef6 | 10326 | if ls -dL / >/dev/null 2>&1; then |
10327 | as_ls_L_option=L | |
10328 | else | |
10329 | as_ls_L_option= | |
10330 | fi | |
10331 | as_test_x=' | |
10332 | eval sh -c '\'' | |
10333 | if test -d "$1"; then | |
10334 | test -d "$1/."; | |
10335 | else | |
10336 | case $1 in | |
10337 | -*)set "./$1";; | |
10338 | esac; | |
10339 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
10340 | ???[sx]*):;;*)false;;esac;fi | |
10341 | '\'' sh | |
10342 | ' | |
a8b2ad8d | 10343 | fi |
0bd0bef6 | 10344 | as_executable_p=$as_test_x |
b3076f16 | 10345 | |
10346 | # Sed expression to map a string onto a valid CPP name. | |
10347 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10348 | ||
10349 | # Sed expression to map a string onto a valid variable name. | |
10350 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10351 | ||
10352 | ||
b3076f16 | 10353 | exec 6>&1 |
10354 | ||
a8b2ad8d | 10355 | # Save the log message, to keep $[0] and so on meaningful, and to |
b3076f16 | 10356 | # report actual input values of CONFIG_FILES etc. instead of their |
a8b2ad8d | 10357 | # values after options handling. |
10358 | ac_log=" | |
0f6fe38c | 10359 | This file was extended by X3 $as_me 1.5, which was |
0bd0bef6 | 10360 | generated by GNU Autoconf 2.61. Invocation command line was |
b3076f16 | 10361 | |
10362 | CONFIG_FILES = $CONFIG_FILES | |
10363 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10364 | CONFIG_LINKS = $CONFIG_LINKS | |
10365 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10366 | $ $0 $@ | |
10367 | ||
a8b2ad8d | 10368 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10369 | " | |
10370 | ||
b3076f16 | 10371 | _ACEOF |
10372 | ||
a8b2ad8d | 10373 | cat >>$CONFIG_STATUS <<_ACEOF |
b3076f16 | 10374 | # Files that config.status was made for. |
a8b2ad8d | 10375 | config_files="$ac_config_files" |
10376 | config_headers="$ac_config_headers" | |
10377 | config_commands="$ac_config_commands" | |
b3076f16 | 10378 | |
a8b2ad8d | 10379 | _ACEOF |
b3076f16 | 10380 | |
10381 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b3076f16 | 10382 | ac_cs_usage="\ |
10383 | \`$as_me' instantiates files from templates according to the | |
10384 | current configuration. | |
10385 | ||
10386 | Usage: $0 [OPTIONS] [FILE]... | |
10387 | ||
10388 | -h, --help print this help, then exit | |
0bd0bef6 | 10389 | -V, --version print version number and configuration settings, then exit |
b3076f16 | 10390 | -q, --quiet do not print progress messages |
10391 | -d, --debug don't remove temporary files | |
10392 | --recheck update $as_me by reconfiguring in the same conditions | |
10393 | --file=FILE[:TEMPLATE] | |
10394 | instantiate the configuration file FILE | |
10395 | --header=FILE[:TEMPLATE] | |
10396 | instantiate the configuration header FILE | |
10397 | ||
10398 | Configuration files: | |
10399 | $config_files | |
10400 | ||
10401 | Configuration headers: | |
10402 | $config_headers | |
10403 | ||
ec1a68c8 | 10404 | Configuration commands: |
10405 | $config_commands | |
10406 | ||
b3076f16 | 10407 | Report bugs to <bug-autoconf@gnu.org>." |
b3076f16 | 10408 | |
a8b2ad8d | 10409 | _ACEOF |
b3076f16 | 10410 | cat >>$CONFIG_STATUS <<_ACEOF |
10411 | ac_cs_version="\\ | |
0f6fe38c | 10412 | X3 config.status 1.5 |
0bd0bef6 | 10413 | configured by $0, generated by GNU Autoconf 2.61, |
a8b2ad8d | 10414 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
b3076f16 | 10415 | |
a8b2ad8d | 10416 | Copyright (C) 2006 Free Software Foundation, Inc. |
b3076f16 | 10417 | This config.status script is free software; the Free Software Foundation |
10418 | gives unlimited permission to copy, distribute and modify it." | |
a8b2ad8d | 10419 | |
10420 | ac_pwd='$ac_pwd' | |
10421 | srcdir='$srcdir' | |
10422 | INSTALL='$INSTALL' | |
b3076f16 | 10423 | _ACEOF |
10424 | ||
10425 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10426 | # If no file are specified by the user, then we need to provide default | |
10427 | # value. By we need to know if files were specified by the user. | |
10428 | ac_need_defaults=: | |
10429 | while test $# != 0 | |
10430 | do | |
10431 | case $1 in | |
10432 | --*=*) | |
a8b2ad8d | 10433 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10434 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b3076f16 | 10435 | ac_shift=: |
10436 | ;; | |
a8b2ad8d | 10437 | *) |
b3076f16 | 10438 | ac_option=$1 |
10439 | ac_optarg=$2 | |
10440 | ac_shift=shift | |
10441 | ;; | |
b3076f16 | 10442 | esac |
10443 | ||
10444 | case $ac_option in | |
10445 | # Handling of the options. | |
b3076f16 | 10446 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10447 | ac_cs_recheck=: ;; | |
a8b2ad8d | 10448 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
10449 | echo "$ac_cs_version"; exit ;; | |
10450 | --debug | --debu | --deb | --de | --d | -d ) | |
b3076f16 | 10451 | debug=: ;; |
10452 | --file | --fil | --fi | --f ) | |
10453 | $ac_shift | |
10454 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10455 | ac_need_defaults=false;; | |
10456 | --header | --heade | --head | --hea ) | |
10457 | $ac_shift | |
10458 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
10459 | ac_need_defaults=false;; | |
a8b2ad8d | 10460 | --he | --h) |
10461 | # Conflict between --help and --header | |
10462 | { echo "$as_me: error: ambiguous option: $1 | |
10463 | Try \`$0 --help' for more information." >&2 | |
10464 | { (exit 1); exit 1; }; };; | |
10465 | --help | --hel | -h ) | |
10466 | echo "$ac_cs_usage"; exit ;; | |
b3076f16 | 10467 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10468 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10469 | ac_cs_silent=: ;; | |
10470 | ||
10471 | # This is an error. | |
a8b2ad8d | 10472 | -*) { echo "$as_me: error: unrecognized option: $1 |
10473 | Try \`$0 --help' for more information." >&2 | |
b3076f16 | 10474 | { (exit 1); exit 1; }; } ;; |
10475 | ||
a8b2ad8d | 10476 | *) ac_config_targets="$ac_config_targets $1" |
10477 | ac_need_defaults=false ;; | |
b3076f16 | 10478 | |
10479 | esac | |
10480 | shift | |
10481 | done | |
10482 | ||
10483 | ac_configure_extra_args= | |
10484 | ||
10485 | if $ac_cs_silent; then | |
10486 | exec 6>/dev/null | |
10487 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10488 | fi | |
10489 | ||
10490 | _ACEOF | |
10491 | cat >>$CONFIG_STATUS <<_ACEOF | |
10492 | if \$ac_cs_recheck; then | |
a8b2ad8d | 10493 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
10494 | CONFIG_SHELL=$SHELL | |
10495 | export CONFIG_SHELL | |
10496 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
b3076f16 | 10497 | fi |
10498 | ||
10499 | _ACEOF | |
a8b2ad8d | 10500 | cat >>$CONFIG_STATUS <<\_ACEOF |
10501 | exec 5>>config.log | |
10502 | { | |
10503 | echo | |
10504 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10505 | ## Running $as_me. ## | |
10506 | _ASBOX | |
10507 | echo "$ac_log" | |
10508 | } >&5 | |
b3076f16 | 10509 | |
a8b2ad8d | 10510 | _ACEOF |
ec1a68c8 | 10511 | cat >>$CONFIG_STATUS <<_ACEOF |
10512 | # | |
a8b2ad8d | 10513 | # INIT-COMMANDS |
ec1a68c8 | 10514 | # |
ec1a68c8 | 10515 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
10516 | ||
10517 | _ACEOF | |
b3076f16 | 10518 | |
b3076f16 | 10519 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 10520 | |
10521 | # Handling of arguments. | |
b3076f16 | 10522 | for ac_config_target in $ac_config_targets |
10523 | do | |
a8b2ad8d | 10524 | case $ac_config_target in |
10525 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
10526 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
10527 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10528 | "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;; | |
10529 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
10530 | ||
b3076f16 | 10531 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
10532 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10533 | { (exit 1); exit 1; }; };; | |
10534 | esac | |
10535 | done | |
10536 | ||
a8b2ad8d | 10537 | |
b3076f16 | 10538 | # If the user did not use the arguments to specify the items to instantiate, |
10539 | # then the envvar interface is used. Set only those that are not. | |
10540 | # We use the long form for the default assignment because of an extremely | |
10541 | # bizarre bug on SunOS 4.1.3. | |
10542 | if $ac_need_defaults; then | |
10543 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10544 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
ec1a68c8 | 10545 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b3076f16 | 10546 | fi |
10547 | ||
10548 | # Have a temporary directory for convenience. Make it in the build tree | |
a8b2ad8d | 10549 | # simply because there is no reason against having it here, and in addition, |
b3076f16 | 10550 | # creating and moving files from /tmp can sometimes cause problems. |
a8b2ad8d | 10551 | # Hook for its removal unless debugging. |
10552 | # Note that there is a small window in which the directory will not be cleaned: | |
10553 | # after its creation but before its name has been assigned to `$tmp'. | |
b3076f16 | 10554 | $debug || |
10555 | { | |
a8b2ad8d | 10556 | tmp= |
10557 | trap 'exit_status=$? | |
10558 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10559 | ' 0 | |
b3076f16 | 10560 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
10561 | } | |
b3076f16 | 10562 | # Create a (secure) tmp directory for tmp files. |
10563 | ||
10564 | { | |
a8b2ad8d | 10565 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b3076f16 | 10566 | test -n "$tmp" && test -d "$tmp" |
10567 | } || | |
10568 | { | |
a8b2ad8d | 10569 | tmp=./conf$$-$RANDOM |
10570 | (umask 077 && mkdir "$tmp") | |
b3076f16 | 10571 | } || |
10572 | { | |
10573 | echo "$me: cannot create a temporary directory in ." >&2 | |
10574 | { (exit 1); exit 1; } | |
10575 | } | |
10576 | ||
b3076f16 | 10577 | # |
a8b2ad8d | 10578 | # Set up the sed scripts for CONFIG_FILES section. |
b3076f16 | 10579 | # |
10580 | ||
10581 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10582 | # This happens for instance when ./config.status config.h | |
a8b2ad8d | 10583 | if test -n "$CONFIG_FILES"; then |
10584 | ||
10585 | _ACEOF | |
10586 | ||
10587 | ||
10588 | ||
10589 | ac_delim='%!_!# ' | |
10590 | for ac_last_try in false false false false false :; do | |
10591 | cat >conf$$subs.sed <<_ACEOF | |
10592 | SHELL!$SHELL$ac_delim | |
10593 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
10594 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
10595 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
10596 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
10597 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
10598 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
10599 | exec_prefix!$exec_prefix$ac_delim | |
10600 | prefix!$prefix$ac_delim | |
10601 | program_transform_name!$program_transform_name$ac_delim | |
10602 | bindir!$bindir$ac_delim | |
10603 | sbindir!$sbindir$ac_delim | |
10604 | libexecdir!$libexecdir$ac_delim | |
10605 | datarootdir!$datarootdir$ac_delim | |
10606 | datadir!$datadir$ac_delim | |
10607 | sysconfdir!$sysconfdir$ac_delim | |
10608 | sharedstatedir!$sharedstatedir$ac_delim | |
10609 | localstatedir!$localstatedir$ac_delim | |
10610 | includedir!$includedir$ac_delim | |
10611 | oldincludedir!$oldincludedir$ac_delim | |
10612 | docdir!$docdir$ac_delim | |
10613 | infodir!$infodir$ac_delim | |
10614 | htmldir!$htmldir$ac_delim | |
10615 | dvidir!$dvidir$ac_delim | |
10616 | pdfdir!$pdfdir$ac_delim | |
10617 | psdir!$psdir$ac_delim | |
10618 | libdir!$libdir$ac_delim | |
10619 | localedir!$localedir$ac_delim | |
10620 | mandir!$mandir$ac_delim | |
10621 | DEFS!$DEFS$ac_delim | |
10622 | ECHO_C!$ECHO_C$ac_delim | |
10623 | ECHO_N!$ECHO_N$ac_delim | |
10624 | ECHO_T!$ECHO_T$ac_delim | |
10625 | LIBS!$LIBS$ac_delim | |
10626 | build_alias!$build_alias$ac_delim | |
10627 | host_alias!$host_alias$ac_delim | |
10628 | target_alias!$target_alias$ac_delim | |
10629 | build!$build$ac_delim | |
10630 | build_cpu!$build_cpu$ac_delim | |
10631 | build_vendor!$build_vendor$ac_delim | |
10632 | build_os!$build_os$ac_delim | |
10633 | host!$host$ac_delim | |
10634 | host_cpu!$host_cpu$ac_delim | |
10635 | host_vendor!$host_vendor$ac_delim | |
10636 | host_os!$host_os$ac_delim | |
10637 | target!$target$ac_delim | |
10638 | target_cpu!$target_cpu$ac_delim | |
10639 | target_vendor!$target_vendor$ac_delim | |
10640 | target_os!$target_os$ac_delim | |
10641 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
10642 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
10643 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
10644 | CYGPATH_W!$CYGPATH_W$ac_delim | |
10645 | PACKAGE!$PACKAGE$ac_delim | |
10646 | VERSION!$VERSION$ac_delim | |
10647 | ACLOCAL!$ACLOCAL$ac_delim | |
10648 | AUTOCONF!$AUTOCONF$ac_delim | |
10649 | AUTOMAKE!$AUTOMAKE$ac_delim | |
10650 | AUTOHEADER!$AUTOHEADER$ac_delim | |
10651 | MAKEINFO!$MAKEINFO$ac_delim | |
10652 | install_sh!$install_sh$ac_delim | |
10653 | STRIP!$STRIP$ac_delim | |
10654 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
10655 | mkdir_p!$mkdir_p$ac_delim | |
10656 | AWK!$AWK$ac_delim | |
10657 | SET_MAKE!$SET_MAKE$ac_delim | |
10658 | am__leading_dot!$am__leading_dot$ac_delim | |
10659 | AMTAR!$AMTAR$ac_delim | |
10660 | am__tar!$am__tar$ac_delim | |
10661 | am__untar!$am__untar$ac_delim | |
10662 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
10663 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
10664 | MAINT!$MAINT$ac_delim | |
10665 | CC!$CC$ac_delim | |
10666 | CFLAGS!$CFLAGS$ac_delim | |
10667 | LDFLAGS!$LDFLAGS$ac_delim | |
10668 | CPPFLAGS!$CPPFLAGS$ac_delim | |
10669 | ac_ct_CC!$ac_ct_CC$ac_delim | |
10670 | EXEEXT!$EXEEXT$ac_delim | |
10671 | OBJEXT!$OBJEXT$ac_delim | |
10672 | DEPDIR!$DEPDIR$ac_delim | |
10673 | am__include!$am__include$ac_delim | |
10674 | am__quote!$am__quote$ac_delim | |
10675 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
10676 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
10677 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
10678 | CCDEPMODE!$CCDEPMODE$ac_delim | |
10679 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
10680 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
10681 | RANLIB!$RANLIB$ac_delim | |
0f6fe38c | 10682 | LN_S!$LN_S$ac_delim |
10683 | CPP!$CPP$ac_delim | |
a8b2ad8d | 10684 | GREP!$GREP$ac_delim |
10685 | EGREP!$EGREP$ac_delim | |
0f6fe38c | 10686 | MAKER!$MAKER$ac_delim |
10687 | ALLOCA!$ALLOCA$ac_delim | |
10688 | MODULE_OBJS!$MODULE_OBJS$ac_delim | |
a8b2ad8d | 10689 | _ACEOF |
10690 | ||
10691 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
10692 | break | |
10693 | elif $ac_last_try; then | |
10694 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10695 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10696 | { (exit 1); exit 1; }; } | |
10697 | else | |
10698 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
b3076f16 | 10699 | fi |
a8b2ad8d | 10700 | done |
b3076f16 | 10701 | |
a8b2ad8d | 10702 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
10703 | if test -n "$ac_eof"; then | |
10704 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10705 | ac_eof=`expr $ac_eof + 1` | |
10706 | fi | |
10707 | ||
10708 | cat >>$CONFIG_STATUS <<_ACEOF | |
10709 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
10710 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b3076f16 | 10711 | _ACEOF |
a8b2ad8d | 10712 | sed ' |
10713 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10714 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10715 | :n | |
10716 | t n | |
10717 | s/'"$ac_delim"'$/,g/; t | |
10718 | s/$/\\/; p | |
10719 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10720 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10721 | rm -f conf$$subs.sed | |
10722 | cat >>$CONFIG_STATUS <<_ACEOF | |
10723 | CEOF$ac_eof | |
10724 | _ACEOF | |
10725 | ||
10726 | ||
10727 | ac_delim='%!_!# ' | |
10728 | for ac_last_try in false false false false false :; do | |
10729 | cat >conf$$subs.sed <<_ACEOF | |
10730 | MY_SUBDIRS!$MY_SUBDIRS$ac_delim | |
10731 | RX_INCLUDES!$RX_INCLUDES$ac_delim | |
10732 | RX_LIBS!$RX_LIBS$ac_delim | |
10733 | TRACK!$TRACK$ac_delim | |
10734 | LIBOBJS!$LIBOBJS$ac_delim | |
10735 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
10736 | _ACEOF | |
10737 | ||
0f6fe38c | 10738 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then |
a8b2ad8d | 10739 | break |
10740 | elif $ac_last_try; then | |
10741 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
10742 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
10743 | { (exit 1); exit 1; }; } | |
10744 | else | |
10745 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10746 | fi | |
10747 | done | |
10748 | ||
10749 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
10750 | if test -n "$ac_eof"; then | |
10751 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
10752 | ac_eof=`expr $ac_eof + 1` | |
10753 | fi | |
10754 | ||
10755 | cat >>$CONFIG_STATUS <<_ACEOF | |
10756 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
10757 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
10758 | _ACEOF | |
10759 | sed ' | |
10760 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
10761 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
10762 | :n | |
10763 | t n | |
10764 | s/'"$ac_delim"'$/,g/; t | |
10765 | s/$/\\/; p | |
10766 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
10767 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
10768 | rm -f conf$$subs.sed | |
10769 | cat >>$CONFIG_STATUS <<_ACEOF | |
10770 | :end | |
10771 | s/|#_!!_#|//g | |
10772 | CEOF$ac_eof | |
10773 | _ACEOF | |
10774 | ||
10775 | ||
10776 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
10777 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10778 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10779 | # (actually we leave an empty line to preserve line numbers). | |
10780 | if test "x$srcdir" = x.; then | |
10781 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10782 | s/:*\$(srcdir):*/:/ | |
10783 | s/:*\${srcdir}:*/:/ | |
10784 | s/:*@srcdir@:*/:/ | |
10785 | s/^\([^=]*=[ ]*\):*/\1/ | |
10786 | s/:*$// | |
10787 | s/^[^=]*=[ ]*$// | |
10788 | }' | |
10789 | fi | |
10790 | ||
b3076f16 | 10791 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 10792 | fi # test -n "$CONFIG_FILES" |
10793 | ||
10794 | ||
10795 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
10796 | do | |
10797 | case $ac_tag in | |
10798 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10799 | esac | |
10800 | case $ac_mode$ac_tag in | |
10801 | :[FHL]*:*);; | |
10802 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
10803 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
10804 | { (exit 1); exit 1; }; };; | |
10805 | :[FH]-) ac_tag=-:-;; | |
10806 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10807 | esac | |
10808 | ac_save_IFS=$IFS | |
10809 | IFS=: | |
10810 | set x $ac_tag | |
10811 | IFS=$ac_save_IFS | |
10812 | shift | |
10813 | ac_file=$1 | |
10814 | shift | |
10815 | ||
10816 | case $ac_mode in | |
10817 | :L) ac_source=$1;; | |
10818 | :[FH]) | |
10819 | ac_file_inputs= | |
10820 | for ac_f | |
10821 | do | |
10822 | case $ac_f in | |
10823 | -) ac_f="$tmp/stdin";; | |
10824 | *) # Look for the file first in the build tree, then in the source tree | |
10825 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10826 | # because $ac_f cannot contain `:'. | |
10827 | test -f "$ac_f" || | |
10828 | case $ac_f in | |
10829 | [\\/$]*) false;; | |
10830 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10831 | esac || | |
10832 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
10833 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
10834 | { (exit 1); exit 1; }; };; | |
10835 | esac | |
10836 | ac_file_inputs="$ac_file_inputs $ac_f" | |
10837 | done | |
10838 | ||
10839 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10840 | # use $as_me), people would be surprised to read: | |
10841 | # /* config.h. Generated by config.status. */ | |
10842 | configure_input="Generated from "`IFS=: | |
10843 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
10844 | if test x"$ac_file" != x-; then | |
10845 | configure_input="$ac_file. $configure_input" | |
10846 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
10847 | echo "$as_me: creating $ac_file" >&6;} | |
10848 | fi | |
10849 | ||
10850 | case $ac_tag in | |
10851 | *:-:* | *:-) cat >"$tmp/stdin";; | |
10852 | esac | |
10853 | ;; | |
b3076f16 | 10854 | esac |
10855 | ||
a8b2ad8d | 10856 | ac_dir=`$as_dirname -- "$ac_file" || |
b3076f16 | 10857 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10858 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10859 | X"$ac_file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 10860 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 10861 | echo X"$ac_file" | |
a8b2ad8d | 10862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10863 | s//\1/ | |
10864 | q | |
10865 | } | |
10866 | /^X\(\/\/\)[^/].*/{ | |
10867 | s//\1/ | |
10868 | q | |
10869 | } | |
10870 | /^X\(\/\/\)$/{ | |
10871 | s//\1/ | |
10872 | q | |
10873 | } | |
10874 | /^X\(\/\).*/{ | |
10875 | s//\1/ | |
10876 | q | |
10877 | } | |
10878 | s/.*/./; q'` | |
10879 | { as_dir="$ac_dir" | |
10880 | case $as_dir in #( | |
10881 | -*) as_dir=./$as_dir;; | |
10882 | esac | |
10883 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
b3076f16 | 10884 | as_dirs= |
a8b2ad8d | 10885 | while :; do |
10886 | case $as_dir in #( | |
10887 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
10888 | *) as_qdir=$as_dir;; | |
10889 | esac | |
10890 | as_dirs="'$as_qdir' $as_dirs" | |
10891 | as_dir=`$as_dirname -- "$as_dir" || | |
b3076f16 | 10892 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10893 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10894 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 10895 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 10896 | echo X"$as_dir" | |
a8b2ad8d | 10897 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10898 | s//\1/ | |
10899 | q | |
10900 | } | |
10901 | /^X\(\/\/\)[^/].*/{ | |
10902 | s//\1/ | |
10903 | q | |
10904 | } | |
10905 | /^X\(\/\/\)$/{ | |
10906 | s//\1/ | |
10907 | q | |
10908 | } | |
10909 | /^X\(\/\).*/{ | |
10910 | s//\1/ | |
10911 | q | |
10912 | } | |
10913 | s/.*/./; q'` | |
10914 | test -d "$as_dir" && break | |
b3076f16 | 10915 | done |
a8b2ad8d | 10916 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
10917 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
10918 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
b3076f16 | 10919 | { (exit 1); exit 1; }; }; } |
b3076f16 | 10920 | ac_builddir=. |
10921 | ||
a8b2ad8d | 10922 | case "$ac_dir" in |
10923 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10924 | *) | |
b3076f16 | 10925 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 10926 | # A ".." for each directory in $ac_dir_suffix. |
10927 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
10928 | case $ac_top_builddir_sub in | |
10929 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10930 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10931 | esac ;; | |
10932 | esac | |
10933 | ac_abs_top_builddir=$ac_pwd | |
10934 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10935 | # for backward compatibility: | |
10936 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 10937 | |
10938 | case $srcdir in | |
a8b2ad8d | 10939 | .) # We are building in place. |
b3076f16 | 10940 | ac_srcdir=. |
a8b2ad8d | 10941 | ac_top_srcdir=$ac_top_builddir_sub |
10942 | ac_abs_top_srcdir=$ac_pwd ;; | |
10943 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 10944 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 10945 | ac_top_srcdir=$srcdir |
10946 | ac_abs_top_srcdir=$srcdir ;; | |
10947 | *) # Relative name. | |
10948 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10949 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10950 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 10951 | esac |
a8b2ad8d | 10952 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b3076f16 | 10953 | |
b3076f16 | 10954 | |
a8b2ad8d | 10955 | case $ac_mode in |
10956 | :F) | |
10957 | # | |
10958 | # CONFIG_FILE | |
10959 | # | |
b3076f16 | 10960 | |
10961 | case $INSTALL in | |
10962 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a8b2ad8d | 10963 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
b3076f16 | 10964 | esac |
a8b2ad8d | 10965 | _ACEOF |
b3076f16 | 10966 | |
a8b2ad8d | 10967 | cat >>$CONFIG_STATUS <<\_ACEOF |
10968 | # If the template does not know about datarootdir, expand it. | |
10969 | # FIXME: This hack should be removed a few years after 2.60. | |
10970 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
b8cb2a14 | 10971 | |
a8b2ad8d | 10972 | case `sed -n '/datarootdir/ { |
10973 | p | |
10974 | q | |
10975 | } | |
10976 | /@datadir@/p | |
10977 | /@docdir@/p | |
10978 | /@infodir@/p | |
10979 | /@localedir@/p | |
10980 | /@mandir@/p | |
10981 | ' $ac_file_inputs` in | |
10982 | *datarootdir*) ac_datarootdir_seen=yes;; | |
10983 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
10984 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
10985 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
10986 | _ACEOF | |
10987 | cat >>$CONFIG_STATUS <<_ACEOF | |
10988 | ac_datarootdir_hack=' | |
10989 | s&@datadir@&$datadir&g | |
10990 | s&@docdir@&$docdir&g | |
10991 | s&@infodir@&$infodir&g | |
10992 | s&@localedir@&$localedir&g | |
10993 | s&@mandir@&$mandir&g | |
10994 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
10995 | esac | |
b3076f16 | 10996 | _ACEOF |
a8b2ad8d | 10997 | |
10998 | # Neutralize VPATH when `$srcdir' = `.'. | |
10999 | # Shell code in configure.ac might set extrasub. | |
11000 | # FIXME: do we really want to maintain this feature? | |
b3076f16 | 11001 | cat >>$CONFIG_STATUS <<_ACEOF |
11002 | sed "$ac_vpsub | |
11003 | $extrasub | |
11004 | _ACEOF | |
11005 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11006 | :t | |
11007 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a8b2ad8d | 11008 | s&@configure_input@&$configure_input&;t t |
11009 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11010 | s&@srcdir@&$ac_srcdir&;t t | |
11011 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11012 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11013 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11014 | s&@builddir@&$ac_builddir&;t t | |
11015 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11016 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11017 | s&@INSTALL@&$ac_INSTALL&;t t | |
11018 | $ac_datarootdir_hack | |
11019 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
11020 | ||
11021 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11022 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11023 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
11024 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11025 | which seems to be undefined. Please make sure it is defined." >&5 | |
11026 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11027 | which seems to be undefined. Please make sure it is defined." >&2;} | |
11028 | ||
11029 | rm -f "$tmp/stdin" | |
b3076f16 | 11030 | case $ac_file in |
a8b2ad8d | 11031 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
11032 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
b3076f16 | 11033 | esac |
a8b2ad8d | 11034 | ;; |
11035 | :H) | |
11036 | # | |
11037 | # CONFIG_HEADER | |
11038 | # | |
11039 | _ACEOF | |
11040 | ||
11041 | # Transform confdefs.h into a sed script `conftest.defines', that | |
11042 | # substitutes the proper values into config.h.in to produce config.h. | |
11043 | rm -f conftest.defines conftest.tail | |
11044 | # First, append a space to every undef/define line, to ease matching. | |
11045 | echo 's/$/ /' >conftest.defines | |
11046 | # Then, protect against being on the right side of a sed subst, or in | |
11047 | # an unquoted here document, in config.status. If some macros were | |
11048 | # called several times there might be several #defines for the same | |
11049 | # symbol, which is useless. But do not sort them, since the last | |
11050 | # AC_DEFINE must be honored. | |
11051 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11052 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
11053 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
11054 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
11055 | # just an empty string. | |
11056 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
11057 | ac_dB='\\)[ (].*,\\1define\\2' | |
11058 | ac_dC=' ' | |
11059 | ac_dD=' ,' | |
11060 | ||
11061 | uniq confdefs.h | | |
11062 | sed -n ' | |
11063 | t rset | |
11064 | :rset | |
11065 | s/^[ ]*#[ ]*define[ ][ ]*// | |
11066 | t ok | |
11067 | d | |
11068 | :ok | |
11069 | s/[\\&,]/\\&/g | |
11070 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
11071 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
11072 | ' >>conftest.defines | |
11073 | ||
11074 | # Remove the space that was appended to ease matching. | |
11075 | # Then replace #undef with comments. This is necessary, for | |
b3076f16 | 11076 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
11077 | # on some systems where configure will not decide to define it. | |
a8b2ad8d | 11078 | # (The regexp can be short, since the line contains either #define or #undef.) |
11079 | echo 's/ $// | |
11080 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
11081 | ||
11082 | # Break up conftest.defines: | |
11083 | ac_max_sed_lines=50 | |
11084 | ||
11085 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
11086 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
11087 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
11088 | # et cetera. | |
11089 | ac_in='$ac_file_inputs' | |
11090 | ac_out='"$tmp/out1"' | |
11091 | ac_nxt='"$tmp/out2"' | |
11092 | ||
11093 | while : | |
b3076f16 | 11094 | do |
a8b2ad8d | 11095 | # Write a here document: |
11096 | cat >>$CONFIG_STATUS <<_ACEOF | |
11097 | # First, check the format of the line: | |
11098 | cat >"\$tmp/defines.sed" <<\\CEOF | |
11099 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
11100 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
11101 | b | |
11102 | :def | |
11103 | _ACEOF | |
11104 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
b3076f16 | 11105 | echo 'CEOF |
a8b2ad8d | 11106 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
11107 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
11108 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
11109 | grep . conftest.tail >/dev/null || break | |
b3076f16 | 11110 | rm -f conftest.defines |
11111 | mv conftest.tail conftest.defines | |
11112 | done | |
a8b2ad8d | 11113 | rm -f conftest.defines conftest.tail |
b3076f16 | 11114 | |
a8b2ad8d | 11115 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
b3076f16 | 11116 | cat >>$CONFIG_STATUS <<\_ACEOF |
b3076f16 | 11117 | if test x"$ac_file" != x-; then |
a8b2ad8d | 11118 | echo "/* $configure_input */" >"$tmp/config.h" |
11119 | cat "$ac_result" >>"$tmp/config.h" | |
11120 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
b3076f16 | 11121 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
11122 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11123 | else | |
b3076f16 | 11124 | rm -f $ac_file |
a8b2ad8d | 11125 | mv "$tmp/config.h" $ac_file |
b3076f16 | 11126 | fi |
11127 | else | |
a8b2ad8d | 11128 | echo "/* $configure_input */" |
11129 | cat "$ac_result" | |
b3076f16 | 11130 | fi |
a8b2ad8d | 11131 | rm -f "$tmp/out12" |
ec1a68c8 | 11132 | # Compute $ac_file's index in $config_headers. |
11133 | _am_stamp_count=1 | |
11134 | for _am_header in $config_headers :; do | |
11135 | case $_am_header in | |
11136 | $ac_file | $ac_file:* ) | |
11137 | break ;; | |
11138 | * ) | |
11139 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
11140 | esac | |
11141 | done | |
a8b2ad8d | 11142 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
ec1a68c8 | 11143 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11144 | X$ac_file : 'X\(//\)[^/]' \| \ | |
11145 | X$ac_file : 'X\(//\)$' \| \ | |
a8b2ad8d | 11146 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11147 | echo X$ac_file | |
a8b2ad8d | 11148 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11149 | s//\1/ | |
11150 | q | |
11151 | } | |
11152 | /^X\(\/\/\)[^/].*/{ | |
11153 | s//\1/ | |
11154 | q | |
11155 | } | |
11156 | /^X\(\/\/\)$/{ | |
11157 | s//\1/ | |
11158 | q | |
11159 | } | |
11160 | /^X\(\/\).*/{ | |
11161 | s//\1/ | |
11162 | q | |
11163 | } | |
11164 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
11165 | ;; | |
ec1a68c8 | 11166 | |
a8b2ad8d | 11167 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
11168 | echo "$as_me: executing $ac_file commands" >&6;} | |
11169 | ;; | |
11170 | esac | |
ec1a68c8 | 11171 | |
11172 | ||
a8b2ad8d | 11173 | case $ac_file$ac_mode in |
11174 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
ec1a68c8 | 11175 | # Strip MF so we end up with the name of the file. |
11176 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11177 | # Check whether this is an Automake generated Makefile or not. | |
11178 | # We used to match only the files named `Makefile.in', but | |
11179 | # some people rename them; so instead we look at the file content. | |
11180 | # Grep'ing the first line is not enough: some people post-process | |
11181 | # each Makefile.in and add a new line on top of each file to say so. | |
0f6fe38c | 11182 | # So let's grep whole file. |
11183 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
a8b2ad8d | 11184 | dirpart=`$as_dirname -- "$mf" || |
ec1a68c8 | 11185 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11186 | X"$mf" : 'X\(//\)[^/]' \| \ | |
11187 | X"$mf" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11188 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11189 | echo X"$mf" | |
a8b2ad8d | 11190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11191 | s//\1/ | |
11192 | q | |
11193 | } | |
11194 | /^X\(\/\/\)[^/].*/{ | |
11195 | s//\1/ | |
11196 | q | |
11197 | } | |
11198 | /^X\(\/\/\)$/{ | |
11199 | s//\1/ | |
11200 | q | |
11201 | } | |
11202 | /^X\(\/\).*/{ | |
11203 | s//\1/ | |
11204 | q | |
11205 | } | |
11206 | s/.*/./; q'` | |
ec1a68c8 | 11207 | else |
11208 | continue | |
11209 | fi | |
11210 | # Extract the definition of DEPDIR, am__include, and am__quote | |
11211 | # from the Makefile without running `make'. | |
11212 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11213 | test -z "$DEPDIR" && continue | |
11214 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11215 | test -z "am__include" && continue | |
11216 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11217 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11218 | U=`sed -n 's/^U = //p' < "$mf"` | |
11219 | # Find all dependency output files, they are included files with | |
11220 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11221 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
11222 | # expansion. | |
11223 | for file in `sed -n " | |
11224 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11225 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11226 | # Make sure the directory exists. | |
11227 | test -f "$dirpart/$file" && continue | |
a8b2ad8d | 11228 | fdir=`$as_dirname -- "$file" || |
ec1a68c8 | 11229 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11230 | X"$file" : 'X\(//\)[^/]' \| \ | |
11231 | X"$file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11232 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11233 | echo X"$file" | |
a8b2ad8d | 11234 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11235 | s//\1/ | |
11236 | q | |
11237 | } | |
11238 | /^X\(\/\/\)[^/].*/{ | |
11239 | s//\1/ | |
11240 | q | |
11241 | } | |
11242 | /^X\(\/\/\)$/{ | |
11243 | s//\1/ | |
11244 | q | |
11245 | } | |
11246 | /^X\(\/\).*/{ | |
11247 | s//\1/ | |
11248 | q | |
11249 | } | |
11250 | s/.*/./; q'` | |
11251 | { as_dir=$dirpart/$fdir | |
11252 | case $as_dir in #( | |
11253 | -*) as_dir=./$as_dir;; | |
11254 | esac | |
11255 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ec1a68c8 | 11256 | as_dirs= |
a8b2ad8d | 11257 | while :; do |
11258 | case $as_dir in #( | |
11259 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
11260 | *) as_qdir=$as_dir;; | |
11261 | esac | |
11262 | as_dirs="'$as_qdir' $as_dirs" | |
11263 | as_dir=`$as_dirname -- "$as_dir" || | |
ec1a68c8 | 11264 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11265 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11266 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11267 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11268 | echo X"$as_dir" | |
a8b2ad8d | 11269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11270 | s//\1/ | |
11271 | q | |
11272 | } | |
11273 | /^X\(\/\/\)[^/].*/{ | |
11274 | s//\1/ | |
11275 | q | |
11276 | } | |
11277 | /^X\(\/\/\)$/{ | |
11278 | s//\1/ | |
11279 | q | |
11280 | } | |
11281 | /^X\(\/\).*/{ | |
11282 | s//\1/ | |
11283 | q | |
11284 | } | |
11285 | s/.*/./; q'` | |
11286 | test -d "$as_dir" && break | |
ec1a68c8 | 11287 | done |
a8b2ad8d | 11288 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
11289 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
11290 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ec1a68c8 | 11291 | { (exit 1); exit 1; }; }; } |
ec1a68c8 | 11292 | # echo "creating $dirpart/$file" |
11293 | echo '# dummy' > "$dirpart/$file" | |
11294 | done | |
11295 | done | |
11296 | ;; | |
a8b2ad8d | 11297 | |
ec1a68c8 | 11298 | esac |
a8b2ad8d | 11299 | done # for ac_tag |
b3076f16 | 11300 | |
b3076f16 | 11301 | |
11302 | { (exit 0); exit 0; } | |
11303 | _ACEOF | |
11304 | chmod +x $CONFIG_STATUS | |
11305 | ac_clean_files=$ac_clean_files_save | |
11306 | ||
11307 | ||
11308 | # configure is writing to config.log, and then calls config.status. | |
11309 | # config.status does its own redirection, appending to config.log. | |
11310 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11311 | # by configure, so config.status won't be able to write to it; its | |
11312 | # output is simply discarded. So we exec the FD to /dev/null, | |
11313 | # effectively closing config.log, so it can be properly (re)opened and | |
11314 | # appended to by config.status. When coming back to configure, we | |
11315 | # need to make the FD available again. | |
11316 | if test "$no_create" != yes; then | |
11317 | ac_cs_success=: | |
11318 | ac_config_status_args= | |
11319 | test "$silent" = yes && | |
11320 | ac_config_status_args="$ac_config_status_args --quiet" | |
11321 | exec 5>/dev/null | |
11322 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11323 | exec 5>>config.log | |
11324 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11325 | # would make configure fail if this is the last instruction. | |
11326 | $ac_cs_success || { (exit 1); exit 1; } | |
11327 | fi | |
11328 | ||
5b1166fd | 11329 | |
11330 | ||
11331 | ||
11332 | cat <<EOF | |
11333 | ||
11334 | Configuration summary | |
11335 | ===================== | |
11336 | ||
11337 | X3 is now configured as follows: | |
11338 | ||
11339 | * Compilation environment | |
11340 | ||
11341 | CC = $CC | |
11342 | CFLAGS = $CFLAGS | |
11343 | CPP = $CPP | |
11344 | CPPFLAGS = $CPPFLAGS | |
11345 | LD = $LD | |
11346 | LDFLAGS = $LDFLAGS | |
11347 | LIBS = $LIBS | |
11348 | ||
11349 | * X3 options | |
11350 | ||
a8b2ad8d | 11351 | Debug: $x3_debug |
11352 | Extra Modules: $module_list | |
11353 | Malloc: $x3_malloc | |
11354 | Protocol: $x3_ircd | |
11355 | Regexp Library TRE $tre_version | |
11356 | Coredumper Library Coredumper $core_version | |
8da89711 | 11357 | $ldap_message |
5b1166fd | 11358 | |
a8b2ad8d | 11359 | Install to: $prefix |
35305a49 | 11360 | |
5b1166fd | 11361 | Now you can proceed with compiling X3 |
11362 | ||
11363 | EOF | |
11364 |