]>
Commit | Line | Data |
---|---|---|
bf042c35 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.61. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ## --------------------- ## | |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be more Bourne compatible | |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
21 | setopt NO_GLOB_SUBST | |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
51 | fi | |
52 | ||
53 | # Support unset when possible. | |
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
55 | as_unset=unset | |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
61 | # IFS | |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
94 | # Work around bugs in pre-3.0 UWIN ksh. | |
95 | for as_var in ENV MAIL MAILPATH | |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
98 | PS1='$ ' | |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
112 | fi | |
113 | done | |
114 | ||
115 | # Required to use basename. | |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
118 | as_expr=expr | |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
124 | as_basename=basename | |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
131 | as_me=`$as_basename -- "$0" || | |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
133 | X"$0" : 'X\(//\)$' \| \ | |
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
135 | echo X/"$0" | | |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
149 | ||
150 | # CDPATH. | |
151 | $as_unset CDPATH | |
152 | ||
153 | ||
154 | if test "x$CONFIG_SHELL" = x; then | |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
159 | fi | |
160 | ||
161 | if test $as_have_required = yes && (eval ": | |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
177 | ||
178 | exitcode=0 | |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
185 | ||
186 | if as_func_failure; then | |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
226 | case $as_dir in | |
227 | /*) | |
228 | for as_base in sh bash ksh sh5; do | |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
328 | as_lineno_1=$LINENO | |
329 | as_lineno_2=$LINENO | |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
427 | ||
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
430 | # line-number line after each line using $LINENO; the second 'sed' | |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
442 | sed ' | |
443 | s/[$]LINENO.*/&-/ | |
444 | t lineno | |
445 | b | |
446 | :lineno | |
447 | N | |
448 | :loop | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
450 | t loop | |
451 | s/-\n.*// | |
452 | ' >$as_me.lineno && | |
453 | chmod +x "$as_me.lineno" || | |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
459 | # original and so on. Autoconf is especially sensitive to this). | |
460 | . "./$as_me.lineno" | |
461 | # Exit status is that of the last command. | |
462 | exit | |
463 | } | |
464 | ||
465 | ||
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
481 | esac | |
482 | ||
483 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
485 | as_expr=expr | |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
491 | if test -d conf$$.dir; then | |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
497 | echo >conf$$.file | |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
499 | as_ln_s='ln -s' | |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
505 | as_ln_s='cp -p' | |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
512 | rmdir conf$$.dir 2>/dev/null | |
513 | ||
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
517 | test -d ./-p && rmdir ./-p | |
518 | as_mkdir_p=false | |
519 | fi | |
520 | ||
521 | if test -x / >/dev/null 2>&1; then | |
522 | as_test_x='test -x' | |
523 | else | |
524 | if ls -dL / >/dev/null 2>&1; then | |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
541 | fi | |
542 | as_executable_p=$as_test_x | |
543 | ||
544 | # Sed expression to map a string onto a valid CPP name. | |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
546 | ||
547 | # Sed expression to map a string onto a valid variable name. | |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | ||
551 | ||
552 | exec 7<&0 </dev/null 6>&1 | |
553 | ||
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
559 | # | |
560 | # Initializations. | |
561 | # | |
562 | ac_default_prefix=/usr/local | |
563 | ac_clean_files= | |
564 | ac_config_libobj_dir=. | |
565 | LIBOBJS= | |
566 | cross_compiling=no | |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
572 | # Identity of this package. | |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | # Factoring default headers for most tests. | |
580 | ac_includes_default="\ | |
581 | #include <stdio.h> | |
582 | #ifdef HAVE_SYS_TYPES_H | |
583 | # include <sys/types.h> | |
584 | #endif | |
585 | #ifdef HAVE_SYS_STAT_H | |
586 | # include <sys/stat.h> | |
587 | #endif | |
588 | #ifdef STDC_HEADERS | |
589 | # include <stdlib.h> | |
590 | # include <stddef.h> | |
591 | #else | |
592 | # ifdef HAVE_STDLIB_H | |
593 | # include <stdlib.h> | |
594 | # endif | |
595 | #endif | |
596 | #ifdef HAVE_STRING_H | |
597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
598 | # include <memory.h> | |
599 | # endif | |
600 | # include <string.h> | |
601 | #endif | |
602 | #ifdef HAVE_STRINGS_H | |
603 | # include <strings.h> | |
604 | #endif | |
605 | #ifdef HAVE_INTTYPES_H | |
606 | # include <inttypes.h> | |
607 | #endif | |
608 | #ifdef HAVE_STDINT_H | |
609 | # include <stdint.h> | |
610 | #endif | |
611 | #ifdef HAVE_UNISTD_H | |
612 | # include <unistd.h> | |
613 | #endif" | |
614 | ||
615 | ac_subst_vars='SHELL | |
616 | PATH_SEPARATOR | |
617 | PACKAGE_NAME | |
618 | PACKAGE_TARNAME | |
619 | PACKAGE_VERSION | |
620 | PACKAGE_STRING | |
621 | PACKAGE_BUGREPORT | |
622 | exec_prefix | |
623 | prefix | |
624 | program_transform_name | |
625 | bindir | |
626 | sbindir | |
627 | libexecdir | |
628 | datarootdir | |
629 | datadir | |
630 | sysconfdir | |
631 | sharedstatedir | |
632 | localstatedir | |
633 | includedir | |
634 | oldincludedir | |
635 | docdir | |
636 | infodir | |
637 | htmldir | |
638 | dvidir | |
639 | pdfdir | |
640 | psdir | |
641 | libdir | |
642 | localedir | |
643 | mandir | |
644 | DEFS | |
645 | ECHO_C | |
646 | ECHO_N | |
647 | ECHO_T | |
648 | LIBS | |
649 | build_alias | |
650 | host_alias | |
651 | target_alias | |
652 | CC | |
653 | CFLAGS | |
654 | LDFLAGS | |
655 | CPPFLAGS | |
656 | ac_ct_CC | |
657 | EXEEXT | |
658 | OBJEXT | |
659 | build | |
660 | build_cpu | |
661 | build_vendor | |
662 | build_os | |
663 | host | |
664 | host_cpu | |
665 | host_vendor | |
666 | host_os | |
11b73fef | 667 | PRTDIAG |
bf042c35 | 668 | target |
669 | target_cpu | |
670 | target_vendor | |
671 | target_os | |
bf042c35 | 672 | SET_MAKE |
673 | RM | |
674 | CP | |
675 | MV | |
676 | SED | |
677 | INSTALL_PROGRAM | |
678 | INSTALL_SCRIPT | |
679 | INSTALL_DATA | |
680 | CPP | |
681 | GREP | |
682 | EGREP | |
683 | LIBOBJS | |
bf042c35 | 684 | SSL_INCLUDES |
685 | SSL_LIBS | |
686 | SENGINE | |
687 | INSTALL_DIR | |
688 | LTLIBOBJS' | |
689 | ac_subst_files='' | |
690 | ac_precious_vars='build_alias | |
691 | host_alias | |
692 | target_alias | |
693 | CC | |
694 | CFLAGS | |
695 | LDFLAGS | |
696 | LIBS | |
697 | CPPFLAGS | |
698 | CPP' | |
699 | ||
700 | ||
701 | # Initialize some variables set by options. | |
702 | ac_init_help= | |
703 | ac_init_version=false | |
704 | # The variables have the same names as the options, with | |
705 | # dashes changed to underlines. | |
706 | cache_file=/dev/null | |
707 | exec_prefix=NONE | |
708 | no_create= | |
709 | no_recursion= | |
710 | prefix=NONE | |
711 | program_prefix=NONE | |
712 | program_suffix=NONE | |
713 | program_transform_name=s,x,x, | |
714 | silent= | |
715 | site= | |
716 | srcdir= | |
717 | verbose= | |
718 | x_includes=NONE | |
719 | x_libraries=NONE | |
720 | ||
721 | # Installation directory options. | |
722 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
723 | # and all the variables that are supposed to be based on exec_prefix | |
724 | # by default will actually change. | |
725 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
726 | # (The list follows the same order as the GNU Coding Standards.) | |
727 | bindir='${exec_prefix}/bin' | |
728 | sbindir='${exec_prefix}/sbin' | |
729 | libexecdir='${exec_prefix}/libexec' | |
730 | datarootdir='${prefix}/share' | |
731 | datadir='${datarootdir}' | |
732 | sysconfdir='${prefix}/etc' | |
733 | sharedstatedir='${prefix}/com' | |
734 | localstatedir='${prefix}/var' | |
735 | includedir='${prefix}/include' | |
736 | oldincludedir='/usr/include' | |
737 | docdir='${datarootdir}/doc/${PACKAGE}' | |
738 | infodir='${datarootdir}/info' | |
739 | htmldir='${docdir}' | |
740 | dvidir='${docdir}' | |
741 | pdfdir='${docdir}' | |
742 | psdir='${docdir}' | |
743 | libdir='${exec_prefix}/lib' | |
744 | localedir='${datarootdir}/locale' | |
745 | mandir='${datarootdir}/man' | |
746 | ||
747 | ac_prev= | |
748 | ac_dashdash= | |
749 | for ac_option | |
750 | do | |
751 | # If the previous option needs an argument, assign it. | |
752 | if test -n "$ac_prev"; then | |
753 | eval $ac_prev=\$ac_option | |
754 | ac_prev= | |
755 | continue | |
756 | fi | |
757 | ||
758 | case $ac_option in | |
759 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
760 | *) ac_optarg=yes ;; | |
761 | esac | |
762 | ||
763 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
764 | ||
765 | case $ac_dashdash$ac_option in | |
766 | --) | |
767 | ac_dashdash=yes ;; | |
768 | ||
769 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
770 | ac_prev=bindir ;; | |
771 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
772 | bindir=$ac_optarg ;; | |
773 | ||
774 | -build | --build | --buil | --bui | --bu) | |
775 | ac_prev=build_alias ;; | |
776 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
777 | build_alias=$ac_optarg ;; | |
778 | ||
779 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
780 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
781 | ac_prev=cache_file ;; | |
782 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
783 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
784 | cache_file=$ac_optarg ;; | |
785 | ||
786 | --config-cache | -C) | |
787 | cache_file=config.cache ;; | |
788 | ||
789 | -datadir | --datadir | --datadi | --datad) | |
790 | ac_prev=datadir ;; | |
791 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
792 | datadir=$ac_optarg ;; | |
793 | ||
794 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
795 | | --dataroo | --dataro | --datar) | |
796 | ac_prev=datarootdir ;; | |
797 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
798 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
799 | datarootdir=$ac_optarg ;; | |
800 | ||
801 | -disable-* | --disable-*) | |
802 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
803 | # Reject names that are not valid shell variable names. | |
804 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
805 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
806 | { (exit 1); exit 1; }; } | |
807 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
808 | eval enable_$ac_feature=no ;; | |
809 | ||
810 | -docdir | --docdir | --docdi | --doc | --do) | |
811 | ac_prev=docdir ;; | |
812 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
813 | docdir=$ac_optarg ;; | |
814 | ||
815 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
816 | ac_prev=dvidir ;; | |
817 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
818 | dvidir=$ac_optarg ;; | |
819 | ||
820 | -enable-* | --enable-*) | |
821 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
822 | # Reject names that are not valid shell variable names. | |
823 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
824 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
825 | { (exit 1); exit 1; }; } | |
826 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
827 | eval enable_$ac_feature=\$ac_optarg ;; | |
828 | ||
829 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
830 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
831 | | --exec | --exe | --ex) | |
832 | ac_prev=exec_prefix ;; | |
833 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
834 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
835 | | --exec=* | --exe=* | --ex=*) | |
836 | exec_prefix=$ac_optarg ;; | |
837 | ||
838 | -gas | --gas | --ga | --g) | |
839 | # Obsolete; use --with-gas. | |
840 | with_gas=yes ;; | |
841 | ||
842 | -help | --help | --hel | --he | -h) | |
843 | ac_init_help=long ;; | |
844 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
845 | ac_init_help=recursive ;; | |
846 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
847 | ac_init_help=short ;; | |
848 | ||
849 | -host | --host | --hos | --ho) | |
850 | ac_prev=host_alias ;; | |
851 | -host=* | --host=* | --hos=* | --ho=*) | |
852 | host_alias=$ac_optarg ;; | |
853 | ||
854 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
855 | ac_prev=htmldir ;; | |
856 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
857 | | --ht=*) | |
858 | htmldir=$ac_optarg ;; | |
859 | ||
860 | -includedir | --includedir | --includedi | --included | --include \ | |
861 | | --includ | --inclu | --incl | --inc) | |
862 | ac_prev=includedir ;; | |
863 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
864 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
865 | includedir=$ac_optarg ;; | |
866 | ||
867 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
868 | ac_prev=infodir ;; | |
869 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
870 | infodir=$ac_optarg ;; | |
871 | ||
872 | -libdir | --libdir | --libdi | --libd) | |
873 | ac_prev=libdir ;; | |
874 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
875 | libdir=$ac_optarg ;; | |
876 | ||
877 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
878 | | --libexe | --libex | --libe) | |
879 | ac_prev=libexecdir ;; | |
880 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
881 | | --libexe=* | --libex=* | --libe=*) | |
882 | libexecdir=$ac_optarg ;; | |
883 | ||
884 | -localedir | --localedir | --localedi | --localed | --locale) | |
885 | ac_prev=localedir ;; | |
886 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
887 | localedir=$ac_optarg ;; | |
888 | ||
889 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
890 | | --localstate | --localstat | --localsta | --localst | --locals) | |
891 | ac_prev=localstatedir ;; | |
892 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
893 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
894 | localstatedir=$ac_optarg ;; | |
895 | ||
896 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
897 | ac_prev=mandir ;; | |
898 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
899 | mandir=$ac_optarg ;; | |
900 | ||
901 | -nfp | --nfp | --nf) | |
902 | # Obsolete; use --without-fp. | |
903 | with_fp=no ;; | |
904 | ||
905 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
906 | | --no-cr | --no-c | -n) | |
907 | no_create=yes ;; | |
908 | ||
909 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
910 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
911 | no_recursion=yes ;; | |
912 | ||
913 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
914 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
915 | | --oldin | --oldi | --old | --ol | --o) | |
916 | ac_prev=oldincludedir ;; | |
917 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
918 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
919 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
920 | oldincludedir=$ac_optarg ;; | |
921 | ||
922 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
923 | ac_prev=prefix ;; | |
924 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
925 | prefix=$ac_optarg ;; | |
926 | ||
927 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
928 | | --program-pre | --program-pr | --program-p) | |
929 | ac_prev=program_prefix ;; | |
930 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
931 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
932 | program_prefix=$ac_optarg ;; | |
933 | ||
934 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
935 | | --program-suf | --program-su | --program-s) | |
936 | ac_prev=program_suffix ;; | |
937 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
938 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
939 | program_suffix=$ac_optarg ;; | |
940 | ||
941 | -program-transform-name | --program-transform-name \ | |
942 | | --program-transform-nam | --program-transform-na \ | |
943 | | --program-transform-n | --program-transform- \ | |
944 | | --program-transform | --program-transfor \ | |
945 | | --program-transfo | --program-transf \ | |
946 | | --program-trans | --program-tran \ | |
947 | | --progr-tra | --program-tr | --program-t) | |
948 | ac_prev=program_transform_name ;; | |
949 | -program-transform-name=* | --program-transform-name=* \ | |
950 | | --program-transform-nam=* | --program-transform-na=* \ | |
951 | | --program-transform-n=* | --program-transform-=* \ | |
952 | | --program-transform=* | --program-transfor=* \ | |
953 | | --program-transfo=* | --program-transf=* \ | |
954 | | --program-trans=* | --program-tran=* \ | |
955 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
956 | program_transform_name=$ac_optarg ;; | |
957 | ||
958 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
959 | ac_prev=pdfdir ;; | |
960 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
961 | pdfdir=$ac_optarg ;; | |
962 | ||
963 | -psdir | --psdir | --psdi | --psd | --ps) | |
964 | ac_prev=psdir ;; | |
965 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
966 | psdir=$ac_optarg ;; | |
967 | ||
968 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
969 | | -silent | --silent | --silen | --sile | --sil) | |
970 | silent=yes ;; | |
971 | ||
972 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
973 | ac_prev=sbindir ;; | |
974 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
975 | | --sbi=* | --sb=*) | |
976 | sbindir=$ac_optarg ;; | |
977 | ||
978 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
979 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
980 | | --sharedst | --shareds | --shared | --share | --shar \ | |
981 | | --sha | --sh) | |
982 | ac_prev=sharedstatedir ;; | |
983 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
984 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
985 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
986 | | --sha=* | --sh=*) | |
987 | sharedstatedir=$ac_optarg ;; | |
988 | ||
989 | -site | --site | --sit) | |
990 | ac_prev=site ;; | |
991 | -site=* | --site=* | --sit=*) | |
992 | site=$ac_optarg ;; | |
993 | ||
994 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
995 | ac_prev=srcdir ;; | |
996 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
997 | srcdir=$ac_optarg ;; | |
998 | ||
999 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1000 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1001 | ac_prev=sysconfdir ;; | |
1002 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1003 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1004 | sysconfdir=$ac_optarg ;; | |
1005 | ||
1006 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1007 | ac_prev=target_alias ;; | |
1008 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1009 | target_alias=$ac_optarg ;; | |
1010 | ||
1011 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1012 | verbose=yes ;; | |
1013 | ||
1014 | -version | --version | --versio | --versi | --vers | -V) | |
1015 | ac_init_version=: ;; | |
1016 | ||
1017 | -with-* | --with-*) | |
1018 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1019 | # Reject names that are not valid shell variable names. | |
1020 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1021 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1022 | { (exit 1); exit 1; }; } | |
1023 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1024 | eval with_$ac_package=\$ac_optarg ;; | |
1025 | ||
1026 | -without-* | --without-*) | |
1027 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1028 | # Reject names that are not valid shell variable names. | |
1029 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1030 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1031 | { (exit 1); exit 1; }; } | |
1032 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1033 | eval with_$ac_package=no ;; | |
1034 | ||
1035 | --x) | |
1036 | # Obsolete; use --with-x. | |
1037 | with_x=yes ;; | |
1038 | ||
1039 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1040 | | --x-incl | --x-inc | --x-in | --x-i) | |
1041 | ac_prev=x_includes ;; | |
1042 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1043 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1044 | x_includes=$ac_optarg ;; | |
1045 | ||
1046 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1047 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1048 | ac_prev=x_libraries ;; | |
1049 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1050 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1051 | x_libraries=$ac_optarg ;; | |
1052 | ||
1053 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1054 | Try \`$0 --help' for more information." >&2 | |
1055 | { (exit 1); exit 1; }; } | |
1056 | ;; | |
1057 | ||
1058 | *=*) | |
1059 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1060 | # Reject names that are not valid shell variable names. | |
1061 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1062 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1063 | { (exit 1); exit 1; }; } | |
1064 | eval $ac_envvar=\$ac_optarg | |
1065 | export $ac_envvar ;; | |
1066 | ||
1067 | *) | |
1068 | # FIXME: should be removed in autoconf 3.0. | |
1069 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1070 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1071 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1072 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1073 | ;; | |
1074 | ||
1075 | esac | |
1076 | done | |
1077 | ||
1078 | if test -n "$ac_prev"; then | |
1079 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1080 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1081 | { (exit 1); exit 1; }; } | |
1082 | fi | |
1083 | ||
1084 | # Be sure to have absolute directory names. | |
1085 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1086 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1087 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1088 | libdir localedir mandir | |
1089 | do | |
1090 | eval ac_val=\$$ac_var | |
1091 | case $ac_val in | |
1092 | [\\/$]* | ?:[\\/]* ) continue;; | |
1093 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1094 | esac | |
1095 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1096 | { (exit 1); exit 1; }; } | |
1097 | done | |
1098 | ||
1099 | # There might be people who depend on the old broken behavior: `$host' | |
1100 | # used to hold the argument of --host etc. | |
1101 | # FIXME: To remove some day. | |
1102 | build=$build_alias | |
1103 | host=$host_alias | |
1104 | target=$target_alias | |
1105 | ||
1106 | # FIXME: To remove some day. | |
1107 | if test "x$host_alias" != x; then | |
1108 | if test "x$build_alias" = x; then | |
1109 | cross_compiling=maybe | |
1110 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1111 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1112 | elif test "x$build_alias" != "x$host_alias"; then | |
1113 | cross_compiling=yes | |
1114 | fi | |
1115 | fi | |
1116 | ||
1117 | ac_tool_prefix= | |
1118 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1119 | ||
1120 | test "$silent" = yes && exec 6>/dev/null | |
1121 | ||
1122 | ||
1123 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1124 | ac_ls_di=`ls -di .` && | |
1125 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1126 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1127 | { (exit 1); exit 1; }; } | |
1128 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1129 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1130 | { (exit 1); exit 1; }; } | |
1131 | ||
1132 | ||
1133 | # Find the source files, if location was not specified. | |
1134 | if test -z "$srcdir"; then | |
1135 | ac_srcdir_defaulted=yes | |
1136 | # Try the directory containing this script, then the parent directory. | |
1137 | ac_confdir=`$as_dirname -- "$0" || | |
1138 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1139 | X"$0" : 'X\(//\)[^/]' \| \ | |
1140 | X"$0" : 'X\(//\)$' \| \ | |
1141 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1142 | echo X"$0" | | |
1143 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1144 | s//\1/ | |
1145 | q | |
1146 | } | |
1147 | /^X\(\/\/\)[^/].*/{ | |
1148 | s//\1/ | |
1149 | q | |
1150 | } | |
1151 | /^X\(\/\/\)$/{ | |
1152 | s//\1/ | |
1153 | q | |
1154 | } | |
1155 | /^X\(\/\).*/{ | |
1156 | s//\1/ | |
1157 | q | |
1158 | } | |
1159 | s/.*/./; q'` | |
1160 | srcdir=$ac_confdir | |
1161 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1162 | srcdir=.. | |
1163 | fi | |
1164 | else | |
1165 | ac_srcdir_defaulted=no | |
1166 | fi | |
1167 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1168 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1169 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1170 | { (exit 1); exit 1; }; } | |
1171 | fi | |
1172 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1173 | ac_abs_confdir=`( | |
1174 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1175 | { (exit 1); exit 1; }; } | |
1176 | pwd)` | |
1177 | # When building in place, set srcdir=. | |
1178 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1179 | srcdir=. | |
1180 | fi | |
1181 | # Remove unnecessary trailing slashes from srcdir. | |
1182 | # Double slashes in file names in object file debugging info | |
1183 | # mess up M-x gdb in Emacs. | |
1184 | case $srcdir in | |
1185 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1186 | esac | |
1187 | for ac_var in $ac_precious_vars; do | |
1188 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1189 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1190 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1191 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1192 | done | |
1193 | ||
1194 | # | |
1195 | # Report the --help message. | |
1196 | # | |
1197 | if test "$ac_init_help" = "long"; then | |
1198 | # Omit some internal or obsolete options to make the list less imposing. | |
1199 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1200 | cat <<_ACEOF | |
1201 | \`configure' configures this package to adapt to many kinds of systems. | |
1202 | ||
1203 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1204 | ||
1205 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1206 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1207 | ||
1208 | Defaults for the options are specified in brackets. | |
1209 | ||
1210 | Configuration: | |
1211 | -h, --help display this help and exit | |
1212 | --help=short display options specific to this package | |
1213 | --help=recursive display the short help of all the included packages | |
1214 | -V, --version display version information and exit | |
1215 | -q, --quiet, --silent do not print \`checking...' messages | |
1216 | --cache-file=FILE cache test results in FILE [disabled] | |
1217 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1218 | -n, --no-create do not create output files | |
1219 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1220 | ||
1221 | Installation directories: | |
1222 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1223 | [$ac_default_prefix] | |
1224 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1225 | [PREFIX] | |
1226 | ||
1227 | By default, \`make install' will install all the files in | |
1228 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1229 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1230 | for instance \`--prefix=\$HOME'. | |
1231 | ||
1232 | For better control, use the options below. | |
1233 | ||
1234 | Fine tuning of the installation directories: | |
1235 | --bindir=DIR user executables [EPREFIX/bin] | |
1236 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1237 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1238 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1239 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1240 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1241 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1242 | --includedir=DIR C header files [PREFIX/include] | |
1243 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1244 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1245 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1246 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1247 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1248 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1249 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1250 | --htmldir=DIR html documentation [DOCDIR] | |
1251 | --dvidir=DIR dvi documentation [DOCDIR] | |
1252 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1253 | --psdir=DIR ps documentation [DOCDIR] | |
1254 | _ACEOF | |
1255 | ||
1256 | cat <<\_ACEOF | |
1257 | ||
1258 | System types: | |
1259 | --build=BUILD configure for building on BUILD [guessed] | |
1260 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1261 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1262 | _ACEOF | |
1263 | fi | |
1264 | ||
1265 | if test -n "$ac_init_help"; then | |
1266 | ||
1267 | cat <<\_ACEOF | |
1268 | ||
1269 | Optional Features: | |
1270 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1271 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1272 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1273 | --disable-openssl Disable OpenSSL support. | |
1274 | --enable-portable-binary | |
1275 | disable compiler optimizations that would produce | |
1276 | unportable binaries | |
1277 | ||
1278 | Optional Packages: | |
1279 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1280 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1281 | --with-socketengine=TYPE Set the socketengine type. Choices are: | |
1282 | kqueue epoll devpoll poll select | |
1283 | --with-maxconnections=NUMBER Set the maximum number of sockets. | |
1284 | --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, | |
1285 | instead of guessing | |
1286 | ||
1287 | Some influential environment variables: | |
1288 | CC C compiler command | |
1289 | CFLAGS C compiler flags | |
1290 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1291 | nonstandard directory <lib dir> | |
1292 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1293 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1294 | you have headers in a nonstandard directory <include dir> | |
1295 | CPP C preprocessor | |
1296 | ||
1297 | Use these variables to override the choices made by `configure' or to help | |
1298 | it to find libraries and programs with nonstandard names/locations. | |
1299 | ||
1300 | _ACEOF | |
1301 | ac_status=$? | |
1302 | fi | |
1303 | ||
1304 | if test "$ac_init_help" = "recursive"; then | |
1305 | # If there are subdirs, report their specific --help. | |
1306 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1307 | test -d "$ac_dir" || continue | |
1308 | ac_builddir=. | |
1309 | ||
1310 | case "$ac_dir" in | |
1311 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1312 | *) | |
1313 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1314 | # A ".." for each directory in $ac_dir_suffix. | |
1315 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1316 | case $ac_top_builddir_sub in | |
1317 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1318 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1319 | esac ;; | |
1320 | esac | |
1321 | ac_abs_top_builddir=$ac_pwd | |
1322 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1323 | # for backward compatibility: | |
1324 | ac_top_builddir=$ac_top_build_prefix | |
1325 | ||
1326 | case $srcdir in | |
1327 | .) # We are building in place. | |
1328 | ac_srcdir=. | |
1329 | ac_top_srcdir=$ac_top_builddir_sub | |
1330 | ac_abs_top_srcdir=$ac_pwd ;; | |
1331 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1332 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1333 | ac_top_srcdir=$srcdir | |
1334 | ac_abs_top_srcdir=$srcdir ;; | |
1335 | *) # Relative name. | |
1336 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1337 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1338 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1339 | esac | |
1340 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1341 | ||
1342 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1343 | # Check for guested configure. | |
1344 | if test -f "$ac_srcdir/configure.gnu"; then | |
1345 | echo && | |
1346 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1347 | elif test -f "$ac_srcdir/configure"; then | |
1348 | echo && | |
1349 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1350 | else | |
1351 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1352 | fi || ac_status=$? | |
1353 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1354 | done | |
1355 | fi | |
1356 | ||
1357 | test -n "$ac_init_help" && exit $ac_status | |
1358 | if $ac_init_version; then | |
1359 | cat <<\_ACEOF | |
1360 | configure | |
1361 | generated by GNU Autoconf 2.61 | |
1362 | ||
1363 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1364 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1365 | This configure script is free software; the Free Software Foundation | |
1366 | gives unlimited permission to copy, distribute and modify it. | |
1367 | _ACEOF | |
1368 | exit | |
1369 | fi | |
1370 | cat >config.log <<_ACEOF | |
1371 | This file contains any messages produced by compilers while | |
1372 | running configure, to aid debugging if configure makes a mistake. | |
1373 | ||
1374 | It was created by $as_me, which was | |
1375 | generated by GNU Autoconf 2.61. Invocation command line was | |
1376 | ||
1377 | $ $0 $@ | |
1378 | ||
1379 | _ACEOF | |
1380 | exec 5>>config.log | |
1381 | { | |
1382 | cat <<_ASUNAME | |
1383 | ## --------- ## | |
1384 | ## Platform. ## | |
1385 | ## --------- ## | |
1386 | ||
1387 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1388 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1389 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1390 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1391 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1392 | ||
1393 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1394 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1395 | ||
1396 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1397 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1398 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1399 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1400 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1401 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1402 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1403 | ||
1404 | _ASUNAME | |
1405 | ||
1406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1407 | for as_dir in $PATH | |
1408 | do | |
1409 | IFS=$as_save_IFS | |
1410 | test -z "$as_dir" && as_dir=. | |
1411 | echo "PATH: $as_dir" | |
1412 | done | |
1413 | IFS=$as_save_IFS | |
1414 | ||
1415 | } >&5 | |
1416 | ||
1417 | cat >&5 <<_ACEOF | |
1418 | ||
1419 | ||
1420 | ## ----------- ## | |
1421 | ## Core tests. ## | |
1422 | ## ----------- ## | |
1423 | ||
1424 | _ACEOF | |
1425 | ||
1426 | ||
1427 | # Keep a trace of the command line. | |
1428 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1429 | # Strip out --silent because we don't want to record it for future runs. | |
1430 | # Also quote any args containing shell meta-characters. | |
1431 | # Make two passes to allow for proper duplicate-argument suppression. | |
1432 | ac_configure_args= | |
1433 | ac_configure_args0= | |
1434 | ac_configure_args1= | |
1435 | ac_must_keep_next=false | |
1436 | for ac_pass in 1 2 | |
1437 | do | |
1438 | for ac_arg | |
1439 | do | |
1440 | case $ac_arg in | |
1441 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1443 | | -silent | --silent | --silen | --sile | --sil) | |
1444 | continue ;; | |
1445 | *\'*) | |
1446 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1447 | esac | |
1448 | case $ac_pass in | |
1449 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1450 | 2) | |
1451 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1452 | if test $ac_must_keep_next = true; then | |
1453 | ac_must_keep_next=false # Got value, back to normal. | |
1454 | else | |
1455 | case $ac_arg in | |
1456 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1457 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1458 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1459 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1460 | case "$ac_configure_args0 " in | |
1461 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1462 | esac | |
1463 | ;; | |
1464 | -* ) ac_must_keep_next=true ;; | |
1465 | esac | |
1466 | fi | |
1467 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1468 | ;; | |
1469 | esac | |
1470 | done | |
1471 | done | |
1472 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1473 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1474 | ||
1475 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1476 | # config.log. We remove comments because anyway the quotes in there | |
1477 | # would cause problems or look ugly. | |
1478 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1479 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1480 | trap 'exit_status=$? | |
1481 | # Save into config.log some information that might help in debugging. | |
1482 | { | |
1483 | echo | |
1484 | ||
1485 | cat <<\_ASBOX | |
1486 | ## ---------------- ## | |
1487 | ## Cache variables. ## | |
1488 | ## ---------------- ## | |
1489 | _ASBOX | |
1490 | echo | |
1491 | # The following way of writing the cache mishandles newlines in values, | |
1492 | ( | |
1493 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1494 | eval ac_val=\$$ac_var | |
1495 | case $ac_val in #( | |
1496 | *${as_nl}*) | |
1497 | case $ac_var in #( | |
1498 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1499 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1500 | esac | |
1501 | case $ac_var in #( | |
1502 | _ | IFS | as_nl) ;; #( | |
1503 | *) $as_unset $ac_var ;; | |
1504 | esac ;; | |
1505 | esac | |
1506 | done | |
1507 | (set) 2>&1 | | |
1508 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1509 | *${as_nl}ac_space=\ *) | |
1510 | sed -n \ | |
1511 | "s/'\''/'\''\\\\'\'''\''/g; | |
1512 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1513 | ;; #( | |
1514 | *) | |
1515 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1516 | ;; | |
1517 | esac | | |
1518 | sort | |
1519 | ) | |
1520 | echo | |
1521 | ||
1522 | cat <<\_ASBOX | |
1523 | ## ----------------- ## | |
1524 | ## Output variables. ## | |
1525 | ## ----------------- ## | |
1526 | _ASBOX | |
1527 | echo | |
1528 | for ac_var in $ac_subst_vars | |
1529 | do | |
1530 | eval ac_val=\$$ac_var | |
1531 | case $ac_val in | |
1532 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1533 | esac | |
1534 | echo "$ac_var='\''$ac_val'\''" | |
1535 | done | sort | |
1536 | echo | |
1537 | ||
1538 | if test -n "$ac_subst_files"; then | |
1539 | cat <<\_ASBOX | |
1540 | ## ------------------- ## | |
1541 | ## File substitutions. ## | |
1542 | ## ------------------- ## | |
1543 | _ASBOX | |
1544 | echo | |
1545 | for ac_var in $ac_subst_files | |
1546 | do | |
1547 | eval ac_val=\$$ac_var | |
1548 | case $ac_val in | |
1549 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1550 | esac | |
1551 | echo "$ac_var='\''$ac_val'\''" | |
1552 | done | sort | |
1553 | echo | |
1554 | fi | |
1555 | ||
1556 | if test -s confdefs.h; then | |
1557 | cat <<\_ASBOX | |
1558 | ## ----------- ## | |
1559 | ## confdefs.h. ## | |
1560 | ## ----------- ## | |
1561 | _ASBOX | |
1562 | echo | |
1563 | cat confdefs.h | |
1564 | echo | |
1565 | fi | |
1566 | test "$ac_signal" != 0 && | |
1567 | echo "$as_me: caught signal $ac_signal" | |
1568 | echo "$as_me: exit $exit_status" | |
1569 | } >&5 | |
1570 | rm -f core *.core core.conftest.* && | |
1571 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1572 | exit $exit_status | |
1573 | ' 0 | |
1574 | for ac_signal in 1 2 13 15; do | |
1575 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1576 | done | |
1577 | ac_signal=0 | |
1578 | ||
1579 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1580 | rm -f -r conftest* confdefs.h | |
1581 | ||
1582 | # Predefined preprocessor variables. | |
1583 | ||
1584 | cat >>confdefs.h <<_ACEOF | |
1585 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1586 | _ACEOF | |
1587 | ||
1588 | ||
1589 | cat >>confdefs.h <<_ACEOF | |
1590 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1591 | _ACEOF | |
1592 | ||
1593 | ||
1594 | cat >>confdefs.h <<_ACEOF | |
1595 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1596 | _ACEOF | |
1597 | ||
1598 | ||
1599 | cat >>confdefs.h <<_ACEOF | |
1600 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1601 | _ACEOF | |
1602 | ||
1603 | ||
1604 | cat >>confdefs.h <<_ACEOF | |
1605 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1606 | _ACEOF | |
1607 | ||
1608 | ||
1609 | # Let the site file select an alternate cache file if it wants to. | |
1610 | # Prefer explicitly selected file to automatically selected ones. | |
1611 | if test -n "$CONFIG_SITE"; then | |
1612 | set x "$CONFIG_SITE" | |
1613 | elif test "x$prefix" != xNONE; then | |
1614 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1615 | else | |
1616 | set x "$ac_default_prefix/share/config.site" \ | |
1617 | "$ac_default_prefix/etc/config.site" | |
1618 | fi | |
1619 | shift | |
1620 | for ac_site_file | |
1621 | do | |
1622 | if test -r "$ac_site_file"; then | |
1623 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1624 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1625 | sed 's/^/| /' "$ac_site_file" >&5 | |
1626 | . "$ac_site_file" | |
1627 | fi | |
1628 | done | |
1629 | ||
1630 | if test -r "$cache_file"; then | |
1631 | # Some versions of bash will fail to source /dev/null (special | |
1632 | # files actually), so we avoid doing that. | |
1633 | if test -f "$cache_file"; then | |
1634 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1635 | echo "$as_me: loading cache $cache_file" >&6;} | |
1636 | case $cache_file in | |
1637 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1638 | *) . "./$cache_file";; | |
1639 | esac | |
1640 | fi | |
1641 | else | |
1642 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1643 | echo "$as_me: creating cache $cache_file" >&6;} | |
1644 | >$cache_file | |
1645 | fi | |
1646 | ||
1647 | # Check that the precious variables saved in the cache have kept the same | |
1648 | # value. | |
1649 | ac_cache_corrupted=false | |
1650 | for ac_var in $ac_precious_vars; do | |
1651 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1652 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1653 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1654 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1655 | case $ac_old_set,$ac_new_set in | |
1656 | set,) | |
1657 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1658 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1659 | ac_cache_corrupted=: ;; | |
1660 | ,set) | |
1661 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1662 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1663 | ac_cache_corrupted=: ;; | |
1664 | ,);; | |
1665 | *) | |
1666 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1667 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1668 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1669 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1670 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1671 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1672 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1673 | ac_cache_corrupted=: | |
1674 | fi;; | |
1675 | esac | |
1676 | # Pass precious variables to config.status. | |
1677 | if test "$ac_new_set" = set; then | |
1678 | case $ac_new_val in | |
1679 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1680 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1681 | esac | |
1682 | case " $ac_configure_args " in | |
1683 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1684 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1685 | esac | |
1686 | fi | |
1687 | done | |
1688 | if $ac_cache_corrupted; then | |
1689 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1690 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1691 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1692 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1693 | { (exit 1); exit 1; }; } | |
1694 | fi | |
1695 | ||
1696 | ||
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | ||
1709 | ||
1710 | ||
1711 | ||
1712 | ac_ext=c | |
1713 | ac_cpp='$CPP $CPPFLAGS' | |
1714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1717 | ||
1718 | ||
1719 | ||
1720 | ac_config_headers="$ac_config_headers include/setup.h" | |
1721 | ||
1722 | ||
1723 | cat >>confdefs.h <<\_ACEOF | |
1724 | #define PACKAGE_NAME "libd" | |
1725 | _ACEOF | |
1726 | ||
1727 | cat >>confdefs.h <<\_ACEOF | |
1728 | #define PACKAGE_BUGREPORT "coders@dal.net" | |
1729 | _ACEOF | |
1730 | ||
1731 | cat >>confdefs.h <<\_ACEOF | |
1732 | #define PACKAGE_STRING "Daemon library" | |
1733 | _ACEOF | |
1734 | ||
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define PACKAGE_VERSION "0.1" | |
1737 | _ACEOF | |
1738 | ||
1739 | ||
1740 | # autoheader templates | |
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
c1e4317a | 1756 | |
1757 | ||
bf042c35 | 1758 | # Check whether --enable-openssl was given. |
1759 | if test "${enable_openssl+set}" = set; then | |
1760 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
1761 | else | |
1762 | cf_enable_openssl="auto" | |
1763 | fi | |
1764 | ||
1765 | ||
1766 | ||
1767 | # Check whether --with-socketengine was given. | |
1768 | if test "${with_socketengine+set}" = set; then | |
1769 | withval=$with_socketengine; check_sengine=$withval | |
1770 | else | |
1771 | check_sengine="yes" | |
1772 | fi | |
1773 | ||
1774 | ||
c1e4317a | 1775 | |
bf042c35 | 1776 | # Check whether --with-maxconnections was given. |
1777 | if test "${with_maxconnections+set}" = set; then | |
1778 | withval=$with_maxconnections; check_maxconnections=$withval | |
1779 | else | |
1780 | check_maxconnections="auto" | |
1781 | fi | |
1782 | ||
1783 | ||
11b73fef | 1784 | DEBUG=yes |
1785 | ||
bf042c35 | 1786 | |
1787 | # =========================================================================== | |
1788 | # http://www.nongnu.org/autoconf-archive/ax_gcc_x86_cpuid.html | |
1789 | # =========================================================================== | |
1790 | # | |
1791 | # SYNOPSIS | |
1792 | # | |
1793 | # AX_GCC_X86_CPUID(OP) | |
1794 | # | |
1795 | # DESCRIPTION | |
1796 | # | |
1797 | # On Pentium and later x86 processors, with gcc or a compiler that has a | |
1798 | # compatible syntax for inline assembly instructions, run a small program | |
1799 | # that executes the cpuid instruction with input OP. This can be used to | |
1800 | # detect the CPU type. | |
1801 | # | |
1802 | # On output, the values of the eax, ebx, ecx, and edx registers are stored | |
1803 | # as hexadecimal strings as "eax:ebx:ecx:edx" in the cache variable | |
1804 | # ax_cv_gcc_x86_cpuid_OP. | |
1805 | # | |
1806 | # If the cpuid instruction fails (because you are running a | |
1807 | # cross-compiler, or because you are not using gcc, or because you are on | |
1808 | # a processor that doesn't have this instruction), ax_cv_gcc_x86_cpuid_OP | |
1809 | # is set to the string "unknown". | |
1810 | # | |
1811 | # This macro mainly exists to be used in AX_GCC_ARCHFLAG. | |
1812 | # | |
1813 | # LICENSE | |
1814 | # | |
1815 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | |
1816 | # Copyright (c) 2008 Matteo Frigo | |
1817 | # | |
1818 | # This program is free software: you can redistribute it and/or modify it | |
1819 | # under the terms of the GNU General Public License as published by the | |
1820 | # Free Software Foundation, either version 3 of the License, or (at your | |
1821 | # option) any later version. | |
1822 | # | |
1823 | # This program is distributed in the hope that it will be useful, but | |
1824 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
1825 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
1826 | # Public License for more details. | |
1827 | # | |
1828 | # You should have received a copy of the GNU General Public License along | |
1829 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
1830 | # | |
1831 | # As a special exception, the respective Autoconf Macro's copyright owner | |
1832 | # gives unlimited permission to copy, distribute and modify the configure | |
1833 | # scripts that are the output of Autoconf when processing the Macro. You | |
1834 | # need not follow the terms of the GNU General Public License when using | |
1835 | # or distributing such scripts, even though portions of the text of the | |
1836 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
1837 | # all other use of the material that constitutes the Autoconf Macro. | |
1838 | # | |
1839 | # This special exception to the GPL applies to versions of the Autoconf | |
1840 | # Macro released by the Autoconf Archive. When you make and distribute a | |
1841 | # modified version of the Autoconf Macro, you may extend this special | |
1842 | # exception to the GPL to apply to your modified version as well. | |
1843 | ||
1844 | ||
1845 | ||
1846 | # =========================================================================== | |
1847 | # http://www.nongnu.org/autoconf-archive/ax_gcc_archflag.html | |
1848 | # =========================================================================== | |
1849 | # | |
1850 | # SYNOPSIS | |
1851 | # | |
1852 | # AX_GCC_ARCHFLAG([PORTABLE?], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1853 | # | |
1854 | # DESCRIPTION | |
1855 | # | |
1856 | # This macro tries to guess the "native" arch corresponding to the target | |
1857 | # architecture for use with gcc's -march=arch or -mtune=arch flags. If | |
1858 | # found, the cache variable $ax_cv_gcc_archflag is set to this flag and | |
1859 | # ACTION-SUCCESS is executed; otherwise $ax_cv_gcc_archflag is is set to | |
1860 | # "unknown" and ACTION-FAILURE is executed. The default ACTION-SUCCESS is | |
1861 | # to add $ax_cv_gcc_archflag to the end of $CFLAGS. | |
1862 | # | |
1863 | # PORTABLE? should be either [yes] (default) or [no]. In the former case, | |
1864 | # the flag is set to -mtune (or equivalent) so that the architecture is | |
1865 | # only used for tuning, but the instruction set used is still portable. In | |
1866 | # the latter case, the flag is set to -march (or equivalent) so that | |
1867 | # architecture-specific instructions are enabled. | |
1868 | # | |
1869 | # The user can specify --with-gcc-arch=<arch> in order to override the | |
1870 | # macro's choice of architecture, or --without-gcc-arch to disable this. | |
1871 | # | |
1872 | # When cross-compiling, or if $CC is not gcc, then ACTION-FAILURE is | |
1873 | # called unless the user specified --with-gcc-arch manually. | |
1874 | # | |
1875 | # Requires macros: AX_CHECK_COMPILER_FLAGS, AX_GCC_X86_CPUID | |
1876 | # | |
1877 | # (The main emphasis here is on recent CPUs, on the principle that doing | |
1878 | # high-performance computing on old hardware is uncommon.) | |
1879 | # | |
1880 | # LICENSE | |
1881 | # | |
1882 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | |
1883 | # Copyright (c) 2008 Matteo Frigo | |
1884 | # | |
1885 | # This program is free software: you can redistribute it and/or modify it | |
1886 | # under the terms of the GNU General Public License as published by the | |
1887 | # Free Software Foundation, either version 3 of the License, or (at your | |
1888 | # option) any later version. | |
1889 | # | |
1890 | # This program is distributed in the hope that it will be useful, but | |
1891 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
1892 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
1893 | # Public License for more details. | |
1894 | # | |
1895 | # You should have received a copy of the GNU General Public License along | |
1896 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
1897 | # | |
1898 | # As a special exception, the respective Autoconf Macro's copyright owner | |
1899 | # gives unlimited permission to copy, distribute and modify the configure | |
1900 | # scripts that are the output of Autoconf when processing the Macro. You | |
1901 | # need not follow the terms of the GNU General Public License when using | |
1902 | # or distributing such scripts, even though portions of the text of the | |
1903 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
1904 | # all other use of the material that constitutes the Autoconf Macro. | |
1905 | # | |
1906 | # This special exception to the GPL applies to versions of the Autoconf | |
1907 | # Macro released by the Autoconf Archive. When you make and distribute a | |
1908 | # modified version of the Autoconf Macro, you may extend this special | |
1909 | # exception to the GPL to apply to your modified version as well. | |
1910 | ||
1911 | ||
1912 | ||
1913 | # =========================================================================== | |
1914 | # http://www.nongnu.org/autoconf-archive/ax_compiler_vendor.html | |
1915 | # =========================================================================== | |
1916 | # | |
1917 | # SYNOPSIS | |
1918 | # | |
1919 | # AX_COMPILER_VENDOR | |
1920 | # | |
1921 | # DESCRIPTION | |
1922 | # | |
1923 | # Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, sun, | |
1924 | # hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, microsoft, | |
1925 | # watcom, etc. The vendor is returned in the cache variable | |
1926 | # $ax_cv_c_compiler_vendor for C and $ax_cv_cxx_compiler_vendor for C++. | |
1927 | # | |
1928 | # LICENSE | |
1929 | # | |
1930 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | |
1931 | # Copyright (c) 2008 Matteo Frigo | |
1932 | # | |
1933 | # This program is free software: you can redistribute it and/or modify it | |
1934 | # under the terms of the GNU General Public License as published by the | |
1935 | # Free Software Foundation, either version 3 of the License, or (at your | |
1936 | # option) any later version. | |
1937 | # | |
1938 | # This program is distributed in the hope that it will be useful, but | |
1939 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
1940 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
1941 | # Public License for more details. | |
1942 | # | |
1943 | # You should have received a copy of the GNU General Public License along | |
1944 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
1945 | # | |
1946 | # As a special exception, the respective Autoconf Macro's copyright owner | |
1947 | # gives unlimited permission to copy, distribute and modify the configure | |
1948 | # scripts that are the output of Autoconf when processing the Macro. You | |
1949 | # need not follow the terms of the GNU General Public License when using | |
1950 | # or distributing such scripts, even though portions of the text of the | |
1951 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
1952 | # all other use of the material that constitutes the Autoconf Macro. | |
1953 | # | |
1954 | # This special exception to the GPL applies to versions of the Autoconf | |
1955 | # Macro released by the Autoconf Archive. When you make and distribute a | |
1956 | # modified version of the Autoconf Macro, you may extend this special | |
1957 | # exception to the GPL to apply to your modified version as well. | |
1958 | ||
1959 | ||
1960 | ||
1961 | # =========================================================================== | |
1962 | # http://www.nongnu.org/autoconf-archive/ax_check_compiler_flags.html | |
1963 | # =========================================================================== | |
1964 | # | |
1965 | # SYNOPSIS | |
1966 | # | |
1967 | # AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1968 | # | |
1969 | # DESCRIPTION | |
1970 | # | |
1971 | # Check whether the given compiler FLAGS work with the current language's | |
1972 | # compiler, or whether they give an error. (Warnings, however, are | |
1973 | # ignored.) | |
1974 | # | |
1975 | # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on | |
1976 | # success/failure. | |
1977 | # | |
1978 | # LICENSE | |
1979 | # | |
1980 | # Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu> | |
1981 | # Copyright (c) 2009 Matteo Frigo | |
1982 | # | |
1983 | # This program is free software: you can redistribute it and/or modify it | |
1984 | # under the terms of the GNU General Public License as published by the | |
1985 | # Free Software Foundation, either version 3 of the License, or (at your | |
1986 | # option) any later version. | |
1987 | # | |
1988 | # This program is distributed in the hope that it will be useful, but | |
1989 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
1990 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
1991 | # Public License for more details. | |
1992 | # | |
1993 | # You should have received a copy of the GNU General Public License along | |
1994 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
1995 | # | |
1996 | # As a special exception, the respective Autoconf Macro's copyright owner | |
1997 | # gives unlimited permission to copy, distribute and modify the configure | |
1998 | # scripts that are the output of Autoconf when processing the Macro. You | |
1999 | # need not follow the terms of the GNU General Public License when using | |
2000 | # or distributing such scripts, even though portions of the text of the | |
2001 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
2002 | # all other use of the material that constitutes the Autoconf Macro. | |
2003 | # | |
2004 | # This special exception to the GPL applies to versions of the Autoconf | |
2005 | # Macro released by the Autoconf Archive. When you make and distribute a | |
2006 | # modified version of the Autoconf Macro, you may extend this special | |
2007 | # exception to the GPL to apply to your modified version as well. | |
2008 | ||
2009 | ||
2010 | # =========================================================================== | |
2011 | # http://www.nongnu.org/autoconf-archive/ax_cflags_warn_all_ansi.html | |
2012 | # =========================================================================== | |
2013 | # | |
2014 | # SYNOPSIS | |
2015 | # | |
2016 | # AX_CFLAGS_WARN_ALL_ANSI [(shellvar [,default, [A/NA]])] | |
2017 | # | |
2018 | # DESCRIPTION | |
2019 | # | |
2020 | # Try to find a compiler option that enables most reasonable warnings. | |
2021 | # This macro is directly derived from VL_PROG_CC_WARNINGS which is split | |
2022 | # up into two AX_CFLAGS_WARN_ALL and AX_CFLAGS_WARN_ALL_ANSI | |
2023 | # | |
2024 | # For the GNU CC compiler it will be -Wall (and -ansi -pedantic) The | |
2025 | # result is added to the shellvar being CFLAGS by default. | |
2026 | # | |
2027 | # Currently this macro knows about GCC, Solaris C compiler, Digital Unix C | |
2028 | # compiler, C for AIX Compiler, HP-UX C compiler, IRIX C compiler, NEC | |
2029 | # SX-5 (Super-UX 10) C compiler, and Cray J90 (Unicos 10.0.0.8) C | |
2030 | # compiler. | |
2031 | # | |
2032 | # - $1 shell-variable-to-add-to : CFLAGS | |
2033 | # - $2 add-value-if-not-found : nothing | |
2034 | # - $3 action-if-found : add value to shellvariable | |
2035 | # - $4 action-if-not-found : nothing | |
2036 | # | |
2037 | # LICENSE | |
2038 | # | |
2039 | # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> | |
2040 | # | |
2041 | # This program is free software; you can redistribute it and/or modify it | |
2042 | # under the terms of the GNU General Public License as published by the | |
2043 | # Free Software Foundation; either version 2 of the License, or (at your | |
2044 | # option) any later version. | |
2045 | # | |
2046 | # This program is distributed in the hope that it will be useful, but | |
2047 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
2048 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
2049 | # Public License for more details. | |
2050 | # | |
2051 | # You should have received a copy of the GNU General Public License along | |
2052 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
2053 | # | |
2054 | # As a special exception, the respective Autoconf Macro's copyright owner | |
2055 | # gives unlimited permission to copy, distribute and modify the configure | |
2056 | # scripts that are the output of Autoconf when processing the Macro. You | |
2057 | # need not follow the terms of the GNU General Public License when using | |
2058 | # or distributing such scripts, even though portions of the text of the | |
2059 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
2060 | # all other use of the material that constitutes the Autoconf Macro. | |
2061 | # | |
2062 | # This special exception to the GPL applies to versions of the Autoconf | |
2063 | # Macro released by the Autoconf Archive. When you make and distribute a | |
2064 | # modified version of the Autoconf Macro, you may extend this special | |
2065 | # exception to the GPL to apply to your modified version as well. | |
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | # =========================================================================== | |
2073 | # http://www.nongnu.org/autoconf-archive/ax_cflags_strict_prototypes.html | |
2074 | # =========================================================================== | |
2075 | # | |
2076 | # SYNOPSIS | |
2077 | # | |
2078 | # AX_CFLAGS_STRICT_PROTOTYPES [(shellvar [,default, [A/NA]] | |
2079 | # | |
2080 | # DESCRIPTION | |
2081 | # | |
2082 | # Try to find a compiler option that requires strict prototypes. | |
2083 | # | |
2084 | # The sanity check is done by looking at sys/signal.h which has a set of | |
2085 | # macro-definitions SIG_DFL and SIG_IGN that are cast to the local | |
2086 | # signal-handler type. If that signal-handler type is not fully qualified | |
2087 | # then the system headers are not seen as strictly prototype clean. | |
2088 | # | |
2089 | # For the GNU CC compiler it will be -fstrict-prototypes | |
2090 | # -Wstrict-prototypes The result is added to the shellvar being CFLAGS by | |
2091 | # default. | |
2092 | # | |
2093 | # DEFAULTS: | |
2094 | # | |
2095 | # - $1 shell-variable-to-add-to : CFLAGS | |
2096 | # - $2 add-value-if-not-found : nothing | |
2097 | # - $3 action-if-found : add value to shellvariable | |
2098 | # - $4 action-if-not-found : nothing | |
2099 | # | |
2100 | # LICENSE | |
2101 | # | |
2102 | # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> | |
2103 | # | |
2104 | # This program is free software; you can redistribute it and/or modify it | |
2105 | # under the terms of the GNU General Public License as published by the | |
2106 | # Free Software Foundation; either version 2 of the License, or (at your | |
2107 | # option) any later version. | |
2108 | # | |
2109 | # This program is distributed in the hope that it will be useful, but | |
2110 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
2111 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
2112 | # Public License for more details. | |
2113 | # | |
2114 | # You should have received a copy of the GNU General Public License along | |
2115 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
2116 | # | |
2117 | # As a special exception, the respective Autoconf Macro's copyright owner | |
2118 | # gives unlimited permission to copy, distribute and modify the configure | |
2119 | # scripts that are the output of Autoconf when processing the Macro. You | |
2120 | # need not follow the terms of the GNU General Public License when using | |
2121 | # or distributing such scripts, even though portions of the text of the | |
2122 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
2123 | # all other use of the material that constitutes the Autoconf Macro. | |
2124 | # | |
2125 | # This special exception to the GPL applies to versions of the Autoconf | |
2126 | # Macro released by the Autoconf Archive. When you make and distribute a | |
2127 | # modified version of the Autoconf Macro, you may extend this special | |
2128 | # exception to the GPL to apply to your modified version as well. | |
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | # =========================================================================== | |
2136 | # http://www.nongnu.org/autoconf-archive/ax_cc_maxopt.html | |
2137 | # =========================================================================== | |
2138 | # | |
2139 | # SYNOPSIS | |
2140 | # | |
2141 | # AX_CC_MAXOPT | |
2142 | # | |
2143 | # DESCRIPTION | |
2144 | # | |
2145 | # Try to turn on "good" C optimization flags for various compilers and | |
2146 | # architectures, for some definition of "good". (In our case, good for | |
2147 | # FFTW and hopefully for other scientific codes. Modify as needed.) | |
2148 | # | |
2149 | # The user can override the flags by setting the CFLAGS environment | |
2150 | # variable. The user can also specify --enable-portable-binary in order to | |
2151 | # disable any optimization flags that might result in a binary that only | |
2152 | # runs on the host architecture. | |
2153 | # | |
2154 | # Note also that the flags assume that ANSI C aliasing rules are followed | |
2155 | # by the code (e.g. for gcc's -fstrict-aliasing), and that floating-point | |
2156 | # computations can be re-ordered as needed. | |
2157 | # | |
2158 | # Requires macros: AX_CHECK_COMPILER_FLAGS, AX_COMPILER_VENDOR, | |
2159 | # AX_GCC_ARCHFLAG, AX_GCC_X86_CPUID. | |
2160 | # | |
2161 | # LICENSE | |
2162 | # | |
2163 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | |
2164 | # Copyright (c) 2008 Matteo Frigo | |
2165 | # | |
2166 | # This program is free software: you can redistribute it and/or modify it | |
2167 | # under the terms of the GNU General Public License as published by the | |
2168 | # Free Software Foundation, either version 3 of the License, or (at your | |
2169 | # option) any later version. | |
2170 | # | |
2171 | # This program is distributed in the hope that it will be useful, but | |
2172 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
2173 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
2174 | # Public License for more details. | |
2175 | # | |
2176 | # You should have received a copy of the GNU General Public License along | |
2177 | # with this program. If not, see <http://www.gnu.org/licenses/>. | |
2178 | # | |
2179 | # As a special exception, the respective Autoconf Macro's copyright owner | |
2180 | # gives unlimited permission to copy, distribute and modify the configure | |
2181 | # scripts that are the output of Autoconf when processing the Macro. You | |
2182 | # need not follow the terms of the GNU General Public License when using | |
2183 | # or distributing such scripts, even though portions of the text of the | |
2184 | # Macro appear in them. The GNU General Public License (GPL) does govern | |
2185 | # all other use of the material that constitutes the Autoconf Macro. | |
2186 | # | |
2187 | # This special exception to the GPL applies to versions of the Autoconf | |
2188 | # Macro released by the Autoconf Archive. When you make and distribute a | |
2189 | # modified version of the Autoconf Macro, you may extend this special | |
2190 | # exception to the GPL to apply to your modified version as well. | |
2191 | ||
2192 | ||
2193 | ||
2194 | ||
2195 | ||
bf042c35 | 2196 | ac_ext=c |
2197 | ac_cpp='$CPP $CPPFLAGS' | |
2198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2201 | if test -n "$ac_tool_prefix"; then | |
2202 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2203 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2206 | if test "${ac_cv_prog_CC+set}" = set; then | |
2207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2208 | else | |
2209 | if test -n "$CC"; then | |
2210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2211 | else | |
2212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2213 | for as_dir in $PATH | |
2214 | do | |
2215 | IFS=$as_save_IFS | |
2216 | test -z "$as_dir" && as_dir=. | |
2217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2219 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2221 | break 2 | |
2222 | fi | |
2223 | done | |
2224 | done | |
2225 | IFS=$as_save_IFS | |
2226 | ||
2227 | fi | |
2228 | fi | |
2229 | CC=$ac_cv_prog_CC | |
2230 | if test -n "$CC"; then | |
2231 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2232 | echo "${ECHO_T}$CC" >&6; } | |
2233 | else | |
2234 | { echo "$as_me:$LINENO: result: no" >&5 | |
2235 | echo "${ECHO_T}no" >&6; } | |
2236 | fi | |
2237 | ||
2238 | ||
2239 | fi | |
2240 | if test -z "$ac_cv_prog_CC"; then | |
2241 | ac_ct_CC=$CC | |
2242 | # Extract the first word of "gcc", so it can be a program name with args. | |
2243 | set dummy gcc; ac_word=$2 | |
2244 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2246 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2248 | else | |
2249 | if test -n "$ac_ct_CC"; then | |
2250 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2251 | else | |
2252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2253 | for as_dir in $PATH | |
2254 | do | |
2255 | IFS=$as_save_IFS | |
2256 | test -z "$as_dir" && as_dir=. | |
2257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2259 | ac_cv_prog_ac_ct_CC="gcc" | |
2260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2261 | break 2 | |
2262 | fi | |
2263 | done | |
2264 | done | |
2265 | IFS=$as_save_IFS | |
2266 | ||
2267 | fi | |
2268 | fi | |
2269 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2270 | if test -n "$ac_ct_CC"; then | |
2271 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2272 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2273 | else | |
2274 | { echo "$as_me:$LINENO: result: no" >&5 | |
2275 | echo "${ECHO_T}no" >&6; } | |
2276 | fi | |
2277 | ||
2278 | if test "x$ac_ct_CC" = x; then | |
2279 | CC="" | |
2280 | else | |
2281 | case $cross_compiling:$ac_tool_warned in | |
2282 | yes:) | |
2283 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2284 | whose name does not start with the host triplet. If you think this | |
2285 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2286 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2287 | whose name does not start with the host triplet. If you think this | |
2288 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2289 | ac_tool_warned=yes ;; | |
2290 | esac | |
2291 | CC=$ac_ct_CC | |
2292 | fi | |
2293 | else | |
2294 | CC="$ac_cv_prog_CC" | |
2295 | fi | |
2296 | ||
2297 | if test -z "$CC"; then | |
2298 | if test -n "$ac_tool_prefix"; then | |
2299 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2300 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2303 | if test "${ac_cv_prog_CC+set}" = set; then | |
2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2305 | else | |
2306 | if test -n "$CC"; then | |
2307 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2308 | else | |
2309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 | for as_dir in $PATH | |
2311 | do | |
2312 | IFS=$as_save_IFS | |
2313 | test -z "$as_dir" && as_dir=. | |
2314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2316 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2318 | break 2 | |
2319 | fi | |
2320 | done | |
2321 | done | |
2322 | IFS=$as_save_IFS | |
2323 | ||
2324 | fi | |
2325 | fi | |
2326 | CC=$ac_cv_prog_CC | |
2327 | if test -n "$CC"; then | |
2328 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2329 | echo "${ECHO_T}$CC" >&6; } | |
2330 | else | |
2331 | { echo "$as_me:$LINENO: result: no" >&5 | |
2332 | echo "${ECHO_T}no" >&6; } | |
2333 | fi | |
2334 | ||
2335 | ||
2336 | fi | |
2337 | fi | |
2338 | if test -z "$CC"; then | |
2339 | # Extract the first word of "cc", so it can be a program name with args. | |
2340 | set dummy cc; ac_word=$2 | |
2341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2343 | if test "${ac_cv_prog_CC+set}" = set; then | |
2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2345 | else | |
2346 | if test -n "$CC"; then | |
2347 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2348 | else | |
2349 | ac_prog_rejected=no | |
2350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2351 | for as_dir in $PATH | |
2352 | do | |
2353 | IFS=$as_save_IFS | |
2354 | test -z "$as_dir" && as_dir=. | |
2355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2357 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2358 | ac_prog_rejected=yes | |
2359 | continue | |
2360 | fi | |
2361 | ac_cv_prog_CC="cc" | |
2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2363 | break 2 | |
2364 | fi | |
2365 | done | |
2366 | done | |
2367 | IFS=$as_save_IFS | |
2368 | ||
2369 | if test $ac_prog_rejected = yes; then | |
2370 | # We found a bogon in the path, so make sure we never use it. | |
2371 | set dummy $ac_cv_prog_CC | |
2372 | shift | |
2373 | if test $# != 0; then | |
2374 | # We chose a different compiler from the bogus one. | |
2375 | # However, it has the same basename, so the bogon will be chosen | |
2376 | # first if we set CC to just the basename; use the full file name. | |
2377 | shift | |
2378 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2379 | fi | |
2380 | fi | |
2381 | fi | |
2382 | fi | |
2383 | CC=$ac_cv_prog_CC | |
2384 | if test -n "$CC"; then | |
2385 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2386 | echo "${ECHO_T}$CC" >&6; } | |
2387 | else | |
2388 | { echo "$as_me:$LINENO: result: no" >&5 | |
2389 | echo "${ECHO_T}no" >&6; } | |
2390 | fi | |
2391 | ||
2392 | ||
2393 | fi | |
2394 | if test -z "$CC"; then | |
2395 | if test -n "$ac_tool_prefix"; then | |
2396 | for ac_prog in cl.exe | |
2397 | do | |
2398 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2399 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2402 | if test "${ac_cv_prog_CC+set}" = set; then | |
2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2404 | else | |
2405 | if test -n "$CC"; then | |
2406 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2407 | else | |
2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2409 | for as_dir in $PATH | |
2410 | do | |
2411 | IFS=$as_save_IFS | |
2412 | test -z "$as_dir" && as_dir=. | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2415 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2417 | break 2 | |
2418 | fi | |
2419 | done | |
2420 | done | |
2421 | IFS=$as_save_IFS | |
2422 | ||
2423 | fi | |
2424 | fi | |
2425 | CC=$ac_cv_prog_CC | |
2426 | if test -n "$CC"; then | |
2427 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2428 | echo "${ECHO_T}$CC" >&6; } | |
2429 | else | |
2430 | { echo "$as_me:$LINENO: result: no" >&5 | |
2431 | echo "${ECHO_T}no" >&6; } | |
2432 | fi | |
2433 | ||
2434 | ||
2435 | test -n "$CC" && break | |
2436 | done | |
2437 | fi | |
2438 | if test -z "$CC"; then | |
2439 | ac_ct_CC=$CC | |
2440 | for ac_prog in cl.exe | |
2441 | do | |
2442 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2443 | set dummy $ac_prog; ac_word=$2 | |
2444 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2448 | else | |
2449 | if test -n "$ac_ct_CC"; then | |
2450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2451 | else | |
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2453 | for as_dir in $PATH | |
2454 | do | |
2455 | IFS=$as_save_IFS | |
2456 | test -z "$as_dir" && as_dir=. | |
2457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2459 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2461 | break 2 | |
2462 | fi | |
2463 | done | |
2464 | done | |
2465 | IFS=$as_save_IFS | |
2466 | ||
2467 | fi | |
2468 | fi | |
2469 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2470 | if test -n "$ac_ct_CC"; then | |
2471 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2472 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2473 | else | |
2474 | { echo "$as_me:$LINENO: result: no" >&5 | |
2475 | echo "${ECHO_T}no" >&6; } | |
2476 | fi | |
2477 | ||
2478 | ||
2479 | test -n "$ac_ct_CC" && break | |
2480 | done | |
2481 | ||
2482 | if test "x$ac_ct_CC" = x; then | |
2483 | CC="" | |
2484 | else | |
2485 | case $cross_compiling:$ac_tool_warned in | |
2486 | yes:) | |
2487 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2488 | whose name does not start with the host triplet. If you think this | |
2489 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2490 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2491 | whose name does not start with the host triplet. If you think this | |
2492 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2493 | ac_tool_warned=yes ;; | |
2494 | esac | |
2495 | CC=$ac_ct_CC | |
2496 | fi | |
2497 | fi | |
2498 | ||
2499 | fi | |
2500 | ||
2501 | ||
2502 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2503 | See \`config.log' for more details." >&5 | |
2504 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2505 | See \`config.log' for more details." >&2;} | |
2506 | { (exit 1); exit 1; }; } | |
2507 | ||
2508 | # Provide some information about the compiler. | |
2509 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2510 | ac_compiler=`set X $ac_compile; echo $2` | |
2511 | { (ac_try="$ac_compiler --version >&5" | |
2512 | case "(($ac_try" in | |
2513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2514 | *) ac_try_echo=$ac_try;; | |
2515 | esac | |
2516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2517 | (eval "$ac_compiler --version >&5") 2>&5 | |
2518 | ac_status=$? | |
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2520 | (exit $ac_status); } | |
2521 | { (ac_try="$ac_compiler -v >&5" | |
2522 | case "(($ac_try" in | |
2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2524 | *) ac_try_echo=$ac_try;; | |
2525 | esac | |
2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2527 | (eval "$ac_compiler -v >&5") 2>&5 | |
2528 | ac_status=$? | |
2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2530 | (exit $ac_status); } | |
2531 | { (ac_try="$ac_compiler -V >&5" | |
2532 | case "(($ac_try" in | |
2533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2534 | *) ac_try_echo=$ac_try;; | |
2535 | esac | |
2536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2537 | (eval "$ac_compiler -V >&5") 2>&5 | |
2538 | ac_status=$? | |
2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2540 | (exit $ac_status); } | |
2541 | ||
2542 | cat >conftest.$ac_ext <<_ACEOF | |
2543 | /* confdefs.h. */ | |
2544 | _ACEOF | |
2545 | cat confdefs.h >>conftest.$ac_ext | |
2546 | cat >>conftest.$ac_ext <<_ACEOF | |
2547 | /* end confdefs.h. */ | |
2548 | ||
2549 | int | |
2550 | main () | |
2551 | { | |
2552 | ||
2553 | ; | |
2554 | return 0; | |
2555 | } | |
2556 | _ACEOF | |
2557 | ac_clean_files_save=$ac_clean_files | |
2558 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2559 | # Try to create an executable without -o first, disregard a.out. | |
2560 | # It will help us diagnose broken compilers, and finding out an intuition | |
2561 | # of exeext. | |
2562 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2563 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2564 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2565 | # | |
2566 | # List of possible output files, starting from the most likely. | |
2567 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2568 | # only as a last resort. b.out is created by i960 compilers. | |
2569 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2570 | # | |
2571 | # The IRIX 6 linker writes into existing files which may not be | |
2572 | # executable, retaining their permissions. Remove them first so a | |
2573 | # subsequent execution test works. | |
2574 | ac_rmfiles= | |
2575 | for ac_file in $ac_files | |
2576 | do | |
2577 | case $ac_file in | |
2578 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2579 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2580 | esac | |
2581 | done | |
2582 | rm -f $ac_rmfiles | |
2583 | ||
2584 | if { (ac_try="$ac_link_default" | |
2585 | case "(($ac_try" in | |
2586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2587 | *) ac_try_echo=$ac_try;; | |
2588 | esac | |
2589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2590 | (eval "$ac_link_default") 2>&5 | |
2591 | ac_status=$? | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); }; then | |
2594 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2595 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2596 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2597 | # so that the user can short-circuit this test for compilers unknown to | |
2598 | # Autoconf. | |
2599 | for ac_file in $ac_files '' | |
2600 | do | |
2601 | test -f "$ac_file" || continue | |
2602 | case $ac_file in | |
2603 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2604 | ;; | |
2605 | [ab].out ) | |
2606 | # We found the default executable, but exeext='' is most | |
2607 | # certainly right. | |
2608 | break;; | |
2609 | *.* ) | |
2610 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2611 | then :; else | |
2612 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2613 | fi | |
2614 | # We set ac_cv_exeext here because the later test for it is not | |
2615 | # safe: cross compilers may not add the suffix if given an `-o' | |
2616 | # argument, so we may need to know it at that point already. | |
2617 | # Even if this section looks crufty: it has the advantage of | |
2618 | # actually working. | |
2619 | break;; | |
2620 | * ) | |
2621 | break;; | |
2622 | esac | |
2623 | done | |
2624 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2625 | ||
2626 | else | |
2627 | ac_file='' | |
2628 | fi | |
2629 | ||
2630 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2631 | echo "${ECHO_T}$ac_file" >&6; } | |
2632 | if test -z "$ac_file"; then | |
2633 | echo "$as_me: failed program was:" >&5 | |
2634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2635 | ||
2636 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2637 | See \`config.log' for more details." >&5 | |
2638 | echo "$as_me: error: C compiler cannot create executables | |
2639 | See \`config.log' for more details." >&2;} | |
2640 | { (exit 77); exit 77; }; } | |
2641 | fi | |
2642 | ||
2643 | ac_exeext=$ac_cv_exeext | |
2644 | ||
2645 | # Check that the compiler produces executables we can run. If not, either | |
2646 | # the compiler is broken, or we cross compile. | |
2647 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2648 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2649 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2650 | # If not cross compiling, check that we can run a simple program. | |
2651 | if test "$cross_compiling" != yes; then | |
2652 | if { ac_try='./$ac_file' | |
2653 | { (case "(($ac_try" in | |
2654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2655 | *) ac_try_echo=$ac_try;; | |
2656 | esac | |
2657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2658 | (eval "$ac_try") 2>&5 | |
2659 | ac_status=$? | |
2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2661 | (exit $ac_status); }; }; then | |
2662 | cross_compiling=no | |
2663 | else | |
2664 | if test "$cross_compiling" = maybe; then | |
2665 | cross_compiling=yes | |
2666 | else | |
2667 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2668 | If you meant to cross compile, use \`--host'. | |
2669 | See \`config.log' for more details." >&5 | |
2670 | echo "$as_me: error: cannot run C compiled programs. | |
2671 | If you meant to cross compile, use \`--host'. | |
2672 | See \`config.log' for more details." >&2;} | |
2673 | { (exit 1); exit 1; }; } | |
2674 | fi | |
2675 | fi | |
2676 | fi | |
2677 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2678 | echo "${ECHO_T}yes" >&6; } | |
2679 | ||
2680 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2681 | ac_clean_files=$ac_clean_files_save | |
2682 | # Check that the compiler produces executables we can run. If not, either | |
2683 | # the compiler is broken, or we cross compile. | |
2684 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2685 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2686 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2687 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2688 | ||
2689 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2690 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2691 | if { (ac_try="$ac_link" | |
2692 | case "(($ac_try" in | |
2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2694 | *) ac_try_echo=$ac_try;; | |
2695 | esac | |
2696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2697 | (eval "$ac_link") 2>&5 | |
2698 | ac_status=$? | |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2700 | (exit $ac_status); }; then | |
2701 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2702 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2703 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2704 | # `rm'. | |
2705 | for ac_file in conftest.exe conftest conftest.*; do | |
2706 | test -f "$ac_file" || continue | |
2707 | case $ac_file in | |
2708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2709 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2710 | break;; | |
2711 | * ) break;; | |
2712 | esac | |
2713 | done | |
2714 | else | |
2715 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2716 | See \`config.log' for more details." >&5 | |
2717 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2718 | See \`config.log' for more details." >&2;} | |
2719 | { (exit 1); exit 1; }; } | |
2720 | fi | |
2721 | ||
2722 | rm -f conftest$ac_cv_exeext | |
2723 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2724 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2725 | ||
2726 | rm -f conftest.$ac_ext | |
2727 | EXEEXT=$ac_cv_exeext | |
2728 | ac_exeext=$EXEEXT | |
2729 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2730 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2731 | if test "${ac_cv_objext+set}" = set; then | |
2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2733 | else | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | ||
2741 | int | |
2742 | main () | |
2743 | { | |
2744 | ||
2745 | ; | |
2746 | return 0; | |
2747 | } | |
2748 | _ACEOF | |
2749 | rm -f conftest.o conftest.obj | |
2750 | if { (ac_try="$ac_compile" | |
2751 | case "(($ac_try" in | |
2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2753 | *) ac_try_echo=$ac_try;; | |
2754 | esac | |
2755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2756 | (eval "$ac_compile") 2>&5 | |
2757 | ac_status=$? | |
2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2759 | (exit $ac_status); }; then | |
2760 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2761 | test -f "$ac_file" || continue; | |
2762 | case $ac_file in | |
2763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2764 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2765 | break;; | |
2766 | esac | |
2767 | done | |
2768 | else | |
2769 | echo "$as_me: failed program was:" >&5 | |
2770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2771 | ||
2772 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2773 | See \`config.log' for more details." >&5 | |
2774 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2775 | See \`config.log' for more details." >&2;} | |
2776 | { (exit 1); exit 1; }; } | |
2777 | fi | |
2778 | ||
2779 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2780 | fi | |
2781 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2782 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2783 | OBJEXT=$ac_cv_objext | |
2784 | ac_objext=$OBJEXT | |
2785 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2786 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2787 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2789 | else | |
2790 | cat >conftest.$ac_ext <<_ACEOF | |
2791 | /* confdefs.h. */ | |
2792 | _ACEOF | |
2793 | cat confdefs.h >>conftest.$ac_ext | |
2794 | cat >>conftest.$ac_ext <<_ACEOF | |
2795 | /* end confdefs.h. */ | |
2796 | ||
2797 | int | |
2798 | main () | |
2799 | { | |
2800 | #ifndef __GNUC__ | |
2801 | choke me | |
2802 | #endif | |
2803 | ||
2804 | ; | |
2805 | return 0; | |
2806 | } | |
2807 | _ACEOF | |
2808 | rm -f conftest.$ac_objext | |
2809 | if { (ac_try="$ac_compile" | |
2810 | case "(($ac_try" in | |
2811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2812 | *) ac_try_echo=$ac_try;; | |
2813 | esac | |
2814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2815 | (eval "$ac_compile") 2>conftest.er1 | |
2816 | ac_status=$? | |
2817 | grep -v '^ *+' conftest.er1 >conftest.err | |
2818 | rm -f conftest.er1 | |
2819 | cat conftest.err >&5 | |
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2821 | (exit $ac_status); } && { | |
2822 | test -z "$ac_c_werror_flag" || | |
2823 | test ! -s conftest.err | |
2824 | } && test -s conftest.$ac_objext; then | |
2825 | ac_compiler_gnu=yes | |
2826 | else | |
2827 | echo "$as_me: failed program was:" >&5 | |
2828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2829 | ||
2830 | ac_compiler_gnu=no | |
2831 | fi | |
2832 | ||
2833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2834 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2835 | ||
2836 | fi | |
2837 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2838 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2839 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2840 | ac_test_CFLAGS=${CFLAGS+set} | |
2841 | ac_save_CFLAGS=$CFLAGS | |
2842 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2843 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2844 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2846 | else | |
2847 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2848 | ac_c_werror_flag=yes | |
2849 | ac_cv_prog_cc_g=no | |
2850 | CFLAGS="-g" | |
2851 | cat >conftest.$ac_ext <<_ACEOF | |
2852 | /* confdefs.h. */ | |
2853 | _ACEOF | |
2854 | cat confdefs.h >>conftest.$ac_ext | |
2855 | cat >>conftest.$ac_ext <<_ACEOF | |
2856 | /* end confdefs.h. */ | |
2857 | ||
2858 | int | |
2859 | main () | |
2860 | { | |
2861 | ||
2862 | ; | |
2863 | return 0; | |
2864 | } | |
2865 | _ACEOF | |
2866 | rm -f conftest.$ac_objext | |
2867 | if { (ac_try="$ac_compile" | |
2868 | case "(($ac_try" in | |
2869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2870 | *) ac_try_echo=$ac_try;; | |
2871 | esac | |
2872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2873 | (eval "$ac_compile") 2>conftest.er1 | |
2874 | ac_status=$? | |
2875 | grep -v '^ *+' conftest.er1 >conftest.err | |
2876 | rm -f conftest.er1 | |
2877 | cat conftest.err >&5 | |
2878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2879 | (exit $ac_status); } && { | |
2880 | test -z "$ac_c_werror_flag" || | |
2881 | test ! -s conftest.err | |
2882 | } && test -s conftest.$ac_objext; then | |
2883 | ac_cv_prog_cc_g=yes | |
2884 | else | |
2885 | echo "$as_me: failed program was:" >&5 | |
2886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2887 | ||
2888 | CFLAGS="" | |
2889 | cat >conftest.$ac_ext <<_ACEOF | |
2890 | /* confdefs.h. */ | |
2891 | _ACEOF | |
2892 | cat confdefs.h >>conftest.$ac_ext | |
2893 | cat >>conftest.$ac_ext <<_ACEOF | |
2894 | /* end confdefs.h. */ | |
2895 | ||
2896 | int | |
2897 | main () | |
2898 | { | |
2899 | ||
2900 | ; | |
2901 | return 0; | |
2902 | } | |
2903 | _ACEOF | |
2904 | rm -f conftest.$ac_objext | |
2905 | if { (ac_try="$ac_compile" | |
2906 | case "(($ac_try" in | |
2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2908 | *) ac_try_echo=$ac_try;; | |
2909 | esac | |
2910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2911 | (eval "$ac_compile") 2>conftest.er1 | |
2912 | ac_status=$? | |
2913 | grep -v '^ *+' conftest.er1 >conftest.err | |
2914 | rm -f conftest.er1 | |
2915 | cat conftest.err >&5 | |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2917 | (exit $ac_status); } && { | |
2918 | test -z "$ac_c_werror_flag" || | |
2919 | test ! -s conftest.err | |
2920 | } && test -s conftest.$ac_objext; then | |
2921 | : | |
2922 | else | |
2923 | echo "$as_me: failed program was:" >&5 | |
2924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2925 | ||
2926 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2927 | CFLAGS="-g" | |
2928 | cat >conftest.$ac_ext <<_ACEOF | |
2929 | /* confdefs.h. */ | |
2930 | _ACEOF | |
2931 | cat confdefs.h >>conftest.$ac_ext | |
2932 | cat >>conftest.$ac_ext <<_ACEOF | |
2933 | /* end confdefs.h. */ | |
2934 | ||
2935 | int | |
2936 | main () | |
2937 | { | |
2938 | ||
2939 | ; | |
2940 | return 0; | |
2941 | } | |
2942 | _ACEOF | |
2943 | rm -f conftest.$ac_objext | |
2944 | if { (ac_try="$ac_compile" | |
2945 | case "(($ac_try" in | |
2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2947 | *) ac_try_echo=$ac_try;; | |
2948 | esac | |
2949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2950 | (eval "$ac_compile") 2>conftest.er1 | |
2951 | ac_status=$? | |
2952 | grep -v '^ *+' conftest.er1 >conftest.err | |
2953 | rm -f conftest.er1 | |
2954 | cat conftest.err >&5 | |
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2956 | (exit $ac_status); } && { | |
2957 | test -z "$ac_c_werror_flag" || | |
2958 | test ! -s conftest.err | |
2959 | } && test -s conftest.$ac_objext; then | |
2960 | ac_cv_prog_cc_g=yes | |
2961 | else | |
2962 | echo "$as_me: failed program was:" >&5 | |
2963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2964 | ||
2965 | ||
2966 | fi | |
2967 | ||
2968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2969 | fi | |
2970 | ||
2971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2972 | fi | |
2973 | ||
2974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2975 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2976 | fi | |
2977 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2978 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2979 | if test "$ac_test_CFLAGS" = set; then | |
2980 | CFLAGS=$ac_save_CFLAGS | |
2981 | elif test $ac_cv_prog_cc_g = yes; then | |
2982 | if test "$GCC" = yes; then | |
2983 | CFLAGS="-g -O2" | |
2984 | else | |
2985 | CFLAGS="-g" | |
2986 | fi | |
2987 | else | |
2988 | if test "$GCC" = yes; then | |
2989 | CFLAGS="-O2" | |
2990 | else | |
2991 | CFLAGS= | |
2992 | fi | |
2993 | fi | |
2994 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2995 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2996 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2998 | else | |
2999 | ac_cv_prog_cc_c89=no | |
3000 | ac_save_CC=$CC | |
3001 | cat >conftest.$ac_ext <<_ACEOF | |
3002 | /* confdefs.h. */ | |
3003 | _ACEOF | |
3004 | cat confdefs.h >>conftest.$ac_ext | |
3005 | cat >>conftest.$ac_ext <<_ACEOF | |
3006 | /* end confdefs.h. */ | |
3007 | #include <stdarg.h> | |
3008 | #include <stdio.h> | |
3009 | #include <sys/types.h> | |
3010 | #include <sys/stat.h> | |
3011 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3012 | struct buf { int x; }; | |
3013 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3014 | static char *e (p, i) | |
3015 | char **p; | |
3016 | int i; | |
3017 | { | |
3018 | return p[i]; | |
3019 | } | |
3020 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3021 | { | |
3022 | char *s; | |
3023 | va_list v; | |
3024 | va_start (v,p); | |
3025 | s = g (p, va_arg (v,int)); | |
3026 | va_end (v); | |
3027 | return s; | |
3028 | } | |
3029 | ||
3030 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3031 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3032 | These don't provoke an error unfortunately, instead are silently treated | |
3033 | as 'x'. The following induces an error, until -std is added to get | |
3034 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3035 | array size at least. It's necessary to write '\x00'==0 to get something | |
3036 | that's true only with -std. */ | |
3037 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3038 | ||
3039 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3040 | inside strings and character constants. */ | |
3041 | #define FOO(x) 'x' | |
3042 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3043 | ||
3044 | int test (int i, double x); | |
3045 | struct s1 {int (*f) (int a);}; | |
3046 | struct s2 {int (*f) (double a);}; | |
3047 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3048 | int argc; | |
3049 | char **argv; | |
3050 | int | |
3051 | main () | |
3052 | { | |
3053 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3059 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3060 | do | |
3061 | CC="$ac_save_CC $ac_arg" | |
3062 | rm -f conftest.$ac_objext | |
3063 | if { (ac_try="$ac_compile" | |
3064 | case "(($ac_try" in | |
3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3066 | *) ac_try_echo=$ac_try;; | |
3067 | esac | |
3068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3069 | (eval "$ac_compile") 2>conftest.er1 | |
3070 | ac_status=$? | |
3071 | grep -v '^ *+' conftest.er1 >conftest.err | |
3072 | rm -f conftest.er1 | |
3073 | cat conftest.err >&5 | |
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3075 | (exit $ac_status); } && { | |
3076 | test -z "$ac_c_werror_flag" || | |
3077 | test ! -s conftest.err | |
3078 | } && test -s conftest.$ac_objext; then | |
3079 | ac_cv_prog_cc_c89=$ac_arg | |
3080 | else | |
3081 | echo "$as_me: failed program was:" >&5 | |
3082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3083 | ||
3084 | ||
3085 | fi | |
3086 | ||
3087 | rm -f core conftest.err conftest.$ac_objext | |
3088 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3089 | done | |
3090 | rm -f conftest.$ac_ext | |
3091 | CC=$ac_save_CC | |
3092 | ||
3093 | fi | |
3094 | # AC_CACHE_VAL | |
3095 | case "x$ac_cv_prog_cc_c89" in | |
3096 | x) | |
3097 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3098 | echo "${ECHO_T}none needed" >&6; } ;; | |
3099 | xno) | |
3100 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3101 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3102 | *) | |
3103 | CC="$CC $ac_cv_prog_cc_c89" | |
3104 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3105 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3106 | esac | |
3107 | ||
3108 | ||
3109 | ac_ext=c | |
3110 | ac_cpp='$CPP $CPPFLAGS' | |
3111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3114 | ||
3115 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 | |
3116 | echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } | |
3117 | if test "${ac_cv_prog_cc_c99+set}" = set; then | |
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3119 | else | |
3120 | ac_cv_prog_cc_c99=no | |
3121 | ac_save_CC=$CC | |
3122 | cat >conftest.$ac_ext <<_ACEOF | |
3123 | /* confdefs.h. */ | |
3124 | _ACEOF | |
3125 | cat confdefs.h >>conftest.$ac_ext | |
3126 | cat >>conftest.$ac_ext <<_ACEOF | |
3127 | /* end confdefs.h. */ | |
3128 | #include <stdarg.h> | |
3129 | #include <stdbool.h> | |
3130 | #include <stdlib.h> | |
3131 | #include <wchar.h> | |
3132 | #include <stdio.h> | |
3133 | ||
3134 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
3135 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3136 | #define showlist(...) puts (#__VA_ARGS__) | |
3137 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3138 | static void | |
3139 | test_varargs_macros (void) | |
3140 | { | |
3141 | int x = 1234; | |
3142 | int y = 5678; | |
3143 | debug ("Flag"); | |
3144 | debug ("X = %d\n", x); | |
3145 | showlist (The first, second, and third items.); | |
3146 | report (x>y, "x is %d but y is %d", x, y); | |
3147 | } | |
3148 | ||
3149 | // Check long long types. | |
3150 | #define BIG64 18446744073709551615ull | |
3151 | #define BIG32 4294967295ul | |
3152 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3153 | #if !BIG_OK | |
3154 | your preprocessor is broken; | |
3155 | #endif | |
3156 | #if BIG_OK | |
3157 | #else | |
3158 | your preprocessor is broken; | |
3159 | #endif | |
3160 | static long long int bignum = -9223372036854775807LL; | |
3161 | static unsigned long long int ubignum = BIG64; | |
3162 | ||
3163 | struct incomplete_array | |
3164 | { | |
3165 | int datasize; | |
3166 | double data[]; | |
3167 | }; | |
3168 | ||
3169 | struct named_init { | |
3170 | int number; | |
3171 | const wchar_t *name; | |
3172 | double average; | |
3173 | }; | |
3174 | ||
3175 | typedef const char *ccp; | |
3176 | ||
3177 | static inline int | |
3178 | test_restrict (ccp restrict text) | |
3179 | { | |
3180 | // See if C++-style comments work. | |
3181 | // Iterate through items via the restricted pointer. | |
3182 | // Also check for declarations in for loops. | |
3183 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3184 | continue; | |
3185 | return 0; | |
3186 | } | |
3187 | ||
3188 | // Check varargs and va_copy. | |
3189 | static void | |
3190 | test_varargs (const char *format, ...) | |
3191 | { | |
3192 | va_list args; | |
3193 | va_start (args, format); | |
3194 | va_list args_copy; | |
3195 | va_copy (args_copy, args); | |
3196 | ||
3197 | const char *str; | |
3198 | int number; | |
3199 | float fnumber; | |
3200 | ||
3201 | while (*format) | |
3202 | { | |
3203 | switch (*format++) | |
3204 | { | |
3205 | case 's': // string | |
3206 | str = va_arg (args_copy, const char *); | |
3207 | break; | |
3208 | case 'd': // int | |
3209 | number = va_arg (args_copy, int); | |
3210 | break; | |
3211 | case 'f': // float | |
3212 | fnumber = va_arg (args_copy, double); | |
3213 | break; | |
3214 | default: | |
3215 | break; | |
3216 | } | |
3217 | } | |
3218 | va_end (args_copy); | |
3219 | va_end (args); | |
3220 | } | |
3221 | ||
3222 | int | |
3223 | main () | |
3224 | { | |
3225 | ||
3226 | // Check bool. | |
3227 | _Bool success = false; | |
3228 | ||
3229 | // Check restrict. | |
3230 | if (test_restrict ("String literal") == 0) | |
3231 | success = true; | |
3232 | char *restrict newvar = "Another string"; | |
3233 | ||
3234 | // Check varargs. | |
3235 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3236 | test_varargs_macros (); | |
3237 | ||
3238 | // Check flexible array members. | |
3239 | struct incomplete_array *ia = | |
3240 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3241 | ia->datasize = 10; | |
3242 | for (int i = 0; i < ia->datasize; ++i) | |
3243 | ia->data[i] = i * 1.234; | |
3244 | ||
3245 | // Check named initializers. | |
3246 | struct named_init ni = { | |
3247 | .number = 34, | |
3248 | .name = L"Test wide string", | |
3249 | .average = 543.34343, | |
3250 | }; | |
3251 | ||
3252 | ni.number = 58; | |
3253 | ||
3254 | int dynamic_array[ni.number]; | |
3255 | dynamic_array[ni.number - 1] = 543; | |
3256 | ||
3257 | // work around unused variable warnings | |
3258 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3259 | || dynamic_array[ni.number - 1] != 543); | |
3260 | ||
3261 | ; | |
3262 | return 0; | |
3263 | } | |
3264 | _ACEOF | |
3265 | for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 | |
3266 | do | |
3267 | CC="$ac_save_CC $ac_arg" | |
3268 | rm -f conftest.$ac_objext | |
3269 | if { (ac_try="$ac_compile" | |
3270 | case "(($ac_try" in | |
3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3272 | *) ac_try_echo=$ac_try;; | |
3273 | esac | |
3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3275 | (eval "$ac_compile") 2>conftest.er1 | |
3276 | ac_status=$? | |
3277 | grep -v '^ *+' conftest.er1 >conftest.err | |
3278 | rm -f conftest.er1 | |
3279 | cat conftest.err >&5 | |
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3281 | (exit $ac_status); } && { | |
3282 | test -z "$ac_c_werror_flag" || | |
3283 | test ! -s conftest.err | |
3284 | } && test -s conftest.$ac_objext; then | |
3285 | ac_cv_prog_cc_c99=$ac_arg | |
3286 | else | |
3287 | echo "$as_me: failed program was:" >&5 | |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3289 | ||
3290 | ||
3291 | fi | |
3292 | ||
3293 | rm -f core conftest.err conftest.$ac_objext | |
3294 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3295 | done | |
3296 | rm -f conftest.$ac_ext | |
3297 | CC=$ac_save_CC | |
3298 | ||
3299 | fi | |
3300 | # AC_CACHE_VAL | |
3301 | case "x$ac_cv_prog_cc_c99" in | |
3302 | x) | |
3303 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3304 | echo "${ECHO_T}none needed" >&6; } ;; | |
3305 | xno) | |
3306 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3307 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3308 | *) | |
3309 | CC="$CC $ac_cv_prog_cc_c99" | |
3310 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 | |
3311 | echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; | |
3312 | esac | |
3313 | ||
3314 | ||
3315 | ||
11b73fef | 3316 | |
3317 | ||
3318 | { echo "$as_me:$LINENO: checking for C compiler vendor" >&5 | |
3319 | echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6; } | |
3320 | if test "${ax_cv_c_compiler_vendor+set}" = set; then | |
3321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3322 | else | |
3323 | ax_cv_c_compiler_vendor=unknown | |
3324 | # note: don't check for gcc first since some other compilers define __GNUC__ | |
3325 | for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do | |
3326 | vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" | |
3327 | cat >conftest.$ac_ext <<_ACEOF | |
3328 | /* confdefs.h. */ | |
3329 | _ACEOF | |
3330 | cat confdefs.h >>conftest.$ac_ext | |
3331 | cat >>conftest.$ac_ext <<_ACEOF | |
3332 | /* end confdefs.h. */ | |
3333 | ||
3334 | int | |
3335 | main () | |
3336 | { | |
3337 | ||
3338 | #if !($vencpp) | |
3339 | thisisanerror; | |
3340 | #endif | |
3341 | ||
3342 | ; | |
3343 | return 0; | |
3344 | } | |
3345 | _ACEOF | |
3346 | rm -f conftest.$ac_objext | |
3347 | if { (ac_try="$ac_compile" | |
3348 | case "(($ac_try" in | |
3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3350 | *) ac_try_echo=$ac_try;; | |
3351 | esac | |
3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3353 | (eval "$ac_compile") 2>conftest.er1 | |
3354 | ac_status=$? | |
3355 | grep -v '^ *+' conftest.er1 >conftest.err | |
3356 | rm -f conftest.er1 | |
3357 | cat conftest.err >&5 | |
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3359 | (exit $ac_status); } && { | |
3360 | test -z "$ac_c_werror_flag" || | |
3361 | test ! -s conftest.err | |
3362 | } && test -s conftest.$ac_objext; then | |
3363 | ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break | |
3364 | else | |
3365 | echo "$as_me: failed program was:" >&5 | |
3366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3367 | ||
3368 | ||
3369 | fi | |
3370 | ||
3371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3372 | done | |
3373 | ||
3374 | fi | |
3375 | { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5 | |
3376 | echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6; } | |
3377 | ||
bf042c35 | 3378 | ac_aux_dir= |
3379 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3380 | if test -f "$ac_dir/install-sh"; then | |
3381 | ac_aux_dir=$ac_dir | |
3382 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3383 | break | |
3384 | elif test -f "$ac_dir/install.sh"; then | |
3385 | ac_aux_dir=$ac_dir | |
3386 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3387 | break | |
3388 | elif test -f "$ac_dir/shtool"; then | |
3389 | ac_aux_dir=$ac_dir | |
3390 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3391 | break | |
3392 | fi | |
3393 | done | |
3394 | if test -z "$ac_aux_dir"; then | |
3395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
3396 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
3397 | { (exit 1); exit 1; }; } | |
3398 | fi | |
3399 | ||
3400 | # These three variables are undocumented and unsupported, | |
3401 | # and are intended to be withdrawn in a future Autoconf release. | |
3402 | # They can cause serious problems if a builder's source tree is in a directory | |
3403 | # whose full name contains unusual characters. | |
3404 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3405 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3406 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3407 | ||
3408 | ||
3409 | # Make sure we can run config.sub. | |
3410 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3411 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
3412 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
3413 | { (exit 1); exit 1; }; } | |
3414 | ||
3415 | { echo "$as_me:$LINENO: checking build system type" >&5 | |
3416 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
3417 | if test "${ac_cv_build+set}" = set; then | |
3418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3419 | else | |
3420 | ac_build_alias=$build_alias | |
3421 | test "x$ac_build_alias" = x && | |
3422 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3423 | test "x$ac_build_alias" = x && | |
3424 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3425 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3426 | { (exit 1); exit 1; }; } | |
3427 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3428 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
3429 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
3430 | { (exit 1); exit 1; }; } | |
3431 | ||
3432 | fi | |
3433 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3434 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
3435 | case $ac_cv_build in | |
3436 | *-*-*) ;; | |
3437 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3438 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
3439 | { (exit 1); exit 1; }; };; | |
3440 | esac | |
3441 | build=$ac_cv_build | |
3442 | ac_save_IFS=$IFS; IFS='-' | |
3443 | set x $ac_cv_build | |
3444 | shift | |
3445 | build_cpu=$1 | |
3446 | build_vendor=$2 | |
3447 | shift; shift | |
3448 | # Remember, the first character of IFS is used to create $*, | |
3449 | # except with old shells: | |
3450 | build_os=$* | |
3451 | IFS=$ac_save_IFS | |
3452 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3453 | ||
3454 | ||
3455 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
3456 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
3457 | if test "${ac_cv_host+set}" = set; then | |
3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3459 | else | |
3460 | if test "x$host_alias" = x; then | |
3461 | ac_cv_host=$ac_cv_build | |
3462 | else | |
3463 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3464 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
3465 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
3466 | { (exit 1); exit 1; }; } | |
3467 | fi | |
3468 | ||
3469 | fi | |
3470 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3471 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
3472 | case $ac_cv_host in | |
3473 | *-*-*) ;; | |
3474 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3475 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
3476 | { (exit 1); exit 1; }; };; | |
3477 | esac | |
3478 | host=$ac_cv_host | |
3479 | ac_save_IFS=$IFS; IFS='-' | |
3480 | set x $ac_cv_host | |
3481 | shift | |
3482 | host_cpu=$1 | |
3483 | host_vendor=$2 | |
3484 | shift; shift | |
3485 | # Remember, the first character of IFS is used to create $*, | |
3486 | # except with old shells: | |
3487 | host_os=$* | |
3488 | IFS=$ac_save_IFS | |
3489 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3490 | ||
3491 | ||
bf042c35 | 3492 | |
3493 | ||
3494 | ||
3495 | ||
3496 | ||
3497 | # Check whether --enable-portable-binary was given. | |
3498 | if test "${enable_portable_binary+set}" = set; then | |
3499 | enableval=$enable_portable_binary; acx_maxopt_portable=$withval | |
3500 | else | |
3501 | acx_maxopt_portable=no | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | # Try to determine "good" native compiler flags if none specified via CFLAGS | |
3506 | if test "$ac_test_CFLAGS" != "set"; then | |
3507 | CFLAGS="" | |
3508 | case $ax_cv_c_compiler_vendor in | |
3509 | dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" | |
3510 | if test "x$acx_maxopt_portable" = xno; then | |
3511 | CFLAGS="$CFLAGS -arch host" | |
3512 | fi;; | |
3513 | ||
3514 | sun) CFLAGS="-native -fast -xO5 -dalign" | |
3515 | if test "x$acx_maxopt_portable" = xyes; then | |
3516 | CFLAGS="$CFLAGS -xarch=generic" | |
3517 | fi;; | |
3518 | ||
3519 | hp) CFLAGS="+Oall +Optrs_ansi +DSnative" | |
3520 | if test "x$acx_maxopt_portable" = xyes; then | |
3521 | CFLAGS="$CFLAGS +DAportable" | |
3522 | fi;; | |
3523 | ||
3524 | ibm) if test "x$acx_maxopt_portable" = xno; then | |
3525 | xlc_opt="-qarch=auto -qtune=auto" | |
3526 | else | |
3527 | xlc_opt="-qtune=auto" | |
3528 | fi | |
3529 | { echo "$as_me:$LINENO: checking whether C compiler accepts $xlc_opt" >&5 | |
3530 | echo $ECHO_N "checking whether C compiler accepts $xlc_opt... $ECHO_C" >&6; } | |
3531 | ax_save_FLAGS=$CFLAGS | |
3532 | CFLAGS="$xlc_opt" | |
3533 | cat >conftest.$ac_ext <<_ACEOF | |
3534 | /* confdefs.h. */ | |
3535 | _ACEOF | |
3536 | cat confdefs.h >>conftest.$ac_ext | |
3537 | cat >>conftest.$ac_ext <<_ACEOF | |
3538 | /* end confdefs.h. */ | |
3539 | ||
3540 | int | |
3541 | main () | |
3542 | { | |
3543 | ||
3544 | ; | |
3545 | return 0; | |
3546 | } | |
3547 | _ACEOF | |
3548 | rm -f conftest.$ac_objext | |
3549 | if { (ac_try="$ac_compile" | |
3550 | case "(($ac_try" in | |
3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3552 | *) ac_try_echo=$ac_try;; | |
3553 | esac | |
3554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3555 | (eval "$ac_compile") 2>conftest.er1 | |
3556 | ac_status=$? | |
3557 | grep -v '^ *+' conftest.er1 >conftest.err | |
3558 | rm -f conftest.er1 | |
3559 | cat conftest.err >&5 | |
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3561 | (exit $ac_status); } && { | |
3562 | test -z "$ac_c_werror_flag" || | |
3563 | test ! -s conftest.err | |
3564 | } && test -s conftest.$ac_objext; then | |
3565 | eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes | |
3566 | else | |
3567 | echo "$as_me: failed program was:" >&5 | |
3568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3569 | ||
3570 | eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no | |
3571 | fi | |
3572 | ||
3573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3574 | CFLAGS=$ax_save_FLAGS | |
3575 | eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` | |
3576 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
3577 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
3578 | if test "x$ax_check_compiler_flags" = xyes; then | |
3579 | CFLAGS="-O3 -qansialias -w $xlc_opt" | |
3580 | else | |
3581 | CFLAGS="-O3 -qansialias -w" | |
3582 | echo "******************************************************" | |
3583 | echo "* You seem to have the IBM C compiler. It is *" | |
3584 | echo "* recommended for best performance that you use: *" | |
3585 | echo "* *" | |
3586 | echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" | |
3587 | echo "* ^^^ ^^^ *" | |
3588 | echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" | |
3589 | echo "* CPU you have. (Set the CFLAGS environment var. *" | |
3590 | echo "* and re-run configure.) For more info, man cc. *" | |
3591 | echo "******************************************************" | |
3592 | fi | |
3593 | ||
3594 | ;; | |
3595 | ||
3596 | intel) CFLAGS="-O3 -ansi_alias" | |
3597 | if test "x$acx_maxopt_portable" = xno; then | |
3598 | icc_archflag=unknown | |
3599 | icc_flags="" | |
3600 | case $host_cpu in | |
3601 | i686*|x86_64*) | |
3602 | # icc accepts gcc assembly syntax, so these should work: | |
3603 | ||
3604 | ac_ext=c | |
3605 | ac_cpp='$CPP $CPPFLAGS' | |
3606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3609 | ||
3610 | { echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5 | |
3611 | echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; } | |
3612 | if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then | |
3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3614 | else | |
3615 | if test "$cross_compiling" = yes; then | |
3616 | ax_cv_gcc_x86_cpuid_0=unknown | |
3617 | else | |
3618 | cat >conftest.$ac_ext <<_ACEOF | |
3619 | /* confdefs.h. */ | |
3620 | _ACEOF | |
3621 | cat confdefs.h >>conftest.$ac_ext | |
3622 | cat >>conftest.$ac_ext <<_ACEOF | |
3623 | /* end confdefs.h. */ | |
3624 | #include <stdio.h> | |
3625 | int | |
3626 | main () | |
3627 | { | |
3628 | ||
3629 | int op = 0, eax, ebx, ecx, edx; | |
3630 | FILE *f; | |
3631 | __asm__("cpuid" | |
3632 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) | |
3633 | : "a" (op)); | |
3634 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; | |
3635 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); | |
3636 | fclose(f); | |
3637 | return 0; | |
3638 | ||
3639 | ; | |
3640 | return 0; | |
3641 | } | |
3642 | _ACEOF | |
3643 | rm -f conftest$ac_exeext | |
3644 | if { (ac_try="$ac_link" | |
3645 | case "(($ac_try" in | |
3646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3647 | *) ac_try_echo=$ac_try;; | |
3648 | esac | |
3649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3650 | (eval "$ac_link") 2>&5 | |
3651 | ac_status=$? | |
3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3654 | { (case "(($ac_try" in | |
3655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3656 | *) ac_try_echo=$ac_try;; | |
3657 | esac | |
3658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3659 | (eval "$ac_try") 2>&5 | |
3660 | ac_status=$? | |
3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3662 | (exit $ac_status); }; }; then | |
3663 | ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid | |
3664 | else | |
3665 | echo "$as_me: program exited with status $ac_status" >&5 | |
3666 | echo "$as_me: failed program was:" >&5 | |
3667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3668 | ||
3669 | ( exit $ac_status ) | |
3670 | ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid | |
3671 | fi | |
3672 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3673 | fi | |
3674 | ||
3675 | ||
3676 | fi | |
3677 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5 | |
3678 | echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; } | |
3679 | ac_ext=c | |
3680 | ac_cpp='$CPP $CPPFLAGS' | |
3681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3684 | ||
3685 | ||
3686 | ||
3687 | ac_ext=c | |
3688 | ac_cpp='$CPP $CPPFLAGS' | |
3689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3692 | ||
3693 | { echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5 | |
3694 | echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; } | |
3695 | if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then | |
3696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3697 | else | |
3698 | if test "$cross_compiling" = yes; then | |
3699 | ax_cv_gcc_x86_cpuid_1=unknown | |
3700 | else | |
3701 | cat >conftest.$ac_ext <<_ACEOF | |
3702 | /* confdefs.h. */ | |
3703 | _ACEOF | |
3704 | cat confdefs.h >>conftest.$ac_ext | |
3705 | cat >>conftest.$ac_ext <<_ACEOF | |
3706 | /* end confdefs.h. */ | |
3707 | #include <stdio.h> | |
3708 | int | |
3709 | main () | |
3710 | { | |
3711 | ||
3712 | int op = 1, eax, ebx, ecx, edx; | |
3713 | FILE *f; | |
3714 | __asm__("cpuid" | |
3715 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) | |
3716 | : "a" (op)); | |
3717 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; | |
3718 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); | |
3719 | fclose(f); | |
3720 | return 0; | |
3721 | ||
3722 | ; | |
3723 | return 0; | |
3724 | } | |
3725 | _ACEOF | |
3726 | rm -f conftest$ac_exeext | |
3727 | if { (ac_try="$ac_link" | |
3728 | case "(($ac_try" in | |
3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3730 | *) ac_try_echo=$ac_try;; | |
3731 | esac | |
3732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3733 | (eval "$ac_link") 2>&5 | |
3734 | ac_status=$? | |
3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3736 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3737 | { (case "(($ac_try" in | |
3738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3739 | *) ac_try_echo=$ac_try;; | |
3740 | esac | |
3741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3742 | (eval "$ac_try") 2>&5 | |
3743 | ac_status=$? | |
3744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3745 | (exit $ac_status); }; }; then | |
3746 | ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid | |
3747 | else | |
3748 | echo "$as_me: program exited with status $ac_status" >&5 | |
3749 | echo "$as_me: failed program was:" >&5 | |
3750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3751 | ||
3752 | ( exit $ac_status ) | |
3753 | ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid | |
3754 | fi | |
3755 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3756 | fi | |
3757 | ||
3758 | ||
3759 | fi | |
3760 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5 | |
3761 | echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; } | |
3762 | ac_ext=c | |
3763 | ac_cpp='$CPP $CPPFLAGS' | |
3764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3767 | ||
3768 | ||
3769 | case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG | |
3770 | *:756e6547:*:*) # Intel | |
3771 | case $ax_cv_gcc_x86_cpuid_1 in | |
3772 | *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; | |
3773 | *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; | |
3774 | *f??:*:*:*) icc_flags="-xN -xW -xK";; | |
3775 | esac ;; | |
3776 | esac ;; | |
3777 | esac | |
3778 | if test "x$icc_flags" != x; then | |
3779 | for flag in $icc_flags; do | |
3780 | { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5 | |
3781 | echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; } | |
3782 | ax_save_FLAGS=$CFLAGS | |
3783 | CFLAGS="$flag" | |
3784 | cat >conftest.$ac_ext <<_ACEOF | |
3785 | /* confdefs.h. */ | |
3786 | _ACEOF | |
3787 | cat confdefs.h >>conftest.$ac_ext | |
3788 | cat >>conftest.$ac_ext <<_ACEOF | |
3789 | /* end confdefs.h. */ | |
3790 | ||
3791 | int | |
3792 | main () | |
3793 | { | |
3794 | ||
3795 | ; | |
3796 | return 0; | |
3797 | } | |
3798 | _ACEOF | |
3799 | rm -f conftest.$ac_objext | |
3800 | if { (ac_try="$ac_compile" | |
3801 | case "(($ac_try" in | |
3802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3803 | *) ac_try_echo=$ac_try;; | |
3804 | esac | |
3805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3806 | (eval "$ac_compile") 2>conftest.er1 | |
3807 | ac_status=$? | |
3808 | grep -v '^ *+' conftest.er1 >conftest.err | |
3809 | rm -f conftest.er1 | |
3810 | cat conftest.err >&5 | |
3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3812 | (exit $ac_status); } && { | |
3813 | test -z "$ac_c_werror_flag" || | |
3814 | test ! -s conftest.err | |
3815 | } && test -s conftest.$ac_objext; then | |
3816 | eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes | |
3817 | else | |
3818 | echo "$as_me: failed program was:" >&5 | |
3819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3820 | ||
3821 | eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no | |
3822 | fi | |
3823 | ||
3824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3825 | CFLAGS=$ax_save_FLAGS | |
3826 | eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh` | |
3827 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
3828 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
3829 | if test "x$ax_check_compiler_flags" = xyes; then | |
3830 | icc_archflag=$flag; break | |
3831 | else | |
3832 | : | |
3833 | fi | |
3834 | ||
3835 | done | |
3836 | fi | |
3837 | { echo "$as_me:$LINENO: checking for icc architecture flag" >&5 | |
3838 | echo $ECHO_N "checking for icc architecture flag... $ECHO_C" >&6; } | |
3839 | { echo "$as_me:$LINENO: result: $icc_archflag" >&5 | |
3840 | echo "${ECHO_T}$icc_archflag" >&6; } | |
3841 | if test "x$icc_archflag" != xunknown; then | |
3842 | CFLAGS="$CFLAGS $icc_archflag" | |
3843 | fi | |
3844 | fi | |
3845 | ;; | |
3846 | ||
3847 | gnu) | |
3848 | # adding an exception for debugging turned on... | |
11b73fef | 3849 | if test "x$DEBUG" = xyes; then |
bf042c35 | 3850 | CFLAGS="-g -O0" |
11b73fef | 3851 | else |
bf042c35 | 3852 | CFLAGS="-g -O3 -fomit-frame-pointer" |
3853 | fi | |
3854 | ||
3855 | # -malign-double for x86 systems | |
3856 | { echo "$as_me:$LINENO: checking whether C compiler accepts -malign-double" >&5 | |
3857 | echo $ECHO_N "checking whether C compiler accepts -malign-double... $ECHO_C" >&6; } | |
3858 | if test "${ax_cv_c_flags__malign_double+set}" = set; then | |
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3860 | else | |
3861 | ||
3862 | ax_save_FLAGS=$CFLAGS | |
3863 | CFLAGS="-malign-double" | |
3864 | cat >conftest.$ac_ext <<_ACEOF | |
3865 | /* confdefs.h. */ | |
3866 | _ACEOF | |
3867 | cat confdefs.h >>conftest.$ac_ext | |
3868 | cat >>conftest.$ac_ext <<_ACEOF | |
3869 | /* end confdefs.h. */ | |
3870 | ||
3871 | int | |
3872 | main () | |
3873 | { | |
3874 | ||
3875 | ; | |
3876 | return 0; | |
3877 | } | |
3878 | _ACEOF | |
3879 | rm -f conftest.$ac_objext | |
3880 | if { (ac_try="$ac_compile" | |
3881 | case "(($ac_try" in | |
3882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3883 | *) ac_try_echo=$ac_try;; | |
3884 | esac | |
3885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3886 | (eval "$ac_compile") 2>conftest.er1 | |
3887 | ac_status=$? | |
3888 | grep -v '^ *+' conftest.er1 >conftest.err | |
3889 | rm -f conftest.er1 | |
3890 | cat conftest.err >&5 | |
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3892 | (exit $ac_status); } && { | |
3893 | test -z "$ac_c_werror_flag" || | |
3894 | test ! -s conftest.err | |
3895 | } && test -s conftest.$ac_objext; then | |
3896 | ax_cv_c_flags__malign_double=yes | |
3897 | else | |
3898 | echo "$as_me: failed program was:" >&5 | |
3899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3900 | ||
3901 | ax_cv_c_flags__malign_double=no | |
3902 | fi | |
3903 | ||
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3905 | CFLAGS=$ax_save_FLAGS | |
3906 | fi | |
3907 | ||
3908 | eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
3909 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
3910 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
3911 | if test "x$ax_check_compiler_flags" = xyes; then | |
3912 | CFLAGS="$CFLAGS -malign-double" | |
3913 | else | |
3914 | : | |
3915 | fi | |
3916 | ||
3917 | ||
3918 | # -fstrict-aliasing for gcc-2.95+ | |
3919 | { echo "$as_me:$LINENO: checking whether C compiler accepts -fstrict-aliasing" >&5 | |
3920 | echo $ECHO_N "checking whether C compiler accepts -fstrict-aliasing... $ECHO_C" >&6; } | |
3921 | if test "${ax_cv_c_flags__fstrict_aliasing+set}" = set; then | |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3923 | else | |
3924 | ||
3925 | ax_save_FLAGS=$CFLAGS | |
3926 | CFLAGS="-fstrict-aliasing" | |
3927 | cat >conftest.$ac_ext <<_ACEOF | |
3928 | /* confdefs.h. */ | |
3929 | _ACEOF | |
3930 | cat confdefs.h >>conftest.$ac_ext | |
3931 | cat >>conftest.$ac_ext <<_ACEOF | |
3932 | /* end confdefs.h. */ | |
3933 | ||
3934 | int | |
3935 | main () | |
3936 | { | |
3937 | ||
3938 | ; | |
3939 | return 0; | |
3940 | } | |
3941 | _ACEOF | |
3942 | rm -f conftest.$ac_objext | |
3943 | if { (ac_try="$ac_compile" | |
3944 | case "(($ac_try" in | |
3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3946 | *) ac_try_echo=$ac_try;; | |
3947 | esac | |
3948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3949 | (eval "$ac_compile") 2>conftest.er1 | |
3950 | ac_status=$? | |
3951 | grep -v '^ *+' conftest.er1 >conftest.err | |
3952 | rm -f conftest.er1 | |
3953 | cat conftest.err >&5 | |
3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3955 | (exit $ac_status); } && { | |
3956 | test -z "$ac_c_werror_flag" || | |
3957 | test ! -s conftest.err | |
3958 | } && test -s conftest.$ac_objext; then | |
3959 | ax_cv_c_flags__fstrict_aliasing=yes | |
3960 | else | |
3961 | echo "$as_me: failed program was:" >&5 | |
3962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3963 | ||
3964 | ax_cv_c_flags__fstrict_aliasing=no | |
3965 | fi | |
3966 | ||
3967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3968 | CFLAGS=$ax_save_FLAGS | |
3969 | fi | |
3970 | ||
3971 | eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing | |
3972 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
3973 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
3974 | if test "x$ax_check_compiler_flags" = xyes; then | |
3975 | CFLAGS="$CFLAGS -fstrict-aliasing" | |
3976 | else | |
3977 | : | |
3978 | fi | |
3979 | ||
3980 | ||
3981 | # note that we enable "unsafe" fp optimization with other compilers, too | |
3982 | { echo "$as_me:$LINENO: checking whether C compiler accepts -ffast-math" >&5 | |
3983 | echo $ECHO_N "checking whether C compiler accepts -ffast-math... $ECHO_C" >&6; } | |
3984 | if test "${ax_cv_c_flags__ffast_math+set}" = set; then | |
3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3986 | else | |
3987 | ||
3988 | ax_save_FLAGS=$CFLAGS | |
3989 | CFLAGS="-ffast-math" | |
3990 | cat >conftest.$ac_ext <<_ACEOF | |
3991 | /* confdefs.h. */ | |
3992 | _ACEOF | |
3993 | cat confdefs.h >>conftest.$ac_ext | |
3994 | cat >>conftest.$ac_ext <<_ACEOF | |
3995 | /* end confdefs.h. */ | |
3996 | ||
3997 | int | |
3998 | main () | |
3999 | { | |
4000 | ||
4001 | ; | |
4002 | return 0; | |
4003 | } | |
4004 | _ACEOF | |
4005 | rm -f conftest.$ac_objext | |
4006 | if { (ac_try="$ac_compile" | |
4007 | case "(($ac_try" in | |
4008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4009 | *) ac_try_echo=$ac_try;; | |
4010 | esac | |
4011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4012 | (eval "$ac_compile") 2>conftest.er1 | |
4013 | ac_status=$? | |
4014 | grep -v '^ *+' conftest.er1 >conftest.err | |
4015 | rm -f conftest.er1 | |
4016 | cat conftest.err >&5 | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); } && { | |
4019 | test -z "$ac_c_werror_flag" || | |
4020 | test ! -s conftest.err | |
4021 | } && test -s conftest.$ac_objext; then | |
4022 | ax_cv_c_flags__ffast_math=yes | |
4023 | else | |
4024 | echo "$as_me: failed program was:" >&5 | |
4025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4026 | ||
4027 | ax_cv_c_flags__ffast_math=no | |
4028 | fi | |
4029 | ||
4030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4031 | CFLAGS=$ax_save_FLAGS | |
4032 | fi | |
4033 | ||
4034 | eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math | |
4035 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
4036 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
4037 | if test "x$ax_check_compiler_flags" = xyes; then | |
4038 | CFLAGS="$CFLAGS -ffast-math" | |
4039 | else | |
4040 | : | |
4041 | fi | |
4042 | ||
4043 | ||
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | # Check whether --with-gcc-arch was given. | |
4049 | if test "${with_gcc_arch+set}" = set; then | |
4050 | withval=$with_gcc_arch; ax_gcc_arch=$withval | |
4051 | else | |
4052 | ax_gcc_arch=yes | |
4053 | fi | |
4054 | ||
4055 | ||
4056 | { echo "$as_me:$LINENO: checking for gcc architecture flag" >&5 | |
4057 | echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; } | |
4058 | { echo "$as_me:$LINENO: result: " >&5 | |
4059 | echo "${ECHO_T}" >&6; } | |
4060 | if test "${ax_cv_gcc_archflag+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | ||
4064 | ax_cv_gcc_archflag="unknown" | |
4065 | ||
4066 | if test "$GCC" = yes; then | |
4067 | ||
4068 | if test "x$ax_gcc_arch" = xyes; then | |
4069 | ax_gcc_arch="" | |
4070 | if test "$cross_compiling" = no; then | |
4071 | case $host_cpu in | |
4072 | i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones | |
4073 | ||
4074 | ac_ext=c | |
4075 | ac_cpp='$CPP $CPPFLAGS' | |
4076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4079 | ||
4080 | { echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5 | |
4081 | echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; } | |
4082 | if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then | |
4083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4084 | else | |
4085 | if test "$cross_compiling" = yes; then | |
4086 | ax_cv_gcc_x86_cpuid_0=unknown | |
4087 | else | |
4088 | cat >conftest.$ac_ext <<_ACEOF | |
4089 | /* confdefs.h. */ | |
4090 | _ACEOF | |
4091 | cat confdefs.h >>conftest.$ac_ext | |
4092 | cat >>conftest.$ac_ext <<_ACEOF | |
4093 | /* end confdefs.h. */ | |
4094 | #include <stdio.h> | |
4095 | int | |
4096 | main () | |
4097 | { | |
4098 | ||
4099 | int op = 0, eax, ebx, ecx, edx; | |
4100 | FILE *f; | |
4101 | __asm__("cpuid" | |
4102 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) | |
4103 | : "a" (op)); | |
4104 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; | |
4105 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); | |
4106 | fclose(f); | |
4107 | return 0; | |
4108 | ||
4109 | ; | |
4110 | return 0; | |
4111 | } | |
4112 | _ACEOF | |
4113 | rm -f conftest$ac_exeext | |
4114 | if { (ac_try="$ac_link" | |
4115 | case "(($ac_try" in | |
4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 | *) ac_try_echo=$ac_try;; | |
4118 | esac | |
4119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4120 | (eval "$ac_link") 2>&5 | |
4121 | ac_status=$? | |
4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4124 | { (case "(($ac_try" in | |
4125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4126 | *) ac_try_echo=$ac_try;; | |
4127 | esac | |
4128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4129 | (eval "$ac_try") 2>&5 | |
4130 | ac_status=$? | |
4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4132 | (exit $ac_status); }; }; then | |
4133 | ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid | |
4134 | else | |
4135 | echo "$as_me: program exited with status $ac_status" >&5 | |
4136 | echo "$as_me: failed program was:" >&5 | |
4137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4138 | ||
4139 | ( exit $ac_status ) | |
4140 | ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid | |
4141 | fi | |
4142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4143 | fi | |
4144 | ||
4145 | ||
4146 | fi | |
4147 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5 | |
4148 | echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; } | |
4149 | ac_ext=c | |
4150 | ac_cpp='$CPP $CPPFLAGS' | |
4151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4154 | ||
4155 | ||
4156 | ||
4157 | ac_ext=c | |
4158 | ac_cpp='$CPP $CPPFLAGS' | |
4159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4162 | ||
4163 | { echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5 | |
4164 | echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; } | |
4165 | if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then | |
4166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4167 | else | |
4168 | if test "$cross_compiling" = yes; then | |
4169 | ax_cv_gcc_x86_cpuid_1=unknown | |
4170 | else | |
4171 | cat >conftest.$ac_ext <<_ACEOF | |
4172 | /* confdefs.h. */ | |
4173 | _ACEOF | |
4174 | cat confdefs.h >>conftest.$ac_ext | |
4175 | cat >>conftest.$ac_ext <<_ACEOF | |
4176 | /* end confdefs.h. */ | |
4177 | #include <stdio.h> | |
4178 | int | |
4179 | main () | |
4180 | { | |
4181 | ||
4182 | int op = 1, eax, ebx, ecx, edx; | |
4183 | FILE *f; | |
4184 | __asm__("cpuid" | |
4185 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) | |
4186 | : "a" (op)); | |
4187 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; | |
4188 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); | |
4189 | fclose(f); | |
4190 | return 0; | |
4191 | ||
4192 | ; | |
4193 | return 0; | |
4194 | } | |
4195 | _ACEOF | |
4196 | rm -f conftest$ac_exeext | |
4197 | if { (ac_try="$ac_link" | |
4198 | case "(($ac_try" in | |
4199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4200 | *) ac_try_echo=$ac_try;; | |
4201 | esac | |
4202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4203 | (eval "$ac_link") 2>&5 | |
4204 | ac_status=$? | |
4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4206 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4207 | { (case "(($ac_try" in | |
4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4209 | *) ac_try_echo=$ac_try;; | |
4210 | esac | |
4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4212 | (eval "$ac_try") 2>&5 | |
4213 | ac_status=$? | |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 | (exit $ac_status); }; }; then | |
4216 | ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid | |
4217 | else | |
4218 | echo "$as_me: program exited with status $ac_status" >&5 | |
4219 | echo "$as_me: failed program was:" >&5 | |
4220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4221 | ||
4222 | ( exit $ac_status ) | |
4223 | ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid | |
4224 | fi | |
4225 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4226 | fi | |
4227 | ||
4228 | ||
4229 | fi | |
4230 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5 | |
4231 | echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; } | |
4232 | ac_ext=c | |
4233 | ac_cpp='$CPP $CPPFLAGS' | |
4234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4237 | ||
4238 | ||
4239 | case $ax_cv_gcc_x86_cpuid_0 in | |
4240 | *:756e6547:*:*) # Intel | |
4241 | case $ax_cv_gcc_x86_cpuid_1 in | |
4242 | *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; | |
4243 | *5??:*:*:*) ax_gcc_arch=pentium ;; | |
4244 | *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; | |
4245 | *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; | |
4246 | *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; | |
4247 | *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; | |
4248 | *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; | |
4249 | *6??:*:*:*) ax_gcc_arch=pentiumpro ;; | |
4250 | *f3[347]:*:*:*|*f41347:*:*:*) | |
4251 | case $host_cpu in | |
4252 | x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; | |
4253 | *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; | |
4254 | esac ;; | |
4255 | *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; | |
4256 | esac ;; | |
4257 | *:68747541:*:*) # AMD | |
4258 | case $ax_cv_gcc_x86_cpuid_1 in | |
4259 | *5[67]?:*:*:*) ax_gcc_arch=k6 ;; | |
4260 | *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; | |
4261 | *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; | |
4262 | *60?:*:*:*) ax_gcc_arch=k7 ;; | |
4263 | *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; | |
4264 | *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; | |
4265 | *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; | |
4266 | *6[68a]?:*:*:*) | |
4267 | ||
4268 | ac_ext=c | |
4269 | ac_cpp='$CPP $CPPFLAGS' | |
4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4273 | ||
4274 | { echo "$as_me:$LINENO: checking for x86 cpuid 0x80000006 output" >&5 | |
4275 | echo $ECHO_N "checking for x86 cpuid 0x80000006 output... $ECHO_C" >&6; } | |
4276 | if test "${ax_cv_gcc_x86_cpuid_0x80000006+set}" = set; then | |
4277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4278 | else | |
4279 | if test "$cross_compiling" = yes; then | |
4280 | ax_cv_gcc_x86_cpuid_0x80000006=unknown | |
4281 | else | |
4282 | cat >conftest.$ac_ext <<_ACEOF | |
4283 | /* confdefs.h. */ | |
4284 | _ACEOF | |
4285 | cat confdefs.h >>conftest.$ac_ext | |
4286 | cat >>conftest.$ac_ext <<_ACEOF | |
4287 | /* end confdefs.h. */ | |
4288 | #include <stdio.h> | |
4289 | int | |
4290 | main () | |
4291 | { | |
4292 | ||
4293 | int op = 0x80000006, eax, ebx, ecx, edx; | |
4294 | FILE *f; | |
4295 | __asm__("cpuid" | |
4296 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) | |
4297 | : "a" (op)); | |
4298 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; | |
4299 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); | |
4300 | fclose(f); | |
4301 | return 0; | |
4302 | ||
4303 | ; | |
4304 | return 0; | |
4305 | } | |
4306 | _ACEOF | |
4307 | rm -f conftest$ac_exeext | |
4308 | if { (ac_try="$ac_link" | |
4309 | case "(($ac_try" in | |
4310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4311 | *) ac_try_echo=$ac_try;; | |
4312 | esac | |
4313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4314 | (eval "$ac_link") 2>&5 | |
4315 | ac_status=$? | |
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4318 | { (case "(($ac_try" in | |
4319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4320 | *) ac_try_echo=$ac_try;; | |
4321 | esac | |
4322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4323 | (eval "$ac_try") 2>&5 | |
4324 | ac_status=$? | |
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4326 | (exit $ac_status); }; }; then | |
4327 | ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid | |
4328 | else | |
4329 | echo "$as_me: program exited with status $ac_status" >&5 | |
4330 | echo "$as_me: failed program was:" >&5 | |
4331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4332 | ||
4333 | ( exit $ac_status ) | |
4334 | ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid | |
4335 | fi | |
4336 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4337 | fi | |
4338 | ||
4339 | ||
4340 | fi | |
4341 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 | |
4342 | echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } | |
4343 | ac_ext=c | |
4344 | ac_cpp='$CPP $CPPFLAGS' | |
4345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4348 | ||
4349 | # L2 cache size | |
4350 | case $ax_cv_gcc_x86_cpuid_0x80000006 in | |
4351 | *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 | |
4352 | ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; | |
4353 | *) ax_gcc_arch="athlon-4 athlon k7" ;; | |
4354 | esac ;; | |
4355 | *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; | |
4356 | *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; | |
4357 | *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; | |
4358 | *f??:*:*:*) ax_gcc_arch="k8" ;; | |
4359 | esac ;; | |
4360 | *:746e6543:*:*) # IDT | |
4361 | case $ax_cv_gcc_x86_cpuid_1 in | |
4362 | *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; | |
4363 | *58?:*:*:*) ax_gcc_arch=winchip2 ;; | |
4364 | *6[78]?:*:*:*) ax_gcc_arch=c3 ;; | |
4365 | *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; | |
4366 | esac ;; | |
4367 | esac | |
4368 | if test x"$ax_gcc_arch" = x; then # fallback | |
4369 | case $host_cpu in | |
4370 | i586*) ax_gcc_arch=pentium ;; | |
4371 | i686*) ax_gcc_arch=pentiumpro ;; | |
4372 | esac | |
4373 | fi | |
4374 | ;; | |
4375 | ||
4376 | sparc*) | |
4377 | # Extract the first word of "prtdiag", so it can be a program name with args. | |
4378 | set dummy prtdiag; ac_word=$2 | |
4379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4381 | if test "${ac_cv_path_PRTDIAG+set}" = set; then | |
4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4383 | else | |
4384 | case $PRTDIAG in | |
4385 | [\\/]* | ?:[\\/]*) | |
4386 | ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. | |
4387 | ;; | |
4388 | *) | |
4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4390 | as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" | |
4391 | for as_dir in $as_dummy | |
4392 | do | |
4393 | IFS=$as_save_IFS | |
4394 | test -z "$as_dir" && as_dir=. | |
4395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4397 | ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" | |
4398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4399 | break 2 | |
4400 | fi | |
4401 | done | |
4402 | done | |
4403 | IFS=$as_save_IFS | |
4404 | ||
4405 | test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" | |
4406 | ;; | |
4407 | esac | |
4408 | fi | |
4409 | PRTDIAG=$ac_cv_path_PRTDIAG | |
4410 | if test -n "$PRTDIAG"; then | |
4411 | { echo "$as_me:$LINENO: result: $PRTDIAG" >&5 | |
4412 | echo "${ECHO_T}$PRTDIAG" >&6; } | |
4413 | else | |
4414 | { echo "$as_me:$LINENO: result: no" >&5 | |
4415 | echo "${ECHO_T}no" >&6; } | |
4416 | fi | |
4417 | ||
4418 | ||
4419 | cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` | |
4420 | cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` | |
4421 | case $cputype in | |
4422 | *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; | |
4423 | *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; | |
4424 | *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; | |
4425 | *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; | |
4426 | *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; | |
4427 | *cypress*) ax_gcc_arch=cypress ;; | |
4428 | esac ;; | |
4429 | ||
4430 | alphaev5) ax_gcc_arch=ev5 ;; | |
4431 | alphaev56) ax_gcc_arch=ev56 ;; | |
4432 | alphapca56) ax_gcc_arch="pca56 ev56" ;; | |
4433 | alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; | |
4434 | alphaev6) ax_gcc_arch=ev6 ;; | |
4435 | alphaev67) ax_gcc_arch=ev67 ;; | |
4436 | alphaev68) ax_gcc_arch="ev68 ev67" ;; | |
4437 | alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; | |
4438 | alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; | |
4439 | alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; | |
4440 | ||
4441 | powerpc*) | |
4442 | cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` | |
4443 | cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` | |
4444 | case $cputype in | |
4445 | *750*) ax_gcc_arch="750 G3" ;; | |
4446 | *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; | |
4447 | *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; | |
4448 | *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; | |
4449 | *970*) ax_gcc_arch="970 G5 power4";; | |
4450 | *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; | |
4451 | *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; | |
4452 | 603ev|8240) ax_gcc_arch="$cputype 603e 603";; | |
4453 | *) ax_gcc_arch=$cputype ;; | |
4454 | esac | |
4455 | ax_gcc_arch="$ax_gcc_arch powerpc" | |
4456 | ;; | |
4457 | esac | |
4458 | fi # not cross-compiling | |
4459 | fi # guess arch | |
4460 | ||
4461 | if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then | |
4462 | for arch in $ax_gcc_arch; do | |
4463 | if test "x$acx_maxopt_portable" = xyes; then # if we require portable code | |
4464 | flags="-mtune=$arch" | |
4465 | # -mcpu=$arch and m$arch generate nonportable code on every arch except | |
4466 | # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. | |
4467 | case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac | |
4468 | else | |
4469 | flags="-march=$arch -mcpu=$arch -m$arch" | |
4470 | fi | |
4471 | for flag in $flags; do | |
4472 | { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5 | |
4473 | echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; } | |
4474 | ax_save_FLAGS=$CFLAGS | |
4475 | CFLAGS="$flag" | |
4476 | cat >conftest.$ac_ext <<_ACEOF | |
4477 | /* confdefs.h. */ | |
4478 | _ACEOF | |
4479 | cat confdefs.h >>conftest.$ac_ext | |
4480 | cat >>conftest.$ac_ext <<_ACEOF | |
4481 | /* end confdefs.h. */ | |
4482 | ||
4483 | int | |
4484 | main () | |
4485 | { | |
4486 | ||
4487 | ; | |
4488 | return 0; | |
4489 | } | |
4490 | _ACEOF | |
4491 | rm -f conftest.$ac_objext | |
4492 | if { (ac_try="$ac_compile" | |
4493 | case "(($ac_try" in | |
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4495 | *) ac_try_echo=$ac_try;; | |
4496 | esac | |
4497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4498 | (eval "$ac_compile") 2>conftest.er1 | |
4499 | ac_status=$? | |
4500 | grep -v '^ *+' conftest.er1 >conftest.err | |
4501 | rm -f conftest.er1 | |
4502 | cat conftest.err >&5 | |
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4504 | (exit $ac_status); } && { | |
4505 | test -z "$ac_c_werror_flag" || | |
4506 | test ! -s conftest.err | |
4507 | } && test -s conftest.$ac_objext; then | |
4508 | eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes | |
4509 | else | |
4510 | echo "$as_me: failed program was:" >&5 | |
4511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4512 | ||
4513 | eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no | |
4514 | fi | |
4515 | ||
4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4517 | CFLAGS=$ax_save_FLAGS | |
4518 | eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh` | |
4519 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
4520 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
4521 | if test "x$ax_check_compiler_flags" = xyes; then | |
4522 | ax_cv_gcc_archflag=$flag; break | |
4523 | else | |
4524 | : | |
4525 | fi | |
4526 | ||
4527 | done | |
4528 | test "x$ax_cv_gcc_archflag" = xunknown || break | |
4529 | done | |
4530 | fi | |
4531 | ||
4532 | fi # $GCC=yes | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | { echo "$as_me:$LINENO: checking for gcc architecture flag" >&5 | |
4537 | echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; } | |
4538 | { echo "$as_me:$LINENO: result: $ax_cv_gcc_archflag" >&5 | |
4539 | echo "${ECHO_T}$ax_cv_gcc_archflag" >&6; } | |
4540 | if test "x$ax_cv_gcc_archflag" = xunknown; then | |
4541 | : | |
4542 | else | |
4543 | CFLAGS="$CFLAGS $ax_cv_gcc_archflag" | |
4544 | fi | |
4545 | ||
4546 | ;; | |
4547 | esac | |
4548 | ||
4549 | if test -z "$CFLAGS"; then | |
4550 | echo "" | |
4551 | echo "********************************************************" | |
4552 | echo "* WARNING: Don't know the best CFLAGS for this system *" | |
4553 | echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
4554 | echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" | |
4555 | echo "********************************************************" | |
4556 | echo "" | |
4557 | CFLAGS="-O3" | |
4558 | fi | |
4559 | ||
4560 | { echo "$as_me:$LINENO: checking whether C compiler accepts $CFLAGS" >&5 | |
4561 | echo $ECHO_N "checking whether C compiler accepts $CFLAGS... $ECHO_C" >&6; } | |
4562 | ax_save_FLAGS=$CFLAGS | |
4563 | CFLAGS="$CFLAGS" | |
4564 | cat >conftest.$ac_ext <<_ACEOF | |
4565 | /* confdefs.h. */ | |
4566 | _ACEOF | |
4567 | cat confdefs.h >>conftest.$ac_ext | |
4568 | cat >>conftest.$ac_ext <<_ACEOF | |
4569 | /* end confdefs.h. */ | |
4570 | ||
4571 | int | |
4572 | main () | |
4573 | { | |
4574 | ||
4575 | ; | |
4576 | return 0; | |
4577 | } | |
4578 | _ACEOF | |
4579 | rm -f conftest.$ac_objext | |
4580 | if { (ac_try="$ac_compile" | |
4581 | case "(($ac_try" in | |
4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4583 | *) ac_try_echo=$ac_try;; | |
4584 | esac | |
4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4586 | (eval "$ac_compile") 2>conftest.er1 | |
4587 | ac_status=$? | |
4588 | grep -v '^ *+' conftest.er1 >conftest.err | |
4589 | rm -f conftest.er1 | |
4590 | cat conftest.err >&5 | |
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4592 | (exit $ac_status); } && { | |
4593 | test -z "$ac_c_werror_flag" || | |
4594 | test ! -s conftest.err | |
4595 | } && test -s conftest.$ac_objext; then | |
4596 | eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes | |
4597 | else | |
4598 | echo "$as_me: failed program was:" >&5 | |
4599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4600 | ||
4601 | eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no | |
4602 | fi | |
4603 | ||
4604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4605 | CFLAGS=$ax_save_FLAGS | |
4606 | eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` | |
4607 | { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 | |
4608 | echo "${ECHO_T}$ax_check_compiler_flags" >&6; } | |
4609 | if test "x$ax_check_compiler_flags" = xyes; then | |
4610 | : | |
4611 | else | |
4612 | ||
4613 | echo "" | |
4614 | echo "********************************************************" | |
4615 | echo "* WARNING: The guessed CFLAGS don't seem to work with *" | |
4616 | echo "* your compiler. *" | |
4617 | echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
4618 | echo "********************************************************" | |
4619 | echo "" | |
4620 | CFLAGS="" | |
4621 | ||
4622 | fi | |
4623 | ||
4624 | ||
4625 | fi | |
4626 | ||
11b73fef | 4627 | { echo "$as_me:$LINENO: checking CFLAGS for strict prototypes" >&5 |
4628 | echo $ECHO_N "checking CFLAGS for strict prototypes... $ECHO_C" >&6; } | |
4629 | if test "${ac_cv_cflags_strict_prototypes+set}" = set; then | |
bf042c35 | 4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4631 | else | |
11b73fef | 4632 | ac_cv_cflags_strict_prototypes="no, unknown" |
bf042c35 | 4633 | |
4634 | ac_ext=c | |
4635 | ac_cpp='$CPP $CPPFLAGS' | |
4636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4639 | ||
4640 | ac_save_CFLAGS="$CFLAGS" | |
11b73fef | 4641 | for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes" "-pedantic % -Wstrict-prototypes" "-pedantic % -Wmissing-prototypes" "-pedantic % -Werror-implicit-function-declaration" "-pedantic % -Wimplicit-function-declaration" # |
bf042c35 | 4642 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
4643 | cat >conftest.$ac_ext <<_ACEOF | |
4644 | /* confdefs.h. */ | |
4645 | _ACEOF | |
4646 | cat confdefs.h >>conftest.$ac_ext | |
4647 | cat >>conftest.$ac_ext <<_ACEOF | |
4648 | /* end confdefs.h. */ | |
4649 | ||
4650 | int | |
4651 | main () | |
4652 | { | |
4653 | return 0; | |
4654 | ; | |
4655 | return 0; | |
4656 | } | |
4657 | _ACEOF | |
4658 | rm -f conftest.$ac_objext | |
4659 | if { (ac_try="$ac_compile" | |
4660 | case "(($ac_try" in | |
4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4662 | *) ac_try_echo=$ac_try;; | |
4663 | esac | |
4664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4665 | (eval "$ac_compile") 2>conftest.er1 | |
4666 | ac_status=$? | |
4667 | grep -v '^ *+' conftest.er1 >conftest.err | |
4668 | rm -f conftest.er1 | |
4669 | cat conftest.err >&5 | |
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4671 | (exit $ac_status); } && { | |
4672 | test -z "$ac_c_werror_flag" || | |
4673 | test ! -s conftest.err | |
4674 | } && test -s conftest.$ac_objext; then | |
11b73fef | 4675 | ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
bf042c35 | 4676 | else |
4677 | echo "$as_me: failed program was:" >&5 | |
4678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4679 | ||
4680 | ||
4681 | fi | |
4682 | ||
4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4684 | done | |
11b73fef | 4685 | case ".$ac_cv_cflags_strict_prototypes" in |
4686 | .|.no|.no,*) ;; | |
4687 | *) # sanity check with signal() from sys/signal.h | |
4688 | cp config.log config.tmp | |
4689 | cat >conftest.$ac_ext <<_ACEOF | |
4690 | /* confdefs.h. */ | |
4691 | _ACEOF | |
4692 | cat confdefs.h >>conftest.$ac_ext | |
4693 | cat >>conftest.$ac_ext <<_ACEOF | |
4694 | /* end confdefs.h. */ | |
4695 | #include <signal.h> | |
4696 | int | |
4697 | main () | |
4698 | { | |
4699 | ||
4700 | if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1; | |
4701 | if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2; | |
4702 | ; | |
4703 | return 0; | |
4704 | } | |
4705 | _ACEOF | |
4706 | rm -f conftest.$ac_objext | |
4707 | if { (ac_try="$ac_compile" | |
4708 | case "(($ac_try" in | |
4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4710 | *) ac_try_echo=$ac_try;; | |
4711 | esac | |
4712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4713 | (eval "$ac_compile") 2>conftest.er1 | |
4714 | ac_status=$? | |
4715 | grep -v '^ *+' conftest.er1 >conftest.err | |
4716 | rm -f conftest.er1 | |
4717 | cat conftest.err >&5 | |
4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4719 | (exit $ac_status); } && { | |
4720 | test -z "$ac_c_werror_flag" || | |
4721 | test ! -s conftest.err | |
4722 | } && test -s conftest.$ac_objext; then | |
4723 | if test `diff config.log config.tmp | grep -i warning | wc -l` != 0 | |
4724 | then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1 | |
4725 | then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi | |
4726 | else | |
4727 | echo "$as_me: failed program was:" >&5 | |
4728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4729 | ||
4730 | ac_cv_cflags_strict_prototypes="no, suppressed, signal.h" | |
4731 | fi | |
4732 | ||
4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4734 | rm config.tmp | |
4735 | ;; | |
4736 | esac | |
bf042c35 | 4737 | CFLAGS="$ac_save_CFLAGS" |
4738 | ac_ext=c | |
4739 | ac_cpp='$CPP $CPPFLAGS' | |
4740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4743 | ||
4744 | ||
4745 | fi | |
11b73fef | 4746 | { echo "$as_me:$LINENO: result: $ac_cv_cflags_strict_prototypes" >&5 |
4747 | echo "${ECHO_T}$ac_cv_cflags_strict_prototypes" >&6; } | |
4748 | case ".$ac_cv_cflags_strict_prototypes" in | |
bf042c35 | 4749 | .ok|.ok,*) ;; |
4750 | .|.no|.no,*) | |
4751 | ;; | |
4752 | *) | |
11b73fef | 4753 | if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null |
4754 | then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes") >&5 | |
4755 | (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5 | |
bf042c35 | 4756 | ac_status=$? |
4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4758 | (exit $ac_status); } | |
11b73fef | 4759 | else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\"") >&5 |
4760 | (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5 | |
bf042c35 | 4761 | ac_status=$? |
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4763 | (exit $ac_status); } | |
11b73fef | 4764 | CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes" |
bf042c35 | 4765 | fi |
4766 | ;; | |
4767 | esac | |
4768 | ||
11b73fef | 4769 | { echo "$as_me:$LINENO: checking target system type" >&5 |
4770 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
4771 | if test "${ac_cv_target+set}" = set; then | |
bf042c35 | 4772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4773 | else | |
11b73fef | 4774 | if test "x$target_alias" = x; then |
4775 | ac_cv_target=$ac_cv_host | |
4776 | else | |
4777 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
4778 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
4779 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
4780 | { (exit 1); exit 1; }; } | |
4781 | fi | |
4782 | ||
4783 | fi | |
4784 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
4785 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
4786 | case $ac_cv_target in | |
4787 | *-*-*) ;; | |
4788 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
4789 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
4790 | { (exit 1); exit 1; }; };; | |
4791 | esac | |
4792 | target=$ac_cv_target | |
4793 | ac_save_IFS=$IFS; IFS='-' | |
4794 | set x $ac_cv_target | |
4795 | shift | |
4796 | target_cpu=$1 | |
4797 | target_vendor=$2 | |
4798 | shift; shift | |
4799 | # Remember, the first character of IFS is used to create $*, | |
4800 | # except with old shells: | |
4801 | target_os=$* | |
4802 | IFS=$ac_save_IFS | |
4803 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
4804 | ||
4805 | ||
4806 | # The aliases save the names the user supplied, while $host etc. | |
4807 | # will get canonicalized. | |
4808 | test -n "$target_alias" && | |
4809 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
4810 | NONENONEs,x,x, && | |
4811 | program_prefix=${target_alias}- | |
4812 | { echo "$as_me:$LINENO: checking CFLAGS for maximum ansi warnings" >&5 | |
4813 | echo $ECHO_N "checking CFLAGS for maximum ansi warnings... $ECHO_C" >&6; } | |
4814 | if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then | |
4815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4816 | else | |
4817 | ac_cv_cflags_warn_all_ansi="no, unknown" | |
bf042c35 | 4818 | |
4819 | ac_ext=c | |
4820 | ac_cpp='$CPP $CPPFLAGS' | |
4821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4824 | ||
4825 | ac_save_CFLAGS="$CFLAGS" | |
11b73fef | 4826 | # IRIX C compiler: |
4827 | # -use_readonly_const is the default for IRIX C, | |
4828 | # puts them into .rodata, but they are copied later. | |
4829 | # need to be "-G0 -rdatashared" for strictmode but | |
4830 | # I am not sure what effect that has really. - guidod | |
c1e4317a | 4831 | for ac_arg in "-pedantic % -Wall -pedantic" "-xstrconst % -v -Xc" "-std1 % -verbose -w0 -warnprotos -std1" " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" " % -ansiE -fullwarn" "+ESlit % +w1 -Aa" "-Xc % -pvctl,fullmsg -Xc" "-h conform % -h msglevel 2 -h conform" # |
bf042c35 | 4832 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
4833 | cat >conftest.$ac_ext <<_ACEOF | |
4834 | /* confdefs.h. */ | |
4835 | _ACEOF | |
4836 | cat confdefs.h >>conftest.$ac_ext | |
4837 | cat >>conftest.$ac_ext <<_ACEOF | |
4838 | /* end confdefs.h. */ | |
4839 | ||
4840 | int | |
4841 | main () | |
4842 | { | |
4843 | return 0; | |
4844 | ; | |
4845 | return 0; | |
4846 | } | |
4847 | _ACEOF | |
4848 | rm -f conftest.$ac_objext | |
4849 | if { (ac_try="$ac_compile" | |
4850 | case "(($ac_try" in | |
4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4852 | *) ac_try_echo=$ac_try;; | |
4853 | esac | |
4854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4855 | (eval "$ac_compile") 2>conftest.er1 | |
4856 | ac_status=$? | |
4857 | grep -v '^ *+' conftest.er1 >conftest.err | |
4858 | rm -f conftest.er1 | |
4859 | cat conftest.err >&5 | |
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4861 | (exit $ac_status); } && { | |
4862 | test -z "$ac_c_werror_flag" || | |
4863 | test ! -s conftest.err | |
4864 | } && test -s conftest.$ac_objext; then | |
11b73fef | 4865 | ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
bf042c35 | 4866 | else |
4867 | echo "$as_me: failed program was:" >&5 | |
4868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4869 | ||
4870 | ||
4871 | fi | |
4872 | ||
4873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4874 | done | |
bf042c35 | 4875 | CFLAGS="$ac_save_CFLAGS" |
4876 | ac_ext=c | |
4877 | ac_cpp='$CPP $CPPFLAGS' | |
4878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4881 | ||
4882 | ||
4883 | fi | |
11b73fef | 4884 | { echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5 |
4885 | echo "${ECHO_T}$ac_cv_cflags_warn_all_ansi" >&6; } | |
4886 | case ".$ac_cv_cflags_warn_all_ansi" in | |
bf042c35 | 4887 | .ok|.ok,*) ;; |
4888 | .|.no|.no,*) | |
4889 | ;; | |
4890 | *) | |
11b73fef | 4891 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null |
4892 | then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all_ansi") >&5 | |
4893 | (: CFLAGS does contain $ac_cv_cflags_warn_all_ansi) 2>&5 | |
bf042c35 | 4894 | ac_status=$? |
4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4896 | (exit $ac_status); } | |
11b73fef | 4897 | else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all_ansi\"") >&5 |
4898 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi") 2>&5 | |
bf042c35 | 4899 | ac_status=$? |
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4901 | (exit $ac_status); } | |
11b73fef | 4902 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi" |
bf042c35 | 4903 | fi |
4904 | ;; | |
4905 | esac | |
4906 | ||
4907 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
4908 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
4909 | if test "${ac_cv_search_strerror+set}" = set; then | |
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4911 | else | |
4912 | ac_func_search_save_LIBS=$LIBS | |
4913 | cat >conftest.$ac_ext <<_ACEOF | |
4914 | /* confdefs.h. */ | |
4915 | _ACEOF | |
4916 | cat confdefs.h >>conftest.$ac_ext | |
4917 | cat >>conftest.$ac_ext <<_ACEOF | |
4918 | /* end confdefs.h. */ | |
4919 | ||
4920 | /* Override any GCC internal prototype to avoid an error. | |
4921 | Use char because int might match the return type of a GCC | |
4922 | builtin and then its argument prototype would still apply. */ | |
4923 | #ifdef __cplusplus | |
4924 | extern "C" | |
4925 | #endif | |
4926 | char strerror (); | |
4927 | int | |
4928 | main () | |
4929 | { | |
4930 | return strerror (); | |
4931 | ; | |
4932 | return 0; | |
4933 | } | |
4934 | _ACEOF | |
4935 | for ac_lib in '' cposix; do | |
4936 | if test -z "$ac_lib"; then | |
4937 | ac_res="none required" | |
4938 | else | |
4939 | ac_res=-l$ac_lib | |
4940 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4941 | fi | |
4942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4943 | if { (ac_try="$ac_link" | |
4944 | case "(($ac_try" in | |
4945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4946 | *) ac_try_echo=$ac_try;; | |
4947 | esac | |
4948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4949 | (eval "$ac_link") 2>conftest.er1 | |
4950 | ac_status=$? | |
4951 | grep -v '^ *+' conftest.er1 >conftest.err | |
4952 | rm -f conftest.er1 | |
4953 | cat conftest.err >&5 | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); } && { | |
4956 | test -z "$ac_c_werror_flag" || | |
4957 | test ! -s conftest.err | |
4958 | } && test -s conftest$ac_exeext && | |
4959 | $as_test_x conftest$ac_exeext; then | |
4960 | ac_cv_search_strerror=$ac_res | |
4961 | else | |
4962 | echo "$as_me: failed program was:" >&5 | |
4963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4964 | ||
4965 | ||
4966 | fi | |
4967 | ||
4968 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4969 | conftest$ac_exeext | |
4970 | if test "${ac_cv_search_strerror+set}" = set; then | |
4971 | break | |
4972 | fi | |
4973 | done | |
4974 | if test "${ac_cv_search_strerror+set}" = set; then | |
4975 | : | |
4976 | else | |
4977 | ac_cv_search_strerror=no | |
4978 | fi | |
4979 | rm conftest.$ac_ext | |
4980 | LIBS=$ac_func_search_save_LIBS | |
4981 | fi | |
4982 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
4983 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
4984 | ac_res=$ac_cv_search_strerror | |
4985 | if test "$ac_res" != no; then | |
4986 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4987 | ||
4988 | fi | |
4989 | ||
4990 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4991 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4992 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4993 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4995 | else | |
4996 | cat >conftest.make <<\_ACEOF | |
4997 | SHELL = /bin/sh | |
4998 | all: | |
4999 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5000 | _ACEOF | |
5001 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5002 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5003 | *@@@%%%=?*=@@@%%%*) | |
5004 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5005 | *) | |
5006 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5007 | esac | |
5008 | rm -f conftest.make | |
5009 | fi | |
5010 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5011 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5012 | echo "${ECHO_T}yes" >&6; } | |
5013 | SET_MAKE= | |
5014 | else | |
5015 | { echo "$as_me:$LINENO: result: no" >&5 | |
5016 | echo "${ECHO_T}no" >&6; } | |
5017 | SET_MAKE="MAKE=${MAKE-make}" | |
5018 | fi | |
5019 | ||
5020 | # Extract the first word of "rm", so it can be a program name with args. | |
5021 | set dummy rm; ac_word=$2 | |
5022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5024 | if test "${ac_cv_path_RM+set}" = set; then | |
5025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5026 | else | |
5027 | case $RM in | |
5028 | [\\/]* | ?:[\\/]*) | |
5029 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
5030 | ;; | |
5031 | *) | |
5032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5033 | for as_dir in $PATH | |
5034 | do | |
5035 | IFS=$as_save_IFS | |
5036 | test -z "$as_dir" && as_dir=. | |
5037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5039 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
5040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5041 | break 2 | |
5042 | fi | |
5043 | done | |
5044 | done | |
5045 | IFS=$as_save_IFS | |
5046 | ||
5047 | ;; | |
5048 | esac | |
5049 | fi | |
5050 | RM=$ac_cv_path_RM | |
5051 | if test -n "$RM"; then | |
5052 | { echo "$as_me:$LINENO: result: $RM" >&5 | |
5053 | echo "${ECHO_T}$RM" >&6; } | |
5054 | else | |
5055 | { echo "$as_me:$LINENO: result: no" >&5 | |
5056 | echo "${ECHO_T}no" >&6; } | |
5057 | fi | |
5058 | ||
5059 | ||
5060 | # Extract the first word of "cp", so it can be a program name with args. | |
5061 | set dummy cp; ac_word=$2 | |
5062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5064 | if test "${ac_cv_path_CP+set}" = set; then | |
5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5066 | else | |
5067 | case $CP in | |
5068 | [\\/]* | ?:[\\/]*) | |
5069 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
5070 | ;; | |
5071 | *) | |
5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5073 | for as_dir in $PATH | |
5074 | do | |
5075 | IFS=$as_save_IFS | |
5076 | test -z "$as_dir" && as_dir=. | |
5077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5079 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
5080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5081 | break 2 | |
5082 | fi | |
5083 | done | |
5084 | done | |
5085 | IFS=$as_save_IFS | |
5086 | ||
5087 | ;; | |
5088 | esac | |
5089 | fi | |
5090 | CP=$ac_cv_path_CP | |
5091 | if test -n "$CP"; then | |
5092 | { echo "$as_me:$LINENO: result: $CP" >&5 | |
5093 | echo "${ECHO_T}$CP" >&6; } | |
5094 | else | |
5095 | { echo "$as_me:$LINENO: result: no" >&5 | |
5096 | echo "${ECHO_T}no" >&6; } | |
5097 | fi | |
5098 | ||
5099 | ||
5100 | # Extract the first word of "mv", so it can be a program name with args. | |
5101 | set dummy mv; ac_word=$2 | |
5102 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5104 | if test "${ac_cv_path_MV+set}" = set; then | |
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5106 | else | |
5107 | case $MV in | |
5108 | [\\/]* | ?:[\\/]*) | |
5109 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
5110 | ;; | |
5111 | *) | |
5112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5113 | for as_dir in $PATH | |
5114 | do | |
5115 | IFS=$as_save_IFS | |
5116 | test -z "$as_dir" && as_dir=. | |
5117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5119 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
5120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5121 | break 2 | |
5122 | fi | |
5123 | done | |
5124 | done | |
5125 | IFS=$as_save_IFS | |
5126 | ||
5127 | ;; | |
5128 | esac | |
5129 | fi | |
5130 | MV=$ac_cv_path_MV | |
5131 | if test -n "$MV"; then | |
5132 | { echo "$as_me:$LINENO: result: $MV" >&5 | |
5133 | echo "${ECHO_T}$MV" >&6; } | |
5134 | else | |
5135 | { echo "$as_me:$LINENO: result: no" >&5 | |
5136 | echo "${ECHO_T}no" >&6; } | |
5137 | fi | |
5138 | ||
5139 | ||
5140 | # Extract the first word of "sed", so it can be a program name with args. | |
5141 | set dummy sed; ac_word=$2 | |
5142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5144 | if test "${ac_cv_path_SED+set}" = set; then | |
5145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5146 | else | |
5147 | case $SED in | |
5148 | [\\/]* | ?:[\\/]*) | |
5149 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
5150 | ;; | |
5151 | *) | |
5152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5153 | for as_dir in $PATH | |
5154 | do | |
5155 | IFS=$as_save_IFS | |
5156 | test -z "$as_dir" && as_dir=. | |
5157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5159 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
5160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5161 | break 2 | |
5162 | fi | |
5163 | done | |
5164 | done | |
5165 | IFS=$as_save_IFS | |
5166 | ||
5167 | ;; | |
5168 | esac | |
5169 | fi | |
5170 | SED=$ac_cv_path_SED | |
5171 | if test -n "$SED"; then | |
5172 | { echo "$as_me:$LINENO: result: $SED" >&5 | |
5173 | echo "${ECHO_T}$SED" >&6; } | |
5174 | else | |
5175 | { echo "$as_me:$LINENO: result: no" >&5 | |
5176 | echo "${ECHO_T}no" >&6; } | |
5177 | fi | |
5178 | ||
5179 | ||
5180 | # Find a good install program. We prefer a C program (faster), | |
5181 | # so one script is as good as another. But avoid the broken or | |
5182 | # incompatible versions: | |
5183 | # SysV /etc/install, /usr/sbin/install | |
5184 | # SunOS /usr/etc/install | |
5185 | # IRIX /sbin/install | |
5186 | # AIX /bin/install | |
5187 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5188 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5189 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5190 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5191 | # OS/2's system install, which has a completely different semantic | |
5192 | # ./install, which can be erroneously created by make from ./install.sh. | |
5193 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5194 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
5195 | if test -z "$INSTALL"; then | |
5196 | if test "${ac_cv_path_install+set}" = set; then | |
5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5198 | else | |
5199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5200 | for as_dir in $PATH | |
5201 | do | |
5202 | IFS=$as_save_IFS | |
5203 | test -z "$as_dir" && as_dir=. | |
5204 | # Account for people who put trailing slashes in PATH elements. | |
5205 | case $as_dir/ in | |
5206 | ./ | .// | /cC/* | \ | |
5207 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5208 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5209 | /usr/ucb/* ) ;; | |
5210 | *) | |
5211 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5212 | # Don't use installbsd from OSF since it installs stuff as root | |
5213 | # by default. | |
5214 | for ac_prog in ginstall scoinst install; do | |
5215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5216 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
5217 | if test $ac_prog = install && | |
5218 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5219 | # AIX install. It has an incompatible calling convention. | |
5220 | : | |
5221 | elif test $ac_prog = install && | |
5222 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5223 | # program-specific install script used by HP pwplus--don't use. | |
5224 | : | |
5225 | else | |
5226 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5227 | break 3 | |
5228 | fi | |
5229 | fi | |
5230 | done | |
5231 | done | |
5232 | ;; | |
5233 | esac | |
5234 | done | |
5235 | IFS=$as_save_IFS | |
5236 | ||
5237 | ||
5238 | fi | |
5239 | if test "${ac_cv_path_install+set}" = set; then | |
5240 | INSTALL=$ac_cv_path_install | |
5241 | else | |
5242 | # As a last resort, use the slow shell script. Don't cache a | |
5243 | # value for INSTALL within a source directory, because that will | |
5244 | # break other packages using the cache if that directory is | |
5245 | # removed, or if the value is a relative name. | |
5246 | INSTALL=$ac_install_sh | |
5247 | fi | |
5248 | fi | |
5249 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
5250 | echo "${ECHO_T}$INSTALL" >&6; } | |
5251 | ||
5252 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5253 | # It thinks the first close brace ends the variable substitution. | |
5254 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5255 | ||
5256 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5257 | ||
5258 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5259 | ||
5260 | ||
5261 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
5262 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
5263 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
5264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5265 | else | |
5266 | ac_check_lib_save_LIBS=$LIBS | |
5267 | LIBS="-lsocket $LIBS" | |
5268 | cat >conftest.$ac_ext <<_ACEOF | |
5269 | /* confdefs.h. */ | |
5270 | _ACEOF | |
5271 | cat confdefs.h >>conftest.$ac_ext | |
5272 | cat >>conftest.$ac_ext <<_ACEOF | |
5273 | /* end confdefs.h. */ | |
5274 | ||
5275 | /* Override any GCC internal prototype to avoid an error. | |
5276 | Use char because int might match the return type of a GCC | |
5277 | builtin and then its argument prototype would still apply. */ | |
5278 | #ifdef __cplusplus | |
5279 | extern "C" | |
5280 | #endif | |
5281 | char socket (); | |
5282 | int | |
5283 | main () | |
5284 | { | |
5285 | return socket (); | |
5286 | ; | |
5287 | return 0; | |
5288 | } | |
5289 | _ACEOF | |
5290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5291 | if { (ac_try="$ac_link" | |
5292 | case "(($ac_try" in | |
5293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5294 | *) ac_try_echo=$ac_try;; | |
5295 | esac | |
5296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5297 | (eval "$ac_link") 2>conftest.er1 | |
5298 | ac_status=$? | |
5299 | grep -v '^ *+' conftest.er1 >conftest.err | |
5300 | rm -f conftest.er1 | |
5301 | cat conftest.err >&5 | |
5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5303 | (exit $ac_status); } && { | |
5304 | test -z "$ac_c_werror_flag" || | |
5305 | test ! -s conftest.err | |
5306 | } && test -s conftest$ac_exeext && | |
5307 | $as_test_x conftest$ac_exeext; then | |
5308 | ac_cv_lib_socket_socket=yes | |
5309 | else | |
5310 | echo "$as_me: failed program was:" >&5 | |
5311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5312 | ||
5313 | ac_cv_lib_socket_socket=no | |
5314 | fi | |
5315 | ||
5316 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5317 | conftest$ac_exeext conftest.$ac_ext | |
5318 | LIBS=$ac_check_lib_save_LIBS | |
5319 | fi | |
5320 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
5321 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
5322 | if test $ac_cv_lib_socket_socket = yes; then | |
5323 | zlib | |
5324 | fi | |
5325 | ||
5326 | { echo "$as_me:$LINENO: checking for crypt" >&5 | |
5327 | echo $ECHO_N "checking for crypt... $ECHO_C" >&6; } | |
5328 | if test "${ac_cv_func_crypt+set}" = set; then | |
5329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5330 | else | |
5331 | cat >conftest.$ac_ext <<_ACEOF | |
5332 | /* confdefs.h. */ | |
5333 | _ACEOF | |
5334 | cat confdefs.h >>conftest.$ac_ext | |
5335 | cat >>conftest.$ac_ext <<_ACEOF | |
5336 | /* end confdefs.h. */ | |
5337 | /* Define crypt to an innocuous variant, in case <limits.h> declares crypt. | |
5338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5339 | #define crypt innocuous_crypt | |
5340 | ||
5341 | /* System header to define __stub macros and hopefully few prototypes, | |
5342 | which can conflict with char crypt (); below. | |
5343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5344 | <limits.h> exists even on freestanding compilers. */ | |
5345 | ||
5346 | #ifdef __STDC__ | |
5347 | # include <limits.h> | |
5348 | #else | |
5349 | # include <assert.h> | |
5350 | #endif | |
5351 | ||
5352 | #undef crypt | |
5353 | ||
5354 | /* Override any GCC internal prototype to avoid an error. | |
5355 | Use char because int might match the return type of a GCC | |
5356 | builtin and then its argument prototype would still apply. */ | |
5357 | #ifdef __cplusplus | |
5358 | extern "C" | |
5359 | #endif | |
5360 | char crypt (); | |
5361 | /* The GNU C library defines this for functions which it implements | |
5362 | to always fail with ENOSYS. Some functions are actually named | |
5363 | something starting with __ and the normal name is an alias. */ | |
5364 | #if defined __stub_crypt || defined __stub___crypt | |
5365 | choke me | |
5366 | #endif | |
5367 | ||
5368 | int | |
5369 | main () | |
5370 | { | |
5371 | return crypt (); | |
5372 | ; | |
5373 | return 0; | |
5374 | } | |
5375 | _ACEOF | |
5376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5377 | if { (ac_try="$ac_link" | |
5378 | case "(($ac_try" in | |
5379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5380 | *) ac_try_echo=$ac_try;; | |
5381 | esac | |
5382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5383 | (eval "$ac_link") 2>conftest.er1 | |
5384 | ac_status=$? | |
5385 | grep -v '^ *+' conftest.er1 >conftest.err | |
5386 | rm -f conftest.er1 | |
5387 | cat conftest.err >&5 | |
5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5389 | (exit $ac_status); } && { | |
5390 | test -z "$ac_c_werror_flag" || | |
5391 | test ! -s conftest.err | |
5392 | } && test -s conftest$ac_exeext && | |
5393 | $as_test_x conftest$ac_exeext; then | |
5394 | ac_cv_func_crypt=yes | |
5395 | else | |
5396 | echo "$as_me: failed program was:" >&5 | |
5397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5398 | ||
5399 | ac_cv_func_crypt=no | |
5400 | fi | |
5401 | ||
5402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5403 | conftest$ac_exeext conftest.$ac_ext | |
5404 | fi | |
5405 | { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 | |
5406 | echo "${ECHO_T}$ac_cv_func_crypt" >&6; } | |
5407 | if test $ac_cv_func_crypt = yes; then | |
5408 | : | |
5409 | else | |
5410 | ||
5411 | { echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5 | |
5412 | echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6; } | |
5413 | if test "${ac_cv_lib_descrypt_crypt+set}" = set; then | |
5414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5415 | else | |
5416 | ac_check_lib_save_LIBS=$LIBS | |
5417 | LIBS="-ldescrypt $LIBS" | |
5418 | cat >conftest.$ac_ext <<_ACEOF | |
5419 | /* confdefs.h. */ | |
5420 | _ACEOF | |
5421 | cat confdefs.h >>conftest.$ac_ext | |
5422 | cat >>conftest.$ac_ext <<_ACEOF | |
5423 | /* end confdefs.h. */ | |
5424 | ||
5425 | /* Override any GCC internal prototype to avoid an error. | |
5426 | Use char because int might match the return type of a GCC | |
5427 | builtin and then its argument prototype would still apply. */ | |
5428 | #ifdef __cplusplus | |
5429 | extern "C" | |
5430 | #endif | |
5431 | char crypt (); | |
5432 | int | |
5433 | main () | |
5434 | { | |
5435 | return crypt (); | |
5436 | ; | |
5437 | return 0; | |
5438 | } | |
5439 | _ACEOF | |
5440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5441 | if { (ac_try="$ac_link" | |
5442 | case "(($ac_try" in | |
5443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5444 | *) ac_try_echo=$ac_try;; | |
5445 | esac | |
5446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5447 | (eval "$ac_link") 2>conftest.er1 | |
5448 | ac_status=$? | |
5449 | grep -v '^ *+' conftest.er1 >conftest.err | |
5450 | rm -f conftest.er1 | |
5451 | cat conftest.err >&5 | |
5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5453 | (exit $ac_status); } && { | |
5454 | test -z "$ac_c_werror_flag" || | |
5455 | test ! -s conftest.err | |
5456 | } && test -s conftest$ac_exeext && | |
5457 | $as_test_x conftest$ac_exeext; then | |
5458 | ac_cv_lib_descrypt_crypt=yes | |
5459 | else | |
5460 | echo "$as_me: failed program was:" >&5 | |
5461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5462 | ||
5463 | ac_cv_lib_descrypt_crypt=no | |
5464 | fi | |
5465 | ||
5466 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5467 | conftest$ac_exeext conftest.$ac_ext | |
5468 | LIBS=$ac_check_lib_save_LIBS | |
5469 | fi | |
5470 | { echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5 | |
5471 | echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6; } | |
5472 | if test $ac_cv_lib_descrypt_crypt = yes; then | |
5473 | cat >>confdefs.h <<_ACEOF | |
5474 | #define HAVE_LIBDESCRYPT 1 | |
5475 | _ACEOF | |
5476 | ||
5477 | LIBS="-ldescrypt $LIBS" | |
5478 | ||
5479 | else | |
5480 | ||
5481 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | |
5482 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | |
5483 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | |
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5485 | else | |
5486 | ac_check_lib_save_LIBS=$LIBS | |
5487 | LIBS="-lcrypt $LIBS" | |
5488 | cat >conftest.$ac_ext <<_ACEOF | |
5489 | /* confdefs.h. */ | |
5490 | _ACEOF | |
5491 | cat confdefs.h >>conftest.$ac_ext | |
5492 | cat >>conftest.$ac_ext <<_ACEOF | |
5493 | /* end confdefs.h. */ | |
5494 | ||
5495 | /* Override any GCC internal prototype to avoid an error. | |
5496 | Use char because int might match the return type of a GCC | |
5497 | builtin and then its argument prototype would still apply. */ | |
5498 | #ifdef __cplusplus | |
5499 | extern "C" | |
5500 | #endif | |
5501 | char crypt (); | |
5502 | int | |
5503 | main () | |
5504 | { | |
5505 | return crypt (); | |
5506 | ; | |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
5510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5511 | if { (ac_try="$ac_link" | |
5512 | case "(($ac_try" in | |
5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5514 | *) ac_try_echo=$ac_try;; | |
5515 | esac | |
5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5517 | (eval "$ac_link") 2>conftest.er1 | |
5518 | ac_status=$? | |
5519 | grep -v '^ *+' conftest.er1 >conftest.err | |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5523 | (exit $ac_status); } && { | |
5524 | test -z "$ac_c_werror_flag" || | |
5525 | test ! -s conftest.err | |
5526 | } && test -s conftest$ac_exeext && | |
5527 | $as_test_x conftest$ac_exeext; then | |
5528 | ac_cv_lib_crypt_crypt=yes | |
5529 | else | |
5530 | echo "$as_me: failed program was:" >&5 | |
5531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5532 | ||
5533 | ac_cv_lib_crypt_crypt=no | |
5534 | fi | |
5535 | ||
5536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5537 | conftest$ac_exeext conftest.$ac_ext | |
5538 | LIBS=$ac_check_lib_save_LIBS | |
5539 | fi | |
5540 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | |
5541 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | |
5542 | if test $ac_cv_lib_crypt_crypt = yes; then | |
5543 | cat >>confdefs.h <<_ACEOF | |
5544 | #define HAVE_LIBCRYPT 1 | |
5545 | _ACEOF | |
5546 | ||
5547 | LIBS="-lcrypt $LIBS" | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | fi | |
5552 | ||
5553 | fi | |
5554 | ||
5555 | ||
5556 | ac_ext=c | |
5557 | ac_cpp='$CPP $CPPFLAGS' | |
5558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5561 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5562 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
5563 | # On Suns, sometimes $CPP names a directory. | |
5564 | if test -n "$CPP" && test -d "$CPP"; then | |
5565 | CPP= | |
5566 | fi | |
5567 | if test -z "$CPP"; then | |
5568 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5570 | else | |
5571 | # Double quotes because CPP needs to be expanded | |
5572 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5573 | do | |
5574 | ac_preproc_ok=false | |
5575 | for ac_c_preproc_warn_flag in '' yes | |
5576 | do | |
5577 | # Use a header file that comes with gcc, so configuring glibc | |
5578 | # with a fresh cross-compiler works. | |
5579 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5580 | # <limits.h> exists even on freestanding compilers. | |
5581 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5582 | # not just through cpp. "Syntax error" is here to catch this case. | |
5583 | cat >conftest.$ac_ext <<_ACEOF | |
5584 | /* confdefs.h. */ | |
5585 | _ACEOF | |
5586 | cat confdefs.h >>conftest.$ac_ext | |
5587 | cat >>conftest.$ac_ext <<_ACEOF | |
5588 | /* end confdefs.h. */ | |
5589 | #ifdef __STDC__ | |
5590 | # include <limits.h> | |
5591 | #else | |
5592 | # include <assert.h> | |
5593 | #endif | |
5594 | Syntax error | |
5595 | _ACEOF | |
5596 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5597 | case "(($ac_try" in | |
5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5599 | *) ac_try_echo=$ac_try;; | |
5600 | esac | |
5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5602 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5603 | ac_status=$? | |
5604 | grep -v '^ *+' conftest.er1 >conftest.err | |
5605 | rm -f conftest.er1 | |
5606 | cat conftest.err >&5 | |
5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5608 | (exit $ac_status); } >/dev/null && { | |
5609 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5610 | test ! -s conftest.err | |
5611 | }; then | |
5612 | : | |
5613 | else | |
5614 | echo "$as_me: failed program was:" >&5 | |
5615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5616 | ||
5617 | # Broken: fails on valid input. | |
5618 | continue | |
5619 | fi | |
5620 | ||
5621 | rm -f conftest.err conftest.$ac_ext | |
5622 | ||
5623 | # OK, works on sane cases. Now check whether nonexistent headers | |
5624 | # can be detected and how. | |
5625 | cat >conftest.$ac_ext <<_ACEOF | |
5626 | /* confdefs.h. */ | |
5627 | _ACEOF | |
5628 | cat confdefs.h >>conftest.$ac_ext | |
5629 | cat >>conftest.$ac_ext <<_ACEOF | |
5630 | /* end confdefs.h. */ | |
5631 | #include <ac_nonexistent.h> | |
5632 | _ACEOF | |
5633 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5634 | case "(($ac_try" in | |
5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5636 | *) ac_try_echo=$ac_try;; | |
5637 | esac | |
5638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5639 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5640 | ac_status=$? | |
5641 | grep -v '^ *+' conftest.er1 >conftest.err | |
5642 | rm -f conftest.er1 | |
5643 | cat conftest.err >&5 | |
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5645 | (exit $ac_status); } >/dev/null && { | |
5646 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5647 | test ! -s conftest.err | |
5648 | }; then | |
5649 | # Broken: success on invalid input. | |
5650 | continue | |
5651 | else | |
5652 | echo "$as_me: failed program was:" >&5 | |
5653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5654 | ||
5655 | # Passes both tests. | |
5656 | ac_preproc_ok=: | |
5657 | break | |
5658 | fi | |
5659 | ||
5660 | rm -f conftest.err conftest.$ac_ext | |
5661 | ||
5662 | done | |
5663 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5664 | rm -f conftest.err conftest.$ac_ext | |
5665 | if $ac_preproc_ok; then | |
5666 | break | |
5667 | fi | |
5668 | ||
5669 | done | |
5670 | ac_cv_prog_CPP=$CPP | |
5671 | ||
5672 | fi | |
5673 | CPP=$ac_cv_prog_CPP | |
5674 | else | |
5675 | ac_cv_prog_CPP=$CPP | |
5676 | fi | |
5677 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
5678 | echo "${ECHO_T}$CPP" >&6; } | |
5679 | ac_preproc_ok=false | |
5680 | for ac_c_preproc_warn_flag in '' yes | |
5681 | do | |
5682 | # Use a header file that comes with gcc, so configuring glibc | |
5683 | # with a fresh cross-compiler works. | |
5684 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5685 | # <limits.h> exists even on freestanding compilers. | |
5686 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5687 | # not just through cpp. "Syntax error" is here to catch this case. | |
5688 | cat >conftest.$ac_ext <<_ACEOF | |
5689 | /* confdefs.h. */ | |
5690 | _ACEOF | |
5691 | cat confdefs.h >>conftest.$ac_ext | |
5692 | cat >>conftest.$ac_ext <<_ACEOF | |
5693 | /* end confdefs.h. */ | |
5694 | #ifdef __STDC__ | |
5695 | # include <limits.h> | |
5696 | #else | |
5697 | # include <assert.h> | |
5698 | #endif | |
5699 | Syntax error | |
5700 | _ACEOF | |
5701 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5702 | case "(($ac_try" in | |
5703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5704 | *) ac_try_echo=$ac_try;; | |
5705 | esac | |
5706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5708 | ac_status=$? | |
5709 | grep -v '^ *+' conftest.er1 >conftest.err | |
5710 | rm -f conftest.er1 | |
5711 | cat conftest.err >&5 | |
5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5713 | (exit $ac_status); } >/dev/null && { | |
5714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5715 | test ! -s conftest.err | |
5716 | }; then | |
5717 | : | |
5718 | else | |
5719 | echo "$as_me: failed program was:" >&5 | |
5720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5721 | ||
5722 | # Broken: fails on valid input. | |
5723 | continue | |
5724 | fi | |
5725 | ||
5726 | rm -f conftest.err conftest.$ac_ext | |
5727 | ||
5728 | # OK, works on sane cases. Now check whether nonexistent headers | |
5729 | # can be detected and how. | |
5730 | cat >conftest.$ac_ext <<_ACEOF | |
5731 | /* confdefs.h. */ | |
5732 | _ACEOF | |
5733 | cat confdefs.h >>conftest.$ac_ext | |
5734 | cat >>conftest.$ac_ext <<_ACEOF | |
5735 | /* end confdefs.h. */ | |
5736 | #include <ac_nonexistent.h> | |
5737 | _ACEOF | |
5738 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5739 | case "(($ac_try" in | |
5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5741 | *) ac_try_echo=$ac_try;; | |
5742 | esac | |
5743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5745 | ac_status=$? | |
5746 | grep -v '^ *+' conftest.er1 >conftest.err | |
5747 | rm -f conftest.er1 | |
5748 | cat conftest.err >&5 | |
5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5750 | (exit $ac_status); } >/dev/null && { | |
5751 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5752 | test ! -s conftest.err | |
5753 | }; then | |
5754 | # Broken: success on invalid input. | |
5755 | continue | |
5756 | else | |
5757 | echo "$as_me: failed program was:" >&5 | |
5758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5759 | ||
5760 | # Passes both tests. | |
5761 | ac_preproc_ok=: | |
5762 | break | |
5763 | fi | |
5764 | ||
5765 | rm -f conftest.err conftest.$ac_ext | |
5766 | ||
5767 | done | |
5768 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5769 | rm -f conftest.err conftest.$ac_ext | |
5770 | if $ac_preproc_ok; then | |
5771 | : | |
5772 | else | |
5773 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5774 | See \`config.log' for more details." >&5 | |
5775 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5776 | See \`config.log' for more details." >&2;} | |
5777 | { (exit 1); exit 1; }; } | |
5778 | fi | |
5779 | ||
5780 | ac_ext=c | |
5781 | ac_cpp='$CPP $CPPFLAGS' | |
5782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5785 | ||
5786 | ||
5787 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
5788 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
5789 | if test "${ac_cv_path_GREP+set}" = set; then | |
5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5791 | else | |
5792 | # Extract the first word of "grep ggrep" to use in msg output | |
5793 | if test -z "$GREP"; then | |
5794 | set dummy grep ggrep; ac_prog_name=$2 | |
5795 | if test "${ac_cv_path_GREP+set}" = set; then | |
5796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5797 | else | |
5798 | ac_path_GREP_found=false | |
5799 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5801 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5802 | do | |
5803 | IFS=$as_save_IFS | |
5804 | test -z "$as_dir" && as_dir=. | |
5805 | for ac_prog in grep ggrep; do | |
5806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5807 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5808 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5809 | # Check for GNU ac_path_GREP and select it if it is found. | |
5810 | # Check for GNU $ac_path_GREP | |
5811 | case `"$ac_path_GREP" --version 2>&1` in | |
5812 | *GNU*) | |
5813 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5814 | *) | |
5815 | ac_count=0 | |
5816 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5817 | while : | |
5818 | do | |
5819 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5820 | mv "conftest.tmp" "conftest.in" | |
5821 | cp "conftest.in" "conftest.nl" | |
5822 | echo 'GREP' >> "conftest.nl" | |
5823 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5824 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5825 | ac_count=`expr $ac_count + 1` | |
5826 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5827 | # Best one so far, save it but keep looking for a better one | |
5828 | ac_cv_path_GREP="$ac_path_GREP" | |
5829 | ac_path_GREP_max=$ac_count | |
5830 | fi | |
5831 | # 10*(2^10) chars as input seems more than enough | |
5832 | test $ac_count -gt 10 && break | |
5833 | done | |
5834 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5835 | esac | |
5836 | ||
5837 | ||
5838 | $ac_path_GREP_found && break 3 | |
5839 | done | |
5840 | done | |
5841 | ||
5842 | done | |
5843 | IFS=$as_save_IFS | |
5844 | ||
5845 | ||
5846 | fi | |
5847 | ||
5848 | GREP="$ac_cv_path_GREP" | |
5849 | if test -z "$GREP"; then | |
5850 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5851 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5852 | { (exit 1); exit 1; }; } | |
5853 | fi | |
5854 | ||
5855 | else | |
5856 | ac_cv_path_GREP=$GREP | |
5857 | fi | |
5858 | ||
5859 | ||
5860 | fi | |
5861 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
5862 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
5863 | GREP="$ac_cv_path_GREP" | |
5864 | ||
5865 | ||
5866 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
5867 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
5868 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5870 | else | |
5871 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5872 | then ac_cv_path_EGREP="$GREP -E" | |
5873 | else | |
5874 | # Extract the first word of "egrep" to use in msg output | |
5875 | if test -z "$EGREP"; then | |
5876 | set dummy egrep; ac_prog_name=$2 | |
5877 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5879 | else | |
5880 | ac_path_EGREP_found=false | |
5881 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5883 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5884 | do | |
5885 | IFS=$as_save_IFS | |
5886 | test -z "$as_dir" && as_dir=. | |
5887 | for ac_prog in egrep; do | |
5888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5889 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5890 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5891 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5892 | # Check for GNU $ac_path_EGREP | |
5893 | case `"$ac_path_EGREP" --version 2>&1` in | |
5894 | *GNU*) | |
5895 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5896 | *) | |
5897 | ac_count=0 | |
5898 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5899 | while : | |
5900 | do | |
5901 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5902 | mv "conftest.tmp" "conftest.in" | |
5903 | cp "conftest.in" "conftest.nl" | |
5904 | echo 'EGREP' >> "conftest.nl" | |
5905 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5906 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5907 | ac_count=`expr $ac_count + 1` | |
5908 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5909 | # Best one so far, save it but keep looking for a better one | |
5910 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5911 | ac_path_EGREP_max=$ac_count | |
5912 | fi | |
5913 | # 10*(2^10) chars as input seems more than enough | |
5914 | test $ac_count -gt 10 && break | |
5915 | done | |
5916 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5917 | esac | |
5918 | ||
5919 | ||
5920 | $ac_path_EGREP_found && break 3 | |
5921 | done | |
5922 | done | |
5923 | ||
5924 | done | |
5925 | IFS=$as_save_IFS | |
5926 | ||
5927 | ||
5928 | fi | |
5929 | ||
5930 | EGREP="$ac_cv_path_EGREP" | |
5931 | if test -z "$EGREP"; then | |
5932 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5933 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5934 | { (exit 1); exit 1; }; } | |
5935 | fi | |
5936 | ||
5937 | else | |
5938 | ac_cv_path_EGREP=$EGREP | |
5939 | fi | |
5940 | ||
5941 | ||
5942 | fi | |
5943 | fi | |
5944 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
5945 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
5946 | EGREP="$ac_cv_path_EGREP" | |
5947 | ||
5948 | ||
5949 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5950 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
5951 | if test "${ac_cv_header_stdc+set}" = set; then | |
5952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5953 | else | |
5954 | cat >conftest.$ac_ext <<_ACEOF | |
5955 | /* confdefs.h. */ | |
5956 | _ACEOF | |
5957 | cat confdefs.h >>conftest.$ac_ext | |
5958 | cat >>conftest.$ac_ext <<_ACEOF | |
5959 | /* end confdefs.h. */ | |
5960 | #include <stdlib.h> | |
5961 | #include <stdarg.h> | |
5962 | #include <string.h> | |
5963 | #include <float.h> | |
5964 | ||
5965 | int | |
5966 | main () | |
5967 | { | |
5968 | ||
5969 | ; | |
5970 | return 0; | |
5971 | } | |
5972 | _ACEOF | |
5973 | rm -f conftest.$ac_objext | |
5974 | if { (ac_try="$ac_compile" | |
5975 | case "(($ac_try" in | |
5976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5977 | *) ac_try_echo=$ac_try;; | |
5978 | esac | |
5979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5980 | (eval "$ac_compile") 2>conftest.er1 | |
5981 | ac_status=$? | |
5982 | grep -v '^ *+' conftest.er1 >conftest.err | |
5983 | rm -f conftest.er1 | |
5984 | cat conftest.err >&5 | |
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5986 | (exit $ac_status); } && { | |
5987 | test -z "$ac_c_werror_flag" || | |
5988 | test ! -s conftest.err | |
5989 | } && test -s conftest.$ac_objext; then | |
5990 | ac_cv_header_stdc=yes | |
5991 | else | |
5992 | echo "$as_me: failed program was:" >&5 | |
5993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5994 | ||
5995 | ac_cv_header_stdc=no | |
5996 | fi | |
5997 | ||
5998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5999 | ||
6000 | if test $ac_cv_header_stdc = yes; then | |
6001 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6002 | cat >conftest.$ac_ext <<_ACEOF | |
6003 | /* confdefs.h. */ | |
6004 | _ACEOF | |
6005 | cat confdefs.h >>conftest.$ac_ext | |
6006 | cat >>conftest.$ac_ext <<_ACEOF | |
6007 | /* end confdefs.h. */ | |
6008 | #include <string.h> | |
6009 | ||
6010 | _ACEOF | |
6011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6012 | $EGREP "memchr" >/dev/null 2>&1; then | |
6013 | : | |
6014 | else | |
6015 | ac_cv_header_stdc=no | |
6016 | fi | |
6017 | rm -f conftest* | |
6018 | ||
6019 | fi | |
6020 | ||
6021 | if test $ac_cv_header_stdc = yes; then | |
6022 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6023 | cat >conftest.$ac_ext <<_ACEOF | |
6024 | /* confdefs.h. */ | |
6025 | _ACEOF | |
6026 | cat confdefs.h >>conftest.$ac_ext | |
6027 | cat >>conftest.$ac_ext <<_ACEOF | |
6028 | /* end confdefs.h. */ | |
6029 | #include <stdlib.h> | |
6030 | ||
6031 | _ACEOF | |
6032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6033 | $EGREP "free" >/dev/null 2>&1; then | |
6034 | : | |
6035 | else | |
6036 | ac_cv_header_stdc=no | |
6037 | fi | |
6038 | rm -f conftest* | |
6039 | ||
6040 | fi | |
6041 | ||
6042 | if test $ac_cv_header_stdc = yes; then | |
6043 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6044 | if test "$cross_compiling" = yes; then | |
6045 | : | |
6046 | else | |
6047 | cat >conftest.$ac_ext <<_ACEOF | |
6048 | /* confdefs.h. */ | |
6049 | _ACEOF | |
6050 | cat confdefs.h >>conftest.$ac_ext | |
6051 | cat >>conftest.$ac_ext <<_ACEOF | |
6052 | /* end confdefs.h. */ | |
6053 | #include <ctype.h> | |
6054 | #include <stdlib.h> | |
6055 | #if ((' ' & 0x0FF) == 0x020) | |
6056 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6057 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6058 | #else | |
6059 | # define ISLOWER(c) \ | |
6060 | (('a' <= (c) && (c) <= 'i') \ | |
6061 | || ('j' <= (c) && (c) <= 'r') \ | |
6062 | || ('s' <= (c) && (c) <= 'z')) | |
6063 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6064 | #endif | |
6065 | ||
6066 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6067 | int | |
6068 | main () | |
6069 | { | |
6070 | int i; | |
6071 | for (i = 0; i < 256; i++) | |
6072 | if (XOR (islower (i), ISLOWER (i)) | |
6073 | || toupper (i) != TOUPPER (i)) | |
6074 | return 2; | |
6075 | return 0; | |
6076 | } | |
6077 | _ACEOF | |
6078 | rm -f conftest$ac_exeext | |
6079 | if { (ac_try="$ac_link" | |
6080 | case "(($ac_try" in | |
6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6082 | *) ac_try_echo=$ac_try;; | |
6083 | esac | |
6084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6085 | (eval "$ac_link") 2>&5 | |
6086 | ac_status=$? | |
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6089 | { (case "(($ac_try" in | |
6090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6091 | *) ac_try_echo=$ac_try;; | |
6092 | esac | |
6093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6094 | (eval "$ac_try") 2>&5 | |
6095 | ac_status=$? | |
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6097 | (exit $ac_status); }; }; then | |
6098 | : | |
6099 | else | |
6100 | echo "$as_me: program exited with status $ac_status" >&5 | |
6101 | echo "$as_me: failed program was:" >&5 | |
6102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6103 | ||
6104 | ( exit $ac_status ) | |
6105 | ac_cv_header_stdc=no | |
6106 | fi | |
6107 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6108 | fi | |
6109 | ||
6110 | ||
6111 | fi | |
6112 | fi | |
6113 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6114 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
6115 | if test $ac_cv_header_stdc = yes; then | |
6116 | ||
6117 | cat >>confdefs.h <<\_ACEOF | |
6118 | #define STDC_HEADERS 1 | |
6119 | _ACEOF | |
6120 | ||
6121 | fi | |
6122 | ||
6123 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
6132 | ||
6133 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6134 | inttypes.h stdint.h unistd.h | |
6135 | do | |
6136 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6137 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6141 | else | |
6142 | cat >conftest.$ac_ext <<_ACEOF | |
6143 | /* confdefs.h. */ | |
6144 | _ACEOF | |
6145 | cat confdefs.h >>conftest.$ac_ext | |
6146 | cat >>conftest.$ac_ext <<_ACEOF | |
6147 | /* end confdefs.h. */ | |
6148 | $ac_includes_default | |
6149 | ||
6150 | #include <$ac_header> | |
6151 | _ACEOF | |
6152 | rm -f conftest.$ac_objext | |
6153 | if { (ac_try="$ac_compile" | |
6154 | case "(($ac_try" in | |
6155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6156 | *) ac_try_echo=$ac_try;; | |
6157 | esac | |
6158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6159 | (eval "$ac_compile") 2>conftest.er1 | |
6160 | ac_status=$? | |
6161 | grep -v '^ *+' conftest.er1 >conftest.err | |
6162 | rm -f conftest.er1 | |
6163 | cat conftest.err >&5 | |
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6165 | (exit $ac_status); } && { | |
6166 | test -z "$ac_c_werror_flag" || | |
6167 | test ! -s conftest.err | |
6168 | } && test -s conftest.$ac_objext; then | |
6169 | eval "$as_ac_Header=yes" | |
6170 | else | |
6171 | echo "$as_me: failed program was:" >&5 | |
6172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6173 | ||
6174 | eval "$as_ac_Header=no" | |
6175 | fi | |
6176 | ||
6177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6178 | fi | |
6179 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6181 | echo "${ECHO_T}$ac_res" >&6; } | |
6182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6183 | cat >>confdefs.h <<_ACEOF | |
6184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6185 | _ACEOF | |
6186 | ||
6187 | fi | |
6188 | ||
6189 | done | |
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h | |
6200 | do | |
6201 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6203 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6207 | fi | |
6208 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6209 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6210 | echo "${ECHO_T}$ac_res" >&6; } | |
6211 | else | |
6212 | # Is the header compilable? | |
6213 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6214 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
6215 | cat >conftest.$ac_ext <<_ACEOF | |
6216 | /* confdefs.h. */ | |
6217 | _ACEOF | |
6218 | cat confdefs.h >>conftest.$ac_ext | |
6219 | cat >>conftest.$ac_ext <<_ACEOF | |
6220 | /* end confdefs.h. */ | |
6221 | $ac_includes_default | |
6222 | #include <$ac_header> | |
6223 | _ACEOF | |
6224 | rm -f conftest.$ac_objext | |
6225 | if { (ac_try="$ac_compile" | |
6226 | case "(($ac_try" in | |
6227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6228 | *) ac_try_echo=$ac_try;; | |
6229 | esac | |
6230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6231 | (eval "$ac_compile") 2>conftest.er1 | |
6232 | ac_status=$? | |
6233 | grep -v '^ *+' conftest.er1 >conftest.err | |
6234 | rm -f conftest.er1 | |
6235 | cat conftest.err >&5 | |
6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6237 | (exit $ac_status); } && { | |
6238 | test -z "$ac_c_werror_flag" || | |
6239 | test ! -s conftest.err | |
6240 | } && test -s conftest.$ac_objext; then | |
6241 | ac_header_compiler=yes | |
6242 | else | |
6243 | echo "$as_me: failed program was:" >&5 | |
6244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6245 | ||
6246 | ac_header_compiler=no | |
6247 | fi | |
6248 | ||
6249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6250 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6251 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6252 | ||
6253 | # Is the header present? | |
6254 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6255 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
6256 | cat >conftest.$ac_ext <<_ACEOF | |
6257 | /* confdefs.h. */ | |
6258 | _ACEOF | |
6259 | cat confdefs.h >>conftest.$ac_ext | |
6260 | cat >>conftest.$ac_ext <<_ACEOF | |
6261 | /* end confdefs.h. */ | |
6262 | #include <$ac_header> | |
6263 | _ACEOF | |
6264 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6265 | case "(($ac_try" in | |
6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6267 | *) ac_try_echo=$ac_try;; | |
6268 | esac | |
6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6271 | ac_status=$? | |
6272 | grep -v '^ *+' conftest.er1 >conftest.err | |
6273 | rm -f conftest.er1 | |
6274 | cat conftest.err >&5 | |
6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6276 | (exit $ac_status); } >/dev/null && { | |
6277 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6278 | test ! -s conftest.err | |
6279 | }; then | |
6280 | ac_header_preproc=yes | |
6281 | else | |
6282 | echo "$as_me: failed program was:" >&5 | |
6283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6284 | ||
6285 | ac_header_preproc=no | |
6286 | fi | |
6287 | ||
6288 | rm -f conftest.err conftest.$ac_ext | |
6289 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6290 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6291 | ||
6292 | # So? What about this header? | |
6293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6294 | yes:no: ) | |
6295 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6296 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6298 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6299 | ac_header_preproc=yes | |
6300 | ;; | |
6301 | no:yes:* ) | |
6302 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6303 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6304 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6305 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6306 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6307 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6308 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6309 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6312 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6313 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6314 | ||
6315 | ;; | |
6316 | esac | |
6317 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6321 | else | |
6322 | eval "$as_ac_Header=\$ac_header_preproc" | |
6323 | fi | |
6324 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6326 | echo "${ECHO_T}$ac_res" >&6; } | |
6327 | ||
6328 | fi | |
6329 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6330 | cat >>confdefs.h <<_ACEOF | |
6331 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6332 | _ACEOF | |
6333 | ||
6334 | fi | |
6335 | ||
6336 | done | |
6337 | ||
6338 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6339 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
6340 | if test "${ac_cv_c_const+set}" = set; then | |
6341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6342 | else | |
6343 | cat >conftest.$ac_ext <<_ACEOF | |
6344 | /* confdefs.h. */ | |
6345 | _ACEOF | |
6346 | cat confdefs.h >>conftest.$ac_ext | |
6347 | cat >>conftest.$ac_ext <<_ACEOF | |
6348 | /* end confdefs.h. */ | |
6349 | ||
6350 | int | |
6351 | main () | |
6352 | { | |
6353 | /* FIXME: Include the comments suggested by Paul. */ | |
6354 | #ifndef __cplusplus | |
6355 | /* Ultrix mips cc rejects this. */ | |
6356 | typedef int charset[2]; | |
6357 | const charset cs; | |
6358 | /* SunOS 4.1.1 cc rejects this. */ | |
6359 | char const *const *pcpcc; | |
6360 | char **ppc; | |
6361 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6362 | struct point {int x, y;}; | |
6363 | static struct point const zero = {0,0}; | |
6364 | /* AIX XL C 1.02.0.0 rejects this. | |
6365 | It does not let you subtract one const X* pointer from another in | |
6366 | an arm of an if-expression whose if-part is not a constant | |
6367 | expression */ | |
6368 | const char *g = "string"; | |
6369 | pcpcc = &g + (g ? g-g : 0); | |
6370 | /* HPUX 7.0 cc rejects these. */ | |
6371 | ++pcpcc; | |
6372 | ppc = (char**) pcpcc; | |
6373 | pcpcc = (char const *const *) ppc; | |
6374 | { /* SCO 3.2v4 cc rejects this. */ | |
6375 | char *t; | |
6376 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6377 | ||
6378 | *t++ = 0; | |
6379 | if (s) return 0; | |
6380 | } | |
6381 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6382 | int x[] = {25, 17}; | |
6383 | const int *foo = &x[0]; | |
6384 | ++foo; | |
6385 | } | |
6386 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6387 | typedef const int *iptr; | |
6388 | iptr p = 0; | |
6389 | ++p; | |
6390 | } | |
6391 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6392 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6393 | struct s { int j; const int *ap[3]; }; | |
6394 | struct s *b; b->j = 5; | |
6395 | } | |
6396 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6397 | const int foo = 10; | |
6398 | if (!foo) return 0; | |
6399 | } | |
6400 | return !cs[0] && !zero.x; | |
6401 | #endif | |
6402 | ||
6403 | ; | |
6404 | return 0; | |
6405 | } | |
6406 | _ACEOF | |
6407 | rm -f conftest.$ac_objext | |
6408 | if { (ac_try="$ac_compile" | |
6409 | case "(($ac_try" in | |
6410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6411 | *) ac_try_echo=$ac_try;; | |
6412 | esac | |
6413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6414 | (eval "$ac_compile") 2>conftest.er1 | |
6415 | ac_status=$? | |
6416 | grep -v '^ *+' conftest.er1 >conftest.err | |
6417 | rm -f conftest.er1 | |
6418 | cat conftest.err >&5 | |
6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6420 | (exit $ac_status); } && { | |
6421 | test -z "$ac_c_werror_flag" || | |
6422 | test ! -s conftest.err | |
6423 | } && test -s conftest.$ac_objext; then | |
6424 | ac_cv_c_const=yes | |
6425 | else | |
6426 | echo "$as_me: failed program was:" >&5 | |
6427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6428 | ||
6429 | ac_cv_c_const=no | |
6430 | fi | |
6431 | ||
6432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6433 | fi | |
6434 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6435 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
6436 | if test $ac_cv_c_const = no; then | |
6437 | ||
6438 | cat >>confdefs.h <<\_ACEOF | |
6439 | #define const | |
6440 | _ACEOF | |
6441 | ||
6442 | fi | |
6443 | ||
6444 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
6445 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
6446 | if test "${ac_cv_header_time+set}" = set; then | |
6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6448 | else | |
6449 | cat >conftest.$ac_ext <<_ACEOF | |
6450 | /* confdefs.h. */ | |
6451 | _ACEOF | |
6452 | cat confdefs.h >>conftest.$ac_ext | |
6453 | cat >>conftest.$ac_ext <<_ACEOF | |
6454 | /* end confdefs.h. */ | |
6455 | #include <sys/types.h> | |
6456 | #include <sys/time.h> | |
6457 | #include <time.h> | |
6458 | ||
6459 | int | |
6460 | main () | |
6461 | { | |
6462 | if ((struct tm *) 0) | |
6463 | return 0; | |
6464 | ; | |
6465 | return 0; | |
6466 | } | |
6467 | _ACEOF | |
6468 | rm -f conftest.$ac_objext | |
6469 | if { (ac_try="$ac_compile" | |
6470 | case "(($ac_try" in | |
6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6472 | *) ac_try_echo=$ac_try;; | |
6473 | esac | |
6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6475 | (eval "$ac_compile") 2>conftest.er1 | |
6476 | ac_status=$? | |
6477 | grep -v '^ *+' conftest.er1 >conftest.err | |
6478 | rm -f conftest.er1 | |
6479 | cat conftest.err >&5 | |
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6481 | (exit $ac_status); } && { | |
6482 | test -z "$ac_c_werror_flag" || | |
6483 | test ! -s conftest.err | |
6484 | } && test -s conftest.$ac_objext; then | |
6485 | ac_cv_header_time=yes | |
6486 | else | |
6487 | echo "$as_me: failed program was:" >&5 | |
6488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6489 | ||
6490 | ac_cv_header_time=no | |
6491 | fi | |
6492 | ||
6493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6494 | fi | |
6495 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
6496 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
6497 | if test $ac_cv_header_time = yes; then | |
6498 | ||
6499 | cat >>confdefs.h <<\_ACEOF | |
6500 | #define TIME_WITH_SYS_TIME 1 | |
6501 | _ACEOF | |
6502 | ||
6503 | fi | |
6504 | ||
6505 | { echo "$as_me:$LINENO: checking for error_at_line" >&5 | |
6506 | echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } | |
6507 | if test "${ac_cv_lib_error_at_line+set}" = set; then | |
6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6509 | else | |
6510 | cat >conftest.$ac_ext <<_ACEOF | |
6511 | /* confdefs.h. */ | |
6512 | _ACEOF | |
6513 | cat confdefs.h >>conftest.$ac_ext | |
6514 | cat >>conftest.$ac_ext <<_ACEOF | |
6515 | /* end confdefs.h. */ | |
6516 | #include <error.h> | |
6517 | int | |
6518 | main () | |
6519 | { | |
6520 | error_at_line (0, 0, "", 0, "an error occurred"); | |
6521 | ; | |
6522 | return 0; | |
6523 | } | |
6524 | _ACEOF | |
6525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6526 | if { (ac_try="$ac_link" | |
6527 | case "(($ac_try" in | |
6528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6529 | *) ac_try_echo=$ac_try;; | |
6530 | esac | |
6531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6532 | (eval "$ac_link") 2>conftest.er1 | |
6533 | ac_status=$? | |
6534 | grep -v '^ *+' conftest.er1 >conftest.err | |
6535 | rm -f conftest.er1 | |
6536 | cat conftest.err >&5 | |
6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6538 | (exit $ac_status); } && { | |
6539 | test -z "$ac_c_werror_flag" || | |
6540 | test ! -s conftest.err | |
6541 | } && test -s conftest$ac_exeext && | |
6542 | $as_test_x conftest$ac_exeext; then | |
6543 | ac_cv_lib_error_at_line=yes | |
6544 | else | |
6545 | echo "$as_me: failed program was:" >&5 | |
6546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6547 | ||
6548 | ac_cv_lib_error_at_line=no | |
6549 | fi | |
6550 | ||
6551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6552 | conftest$ac_exeext conftest.$ac_ext | |
6553 | fi | |
6554 | { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 | |
6555 | echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } | |
6556 | if test $ac_cv_lib_error_at_line = no; then | |
6557 | case " $LIBOBJS " in | |
6558 | *" error.$ac_objext "* ) ;; | |
6559 | *) LIBOBJS="$LIBOBJS error.$ac_objext" | |
6560 | ;; | |
6561 | esac | |
6562 | ||
6563 | fi | |
6564 | ||
6565 | if test $ac_cv_c_compiler_gnu = yes; then | |
6566 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
6567 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
6568 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
6569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6570 | else | |
6571 | ac_pattern="Autoconf.*'x'" | |
6572 | cat >conftest.$ac_ext <<_ACEOF | |
6573 | /* confdefs.h. */ | |
6574 | _ACEOF | |
6575 | cat confdefs.h >>conftest.$ac_ext | |
6576 | cat >>conftest.$ac_ext <<_ACEOF | |
6577 | /* end confdefs.h. */ | |
6578 | #include <sgtty.h> | |
6579 | Autoconf TIOCGETP | |
6580 | _ACEOF | |
6581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6582 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
6583 | ac_cv_prog_gcc_traditional=yes | |
6584 | else | |
6585 | ac_cv_prog_gcc_traditional=no | |
6586 | fi | |
6587 | rm -f conftest* | |
6588 | ||
6589 | ||
6590 | if test $ac_cv_prog_gcc_traditional = no; then | |
6591 | cat >conftest.$ac_ext <<_ACEOF | |
6592 | /* confdefs.h. */ | |
6593 | _ACEOF | |
6594 | cat confdefs.h >>conftest.$ac_ext | |
6595 | cat >>conftest.$ac_ext <<_ACEOF | |
6596 | /* end confdefs.h. */ | |
6597 | #include <termio.h> | |
6598 | Autoconf TCGETA | |
6599 | _ACEOF | |
6600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6601 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
6602 | ac_cv_prog_gcc_traditional=yes | |
6603 | fi | |
6604 | rm -f conftest* | |
6605 | ||
6606 | fi | |
6607 | fi | |
6608 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
6609 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
6610 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6611 | CC="$CC -traditional" | |
6612 | fi | |
6613 | fi | |
6614 | ||
6615 | ||
6616 | for ac_header in stdlib.h | |
6617 | do | |
6618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6620 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6624 | fi | |
6625 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6627 | echo "${ECHO_T}$ac_res" >&6; } | |
6628 | else | |
6629 | # Is the header compilable? | |
6630 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
6632 | cat >conftest.$ac_ext <<_ACEOF | |
6633 | /* confdefs.h. */ | |
6634 | _ACEOF | |
6635 | cat confdefs.h >>conftest.$ac_ext | |
6636 | cat >>conftest.$ac_ext <<_ACEOF | |
6637 | /* end confdefs.h. */ | |
6638 | $ac_includes_default | |
6639 | #include <$ac_header> | |
6640 | _ACEOF | |
6641 | rm -f conftest.$ac_objext | |
6642 | if { (ac_try="$ac_compile" | |
6643 | case "(($ac_try" in | |
6644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6645 | *) ac_try_echo=$ac_try;; | |
6646 | esac | |
6647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6648 | (eval "$ac_compile") 2>conftest.er1 | |
6649 | ac_status=$? | |
6650 | grep -v '^ *+' conftest.er1 >conftest.err | |
6651 | rm -f conftest.er1 | |
6652 | cat conftest.err >&5 | |
6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6654 | (exit $ac_status); } && { | |
6655 | test -z "$ac_c_werror_flag" || | |
6656 | test ! -s conftest.err | |
6657 | } && test -s conftest.$ac_objext; then | |
6658 | ac_header_compiler=yes | |
6659 | else | |
6660 | echo "$as_me: failed program was:" >&5 | |
6661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6662 | ||
6663 | ac_header_compiler=no | |
6664 | fi | |
6665 | ||
6666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6667 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6668 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6669 | ||
6670 | # Is the header present? | |
6671 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
6673 | cat >conftest.$ac_ext <<_ACEOF | |
6674 | /* confdefs.h. */ | |
6675 | _ACEOF | |
6676 | cat confdefs.h >>conftest.$ac_ext | |
6677 | cat >>conftest.$ac_ext <<_ACEOF | |
6678 | /* end confdefs.h. */ | |
6679 | #include <$ac_header> | |
6680 | _ACEOF | |
6681 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6682 | case "(($ac_try" in | |
6683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6684 | *) ac_try_echo=$ac_try;; | |
6685 | esac | |
6686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6687 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6688 | ac_status=$? | |
6689 | grep -v '^ *+' conftest.er1 >conftest.err | |
6690 | rm -f conftest.er1 | |
6691 | cat conftest.err >&5 | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); } >/dev/null && { | |
6694 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6695 | test ! -s conftest.err | |
6696 | }; then | |
6697 | ac_header_preproc=yes | |
6698 | else | |
6699 | echo "$as_me: failed program was:" >&5 | |
6700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6701 | ||
6702 | ac_header_preproc=no | |
6703 | fi | |
6704 | ||
6705 | rm -f conftest.err conftest.$ac_ext | |
6706 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6707 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6708 | ||
6709 | # So? What about this header? | |
6710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6711 | yes:no: ) | |
6712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6716 | ac_header_preproc=yes | |
6717 | ;; | |
6718 | no:yes:* ) | |
6719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6731 | ||
6732 | ;; | |
6733 | esac | |
6734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6738 | else | |
6739 | eval "$as_ac_Header=\$ac_header_preproc" | |
6740 | fi | |
6741 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6743 | echo "${ECHO_T}$ac_res" >&6; } | |
6744 | ||
6745 | fi | |
6746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6747 | cat >>confdefs.h <<_ACEOF | |
6748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6749 | _ACEOF | |
6750 | ||
6751 | fi | |
6752 | ||
6753 | done | |
6754 | ||
6755 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6756 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
6757 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6759 | else | |
6760 | if test "$cross_compiling" = yes; then | |
6761 | ac_cv_func_malloc_0_nonnull=no | |
6762 | else | |
6763 | cat >conftest.$ac_ext <<_ACEOF | |
6764 | /* confdefs.h. */ | |
6765 | _ACEOF | |
6766 | cat confdefs.h >>conftest.$ac_ext | |
6767 | cat >>conftest.$ac_ext <<_ACEOF | |
6768 | /* end confdefs.h. */ | |
6769 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6770 | # include <stdlib.h> | |
6771 | #else | |
6772 | char *malloc (); | |
6773 | #endif | |
6774 | ||
6775 | int | |
6776 | main () | |
6777 | { | |
6778 | return ! malloc (0); | |
6779 | ; | |
6780 | return 0; | |
6781 | } | |
6782 | _ACEOF | |
6783 | rm -f conftest$ac_exeext | |
6784 | if { (ac_try="$ac_link" | |
6785 | case "(($ac_try" in | |
6786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6787 | *) ac_try_echo=$ac_try;; | |
6788 | esac | |
6789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6790 | (eval "$ac_link") 2>&5 | |
6791 | ac_status=$? | |
6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6794 | { (case "(($ac_try" in | |
6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6796 | *) ac_try_echo=$ac_try;; | |
6797 | esac | |
6798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6799 | (eval "$ac_try") 2>&5 | |
6800 | ac_status=$? | |
6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6802 | (exit $ac_status); }; }; then | |
6803 | ac_cv_func_malloc_0_nonnull=yes | |
6804 | else | |
6805 | echo "$as_me: program exited with status $ac_status" >&5 | |
6806 | echo "$as_me: failed program was:" >&5 | |
6807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6808 | ||
6809 | ( exit $ac_status ) | |
6810 | ac_cv_func_malloc_0_nonnull=no | |
6811 | fi | |
6812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6813 | fi | |
6814 | ||
6815 | ||
6816 | fi | |
6817 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6818 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
6819 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6820 | ||
6821 | cat >>confdefs.h <<\_ACEOF | |
6822 | #define HAVE_MALLOC 1 | |
6823 | _ACEOF | |
6824 | ||
6825 | else | |
6826 | cat >>confdefs.h <<\_ACEOF | |
6827 | #define HAVE_MALLOC 0 | |
6828 | _ACEOF | |
6829 | ||
6830 | case " $LIBOBJS " in | |
6831 | *" malloc.$ac_objext "* ) ;; | |
6832 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6833 | ;; | |
6834 | esac | |
6835 | ||
6836 | ||
6837 | cat >>confdefs.h <<\_ACEOF | |
6838 | #define malloc rpl_malloc | |
6839 | _ACEOF | |
6840 | ||
6841 | fi | |
6842 | ||
6843 | ||
6844 | ||
6845 | ||
6846 | ||
6847 | for ac_header in sys/select.h sys/socket.h | |
6848 | do | |
6849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6850 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6855 | fi | |
6856 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6857 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6858 | echo "${ECHO_T}$ac_res" >&6; } | |
6859 | else | |
6860 | # Is the header compilable? | |
6861 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
6863 | cat >conftest.$ac_ext <<_ACEOF | |
6864 | /* confdefs.h. */ | |
6865 | _ACEOF | |
6866 | cat confdefs.h >>conftest.$ac_ext | |
6867 | cat >>conftest.$ac_ext <<_ACEOF | |
6868 | /* end confdefs.h. */ | |
6869 | $ac_includes_default | |
6870 | #include <$ac_header> | |
6871 | _ACEOF | |
6872 | rm -f conftest.$ac_objext | |
6873 | if { (ac_try="$ac_compile" | |
6874 | case "(($ac_try" in | |
6875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6876 | *) ac_try_echo=$ac_try;; | |
6877 | esac | |
6878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6879 | (eval "$ac_compile") 2>conftest.er1 | |
6880 | ac_status=$? | |
6881 | grep -v '^ *+' conftest.er1 >conftest.err | |
6882 | rm -f conftest.er1 | |
6883 | cat conftest.err >&5 | |
6884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6885 | (exit $ac_status); } && { | |
6886 | test -z "$ac_c_werror_flag" || | |
6887 | test ! -s conftest.err | |
6888 | } && test -s conftest.$ac_objext; then | |
6889 | ac_header_compiler=yes | |
6890 | else | |
6891 | echo "$as_me: failed program was:" >&5 | |
6892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6893 | ||
6894 | ac_header_compiler=no | |
6895 | fi | |
6896 | ||
6897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6898 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6899 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6900 | ||
6901 | # Is the header present? | |
6902 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6903 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
6904 | cat >conftest.$ac_ext <<_ACEOF | |
6905 | /* confdefs.h. */ | |
6906 | _ACEOF | |
6907 | cat confdefs.h >>conftest.$ac_ext | |
6908 | cat >>conftest.$ac_ext <<_ACEOF | |
6909 | /* end confdefs.h. */ | |
6910 | #include <$ac_header> | |
6911 | _ACEOF | |
6912 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6913 | case "(($ac_try" in | |
6914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6915 | *) ac_try_echo=$ac_try;; | |
6916 | esac | |
6917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6918 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6919 | ac_status=$? | |
6920 | grep -v '^ *+' conftest.er1 >conftest.err | |
6921 | rm -f conftest.er1 | |
6922 | cat conftest.err >&5 | |
6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6924 | (exit $ac_status); } >/dev/null && { | |
6925 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6926 | test ! -s conftest.err | |
6927 | }; then | |
6928 | ac_header_preproc=yes | |
6929 | else | |
6930 | echo "$as_me: failed program was:" >&5 | |
6931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6932 | ||
6933 | ac_header_preproc=no | |
6934 | fi | |
6935 | ||
6936 | rm -f conftest.err conftest.$ac_ext | |
6937 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6938 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6939 | ||
6940 | # So? What about this header? | |
6941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6942 | yes:no: ) | |
6943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6947 | ac_header_preproc=yes | |
6948 | ;; | |
6949 | no:yes:* ) | |
6950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6962 | ||
6963 | ;; | |
6964 | esac | |
6965 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6966 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6967 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6969 | else | |
6970 | eval "$as_ac_Header=\$ac_header_preproc" | |
6971 | fi | |
6972 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6974 | echo "${ECHO_T}$ac_res" >&6; } | |
6975 | ||
6976 | fi | |
6977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6978 | cat >>confdefs.h <<_ACEOF | |
6979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6980 | _ACEOF | |
6981 | ||
6982 | fi | |
6983 | ||
6984 | done | |
6985 | ||
6986 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
6987 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
6988 | if test "${ac_cv_func_select_args+set}" = set; then | |
6989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6990 | else | |
6991 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | |
6992 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
6993 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
6994 | cat >conftest.$ac_ext <<_ACEOF | |
6995 | /* confdefs.h. */ | |
6996 | _ACEOF | |
6997 | cat confdefs.h >>conftest.$ac_ext | |
6998 | cat >>conftest.$ac_ext <<_ACEOF | |
6999 | /* end confdefs.h. */ | |
7000 | $ac_includes_default | |
7001 | #ifdef HAVE_SYS_SELECT_H | |
7002 | # include <sys/select.h> | |
7003 | #endif | |
7004 | #ifdef HAVE_SYS_SOCKET_H | |
7005 | # include <sys/socket.h> | |
7006 | #endif | |
7007 | ||
7008 | int | |
7009 | main () | |
7010 | { | |
7011 | extern int select ($ac_arg1, | |
7012 | $ac_arg234, $ac_arg234, $ac_arg234, | |
7013 | $ac_arg5); | |
7014 | ; | |
7015 | return 0; | |
7016 | } | |
7017 | _ACEOF | |
7018 | rm -f conftest.$ac_objext | |
7019 | if { (ac_try="$ac_compile" | |
7020 | case "(($ac_try" in | |
7021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7022 | *) ac_try_echo=$ac_try;; | |
7023 | esac | |
7024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7025 | (eval "$ac_compile") 2>conftest.er1 | |
7026 | ac_status=$? | |
7027 | grep -v '^ *+' conftest.er1 >conftest.err | |
7028 | rm -f conftest.er1 | |
7029 | cat conftest.err >&5 | |
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7031 | (exit $ac_status); } && { | |
7032 | test -z "$ac_c_werror_flag" || | |
7033 | test ! -s conftest.err | |
7034 | } && test -s conftest.$ac_objext; then | |
7035 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
7036 | else | |
7037 | echo "$as_me: failed program was:" >&5 | |
7038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7039 | ||
7040 | ||
7041 | fi | |
7042 | ||
7043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7044 | done | |
7045 | done | |
7046 | done | |
7047 | # Provide a safe default value. | |
7048 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
7049 | ||
7050 | fi | |
7051 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 | |
7052 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
7053 | ac_save_IFS=$IFS; IFS=',' | |
7054 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
7055 | IFS=$ac_save_IFS | |
7056 | shift | |
7057 | ||
7058 | cat >>confdefs.h <<_ACEOF | |
7059 | #define SELECT_TYPE_ARG1 $1 | |
7060 | _ACEOF | |
7061 | ||
7062 | ||
7063 | cat >>confdefs.h <<_ACEOF | |
7064 | #define SELECT_TYPE_ARG234 ($2) | |
7065 | _ACEOF | |
7066 | ||
7067 | ||
7068 | cat >>confdefs.h <<_ACEOF | |
7069 | #define SELECT_TYPE_ARG5 ($3) | |
7070 | _ACEOF | |
7071 | ||
7072 | rm -f conftest* | |
7073 | ||
7074 | ||
7075 | ||
7076 | ||
7077 | for ac_func in memset socket strerror | |
7078 | do | |
7079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7080 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7082 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7084 | else | |
7085 | cat >conftest.$ac_ext <<_ACEOF | |
7086 | /* confdefs.h. */ | |
7087 | _ACEOF | |
7088 | cat confdefs.h >>conftest.$ac_ext | |
7089 | cat >>conftest.$ac_ext <<_ACEOF | |
7090 | /* end confdefs.h. */ | |
7091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7093 | #define $ac_func innocuous_$ac_func | |
7094 | ||
7095 | /* System header to define __stub macros and hopefully few prototypes, | |
7096 | which can conflict with char $ac_func (); below. | |
7097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7098 | <limits.h> exists even on freestanding compilers. */ | |
7099 | ||
7100 | #ifdef __STDC__ | |
7101 | # include <limits.h> | |
7102 | #else | |
7103 | # include <assert.h> | |
7104 | #endif | |
7105 | ||
7106 | #undef $ac_func | |
7107 | ||
7108 | /* Override any GCC internal prototype to avoid an error. | |
7109 | Use char because int might match the return type of a GCC | |
7110 | builtin and then its argument prototype would still apply. */ | |
7111 | #ifdef __cplusplus | |
7112 | extern "C" | |
7113 | #endif | |
7114 | char $ac_func (); | |
7115 | /* The GNU C library defines this for functions which it implements | |
7116 | to always fail with ENOSYS. Some functions are actually named | |
7117 | something starting with __ and the normal name is an alias. */ | |
7118 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
7119 | choke me | |
7120 | #endif | |
7121 | ||
7122 | int | |
7123 | main () | |
7124 | { | |
7125 | return $ac_func (); | |
7126 | ; | |
7127 | return 0; | |
7128 | } | |
7129 | _ACEOF | |
7130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7131 | if { (ac_try="$ac_link" | |
7132 | case "(($ac_try" in | |
7133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7134 | *) ac_try_echo=$ac_try;; | |
7135 | esac | |
7136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7137 | (eval "$ac_link") 2>conftest.er1 | |
7138 | ac_status=$? | |
7139 | grep -v '^ *+' conftest.er1 >conftest.err | |
7140 | rm -f conftest.er1 | |
7141 | cat conftest.err >&5 | |
7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7143 | (exit $ac_status); } && { | |
7144 | test -z "$ac_c_werror_flag" || | |
7145 | test ! -s conftest.err | |
7146 | } && test -s conftest$ac_exeext && | |
7147 | $as_test_x conftest$ac_exeext; then | |
7148 | eval "$as_ac_var=yes" | |
7149 | else | |
7150 | echo "$as_me: failed program was:" >&5 | |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7152 | ||
7153 | eval "$as_ac_var=no" | |
7154 | fi | |
7155 | ||
7156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7157 | conftest$ac_exeext conftest.$ac_ext | |
7158 | fi | |
7159 | ac_res=`eval echo '${'$as_ac_var'}'` | |
7160 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7161 | echo "${ECHO_T}$ac_res" >&6; } | |
7162 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7163 | cat >>confdefs.h <<_ACEOF | |
7164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7165 | _ACEOF | |
7166 | ||
7167 | fi | |
7168 | done | |
7169 | ||
7170 | if test $ac_cv_c_compiler_gnu = yes; then | |
7171 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7172 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
7173 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7175 | else | |
7176 | ac_pattern="Autoconf.*'x'" | |
7177 | cat >conftest.$ac_ext <<_ACEOF | |
7178 | /* confdefs.h. */ | |
7179 | _ACEOF | |
7180 | cat confdefs.h >>conftest.$ac_ext | |
7181 | cat >>conftest.$ac_ext <<_ACEOF | |
7182 | /* end confdefs.h. */ | |
7183 | #include <sgtty.h> | |
7184 | Autoconf TIOCGETP | |
7185 | _ACEOF | |
7186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7187 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7188 | ac_cv_prog_gcc_traditional=yes | |
7189 | else | |
7190 | ac_cv_prog_gcc_traditional=no | |
7191 | fi | |
7192 | rm -f conftest* | |
7193 | ||
7194 | ||
7195 | if test $ac_cv_prog_gcc_traditional = no; then | |
7196 | cat >conftest.$ac_ext <<_ACEOF | |
7197 | /* confdefs.h. */ | |
7198 | _ACEOF | |
7199 | cat confdefs.h >>conftest.$ac_ext | |
7200 | cat >>conftest.$ac_ext <<_ACEOF | |
7201 | /* end confdefs.h. */ | |
7202 | #include <termio.h> | |
7203 | Autoconf TCGETA | |
7204 | _ACEOF | |
7205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7206 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7207 | ac_cv_prog_gcc_traditional=yes | |
7208 | fi | |
7209 | rm -f conftest* | |
7210 | ||
7211 | fi | |
7212 | fi | |
7213 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7214 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
7215 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7216 | CC="$CC -traditional" | |
7217 | fi | |
7218 | fi | |
7219 | ||
7220 | ||
7221 | ||
7222 | case "$target" in | |
7223 | *-solaris2*) | |
7224 | solaris2="yes" | |
7225 | cat >>confdefs.h <<_ACEOF | |
7226 | #define WRITEV_IOV 16 | |
7227 | _ACEOF | |
7228 | ||
7229 | ;; | |
7230 | *-freebsd*) | |
7231 | freebsd="yes" | |
7232 | cat >>confdefs.h <<_ACEOF | |
7233 | #define WRITEV_IOV 32 | |
7234 | _ACEOF | |
7235 | ||
7236 | ;; | |
7237 | *-netbsd*) | |
7238 | cat >>confdefs.h <<_ACEOF | |
7239 | #define WRITEV_IOV 32 | |
7240 | _ACEOF | |
7241 | ||
7242 | ;; | |
7243 | *-openbsd*) | |
7244 | cat >>confdefs.h <<_ACEOF | |
7245 | #define WRITEV_IOV 32 | |
7246 | _ACEOF | |
7247 | ||
7248 | ;; | |
7249 | *-linux*) | |
7250 | linux="yes" | |
7251 | cat >>confdefs.h <<_ACEOF | |
7252 | #define WRITEV_IOV 32 | |
7253 | _ACEOF | |
7254 | ||
7255 | ;; | |
7256 | *-darwin*) | |
7257 | cat >>confdefs.h <<_ACEOF | |
7258 | #define WRITEV_IOV 32 | |
7259 | _ACEOF | |
7260 | ||
7261 | ;; | |
7262 | esac | |
7263 | ||
7264 | ||
7265 | { echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5 | |
7266 | echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6; } | |
7267 | if test "$cross_compiling" = yes; then | |
7268 | { echo "$as_me:$LINENO: result: cross compiling" >&5 | |
7269 | echo "${ECHO_T}cross compiling" >&6; } | |
7270 | else | |
7271 | cat >conftest.$ac_ext <<_ACEOF | |
7272 | /* confdefs.h. */ | |
7273 | _ACEOF | |
7274 | cat confdefs.h >>conftest.$ac_ext | |
7275 | cat >>conftest.$ac_ext <<_ACEOF | |
7276 | /* end confdefs.h. */ | |
7277 | ||
7278 | #include <sys/types.h> | |
7279 | #include <stdio.h> | |
7280 | #include <errno.h> | |
7281 | main() | |
7282 | { | |
7283 | char *s = sys_errlist[0]; | |
7284 | exit(0); | |
7285 | } | |
7286 | ||
7287 | _ACEOF | |
7288 | rm -f conftest$ac_exeext | |
7289 | if { (ac_try="$ac_link" | |
7290 | case "(($ac_try" in | |
7291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7292 | *) ac_try_echo=$ac_try;; | |
7293 | esac | |
7294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7295 | (eval "$ac_link") 2>&5 | |
7296 | ac_status=$? | |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7298 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7299 | { (case "(($ac_try" in | |
7300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7301 | *) ac_try_echo=$ac_try;; | |
7302 | esac | |
7303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7304 | (eval "$ac_try") 2>&5 | |
7305 | ac_status=$? | |
7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7307 | (exit $ac_status); }; }; then | |
7308 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7309 | echo "${ECHO_T}yes" >&6; } | |
7310 | cat >>confdefs.h <<\_ACEOF | |
7311 | #define SYS_ERRLIST_DECLARED 1 | |
7312 | _ACEOF | |
7313 | ||
7314 | else | |
7315 | echo "$as_me: program exited with status $ac_status" >&5 | |
7316 | echo "$as_me: failed program was:" >&5 | |
7317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7318 | ||
7319 | ( exit $ac_status ) | |
7320 | { echo "$as_me:$LINENO: result: no" >&5 | |
7321 | echo "${ECHO_T}no" >&6; } | |
7322 | fi | |
7323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | ||
7328 | ||
7329 | save_LIBS="$LIBS" | |
7330 | ||
7331 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 | |
7332 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
7333 | ||
7334 | if test "X$cf_enable_openssl" != "Xno" ; then | |
7335 | cf_openssl_basedir="" | |
7336 | if test "X$cf_enable_openssl" != "Xauto" && | |
7337 | test "X$cf_enable_openssl" != "Xyes"; then | |
7338 | cf_openssl_basedir="${cf_enable_openssl}" | |
7339 | else | |
7340 | for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ | |
7341 | /opt /opt/openssl /usr/local/openssl ; do | |
7342 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
7343 | cf_openssl_basedir="${dirs}" | |
7344 | break | |
7345 | fi | |
7346 | done | |
7347 | unset dirs | |
7348 | fi | |
7349 | if test "X$cf_openssl_basedir" != "X" ; then | |
7350 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
7351 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
7352 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
7353 | else | |
7354 | cf_openssl_basedir="" | |
7355 | fi | |
7356 | else | |
7357 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
7358 | cf_openssl_basedir="/usr" | |
7359 | fi | |
7360 | fi | |
7361 | if test "X$cf_openssl_basedir" != "X" ; then | |
c1e4317a | 7362 | LIBS="$save_LIBS $SSL_LIBS -lssl" |
bf042c35 | 7363 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
7364 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
7365 | cf_enable_openssl="yes" | |
7366 | encryption="enabled" | |
7367 | cat >>confdefs.h <<\_ACEOF | |
c1e4317a | 7368 | #define USE_SSL 1 |
bf042c35 | 7369 | _ACEOF |
7370 | ||
bf042c35 | 7371 | else |
7372 | { echo "$as_me:$LINENO: result: not found. Please check your path." >&5 | |
7373 | echo "${ECHO_T}not found. Please check your path." >&6; } | |
7374 | cf_enable_openssl="no" | |
7375 | encryption="disabled" | |
7376 | fi | |
7377 | unset cf_openssl_basedir | |
7378 | else | |
7379 | encryption="disabled" | |
7380 | { echo "$as_me:$LINENO: result: disabled" >&5 | |
7381 | echo "${ECHO_T}disabled" >&6; } | |
7382 | fi | |
7383 | ||
7384 | unset save_LIBS | |
7385 | ||
7386 | ||
7387 | ||
7388 | if test "$check_sengine" = "yes"; then | |
7389 | engine="select" | |
7390 | if test "$freebsd" = "yes"; then | |
7391 | { echo "$as_me:$LINENO: checking for kevent" >&5 | |
7392 | echo $ECHO_N "checking for kevent... $ECHO_C" >&6; } | |
7393 | if test "${ac_cv_func_kevent+set}" = set; then | |
7394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7395 | else | |
7396 | cat >conftest.$ac_ext <<_ACEOF | |
7397 | /* confdefs.h. */ | |
7398 | _ACEOF | |
7399 | cat confdefs.h >>conftest.$ac_ext | |
7400 | cat >>conftest.$ac_ext <<_ACEOF | |
7401 | /* end confdefs.h. */ | |
7402 | /* Define kevent to an innocuous variant, in case <limits.h> declares kevent. | |
7403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7404 | #define kevent innocuous_kevent | |
7405 | ||
7406 | /* System header to define __stub macros and hopefully few prototypes, | |
7407 | which can conflict with char kevent (); below. | |
7408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7409 | <limits.h> exists even on freestanding compilers. */ | |
7410 | ||
7411 | #ifdef __STDC__ | |
7412 | # include <limits.h> | |
7413 | #else | |
7414 | # include <assert.h> | |
7415 | #endif | |
7416 | ||
7417 | #undef kevent | |
7418 | ||
7419 | /* Override any GCC internal prototype to avoid an error. | |
7420 | Use char because int might match the return type of a GCC | |
7421 | builtin and then its argument prototype would still apply. */ | |
7422 | #ifdef __cplusplus | |
7423 | extern "C" | |
7424 | #endif | |
7425 | char kevent (); | |
7426 | /* The GNU C library defines this for functions which it implements | |
7427 | to always fail with ENOSYS. Some functions are actually named | |
7428 | something starting with __ and the normal name is an alias. */ | |
7429 | #if defined __stub_kevent || defined __stub___kevent | |
7430 | choke me | |
7431 | #endif | |
7432 | ||
7433 | int | |
7434 | main () | |
7435 | { | |
7436 | return kevent (); | |
7437 | ; | |
7438 | return 0; | |
7439 | } | |
7440 | _ACEOF | |
7441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7442 | if { (ac_try="$ac_link" | |
7443 | case "(($ac_try" in | |
7444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7445 | *) ac_try_echo=$ac_try;; | |
7446 | esac | |
7447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7448 | (eval "$ac_link") 2>conftest.er1 | |
7449 | ac_status=$? | |
7450 | grep -v '^ *+' conftest.er1 >conftest.err | |
7451 | rm -f conftest.er1 | |
7452 | cat conftest.err >&5 | |
7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7454 | (exit $ac_status); } && { | |
7455 | test -z "$ac_c_werror_flag" || | |
7456 | test ! -s conftest.err | |
7457 | } && test -s conftest$ac_exeext && | |
7458 | $as_test_x conftest$ac_exeext; then | |
7459 | ac_cv_func_kevent=yes | |
7460 | else | |
7461 | echo "$as_me: failed program was:" >&5 | |
7462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7463 | ||
7464 | ac_cv_func_kevent=no | |
7465 | fi | |
7466 | ||
7467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7468 | conftest$ac_exeext conftest.$ac_ext | |
7469 | fi | |
7470 | { echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5 | |
7471 | echo "${ECHO_T}$ac_cv_func_kevent" >&6; } | |
7472 | if test $ac_cv_func_kevent = yes; then | |
7473 | engine="kqueue" | |
7474 | fi | |
7475 | ||
7476 | elif test "$solaris2" = "yes"; then | |
7477 | engine="poll" | |
7478 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
7479 | { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5 | |
7480 | echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; } | |
7481 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7483 | fi | |
7484 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5 | |
7485 | echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; } | |
7486 | else | |
7487 | # Is the header compilable? | |
7488 | { echo "$as_me:$LINENO: checking sys/devpoll.h usability" >&5 | |
7489 | echo $ECHO_N "checking sys/devpoll.h usability... $ECHO_C" >&6; } | |
7490 | cat >conftest.$ac_ext <<_ACEOF | |
7491 | /* confdefs.h. */ | |
7492 | _ACEOF | |
7493 | cat confdefs.h >>conftest.$ac_ext | |
7494 | cat >>conftest.$ac_ext <<_ACEOF | |
7495 | /* end confdefs.h. */ | |
7496 | $ac_includes_default | |
7497 | #include <sys/devpoll.h> | |
7498 | _ACEOF | |
7499 | rm -f conftest.$ac_objext | |
7500 | if { (ac_try="$ac_compile" | |
7501 | case "(($ac_try" in | |
7502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7503 | *) ac_try_echo=$ac_try;; | |
7504 | esac | |
7505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7506 | (eval "$ac_compile") 2>conftest.er1 | |
7507 | ac_status=$? | |
7508 | grep -v '^ *+' conftest.er1 >conftest.err | |
7509 | rm -f conftest.er1 | |
7510 | cat conftest.err >&5 | |
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7512 | (exit $ac_status); } && { | |
7513 | test -z "$ac_c_werror_flag" || | |
7514 | test ! -s conftest.err | |
7515 | } && test -s conftest.$ac_objext; then | |
7516 | ac_header_compiler=yes | |
7517 | else | |
7518 | echo "$as_me: failed program was:" >&5 | |
7519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7520 | ||
7521 | ac_header_compiler=no | |
7522 | fi | |
7523 | ||
7524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7525 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7526 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7527 | ||
7528 | # Is the header present? | |
7529 | { echo "$as_me:$LINENO: checking sys/devpoll.h presence" >&5 | |
7530 | echo $ECHO_N "checking sys/devpoll.h presence... $ECHO_C" >&6; } | |
7531 | cat >conftest.$ac_ext <<_ACEOF | |
7532 | /* confdefs.h. */ | |
7533 | _ACEOF | |
7534 | cat confdefs.h >>conftest.$ac_ext | |
7535 | cat >>conftest.$ac_ext <<_ACEOF | |
7536 | /* end confdefs.h. */ | |
7537 | #include <sys/devpoll.h> | |
7538 | _ACEOF | |
7539 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7540 | case "(($ac_try" in | |
7541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7542 | *) ac_try_echo=$ac_try;; | |
7543 | esac | |
7544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7545 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7546 | ac_status=$? | |
7547 | grep -v '^ *+' conftest.er1 >conftest.err | |
7548 | rm -f conftest.er1 | |
7549 | cat conftest.err >&5 | |
7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7551 | (exit $ac_status); } >/dev/null && { | |
7552 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7553 | test ! -s conftest.err | |
7554 | }; then | |
7555 | ac_header_preproc=yes | |
7556 | else | |
7557 | echo "$as_me: failed program was:" >&5 | |
7558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7559 | ||
7560 | ac_header_preproc=no | |
7561 | fi | |
7562 | ||
7563 | rm -f conftest.err conftest.$ac_ext | |
7564 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7565 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7566 | ||
7567 | # So? What about this header? | |
7568 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7569 | yes:no: ) | |
7570 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7571 | echo "$as_me: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7572 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&5 | |
7573 | echo "$as_me: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&2;} | |
7574 | ac_header_preproc=yes | |
7575 | ;; | |
7576 | no:yes:* ) | |
7577 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: present but cannot be compiled" >&5 | |
7578 | echo "$as_me: WARNING: sys/devpoll.h: present but cannot be compiled" >&2;} | |
7579 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&5 | |
7580 | echo "$as_me: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&2;} | |
7581 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: see the Autoconf documentation" >&5 | |
7582 | echo "$as_me: WARNING: sys/devpoll.h: see the Autoconf documentation" >&2;} | |
7583 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7584 | echo "$as_me: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7585 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&5 | |
7586 | echo "$as_me: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&2;} | |
7587 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&5 | |
7588 | echo "$as_me: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&2;} | |
7589 | ||
7590 | ;; | |
7591 | esac | |
7592 | { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5 | |
7593 | echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; } | |
7594 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
7595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7596 | else | |
7597 | ac_cv_header_sys_devpoll_h=$ac_header_preproc | |
7598 | fi | |
7599 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5 | |
7600 | echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; } | |
7601 | ||
7602 | fi | |
7603 | if test $ac_cv_header_sys_devpoll_h = yes; then | |
7604 | engine="devpoll" | |
7605 | fi | |
7606 | ||
7607 | ||
7608 | elif test "$linux" = "yes"; then | |
7609 | { echo "$as_me:$LINENO: checking for poll" >&5 | |
7610 | echo $ECHO_N "checking for poll... $ECHO_C" >&6; } | |
7611 | if test "${ac_cv_func_poll+set}" = set; then | |
7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7613 | else | |
7614 | cat >conftest.$ac_ext <<_ACEOF | |
7615 | /* confdefs.h. */ | |
7616 | _ACEOF | |
7617 | cat confdefs.h >>conftest.$ac_ext | |
7618 | cat >>conftest.$ac_ext <<_ACEOF | |
7619 | /* end confdefs.h. */ | |
7620 | /* Define poll to an innocuous variant, in case <limits.h> declares poll. | |
7621 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7622 | #define poll innocuous_poll | |
7623 | ||
7624 | /* System header to define __stub macros and hopefully few prototypes, | |
7625 | which can conflict with char poll (); below. | |
7626 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7627 | <limits.h> exists even on freestanding compilers. */ | |
7628 | ||
7629 | #ifdef __STDC__ | |
7630 | # include <limits.h> | |
7631 | #else | |
7632 | # include <assert.h> | |
7633 | #endif | |
7634 | ||
7635 | #undef poll | |
7636 | ||
7637 | /* Override any GCC internal prototype to avoid an error. | |
7638 | Use char because int might match the return type of a GCC | |
7639 | builtin and then its argument prototype would still apply. */ | |
7640 | #ifdef __cplusplus | |
7641 | extern "C" | |
7642 | #endif | |
7643 | char poll (); | |
7644 | /* The GNU C library defines this for functions which it implements | |
7645 | to always fail with ENOSYS. Some functions are actually named | |
7646 | something starting with __ and the normal name is an alias. */ | |
7647 | #if defined __stub_poll || defined __stub___poll | |
7648 | choke me | |
7649 | #endif | |
7650 | ||
7651 | int | |
7652 | main () | |
7653 | { | |
7654 | return poll (); | |
7655 | ; | |
7656 | return 0; | |
7657 | } | |
7658 | _ACEOF | |
7659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7660 | if { (ac_try="$ac_link" | |
7661 | case "(($ac_try" in | |
7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7663 | *) ac_try_echo=$ac_try;; | |
7664 | esac | |
7665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7666 | (eval "$ac_link") 2>conftest.er1 | |
7667 | ac_status=$? | |
7668 | grep -v '^ *+' conftest.er1 >conftest.err | |
7669 | rm -f conftest.er1 | |
7670 | cat conftest.err >&5 | |
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7672 | (exit $ac_status); } && { | |
7673 | test -z "$ac_c_werror_flag" || | |
7674 | test ! -s conftest.err | |
7675 | } && test -s conftest$ac_exeext && | |
7676 | $as_test_x conftest$ac_exeext; then | |
7677 | ac_cv_func_poll=yes | |
7678 | else | |
7679 | echo "$as_me: failed program was:" >&5 | |
7680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7681 | ||
7682 | ac_cv_func_poll=no | |
7683 | fi | |
7684 | ||
7685 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7686 | conftest$ac_exeext conftest.$ac_ext | |
7687 | fi | |
7688 | { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 | |
7689 | echo "${ECHO_T}$ac_cv_func_poll" >&6; } | |
7690 | if test $ac_cv_func_poll = yes; then | |
7691 | engine="poll" | |
7692 | fi | |
7693 | ||
7694 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
7695 | { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 | |
7696 | echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } | |
7697 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
7698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7699 | fi | |
7700 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 | |
7701 | echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } | |
7702 | else | |
7703 | # Is the header compilable? | |
7704 | { echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5 | |
7705 | echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; } | |
7706 | cat >conftest.$ac_ext <<_ACEOF | |
7707 | /* confdefs.h. */ | |
7708 | _ACEOF | |
7709 | cat confdefs.h >>conftest.$ac_ext | |
7710 | cat >>conftest.$ac_ext <<_ACEOF | |
7711 | /* end confdefs.h. */ | |
7712 | $ac_includes_default | |
7713 | #include <sys/epoll.h> | |
7714 | _ACEOF | |
7715 | rm -f conftest.$ac_objext | |
7716 | if { (ac_try="$ac_compile" | |
7717 | case "(($ac_try" in | |
7718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7719 | *) ac_try_echo=$ac_try;; | |
7720 | esac | |
7721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7722 | (eval "$ac_compile") 2>conftest.er1 | |
7723 | ac_status=$? | |
7724 | grep -v '^ *+' conftest.er1 >conftest.err | |
7725 | rm -f conftest.er1 | |
7726 | cat conftest.err >&5 | |
7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7728 | (exit $ac_status); } && { | |
7729 | test -z "$ac_c_werror_flag" || | |
7730 | test ! -s conftest.err | |
7731 | } && test -s conftest.$ac_objext; then | |
7732 | ac_header_compiler=yes | |
7733 | else | |
7734 | echo "$as_me: failed program was:" >&5 | |
7735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7736 | ||
7737 | ac_header_compiler=no | |
7738 | fi | |
7739 | ||
7740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7741 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7742 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7743 | ||
7744 | # Is the header present? | |
7745 | { echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5 | |
7746 | echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; } | |
7747 | cat >conftest.$ac_ext <<_ACEOF | |
7748 | /* confdefs.h. */ | |
7749 | _ACEOF | |
7750 | cat confdefs.h >>conftest.$ac_ext | |
7751 | cat >>conftest.$ac_ext <<_ACEOF | |
7752 | /* end confdefs.h. */ | |
7753 | #include <sys/epoll.h> | |
7754 | _ACEOF | |
7755 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7756 | case "(($ac_try" in | |
7757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7758 | *) ac_try_echo=$ac_try;; | |
7759 | esac | |
7760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7761 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7762 | ac_status=$? | |
7763 | grep -v '^ *+' conftest.er1 >conftest.err | |
7764 | rm -f conftest.er1 | |
7765 | cat conftest.err >&5 | |
7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7767 | (exit $ac_status); } >/dev/null && { | |
7768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7769 | test ! -s conftest.err | |
7770 | }; then | |
7771 | ac_header_preproc=yes | |
7772 | else | |
7773 | echo "$as_me: failed program was:" >&5 | |
7774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7775 | ||
7776 | ac_header_preproc=no | |
7777 | fi | |
7778 | ||
7779 | rm -f conftest.err conftest.$ac_ext | |
7780 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7781 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7782 | ||
7783 | # So? What about this header? | |
7784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7785 | yes:no: ) | |
7786 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7787 | echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7788 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5 | |
7789 | echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;} | |
7790 | ac_header_preproc=yes | |
7791 | ;; | |
7792 | no:yes:* ) | |
7793 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5 | |
7794 | echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;} | |
7795 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5 | |
7796 | echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;} | |
7797 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5 | |
7798 | echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;} | |
7799 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7800 | echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7801 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5 | |
7802 | echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;} | |
7803 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5 | |
7804 | echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;} | |
7805 | ||
7806 | ;; | |
7807 | esac | |
7808 | { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 | |
7809 | echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } | |
7810 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
7811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7812 | else | |
7813 | ac_cv_header_sys_epoll_h=$ac_header_preproc | |
7814 | fi | |
7815 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 | |
7816 | echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } | |
7817 | ||
7818 | fi | |
7819 | if test $ac_cv_header_sys_epoll_h = yes; then | |
7820 | HAVE_EPOLL_H=yes | |
7821 | else | |
7822 | HAVE_EPOLL_H=no | |
7823 | fi | |
7824 | ||
7825 | ||
7826 | { echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5 | |
7827 | echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6; } | |
7828 | if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then | |
7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7830 | else | |
7831 | ac_check_lib_save_LIBS=$LIBS | |
7832 | LIBS="-lepoll $LIBS" | |
7833 | cat >conftest.$ac_ext <<_ACEOF | |
7834 | /* confdefs.h. */ | |
7835 | _ACEOF | |
7836 | cat confdefs.h >>conftest.$ac_ext | |
7837 | cat >>conftest.$ac_ext <<_ACEOF | |
7838 | /* end confdefs.h. */ | |
7839 | ||
7840 | /* Override any GCC internal prototype to avoid an error. | |
7841 | Use char because int might match the return type of a GCC | |
7842 | builtin and then its argument prototype would still apply. */ | |
7843 | #ifdef __cplusplus | |
7844 | extern "C" | |
7845 | #endif | |
7846 | char epoll_create (); | |
7847 | int | |
7848 | main () | |
7849 | { | |
7850 | return epoll_create (); | |
7851 | ; | |
7852 | return 0; | |
7853 | } | |
7854 | _ACEOF | |
7855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7856 | if { (ac_try="$ac_link" | |
7857 | case "(($ac_try" in | |
7858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7859 | *) ac_try_echo=$ac_try;; | |
7860 | esac | |
7861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7862 | (eval "$ac_link") 2>conftest.er1 | |
7863 | ac_status=$? | |
7864 | grep -v '^ *+' conftest.er1 >conftest.err | |
7865 | rm -f conftest.er1 | |
7866 | cat conftest.err >&5 | |
7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7868 | (exit $ac_status); } && { | |
7869 | test -z "$ac_c_werror_flag" || | |
7870 | test ! -s conftest.err | |
7871 | } && test -s conftest$ac_exeext && | |
7872 | $as_test_x conftest$ac_exeext; then | |
7873 | ac_cv_lib_epoll_epoll_create=yes | |
7874 | else | |
7875 | echo "$as_me: failed program was:" >&5 | |
7876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7877 | ||
7878 | ac_cv_lib_epoll_epoll_create=no | |
7879 | fi | |
7880 | ||
7881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7882 | conftest$ac_exeext conftest.$ac_ext | |
7883 | LIBS=$ac_check_lib_save_LIBS | |
7884 | fi | |
7885 | { echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5 | |
7886 | echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6; } | |
7887 | if test $ac_cv_lib_epoll_epoll_create = yes; then | |
7888 | LIBS="$LIBS -lepoll"; have_epoll_lib="yes"; engine="epoll" | |
7889 | else | |
7890 | have_epoll_lib="no" | |
7891 | fi | |
7892 | ||
7893 | if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes no"; then | |
7894 | { echo "$as_me:$LINENO: checking for epoll_create without -lepoll" >&5 | |
7895 | echo $ECHO_N "checking for epoll_create without -lepoll... $ECHO_C" >&6; } | |
7896 | if test "$cross_compiling" = yes; then | |
7897 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
7898 | See \`config.log' for more details." >&5 | |
7899 | echo "$as_me: error: cannot run test program while cross compiling | |
7900 | See \`config.log' for more details." >&2;} | |
7901 | { (exit 1); exit 1; }; } | |
7902 | else | |
7903 | cat >conftest.$ac_ext <<_ACEOF | |
7904 | /* confdefs.h. */ | |
7905 | _ACEOF | |
7906 | cat confdefs.h >>conftest.$ac_ext | |
7907 | cat >>conftest.$ac_ext <<_ACEOF | |
7908 | /* end confdefs.h. */ | |
7909 | ||
7910 | #include <stdint.h> | |
7911 | #include <sys/epoll.h> | |
7912 | #include <errno.h> | |
7913 | ||
7914 | #include <asm/unistd.h> | |
7915 | ||
7916 | int main(int argc, char **argv) { return epoll_create(5) < 1; } | |
7917 | ||
7918 | _ACEOF | |
7919 | rm -f conftest$ac_exeext | |
7920 | if { (ac_try="$ac_link" | |
7921 | case "(($ac_try" in | |
7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7923 | *) ac_try_echo=$ac_try;; | |
7924 | esac | |
7925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7926 | (eval "$ac_link") 2>&5 | |
7927 | ac_status=$? | |
7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7930 | { (case "(($ac_try" in | |
7931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7932 | *) ac_try_echo=$ac_try;; | |
7933 | esac | |
7934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7935 | (eval "$ac_try") 2>&5 | |
7936 | ac_status=$? | |
7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7938 | (exit $ac_status); }; }; then | |
7939 | have_epoll_lib="yes" | |
7940 | else | |
7941 | echo "$as_me: program exited with status $ac_status" >&5 | |
7942 | echo "$as_me: failed program was:" >&5 | |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7944 | ||
7945 | ( exit $ac_status ) | |
7946 | have_epoll_lib="no" | |
7947 | fi | |
7948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | { echo "$as_me:$LINENO: result: $have_epoll_lib" >&5 | |
7953 | echo "${ECHO_T}$have_epoll_lib" >&6; } | |
7954 | fi | |
7955 | if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes yes"; then | |
7956 | engine="epoll"; | |
7957 | fi | |
7958 | else | |
7959 | { echo "$as_me:$LINENO: checking for poll" >&5 | |
7960 | echo $ECHO_N "checking for poll... $ECHO_C" >&6; } | |
7961 | if test "${ac_cv_func_poll+set}" = set; then | |
7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7963 | else | |
7964 | cat >conftest.$ac_ext <<_ACEOF | |
7965 | /* confdefs.h. */ | |
7966 | _ACEOF | |
7967 | cat confdefs.h >>conftest.$ac_ext | |
7968 | cat >>conftest.$ac_ext <<_ACEOF | |
7969 | /* end confdefs.h. */ | |
7970 | /* Define poll to an innocuous variant, in case <limits.h> declares poll. | |
7971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7972 | #define poll innocuous_poll | |
7973 | ||
7974 | /* System header to define __stub macros and hopefully few prototypes, | |
7975 | which can conflict with char poll (); below. | |
7976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7977 | <limits.h> exists even on freestanding compilers. */ | |
7978 | ||
7979 | #ifdef __STDC__ | |
7980 | # include <limits.h> | |
7981 | #else | |
7982 | # include <assert.h> | |
7983 | #endif | |
7984 | ||
7985 | #undef poll | |
7986 | ||
7987 | /* Override any GCC internal prototype to avoid an error. | |
7988 | Use char because int might match the return type of a GCC | |
7989 | builtin and then its argument prototype would still apply. */ | |
7990 | #ifdef __cplusplus | |
7991 | extern "C" | |
7992 | #endif | |
7993 | char poll (); | |
7994 | /* The GNU C library defines this for functions which it implements | |
7995 | to always fail with ENOSYS. Some functions are actually named | |
7996 | something starting with __ and the normal name is an alias. */ | |
7997 | #if defined __stub_poll || defined __stub___poll | |
7998 | choke me | |
7999 | #endif | |
8000 | ||
8001 | int | |
8002 | main () | |
8003 | { | |
8004 | return poll (); | |
8005 | ; | |
8006 | return 0; | |
8007 | } | |
8008 | _ACEOF | |
8009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8010 | if { (ac_try="$ac_link" | |
8011 | case "(($ac_try" in | |
8012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8013 | *) ac_try_echo=$ac_try;; | |
8014 | esac | |
8015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8016 | (eval "$ac_link") 2>conftest.er1 | |
8017 | ac_status=$? | |
8018 | grep -v '^ *+' conftest.er1 >conftest.err | |
8019 | rm -f conftest.er1 | |
8020 | cat conftest.err >&5 | |
8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8022 | (exit $ac_status); } && { | |
8023 | test -z "$ac_c_werror_flag" || | |
8024 | test ! -s conftest.err | |
8025 | } && test -s conftest$ac_exeext && | |
8026 | $as_test_x conftest$ac_exeext; then | |
8027 | ac_cv_func_poll=yes | |
8028 | else | |
8029 | echo "$as_me: failed program was:" >&5 | |
8030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8031 | ||
8032 | ac_cv_func_poll=no | |
8033 | fi | |
8034 | ||
8035 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8036 | conftest$ac_exeext conftest.$ac_ext | |
8037 | fi | |
8038 | { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 | |
8039 | echo "${ECHO_T}$ac_cv_func_poll" >&6; } | |
8040 | if test $ac_cv_func_poll = yes; then | |
8041 | engine="poll" | |
8042 | fi | |
8043 | ||
8044 | fi | |
8045 | elif test "$check_sengine" = "kqueue"; then | |
8046 | { echo "$as_me:$LINENO: checking for kevent" >&5 | |
8047 | echo $ECHO_N "checking for kevent... $ECHO_C" >&6; } | |
8048 | if test "${ac_cv_func_kevent+set}" = set; then | |
8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8050 | else | |
8051 | cat >conftest.$ac_ext <<_ACEOF | |
8052 | /* confdefs.h. */ | |
8053 | _ACEOF | |
8054 | cat confdefs.h >>conftest.$ac_ext | |
8055 | cat >>conftest.$ac_ext <<_ACEOF | |
8056 | /* end confdefs.h. */ | |
8057 | /* Define kevent to an innocuous variant, in case <limits.h> declares kevent. | |
8058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8059 | #define kevent innocuous_kevent | |
8060 | ||
8061 | /* System header to define __stub macros and hopefully few prototypes, | |
8062 | which can conflict with char kevent (); below. | |
8063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8064 | <limits.h> exists even on freestanding compilers. */ | |
8065 | ||
8066 | #ifdef __STDC__ | |
8067 | # include <limits.h> | |
8068 | #else | |
8069 | # include <assert.h> | |
8070 | #endif | |
8071 | ||
8072 | #undef kevent | |
8073 | ||
8074 | /* Override any GCC internal prototype to avoid an error. | |
8075 | Use char because int might match the return type of a GCC | |
8076 | builtin and then its argument prototype would still apply. */ | |
8077 | #ifdef __cplusplus | |
8078 | extern "C" | |
8079 | #endif | |
8080 | char kevent (); | |
8081 | /* The GNU C library defines this for functions which it implements | |
8082 | to always fail with ENOSYS. Some functions are actually named | |
8083 | something starting with __ and the normal name is an alias. */ | |
8084 | #if defined __stub_kevent || defined __stub___kevent | |
8085 | choke me | |
8086 | #endif | |
8087 | ||
8088 | int | |
8089 | main () | |
8090 | { | |
8091 | return kevent (); | |
8092 | ; | |
8093 | return 0; | |
8094 | } | |
8095 | _ACEOF | |
8096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8097 | if { (ac_try="$ac_link" | |
8098 | case "(($ac_try" in | |
8099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8100 | *) ac_try_echo=$ac_try;; | |
8101 | esac | |
8102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8103 | (eval "$ac_link") 2>conftest.er1 | |
8104 | ac_status=$? | |
8105 | grep -v '^ *+' conftest.er1 >conftest.err | |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8109 | (exit $ac_status); } && { | |
8110 | test -z "$ac_c_werror_flag" || | |
8111 | test ! -s conftest.err | |
8112 | } && test -s conftest$ac_exeext && | |
8113 | $as_test_x conftest$ac_exeext; then | |
8114 | ac_cv_func_kevent=yes | |
8115 | else | |
8116 | echo "$as_me: failed program was:" >&5 | |
8117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8118 | ||
8119 | ac_cv_func_kevent=no | |
8120 | fi | |
8121 | ||
8122 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8123 | conftest$ac_exeext conftest.$ac_ext | |
8124 | fi | |
8125 | { echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5 | |
8126 | echo "${ECHO_T}$ac_cv_func_kevent" >&6; } | |
8127 | if test $ac_cv_func_kevent = yes; then | |
8128 | engine="kqueue" | |
8129 | fi | |
8130 | ||
8131 | if test "X$engine" = "X"; then | |
8132 | { echo "$as_me:$LINENO: " >&5 | |
8133 | echo "$as_me: " >&6;} | |
8134 | { echo "$as_me:$LINENO: kqueue not supported on this platform!" >&5 | |
8135 | echo "$as_me: kqueue not supported on this platform!" >&6;} | |
8136 | { { echo "$as_me:$LINENO: error: " >&5 | |
8137 | echo "$as_me: error: " >&2;} | |
8138 | { (exit 1); exit 1; }; } | |
8139 | fi | |
8140 | { echo "$as_me:$LINENO: setting socketengine type to kqueue" >&5 | |
8141 | echo "$as_me: setting socketengine type to kqueue" >&6;} | |
8142 | elif test "$check_sengine" = "poll"; then | |
8143 | { echo "$as_me:$LINENO: checking for poll" >&5 | |
8144 | echo $ECHO_N "checking for poll... $ECHO_C" >&6; } | |
8145 | if test "${ac_cv_func_poll+set}" = set; then | |
8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8147 | else | |
8148 | cat >conftest.$ac_ext <<_ACEOF | |
8149 | /* confdefs.h. */ | |
8150 | _ACEOF | |
8151 | cat confdefs.h >>conftest.$ac_ext | |
8152 | cat >>conftest.$ac_ext <<_ACEOF | |
8153 | /* end confdefs.h. */ | |
8154 | /* Define poll to an innocuous variant, in case <limits.h> declares poll. | |
8155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8156 | #define poll innocuous_poll | |
8157 | ||
8158 | /* System header to define __stub macros and hopefully few prototypes, | |
8159 | which can conflict with char poll (); below. | |
8160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8161 | <limits.h> exists even on freestanding compilers. */ | |
8162 | ||
8163 | #ifdef __STDC__ | |
8164 | # include <limits.h> | |
8165 | #else | |
8166 | # include <assert.h> | |
8167 | #endif | |
8168 | ||
8169 | #undef poll | |
8170 | ||
8171 | /* Override any GCC internal prototype to avoid an error. | |
8172 | Use char because int might match the return type of a GCC | |
8173 | builtin and then its argument prototype would still apply. */ | |
8174 | #ifdef __cplusplus | |
8175 | extern "C" | |
8176 | #endif | |
8177 | char poll (); | |
8178 | /* The GNU C library defines this for functions which it implements | |
8179 | to always fail with ENOSYS. Some functions are actually named | |
8180 | something starting with __ and the normal name is an alias. */ | |
8181 | #if defined __stub_poll || defined __stub___poll | |
8182 | choke me | |
8183 | #endif | |
8184 | ||
8185 | int | |
8186 | main () | |
8187 | { | |
8188 | return poll (); | |
8189 | ; | |
8190 | return 0; | |
8191 | } | |
8192 | _ACEOF | |
8193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8194 | if { (ac_try="$ac_link" | |
8195 | case "(($ac_try" in | |
8196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8197 | *) ac_try_echo=$ac_try;; | |
8198 | esac | |
8199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8200 | (eval "$ac_link") 2>conftest.er1 | |
8201 | ac_status=$? | |
8202 | grep -v '^ *+' conftest.er1 >conftest.err | |
8203 | rm -f conftest.er1 | |
8204 | cat conftest.err >&5 | |
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8206 | (exit $ac_status); } && { | |
8207 | test -z "$ac_c_werror_flag" || | |
8208 | test ! -s conftest.err | |
8209 | } && test -s conftest$ac_exeext && | |
8210 | $as_test_x conftest$ac_exeext; then | |
8211 | ac_cv_func_poll=yes | |
8212 | else | |
8213 | echo "$as_me: failed program was:" >&5 | |
8214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8215 | ||
8216 | ac_cv_func_poll=no | |
8217 | fi | |
8218 | ||
8219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8220 | conftest$ac_exeext conftest.$ac_ext | |
8221 | fi | |
8222 | { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 | |
8223 | echo "${ECHO_T}$ac_cv_func_poll" >&6; } | |
8224 | if test $ac_cv_func_poll = yes; then | |
8225 | engine="poll" | |
8226 | fi | |
8227 | ||
8228 | if test "X$engine" = "X"; then | |
8229 | { echo "$as_me:$LINENO: " >&5 | |
8230 | echo "$as_me: " >&6;} | |
8231 | { echo "$as_me:$LINENO: poll not supported on this platform!" >&5 | |
8232 | echo "$as_me: poll not supported on this platform!" >&6;} | |
8233 | { { echo "$as_me:$LINENO: error: " >&5 | |
8234 | echo "$as_me: error: " >&2;} | |
8235 | { (exit 1); exit 1; }; } | |
8236 | fi | |
8237 | { echo "$as_me:$LINENO: setting socketengine type to poll" >&5 | |
8238 | echo "$as_me: setting socketengine type to poll" >&6;} | |
8239 | elif test "$check_sengine" = "devpoll"; then | |
8240 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
8241 | { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5 | |
8242 | echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; } | |
8243 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
8244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8245 | fi | |
8246 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5 | |
8247 | echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; } | |
8248 | else | |
8249 | # Is the header compilable? | |
8250 | { echo "$as_me:$LINENO: checking sys/devpoll.h usability" >&5 | |
8251 | echo $ECHO_N "checking sys/devpoll.h usability... $ECHO_C" >&6; } | |
8252 | cat >conftest.$ac_ext <<_ACEOF | |
8253 | /* confdefs.h. */ | |
8254 | _ACEOF | |
8255 | cat confdefs.h >>conftest.$ac_ext | |
8256 | cat >>conftest.$ac_ext <<_ACEOF | |
8257 | /* end confdefs.h. */ | |
8258 | $ac_includes_default | |
8259 | #include <sys/devpoll.h> | |
8260 | _ACEOF | |
8261 | rm -f conftest.$ac_objext | |
8262 | if { (ac_try="$ac_compile" | |
8263 | case "(($ac_try" in | |
8264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8265 | *) ac_try_echo=$ac_try;; | |
8266 | esac | |
8267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8268 | (eval "$ac_compile") 2>conftest.er1 | |
8269 | ac_status=$? | |
8270 | grep -v '^ *+' conftest.er1 >conftest.err | |
8271 | rm -f conftest.er1 | |
8272 | cat conftest.err >&5 | |
8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8274 | (exit $ac_status); } && { | |
8275 | test -z "$ac_c_werror_flag" || | |
8276 | test ! -s conftest.err | |
8277 | } && test -s conftest.$ac_objext; then | |
8278 | ac_header_compiler=yes | |
8279 | else | |
8280 | echo "$as_me: failed program was:" >&5 | |
8281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8282 | ||
8283 | ac_header_compiler=no | |
8284 | fi | |
8285 | ||
8286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8287 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8288 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
8289 | ||
8290 | # Is the header present? | |
8291 | { echo "$as_me:$LINENO: checking sys/devpoll.h presence" >&5 | |
8292 | echo $ECHO_N "checking sys/devpoll.h presence... $ECHO_C" >&6; } | |
8293 | cat >conftest.$ac_ext <<_ACEOF | |
8294 | /* confdefs.h. */ | |
8295 | _ACEOF | |
8296 | cat confdefs.h >>conftest.$ac_ext | |
8297 | cat >>conftest.$ac_ext <<_ACEOF | |
8298 | /* end confdefs.h. */ | |
8299 | #include <sys/devpoll.h> | |
8300 | _ACEOF | |
8301 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8302 | case "(($ac_try" in | |
8303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8304 | *) ac_try_echo=$ac_try;; | |
8305 | esac | |
8306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8307 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8308 | ac_status=$? | |
8309 | grep -v '^ *+' conftest.er1 >conftest.err | |
8310 | rm -f conftest.er1 | |
8311 | cat conftest.err >&5 | |
8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8313 | (exit $ac_status); } >/dev/null && { | |
8314 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8315 | test ! -s conftest.err | |
8316 | }; then | |
8317 | ac_header_preproc=yes | |
8318 | else | |
8319 | echo "$as_me: failed program was:" >&5 | |
8320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8321 | ||
8322 | ac_header_preproc=no | |
8323 | fi | |
8324 | ||
8325 | rm -f conftest.err conftest.$ac_ext | |
8326 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8327 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
8328 | ||
8329 | # So? What about this header? | |
8330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8331 | yes:no: ) | |
8332 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8333 | echo "$as_me: WARNING: sys/devpoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8334 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&5 | |
8335 | echo "$as_me: WARNING: sys/devpoll.h: proceeding with the compiler's result" >&2;} | |
8336 | ac_header_preproc=yes | |
8337 | ;; | |
8338 | no:yes:* ) | |
8339 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: present but cannot be compiled" >&5 | |
8340 | echo "$as_me: WARNING: sys/devpoll.h: present but cannot be compiled" >&2;} | |
8341 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&5 | |
8342 | echo "$as_me: WARNING: sys/devpoll.h: check for missing prerequisite headers?" >&2;} | |
8343 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: see the Autoconf documentation" >&5 | |
8344 | echo "$as_me: WARNING: sys/devpoll.h: see the Autoconf documentation" >&2;} | |
8345 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8346 | echo "$as_me: WARNING: sys/devpoll.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8347 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&5 | |
8348 | echo "$as_me: WARNING: sys/devpoll.h: proceeding with the preprocessor's result" >&2;} | |
8349 | { echo "$as_me:$LINENO: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&5 | |
8350 | echo "$as_me: WARNING: sys/devpoll.h: in the future, the compiler will take precedence" >&2;} | |
8351 | ||
8352 | ;; | |
8353 | esac | |
8354 | { echo "$as_me:$LINENO: checking for sys/devpoll.h" >&5 | |
8355 | echo $ECHO_N "checking for sys/devpoll.h... $ECHO_C" >&6; } | |
8356 | if test "${ac_cv_header_sys_devpoll_h+set}" = set; then | |
8357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8358 | else | |
8359 | ac_cv_header_sys_devpoll_h=$ac_header_preproc | |
8360 | fi | |
8361 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_devpoll_h" >&5 | |
8362 | echo "${ECHO_T}$ac_cv_header_sys_devpoll_h" >&6; } | |
8363 | ||
8364 | fi | |
8365 | if test $ac_cv_header_sys_devpoll_h = yes; then | |
8366 | engine="devpoll" | |
8367 | fi | |
8368 | ||
8369 | ||
8370 | if test "X$engine" = "X"; then | |
8371 | { echo "$as_me:$LINENO: " >&5 | |
8372 | echo "$as_me: " >&6;} | |
8373 | { echo "$as_me:$LINENO: /dev/poll not supported on this system" >&5 | |
8374 | echo "$as_me: /dev/poll not supported on this system" >&6;} | |
8375 | { { echo "$as_me:$LINENO: error: " >&5 | |
8376 | echo "$as_me: error: " >&2;} | |
8377 | { (exit 1); exit 1; }; } | |
8378 | fi | |
8379 | { echo "$as_me:$LINENO: setting socketengine to devpoll" >&5 | |
8380 | echo "$as_me: setting socketengine to devpoll" >&6;} | |
8381 | elif test "$check_sengine" = "epoll"; then | |
8382 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
8383 | { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 | |
8384 | echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } | |
8385 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
8386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8387 | fi | |
8388 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 | |
8389 | echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } | |
8390 | else | |
8391 | # Is the header compilable? | |
8392 | { echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5 | |
8393 | echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; } | |
8394 | cat >conftest.$ac_ext <<_ACEOF | |
8395 | /* confdefs.h. */ | |
8396 | _ACEOF | |
8397 | cat confdefs.h >>conftest.$ac_ext | |
8398 | cat >>conftest.$ac_ext <<_ACEOF | |
8399 | /* end confdefs.h. */ | |
8400 | $ac_includes_default | |
8401 | #include <sys/epoll.h> | |
8402 | _ACEOF | |
8403 | rm -f conftest.$ac_objext | |
8404 | if { (ac_try="$ac_compile" | |
8405 | case "(($ac_try" in | |
8406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8407 | *) ac_try_echo=$ac_try;; | |
8408 | esac | |
8409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8410 | (eval "$ac_compile") 2>conftest.er1 | |
8411 | ac_status=$? | |
8412 | grep -v '^ *+' conftest.er1 >conftest.err | |
8413 | rm -f conftest.er1 | |
8414 | cat conftest.err >&5 | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); } && { | |
8417 | test -z "$ac_c_werror_flag" || | |
8418 | test ! -s conftest.err | |
8419 | } && test -s conftest.$ac_objext; then | |
8420 | ac_header_compiler=yes | |
8421 | else | |
8422 | echo "$as_me: failed program was:" >&5 | |
8423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8424 | ||
8425 | ac_header_compiler=no | |
8426 | fi | |
8427 | ||
8428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8430 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
8431 | ||
8432 | # Is the header present? | |
8433 | { echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5 | |
8434 | echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; } | |
8435 | cat >conftest.$ac_ext <<_ACEOF | |
8436 | /* confdefs.h. */ | |
8437 | _ACEOF | |
8438 | cat confdefs.h >>conftest.$ac_ext | |
8439 | cat >>conftest.$ac_ext <<_ACEOF | |
8440 | /* end confdefs.h. */ | |
8441 | #include <sys/epoll.h> | |
8442 | _ACEOF | |
8443 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8444 | case "(($ac_try" in | |
8445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8446 | *) ac_try_echo=$ac_try;; | |
8447 | esac | |
8448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8450 | ac_status=$? | |
8451 | grep -v '^ *+' conftest.er1 >conftest.err | |
8452 | rm -f conftest.er1 | |
8453 | cat conftest.err >&5 | |
8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8455 | (exit $ac_status); } >/dev/null && { | |
8456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8457 | test ! -s conftest.err | |
8458 | }; then | |
8459 | ac_header_preproc=yes | |
8460 | else | |
8461 | echo "$as_me: failed program was:" >&5 | |
8462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8463 | ||
8464 | ac_header_preproc=no | |
8465 | fi | |
8466 | ||
8467 | rm -f conftest.err conftest.$ac_ext | |
8468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8469 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
8470 | ||
8471 | # So? What about this header? | |
8472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8473 | yes:no: ) | |
8474 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8475 | echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8476 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5 | |
8477 | echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;} | |
8478 | ac_header_preproc=yes | |
8479 | ;; | |
8480 | no:yes:* ) | |
8481 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5 | |
8482 | echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;} | |
8483 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5 | |
8484 | echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;} | |
8485 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5 | |
8486 | echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;} | |
8487 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8488 | echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8489 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5 | |
8490 | echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;} | |
8491 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5 | |
8492 | echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;} | |
8493 | ||
8494 | ;; | |
8495 | esac | |
8496 | { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 | |
8497 | echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } | |
8498 | if test "${ac_cv_header_sys_epoll_h+set}" = set; then | |
8499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8500 | else | |
8501 | ac_cv_header_sys_epoll_h=$ac_header_preproc | |
8502 | fi | |
8503 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 | |
8504 | echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } | |
8505 | ||
8506 | fi | |
8507 | if test $ac_cv_header_sys_epoll_h = yes; then | |
8508 | HAVE_EPOLL_H=yes | |
8509 | else | |
8510 | HAVE_EPOLL_H=no | |
8511 | fi | |
8512 | ||
8513 | ||
8514 | { echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5 | |
8515 | echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6; } | |
8516 | if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then | |
8517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8518 | else | |
8519 | ac_check_lib_save_LIBS=$LIBS | |
8520 | LIBS="-lepoll $LIBS" | |
8521 | cat >conftest.$ac_ext <<_ACEOF | |
8522 | /* confdefs.h. */ | |
8523 | _ACEOF | |
8524 | cat confdefs.h >>conftest.$ac_ext | |
8525 | cat >>conftest.$ac_ext <<_ACEOF | |
8526 | /* end confdefs.h. */ | |
8527 | ||
8528 | /* Override any GCC internal prototype to avoid an error. | |
8529 | Use char because int might match the return type of a GCC | |
8530 | builtin and then its argument prototype would still apply. */ | |
8531 | #ifdef __cplusplus | |
8532 | extern "C" | |
8533 | #endif | |
8534 | char epoll_create (); | |
8535 | int | |
8536 | main () | |
8537 | { | |
8538 | return epoll_create (); | |
8539 | ; | |
8540 | return 0; | |
8541 | } | |
8542 | _ACEOF | |
8543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8544 | if { (ac_try="$ac_link" | |
8545 | case "(($ac_try" in | |
8546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8547 | *) ac_try_echo=$ac_try;; | |
8548 | esac | |
8549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8550 | (eval "$ac_link") 2>conftest.er1 | |
8551 | ac_status=$? | |
8552 | grep -v '^ *+' conftest.er1 >conftest.err | |
8553 | rm -f conftest.er1 | |
8554 | cat conftest.err >&5 | |
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8556 | (exit $ac_status); } && { | |
8557 | test -z "$ac_c_werror_flag" || | |
8558 | test ! -s conftest.err | |
8559 | } && test -s conftest$ac_exeext && | |
8560 | $as_test_x conftest$ac_exeext; then | |
8561 | ac_cv_lib_epoll_epoll_create=yes | |
8562 | else | |
8563 | echo "$as_me: failed program was:" >&5 | |
8564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8565 | ||
8566 | ac_cv_lib_epoll_epoll_create=no | |
8567 | fi | |
8568 | ||
8569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8570 | conftest$ac_exeext conftest.$ac_ext | |
8571 | LIBS=$ac_check_lib_save_LIBS | |
8572 | fi | |
8573 | { echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5 | |
8574 | echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6; } | |
8575 | if test $ac_cv_lib_epoll_epoll_create = yes; then | |
8576 | LIBS="$LIBS -lepoll"; have_epoll_lib="yes"; engine="epoll" | |
8577 | else | |
8578 | have_epoll_lib="no" | |
8579 | fi | |
8580 | ||
8581 | if test "$HAVE_EPOLL_H $have_epoll_lib" = "yes no"; then | |
8582 | { echo "$as_me:$LINENO: checking for epoll_create without -lepoll" >&5 | |
8583 | echo $ECHO_N "checking for epoll_create without -lepoll... $ECHO_C" >&6; } | |
8584 | if test "$cross_compiling" = yes; then | |
8585 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
8586 | See \`config.log' for more details." >&5 | |
8587 | echo "$as_me: error: cannot run test program while cross compiling | |
8588 | See \`config.log' for more details." >&2;} | |
8589 | { (exit 1); exit 1; }; } | |
8590 | else | |
8591 | cat >conftest.$ac_ext <<_ACEOF | |
8592 | /* confdefs.h. */ | |
8593 | _ACEOF | |
8594 | cat confdefs.h >>conftest.$ac_ext | |
8595 | cat >>conftest.$ac_ext <<_ACEOF | |
8596 | /* end confdefs.h. */ | |
8597 | ||
8598 | #include <stdint.h> | |
8599 | #include <sys/epoll.h> | |
8600 | #include <errno.h> | |
8601 | ||
8602 | #include <asm/unistd.h> | |
8603 | ||
8604 | int main(int argc, char **argv) { return epoll_create(5) < 1; } | |
8605 | ||
8606 | _ACEOF | |
8607 | rm -f conftest$ac_exeext | |
8608 | if { (ac_try="$ac_link" | |
8609 | case "(($ac_try" in | |
8610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8611 | *) ac_try_echo=$ac_try;; | |
8612 | esac | |
8613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8614 | (eval "$ac_link") 2>&5 | |
8615 | ac_status=$? | |
8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8618 | { (case "(($ac_try" in | |
8619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8620 | *) ac_try_echo=$ac_try;; | |
8621 | esac | |
8622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8623 | (eval "$ac_try") 2>&5 | |
8624 | ac_status=$? | |
8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8626 | (exit $ac_status); }; }; then | |
8627 | have_epoll_lib="yes" | |
8628 | else | |
8629 | echo "$as_me: program exited with status $ac_status" >&5 | |
8630 | echo "$as_me: failed program was:" >&5 | |
8631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8632 | ||
8633 | ( exit $ac_status ) | |
8634 | have_epoll_lib="no" | |
8635 | fi | |
8636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8637 | fi | |
8638 | ||
8639 | ||
8640 | { echo "$as_me:$LINENO: result: $have_epoll_lib" >&5 | |
8641 | echo "${ECHO_T}$have_epoll_lib" >&6; } | |
8642 | fi | |
8643 | if test "$HAVE_EPOLL_H $have_epoll_lib" != "yes yes"; then | |
8644 | { echo "$as_me:$LINENO: " >&5 | |
8645 | echo "$as_me: " >&6;} | |
8646 | { { echo "$as_me:$LINENO: error: epoll is not supported on this machine" >&5 | |
8647 | echo "$as_me: error: epoll is not supported on this machine" >&2;} | |
8648 | { (exit 1); exit 1; }; } | |
8649 | { { echo "$as_me:$LINENO: error: " >&5 | |
8650 | echo "$as_me: error: " >&2;} | |
8651 | { (exit 1); exit 1; }; } | |
8652 | fi | |
8653 | { echo "$as_me:$LINENO: setting socketengine type to epoll" >&5 | |
8654 | echo "$as_me: setting socketengine type to epoll" >&6;} | |
8655 | engine="epoll"; | |
8656 | elif test "$check_sengine" = "select"; then | |
8657 | { echo "$as_me:$LINENO: setting socketengine type to select.. for some stupid reason" >&5 | |
8658 | echo "$as_me: setting socketengine type to select.. for some stupid reason" >&6;} | |
8659 | engine="select" | |
8660 | else | |
8661 | { echo "$as_me:$LINENO: " >&5 | |
8662 | echo "$as_me: " >&6;} | |
8663 | { echo "$as_me:$LINENO: socket engine type incorrect!" >&5 | |
8664 | echo "$as_me: socket engine type incorrect!" >&6;} | |
8665 | { { echo "$as_me:$LINENO: error: " >&5 | |
8666 | echo "$as_me: error: " >&2;} | |
8667 | { (exit 1); exit 1; }; } | |
8668 | fi | |
8669 | ||
8670 | SENGINE="socketengine_$engine.c" | |
8671 | ||
8672 | if test $engine = "select"; then | |
8673 | { echo "$as_me:$LINENO: checking to see if FD_SETSIZE is broken" >&5 | |
8674 | echo $ECHO_N "checking to see if FD_SETSIZE is broken... $ECHO_C" >&6; } | |
8675 | if test "$cross_compiling" = yes; then | |
8676 | { echo "$as_me:$LINENO: result: can't tell" >&5 | |
8677 | echo "${ECHO_T}can't tell" >&6; } | |
8678 | else | |
8679 | cat >conftest.$ac_ext <<_ACEOF | |
8680 | /* confdefs.h. */ | |
8681 | _ACEOF | |
8682 | cat confdefs.h >>conftest.$ac_ext | |
8683 | cat >>conftest.$ac_ext <<_ACEOF | |
8684 | /* end confdefs.h. */ | |
8685 | ||
8686 | #define FD_SETSIZE 666 | |
8687 | #include <sys/types.h> | |
8688 | #include <sys/time.h> | |
8689 | ||
8690 | int main() | |
8691 | { | |
8692 | if(FD_SETSIZE != 666) | |
8693 | exit(1); | |
8694 | exit(0); | |
8695 | } | |
8696 | ||
8697 | _ACEOF | |
8698 | rm -f conftest$ac_exeext | |
8699 | if { (ac_try="$ac_link" | |
8700 | case "(($ac_try" in | |
8701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8702 | *) ac_try_echo=$ac_try;; | |
8703 | esac | |
8704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8705 | (eval "$ac_link") 2>&5 | |
8706 | ac_status=$? | |
8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8709 | { (case "(($ac_try" in | |
8710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8711 | *) ac_try_echo=$ac_try;; | |
8712 | esac | |
8713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8714 | (eval "$ac_try") 2>&5 | |
8715 | ac_status=$? | |
8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8717 | (exit $ac_status); }; }; then | |
8718 | { echo "$as_me:$LINENO: result: no" >&5 | |
8719 | echo "${ECHO_T}no" >&6; } | |
8720 | else | |
8721 | echo "$as_me: program exited with status $ac_status" >&5 | |
8722 | echo "$as_me: failed program was:" >&5 | |
8723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8724 | ||
8725 | ( exit $ac_status ) | |
8726 | ||
8727 | { echo "$as_me:$LINENO: result: YES" >&5 | |
8728 | echo "${ECHO_T}YES" >&6; } | |
8729 | { echo "$as_me:$LINENO: WARNING: FD_SETSIZE is hard set by your operating system" >&5 | |
8730 | echo "$as_me: WARNING: FD_SETSIZE is hard set by your operating system" >&2;} | |
8731 | { echo "$as_me:$LINENO: WARNING: MAXCONNECTIONS must be no higher than the hardwired FD_SETSIZE" >&5 | |
8732 | echo "$as_me: WARNING: MAXCONNECTIONS must be no higher than the hardwired FD_SETSIZE" >&2;} | |
8733 | cat >>confdefs.h <<\_ACEOF | |
8734 | #define BROKEN_FD_SETSIZE 1 | |
8735 | _ACEOF | |
8736 | ||
8737 | broken_fd_setsize="yes" | |
8738 | ||
8739 | fi | |
8740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8741 | fi | |
8742 | ||
8743 | ||
8744 | fi | |
8745 | ||
bf042c35 | 8746 | if test "$check_maxconnections" = "auto"; then |
8747 | ||
8748 | { echo "$as_me:$LINENO: checking Maximum file descriptors" >&5 | |
8749 | echo $ECHO_N "checking Maximum file descriptors... $ECHO_C" >&6; }; | |
8750 | if test "${maxconnections+set}" = set; then | |
8751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8752 | else | |
8753 | ||
8754 | ||
8755 | cat >conftest.$ac_ext <<_ACEOF | |
8756 | /* confdefs.h. */ | |
8757 | _ACEOF | |
8758 | cat confdefs.h >>conftest.$ac_ext | |
8759 | cat >>conftest.$ac_ext <<_ACEOF | |
8760 | /* end confdefs.h. */ | |
8761 | ||
8762 | #include <sys/types.h> | |
8763 | #include <sys/time.h> | |
8764 | #include <sys/resource.h> | |
8765 | #include <stdio.h> | |
8766 | #ifdef RLIMIT_FDMAX | |
8767 | #define RLIMIT_FD_MAX RLIMIT_FDMAX | |
8768 | #else | |
8769 | #ifdef RLIMIT_NOFILE | |
8770 | #define RLIMIT_FD_MAX RLIMIT_NOFILE | |
8771 | #else | |
8772 | #ifdef RLIMIT_OPEN_MAX | |
8773 | #define RLIMIT_FD_MAX RLIMIT_OPEN_MAX | |
8774 | #else | |
8775 | #undef RLIMIT_FD_MAX | |
8776 | #endif | |
8777 | #endif | |
8778 | #endif | |
8779 | ||
8780 | ||
8781 | int main() | |
8782 | { | |
8783 | #ifndef BROKEN_FD_SETSIZE | |
8784 | ||
8785 | #ifdef RLIMIT_FD_MAX | |
8786 | struct rlimit limit; | |
8787 | ||
8788 | if(!getrlimit(RLIMIT_FD_MAX, &limit)) | |
8789 | { | |
8790 | if(limit.rlim_max > 32768) | |
8791 | printf("32768"); | |
8792 | else | |
8793 | printf("%ld", (long) limit.rlim_max); | |
8794 | } | |
8795 | else | |
8796 | #endif | |
8797 | printf("256"); | |
8798 | ||
8799 | #else | |
8800 | printf("%d", FD_SETSIZE); | |
8801 | #endif | |
8802 | return 0; | |
8803 | } | |
8804 | ||
8805 | ||
8806 | _ACEOF | |
8807 | ||
8808 | $CC -o conftest conftest.c >/dev/null 2>&1 | |
8809 | maxconnections=`./conftest` | |
8810 | { echo "$as_me:$LINENO: result: $maxconnections" >&5 | |
8811 | echo "${ECHO_T}$maxconnections" >&6; } | |
8812 | $RM -f conftest conftest.c | |
8813 | ||
8814 | fi | |
8815 | ||
8816 | cat >>confdefs.h <<_ACEOF | |
8817 | #define MAXCONNECTIONS ${maxconnections} | |
8818 | _ACEOF | |
8819 | ||
8820 | ||
8821 | else | |
8822 | maxconnections=$check_maxconnections | |
8823 | cat >>confdefs.h <<_ACEOF | |
8824 | #define MAXCONNECTIONS ${maxconnections} | |
8825 | _ACEOF | |
8826 | ||
8827 | fi | |
8828 | ||
8829 | # zlib test | |
8830 | # ripped from http://autoconf-archive.cryp.to/check_zlib.html | |
8831 | # | |
8832 | ZLIB_HOME=/usr/local | |
8833 | if test ! -f "${ZLIB_HOME}/include/zlib.h" | |
8834 | then | |
8835 | ZLIB_HOME=/usr | |
8836 | fi | |
8837 | if test -n "${ZLIB_HOME}" | |
8838 | then | |
8839 | ZLIB_OLD_LDFLAGS=$LDFLAGS | |
8840 | ZLIB_OLD_CPPFLAGS=$LDFLAGS | |
8841 | LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" | |
8842 | CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" | |
8843 | ||
8844 | ac_ext=c | |
8845 | ac_cpp='$CPP $CPPFLAGS' | |
8846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8849 | ||
8850 | { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | |
8851 | echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } | |
8852 | if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | |
8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8854 | else | |
8855 | ac_check_lib_save_LIBS=$LIBS | |
8856 | LIBS="-lz $LIBS" | |
8857 | cat >conftest.$ac_ext <<_ACEOF | |
8858 | /* confdefs.h. */ | |
8859 | _ACEOF | |
8860 | cat confdefs.h >>conftest.$ac_ext | |
8861 | cat >>conftest.$ac_ext <<_ACEOF | |
8862 | /* end confdefs.h. */ | |
8863 | ||
8864 | /* Override any GCC internal prototype to avoid an error. | |
8865 | Use char because int might match the return type of a GCC | |
8866 | builtin and then its argument prototype would still apply. */ | |
8867 | #ifdef __cplusplus | |
8868 | extern "C" | |
8869 | #endif | |
8870 | char inflateEnd (); | |
8871 | int | |
8872 | main () | |
8873 | { | |
8874 | return inflateEnd (); | |
8875 | ; | |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8880 | if { (ac_try="$ac_link" | |
8881 | case "(($ac_try" in | |
8882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8883 | *) ac_try_echo=$ac_try;; | |
8884 | esac | |
8885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8886 | (eval "$ac_link") 2>conftest.er1 | |
8887 | ac_status=$? | |
8888 | grep -v '^ *+' conftest.er1 >conftest.err | |
8889 | rm -f conftest.er1 | |
8890 | cat conftest.err >&5 | |
8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8892 | (exit $ac_status); } && { | |
8893 | test -z "$ac_c_werror_flag" || | |
8894 | test ! -s conftest.err | |
8895 | } && test -s conftest$ac_exeext && | |
8896 | $as_test_x conftest$ac_exeext; then | |
8897 | ac_cv_lib_z_inflateEnd=yes | |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
8902 | ac_cv_lib_z_inflateEnd=no | |
8903 | fi | |
8904 | ||
8905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8906 | conftest$ac_exeext conftest.$ac_ext | |
8907 | LIBS=$ac_check_lib_save_LIBS | |
8908 | fi | |
8909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | |
8910 | echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } | |
8911 | if test $ac_cv_lib_z_inflateEnd = yes; then | |
8912 | zlib_cv_libz=yes | |
8913 | else | |
8914 | zlib_cv_libz=no | |
8915 | fi | |
8916 | ||
8917 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
8918 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
8919 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
8920 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8922 | fi | |
8923 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
8924 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
8925 | else | |
8926 | # Is the header compilable? | |
8927 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
8928 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
8929 | cat >conftest.$ac_ext <<_ACEOF | |
8930 | /* confdefs.h. */ | |
8931 | _ACEOF | |
8932 | cat confdefs.h >>conftest.$ac_ext | |
8933 | cat >>conftest.$ac_ext <<_ACEOF | |
8934 | /* end confdefs.h. */ | |
8935 | $ac_includes_default | |
8936 | #include <zlib.h> | |
8937 | _ACEOF | |
8938 | rm -f conftest.$ac_objext | |
8939 | if { (ac_try="$ac_compile" | |
8940 | case "(($ac_try" in | |
8941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8942 | *) ac_try_echo=$ac_try;; | |
8943 | esac | |
8944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8945 | (eval "$ac_compile") 2>conftest.er1 | |
8946 | ac_status=$? | |
8947 | grep -v '^ *+' conftest.er1 >conftest.err | |
8948 | rm -f conftest.er1 | |
8949 | cat conftest.err >&5 | |
8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8951 | (exit $ac_status); } && { | |
8952 | test -z "$ac_c_werror_flag" || | |
8953 | test ! -s conftest.err | |
8954 | } && test -s conftest.$ac_objext; then | |
8955 | ac_header_compiler=yes | |
8956 | else | |
8957 | echo "$as_me: failed program was:" >&5 | |
8958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8959 | ||
8960 | ac_header_compiler=no | |
8961 | fi | |
8962 | ||
8963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8964 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8965 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
8966 | ||
8967 | # Is the header present? | |
8968 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
8969 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
8970 | cat >conftest.$ac_ext <<_ACEOF | |
8971 | /* confdefs.h. */ | |
8972 | _ACEOF | |
8973 | cat confdefs.h >>conftest.$ac_ext | |
8974 | cat >>conftest.$ac_ext <<_ACEOF | |
8975 | /* end confdefs.h. */ | |
8976 | #include <zlib.h> | |
8977 | _ACEOF | |
8978 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8979 | case "(($ac_try" in | |
8980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8981 | *) ac_try_echo=$ac_try;; | |
8982 | esac | |
8983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8984 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8985 | ac_status=$? | |
8986 | grep -v '^ *+' conftest.er1 >conftest.err | |
8987 | rm -f conftest.er1 | |
8988 | cat conftest.err >&5 | |
8989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8990 | (exit $ac_status); } >/dev/null && { | |
8991 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8992 | test ! -s conftest.err | |
8993 | }; then | |
8994 | ac_header_preproc=yes | |
8995 | else | |
8996 | echo "$as_me: failed program was:" >&5 | |
8997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8998 | ||
8999 | ac_header_preproc=no | |
9000 | fi | |
9001 | ||
9002 | rm -f conftest.err conftest.$ac_ext | |
9003 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9004 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9005 | ||
9006 | # So? What about this header? | |
9007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9008 | yes:no: ) | |
9009 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9010 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9011 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9012 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9013 | ac_header_preproc=yes | |
9014 | ;; | |
9015 | no:yes:* ) | |
9016 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9017 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9018 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9019 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9020 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9021 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9022 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9023 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9024 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9025 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9026 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9027 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
9028 | ||
9029 | ;; | |
9030 | esac | |
9031 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
9032 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
9033 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
9034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9035 | else | |
9036 | ac_cv_header_zlib_h=$ac_header_preproc | |
9037 | fi | |
9038 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
9039 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
9040 | ||
9041 | fi | |
9042 | if test $ac_cv_header_zlib_h = yes; then | |
9043 | zlib_cv_zlib_h=yes | |
9044 | else | |
9045 | zlib_cv_zlib_h=no | |
9046 | fi | |
9047 | ||
9048 | ||
9049 | ac_ext=c | |
9050 | ac_cpp='$CPP $CPPFLAGS' | |
9051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9054 | ||
9055 | if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" | |
9056 | then | |
9057 | # | |
9058 | # If both library and header were found, use them | |
9059 | # | |
9060 | ||
9061 | { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | |
9062 | echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } | |
9063 | if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | |
9064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9065 | else | |
9066 | ac_check_lib_save_LIBS=$LIBS | |
9067 | LIBS="-lz $LIBS" | |
9068 | cat >conftest.$ac_ext <<_ACEOF | |
9069 | /* confdefs.h. */ | |
9070 | _ACEOF | |
9071 | cat confdefs.h >>conftest.$ac_ext | |
9072 | cat >>conftest.$ac_ext <<_ACEOF | |
9073 | /* end confdefs.h. */ | |
9074 | ||
9075 | /* Override any GCC internal prototype to avoid an error. | |
9076 | Use char because int might match the return type of a GCC | |
9077 | builtin and then its argument prototype would still apply. */ | |
9078 | #ifdef __cplusplus | |
9079 | extern "C" | |
9080 | #endif | |
9081 | char inflateEnd (); | |
9082 | int | |
9083 | main () | |
9084 | { | |
9085 | return inflateEnd (); | |
9086 | ; | |
9087 | return 0; | |
9088 | } | |
9089 | _ACEOF | |
9090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9091 | if { (ac_try="$ac_link" | |
9092 | case "(($ac_try" in | |
9093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9094 | *) ac_try_echo=$ac_try;; | |
9095 | esac | |
9096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9097 | (eval "$ac_link") 2>conftest.er1 | |
9098 | ac_status=$? | |
9099 | grep -v '^ *+' conftest.er1 >conftest.err | |
9100 | rm -f conftest.er1 | |
9101 | cat conftest.err >&5 | |
9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9103 | (exit $ac_status); } && { | |
9104 | test -z "$ac_c_werror_flag" || | |
9105 | test ! -s conftest.err | |
9106 | } && test -s conftest$ac_exeext && | |
9107 | $as_test_x conftest$ac_exeext; then | |
9108 | ac_cv_lib_z_inflateEnd=yes | |
9109 | else | |
9110 | echo "$as_me: failed program was:" >&5 | |
9111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9112 | ||
9113 | ac_cv_lib_z_inflateEnd=no | |
9114 | fi | |
9115 | ||
9116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9117 | conftest$ac_exeext conftest.$ac_ext | |
9118 | LIBS=$ac_check_lib_save_LIBS | |
9119 | fi | |
9120 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | |
9121 | echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } | |
9122 | if test $ac_cv_lib_z_inflateEnd = yes; then | |
9123 | cat >>confdefs.h <<_ACEOF | |
9124 | #define HAVE_LIBZ 1 | |
9125 | _ACEOF | |
9126 | ||
9127 | LIBS="-lz $LIBS" | |
9128 | ||
9129 | fi | |
9130 | ||
9131 | { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 | |
9132 | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } | |
9133 | { echo "$as_me:$LINENO: result: ok" >&5 | |
9134 | echo "${ECHO_T}ok" >&6; } | |
9135 | else | |
9136 | # | |
9137 | # If either header or library was not found, revert and bomb | |
9138 | # | |
9139 | { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 | |
9140 | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; } | |
9141 | LDFLAGS="$ZLIB_OLD_LDFLAGS" | |
9142 | CPPFLAGS="$ZLIB_OLD_CPPFLAGS" | |
9143 | { echo "$as_me:$LINENO: result: failed" >&5 | |
9144 | echo "${ECHO_T}failed" >&6; } | |
9145 | { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 | |
9146 | echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} | |
9147 | { (exit 1); exit 1; }; } | |
9148 | fi | |
9149 | fi | |
9150 | ||
9151 | if test "$engine" = "select" && test "$broken_fd_setsize" != "yes"; then | |
fd028c16 | 9152 | CFLAGS="$CFLAGS -DUSE_SELECT -DFD_SETSIZE=$maxconnections" |
9153 | elif test "$engine" = "select"; then | |
9154 | CFLAGS="$CFLAGS -DUSE_SELECT" | |
9155 | elif test "$engine" = "poll"; then | |
9156 | CFLAGS="$CFLAGS -DUSE_POLL" | |
9157 | elif test "$engine" = "epoll"; then | |
9158 | CFLAGS="$CFLAGS -DUSE_EPOLL" | |
9159 | elif test "$engine" = "kqueue"; then | |
9160 | CFLAGS="$CFLAGS -DUSE_KQUEUE" | |
9161 | elif test "$engine" = "devpoll"; then | |
9162 | CFLAGS="$CFLAGS -DUSE_DEVPOLL" | |
bf042c35 | 9163 | fi |
9164 | ||
9165 | INSTALL_DIR="${prefix}" | |
9166 | ||
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ac_config_files="$ac_config_files src/Makefile" | |
9174 | ||
9175 | cat >confcache <<\_ACEOF | |
9176 | # This file is a shell script that caches the results of configure | |
9177 | # tests run on this system so they can be shared between configure | |
9178 | # scripts and configure runs, see configure's option --config-cache. | |
9179 | # It is not useful on other systems. If it contains results you don't | |
9180 | # want to keep, you may remove or edit it. | |
9181 | # | |
9182 | # config.status only pays attention to the cache file if you give it | |
9183 | # the --recheck option to rerun configure. | |
9184 | # | |
9185 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9186 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9187 | # following values. | |
9188 | ||
9189 | _ACEOF | |
9190 | ||
9191 | # The following way of writing the cache mishandles newlines in values, | |
9192 | # but we know of no workaround that is simple, portable, and efficient. | |
9193 | # So, we kill variables containing newlines. | |
9194 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9195 | # and sets the high bit in the cache file unless we assign to the vars. | |
9196 | ( | |
9197 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9198 | eval ac_val=\$$ac_var | |
9199 | case $ac_val in #( | |
9200 | *${as_nl}*) | |
9201 | case $ac_var in #( | |
9202 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
9203 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
9204 | esac | |
9205 | case $ac_var in #( | |
9206 | _ | IFS | as_nl) ;; #( | |
9207 | *) $as_unset $ac_var ;; | |
9208 | esac ;; | |
9209 | esac | |
9210 | done | |
9211 | ||
9212 | (set) 2>&1 | | |
9213 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
9214 | *${as_nl}ac_space=\ *) | |
9215 | # `set' does not quote correctly, so add quotes (double-quote | |
9216 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9217 | sed -n \ | |
9218 | "s/'/'\\\\''/g; | |
9219 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9220 | ;; #( | |
9221 | *) | |
9222 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9223 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
9224 | ;; | |
9225 | esac | | |
9226 | sort | |
9227 | ) | | |
9228 | sed ' | |
9229 | /^ac_cv_env_/b end | |
9230 | t clear | |
9231 | :clear | |
9232 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9233 | t end | |
9234 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9235 | :end' >>confcache | |
9236 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9237 | if test -w "$cache_file"; then | |
9238 | test "x$cache_file" != "x/dev/null" && | |
9239 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
9240 | echo "$as_me: updating cache $cache_file" >&6;} | |
9241 | cat confcache >$cache_file | |
9242 | else | |
9243 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
9244 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
9245 | fi | |
9246 | fi | |
9247 | rm -f confcache | |
9248 | ||
9249 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9250 | # Let make expand exec_prefix. | |
9251 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9252 | ||
9253 | DEFS=-DHAVE_CONFIG_H | |
9254 | ||
9255 | ac_libobjs= | |
9256 | ac_ltlibobjs= | |
9257 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9258 | # 1. Remove the extension, and $U if already installed. | |
9259 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
9260 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
9261 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
9262 | # will be set to the directory where LIBOBJS objects are built. | |
9263 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
9264 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
9265 | done | |
9266 | LIBOBJS=$ac_libobjs | |
9267 | ||
9268 | LTLIBOBJS=$ac_ltlibobjs | |
9269 | ||
9270 | ||
9271 | ||
9272 | : ${CONFIG_STATUS=./config.status} | |
9273 | ac_clean_files_save=$ac_clean_files | |
9274 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
9275 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
9276 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9277 | cat >$CONFIG_STATUS <<_ACEOF | |
9278 | #! $SHELL | |
9279 | # Generated by $as_me. | |
9280 | # Run this file to recreate the current configuration. | |
9281 | # Compiler output produced by configure, useful for debugging | |
9282 | # configure, is in config.log if it exists. | |
9283 | ||
9284 | debug=false | |
9285 | ac_cs_recheck=false | |
9286 | ac_cs_silent=false | |
9287 | SHELL=\${CONFIG_SHELL-$SHELL} | |
9288 | _ACEOF | |
9289 | ||
9290 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9291 | ## --------------------- ## | |
9292 | ## M4sh Initialization. ## | |
9293 | ## --------------------- ## | |
9294 | ||
9295 | # Be more Bourne compatible | |
9296 | DUALCASE=1; export DUALCASE # for MKS sh | |
9297 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
9298 | emulate sh | |
9299 | NULLCMD=: | |
9300 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
9301 | # is contrary to our usage. Disable this feature. | |
9302 | alias -g '${1+"$@"}'='"$@"' | |
9303 | setopt NO_GLOB_SUBST | |
9304 | else | |
9305 | case `(set -o) 2>/dev/null` in | |
9306 | *posix*) set -o posix ;; | |
9307 | esac | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | # PATH needs CR | |
9315 | # Avoid depending upon Character Ranges. | |
9316 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9317 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9318 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9319 | as_cr_digits='0123456789' | |
9320 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9321 | ||
9322 | # The user is always right. | |
9323 | if test "${PATH_SEPARATOR+set}" != set; then | |
9324 | echo "#! /bin/sh" >conf$$.sh | |
9325 | echo "exit 0" >>conf$$.sh | |
9326 | chmod +x conf$$.sh | |
9327 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9328 | PATH_SEPARATOR=';' | |
9329 | else | |
9330 | PATH_SEPARATOR=: | |
9331 | fi | |
9332 | rm -f conf$$.sh | |
9333 | fi | |
9334 | ||
9335 | # Support unset when possible. | |
9336 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
9337 | as_unset=unset | |
9338 | else | |
9339 | as_unset=false | |
9340 | fi | |
9341 | ||
9342 | ||
9343 | # IFS | |
9344 | # We need space, tab and new line, in precisely that order. Quoting is | |
9345 | # there to prevent editors from complaining about space-tab. | |
9346 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9347 | # splitting by setting IFS to empty value.) | |
9348 | as_nl=' | |
9349 | ' | |
9350 | IFS=" "" $as_nl" | |
9351 | ||
9352 | # Find who we are. Look in the path if we contain no directory separator. | |
9353 | case $0 in | |
9354 | *[\\/]* ) as_myself=$0 ;; | |
9355 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9356 | for as_dir in $PATH | |
9357 | do | |
9358 | IFS=$as_save_IFS | |
9359 | test -z "$as_dir" && as_dir=. | |
9360 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
9361 | done | |
9362 | IFS=$as_save_IFS | |
9363 | ||
9364 | ;; | |
9365 | esac | |
9366 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9367 | # in which case we are not to be found in the path. | |
9368 | if test "x$as_myself" = x; then | |
9369 | as_myself=$0 | |
9370 | fi | |
9371 | if test ! -f "$as_myself"; then | |
9372 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
9373 | { (exit 1); exit 1; } | |
9374 | fi | |
9375 | ||
9376 | # Work around bugs in pre-3.0 UWIN ksh. | |
9377 | for as_var in ENV MAIL MAILPATH | |
9378 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
9379 | done | |
9380 | PS1='$ ' | |
9381 | PS2='> ' | |
9382 | PS4='+ ' | |
9383 | ||
9384 | # NLS nuisances. | |
9385 | for as_var in \ | |
9386 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
9387 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
9388 | LC_TELEPHONE LC_TIME | |
9389 | do | |
9390 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
9391 | eval $as_var=C; export $as_var | |
9392 | else | |
9393 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
9394 | fi | |
9395 | done | |
9396 | ||
9397 | # Required to use basename. | |
9398 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
9399 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
9400 | as_expr=expr | |
9401 | else | |
9402 | as_expr=false | |
9403 | fi | |
9404 | ||
9405 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
9406 | as_basename=basename | |
9407 | else | |
9408 | as_basename=false | |
9409 | fi | |
9410 | ||
9411 | ||
9412 | # Name of the executable. | |
9413 | as_me=`$as_basename -- "$0" || | |
9414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
9415 | X"$0" : 'X\(//\)$' \| \ | |
9416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
9417 | echo X/"$0" | | |
9418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
9419 | s//\1/ | |
9420 | q | |
9421 | } | |
9422 | /^X\/\(\/\/\)$/{ | |
9423 | s//\1/ | |
9424 | q | |
9425 | } | |
9426 | /^X\/\(\/\).*/{ | |
9427 | s//\1/ | |
9428 | q | |
9429 | } | |
9430 | s/.*/./; q'` | |
9431 | ||
9432 | # CDPATH. | |
9433 | $as_unset CDPATH | |
9434 | ||
9435 | ||
9436 | ||
9437 | as_lineno_1=$LINENO | |
9438 | as_lineno_2=$LINENO | |
9439 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9440 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
9441 | ||
9442 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
9443 | # uniformly replaced by the line number. The first 'sed' inserts a | |
9444 | # line-number line after each line using $LINENO; the second 'sed' | |
9445 | # does the real work. The second script uses 'N' to pair each | |
9446 | # line-number line with the line containing $LINENO, and appends | |
9447 | # trailing '-' during substitution so that $LINENO is not a special | |
9448 | # case at line end. | |
9449 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
9450 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
9451 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
9452 | sed -n ' | |
9453 | p | |
9454 | /[$]LINENO/= | |
9455 | ' <$as_myself | | |
9456 | sed ' | |
9457 | s/[$]LINENO.*/&-/ | |
9458 | t lineno | |
9459 | b | |
9460 | :lineno | |
9461 | N | |
9462 | :loop | |
9463 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
9464 | t loop | |
9465 | s/-\n.*// | |
9466 | ' >$as_me.lineno && | |
9467 | chmod +x "$as_me.lineno" || | |
9468 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
9469 | { (exit 1); exit 1; }; } | |
9470 | ||
9471 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9472 | # (the dirname of $[0] is not the place where we might find the | |
9473 | # original and so on. Autoconf is especially sensitive to this). | |
9474 | . "./$as_me.lineno" | |
9475 | # Exit status is that of the last command. | |
9476 | exit | |
9477 | } | |
9478 | ||
9479 | ||
9480 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
9481 | as_dirname=dirname | |
9482 | else | |
9483 | as_dirname=false | |
9484 | fi | |
9485 | ||
9486 | ECHO_C= ECHO_N= ECHO_T= | |
9487 | case `echo -n x` in | |
9488 | -n*) | |
9489 | case `echo 'x\c'` in | |
9490 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
9491 | *) ECHO_C='\c';; | |
9492 | esac;; | |
9493 | *) | |
9494 | ECHO_N='-n';; | |
9495 | esac | |
9496 | ||
9497 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
9498 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
9499 | as_expr=expr | |
9500 | else | |
9501 | as_expr=false | |
9502 | fi | |
9503 | ||
9504 | rm -f conf$$ conf$$.exe conf$$.file | |
9505 | if test -d conf$$.dir; then | |
9506 | rm -f conf$$.dir/conf$$.file | |
9507 | else | |
9508 | rm -f conf$$.dir | |
9509 | mkdir conf$$.dir | |
9510 | fi | |
9511 | echo >conf$$.file | |
9512 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9513 | as_ln_s='ln -s' | |
9514 | # ... but there are two gotchas: | |
9515 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9516 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9517 | # In both cases, we have to default to `cp -p'. | |
9518 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9519 | as_ln_s='cp -p' | |
9520 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9521 | as_ln_s=ln | |
9522 | else | |
9523 | as_ln_s='cp -p' | |
9524 | fi | |
9525 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
9526 | rmdir conf$$.dir 2>/dev/null | |
9527 | ||
9528 | if mkdir -p . 2>/dev/null; then | |
9529 | as_mkdir_p=: | |
9530 | else | |
9531 | test -d ./-p && rmdir ./-p | |
9532 | as_mkdir_p=false | |
9533 | fi | |
9534 | ||
9535 | if test -x / >/dev/null 2>&1; then | |
9536 | as_test_x='test -x' | |
9537 | else | |
9538 | if ls -dL / >/dev/null 2>&1; then | |
9539 | as_ls_L_option=L | |
9540 | else | |
9541 | as_ls_L_option= | |
9542 | fi | |
9543 | as_test_x=' | |
9544 | eval sh -c '\'' | |
9545 | if test -d "$1"; then | |
9546 | test -d "$1/."; | |
9547 | else | |
9548 | case $1 in | |
9549 | -*)set "./$1";; | |
9550 | esac; | |
9551 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
9552 | ???[sx]*):;;*)false;;esac;fi | |
9553 | '\'' sh | |
9554 | ' | |
9555 | fi | |
9556 | as_executable_p=$as_test_x | |
9557 | ||
9558 | # Sed expression to map a string onto a valid CPP name. | |
9559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9560 | ||
9561 | # Sed expression to map a string onto a valid variable name. | |
9562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9563 | ||
9564 | ||
9565 | exec 6>&1 | |
9566 | ||
9567 | # Save the log message, to keep $[0] and so on meaningful, and to | |
9568 | # report actual input values of CONFIG_FILES etc. instead of their | |
9569 | # values after options handling. | |
9570 | ac_log=" | |
9571 | This file was extended by $as_me, which was | |
9572 | generated by GNU Autoconf 2.61. Invocation command line was | |
9573 | ||
9574 | CONFIG_FILES = $CONFIG_FILES | |
9575 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9576 | CONFIG_LINKS = $CONFIG_LINKS | |
9577 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9578 | $ $0 $@ | |
9579 | ||
9580 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
9581 | " | |
9582 | ||
9583 | _ACEOF | |
9584 | ||
9585 | cat >>$CONFIG_STATUS <<_ACEOF | |
9586 | # Files that config.status was made for. | |
9587 | config_files="$ac_config_files" | |
9588 | config_headers="$ac_config_headers" | |
9589 | ||
9590 | _ACEOF | |
9591 | ||
9592 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9593 | ac_cs_usage="\ | |
9594 | \`$as_me' instantiates files from templates according to the | |
9595 | current configuration. | |
9596 | ||
9597 | Usage: $0 [OPTIONS] [FILE]... | |
9598 | ||
9599 | -h, --help print this help, then exit | |
9600 | -V, --version print version number and configuration settings, then exit | |
9601 | -q, --quiet do not print progress messages | |
9602 | -d, --debug don't remove temporary files | |
9603 | --recheck update $as_me by reconfiguring in the same conditions | |
9604 | --file=FILE[:TEMPLATE] | |
9605 | instantiate the configuration file FILE | |
9606 | --header=FILE[:TEMPLATE] | |
9607 | instantiate the configuration header FILE | |
9608 | ||
9609 | Configuration files: | |
9610 | $config_files | |
9611 | ||
9612 | Configuration headers: | |
9613 | $config_headers | |
9614 | ||
9615 | Report bugs to <bug-autoconf@gnu.org>." | |
9616 | ||
9617 | _ACEOF | |
9618 | cat >>$CONFIG_STATUS <<_ACEOF | |
9619 | ac_cs_version="\\ | |
9620 | config.status | |
9621 | configured by $0, generated by GNU Autoconf 2.61, | |
9622 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
9623 | ||
9624 | Copyright (C) 2006 Free Software Foundation, Inc. | |
9625 | This config.status script is free software; the Free Software Foundation | |
9626 | gives unlimited permission to copy, distribute and modify it." | |
9627 | ||
9628 | ac_pwd='$ac_pwd' | |
9629 | srcdir='$srcdir' | |
9630 | INSTALL='$INSTALL' | |
9631 | _ACEOF | |
9632 | ||
9633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9634 | # If no file are specified by the user, then we need to provide default | |
9635 | # value. By we need to know if files were specified by the user. | |
9636 | ac_need_defaults=: | |
9637 | while test $# != 0 | |
9638 | do | |
9639 | case $1 in | |
9640 | --*=*) | |
9641 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
9642 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
9643 | ac_shift=: | |
9644 | ;; | |
9645 | *) | |
9646 | ac_option=$1 | |
9647 | ac_optarg=$2 | |
9648 | ac_shift=shift | |
9649 | ;; | |
9650 | esac | |
9651 | ||
9652 | case $ac_option in | |
9653 | # Handling of the options. | |
9654 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9655 | ac_cs_recheck=: ;; | |
9656 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
9657 | echo "$ac_cs_version"; exit ;; | |
9658 | --debug | --debu | --deb | --de | --d | -d ) | |
9659 | debug=: ;; | |
9660 | --file | --fil | --fi | --f ) | |
9661 | $ac_shift | |
9662 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9663 | ac_need_defaults=false;; | |
9664 | --header | --heade | --head | --hea ) | |
9665 | $ac_shift | |
9666 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9667 | ac_need_defaults=false;; | |
9668 | --he | --h) | |
9669 | # Conflict between --help and --header | |
9670 | { echo "$as_me: error: ambiguous option: $1 | |
9671 | Try \`$0 --help' for more information." >&2 | |
9672 | { (exit 1); exit 1; }; };; | |
9673 | --help | --hel | -h ) | |
9674 | echo "$ac_cs_usage"; exit ;; | |
9675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
9676 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9677 | ac_cs_silent=: ;; | |
9678 | ||
9679 | # This is an error. | |
9680 | -*) { echo "$as_me: error: unrecognized option: $1 | |
9681 | Try \`$0 --help' for more information." >&2 | |
9682 | { (exit 1); exit 1; }; } ;; | |
9683 | ||
9684 | *) ac_config_targets="$ac_config_targets $1" | |
9685 | ac_need_defaults=false ;; | |
9686 | ||
9687 | esac | |
9688 | shift | |
9689 | done | |
9690 | ||
9691 | ac_configure_extra_args= | |
9692 | ||
9693 | if $ac_cs_silent; then | |
9694 | exec 6>/dev/null | |
9695 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9696 | fi | |
9697 | ||
9698 | _ACEOF | |
9699 | cat >>$CONFIG_STATUS <<_ACEOF | |
9700 | if \$ac_cs_recheck; then | |
9701 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
9702 | CONFIG_SHELL=$SHELL | |
9703 | export CONFIG_SHELL | |
9704 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
9705 | fi | |
9706 | ||
9707 | _ACEOF | |
9708 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9709 | exec 5>>config.log | |
9710 | { | |
9711 | echo | |
9712 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9713 | ## Running $as_me. ## | |
9714 | _ASBOX | |
9715 | echo "$ac_log" | |
9716 | } >&5 | |
9717 | ||
9718 | _ACEOF | |
9719 | cat >>$CONFIG_STATUS <<_ACEOF | |
9720 | _ACEOF | |
9721 | ||
9722 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9723 | ||
9724 | # Handling of arguments. | |
9725 | for ac_config_target in $ac_config_targets | |
9726 | do | |
9727 | case $ac_config_target in | |
9728 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
9729 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
9730 | ||
9731 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
9732 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
9733 | { (exit 1); exit 1; }; };; | |
9734 | esac | |
9735 | done | |
9736 | ||
9737 | ||
9738 | # If the user did not use the arguments to specify the items to instantiate, | |
9739 | # then the envvar interface is used. Set only those that are not. | |
9740 | # We use the long form for the default assignment because of an extremely | |
9741 | # bizarre bug on SunOS 4.1.3. | |
9742 | if $ac_need_defaults; then | |
9743 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9744 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9745 | fi | |
9746 | ||
9747 | # Have a temporary directory for convenience. Make it in the build tree | |
9748 | # simply because there is no reason against having it here, and in addition, | |
9749 | # creating and moving files from /tmp can sometimes cause problems. | |
9750 | # Hook for its removal unless debugging. | |
9751 | # Note that there is a small window in which the directory will not be cleaned: | |
9752 | # after its creation but before its name has been assigned to `$tmp'. | |
9753 | $debug || | |
9754 | { | |
9755 | tmp= | |
9756 | trap 'exit_status=$? | |
9757 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
9758 | ' 0 | |
9759 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
9760 | } | |
9761 | # Create a (secure) tmp directory for tmp files. | |
9762 | ||
9763 | { | |
9764 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
9765 | test -n "$tmp" && test -d "$tmp" | |
9766 | } || | |
9767 | { | |
9768 | tmp=./conf$$-$RANDOM | |
9769 | (umask 077 && mkdir "$tmp") | |
9770 | } || | |
9771 | { | |
9772 | echo "$me: cannot create a temporary directory in ." >&2 | |
9773 | { (exit 1); exit 1; } | |
9774 | } | |
9775 | ||
9776 | # | |
9777 | # Set up the sed scripts for CONFIG_FILES section. | |
9778 | # | |
9779 | ||
9780 | # No need to generate the scripts if there are no CONFIG_FILES. | |
9781 | # This happens for instance when ./config.status config.h | |
9782 | if test -n "$CONFIG_FILES"; then | |
9783 | ||
9784 | _ACEOF | |
9785 | ||
9786 | ||
9787 | ||
9788 | ac_delim='%!_!# ' | |
9789 | for ac_last_try in false false false false false :; do | |
9790 | cat >conf$$subs.sed <<_ACEOF | |
9791 | SHELL!$SHELL$ac_delim | |
9792 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
9793 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
9794 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
9795 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
9796 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
9797 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
9798 | exec_prefix!$exec_prefix$ac_delim | |
9799 | prefix!$prefix$ac_delim | |
9800 | program_transform_name!$program_transform_name$ac_delim | |
9801 | bindir!$bindir$ac_delim | |
9802 | sbindir!$sbindir$ac_delim | |
9803 | libexecdir!$libexecdir$ac_delim | |
9804 | datarootdir!$datarootdir$ac_delim | |
9805 | datadir!$datadir$ac_delim | |
9806 | sysconfdir!$sysconfdir$ac_delim | |
9807 | sharedstatedir!$sharedstatedir$ac_delim | |
9808 | localstatedir!$localstatedir$ac_delim | |
9809 | includedir!$includedir$ac_delim | |
9810 | oldincludedir!$oldincludedir$ac_delim | |
9811 | docdir!$docdir$ac_delim | |
9812 | infodir!$infodir$ac_delim | |
9813 | htmldir!$htmldir$ac_delim | |
9814 | dvidir!$dvidir$ac_delim | |
9815 | pdfdir!$pdfdir$ac_delim | |
9816 | psdir!$psdir$ac_delim | |
9817 | libdir!$libdir$ac_delim | |
9818 | localedir!$localedir$ac_delim | |
9819 | mandir!$mandir$ac_delim | |
9820 | DEFS!$DEFS$ac_delim | |
9821 | ECHO_C!$ECHO_C$ac_delim | |
9822 | ECHO_N!$ECHO_N$ac_delim | |
9823 | ECHO_T!$ECHO_T$ac_delim | |
9824 | LIBS!$LIBS$ac_delim | |
9825 | build_alias!$build_alias$ac_delim | |
9826 | host_alias!$host_alias$ac_delim | |
9827 | target_alias!$target_alias$ac_delim | |
9828 | CC!$CC$ac_delim | |
9829 | CFLAGS!$CFLAGS$ac_delim | |
9830 | LDFLAGS!$LDFLAGS$ac_delim | |
9831 | CPPFLAGS!$CPPFLAGS$ac_delim | |
9832 | ac_ct_CC!$ac_ct_CC$ac_delim | |
9833 | EXEEXT!$EXEEXT$ac_delim | |
9834 | OBJEXT!$OBJEXT$ac_delim | |
9835 | build!$build$ac_delim | |
9836 | build_cpu!$build_cpu$ac_delim | |
9837 | build_vendor!$build_vendor$ac_delim | |
9838 | build_os!$build_os$ac_delim | |
9839 | host!$host$ac_delim | |
9840 | host_cpu!$host_cpu$ac_delim | |
9841 | host_vendor!$host_vendor$ac_delim | |
9842 | host_os!$host_os$ac_delim | |
11b73fef | 9843 | PRTDIAG!$PRTDIAG$ac_delim |
bf042c35 | 9844 | target!$target$ac_delim |
9845 | target_cpu!$target_cpu$ac_delim | |
9846 | target_vendor!$target_vendor$ac_delim | |
9847 | target_os!$target_os$ac_delim | |
bf042c35 | 9848 | SET_MAKE!$SET_MAKE$ac_delim |
9849 | RM!$RM$ac_delim | |
9850 | CP!$CP$ac_delim | |
9851 | MV!$MV$ac_delim | |
9852 | SED!$SED$ac_delim | |
9853 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
9854 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
9855 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
9856 | CPP!$CPP$ac_delim | |
9857 | GREP!$GREP$ac_delim | |
9858 | EGREP!$EGREP$ac_delim | |
9859 | LIBOBJS!$LIBOBJS$ac_delim | |
bf042c35 | 9860 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim |
9861 | SSL_LIBS!$SSL_LIBS$ac_delim | |
9862 | SENGINE!$SENGINE$ac_delim | |
9863 | INSTALL_DIR!$INSTALL_DIR$ac_delim | |
9864 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
9865 | _ACEOF | |
9866 | ||
c1e4317a | 9867 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then |
bf042c35 | 9868 | break |
9869 | elif $ac_last_try; then | |
9870 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
9871 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
9872 | { (exit 1); exit 1; }; } | |
9873 | else | |
9874 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9875 | fi | |
9876 | done | |
9877 | ||
9878 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
9879 | if test -n "$ac_eof"; then | |
9880 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
9881 | ac_eof=`expr $ac_eof + 1` | |
9882 | fi | |
9883 | ||
9884 | cat >>$CONFIG_STATUS <<_ACEOF | |
9885 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
9886 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
9887 | _ACEOF | |
9888 | sed ' | |
9889 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
9890 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
9891 | :n | |
9892 | t n | |
9893 | s/'"$ac_delim"'$/,g/; t | |
9894 | s/$/\\/; p | |
9895 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
9896 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
9897 | rm -f conf$$subs.sed | |
9898 | cat >>$CONFIG_STATUS <<_ACEOF | |
9899 | :end | |
9900 | s/|#_!!_#|//g | |
9901 | CEOF$ac_eof | |
9902 | _ACEOF | |
9903 | ||
9904 | ||
9905 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
9906 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9907 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9908 | # (actually we leave an empty line to preserve line numbers). | |
9909 | if test "x$srcdir" = x.; then | |
9910 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
9911 | s/:*\$(srcdir):*/:/ | |
9912 | s/:*\${srcdir}:*/:/ | |
9913 | s/:*@srcdir@:*/:/ | |
9914 | s/^\([^=]*=[ ]*\):*/\1/ | |
9915 | s/:*$// | |
9916 | s/^[^=]*=[ ]*$// | |
9917 | }' | |
9918 | fi | |
9919 | ||
9920 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9921 | fi # test -n "$CONFIG_FILES" | |
9922 | ||
9923 | ||
9924 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
9925 | do | |
9926 | case $ac_tag in | |
9927 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
9928 | esac | |
9929 | case $ac_mode$ac_tag in | |
9930 | :[FHL]*:*);; | |
9931 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
9932 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
9933 | { (exit 1); exit 1; }; };; | |
9934 | :[FH]-) ac_tag=-:-;; | |
9935 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
9936 | esac | |
9937 | ac_save_IFS=$IFS | |
9938 | IFS=: | |
9939 | set x $ac_tag | |
9940 | IFS=$ac_save_IFS | |
9941 | shift | |
9942 | ac_file=$1 | |
9943 | shift | |
9944 | ||
9945 | case $ac_mode in | |
9946 | :L) ac_source=$1;; | |
9947 | :[FH]) | |
9948 | ac_file_inputs= | |
9949 | for ac_f | |
9950 | do | |
9951 | case $ac_f in | |
9952 | -) ac_f="$tmp/stdin";; | |
9953 | *) # Look for the file first in the build tree, then in the source tree | |
9954 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9955 | # because $ac_f cannot contain `:'. | |
9956 | test -f "$ac_f" || | |
9957 | case $ac_f in | |
9958 | [\\/$]*) false;; | |
9959 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9960 | esac || | |
9961 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
9962 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
9963 | { (exit 1); exit 1; }; };; | |
9964 | esac | |
9965 | ac_file_inputs="$ac_file_inputs $ac_f" | |
9966 | done | |
9967 | ||
9968 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9969 | # use $as_me), people would be surprised to read: | |
9970 | # /* config.h. Generated by config.status. */ | |
9971 | configure_input="Generated from "`IFS=: | |
9972 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
9973 | if test x"$ac_file" != x-; then | |
9974 | configure_input="$ac_file. $configure_input" | |
9975 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9976 | echo "$as_me: creating $ac_file" >&6;} | |
9977 | fi | |
9978 | ||
9979 | case $ac_tag in | |
9980 | *:-:* | *:-) cat >"$tmp/stdin";; | |
9981 | esac | |
9982 | ;; | |
9983 | esac | |
9984 | ||
9985 | ac_dir=`$as_dirname -- "$ac_file" || | |
9986 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9987 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9988 | X"$ac_file" : 'X\(//\)$' \| \ | |
9989 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
9990 | echo X"$ac_file" | | |
9991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9992 | s//\1/ | |
9993 | q | |
9994 | } | |
9995 | /^X\(\/\/\)[^/].*/{ | |
9996 | s//\1/ | |
9997 | q | |
9998 | } | |
9999 | /^X\(\/\/\)$/{ | |
10000 | s//\1/ | |
10001 | q | |
10002 | } | |
10003 | /^X\(\/\).*/{ | |
10004 | s//\1/ | |
10005 | q | |
10006 | } | |
10007 | s/.*/./; q'` | |
10008 | { as_dir="$ac_dir" | |
10009 | case $as_dir in #( | |
10010 | -*) as_dir=./$as_dir;; | |
10011 | esac | |
10012 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
10013 | as_dirs= | |
10014 | while :; do | |
10015 | case $as_dir in #( | |
10016 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
10017 | *) as_qdir=$as_dir;; | |
10018 | esac | |
10019 | as_dirs="'$as_qdir' $as_dirs" | |
10020 | as_dir=`$as_dirname -- "$as_dir" || | |
10021 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10022 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10023 | X"$as_dir" : 'X\(//\)$' \| \ | |
10024 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10025 | echo X"$as_dir" | | |
10026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10027 | s//\1/ | |
10028 | q | |
10029 | } | |
10030 | /^X\(\/\/\)[^/].*/{ | |
10031 | s//\1/ | |
10032 | q | |
10033 | } | |
10034 | /^X\(\/\/\)$/{ | |
10035 | s//\1/ | |
10036 | q | |
10037 | } | |
10038 | /^X\(\/\).*/{ | |
10039 | s//\1/ | |
10040 | q | |
10041 | } | |
10042 | s/.*/./; q'` | |
10043 | test -d "$as_dir" && break | |
10044 | done | |
10045 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10046 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
10047 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
10048 | { (exit 1); exit 1; }; }; } | |
10049 | ac_builddir=. | |
10050 | ||
10051 | case "$ac_dir" in | |
10052 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10053 | *) | |
10054 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
10055 | # A ".." for each directory in $ac_dir_suffix. | |
10056 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
10057 | case $ac_top_builddir_sub in | |
10058 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10059 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10060 | esac ;; | |
10061 | esac | |
10062 | ac_abs_top_builddir=$ac_pwd | |
10063 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10064 | # for backward compatibility: | |
10065 | ac_top_builddir=$ac_top_build_prefix | |
10066 | ||
10067 | case $srcdir in | |
10068 | .) # We are building in place. | |
10069 | ac_srcdir=. | |
10070 | ac_top_srcdir=$ac_top_builddir_sub | |
10071 | ac_abs_top_srcdir=$ac_pwd ;; | |
10072 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10073 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10074 | ac_top_srcdir=$srcdir | |
10075 | ac_abs_top_srcdir=$srcdir ;; | |
10076 | *) # Relative name. | |
10077 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10078 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10079 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10080 | esac | |
10081 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10082 | ||
10083 | ||
10084 | case $ac_mode in | |
10085 | :F) | |
10086 | # | |
10087 | # CONFIG_FILE | |
10088 | # | |
10089 | ||
10090 | case $INSTALL in | |
10091 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
10092 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
10093 | esac | |
10094 | _ACEOF | |
10095 | ||
10096 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10097 | # If the template does not know about datarootdir, expand it. | |
10098 | # FIXME: This hack should be removed a few years after 2.60. | |
10099 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
10100 | ||
10101 | case `sed -n '/datarootdir/ { | |
10102 | p | |
10103 | q | |
10104 | } | |
10105 | /@datadir@/p | |
10106 | /@docdir@/p | |
10107 | /@infodir@/p | |
10108 | /@localedir@/p | |
10109 | /@mandir@/p | |
10110 | ' $ac_file_inputs` in | |
10111 | *datarootdir*) ac_datarootdir_seen=yes;; | |
10112 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
10113 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
10114 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
10115 | _ACEOF | |
10116 | cat >>$CONFIG_STATUS <<_ACEOF | |
10117 | ac_datarootdir_hack=' | |
10118 | s&@datadir@&$datadir&g | |
10119 | s&@docdir@&$docdir&g | |
10120 | s&@infodir@&$infodir&g | |
10121 | s&@localedir@&$localedir&g | |
10122 | s&@mandir@&$mandir&g | |
10123 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
10124 | esac | |
10125 | _ACEOF | |
10126 | ||
10127 | # Neutralize VPATH when `$srcdir' = `.'. | |
10128 | # Shell code in configure.ac might set extrasub. | |
10129 | # FIXME: do we really want to maintain this feature? | |
10130 | cat >>$CONFIG_STATUS <<_ACEOF | |
10131 | sed "$ac_vpsub | |
10132 | $extrasub | |
10133 | _ACEOF | |
10134 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10135 | :t | |
10136 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10137 | s&@configure_input@&$configure_input&;t t | |
10138 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
10139 | s&@srcdir@&$ac_srcdir&;t t | |
10140 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10141 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10142 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10143 | s&@builddir@&$ac_builddir&;t t | |
10144 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10145 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10146 | s&@INSTALL@&$ac_INSTALL&;t t | |
10147 | $ac_datarootdir_hack | |
10148 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
10149 | ||
10150 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10151 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
10152 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
10153 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
10154 | which seems to be undefined. Please make sure it is defined." >&5 | |
10155 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
10156 | which seems to be undefined. Please make sure it is defined." >&2;} | |
10157 | ||
10158 | rm -f "$tmp/stdin" | |
10159 | case $ac_file in | |
10160 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
10161 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
10162 | esac | |
10163 | ;; | |
10164 | :H) | |
10165 | # | |
10166 | # CONFIG_HEADER | |
10167 | # | |
10168 | _ACEOF | |
10169 | ||
10170 | # Transform confdefs.h into a sed script `conftest.defines', that | |
10171 | # substitutes the proper values into config.h.in to produce config.h. | |
10172 | rm -f conftest.defines conftest.tail | |
10173 | # First, append a space to every undef/define line, to ease matching. | |
10174 | echo 's/$/ /' >conftest.defines | |
10175 | # Then, protect against being on the right side of a sed subst, or in | |
10176 | # an unquoted here document, in config.status. If some macros were | |
10177 | # called several times there might be several #defines for the same | |
10178 | # symbol, which is useless. But do not sort them, since the last | |
10179 | # AC_DEFINE must be honored. | |
10180 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10181 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
10182 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
10183 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
10184 | # just an empty string. | |
10185 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
10186 | ac_dB='\\)[ (].*,\\1define\\2' | |
10187 | ac_dC=' ' | |
10188 | ac_dD=' ,' | |
10189 | ||
10190 | uniq confdefs.h | | |
10191 | sed -n ' | |
10192 | t rset | |
10193 | :rset | |
10194 | s/^[ ]*#[ ]*define[ ][ ]*// | |
10195 | t ok | |
10196 | d | |
10197 | :ok | |
10198 | s/[\\&,]/\\&/g | |
10199 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
10200 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
10201 | ' >>conftest.defines | |
10202 | ||
10203 | # Remove the space that was appended to ease matching. | |
10204 | # Then replace #undef with comments. This is necessary, for | |
10205 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
10206 | # on some systems where configure will not decide to define it. | |
10207 | # (The regexp can be short, since the line contains either #define or #undef.) | |
10208 | echo 's/ $// | |
10209 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
10210 | ||
10211 | # Break up conftest.defines: | |
10212 | ac_max_sed_lines=50 | |
10213 | ||
10214 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
10215 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
10216 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
10217 | # et cetera. | |
10218 | ac_in='$ac_file_inputs' | |
10219 | ac_out='"$tmp/out1"' | |
10220 | ac_nxt='"$tmp/out2"' | |
10221 | ||
10222 | while : | |
10223 | do | |
10224 | # Write a here document: | |
10225 | cat >>$CONFIG_STATUS <<_ACEOF | |
10226 | # First, check the format of the line: | |
10227 | cat >"\$tmp/defines.sed" <<\\CEOF | |
10228 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
10229 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
10230 | b | |
10231 | :def | |
10232 | _ACEOF | |
10233 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
10234 | echo 'CEOF | |
10235 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
10236 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
10237 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
10238 | grep . conftest.tail >/dev/null || break | |
10239 | rm -f conftest.defines | |
10240 | mv conftest.tail conftest.defines | |
10241 | done | |
10242 | rm -f conftest.defines conftest.tail | |
10243 | ||
10244 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
10245 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10246 | if test x"$ac_file" != x-; then | |
10247 | echo "/* $configure_input */" >"$tmp/config.h" | |
10248 | cat "$ac_result" >>"$tmp/config.h" | |
10249 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
10250 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
10251 | echo "$as_me: $ac_file is unchanged" >&6;} | |
10252 | else | |
10253 | rm -f $ac_file | |
10254 | mv "$tmp/config.h" $ac_file | |
10255 | fi | |
10256 | else | |
10257 | echo "/* $configure_input */" | |
10258 | cat "$ac_result" | |
10259 | fi | |
10260 | rm -f "$tmp/out12" | |
10261 | ;; | |
10262 | ||
10263 | ||
10264 | esac | |
10265 | ||
10266 | done # for ac_tag | |
10267 | ||
10268 | ||
10269 | { (exit 0); exit 0; } | |
10270 | _ACEOF | |
10271 | chmod +x $CONFIG_STATUS | |
10272 | ac_clean_files=$ac_clean_files_save | |
10273 | ||
10274 | ||
10275 | # configure is writing to config.log, and then calls config.status. | |
10276 | # config.status does its own redirection, appending to config.log. | |
10277 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10278 | # by configure, so config.status won't be able to write to it; its | |
10279 | # output is simply discarded. So we exec the FD to /dev/null, | |
10280 | # effectively closing config.log, so it can be properly (re)opened and | |
10281 | # appended to by config.status. When coming back to configure, we | |
10282 | # need to make the FD available again. | |
10283 | if test "$no_create" != yes; then | |
10284 | ac_cs_success=: | |
10285 | ac_config_status_args= | |
10286 | test "$silent" = yes && | |
10287 | ac_config_status_args="$ac_config_status_args --quiet" | |
10288 | exec 5>/dev/null | |
10289 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10290 | exec 5>>config.log | |
10291 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10292 | # would make configure fail if this is the last instruction. | |
10293 | $ac_cs_success || { (exit 1); exit 1; } | |
10294 | fi | |
10295 | ||
10296 | ||
10297 | echo "" | |
10298 | echo " *********** libd configuration **********" | |
10299 | echo " System Build Type: $target" | |
10300 | echo " Socket Engine Type: $engine" | |
10301 | echo " Encryption: $encryption" | |
10302 | echo " Maximum Connections: $maxconnections" | |
10303 | echo " Install Directory: $prefix" | |
10304 | echo " CFLAGS: $CFLAGS" | |
10305 | echo " CPPFLAGS: $CPPFLAGS" | |
10306 | echo " LDFLAGS: $LDFLAGS" | |
10307 | echo "" |