Parent Directory
|
Revision Log
- Rebuilt configure using autoconf 2.60
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.60 for ircd-hybrid 7.2.2. |
4 | # |
5 | # $Id$ |
6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
15 | # Be Bourne compatible |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
17 | emulate sh |
18 | NULLCMD=: |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 | # is contrary to our usage. Disable this feature. |
21 | alias -g '${1+"$@"}'='"$@"' |
22 | setopt NO_GLOB_SUBST |
23 | else |
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
25 | fi |
26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
27 | DUALCASE=1; export DUALCASE # for MKS sh |
28 | |
29 | |
30 | # PATH needs CR |
31 | # Avoid depending upon Character Ranges. |
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
35 | as_cr_digits='0123456789' |
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
37 | |
38 | # The user is always right. |
39 | if test "${PATH_SEPARATOR+set}" != set; then |
40 | echo "#! /bin/sh" >conf$$.sh |
41 | echo "exit 0" >>conf$$.sh |
42 | chmod +x conf$$.sh |
43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
44 | PATH_SEPARATOR=';' |
45 | else |
46 | PATH_SEPARATOR=: |
47 | fi |
48 | rm -f conf$$.sh |
49 | fi |
50 | |
51 | # Support unset when possible. |
52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
53 | as_unset=unset |
54 | else |
55 | as_unset=false |
56 | fi |
57 | |
58 | |
59 | # IFS |
60 | # We need space, tab and new line, in precisely that order. Quoting is |
61 | # there to prevent editors from complaining about space-tab. |
62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
63 | # splitting by setting IFS to empty value.) |
64 | as_nl=' |
65 | ' |
66 | IFS=" "" $as_nl" |
67 | |
68 | # Find who we are. Look in the path if we contain no directory separator. |
69 | case $0 in |
70 | *[\\/]* ) as_myself=$0 ;; |
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
72 | for as_dir in $PATH |
73 | do |
74 | IFS=$as_save_IFS |
75 | test -z "$as_dir" && as_dir=. |
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
77 | done |
78 | IFS=$as_save_IFS |
79 | |
80 | ;; |
81 | esac |
82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
83 | # in which case we are not to be found in the path. |
84 | if test "x$as_myself" = x; then |
85 | as_myself=$0 |
86 | fi |
87 | if test ! -f "$as_myself"; then |
88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
89 | { (exit 1); exit 1; } |
90 | fi |
91 | |
92 | # Work around bugs in pre-3.0 UWIN ksh. |
93 | for as_var in ENV MAIL MAILPATH |
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
95 | done |
96 | PS1='$ ' |
97 | PS2='> ' |
98 | PS4='+ ' |
99 | |
100 | # NLS nuisances. |
101 | for as_var in \ |
102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
104 | LC_TELEPHONE LC_TIME |
105 | do |
106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
107 | eval $as_var=C; export $as_var |
108 | else |
109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
110 | fi |
111 | done |
112 | |
113 | # Required to use basename. |
114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
116 | as_expr=expr |
117 | else |
118 | as_expr=false |
119 | fi |
120 | |
121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
122 | as_basename=basename |
123 | else |
124 | as_basename=false |
125 | fi |
126 | |
127 | |
128 | # Name of the executable. |
129 | as_me=`$as_basename -- "$0" || |
130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
131 | X"$0" : 'X\(//\)$' \| \ |
132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
133 | echo X/"$0" | |
134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
135 | s//\1/ |
136 | q |
137 | } |
138 | /^X\/\(\/\/\)$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\).*/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | s/.*/./; q'` |
147 | |
148 | # CDPATH. |
149 | $as_unset CDPATH |
150 | |
151 | |
152 | if test "x$CONFIG_SHELL" = x; then |
153 | if (eval ":") 2>/dev/null; then |
154 | as_have_required=yes |
155 | else |
156 | as_have_required=no |
157 | fi |
158 | |
159 | if test $as_have_required = yes && (eval ": |
160 | (as_func_return () { |
161 | (exit \$1) |
162 | } |
163 | as_func_success () { |
164 | as_func_return 0 |
165 | } |
166 | as_func_failure () { |
167 | as_func_return 1 |
168 | } |
169 | as_func_ret_success () { |
170 | return 0 |
171 | } |
172 | as_func_ret_failure () { |
173 | return 1 |
174 | } |
175 | |
176 | exitcode=0 |
177 | if as_func_success; then |
178 | : |
179 | else |
180 | exitcode=1 |
181 | echo as_func_success failed. |
182 | fi |
183 | |
184 | if as_func_failure; then |
185 | exitcode=1 |
186 | echo as_func_failure succeeded. |
187 | fi |
188 | |
189 | if as_func_ret_success; then |
190 | : |
191 | else |
192 | exitcode=1 |
193 | echo as_func_ret_success failed. |
194 | fi |
195 | |
196 | if as_func_ret_failure; then |
197 | exitcode=1 |
198 | echo as_func_ret_failure succeeded. |
199 | fi |
200 | |
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
202 | : |
203 | else |
204 | exitcode=1 |
205 | echo positional parameters were not saved. |
206 | fi |
207 | |
208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
209 | |
210 | ( |
211 | as_lineno_1=\$LINENO |
212 | as_lineno_2=\$LINENO |
213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
215 | ") 2> /dev/null; then |
216 | : |
217 | else |
218 | as_candidate_shells= |
219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 | do |
222 | IFS=$as_save_IFS |
223 | test -z "$as_dir" && as_dir=. |
224 | case $as_dir in |
225 | /*) |
226 | for as_base in sh bash ksh sh5; do |
227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
228 | done;; |
229 | esac |
230 | done |
231 | IFS=$as_save_IFS |
232 | |
233 | |
234 | for as_shell in $as_candidate_shells $SHELL; do |
235 | # Try only shells that exist, to save several forks. |
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
238 | # Be Bourne compatible |
239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
240 | emulate sh |
241 | NULLCMD=: |
242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
243 | # is contrary to our usage. Disable this feature. |
244 | alias -g '${1+"$@"}'='"$@"' |
245 | setopt NO_GLOB_SUBST |
246 | else |
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
248 | fi |
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
250 | DUALCASE=1; export DUALCASE # for MKS sh |
251 | |
252 | : |
253 | _ASEOF |
254 | }; then |
255 | CONFIG_SHELL=$as_shell |
256 | as_have_required=yes |
257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
258 | # Be Bourne compatible |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
260 | emulate sh |
261 | NULLCMD=: |
262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' |
265 | setopt NO_GLOB_SUBST |
266 | else |
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
268 | fi |
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
270 | DUALCASE=1; export DUALCASE # for MKS sh |
271 | |
272 | : |
273 | (as_func_return () { |
274 | (exit $1) |
275 | } |
276 | as_func_success () { |
277 | as_func_return 0 |
278 | } |
279 | as_func_failure () { |
280 | as_func_return 1 |
281 | } |
282 | as_func_ret_success () { |
283 | return 0 |
284 | } |
285 | as_func_ret_failure () { |
286 | return 1 |
287 | } |
288 | |
289 | exitcode=0 |
290 | if as_func_success; then |
291 | : |
292 | else |
293 | exitcode=1 |
294 | echo as_func_success failed. |
295 | fi |
296 | |
297 | if as_func_failure; then |
298 | exitcode=1 |
299 | echo as_func_failure succeeded. |
300 | fi |
301 | |
302 | if as_func_ret_success; then |
303 | : |
304 | else |
305 | exitcode=1 |
306 | echo as_func_ret_success failed. |
307 | fi |
308 | |
309 | if as_func_ret_failure; then |
310 | exitcode=1 |
311 | echo as_func_ret_failure succeeded. |
312 | fi |
313 | |
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
315 | : |
316 | else |
317 | exitcode=1 |
318 | echo positional parameters were not saved. |
319 | fi |
320 | |
321 | test $exitcode = 0) || { (exit 1); exit 1; } |
322 | |
323 | ( |
324 | as_lineno_1=$LINENO |
325 | as_lineno_2=$LINENO |
326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
328 | |
329 | _ASEOF |
330 | }; then |
331 | break |
332 | fi |
333 | |
334 | fi |
335 | |
336 | done |
337 | |
338 | if test "x$CONFIG_SHELL" != x; then |
339 | for as_var in BASH_ENV ENV |
340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
341 | done |
342 | export CONFIG_SHELL |
343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
344 | fi |
345 | |
346 | |
347 | if test $as_have_required = no; then |
348 | echo This script requires a shell more modern than all the |
349 | echo shells that I found on your system. Please install a |
350 | echo modern shell, or manually run the script under such a |
351 | echo shell if you do have one. |
352 | { (exit 1); exit 1; } |
353 | fi |
354 | |
355 | |
356 | fi |
357 | |
358 | fi |
359 | |
360 | |
361 | |
362 | (eval "as_func_return () { |
363 | (exit \$1) |
364 | } |
365 | as_func_success () { |
366 | as_func_return 0 |
367 | } |
368 | as_func_failure () { |
369 | as_func_return 1 |
370 | } |
371 | as_func_ret_success () { |
372 | return 0 |
373 | } |
374 | as_func_ret_failure () { |
375 | return 1 |
376 | } |
377 | |
378 | exitcode=0 |
379 | if as_func_success; then |
380 | : |
381 | else |
382 | exitcode=1 |
383 | echo as_func_success failed. |
384 | fi |
385 | |
386 | if as_func_failure; then |
387 | exitcode=1 |
388 | echo as_func_failure succeeded. |
389 | fi |
390 | |
391 | if as_func_ret_success; then |
392 | : |
393 | else |
394 | exitcode=1 |
395 | echo as_func_ret_success failed. |
396 | fi |
397 | |
398 | if as_func_ret_failure; then |
399 | exitcode=1 |
400 | echo as_func_ret_failure succeeded. |
401 | fi |
402 | |
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
404 | : |
405 | else |
406 | exitcode=1 |
407 | echo positional parameters were not saved. |
408 | fi |
409 | |
410 | test \$exitcode = 0") || { |
411 | echo No shell found that supports shell functions. |
412 | echo Please tell autoconf@gnu.org about your system, |
413 | echo including any error possibly output before this |
414 | echo message |
415 | } |
416 | |
417 | |
418 | |
419 | as_lineno_1=$LINENO |
420 | as_lineno_2=$LINENO |
421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
423 | |
424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
425 | # uniformly replaced by the line number. The first 'sed' inserts a |
426 | # line-number line after each line using $LINENO; the second 'sed' |
427 | # does the real work. The second script uses 'N' to pair each |
428 | # line-number line with the line containing $LINENO, and appends |
429 | # trailing '-' during substitution so that $LINENO is not a special |
430 | # case at line end. |
431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
434 | sed -n ' |
435 | p |
436 | /[$]LINENO/= |
437 | ' <$as_myself | |
438 | sed ' |
439 | s/[$]LINENO.*/&-/ |
440 | t lineno |
441 | b |
442 | :lineno |
443 | N |
444 | :loop |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
446 | t loop |
447 | s/-\n.*// |
448 | ' >$as_me.lineno && |
449 | chmod +x "$as_me.lineno" || |
450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
451 | { (exit 1); exit 1; }; } |
452 | |
453 | # Don't try to exec as it changes $[0], causing all sort of problems |
454 | # (the dirname of $[0] is not the place where we might find the |
455 | # original and so on. Autoconf is especially sensitive to this). |
456 | . "./$as_me.lineno" |
457 | # Exit status is that of the last command. |
458 | exit |
459 | } |
460 | |
461 | |
462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
463 | as_dirname=dirname |
464 | else |
465 | as_dirname=false |
466 | fi |
467 | |
468 | ECHO_C= ECHO_N= ECHO_T= |
469 | case `echo -n x` in |
470 | -n*) |
471 | case `echo 'x\c'` in |
472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
473 | *) ECHO_C='\c';; |
474 | esac;; |
475 | *) |
476 | ECHO_N='-n';; |
477 | esac |
478 | |
479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
481 | as_expr=expr |
482 | else |
483 | as_expr=false |
484 | fi |
485 | |
486 | rm -f conf$$ conf$$.exe conf$$.file |
487 | if test -d conf$$.dir; then |
488 | rm -f conf$$.dir/conf$$.file |
489 | else |
490 | rm -f conf$$.dir |
491 | mkdir conf$$.dir |
492 | fi |
493 | echo >conf$$.file |
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
495 | as_ln_s='ln -s' |
496 | # ... but there are two gotchas: |
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
499 | # In both cases, we have to default to `cp -p'. |
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
501 | as_ln_s='cp -p' |
502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
503 | as_ln_s=ln |
504 | else |
505 | as_ln_s='cp -p' |
506 | fi |
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | rmdir conf$$.dir 2>/dev/null |
509 | |
510 | if mkdir -p . 2>/dev/null; then |
511 | as_mkdir_p=: |
512 | else |
513 | test -d ./-p && rmdir ./-p |
514 | as_mkdir_p=false |
515 | fi |
516 | |
517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
518 | # systems may use methods other than mode bits to determine executability. |
519 | cat >conf$$.file <<_ASEOF |
520 | #! /bin/sh |
521 | exit 0 |
522 | _ASEOF |
523 | chmod +x conf$$.file |
524 | if test -x conf$$.file >/dev/null 2>&1; then |
525 | as_executable_p="test -x" |
526 | else |
527 | as_executable_p=: |
528 | fi |
529 | rm -f conf$$.file |
530 | |
531 | # Sed expression to map a string onto a valid CPP name. |
532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
533 | |
534 | # Sed expression to map a string onto a valid variable name. |
535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
536 | |
537 | |
538 | |
539 | exec 7<&0 </dev/null 6>&1 |
540 | |
541 | # Name of the host. |
542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
543 | # so uname gets run too. |
544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
545 | |
546 | # |
547 | # Initializations. |
548 | # |
549 | ac_default_prefix=/usr/local |
550 | ac_clean_files= |
551 | ac_config_libobj_dir=. |
552 | LIBOBJS= |
553 | cross_compiling=no |
554 | subdirs= |
555 | MFLAGS= |
556 | MAKEFLAGS= |
557 | SHELL=${CONFIG_SHELL-/bin/sh} |
558 | |
559 | # Identity of this package. |
560 | PACKAGE_NAME='ircd-hybrid' |
561 | PACKAGE_TARNAME='ircd-hybrid' |
562 | PACKAGE_VERSION='7.2.2' |
563 | PACKAGE_STRING='ircd-hybrid 7.2.2' |
564 | PACKAGE_BUGREPORT='' |
565 | |
566 | ac_default_prefix=/usr/local/ircd |
567 | # Factoring default headers for most tests. |
568 | ac_includes_default="\ |
569 | #include <stdio.h> |
570 | #if HAVE_SYS_TYPES_H |
571 | # include <sys/types.h> |
572 | #endif |
573 | #if HAVE_SYS_STAT_H |
574 | # include <sys/stat.h> |
575 | #endif |
576 | #if STDC_HEADERS |
577 | # include <stdlib.h> |
578 | # include <stddef.h> |
579 | #else |
580 | # if HAVE_STDLIB_H |
581 | # include <stdlib.h> |
582 | # endif |
583 | #endif |
584 | #if HAVE_STRING_H |
585 | # if !STDC_HEADERS && HAVE_MEMORY_H |
586 | # include <memory.h> |
587 | # endif |
588 | # include <string.h> |
589 | #endif |
590 | #if HAVE_STRINGS_H |
591 | # include <strings.h> |
592 | #endif |
593 | #if HAVE_INTTYPES_H |
594 | # include <inttypes.h> |
595 | #endif |
596 | #if HAVE_STDINT_H |
597 | # include <stdint.h> |
598 | #endif |
599 | #if HAVE_UNISTD_H |
600 | # include <unistd.h> |
601 | #endif" |
602 | |
603 | ac_subst_vars='SHELL |
604 | PATH_SEPARATOR |
605 | PACKAGE_NAME |
606 | PACKAGE_TARNAME |
607 | PACKAGE_VERSION |
608 | PACKAGE_STRING |
609 | PACKAGE_BUGREPORT |
610 | exec_prefix |
611 | prefix |
612 | program_transform_name |
613 | bindir |
614 | sbindir |
615 | libexecdir |
616 | datarootdir |
617 | datadir |
618 | sysconfdir |
619 | sharedstatedir |
620 | localstatedir |
621 | includedir |
622 | oldincludedir |
623 | docdir |
624 | infodir |
625 | htmldir |
626 | dvidir |
627 | pdfdir |
628 | psdir |
629 | libdir |
630 | localedir |
631 | mandir |
632 | DEFS |
633 | ECHO_C |
634 | ECHO_N |
635 | ECHO_T |
636 | LIBS |
637 | build_alias |
638 | host_alias |
639 | target_alias |
640 | CC |
641 | CFLAGS |
642 | LDFLAGS |
643 | CPPFLAGS |
644 | ac_ct_CC |
645 | EXEEXT |
646 | OBJEXT |
647 | MKDEP |
648 | MAKEDEPEND |
649 | STDOUT |
650 | CPP |
651 | GREP |
652 | EGREP |
653 | SET_MAKE |
654 | INSTALL_PROGRAM |
655 | INSTALL_SCRIPT |
656 | INSTALL_DATA |
657 | RM |
658 | CP |
659 | MV |
660 | LN |
661 | SED |
662 | AR |
663 | LD |
664 | TEST |
665 | INET_MISC |
666 | CRYPT_C |
667 | CRYPT_LIB |
668 | SNPRINTF_C |
669 | ENCSPEED |
670 | ZLIB_LD |
671 | SELECT_TYPE |
672 | CLOBBER |
673 | BALLOC_C |
674 | EXAMPLE_CONF |
675 | MODULES_LIBS |
676 | MOD_TARGET |
677 | SSL_SRCS_ENABLE |
678 | SSL_INCLUDES |
679 | SSL_LIBS |
680 | PICFLAGS |
681 | IRC_CFLAGS |
682 | SEDOBJ |
683 | DYNLINK_C |
684 | LIBOBJS |
685 | LTLIBOBJS' |
686 | ac_subst_files='' |
687 | ac_precious_vars='build_alias |
688 | host_alias |
689 | target_alias |
690 | CC |
691 | CFLAGS |
692 | LDFLAGS |
693 | CPPFLAGS |
694 | CPP' |
695 | |
696 | |
697 | # Initialize some variables set by options. |
698 | ac_init_help= |
699 | ac_init_version=false |
700 | # The variables have the same names as the options, with |
701 | # dashes changed to underlines. |
702 | cache_file=/dev/null |
703 | exec_prefix=NONE |
704 | no_create= |
705 | no_recursion= |
706 | prefix=NONE |
707 | program_prefix=NONE |
708 | program_suffix=NONE |
709 | program_transform_name=s,x,x, |
710 | silent= |
711 | site= |
712 | srcdir= |
713 | verbose= |
714 | x_includes=NONE |
715 | x_libraries=NONE |
716 | |
717 | # Installation directory options. |
718 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
719 | # and all the variables that are supposed to be based on exec_prefix |
720 | # by default will actually change. |
721 | # Use braces instead of parens because sh, perl, etc. also accept them. |
722 | # (The list follows the same order as the GNU Coding Standards.) |
723 | bindir='${exec_prefix}/bin' |
724 | sbindir='${exec_prefix}/sbin' |
725 | libexecdir='${exec_prefix}/libexec' |
726 | datarootdir='${prefix}/share' |
727 | datadir='${datarootdir}' |
728 | sysconfdir='${prefix}/etc' |
729 | sharedstatedir='${prefix}/com' |
730 | localstatedir='${prefix}/var' |
731 | includedir='${prefix}/include' |
732 | oldincludedir='/usr/include' |
733 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
734 | infodir='${datarootdir}/info' |
735 | htmldir='${docdir}' |
736 | dvidir='${docdir}' |
737 | pdfdir='${docdir}' |
738 | psdir='${docdir}' |
739 | libdir='${exec_prefix}/lib' |
740 | localedir='${datarootdir}/locale' |
741 | mandir='${datarootdir}/man' |
742 | |
743 | ac_prev= |
744 | ac_dashdash= |
745 | for ac_option |
746 | do |
747 | # If the previous option needs an argument, assign it. |
748 | if test -n "$ac_prev"; then |
749 | eval $ac_prev=\$ac_option |
750 | ac_prev= |
751 | continue |
752 | fi |
753 | |
754 | case $ac_option in |
755 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
756 | *) ac_optarg=yes ;; |
757 | esac |
758 | |
759 | # Accept the important Cygnus configure options, so we can diagnose typos. |
760 | |
761 | case $ac_dashdash$ac_option in |
762 | --) |
763 | ac_dashdash=yes ;; |
764 | |
765 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
766 | ac_prev=bindir ;; |
767 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
768 | bindir=$ac_optarg ;; |
769 | |
770 | -build | --build | --buil | --bui | --bu) |
771 | ac_prev=build_alias ;; |
772 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
773 | build_alias=$ac_optarg ;; |
774 | |
775 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
776 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
777 | ac_prev=cache_file ;; |
778 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
779 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
780 | cache_file=$ac_optarg ;; |
781 | |
782 | --config-cache | -C) |
783 | cache_file=config.cache ;; |
784 | |
785 | -datadir | --datadir | --datadi | --datad) |
786 | ac_prev=datadir ;; |
787 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
788 | datadir=$ac_optarg ;; |
789 | |
790 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
791 | | --dataroo | --dataro | --datar) |
792 | ac_prev=datarootdir ;; |
793 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
794 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
795 | datarootdir=$ac_optarg ;; |
796 | |
797 | -disable-* | --disable-*) |
798 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
799 | # Reject names that are not valid shell variable names. |
800 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
801 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
802 | { (exit 1); exit 1; }; } |
803 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
804 | eval enable_$ac_feature=no ;; |
805 | |
806 | -docdir | --docdir | --docdi | --doc | --do) |
807 | ac_prev=docdir ;; |
808 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
809 | docdir=$ac_optarg ;; |
810 | |
811 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
812 | ac_prev=dvidir ;; |
813 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
814 | dvidir=$ac_optarg ;; |
815 | |
816 | -enable-* | --enable-*) |
817 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
818 | # Reject names that are not valid shell variable names. |
819 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
820 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
821 | { (exit 1); exit 1; }; } |
822 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
823 | eval enable_$ac_feature=\$ac_optarg ;; |
824 | |
825 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
826 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
827 | | --exec | --exe | --ex) |
828 | ac_prev=exec_prefix ;; |
829 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
830 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
831 | | --exec=* | --exe=* | --ex=*) |
832 | exec_prefix=$ac_optarg ;; |
833 | |
834 | -gas | --gas | --ga | --g) |
835 | # Obsolete; use --with-gas. |
836 | with_gas=yes ;; |
837 | |
838 | -help | --help | --hel | --he | -h) |
839 | ac_init_help=long ;; |
840 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
841 | ac_init_help=recursive ;; |
842 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
843 | ac_init_help=short ;; |
844 | |
845 | -host | --host | --hos | --ho) |
846 | ac_prev=host_alias ;; |
847 | -host=* | --host=* | --hos=* | --ho=*) |
848 | host_alias=$ac_optarg ;; |
849 | |
850 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
851 | ac_prev=htmldir ;; |
852 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
853 | | --ht=*) |
854 | htmldir=$ac_optarg ;; |
855 | |
856 | -includedir | --includedir | --includedi | --included | --include \ |
857 | | --includ | --inclu | --incl | --inc) |
858 | ac_prev=includedir ;; |
859 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
860 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
861 | includedir=$ac_optarg ;; |
862 | |
863 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
864 | ac_prev=infodir ;; |
865 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
866 | infodir=$ac_optarg ;; |
867 | |
868 | -libdir | --libdir | --libdi | --libd) |
869 | ac_prev=libdir ;; |
870 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
871 | libdir=$ac_optarg ;; |
872 | |
873 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
874 | | --libexe | --libex | --libe) |
875 | ac_prev=libexecdir ;; |
876 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
877 | | --libexe=* | --libex=* | --libe=*) |
878 | libexecdir=$ac_optarg ;; |
879 | |
880 | -localedir | --localedir | --localedi | --localed | --locale) |
881 | ac_prev=localedir ;; |
882 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
883 | localedir=$ac_optarg ;; |
884 | |
885 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
886 | | --localstate | --localstat | --localsta | --localst | --locals) |
887 | ac_prev=localstatedir ;; |
888 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
889 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
890 | localstatedir=$ac_optarg ;; |
891 | |
892 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
893 | ac_prev=mandir ;; |
894 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
895 | mandir=$ac_optarg ;; |
896 | |
897 | -nfp | --nfp | --nf) |
898 | # Obsolete; use --without-fp. |
899 | with_fp=no ;; |
900 | |
901 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
902 | | --no-cr | --no-c | -n) |
903 | no_create=yes ;; |
904 | |
905 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
906 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
907 | no_recursion=yes ;; |
908 | |
909 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
910 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
911 | | --oldin | --oldi | --old | --ol | --o) |
912 | ac_prev=oldincludedir ;; |
913 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
914 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
915 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
916 | oldincludedir=$ac_optarg ;; |
917 | |
918 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
919 | ac_prev=prefix ;; |
920 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
921 | prefix=$ac_optarg ;; |
922 | |
923 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
924 | | --program-pre | --program-pr | --program-p) |
925 | ac_prev=program_prefix ;; |
926 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
927 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
928 | program_prefix=$ac_optarg ;; |
929 | |
930 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
931 | | --program-suf | --program-su | --program-s) |
932 | ac_prev=program_suffix ;; |
933 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
934 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
935 | program_suffix=$ac_optarg ;; |
936 | |
937 | -program-transform-name | --program-transform-name \ |
938 | | --program-transform-nam | --program-transform-na \ |
939 | | --program-transform-n | --program-transform- \ |
940 | | --program-transform | --program-transfor \ |
941 | | --program-transfo | --program-transf \ |
942 | | --program-trans | --program-tran \ |
943 | | --progr-tra | --program-tr | --program-t) |
944 | ac_prev=program_transform_name ;; |
945 | -program-transform-name=* | --program-transform-name=* \ |
946 | | --program-transform-nam=* | --program-transform-na=* \ |
947 | | --program-transform-n=* | --program-transform-=* \ |
948 | | --program-transform=* | --program-transfor=* \ |
949 | | --program-transfo=* | --program-transf=* \ |
950 | | --program-trans=* | --program-tran=* \ |
951 | | --progr-tra=* | --program-tr=* | --program-t=*) |
952 | program_transform_name=$ac_optarg ;; |
953 | |
954 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
955 | ac_prev=pdfdir ;; |
956 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
957 | pdfdir=$ac_optarg ;; |
958 | |
959 | -psdir | --psdir | --psdi | --psd | --ps) |
960 | ac_prev=psdir ;; |
961 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
962 | psdir=$ac_optarg ;; |
963 | |
964 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
965 | | -silent | --silent | --silen | --sile | --sil) |
966 | silent=yes ;; |
967 | |
968 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
969 | ac_prev=sbindir ;; |
970 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
971 | | --sbi=* | --sb=*) |
972 | sbindir=$ac_optarg ;; |
973 | |
974 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
975 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
976 | | --sharedst | --shareds | --shared | --share | --shar \ |
977 | | --sha | --sh) |
978 | ac_prev=sharedstatedir ;; |
979 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
980 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
981 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
982 | | --sha=* | --sh=*) |
983 | sharedstatedir=$ac_optarg ;; |
984 | |
985 | -site | --site | --sit) |
986 | ac_prev=site ;; |
987 | -site=* | --site=* | --sit=*) |
988 | site=$ac_optarg ;; |
989 | |
990 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
991 | ac_prev=srcdir ;; |
992 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
993 | srcdir=$ac_optarg ;; |
994 | |
995 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
996 | | --syscon | --sysco | --sysc | --sys | --sy) |
997 | ac_prev=sysconfdir ;; |
998 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
999 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1000 | sysconfdir=$ac_optarg ;; |
1001 | |
1002 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1003 | ac_prev=target_alias ;; |
1004 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1005 | target_alias=$ac_optarg ;; |
1006 | |
1007 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1008 | verbose=yes ;; |
1009 | |
1010 | -version | --version | --versio | --versi | --vers | -V) |
1011 | ac_init_version=: ;; |
1012 | |
1013 | -with-* | --with-*) |
1014 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1015 | # Reject names that are not valid shell variable names. |
1016 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1017 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1018 | { (exit 1); exit 1; }; } |
1019 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1020 | eval with_$ac_package=\$ac_optarg ;; |
1021 | |
1022 | -without-* | --without-*) |
1023 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1024 | # Reject names that are not valid shell variable names. |
1025 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1026 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1027 | { (exit 1); exit 1; }; } |
1028 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
1029 | eval with_$ac_package=no ;; |
1030 | |
1031 | --x) |
1032 | # Obsolete; use --with-x. |
1033 | with_x=yes ;; |
1034 | |
1035 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1036 | | --x-incl | --x-inc | --x-in | --x-i) |
1037 | ac_prev=x_includes ;; |
1038 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1039 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1040 | x_includes=$ac_optarg ;; |
1041 | |
1042 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1043 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1044 | ac_prev=x_libraries ;; |
1045 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1046 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1047 | x_libraries=$ac_optarg ;; |
1048 | |
1049 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1050 | Try \`$0 --help' for more information." >&2 |
1051 | { (exit 1); exit 1; }; } |
1052 | ;; |
1053 | |
1054 | *=*) |
1055 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1056 | # Reject names that are not valid shell variable names. |
1057 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1058 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1059 | { (exit 1); exit 1; }; } |
1060 | eval $ac_envvar=\$ac_optarg |
1061 | export $ac_envvar ;; |
1062 | |
1063 | *) |
1064 | # FIXME: should be removed in autoconf 3.0. |
1065 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1066 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1067 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1068 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1069 | ;; |
1070 | |
1071 | esac |
1072 | done |
1073 | |
1074 | if test -n "$ac_prev"; then |
1075 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1076 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1077 | { (exit 1); exit 1; }; } |
1078 | fi |
1079 | |
1080 | # Be sure to have absolute directory names. |
1081 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1082 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1083 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1084 | libdir localedir mandir |
1085 | do |
1086 | eval ac_val=\$$ac_var |
1087 | case $ac_val in |
1088 | [\\/$]* | ?:[\\/]* ) continue;; |
1089 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1090 | esac |
1091 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1092 | { (exit 1); exit 1; }; } |
1093 | done |
1094 | |
1095 | # There might be people who depend on the old broken behavior: `$host' |
1096 | # used to hold the argument of --host etc. |
1097 | # FIXME: To remove some day. |
1098 | build=$build_alias |
1099 | host=$host_alias |
1100 | target=$target_alias |
1101 | |
1102 | # FIXME: To remove some day. |
1103 | if test "x$host_alias" != x; then |
1104 | if test "x$build_alias" = x; then |
1105 | cross_compiling=maybe |
1106 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1107 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1108 | elif test "x$build_alias" != "x$host_alias"; then |
1109 | cross_compiling=yes |
1110 | fi |
1111 | fi |
1112 | |
1113 | ac_tool_prefix= |
1114 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1115 | |
1116 | test "$silent" = yes && exec 6>/dev/null |
1117 | |
1118 | |
1119 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1120 | ac_ls_di=`ls -di .` && |
1121 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1122 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1123 | { (exit 1); exit 1; }; } |
1124 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1125 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1126 | { (exit 1); exit 1; }; } |
1127 | |
1128 | |
1129 | # Find the source files, if location was not specified. |
1130 | if test -z "$srcdir"; then |
1131 | ac_srcdir_defaulted=yes |
1132 | # Try the directory containing this script, then the parent directory. |
1133 | ac_confdir=`$as_dirname -- "$0" || |
1134 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1135 | X"$0" : 'X\(//\)[^/]' \| \ |
1136 | X"$0" : 'X\(//\)$' \| \ |
1137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1138 | echo X"$0" | |
1139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1140 | s//\1/ |
1141 | q |
1142 | } |
1143 | /^X\(\/\/\)[^/].*/{ |
1144 | s//\1/ |
1145 | q |
1146 | } |
1147 | /^X\(\/\/\)$/{ |
1148 | s//\1/ |
1149 | q |
1150 | } |
1151 | /^X\(\/\).*/{ |
1152 | s//\1/ |
1153 | q |
1154 | } |
1155 | s/.*/./; q'` |
1156 | srcdir=$ac_confdir |
1157 | if test ! -r "$srcdir/$ac_unique_file"; then |
1158 | srcdir=.. |
1159 | fi |
1160 | else |
1161 | ac_srcdir_defaulted=no |
1162 | fi |
1163 | if test ! -r "$srcdir/$ac_unique_file"; then |
1164 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1165 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1166 | { (exit 1); exit 1; }; } |
1167 | fi |
1168 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1169 | ac_abs_confdir=`( |
1170 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1171 | { (exit 1); exit 1; }; } |
1172 | pwd)` |
1173 | # When building in place, set srcdir=. |
1174 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1175 | srcdir=. |
1176 | fi |
1177 | # Remove unnecessary trailing slashes from srcdir. |
1178 | # Double slashes in file names in object file debugging info |
1179 | # mess up M-x gdb in Emacs. |
1180 | case $srcdir in |
1181 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1182 | esac |
1183 | for ac_var in $ac_precious_vars; do |
1184 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1185 | eval ac_env_${ac_var}_value=\$${ac_var} |
1186 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1187 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1188 | done |
1189 | |
1190 | # |
1191 | # Report the --help message. |
1192 | # |
1193 | if test "$ac_init_help" = "long"; then |
1194 | # Omit some internal or obsolete options to make the list less imposing. |
1195 | # This message is too long to be a string in the A/UX 3.1 sh. |
1196 | cat <<_ACEOF |
1197 | \`configure' configures ircd-hybrid 7.2.2 to adapt to many kinds of systems. |
1198 | |
1199 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1200 | |
1201 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1202 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1203 | |
1204 | Defaults for the options are specified in brackets. |
1205 | |
1206 | Configuration: |
1207 | -h, --help display this help and exit |
1208 | --help=short display options specific to this package |
1209 | --help=recursive display the short help of all the included packages |
1210 | -V, --version display version information and exit |
1211 | -q, --quiet, --silent do not print \`checking...' messages |
1212 | --cache-file=FILE cache test results in FILE [disabled] |
1213 | -C, --config-cache alias for \`--cache-file=config.cache' |
1214 | -n, --no-create do not create output files |
1215 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1216 | |
1217 | Installation directories: |
1218 | --prefix=PREFIX install architecture-independent files in PREFIX |
1219 | [$ac_default_prefix] |
1220 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1221 | [PREFIX] |
1222 | |
1223 | By default, \`make install' will install all the files in |
1224 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1225 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1226 | for instance \`--prefix=\$HOME'. |
1227 | |
1228 | For better control, use the options below. |
1229 | |
1230 | Fine tuning of the installation directories: |
1231 | --bindir=DIR user executables [EPREFIX/bin] |
1232 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1233 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1234 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1235 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1236 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1237 | --libdir=DIR object code libraries [EPREFIX/lib] |
1238 | --includedir=DIR C header files [PREFIX/include] |
1239 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1240 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1241 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1242 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1243 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1244 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1245 | --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
1246 | --htmldir=DIR html documentation [DOCDIR] |
1247 | --dvidir=DIR dvi documentation [DOCDIR] |
1248 | --pdfdir=DIR pdf documentation [DOCDIR] |
1249 | --psdir=DIR ps documentation [DOCDIR] |
1250 | _ACEOF |
1251 | |
1252 | cat <<\_ACEOF |
1253 | _ACEOF |
1254 | fi |
1255 | |
1256 | if test -n "$ac_init_help"; then |
1257 | case $ac_init_help in |
1258 | short | recursive ) echo "Configuration of ircd-hybrid 7.2.2:";; |
1259 | esac |
1260 | cat <<\_ACEOF |
1261 | |
1262 | Optional Features: |
1263 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1264 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1265 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1266 | --disable-openssl Disable OpenSSL support. |
1267 | --disable-zlib Disable ziplinks support |
1268 | --enable-poll Force poll() usage. |
1269 | --enable-select Force select() usage. |
1270 | --enable-kqueue Force kqueue() usage. |
1271 | --enable-devpoll Force usage of /dev/poll. |
1272 | --enable-rtsigio Enable SIGIO with RT Signals (Linux only) |
1273 | --enable-epoll Enable Linux epoll support. |
1274 | --enable-clobber Don't preserve old binaries on make install |
1275 | --enable-assert Enable assert(). |
1276 | --enable-profile Enable profiling |
1277 | --enable-efence Enable ElectricFence (memory debugger). |
1278 | --disable-block-alloc Disable the block allocator (Only useful with |
1279 | ElectricFence) |
1280 | --enable-warnings Enable all sorts of warnings for debugging. |
1281 | --enable-small-net Enable small network support. |
1282 | --enable-efnet For IRCDs running on EFnet. |
1283 | --disable-gline-voting Disable G-line voting. |
1284 | --enable-halfops Enable halfops support. |
1285 | --enable-syslog="EVENTS" |
1286 | Enable syslog for events: kill, squit, connect, |
1287 | users, oper, space separated in quotes (default: |
1288 | disabled) |
1289 | --disable-shared-modules |
1290 | Disable shared modules. |
1291 | |
1292 | Optional Packages: |
1293 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1294 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1295 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
1296 | --with-syslog-facility=LOG |
1297 | Define the log facility to use with ircd's syslog |
1298 | output (default LOG_LOCAL4) |
1299 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 9) |
1300 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max |
1301 | 390) |
1302 | |
1303 | Some influential environment variables: |
1304 | CC C compiler command |
1305 | CFLAGS C compiler flags |
1306 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1307 | nonstandard directory <lib dir> |
1308 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1309 | you have headers in a nonstandard directory <include dir> |
1310 | CPP C preprocessor |
1311 | |
1312 | Use these variables to override the choices made by `configure' or to help |
1313 | it to find libraries and programs with nonstandard names/locations. |
1314 | |
1315 | _ACEOF |
1316 | ac_status=$? |
1317 | fi |
1318 | |
1319 | if test "$ac_init_help" = "recursive"; then |
1320 | # If there are subdirs, report their specific --help. |
1321 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1322 | test -d "$ac_dir" || continue |
1323 | ac_builddir=. |
1324 | |
1325 | case "$ac_dir" in |
1326 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1327 | *) |
1328 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1329 | # A ".." for each directory in $ac_dir_suffix. |
1330 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1331 | case $ac_top_builddir_sub in |
1332 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1333 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1334 | esac ;; |
1335 | esac |
1336 | ac_abs_top_builddir=$ac_pwd |
1337 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1338 | # for backward compatibility: |
1339 | ac_top_builddir=$ac_top_build_prefix |
1340 | |
1341 | case $srcdir in |
1342 | .) # We are building in place. |
1343 | ac_srcdir=. |
1344 | ac_top_srcdir=$ac_top_builddir_sub |
1345 | ac_abs_top_srcdir=$ac_pwd ;; |
1346 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1347 | ac_srcdir=$srcdir$ac_dir_suffix; |
1348 | ac_top_srcdir=$srcdir |
1349 | ac_abs_top_srcdir=$srcdir ;; |
1350 | *) # Relative name. |
1351 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1352 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1353 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1354 | esac |
1355 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1356 | |
1357 | cd "$ac_dir" || { ac_status=$?; continue; } |
1358 | # Check for guested configure. |
1359 | if test -f "$ac_srcdir/configure.gnu"; then |
1360 | echo && |
1361 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1362 | elif test -f "$ac_srcdir/configure"; then |
1363 | echo && |
1364 | $SHELL "$ac_srcdir/configure" --help=recursive |
1365 | else |
1366 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1367 | fi || ac_status=$? |
1368 | cd "$ac_pwd" || { ac_status=$?; break; } |
1369 | done |
1370 | fi |
1371 | |
1372 | test -n "$ac_init_help" && exit $ac_status |
1373 | if $ac_init_version; then |
1374 | cat <<\_ACEOF |
1375 | ircd-hybrid configure 7.2.2 |
1376 | generated by GNU Autoconf 2.60 |
1377 | |
1378 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1379 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1380 | This configure script is free software; the Free Software Foundation |
1381 | gives unlimited permission to copy, distribute and modify it. |
1382 | |
1383 | $Id$ |
1384 | _ACEOF |
1385 | exit |
1386 | fi |
1387 | cat >config.log <<_ACEOF |
1388 | This file contains any messages produced by compilers while |
1389 | running configure, to aid debugging if configure makes a mistake. |
1390 | |
1391 | It was created by ircd-hybrid $as_me 7.2.2, which was |
1392 | generated by GNU Autoconf 2.60. Invocation command line was |
1393 | |
1394 | $ $0 $@ |
1395 | |
1396 | _ACEOF |
1397 | exec 5>>config.log |
1398 | { |
1399 | cat <<_ASUNAME |
1400 | ## --------- ## |
1401 | ## Platform. ## |
1402 | ## --------- ## |
1403 | |
1404 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1405 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1406 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1407 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1408 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1409 | |
1410 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1411 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1412 | |
1413 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1414 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1415 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1416 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1417 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1418 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1419 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1420 | |
1421 | _ASUNAME |
1422 | |
1423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1424 | for as_dir in $PATH |
1425 | do |
1426 | IFS=$as_save_IFS |
1427 | test -z "$as_dir" && as_dir=. |
1428 | echo "PATH: $as_dir" |
1429 | done |
1430 | IFS=$as_save_IFS |
1431 | |
1432 | } >&5 |
1433 | |
1434 | cat >&5 <<_ACEOF |
1435 | |
1436 | |
1437 | ## ----------- ## |
1438 | ## Core tests. ## |
1439 | ## ----------- ## |
1440 | |
1441 | _ACEOF |
1442 | |
1443 | |
1444 | # Keep a trace of the command line. |
1445 | # Strip out --no-create and --no-recursion so they do not pile up. |
1446 | # Strip out --silent because we don't want to record it for future runs. |
1447 | # Also quote any args containing shell meta-characters. |
1448 | # Make two passes to allow for proper duplicate-argument suppression. |
1449 | ac_configure_args= |
1450 | ac_configure_args0= |
1451 | ac_configure_args1= |
1452 | ac_must_keep_next=false |
1453 | for ac_pass in 1 2 |
1454 | do |
1455 | for ac_arg |
1456 | do |
1457 | case $ac_arg in |
1458 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1459 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1460 | | -silent | --silent | --silen | --sile | --sil) |
1461 | continue ;; |
1462 | *\'*) |
1463 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1464 | esac |
1465 | case $ac_pass in |
1466 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1467 | 2) |
1468 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1469 | if test $ac_must_keep_next = true; then |
1470 | ac_must_keep_next=false # Got value, back to normal. |
1471 | else |
1472 | case $ac_arg in |
1473 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1474 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1475 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1476 | | -with-* | --with-* | -without-* | --without-* | --x) |
1477 | case "$ac_configure_args0 " in |
1478 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1479 | esac |
1480 | ;; |
1481 | -* ) ac_must_keep_next=true ;; |
1482 | esac |
1483 | fi |
1484 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1485 | ;; |
1486 | esac |
1487 | done |
1488 | done |
1489 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1490 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1491 | |
1492 | # When interrupted or exit'd, cleanup temporary files, and complete |
1493 | # config.log. We remove comments because anyway the quotes in there |
1494 | # would cause problems or look ugly. |
1495 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1496 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1497 | trap 'exit_status=$? |
1498 | # Save into config.log some information that might help in debugging. |
1499 | { |
1500 | echo |
1501 | |
1502 | cat <<\_ASBOX |
1503 | ## ---------------- ## |
1504 | ## Cache variables. ## |
1505 | ## ---------------- ## |
1506 | _ASBOX |
1507 | echo |
1508 | # The following way of writing the cache mishandles newlines in values, |
1509 | ( |
1510 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1511 | eval ac_val=\$$ac_var |
1512 | case $ac_val in #( |
1513 | *${as_nl}*) |
1514 | case $ac_var in #( |
1515 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1516 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1517 | esac |
1518 | case $ac_var in #( |
1519 | _ | IFS | as_nl) ;; #( |
1520 | *) $as_unset $ac_var ;; |
1521 | esac ;; |
1522 | esac |
1523 | done |
1524 | (set) 2>&1 | |
1525 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1526 | *${as_nl}ac_space=\ *) |
1527 | sed -n \ |
1528 | "s/'\''/'\''\\\\'\'''\''/g; |
1529 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1530 | ;; #( |
1531 | *) |
1532 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1533 | ;; |
1534 | esac | |
1535 | sort |
1536 | ) |
1537 | echo |
1538 | |
1539 | cat <<\_ASBOX |
1540 | ## ----------------- ## |
1541 | ## Output variables. ## |
1542 | ## ----------------- ## |
1543 | _ASBOX |
1544 | echo |
1545 | for ac_var in $ac_subst_vars |
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 | |
1555 | if test -n "$ac_subst_files"; then |
1556 | cat <<\_ASBOX |
1557 | ## ------------------- ## |
1558 | ## File substitutions. ## |
1559 | ## ------------------- ## |
1560 | _ASBOX |
1561 | echo |
1562 | for ac_var in $ac_subst_files |
1563 | do |
1564 | eval ac_val=\$$ac_var |
1565 | case $ac_val in |
1566 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1567 | esac |
1568 | echo "$ac_var='\''$ac_val'\''" |
1569 | done | sort |
1570 | echo |
1571 | fi |
1572 | |
1573 | if test -s confdefs.h; then |
1574 | cat <<\_ASBOX |
1575 | ## ----------- ## |
1576 | ## confdefs.h. ## |
1577 | ## ----------- ## |
1578 | _ASBOX |
1579 | echo |
1580 | cat confdefs.h |
1581 | echo |
1582 | fi |
1583 | test "$ac_signal" != 0 && |
1584 | echo "$as_me: caught signal $ac_signal" |
1585 | echo "$as_me: exit $exit_status" |
1586 | } >&5 |
1587 | rm -f core *.core core.conftest.* && |
1588 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1589 | exit $exit_status |
1590 | ' 0 |
1591 | for ac_signal in 1 2 13 15; do |
1592 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1593 | done |
1594 | ac_signal=0 |
1595 | |
1596 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1597 | rm -f -r conftest* confdefs.h |
1598 | |
1599 | # Predefined preprocessor variables. |
1600 | |
1601 | cat >>confdefs.h <<_ACEOF |
1602 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1603 | _ACEOF |
1604 | |
1605 | |
1606 | cat >>confdefs.h <<_ACEOF |
1607 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1608 | _ACEOF |
1609 | |
1610 | |
1611 | cat >>confdefs.h <<_ACEOF |
1612 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1613 | _ACEOF |
1614 | |
1615 | |
1616 | cat >>confdefs.h <<_ACEOF |
1617 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1618 | _ACEOF |
1619 | |
1620 | |
1621 | cat >>confdefs.h <<_ACEOF |
1622 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1623 | _ACEOF |
1624 | |
1625 | |
1626 | # Let the site file select an alternate cache file if it wants to. |
1627 | # Prefer explicitly selected file to automatically selected ones. |
1628 | if test -n "$CONFIG_SITE"; then |
1629 | set x "$CONFIG_SITE" |
1630 | elif test "x$prefix" != xNONE; then |
1631 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1632 | else |
1633 | set x "$ac_default_prefix/share/config.site" \ |
1634 | "$ac_default_prefix/etc/config.site" |
1635 | fi |
1636 | shift |
1637 | for ac_site_file |
1638 | do |
1639 | if test -r "$ac_site_file"; then |
1640 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1641 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1642 | sed 's/^/| /' "$ac_site_file" >&5 |
1643 | . "$ac_site_file" |
1644 | fi |
1645 | done |
1646 | |
1647 | if test -r "$cache_file"; then |
1648 | # Some versions of bash will fail to source /dev/null (special |
1649 | # files actually), so we avoid doing that. |
1650 | if test -f "$cache_file"; then |
1651 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1652 | echo "$as_me: loading cache $cache_file" >&6;} |
1653 | case $cache_file in |
1654 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1655 | *) . "./$cache_file";; |
1656 | esac |
1657 | fi |
1658 | else |
1659 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1660 | echo "$as_me: creating cache $cache_file" >&6;} |
1661 | >$cache_file |
1662 | fi |
1663 | |
1664 | # Check that the precious variables saved in the cache have kept the same |
1665 | # value. |
1666 | ac_cache_corrupted=false |
1667 | for ac_var in $ac_precious_vars; do |
1668 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1669 | eval ac_new_set=\$ac_env_${ac_var}_set |
1670 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1671 | eval ac_new_val=\$ac_env_${ac_var}_value |
1672 | case $ac_old_set,$ac_new_set in |
1673 | set,) |
1674 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1675 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1676 | ac_cache_corrupted=: ;; |
1677 | ,set) |
1678 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1679 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1680 | ac_cache_corrupted=: ;; |
1681 | ,);; |
1682 | *) |
1683 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1684 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1685 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1686 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1687 | echo "$as_me: former value: $ac_old_val" >&2;} |
1688 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1689 | echo "$as_me: current value: $ac_new_val" >&2;} |
1690 | ac_cache_corrupted=: |
1691 | fi;; |
1692 | esac |
1693 | # Pass precious variables to config.status. |
1694 | if test "$ac_new_set" = set; then |
1695 | case $ac_new_val in |
1696 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1697 | *) ac_arg=$ac_var=$ac_new_val ;; |
1698 | esac |
1699 | case " $ac_configure_args " in |
1700 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1701 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1702 | esac |
1703 | fi |
1704 | done |
1705 | if $ac_cache_corrupted; then |
1706 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1707 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1708 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1709 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1710 | { (exit 1); exit 1; }; } |
1711 | fi |
1712 | |
1713 | |
1714 | |
1715 | |
1716 | |
1717 | |
1718 | |
1719 | |
1720 | |
1721 | |
1722 | |
1723 | |
1724 | |
1725 | |
1726 | |
1727 | |
1728 | |
1729 | |
1730 | |
1731 | |
1732 | |
1733 | |
1734 | |
1735 | |
1736 | |
1737 | ac_ext=c |
1738 | ac_cpp='$CPP $CPPFLAGS' |
1739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1742 | |
1743 | |
1744 | |
1745 | ac_config_headers="$ac_config_headers include/setup.h" |
1746 | |
1747 | |
1748 | |
1749 | |
1750 | |
1751 | cat >>confdefs.h <<\_ACEOF |
1752 | #define _GNU_SOURCE 1 |
1753 | _ACEOF |
1754 | |
1755 | |
1756 | |
1757 | OLD_CFLAGS="$CFLAGS" |
1758 | ac_ext=c |
1759 | ac_cpp='$CPP $CPPFLAGS' |
1760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1763 | if test -n "$ac_tool_prefix"; then |
1764 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1765 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1768 | if test "${ac_cv_prog_CC+set}" = set; then |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1770 | else |
1771 | if test -n "$CC"; then |
1772 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1773 | else |
1774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1775 | for as_dir in $PATH |
1776 | do |
1777 | IFS=$as_save_IFS |
1778 | test -z "$as_dir" && as_dir=. |
1779 | for ac_exec_ext in '' $ac_executable_extensions; do |
1780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1781 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1783 | break 2 |
1784 | fi |
1785 | done |
1786 | done |
1787 | IFS=$as_save_IFS |
1788 | |
1789 | fi |
1790 | fi |
1791 | CC=$ac_cv_prog_CC |
1792 | if test -n "$CC"; then |
1793 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1794 | echo "${ECHO_T}$CC" >&6; } |
1795 | else |
1796 | { echo "$as_me:$LINENO: result: no" >&5 |
1797 | echo "${ECHO_T}no" >&6; } |
1798 | fi |
1799 | |
1800 | |
1801 | fi |
1802 | if test -z "$ac_cv_prog_CC"; then |
1803 | ac_ct_CC=$CC |
1804 | # Extract the first word of "gcc", so it can be a program name with args. |
1805 | set dummy gcc; ac_word=$2 |
1806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1808 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1810 | else |
1811 | if test -n "$ac_ct_CC"; then |
1812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1813 | else |
1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1815 | for as_dir in $PATH |
1816 | do |
1817 | IFS=$as_save_IFS |
1818 | test -z "$as_dir" && as_dir=. |
1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
1820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1821 | ac_cv_prog_ac_ct_CC="gcc" |
1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1823 | break 2 |
1824 | fi |
1825 | done |
1826 | done |
1827 | IFS=$as_save_IFS |
1828 | |
1829 | fi |
1830 | fi |
1831 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1832 | if test -n "$ac_ct_CC"; then |
1833 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1834 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
1835 | else |
1836 | { echo "$as_me:$LINENO: result: no" >&5 |
1837 | echo "${ECHO_T}no" >&6; } |
1838 | fi |
1839 | |
1840 | if test "x$ac_ct_CC" = x; then |
1841 | CC="" |
1842 | else |
1843 | case $cross_compiling:$ac_tool_warned in |
1844 | yes:) |
1845 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
1846 | whose name does not start with the host triplet. If you think this |
1847 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
1848 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
1849 | whose name does not start with the host triplet. If you think this |
1850 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
1851 | ac_tool_warned=yes ;; |
1852 | esac |
1853 | CC=$ac_ct_CC |
1854 | fi |
1855 | else |
1856 | CC="$ac_cv_prog_CC" |
1857 | fi |
1858 | |
1859 | if test -z "$CC"; then |
1860 | if test -n "$ac_tool_prefix"; then |
1861 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1862 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1865 | if test "${ac_cv_prog_CC+set}" = set; then |
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1867 | else |
1868 | if test -n "$CC"; then |
1869 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1870 | else |
1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1872 | for as_dir in $PATH |
1873 | do |
1874 | IFS=$as_save_IFS |
1875 | test -z "$as_dir" && as_dir=. |
1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
1877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1878 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1880 | break 2 |
1881 | fi |
1882 | done |
1883 | done |
1884 | IFS=$as_save_IFS |
1885 | |
1886 | fi |
1887 | fi |
1888 | CC=$ac_cv_prog_CC |
1889 | if test -n "$CC"; then |
1890 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1891 | echo "${ECHO_T}$CC" >&6; } |
1892 | else |
1893 | { echo "$as_me:$LINENO: result: no" >&5 |
1894 | echo "${ECHO_T}no" >&6; } |
1895 | fi |
1896 | |
1897 | |
1898 | fi |
1899 | fi |
1900 | if test -z "$CC"; then |
1901 | # Extract the first word of "cc", so it can be a program name with args. |
1902 | set dummy cc; ac_word=$2 |
1903 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1905 | if test "${ac_cv_prog_CC+set}" = set; then |
1906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1907 | else |
1908 | if test -n "$CC"; then |
1909 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1910 | else |
1911 | ac_prog_rejected=no |
1912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1913 | for as_dir in $PATH |
1914 | do |
1915 | IFS=$as_save_IFS |
1916 | test -z "$as_dir" && as_dir=. |
1917 | for ac_exec_ext in '' $ac_executable_extensions; do |
1918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1919 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1920 | ac_prog_rejected=yes |
1921 | continue |
1922 | fi |
1923 | ac_cv_prog_CC="cc" |
1924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1925 | break 2 |
1926 | fi |
1927 | done |
1928 | done |
1929 | IFS=$as_save_IFS |
1930 | |
1931 | if test $ac_prog_rejected = yes; then |
1932 | # We found a bogon in the path, so make sure we never use it. |
1933 | set dummy $ac_cv_prog_CC |
1934 | shift |
1935 | if test $# != 0; then |
1936 | # We chose a different compiler from the bogus one. |
1937 | # However, it has the same basename, so the bogon will be chosen |
1938 | # first if we set CC to just the basename; use the full file name. |
1939 | shift |
1940 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1941 | fi |
1942 | fi |
1943 | fi |
1944 | fi |
1945 | CC=$ac_cv_prog_CC |
1946 | if test -n "$CC"; then |
1947 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1948 | echo "${ECHO_T}$CC" >&6; } |
1949 | else |
1950 | { echo "$as_me:$LINENO: result: no" >&5 |
1951 | echo "${ECHO_T}no" >&6; } |
1952 | fi |
1953 | |
1954 | |
1955 | fi |
1956 | if test -z "$CC"; then |
1957 | if test -n "$ac_tool_prefix"; then |
1958 | for ac_prog in cl.exe |
1959 | do |
1960 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1961 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1964 | if test "${ac_cv_prog_CC+set}" = set; then |
1965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1966 | else |
1967 | if test -n "$CC"; then |
1968 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1969 | else |
1970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1971 | for as_dir in $PATH |
1972 | do |
1973 | IFS=$as_save_IFS |
1974 | test -z "$as_dir" && as_dir=. |
1975 | for ac_exec_ext in '' $ac_executable_extensions; do |
1976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1977 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1979 | break 2 |
1980 | fi |
1981 | done |
1982 | done |
1983 | IFS=$as_save_IFS |
1984 | |
1985 | fi |
1986 | fi |
1987 | CC=$ac_cv_prog_CC |
1988 | if test -n "$CC"; then |
1989 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1990 | echo "${ECHO_T}$CC" >&6; } |
1991 | else |
1992 | { echo "$as_me:$LINENO: result: no" >&5 |
1993 | echo "${ECHO_T}no" >&6; } |
1994 | fi |
1995 | |
1996 | |
1997 | test -n "$CC" && break |
1998 | done |
1999 | fi |
2000 | if test -z "$CC"; then |
2001 | ac_ct_CC=$CC |
2002 | for ac_prog in cl.exe |
2003 | do |
2004 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2005 | set dummy $ac_prog; ac_word=$2 |
2006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2010 | else |
2011 | if test -n "$ac_ct_CC"; then |
2012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2013 | else |
2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2015 | for as_dir in $PATH |
2016 | do |
2017 | IFS=$as_save_IFS |
2018 | test -z "$as_dir" && as_dir=. |
2019 | for ac_exec_ext in '' $ac_executable_extensions; do |
2020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2021 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2023 | break 2 |
2024 | fi |
2025 | done |
2026 | done |
2027 | IFS=$as_save_IFS |
2028 | |
2029 | fi |
2030 | fi |
2031 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2032 | if test -n "$ac_ct_CC"; then |
2033 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2034 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2035 | else |
2036 | { echo "$as_me:$LINENO: result: no" >&5 |
2037 | echo "${ECHO_T}no" >&6; } |
2038 | fi |
2039 | |
2040 | |
2041 | test -n "$ac_ct_CC" && break |
2042 | done |
2043 | |
2044 | if test "x$ac_ct_CC" = x; then |
2045 | CC="" |
2046 | else |
2047 | case $cross_compiling:$ac_tool_warned in |
2048 | yes:) |
2049 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2050 | whose name does not start with the host triplet. If you think this |
2051 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2052 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2053 | whose name does not start with the host triplet. If you think this |
2054 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2055 | ac_tool_warned=yes ;; |
2056 | esac |
2057 | CC=$ac_ct_CC |
2058 | fi |
2059 | fi |
2060 | |
2061 | fi |
2062 | |
2063 | |
2064 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2065 | See \`config.log' for more details." >&5 |
2066 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2067 | See \`config.log' for more details." >&2;} |
2068 | { (exit 1); exit 1; }; } |
2069 | |
2070 | # Provide some information about the compiler. |
2071 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2072 | ac_compiler=`set X $ac_compile; echo $2` |
2073 | { (ac_try="$ac_compiler --version >&5" |
2074 | case "(($ac_try" in |
2075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2076 | *) ac_try_echo=$ac_try;; |
2077 | esac |
2078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2079 | (eval "$ac_compiler --version >&5") 2>&5 |
2080 | ac_status=$? |
2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2082 | (exit $ac_status); } |
2083 | { (ac_try="$ac_compiler -v >&5" |
2084 | case "(($ac_try" in |
2085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2086 | *) ac_try_echo=$ac_try;; |
2087 | esac |
2088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2089 | (eval "$ac_compiler -v >&5") 2>&5 |
2090 | ac_status=$? |
2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2092 | (exit $ac_status); } |
2093 | { (ac_try="$ac_compiler -V >&5" |
2094 | case "(($ac_try" in |
2095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2096 | *) ac_try_echo=$ac_try;; |
2097 | esac |
2098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2099 | (eval "$ac_compiler -V >&5") 2>&5 |
2100 | ac_status=$? |
2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2102 | (exit $ac_status); } |
2103 | |
2104 | cat >conftest.$ac_ext <<_ACEOF |
2105 | /* confdefs.h. */ |
2106 | _ACEOF |
2107 | cat confdefs.h >>conftest.$ac_ext |
2108 | cat >>conftest.$ac_ext <<_ACEOF |
2109 | /* end confdefs.h. */ |
2110 | |
2111 | int |
2112 | main () |
2113 | { |
2114 | |
2115 | ; |
2116 | return 0; |
2117 | } |
2118 | _ACEOF |
2119 | ac_clean_files_save=$ac_clean_files |
2120 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2121 | # Try to create an executable without -o first, disregard a.out. |
2122 | # It will help us diagnose broken compilers, and finding out an intuition |
2123 | # of exeext. |
2124 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2125 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2126 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2127 | # |
2128 | # List of possible output files, starting from the most likely. |
2129 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2130 | # only as a last resort. b.out is created by i960 compilers. |
2131 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2132 | # |
2133 | # The IRIX 6 linker writes into existing files which may not be |
2134 | # executable, retaining their permissions. Remove them first so a |
2135 | # subsequent execution test works. |
2136 | ac_rmfiles= |
2137 | for ac_file in $ac_files |
2138 | do |
2139 | case $ac_file in |
2140 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2141 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2142 | esac |
2143 | done |
2144 | rm -f $ac_rmfiles |
2145 | |
2146 | if { (ac_try="$ac_link_default" |
2147 | case "(($ac_try" in |
2148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2149 | *) ac_try_echo=$ac_try;; |
2150 | esac |
2151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2152 | (eval "$ac_link_default") 2>&5 |
2153 | ac_status=$? |
2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2155 | (exit $ac_status); }; then |
2156 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2157 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2158 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2159 | # so that the user can short-circuit this test for compilers unknown to |
2160 | # Autoconf. |
2161 | for ac_file in $ac_files |
2162 | do |
2163 | test -f "$ac_file" || continue |
2164 | case $ac_file in |
2165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2166 | ;; |
2167 | [ab].out ) |
2168 | # We found the default executable, but exeext='' is most |
2169 | # certainly right. |
2170 | break;; |
2171 | *.* ) |
2172 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2173 | then :; else |
2174 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2175 | fi |
2176 | # We set ac_cv_exeext here because the later test for it is not |
2177 | # safe: cross compilers may not add the suffix if given an `-o' |
2178 | # argument, so we may need to know it at that point already. |
2179 | # Even if this section looks crufty: it has the advantage of |
2180 | # actually working. |
2181 | break;; |
2182 | * ) |
2183 | break;; |
2184 | esac |
2185 | done |
2186 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2187 | |
2188 | else |
2189 | echo "$as_me: failed program was:" >&5 |
2190 | sed 's/^/| /' conftest.$ac_ext >&5 |
2191 | |
2192 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2193 | See \`config.log' for more details." >&5 |
2194 | echo "$as_me: error: C compiler cannot create executables |
2195 | See \`config.log' for more details." >&2;} |
2196 | { (exit 77); exit 77; }; } |
2197 | fi |
2198 | |
2199 | ac_exeext=$ac_cv_exeext |
2200 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2201 | echo "${ECHO_T}$ac_file" >&6; } |
2202 | |
2203 | # Check that the compiler produces executables we can run. If not, either |
2204 | # the compiler is broken, or we cross compile. |
2205 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2206 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
2207 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2208 | # If not cross compiling, check that we can run a simple program. |
2209 | if test "$cross_compiling" != yes; then |
2210 | if { ac_try='./$ac_file' |
2211 | { (case "(($ac_try" in |
2212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2213 | *) ac_try_echo=$ac_try;; |
2214 | esac |
2215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2216 | (eval "$ac_try") 2>&5 |
2217 | ac_status=$? |
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2219 | (exit $ac_status); }; }; then |
2220 | cross_compiling=no |
2221 | else |
2222 | if test "$cross_compiling" = maybe; then |
2223 | cross_compiling=yes |
2224 | else |
2225 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2226 | If you meant to cross compile, use \`--host'. |
2227 | See \`config.log' for more details." >&5 |
2228 | echo "$as_me: error: cannot run C compiled programs. |
2229 | If you meant to cross compile, use \`--host'. |
2230 | See \`config.log' for more details." >&2;} |
2231 | { (exit 1); exit 1; }; } |
2232 | fi |
2233 | fi |
2234 | fi |
2235 | { echo "$as_me:$LINENO: result: yes" >&5 |
2236 | echo "${ECHO_T}yes" >&6; } |
2237 | |
2238 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2239 | ac_clean_files=$ac_clean_files_save |
2240 | # Check that the compiler produces executables we can run. If not, either |
2241 | # the compiler is broken, or we cross compile. |
2242 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2243 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2244 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2245 | echo "${ECHO_T}$cross_compiling" >&6; } |
2246 | |
2247 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2248 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2249 | if { (ac_try="$ac_link" |
2250 | case "(($ac_try" in |
2251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2252 | *) ac_try_echo=$ac_try;; |
2253 | esac |
2254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2255 | (eval "$ac_link") 2>&5 |
2256 | ac_status=$? |
2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2258 | (exit $ac_status); }; then |
2259 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2260 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2261 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2262 | # `rm'. |
2263 | for ac_file in conftest.exe conftest conftest.*; do |
2264 | test -f "$ac_file" || continue |
2265 | case $ac_file in |
2266 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2267 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2268 | break;; |
2269 | * ) break;; |
2270 | esac |
2271 | done |
2272 | else |
2273 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2274 | See \`config.log' for more details." >&5 |
2275 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2276 | See \`config.log' for more details." >&2;} |
2277 | { (exit 1); exit 1; }; } |
2278 | fi |
2279 | |
2280 | rm -f conftest$ac_cv_exeext |
2281 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2282 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2283 | |
2284 | rm -f conftest.$ac_ext |
2285 | EXEEXT=$ac_cv_exeext |
2286 | ac_exeext=$EXEEXT |
2287 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2288 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2289 | if test "${ac_cv_objext+set}" = set; then |
2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2291 | else |
2292 | cat >conftest.$ac_ext <<_ACEOF |
2293 | /* confdefs.h. */ |
2294 | _ACEOF |
2295 | cat confdefs.h >>conftest.$ac_ext |
2296 | cat >>conftest.$ac_ext <<_ACEOF |
2297 | /* end confdefs.h. */ |
2298 | |
2299 | int |
2300 | main () |
2301 | { |
2302 | |
2303 | ; |
2304 | return 0; |
2305 | } |
2306 | _ACEOF |
2307 | rm -f conftest.o conftest.obj |
2308 | if { (ac_try="$ac_compile" |
2309 | case "(($ac_try" in |
2310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2311 | *) ac_try_echo=$ac_try;; |
2312 | esac |
2313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2314 | (eval "$ac_compile") 2>&5 |
2315 | ac_status=$? |
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2317 | (exit $ac_status); }; then |
2318 | for ac_file in conftest.o conftest.obj conftest.*; do |
2319 | test -f "$ac_file" || continue; |
2320 | case $ac_file in |
2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2322 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2323 | break;; |
2324 | esac |
2325 | done |
2326 | else |
2327 | echo "$as_me: failed program was:" >&5 |
2328 | sed 's/^/| /' conftest.$ac_ext >&5 |
2329 | |
2330 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2331 | See \`config.log' for more details." >&5 |
2332 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2333 | See \`config.log' for more details." >&2;} |
2334 | { (exit 1); exit 1; }; } |
2335 | fi |
2336 | |
2337 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2338 | fi |
2339 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2340 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
2341 | OBJEXT=$ac_cv_objext |
2342 | ac_objext=$OBJEXT |
2343 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2344 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2345 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2347 | else |
2348 | cat >conftest.$ac_ext <<_ACEOF |
2349 | /* confdefs.h. */ |
2350 | _ACEOF |
2351 | cat confdefs.h >>conftest.$ac_ext |
2352 | cat >>conftest.$ac_ext <<_ACEOF |
2353 | /* end confdefs.h. */ |
2354 | |
2355 | int |
2356 | main () |
2357 | { |
2358 | #ifndef __GNUC__ |
2359 | choke me |
2360 | #endif |
2361 | |
2362 | ; |
2363 | return 0; |
2364 | } |
2365 | _ACEOF |
2366 | rm -f conftest.$ac_objext |
2367 | if { (ac_try="$ac_compile" |
2368 | case "(($ac_try" in |
2369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2370 | *) ac_try_echo=$ac_try;; |
2371 | esac |
2372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2373 | (eval "$ac_compile") 2>conftest.er1 |
2374 | ac_status=$? |
2375 | grep -v '^ *+' conftest.er1 >conftest.err |
2376 | rm -f conftest.er1 |
2377 | cat conftest.err >&5 |
2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2379 | (exit $ac_status); } && |
2380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2381 | { (case "(($ac_try" in |
2382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2383 | *) ac_try_echo=$ac_try;; |
2384 | esac |
2385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2386 | (eval "$ac_try") 2>&5 |
2387 | ac_status=$? |
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2389 | (exit $ac_status); }; } && |
2390 | { ac_try='test -s conftest.$ac_objext' |
2391 | { (case "(($ac_try" in |
2392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2393 | *) ac_try_echo=$ac_try;; |
2394 | esac |
2395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2396 | (eval "$ac_try") 2>&5 |
2397 | ac_status=$? |
2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2399 | (exit $ac_status); }; }; then |
2400 | ac_compiler_gnu=yes |
2401 | else |
2402 | echo "$as_me: failed program was:" >&5 |
2403 | sed 's/^/| /' conftest.$ac_ext >&5 |
2404 | |
2405 | ac_compiler_gnu=no |
2406 | fi |
2407 | |
2408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2409 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2410 | |
2411 | fi |
2412 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2413 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2414 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2415 | ac_test_CFLAGS=${CFLAGS+set} |
2416 | ac_save_CFLAGS=$CFLAGS |
2417 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2418 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2419 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2421 | else |
2422 | ac_save_c_werror_flag=$ac_c_werror_flag |
2423 | ac_c_werror_flag=yes |
2424 | ac_cv_prog_cc_g=no |
2425 | CFLAGS="-g" |
2426 | cat >conftest.$ac_ext <<_ACEOF |
2427 | /* confdefs.h. */ |
2428 | _ACEOF |
2429 | cat confdefs.h >>conftest.$ac_ext |
2430 | cat >>conftest.$ac_ext <<_ACEOF |
2431 | /* end confdefs.h. */ |
2432 | |
2433 | int |
2434 | main () |
2435 | { |
2436 | |
2437 | ; |
2438 | return 0; |
2439 | } |
2440 | _ACEOF |
2441 | rm -f conftest.$ac_objext |
2442 | if { (ac_try="$ac_compile" |
2443 | case "(($ac_try" in |
2444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2445 | *) ac_try_echo=$ac_try;; |
2446 | esac |
2447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2448 | (eval "$ac_compile") 2>conftest.er1 |
2449 | ac_status=$? |
2450 | grep -v '^ *+' conftest.er1 >conftest.err |
2451 | rm -f conftest.er1 |
2452 | cat conftest.err >&5 |
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2454 | (exit $ac_status); } && |
2455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2456 | { (case "(($ac_try" in |
2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2458 | *) ac_try_echo=$ac_try;; |
2459 | esac |
2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2461 | (eval "$ac_try") 2>&5 |
2462 | ac_status=$? |
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2464 | (exit $ac_status); }; } && |
2465 | { ac_try='test -s conftest.$ac_objext' |
2466 | { (case "(($ac_try" in |
2467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2468 | *) ac_try_echo=$ac_try;; |
2469 | esac |
2470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2471 | (eval "$ac_try") 2>&5 |
2472 | ac_status=$? |
2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2474 | (exit $ac_status); }; }; then |
2475 | ac_cv_prog_cc_g=yes |
2476 | else |
2477 | echo "$as_me: failed program was:" >&5 |
2478 | sed 's/^/| /' conftest.$ac_ext >&5 |
2479 | |
2480 | CFLAGS="" |
2481 | cat >conftest.$ac_ext <<_ACEOF |
2482 | /* confdefs.h. */ |
2483 | _ACEOF |
2484 | cat confdefs.h >>conftest.$ac_ext |
2485 | cat >>conftest.$ac_ext <<_ACEOF |
2486 | /* end confdefs.h. */ |
2487 | |
2488 | int |
2489 | main () |
2490 | { |
2491 | |
2492 | ; |
2493 | return 0; |
2494 | } |
2495 | _ACEOF |
2496 | rm -f conftest.$ac_objext |
2497 | if { (ac_try="$ac_compile" |
2498 | case "(($ac_try" in |
2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2500 | *) ac_try_echo=$ac_try;; |
2501 | esac |
2502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2503 | (eval "$ac_compile") 2>conftest.er1 |
2504 | ac_status=$? |
2505 | grep -v '^ *+' conftest.er1 >conftest.err |
2506 | rm -f conftest.er1 |
2507 | cat conftest.err >&5 |
2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2509 | (exit $ac_status); } && |
2510 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2511 | { (case "(($ac_try" in |
2512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2513 | *) ac_try_echo=$ac_try;; |
2514 | esac |
2515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2516 | (eval "$ac_try") 2>&5 |
2517 | ac_status=$? |
2518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2519 | (exit $ac_status); }; } && |
2520 | { ac_try='test -s conftest.$ac_objext' |
2521 | { (case "(($ac_try" in |
2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2523 | *) ac_try_echo=$ac_try;; |
2524 | esac |
2525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2526 | (eval "$ac_try") 2>&5 |
2527 | ac_status=$? |
2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2529 | (exit $ac_status); }; }; then |
2530 | : |
2531 | else |
2532 | echo "$as_me: failed program was:" >&5 |
2533 | sed 's/^/| /' conftest.$ac_ext >&5 |
2534 | |
2535 | ac_c_werror_flag=$ac_save_c_werror_flag |
2536 | CFLAGS="-g" |
2537 | cat >conftest.$ac_ext <<_ACEOF |
2538 | /* confdefs.h. */ |
2539 | _ACEOF |
2540 | cat confdefs.h >>conftest.$ac_ext |
2541 | cat >>conftest.$ac_ext <<_ACEOF |
2542 | /* end confdefs.h. */ |
2543 | |
2544 | int |
2545 | main () |
2546 | { |
2547 | |
2548 | ; |
2549 | return 0; |
2550 | } |
2551 | _ACEOF |
2552 | rm -f conftest.$ac_objext |
2553 | if { (ac_try="$ac_compile" |
2554 | case "(($ac_try" in |
2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2556 | *) ac_try_echo=$ac_try;; |
2557 | esac |
2558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2559 | (eval "$ac_compile") 2>conftest.er1 |
2560 | ac_status=$? |
2561 | grep -v '^ *+' conftest.er1 >conftest.err |
2562 | rm -f conftest.er1 |
2563 | cat conftest.err >&5 |
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2565 | (exit $ac_status); } && |
2566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2567 | { (case "(($ac_try" in |
2568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2569 | *) ac_try_echo=$ac_try;; |
2570 | esac |
2571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2572 | (eval "$ac_try") 2>&5 |
2573 | ac_status=$? |
2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2575 | (exit $ac_status); }; } && |
2576 | { ac_try='test -s conftest.$ac_objext' |
2577 | { (case "(($ac_try" in |
2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2579 | *) ac_try_echo=$ac_try;; |
2580 | esac |
2581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2582 | (eval "$ac_try") 2>&5 |
2583 | ac_status=$? |
2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2585 | (exit $ac_status); }; }; then |
2586 | ac_cv_prog_cc_g=yes |
2587 | else |
2588 | echo "$as_me: failed program was:" >&5 |
2589 | sed 's/^/| /' conftest.$ac_ext >&5 |
2590 | |
2591 | |
2592 | fi |
2593 | |
2594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2595 | fi |
2596 | |
2597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2598 | fi |
2599 | |
2600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2601 | ac_c_werror_flag=$ac_save_c_werror_flag |
2602 | fi |
2603 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2604 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
2605 | if test "$ac_test_CFLAGS" = set; then |
2606 | CFLAGS=$ac_save_CFLAGS |
2607 | elif test $ac_cv_prog_cc_g = yes; then |
2608 | if test "$GCC" = yes; then |
2609 | CFLAGS="-g -O2" |
2610 | else |
2611 | CFLAGS="-g" |
2612 | fi |
2613 | else |
2614 | if test "$GCC" = yes; then |
2615 | CFLAGS="-O2" |
2616 | else |
2617 | CFLAGS= |
2618 | fi |
2619 | fi |
2620 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2621 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2622 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2624 | else |
2625 | ac_cv_prog_cc_c89=no |
2626 | ac_save_CC=$CC |
2627 | cat >conftest.$ac_ext <<_ACEOF |
2628 | /* confdefs.h. */ |
2629 | _ACEOF |
2630 | cat confdefs.h >>conftest.$ac_ext |
2631 | cat >>conftest.$ac_ext <<_ACEOF |
2632 | /* end confdefs.h. */ |
2633 | #include <stdarg.h> |
2634 | #include <stdio.h> |
2635 | #include <sys/types.h> |
2636 | #include <sys/stat.h> |
2637 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2638 | struct buf { int x; }; |
2639 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2640 | static char *e (p, i) |
2641 | char **p; |
2642 | int i; |
2643 | { |
2644 | return p[i]; |
2645 | } |
2646 | static char *f (char * (*g) (char **, int), char **p, ...) |
2647 | { |
2648 | char *s; |
2649 | va_list v; |
2650 | va_start (v,p); |
2651 | s = g (p, va_arg (v,int)); |
2652 | va_end (v); |
2653 | return s; |
2654 | } |
2655 | |
2656 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2657 | function prototypes and stuff, but not '\xHH' hex character constants. |
2658 | These don't provoke an error unfortunately, instead are silently treated |
2659 | as 'x'. The following induces an error, until -std is added to get |
2660 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2661 | array size at least. It's necessary to write '\x00'==0 to get something |
2662 | that's true only with -std. */ |
2663 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2664 | |
2665 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2666 | inside strings and character constants. */ |
2667 | #define FOO(x) 'x' |
2668 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
2669 | |
2670 | int test (int i, double x); |
2671 | struct s1 {int (*f) (int a);}; |
2672 | struct s2 {int (*f) (double a);}; |
2673 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2674 | int argc; |
2675 | char **argv; |
2676 | int |
2677 | main () |
2678 | { |
2679 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2680 | ; |
2681 | return 0; |
2682 | } |
2683 | _ACEOF |
2684 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2685 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2686 | do |
2687 | CC="$ac_save_CC $ac_arg" |
2688 | rm -f conftest.$ac_objext |
2689 | if { (ac_try="$ac_compile" |
2690 | case "(($ac_try" in |
2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2692 | *) ac_try_echo=$ac_try;; |
2693 | esac |
2694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2695 | (eval "$ac_compile") 2>conftest.er1 |
2696 | ac_status=$? |
2697 | grep -v '^ *+' conftest.er1 >conftest.err |
2698 | rm -f conftest.er1 |
2699 | cat conftest.err >&5 |
2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2701 | (exit $ac_status); } && |
2702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2703 | { (case "(($ac_try" in |
2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2705 | *) ac_try_echo=$ac_try;; |
2706 | esac |
2707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2708 | (eval "$ac_try") 2>&5 |
2709 | ac_status=$? |
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2711 | (exit $ac_status); }; } && |
2712 | { ac_try='test -s conftest.$ac_objext' |
2713 | { (case "(($ac_try" in |
2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2715 | *) ac_try_echo=$ac_try;; |
2716 | esac |
2717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2718 | (eval "$ac_try") 2>&5 |
2719 | ac_status=$? |
2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2721 | (exit $ac_status); }; }; then |
2722 | ac_cv_prog_cc_c89=$ac_arg |
2723 | else |
2724 | echo "$as_me: failed program was:" >&5 |
2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
2726 | |
2727 | |
2728 | fi |
2729 | |
2730 | rm -f core conftest.err conftest.$ac_objext |
2731 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2732 | done |
2733 | rm -f conftest.$ac_ext |
2734 | CC=$ac_save_CC |
2735 | |
2736 | fi |
2737 | # AC_CACHE_VAL |
2738 | case "x$ac_cv_prog_cc_c89" in |
2739 | x) |
2740 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2741 | echo "${ECHO_T}none needed" >&6; } ;; |
2742 | xno) |
2743 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2744 | echo "${ECHO_T}unsupported" >&6; } ;; |
2745 | *) |
2746 | CC="$CC $ac_cv_prog_cc_c89" |
2747 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2748 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2749 | esac |
2750 | |
2751 | |
2752 | ac_ext=c |
2753 | ac_cpp='$CPP $CPPFLAGS' |
2754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2757 | |
2758 | ac_ext=c |
2759 | ac_cpp='$CPP $CPPFLAGS' |
2760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2763 | |
2764 | |
2765 | CFLAGS="$OLD_CFLAGS" |
2766 | |
2767 | |
2768 | if test "$ac_cv_c_compiler_gnu" != yes; then |
2769 | |
2770 | SGS=no |
2771 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2772 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } |
2773 | case `$CC -version 2>&1` in |
2774 | *TenDRA*) |
2775 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2776 | echo "${ECHO_T}yes, TenDRA" >&6; } |
2777 | IRC_CFLAGS="" |
2778 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" |
2779 | SGS=yes |
2780 | TenDRA=yes |
2781 | ;; |
2782 | *MIPSpro*) |
2783 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2784 | echo "${ECHO_T}yes, MIPSpro" >&6; } |
2785 | MIPSpro=yes |
2786 | SGS=yes |
2787 | ;; |
2788 | *) |
2789 | { echo "$as_me:$LINENO: result: no" >&5 |
2790 | echo "${ECHO_T}no" >&6; } |
2791 | TenDRA=no |
2792 | MIPSpro=no |
2793 | ;; |
2794 | esac |
2795 | |
2796 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2797 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } |
2798 | case `$CC -V 2>&1` in |
2799 | *Sun*WorkShop* | *Forte*Developer* | *Sun*C*) |
2800 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2801 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } |
2802 | IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2803 | SunWorkShop=yes |
2804 | SGS=yes |
2805 | ;; |
2806 | *Tru64*) |
2807 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2808 | echo "${ECHO_T}Tru64 cc" >&6; } |
2809 | IRC_CFLAGS="" |
2810 | CPPFLAGS="-I/usr/local/include" |
2811 | Tru=yes |
2812 | ;; |
2813 | *HP*ANSI*) |
2814 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2815 | echo "${ECHO_T}HPUX cc" >&6; } |
2816 | HPUX=yes |
2817 | IRC_CFLAGS="+e" |
2818 | ;; |
2819 | *) |
2820 | { echo "$as_me:$LINENO: result: no" >&5 |
2821 | echo "${ECHO_T}no" >&6; } |
2822 | ;; |
2823 | esac |
2824 | |
2825 | fi |
2826 | |
2827 | { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5 |
2828 | echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6; } |
2829 | case `uname -s` in |
2830 | HP-UX*) |
2831 | |
2832 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
2833 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2834 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } |
2835 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2836 | HPUX=yes |
2837 | else |
2838 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2839 | echo "${ECHO_T}already using newer HPUX" >&6; } |
2840 | fi |
2841 | ;; |
2842 | CYGWIN*) |
2843 | { echo "$as_me:$LINENO: result: Cygwin" >&5 |
2844 | echo "${ECHO_T}Cygwin" >&6; } |
2845 | CYGWIN=yes |
2846 | ;; |
2847 | SunOS*) |
2848 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2849 | echo "${ECHO_T}SunOS or Solaris" >&6; } |
2850 | |
2851 | cat >>confdefs.h <<\_ACEOF |
2852 | #define __EXTENSIONS__ 1 |
2853 | _ACEOF |
2854 | |
2855 | ;; |
2856 | *) |
2857 | { echo "$as_me:$LINENO: result: no" >&5 |
2858 | echo "${ECHO_T}no" >&6; } |
2859 | ;; |
2860 | esac |
2861 | |
2862 | if test "$ac_cv_c_compiler_gnu" = yes; then |
2863 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2864 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } |
2865 | |
2866 | if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then |
2867 | AppleGCC=yes |
2868 | else |
2869 | AppleGCC=no |
2870 | fi |
2871 | |
2872 | { echo "$as_me:$LINENO: result: $AppleGCC" >&5 |
2873 | echo "${ECHO_T}$AppleGCC" >&6; } |
2874 | |
2875 | IRC_CFLAGS="$IRC_CFLAGS -Wall -O2" |
2876 | fi |
2877 | |
2878 | if test "$ac_cv_prog_cc_g" = yes; then |
2879 | if test "$Tru" = yes; then |
2880 | IRC_CFLAGS="$IRC_CFLAGS -g3" |
2881 | else |
2882 | IRC_CFLAGS="$IRC_CFLAGS -g" |
2883 | fi |
2884 | fi |
2885 | |
2886 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2887 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } |
2888 | if test "$SGS" = "yes"; then |
2889 | { echo "$as_me:$LINENO: result: yes" >&5 |
2890 | echo "${ECHO_T}yes" >&6; } |
2891 | else |
2892 | { echo "$as_me:$LINENO: result: no" >&5 |
2893 | echo "${ECHO_T}no" >&6; } |
2894 | fi |
2895 | |
2896 | # Extract the first word of "mkdep", so it can be a program name with args. |
2897 | set dummy mkdep; ac_word=$2 |
2898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2900 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2902 | else |
2903 | case $MKDEP in |
2904 | [\\/]* | ?:[\\/]*) |
2905 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. |
2906 | ;; |
2907 | *) |
2908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2909 | for as_dir in $PATH |
2910 | do |
2911 | IFS=$as_save_IFS |
2912 | test -z "$as_dir" && as_dir=. |
2913 | for ac_exec_ext in '' $ac_executable_extensions; do |
2914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2915 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2917 | break 2 |
2918 | fi |
2919 | done |
2920 | done |
2921 | IFS=$as_save_IFS |
2922 | |
2923 | ;; |
2924 | esac |
2925 | fi |
2926 | MKDEP=$ac_cv_path_MKDEP |
2927 | if test -n "$MKDEP"; then |
2928 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2929 | echo "${ECHO_T}$MKDEP" >&6; } |
2930 | else |
2931 | { echo "$as_me:$LINENO: result: no" >&5 |
2932 | echo "${ECHO_T}no" >&6; } |
2933 | fi |
2934 | |
2935 | |
2936 | # Extract the first word of "makedepend", so it can be a program name with args. |
2937 | set dummy makedepend; ac_word=$2 |
2938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2940 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2942 | else |
2943 | case $MAKEDEPEND in |
2944 | [\\/]* | ?:[\\/]*) |
2945 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. |
2946 | ;; |
2947 | *) |
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2949 | for as_dir in $PATH |
2950 | do |
2951 | IFS=$as_save_IFS |
2952 | test -z "$as_dir" && as_dir=. |
2953 | for ac_exec_ext in '' $ac_executable_extensions; do |
2954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2955 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2957 | break 2 |
2958 | fi |
2959 | done |
2960 | done |
2961 | IFS=$as_save_IFS |
2962 | |
2963 | ;; |
2964 | esac |
2965 | fi |
2966 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND |
2967 | if test -n "$MAKEDEPEND"; then |
2968 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2969 | echo "${ECHO_T}$MAKEDEPEND" >&6; } |
2970 | else |
2971 | { echo "$as_me:$LINENO: result: no" >&5 |
2972 | echo "${ECHO_T}no" >&6; } |
2973 | fi |
2974 | |
2975 | |
2976 | |
2977 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 |
2978 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } |
2979 | |
2980 | STDOUT="> .depend" |
2981 | |
2982 | if test "$ac_cv_c_compiler_gnu" = yes; then |
2983 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2984 | echo "${ECHO_T}gcc -MM" >&6; } |
2985 | MKDEP="$CC -MM" |
2986 | elif test ! -z "$MKDEP"; then |
2987 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2988 | echo "${ECHO_T}mkdep" >&6; } |
2989 | |
2990 | if test -z "$Tru"; then |
2991 | STDOUT="" |
2992 | else |
2993 | STDOUT=" 2> /dev/null" |
2994 | fi |
2995 | elif test "$SunWorkShop" = yes; then |
2996 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2997 | echo "${ECHO_T}$CC -xM" >&6; } |
2998 | MKDEP="$CC -xM" |
2999 | STDOUT="> .depend 2> /dev/null" |
3000 | elif test ! -z "$MAKEDEPEND"; then |
3001 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
3002 | echo "${ECHO_T}makedepend" >&6; } |
3003 | MKDEP="$MAKEDEPEND -f-" |
3004 | else |
3005 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
3006 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } |
3007 | MKDEP=":" |
3008 | fi |
3009 | |
3010 | |
3011 | |
3012 | |
3013 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
3014 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } |
3015 | if test -c /dev/null ; then |
3016 | |
3017 | cat >>confdefs.h <<\_ACEOF |
3018 | #define PATH_DEVNULL "/dev/null" |
3019 | _ACEOF |
3020 | |
3021 | { echo "$as_me:$LINENO: result: yes" >&5 |
3022 | echo "${ECHO_T}yes" >&6; } |
3023 | else |
3024 | |
3025 | cat >>confdefs.h <<\_ACEOF |
3026 | #define PATH_DEVNULL "devnull.log" |
3027 | _ACEOF |
3028 | |
3029 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
3030 | echo "${ECHO_T}no - using devnull.log" >&6; } |
3031 | fi |
3032 | |
3033 | if test ! -z "$CFLAGS"; then |
3034 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" |
3035 | fi |
3036 | |
3037 | |
3038 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3039 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3040 | if test "${ac_cv_search_strerror+set}" = set; then |
3041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3042 | else |
3043 | ac_func_search_save_LIBS=$LIBS |
3044 | cat >conftest.$ac_ext <<_ACEOF |
3045 | /* confdefs.h. */ |
3046 | _ACEOF |
3047 | cat confdefs.h >>conftest.$ac_ext |
3048 | cat >>conftest.$ac_ext <<_ACEOF |
3049 | /* end confdefs.h. */ |
3050 | |
3051 | /* Override any GCC internal prototype to avoid an error. |
3052 | Use char because int might match the return type of a GCC |
3053 | builtin and then its argument prototype would still apply. */ |
3054 | #ifdef __cplusplus |
3055 | extern "C" |
3056 | #endif |
3057 | char strerror (); |
3058 | int |
3059 | main () |
3060 | { |
3061 | return strerror (); |
3062 | ; |
3063 | return 0; |
3064 | } |
3065 | _ACEOF |
3066 | for ac_lib in '' cposix; do |
3067 | if test -z "$ac_lib"; then |
3068 | ac_res="none required" |
3069 | else |
3070 | ac_res=-l$ac_lib |
3071 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3072 | fi |
3073 | rm -f conftest.$ac_objext conftest$ac_exeext |
3074 | if { (ac_try="$ac_link" |
3075 | case "(($ac_try" in |
3076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3077 | *) ac_try_echo=$ac_try;; |
3078 | esac |
3079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3080 | (eval "$ac_link") 2>conftest.er1 |
3081 | ac_status=$? |
3082 | grep -v '^ *+' conftest.er1 >conftest.err |
3083 | rm -f conftest.er1 |
3084 | cat conftest.err >&5 |
3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3086 | (exit $ac_status); } && |
3087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3088 | { (case "(($ac_try" in |
3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3090 | *) ac_try_echo=$ac_try;; |
3091 | esac |
3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3093 | (eval "$ac_try") 2>&5 |
3094 | ac_status=$? |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3096 | (exit $ac_status); }; } && |
3097 | { ac_try='test -s conftest$ac_exeext' |
3098 | { (case "(($ac_try" in |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3100 | *) ac_try_echo=$ac_try;; |
3101 | esac |
3102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3103 | (eval "$ac_try") 2>&5 |
3104 | ac_status=$? |
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3106 | (exit $ac_status); }; }; then |
3107 | ac_cv_search_strerror=$ac_res |
3108 | else |
3109 | echo "$as_me: failed program was:" >&5 |
3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
3111 | |
3112 | |
3113 | fi |
3114 | |
3115 | rm -f core conftest.err conftest.$ac_objext \ |
3116 | conftest$ac_exeext |
3117 | if test "${ac_cv_search_strerror+set}" = set; then |
3118 | break |
3119 | fi |
3120 | done |
3121 | if test "${ac_cv_search_strerror+set}" = set; then |
3122 | : |
3123 | else |
3124 | ac_cv_search_strerror=no |
3125 | fi |
3126 | rm conftest.$ac_ext |
3127 | LIBS=$ac_func_search_save_LIBS |
3128 | fi |
3129 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3130 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3131 | ac_res=$ac_cv_search_strerror |
3132 | if test "$ac_res" != no; then |
3133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3134 | |
3135 | fi |
3136 | |
3137 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3138 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
3139 | if test "${ac_cv_c_inline+set}" = set; then |
3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3141 | else |
3142 | ac_cv_c_inline=no |
3143 | for ac_kw in inline __inline__ __inline; do |
3144 | cat >conftest.$ac_ext <<_ACEOF |
3145 | /* confdefs.h. */ |
3146 | _ACEOF |
3147 | cat confdefs.h >>conftest.$ac_ext |
3148 | cat >>conftest.$ac_ext <<_ACEOF |
3149 | /* end confdefs.h. */ |
3150 | #ifndef __cplusplus |
3151 | typedef int foo_t; |
3152 | static $ac_kw foo_t static_foo () {return 0; } |
3153 | $ac_kw foo_t foo () {return 0; } |
3154 | #endif |
3155 | |
3156 | _ACEOF |
3157 | rm -f conftest.$ac_objext |
3158 | if { (ac_try="$ac_compile" |
3159 | case "(($ac_try" in |
3160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3161 | *) ac_try_echo=$ac_try;; |
3162 | esac |
3163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3164 | (eval "$ac_compile") 2>conftest.er1 |
3165 | ac_status=$? |
3166 | grep -v '^ *+' conftest.er1 >conftest.err |
3167 | rm -f conftest.er1 |
3168 | cat conftest.err >&5 |
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3170 | (exit $ac_status); } && |
3171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3172 | { (case "(($ac_try" in |
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3174 | *) ac_try_echo=$ac_try;; |
3175 | esac |
3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3177 | (eval "$ac_try") 2>&5 |
3178 | ac_status=$? |
3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3180 | (exit $ac_status); }; } && |
3181 | { ac_try='test -s conftest.$ac_objext' |
3182 | { (case "(($ac_try" in |
3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3184 | *) ac_try_echo=$ac_try;; |
3185 | esac |
3186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3187 | (eval "$ac_try") 2>&5 |
3188 | ac_status=$? |
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3190 | (exit $ac_status); }; }; then |
3191 | ac_cv_c_inline=$ac_kw |
3192 | else |
3193 | echo "$as_me: failed program was:" >&5 |
3194 | sed 's/^/| /' conftest.$ac_ext >&5 |
3195 | |
3196 | |
3197 | fi |
3198 | |
3199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3200 | test "$ac_cv_c_inline" != no && break |
3201 | done |
3202 | |
3203 | fi |
3204 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3205 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
3206 | |
3207 | |
3208 | case $ac_cv_c_inline in |
3209 | inline | yes) ;; |
3210 | *) |
3211 | case $ac_cv_c_inline in |
3212 | no) ac_val=;; |
3213 | *) ac_val=$ac_cv_c_inline;; |
3214 | esac |
3215 | cat >>confdefs.h <<_ACEOF |
3216 | #ifndef __cplusplus |
3217 | #define inline $ac_val |
3218 | #endif |
3219 | _ACEOF |
3220 | ;; |
3221 | esac |
3222 | |
3223 | ac_ext=c |
3224 | ac_cpp='$CPP $CPPFLAGS' |
3225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3228 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3229 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3230 | # On Suns, sometimes $CPP names a directory. |
3231 | if test -n "$CPP" && test -d "$CPP"; then |
3232 | CPP= |
3233 | fi |
3234 | if test -z "$CPP"; then |
3235 | if test "${ac_cv_prog_CPP+set}" = set; then |
3236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3237 | else |
3238 | # Double quotes because CPP needs to be expanded |
3239 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3240 | do |
3241 | ac_preproc_ok=false |
3242 | for ac_c_preproc_warn_flag in '' yes |
3243 | do |
3244 | # Use a header file that comes with gcc, so configuring glibc |
3245 | # with a fresh cross-compiler works. |
3246 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3247 | # <limits.h> exists even on freestanding compilers. |
3248 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3249 | # not just through cpp. "Syntax error" is here to catch this case. |
3250 | cat >conftest.$ac_ext <<_ACEOF |
3251 | /* confdefs.h. */ |
3252 | _ACEOF |
3253 | cat confdefs.h >>conftest.$ac_ext |
3254 | cat >>conftest.$ac_ext <<_ACEOF |
3255 | /* end confdefs.h. */ |
3256 | #ifdef __STDC__ |
3257 | # include <limits.h> |
3258 | #else |
3259 | # include <assert.h> |
3260 | #endif |
3261 | Syntax error |
3262 | _ACEOF |
3263 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3264 | case "(($ac_try" in |
3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3266 | *) ac_try_echo=$ac_try;; |
3267 | esac |
3268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3269 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3270 | ac_status=$? |
3271 | grep -v '^ *+' conftest.er1 >conftest.err |
3272 | rm -f conftest.er1 |
3273 | cat conftest.err >&5 |
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3275 | (exit $ac_status); } >/dev/null; then |
3276 | if test -s conftest.err; then |
3277 | ac_cpp_err=$ac_c_preproc_warn_flag |
3278 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3279 | else |
3280 | ac_cpp_err= |
3281 | fi |
3282 | else |
3283 | ac_cpp_err=yes |
3284 | fi |
3285 | if test -z "$ac_cpp_err"; then |
3286 | : |
3287 | else |
3288 | echo "$as_me: failed program was:" >&5 |
3289 | sed 's/^/| /' conftest.$ac_ext >&5 |
3290 | |
3291 | # Broken: fails on valid input. |
3292 | continue |
3293 | fi |
3294 | |
3295 | rm -f conftest.err conftest.$ac_ext |
3296 | |
3297 | # OK, works on sane cases. Now check whether nonexistent headers |
3298 | # can be detected and how. |
3299 | cat >conftest.$ac_ext <<_ACEOF |
3300 | /* confdefs.h. */ |
3301 | _ACEOF |
3302 | cat confdefs.h >>conftest.$ac_ext |
3303 | cat >>conftest.$ac_ext <<_ACEOF |
3304 | /* end confdefs.h. */ |
3305 | #include <ac_nonexistent.h> |
3306 | _ACEOF |
3307 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3308 | case "(($ac_try" in |
3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3310 | *) ac_try_echo=$ac_try;; |
3311 | esac |
3312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3313 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3314 | ac_status=$? |
3315 | grep -v '^ *+' conftest.er1 >conftest.err |
3316 | rm -f conftest.er1 |
3317 | cat conftest.err >&5 |
3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3319 | (exit $ac_status); } >/dev/null; then |
3320 | if test -s conftest.err; then |
3321 | ac_cpp_err=$ac_c_preproc_warn_flag |
3322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3323 | else |
3324 | ac_cpp_err= |
3325 | fi |
3326 | else |
3327 | ac_cpp_err=yes |
3328 | fi |
3329 | if test -z "$ac_cpp_err"; then |
3330 | # Broken: success on invalid input. |
3331 | continue |
3332 | else |
3333 | echo "$as_me: failed program was:" >&5 |
3334 | sed 's/^/| /' conftest.$ac_ext >&5 |
3335 | |
3336 | # Passes both tests. |
3337 | ac_preproc_ok=: |
3338 | break |
3339 | fi |
3340 | |
3341 | rm -f conftest.err conftest.$ac_ext |
3342 | |
3343 | done |
3344 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3345 | rm -f conftest.err conftest.$ac_ext |
3346 | if $ac_preproc_ok; then |
3347 | break |
3348 | fi |
3349 | |
3350 | done |
3351 | ac_cv_prog_CPP=$CPP |
3352 | |
3353 | fi |
3354 | CPP=$ac_cv_prog_CPP |
3355 | else |
3356 | ac_cv_prog_CPP=$CPP |
3357 | fi |
3358 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3359 | echo "${ECHO_T}$CPP" >&6; } |
3360 | ac_preproc_ok=false |
3361 | for ac_c_preproc_warn_flag in '' yes |
3362 | do |
3363 | # Use a header file that comes with gcc, so configuring glibc |
3364 | # with a fresh cross-compiler works. |
3365 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3366 | # <limits.h> exists even on freestanding compilers. |
3367 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3368 | # not just through cpp. "Syntax error" is here to catch this case. |
3369 | cat >conftest.$ac_ext <<_ACEOF |
3370 | /* confdefs.h. */ |
3371 | _ACEOF |
3372 | cat confdefs.h >>conftest.$ac_ext |
3373 | cat >>conftest.$ac_ext <<_ACEOF |
3374 | /* end confdefs.h. */ |
3375 | #ifdef __STDC__ |
3376 | # include <limits.h> |
3377 | #else |
3378 | # include <assert.h> |
3379 | #endif |
3380 | Syntax error |
3381 | _ACEOF |
3382 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3383 | case "(($ac_try" in |
3384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3385 | *) ac_try_echo=$ac_try;; |
3386 | esac |
3387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3389 | ac_status=$? |
3390 | grep -v '^ *+' conftest.er1 >conftest.err |
3391 | rm -f conftest.er1 |
3392 | cat conftest.err >&5 |
3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3394 | (exit $ac_status); } >/dev/null; then |
3395 | if test -s conftest.err; then |
3396 | ac_cpp_err=$ac_c_preproc_warn_flag |
3397 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3398 | else |
3399 | ac_cpp_err= |
3400 | fi |
3401 | else |
3402 | ac_cpp_err=yes |
3403 | fi |
3404 | if test -z "$ac_cpp_err"; then |
3405 | : |
3406 | else |
3407 | echo "$as_me: failed program was:" >&5 |
3408 | sed 's/^/| /' conftest.$ac_ext >&5 |
3409 | |
3410 | # Broken: fails on valid input. |
3411 | continue |
3412 | fi |
3413 | |
3414 | rm -f conftest.err conftest.$ac_ext |
3415 | |
3416 | # OK, works on sane cases. Now check whether nonexistent headers |
3417 | # can be detected and how. |
3418 | cat >conftest.$ac_ext <<_ACEOF |
3419 | /* confdefs.h. */ |
3420 | _ACEOF |
3421 | cat confdefs.h >>conftest.$ac_ext |
3422 | cat >>conftest.$ac_ext <<_ACEOF |
3423 | /* end confdefs.h. */ |
3424 | #include <ac_nonexistent.h> |
3425 | _ACEOF |
3426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3427 | case "(($ac_try" in |
3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3429 | *) ac_try_echo=$ac_try;; |
3430 | esac |
3431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3433 | ac_status=$? |
3434 | grep -v '^ *+' conftest.er1 >conftest.err |
3435 | rm -f conftest.er1 |
3436 | cat conftest.err >&5 |
3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3438 | (exit $ac_status); } >/dev/null; then |
3439 | if test -s conftest.err; then |
3440 | ac_cpp_err=$ac_c_preproc_warn_flag |
3441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3442 | else |
3443 | ac_cpp_err= |
3444 | fi |
3445 | else |
3446 | ac_cpp_err=yes |
3447 | fi |
3448 | if test -z "$ac_cpp_err"; then |
3449 | # Broken: success on invalid input. |
3450 | continue |
3451 | else |
3452 | echo "$as_me: failed program was:" >&5 |
3453 | sed 's/^/| /' conftest.$ac_ext >&5 |
3454 | |
3455 | # Passes both tests. |
3456 | ac_preproc_ok=: |
3457 | break |
3458 | fi |
3459 | |
3460 | rm -f conftest.err conftest.$ac_ext |
3461 | |
3462 | done |
3463 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3464 | rm -f conftest.err conftest.$ac_ext |
3465 | if $ac_preproc_ok; then |
3466 | : |
3467 | else |
3468 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3469 | See \`config.log' for more details." >&5 |
3470 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3471 | See \`config.log' for more details." >&2;} |
3472 | { (exit 1); exit 1; }; } |
3473 | fi |
3474 | |
3475 | ac_ext=c |
3476 | ac_cpp='$CPP $CPPFLAGS' |
3477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3480 | |
3481 | |
3482 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3483 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3484 | if test "${ac_cv_path_GREP+set}" = set; then |
3485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3486 | else |
3487 | # Extract the first word of "grep ggrep" to use in msg output |
3488 | if test -z "$GREP"; then |
3489 | set dummy grep ggrep; ac_prog_name=$2 |
3490 | if test "${ac_cv_path_GREP+set}" = set; then |
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3492 | else |
3493 | ac_path_GREP_found=false |
3494 | # Loop through the user's path and test for each of PROGNAME-LIST |
3495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3497 | do |
3498 | IFS=$as_save_IFS |
3499 | test -z "$as_dir" && as_dir=. |
3500 | for ac_prog in grep ggrep; do |
3501 | for ac_exec_ext in '' $ac_executable_extensions; do |
3502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3503 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
3504 | # Check for GNU ac_path_GREP and select it if it is found. |
3505 | # Check for GNU $ac_path_GREP |
3506 | case `"$ac_path_GREP" --version 2>&1` in |
3507 | *GNU*) |
3508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3509 | *) |
3510 | ac_count=0 |
3511 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3512 | while : |
3513 | do |
3514 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3515 | mv "conftest.tmp" "conftest.in" |
3516 | cp "conftest.in" "conftest.nl" |
3517 | echo 'GREP' >> "conftest.nl" |
3518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3520 | ac_count=`expr $ac_count + 1` |
3521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3522 | # Best one so far, save it but keep looking for a better one |
3523 | ac_cv_path_GREP="$ac_path_GREP" |
3524 | ac_path_GREP_max=$ac_count |
3525 | fi |
3526 | # 10*(2^10) chars as input seems more than enough |
3527 | test $ac_count -gt 10 && break |
3528 | done |
3529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3530 | esac |
3531 | |
3532 | |
3533 | $ac_path_GREP_found && break 3 |
3534 | done |
3535 | done |
3536 | |
3537 | done |
3538 | IFS=$as_save_IFS |
3539 | |
3540 | |
3541 | fi |
3542 | |
3543 | GREP="$ac_cv_path_GREP" |
3544 | if test -z "$GREP"; then |
3545 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3546 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3547 | { (exit 1); exit 1; }; } |
3548 | fi |
3549 | |
3550 | else |
3551 | ac_cv_path_GREP=$GREP |
3552 | fi |
3553 | |
3554 | |
3555 | fi |
3556 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3557 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3558 | GREP="$ac_cv_path_GREP" |
3559 | |
3560 | |
3561 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3562 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3563 | if test "${ac_cv_path_EGREP+set}" = set; then |
3564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3565 | else |
3566 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3567 | then ac_cv_path_EGREP="$GREP -E" |
3568 | else |
3569 | # Extract the first word of "egrep" to use in msg output |
3570 | if test -z "$EGREP"; then |
3571 | set dummy egrep; ac_prog_name=$2 |
3572 | if test "${ac_cv_path_EGREP+set}" = set; then |
3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3574 | else |
3575 | ac_path_EGREP_found=false |
3576 | # Loop through the user's path and test for each of PROGNAME-LIST |
3577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3578 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3579 | do |
3580 | IFS=$as_save_IFS |
3581 | test -z "$as_dir" && as_dir=. |
3582 | for ac_prog in egrep; do |
3583 | for ac_exec_ext in '' $ac_executable_extensions; do |
3584 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3585 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
3586 | # Check for GNU ac_path_EGREP and select it if it is found. |
3587 | # Check for GNU $ac_path_EGREP |
3588 | case `"$ac_path_EGREP" --version 2>&1` in |
3589 | *GNU*) |
3590 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3591 | *) |
3592 | ac_count=0 |
3593 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3594 | while : |
3595 | do |
3596 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3597 | mv "conftest.tmp" "conftest.in" |
3598 | cp "conftest.in" "conftest.nl" |
3599 | echo 'EGREP' >> "conftest.nl" |
3600 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3601 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3602 | ac_count=`expr $ac_count + 1` |
3603 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3604 | # Best one so far, save it but keep looking for a better one |
3605 | ac_cv_path_EGREP="$ac_path_EGREP" |
3606 | ac_path_EGREP_max=$ac_count |
3607 | fi |
3608 | # 10*(2^10) chars as input seems more than enough |
3609 | test $ac_count -gt 10 && break |
3610 | done |
3611 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3612 | esac |
3613 | |
3614 | |
3615 | $ac_path_EGREP_found && break 3 |
3616 | done |
3617 | done |
3618 | |
3619 | done |
3620 | IFS=$as_save_IFS |
3621 | |
3622 | |
3623 | fi |
3624 | |
3625 | EGREP="$ac_cv_path_EGREP" |
3626 | if test -z "$EGREP"; then |
3627 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3628 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3629 | { (exit 1); exit 1; }; } |
3630 | fi |
3631 | |
3632 | else |
3633 | ac_cv_path_EGREP=$EGREP |
3634 | fi |
3635 | |
3636 | |
3637 | fi |
3638 | fi |
3639 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3640 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3641 | EGREP="$ac_cv_path_EGREP" |
3642 | |
3643 | |
3644 | if test $ac_cv_c_compiler_gnu = yes; then |
3645 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3646 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } |
3647 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3649 | else |
3650 | ac_pattern="Autoconf.*'x'" |
3651 | cat >conftest.$ac_ext <<_ACEOF |
3652 | /* confdefs.h. */ |
3653 | _ACEOF |
3654 | cat confdefs.h >>conftest.$ac_ext |
3655 | cat >>conftest.$ac_ext <<_ACEOF |
3656 | /* end confdefs.h. */ |
3657 | #include <sgtty.h> |
3658 | Autoconf TIOCGETP |
3659 | _ACEOF |
3660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3661 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
3662 | ac_cv_prog_gcc_traditional=yes |
3663 | else |
3664 | ac_cv_prog_gcc_traditional=no |
3665 | fi |
3666 | rm -f conftest* |
3667 | |
3668 | |
3669 | if test $ac_cv_prog_gcc_traditional = no; then |
3670 | cat >conftest.$ac_ext <<_ACEOF |
3671 | /* confdefs.h. */ |
3672 | _ACEOF |
3673 | cat confdefs.h >>conftest.$ac_ext |
3674 | cat >>conftest.$ac_ext <<_ACEOF |
3675 | /* end confdefs.h. */ |
3676 | #include <termio.h> |
3677 | Autoconf TCGETA |
3678 | _ACEOF |
3679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3680 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
3681 | ac_cv_prog_gcc_traditional=yes |
3682 | fi |
3683 | rm -f conftest* |
3684 | |
3685 | fi |
3686 | fi |
3687 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3688 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } |
3689 | if test $ac_cv_prog_gcc_traditional = yes; then |
3690 | CC="$CC -traditional" |
3691 | fi |
3692 | fi |
3693 | |
3694 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3695 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
3696 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3697 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3699 | else |
3700 | cat >conftest.make <<\_ACEOF |
3701 | SHELL = /bin/sh |
3702 | all: |
3703 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
3704 | _ACEOF |
3705 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3706 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3707 | *@@@%%%=?*=@@@%%%*) |
3708 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
3709 | *) |
3710 | eval ac_cv_prog_make_${ac_make}_set=no;; |
3711 | esac |
3712 | rm -f conftest.make |
3713 | fi |
3714 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3715 | { echo "$as_me:$LINENO: result: yes" >&5 |
3716 | echo "${ECHO_T}yes" >&6; } |
3717 | SET_MAKE= |
3718 | else |
3719 | { echo "$as_me:$LINENO: result: no" >&5 |
3720 | echo "${ECHO_T}no" >&6; } |
3721 | SET_MAKE="MAKE=${MAKE-make}" |
3722 | fi |
3723 | |
3724 | ac_aux_dir= |
3725 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3726 | if test -f "$ac_dir/install-sh"; then |
3727 | ac_aux_dir=$ac_dir |
3728 | ac_install_sh="$ac_aux_dir/install-sh -c" |
3729 | break |
3730 | elif test -f "$ac_dir/install.sh"; then |
3731 | ac_aux_dir=$ac_dir |
3732 | ac_install_sh="$ac_aux_dir/install.sh -c" |
3733 | break |
3734 | elif test -f "$ac_dir/shtool"; then |
3735 | ac_aux_dir=$ac_dir |
3736 | ac_install_sh="$ac_aux_dir/shtool install -c" |
3737 | break |
3738 | fi |
3739 | done |
3740 | if test -z "$ac_aux_dir"; then |
3741 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3742 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
3743 | { (exit 1); exit 1; }; } |
3744 | fi |
3745 | |
3746 | # These three variables are undocumented and unsupported, |
3747 | # and are intended to be withdrawn in a future Autoconf release. |
3748 | # They can cause serious problems if a builder's source tree is in a directory |
3749 | # whose full name contains unusual characters. |
3750 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3751 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3752 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3753 | |
3754 | |
3755 | # Find a good install program. We prefer a C program (faster), |
3756 | # so one script is as good as another. But avoid the broken or |
3757 | # incompatible versions: |
3758 | # SysV /etc/install, /usr/sbin/install |
3759 | # SunOS /usr/etc/install |
3760 | # IRIX /sbin/install |
3761 | # AIX /bin/install |
3762 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3763 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3764 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3765 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3766 | # OS/2's system install, which has a completely different semantic |
3767 | # ./install, which can be erroneously created by make from ./install.sh. |
3768 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3769 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
3770 | if test -z "$INSTALL"; then |
3771 | if test "${ac_cv_path_install+set}" = set; then |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3773 | else |
3774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3775 | for as_dir in $PATH |
3776 | do |
3777 | IFS=$as_save_IFS |
3778 | test -z "$as_dir" && as_dir=. |
3779 | # Account for people who put trailing slashes in PATH elements. |
3780 | case $as_dir/ in |
3781 | ./ | .// | /cC/* | \ |
3782 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3783 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3784 | /usr/ucb/* ) ;; |
3785 | *) |
3786 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3787 | # Don't use installbsd from OSF since it installs stuff as root |
3788 | # by default. |
3789 | for ac_prog in ginstall scoinst install; do |
3790 | for ac_exec_ext in '' $ac_executable_extensions; do |
3791 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3792 | if test $ac_prog = install && |
3793 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3794 | # AIX install. It has an incompatible calling convention. |
3795 | : |
3796 | elif test $ac_prog = install && |
3797 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3798 | # program-specific install script used by HP pwplus--don't use. |
3799 | : |
3800 | else |
3801 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3802 | break 3 |
3803 | fi |
3804 | fi |
3805 | done |
3806 | done |
3807 | ;; |
3808 | esac |
3809 | done |
3810 | IFS=$as_save_IFS |
3811 | |
3812 | |
3813 | fi |
3814 | if test "${ac_cv_path_install+set}" = set; then |
3815 | INSTALL=$ac_cv_path_install |
3816 | else |
3817 | # As a last resort, use the slow shell script. Don't cache a |
3818 | # value for INSTALL within a source directory, because that will |
3819 | # break other packages using the cache if that directory is |
3820 | # removed, or if the value is a relative name. |
3821 | INSTALL=$ac_install_sh |
3822 | fi |
3823 | fi |
3824 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3825 | echo "${ECHO_T}$INSTALL" >&6; } |
3826 | |
3827 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3828 | # It thinks the first close brace ends the variable substitution. |
3829 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3830 | |
3831 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3832 | |
3833 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3834 | |
3835 | # Extract the first word of "rm", so it can be a program name with args. |
3836 | set dummy rm; ac_word=$2 |
3837 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3839 | if test "${ac_cv_path_RM+set}" = set; then |
3840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3841 | else |
3842 | case $RM in |
3843 | [\\/]* | ?:[\\/]*) |
3844 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
3845 | ;; |
3846 | *) |
3847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3848 |