Debian Codegraph @

configure

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for orbital_eunuchs_sniper 1.30.
4 #
5 # Report bugs to <[email protected]>.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='orbital_eunuchs_sniper'
576 PACKAGE_TARNAME='orbital_eunuchs_sniper'
577 PACKAGE_VERSION='1.30'
578 PACKAGE_STRING='orbital_eunuchs_sniper 1.30'
579 PACKAGE_BUGREPORT='[email protected]'
580
581 ac_unique_file="src/snipe2d.cpp"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 am__isrc
671 CYGPATH_W
672 PACKAGE
673 VERSION
674 ACLOCAL
675 AUTOCONF
676 AUTOMAKE
677 AUTOHEADER
678 MAKEINFO
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 mkdir_p
683 AWK
684 SET_MAKE
685 am__leading_dot
686 AMTAR
687 am__tar
688 am__untar
689 CXX
690 CXXFLAGS
691 LDFLAGS
692 CPPFLAGS
693 ac_ct_CXX
694 EXEEXT
695 OBJEXT
696 DEPDIR
697 am__include
698 am__quote
699 AMDEP_TRUE
700 AMDEP_FALSE
701 AMDEPBACKSLASH
702 CXXDEPMODE
703 am__fastdepCXX_TRUE
704 am__fastdepCXX_FALSE
705 CC
706 CFLAGS
707 ac_ct_CC
708 CCDEPMODE
709 am__fastdepCC_TRUE
710 am__fastdepCC_FALSE
711 LN_S
712 XMKMF
713 CPP
714 X_CFLAGS
715 X_PRE_LIBS
716 X_LIBS
717 X_EXTRA_LIBS
718 GREP
719 EGREP
720 CPU_IS
721 LIBOBJS
722 LTLIBOBJS'
723 ac_subst_files=''
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 CXX
728 CXXFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
732 CCC
733 CC
734 CFLAGS
735 XMKMF
736 CPP'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863 { (exit 1); exit 1; }; }
864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865 eval enable_$ac_feature=\$ac_optarg ;;
866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
875
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
879
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
886
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
891
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
897
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
904
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
909
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
921
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
926
927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;;
933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
938
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
945 no_create=yes ;;
946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
978
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
995
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1000
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1005
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
1056 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid package name: $ac_package" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062 eval with_$ac_package=\$ac_optarg ;;
1063
1064 -without-* | --without-*)
1065 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=no ;;
1072
1073 --x)
1074 # Obsolete; use --with-x.
1075 with_x=yes ;;
1076
1077 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078 | --x-incl | --x-inc | --x-in | --x-i)
1079 ac_prev=x_includes ;;
1080 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082 x_includes=$ac_optarg ;;
1083
1084 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086 ac_prev=x_libraries ;;
1087 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089 x_libraries=$ac_optarg ;;
1090
1091 -*) { echo "$as_me: error: unrecognized option: $ac_option
1092 Try \`$0 --help' for more information." >&2
1093 { (exit 1); exit 1; }; }
1094 ;;
1095
1096 *=*)
1097 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1101 { (exit 1); exit 1; }; }
1102 eval $ac_envvar=\$ac_optarg
1103 export $ac_envvar ;;
1104
1105 *)
1106 # FIXME: should be removed in autoconf 3.0.
1107 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111 ;;
1112
1113 esac
1114 done
1115
1116 if test -n "$ac_prev"; then
1117 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118 { echo "$as_me: error: missing argument to $ac_option" >&2
1119 { (exit 1); exit 1; }; }
1120 fi
1121
1122 # Be sure to have absolute directory names.
1123 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1127 do
1128 eval ac_val=\$$ac_var
1129 case $ac_val in
1130 [\\/$]* | ?:[\\/]* ) continue;;
1131 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1132 esac
1133 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1134 { (exit 1); exit 1; }; }
1135 done
1136
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1140 build=$build_alias
1141 host=$host_alias
1142 target=$target_alias
1143
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used." >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1151 cross_compiling=yes
1152 fi
1153 fi
1154
1155 ac_tool_prefix=
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158 test "$silent" = yes && exec 6>/dev/null
1159
1160
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 { echo "$as_me: error: Working directory cannot be determined" >&2
1165 { (exit 1); exit 1; }; }
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 { echo "$as_me: error: pwd does not report name of working directory" >&2
1168 { (exit 1); exit 1; }; }
1169
1170
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173 ac_srcdir_defaulted=yes
1174 # Try the directory containing this script, then the parent directory.
1175 ac_confdir=`$as_dirname -- "$0" ||
1176 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177 X"$0" : 'X\(//\)[^/]' \| \
1178 X"$0" : 'X\(//\)$' \| \
1179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 echo X"$0" |
1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)[^/].*/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\).*/{
1194 s//\1/
1195 q
1196 }
1197 s/.*/./; q'`
1198 srcdir=$ac_confdir
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 srcdir=..
1201 fi
1202 else
1203 ac_srcdir_defaulted=no
1204 fi
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1208 { (exit 1); exit 1; }; }
1209 fi
1210 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 ac_abs_confdir=`(
1212 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1213 { (exit 1); exit 1; }; }
1214 pwd)`
1215 # When building in place, set srcdir=.
1216 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 srcdir=.
1218 fi
1219 # Remove unnecessary trailing slashes from srcdir.
1220 # Double slashes in file names in object file debugging info
1221 # mess up M-x gdb in Emacs.
1222 case $srcdir in
1223 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 esac
1225 for ac_var in $ac_precious_vars; do
1226 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_env_${ac_var}_value=\$${ac_var}
1228 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 done
1231
1232 #
1233 # Report the --help message.
1234 #
1235 if test "$ac_init_help" = "long"; then
1236 # Omit some internal or obsolete options to make the list less imposing.
1237 # This message is too long to be a string in the A/UX 3.1 sh.
1238 cat <<_ACEOF
1239 \`configure' configures orbital_eunuchs_sniper 1.30 to adapt to many kinds of systems.
1240
1241 Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1243 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244 VAR=VALUE. See below for descriptions of some of the useful variables.
1245
1246 Defaults for the options are specified in brackets.
1247
1248 Configuration:
1249 -h, --help display this help and exit
1250 --help=short display options specific to this package
1251 --help=recursive display the short help of all the included packages
1252 -V, --version display version information and exit
1253 -q, --quiet, --silent do not print \`checking...' messages
1254 --cache-file=FILE cache test results in FILE [disabled]
1255 -C, --config-cache alias for \`--cache-file=config.cache'
1256 -n, --no-create do not create output files
1257 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258
1259 Installation directories:
1260 --prefix=PREFIX install architecture-independent files in PREFIX
1261 [$ac_default_prefix]
1262 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 [PREFIX]
1264
1265 By default, \`make install' will install all the files in
1266 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1267 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268 for instance \`--prefix=\$HOME'.
1269
1270 For better control, use the options below.
1271
1272 Fine tuning of the installation directories:
1273 --bindir=DIR user executables [EPREFIX/bin]
1274 --sbindir=DIR system admin executables [EPREFIX/sbin]
1275 --libexecdir=DIR program executables [EPREFIX/libexec]
1276 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1277 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1278 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1279 --libdir=DIR object code libraries [EPREFIX/lib]
1280 --includedir=DIR C header files [PREFIX/include]
1281 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1284 --infodir=DIR info documentation [DATAROOTDIR/info]
1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1286 --mandir=DIR man documentation [DATAROOTDIR/man]
1287 --docdir=DIR documentation root [DATAROOTDIR/doc/orbital_eunuchs_sniper]
1288 --htmldir=DIR html documentation [DOCDIR]
1289 --dvidir=DIR dvi documentation [DOCDIR]
1290 --pdfdir=DIR pdf documentation [DOCDIR]
1291 --psdir=DIR ps documentation [DOCDIR]
1292 _ACEOF
1293
1294 cat <<\_ACEOF
1295
1296 Program names:
1297 --program-prefix=PREFIX prepend PREFIX to installed program names
1298 --program-suffix=SUFFIX append SUFFIX to installed program names
1299 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300
1301 X features:
1302 --x-includes=DIR X include files are in DIR
1303 --x-libraries=DIR X library files are in DIR
1304
1305 System types:
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1308 --target=TARGET configure for building compilers for TARGET [HOST]
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of orbital_eunuchs_sniper 1.30:";;
1315 esac
1316 cat <<\_ACEOF
1317
1318 Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --disable-dependency-tracking speeds up one-time build
1322 --enable-dependency-tracking do not reject slow dependency extractors
1323
1324 Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --with-x use the X Window System
1328 --with-games-dir=path Set path to games directory (default PREFIX/games)
1329
1330 Some influential environment variables:
1331 CXX C++ compiler command
1332 CXXFLAGS C++ compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
1335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 XMKMF Path to xmkmf, Makefile generator for X Window System
1341 CPP C preprocessor
1342
1343 Use these variables to override the choices made by `configure' or to help
1344 it to find libraries and programs with nonstandard names/locations.
1345
1346 Report bugs to <[email protected]>.
1347 _ACEOF
1348 ac_status=$?
1349 fi
1350
1351 if test "$ac_init_help" = "recursive"; then
1352 # If there are subdirs, report their specific --help.
1353 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354 test -d "$ac_dir" || continue
1355 ac_builddir=.
1356
1357 case "$ac_dir" in
1358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *)
1360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1361 # A ".." for each directory in $ac_dir_suffix.
1362 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1363 case $ac_top_builddir_sub in
1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366 esac ;;
1367 esac
1368 ac_abs_top_builddir=$ac_pwd
1369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370 # for backward compatibility:
1371 ac_top_builddir=$ac_top_build_prefix
1372
1373 case $srcdir in
1374 .) # We are building in place.
1375 ac_srcdir=.
1376 ac_top_srcdir=$ac_top_builddir_sub
1377 ac_abs_top_srcdir=$ac_pwd ;;
1378 [\\/]* | ?:[\\/]* ) # Absolute name.
1379 ac_srcdir=$srcdir$ac_dir_suffix;
1380 ac_top_srcdir=$srcdir
1381 ac_abs_top_srcdir=$srcdir ;;
1382 *) # Relative name.
1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384 ac_top_srcdir=$ac_top_build_prefix$srcdir
1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386 esac
1387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388
1389 cd "$ac_dir" || { ac_status=$?; continue; }
1390 # Check for guested configure.
1391 if test -f "$ac_srcdir/configure.gnu"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure" --help=recursive
1397 else
1398 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 fi || ac_status=$?
1400 cd "$ac_pwd" || { ac_status=$?; break; }
1401 done
1402 fi
1403
1404 test -n "$ac_init_help" && exit $ac_status
1405 if $ac_init_version; then
1406 cat <<\_ACEOF
1407 orbital_eunuchs_sniper configure 1.30
1408 generated by GNU Autoconf 2.61
1409
1410 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1411 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1412 This configure script is free software; the Free Software Foundation
1413 gives unlimited permission to copy, distribute and modify it.
1414 _ACEOF
1415 exit
1416 fi
1417 cat >config.log <<_ACEOF
1418 This file contains any messages produced by compilers while
1419 running configure, to aid debugging if configure makes a mistake.
1420
1421 It was created by orbital_eunuchs_sniper $as_me 1.30, which was
1422 generated by GNU Autoconf 2.61. Invocation command line was
1423
1424 $ $0 $@
1425
1426 _ACEOF
1427 exec 5>>config.log
1428 {
1429 cat <<_ASUNAME
1430 ## --------- ##
1431 ## Platform. ##
1432 ## --------- ##
1433
1434 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439
1440 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1442
1443 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1444 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1445 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1447 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1448 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1449 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1450
1451 _ASUNAME
1452
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 echo "PATH: $as_dir"
1459 done
1460 IFS=$as_save_IFS
1461
1462 } >&5
1463
1464 cat >&5 <<_ACEOF
1465
1466
1467 ## ----------- ##
1468 ## Core tests. ##
1469 ## ----------- ##
1470
1471 _ACEOF
1472
1473
1474 # Keep a trace of the command line.
1475 # Strip out --no-create and --no-recursion so they do not pile up.
1476 # Strip out --silent because we don't want to record it for future runs.
1477 # Also quote any args containing shell meta-characters.
1478 # Make two passes to allow for proper duplicate-argument suppression.
1479 ac_configure_args=
1480 ac_configure_args0=
1481 ac_configure_args1=
1482 ac_must_keep_next=false
1483 for ac_pass in 1 2
1484 do
1485 for ac_arg
1486 do
1487 case $ac_arg in
1488 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490 | -silent | --silent | --silen | --sile | --sil)
1491 continue ;;
1492 *\'*)
1493 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 esac
1495 case $ac_pass in
1496 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497 2)
1498 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1499 if test $ac_must_keep_next = true; then
1500 ac_must_keep_next=false # Got value, back to normal.
1501 else
1502 case $ac_arg in
1503 *=* | --config-cache | -C | -disable-* | --disable-* \
1504 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506 | -with-* | --with-* | -without-* | --without-* | --x)
1507 case "$ac_configure_args0 " in
1508 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1509 esac
1510 ;;
1511 -* ) ac_must_keep_next=true ;;
1512 esac
1513 fi
1514 ac_configure_args="$ac_configure_args '$ac_arg'"
1515 ;;
1516 esac
1517 done
1518 done
1519 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1520 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521
1522 # When interrupted or exit'd, cleanup temporary files, and complete
1523 # config.log. We remove comments because anyway the quotes in there
1524 # would cause problems or look ugly.
1525 # WARNING: Use '\'' to represent an apostrophe within the trap.
1526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527 trap 'exit_status=$?
1528 # Save into config.log some information that might help in debugging.
1529 {
1530 echo
1531
1532 cat <<\_ASBOX
1533 ## ---------------- ##
1534 ## Cache variables. ##
1535 ## ---------------- ##
1536 _ASBOX
1537 echo
1538 # The following way of writing the cache mishandles newlines in values,
1539 (
1540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541 eval ac_val=\$$ac_var
1542 case $ac_val in #(
1543 *${as_nl}*)
1544 case $ac_var in #(
1545 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1547 esac
1548 case $ac_var in #(
1549 _ | IFS | as_nl) ;; #(
1550 *) $as_unset $ac_var ;;
1551 esac ;;
1552 esac
1553 done
1554 (set) 2>&1 |
1555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556 *${as_nl}ac_space=\ *)
1557 sed -n \
1558 "s/'\''/'\''\\\\'\'''\''/g;
1559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560 ;; #(
1561 *)
1562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1563 ;;
1564 esac |
1565 sort
1566 )
1567 echo
1568
1569 cat <<\_ASBOX
1570 ## ----------------- ##
1571 ## Output variables. ##
1572 ## ----------------- ##
1573 _ASBOX
1574 echo
1575 for ac_var in $ac_subst_vars
1576 do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in
1579 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580 esac
1581 echo "$ac_var='\''$ac_val'\''"
1582 done | sort
1583 echo
1584
1585 if test -n "$ac_subst_files"; then
1586 cat <<\_ASBOX
1587 ## ------------------- ##
1588 ## File substitutions. ##
1589 ## ------------------- ##
1590 _ASBOX
1591 echo
1592 for ac_var in $ac_subst_files
1593 do
1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 echo "$ac_var='\''$ac_val'\''"
1599 done | sort
1600 echo
1601 fi
1602
1603 if test -s confdefs.h; then
1604 cat <<\_ASBOX
1605 ## ----------- ##
1606 ## confdefs.h. ##
1607 ## ----------- ##
1608 _ASBOX
1609 echo
1610 cat confdefs.h
1611 echo
1612 fi
1613 test "$ac_signal" != 0 &&
1614 echo "$as_me: caught signal $ac_signal"
1615 echo "$as_me: exit $exit_status"
1616 } >&5
1617 rm -f core *.core core.conftest.* &&
1618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619 exit $exit_status
1620 ' 0
1621 for ac_signal in 1 2 13 15; do
1622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623 done
1624 ac_signal=0
1625
1626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1627 rm -f -r conftest* confdefs.h
1628
1629 # Predefined preprocessor variables.
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_NAME "$PACKAGE_NAME"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_STRING "$PACKAGE_STRING"
1648 _ACEOF
1649
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653 _ACEOF
1654
1655
1656 # Let the site file select an alternate cache file if it wants to.
1657 # Prefer explicitly selected file to automatically selected ones.
1658 if test -n "$CONFIG_SITE"; then
1659 set x "$CONFIG_SITE"
1660 elif test "x$prefix" != xNONE; then
1661 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1662 else
1663 set x "$ac_default_prefix/share/config.site" \
1664 "$ac_default_prefix/etc/config.site"
1665 fi
1666 shift
1667 for ac_site_file
1668 do
1669 if test -r "$ac_site_file"; then
1670 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1671 echo "$as_me: loading site script $ac_site_file" >&6;}
1672 sed 's/^/| /' "$ac_site_file" >&5
1673 . "$ac_site_file"
1674 fi
1675 done
1676
1677 if test -r "$cache_file"; then
1678 # Some versions of bash will fail to source /dev/null (special
1679 # files actually), so we avoid doing that.
1680 if test -f "$cache_file"; then
1681 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1682 echo "$as_me: loading cache $cache_file" >&6;}
1683 case $cache_file in
1684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1685 *) . "./$cache_file";;
1686 esac
1687 fi
1688 else
1689 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1690 echo "$as_me: creating cache $cache_file" >&6;}
1691 >$cache_file
1692 fi
1693
1694 # Check that the precious variables saved in the cache have kept the same
1695 # value.
1696 ac_cache_corrupted=false
1697 for ac_var in $ac_precious_vars; do
1698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1699 eval ac_new_set=\$ac_env_${ac_var}_set
1700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1701 eval ac_new_val=\$ac_env_${ac_var}_value
1702 case $ac_old_set,$ac_new_set in
1703 set,)
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1707 ,set)
1708 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1709 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1710 ac_cache_corrupted=: ;;
1711 ,);;
1712 *)
1713 if test "x$ac_old_val" != "x$ac_new_val"; then
1714 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1715 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1716 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1717 echo "$as_me: former value: $ac_old_val" >&2;}
1718 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1719 echo "$as_me: current value: $ac_new_val" >&2;}
1720 ac_cache_corrupted=:
1721 fi;;
1722 esac
1723 # Pass precious variables to config.status.
1724 if test "$ac_new_set" = set; then
1725 case $ac_new_val in
1726 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 *) ac_arg=$ac_var=$ac_new_val ;;
1728 esac
1729 case " $ac_configure_args " in
1730 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1731 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1732 esac
1733 fi
1734 done
1735 if $ac_cache_corrupted; then
1736 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1737 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1738 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1739 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1740 { (exit 1); exit 1; }; }
1741 fi
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767 ac_ext=c
1768 ac_cpp='$CPP $CPPFLAGS'
1769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
1773
1774 ac_aux_dir=
1775 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1776 if test -f "$ac_dir/install-sh"; then
1777 ac_aux_dir=$ac_dir
1778 ac_install_sh="$ac_aux_dir/install-sh -c"
1779 break
1780 elif test -f "$ac_dir/install.sh"; then
1781 ac_aux_dir=$ac_dir
1782 ac_install_sh="$ac_aux_dir/install.sh -c"
1783 break
1784 elif test -f "$ac_dir/shtool"; then
1785 ac_aux_dir=$ac_dir
1786 ac_install_sh="$ac_aux_dir/shtool install -c"
1787 break
1788 fi
1789 done
1790 if test -z "$ac_aux_dir"; then
1791 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1792 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1793 { (exit 1); exit 1; }; }
1794 fi
1795
1796 # These three variables are undocumented and unsupported,
1797 # and are intended to be withdrawn in a future Autoconf release.
1798 # They can cause serious problems if a builder's source tree is in a directory
1799 # whose full name contains unusual characters.
1800 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1801 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1802 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1803
1804
1805 # Make sure we can run config.sub.
1806 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1807 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1808 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1809 { (exit 1); exit 1; }; }
1810
1811 { echo "$as_me:$LINENO: checking build system type" >&5
1812 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1813 if test "${ac_cv_build+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 ac_build_alias=$build_alias
1817 test "x$ac_build_alias" = x &&
1818 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1819 test "x$ac_build_alias" = x &&
1820 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1821 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1822 { (exit 1); exit 1; }; }
1823 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1824 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1825 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1826 { (exit 1); exit 1; }; }
1827
1828 fi
1829 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1830 echo "${ECHO_T}$ac_cv_build" >&6; }
1831 case $ac_cv_build in
1832 *-*-*) ;;
1833 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1834 echo "$as_me: error: invalid value of canonical build" >&2;}
1835 { (exit 1); exit 1; }; };;
1836 esac
1837 build=$ac_cv_build
1838 ac_save_IFS=$IFS; IFS='-'
1839 set x $ac_cv_build
1840 shift
1841 build_cpu=$1
1842 build_vendor=$2
1843 shift; shift
1844 # Remember, the first character of IFS is used to create $*,
1845 # except with old shells:
1846 build_os=$*
1847 IFS=$ac_save_IFS
1848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1849
1850
1851 { echo "$as_me:$LINENO: checking host system type" >&5
1852 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1853 if test "${ac_cv_host+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 if test "x$host_alias" = x; then
1857 ac_cv_host=$ac_cv_build
1858 else
1859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1860 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1861 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864
1865 fi
1866 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1867 echo "${ECHO_T}$ac_cv_host" >&6; }
1868 case $ac_cv_host in
1869 *-*-*) ;;
1870 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1871 echo "$as_me: error: invalid value of canonical host" >&2;}
1872 { (exit 1); exit 1; }; };;
1873 esac
1874 host=$ac_cv_host
1875 ac_save_IFS=$IFS; IFS='-'
1876 set x $ac_cv_host
1877 shift
1878 host_cpu=$1
1879 host_vendor=$2
1880 shift; shift
1881 # Remember, the first character of IFS is used to create $*,
1882 # except with old shells:
1883 host_os=$*
1884 IFS=$ac_save_IFS
1885 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1886
1887
1888 { echo "$as_me:$LINENO: checking target system type" >&5
1889 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1890 if test "${ac_cv_target+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test "x$target_alias" = x; then
1894 ac_cv_target=$ac_cv_host
1895 else
1896 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902 fi
1903 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1904 echo "${ECHO_T}$ac_cv_target" >&6; }
1905 case $ac_cv_target in
1906 *-*-*) ;;
1907 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1908 echo "$as_me: error: invalid value of canonical target" >&2;}
1909 { (exit 1); exit 1; }; };;
1910 esac
1911 target=$ac_cv_target
1912 ac_save_IFS=$IFS; IFS='-'
1913 set x $ac_cv_target
1914 shift
1915 target_cpu=$1
1916 target_vendor=$2
1917 shift; shift
1918 # Remember, the first character of IFS is used to create $*,
1919 # except with old shells:
1920 target_os=$*
1921 IFS=$ac_save_IFS
1922 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1923
1924
1925 # The aliases save the names the user supplied, while $host etc.
1926 # will get canonicalized.
1927 test -n "$target_alias" &&
1928 test "$program_prefix$program_suffix$program_transform_name" = \
1929 NONENONEs,x,x, &&
1930 program_prefix=${target_alias}-
1931 am__api_version='1.10'
1932
1933 # Find a good install program. We prefer a C program (faster),
1934 # so one script is as good as another. But avoid the broken or
1935 # incompatible versions:
1936 # SysV /etc/install, /usr/sbin/install
1937 # SunOS /usr/etc/install
1938 # IRIX /sbin/install
1939 # AIX /bin/install
1940 # AmigaOS /C/install, which installs bootblocks on floppy discs
1941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1944 # OS/2's system install, which has a completely different semantic
1945 # ./install, which can be erroneously created by make from ./install.sh.
1946 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1948 if test -z "$INSTALL"; then
1949 if test "${ac_cv_path_install+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 # Account for people who put trailing slashes in PATH elements.
1958 case $as_dir/ in
1959 ./ | .// | /cC/* | \
1960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1961 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1962 /usr/ucb/* ) ;;
1963 *)
1964 # OSF1 and SCO ODT 3.0 have their own names for install.
1965 # Don't use installbsd from OSF since it installs stuff as root
1966 # by default.
1967 for ac_prog in ginstall scoinst install; do
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1970 if test $ac_prog = install &&
1971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1972 # AIX install. It has an incompatible calling convention.
1973 :
1974 elif test $ac_prog = install &&
1975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1976 # program-specific install script used by HP pwplus--don't use.
1977 :
1978 else
1979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1980 break 3
1981 fi
1982 fi
1983 done
1984 done
1985 ;;
1986 esac
1987 done
1988 IFS=$as_save_IFS
1989
1990
1991 fi
1992 if test "${ac_cv_path_install+set}" = set; then
1993 INSTALL=$ac_cv_path_install
1994 else
1995 # As a last resort, use the slow shell script. Don't cache a
1996 # value for INSTALL within a source directory, because that will
1997 # break other packages using the cache if that directory is
1998 # removed, or if the value is a relative name.
1999 INSTALL=$ac_install_sh
2000 fi
2001 fi
2002 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2003 echo "${ECHO_T}$INSTALL" >&6; }
2004
2005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2006 # It thinks the first close brace ends the variable substitution.
2007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2008
2009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2010
2011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2012
2013 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2014 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2015 # Just in case
2016 sleep 1
2017 echo timestamp > conftest.file
2018 # Do `set' in a subshell so we don't clobber the current shell's
2019 # arguments. Must try -L first in case configure is actually a
2020 # symlink; some systems play weird games with the mod time of symlinks
2021 # (eg FreeBSD returns the mod time of the symlink's containing
2022 # directory).
2023 if (
2024 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2025 if test "$*" = "X"; then
2026 # -L didn't work.
2027 set X `ls -t $srcdir/configure conftest.file`
2028 fi
2029 rm -f conftest.file
2030 if test "$*" != "X $srcdir/configure conftest.file" \
2031 && test "$*" != "X conftest.file $srcdir/configure"; then
2032
2033 # If neither matched, then we have a broken ls. This can happen
2034 # if, for instance, CONFIG_SHELL is bash and it inherits a
2035 # broken ls alias from the environment. This has actually
2036 # happened. Such a system could not be considered "sane".
2037 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2038 alias in your environment" >&5
2039 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2040 alias in your environment" >&2;}
2041 { (exit 1); exit 1; }; }
2042 fi
2043
2044 test "$2" = conftest.file
2045 )
2046 then
2047 # Ok.
2048 :
2049 else
2050 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2051 Check your system clock" >&5
2052 echo "$as_me: error: newly created file is older than distributed files!
2053 Check your system clock" >&2;}
2054 { (exit 1); exit 1; }; }
2055 fi
2056 { echo "$as_me:$LINENO: result: yes" >&5
2057 echo "${ECHO_T}yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $. echo might interpret backslashes.
2064 # By default was `s,x,x', remove it if useless.
2065 cat <<\_ACEOF >conftest.sed
2066 s/[\\$]/&&/g;s/;s,x,x,$//
2067 _ACEOF
2068 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2069 rm -f conftest.sed
2070
2071 # expand $ac_aux_dir to an absolute path
2072 am_aux_dir=`cd $ac_aux_dir && pwd`
2073
2074 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2075 # Use eval to expand $SHELL
2076 if eval "$MISSING --run true"; then
2077 am_missing_run="$MISSING --run "
2078 else
2079 am_missing_run=
2080 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2081 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2082 fi
2083
2084 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2085 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2086 if test -z "$MKDIR_P"; then
2087 if test "${ac_cv_path_mkdir+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2092 do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_prog in mkdir gmkdir; do
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2098 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2099 'mkdir (GNU coreutils) '* | \
2100 'mkdir (coreutils) '* | \
2101 'mkdir (fileutils) '4.1*)
2102 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2103 break 3;;
2104 esac
2105 done
2106 done
2107 done
2108 IFS=$as_save_IFS
2109
2110 fi
2111
2112 if test "${ac_cv_path_mkdir+set}" = set; then
2113 MKDIR_P="$ac_cv_path_mkdir -p"
2114 else
2115 # As a last resort, use the slow shell script. Don't cache a
2116 # value for MKDIR_P within a source directory, because that will
2117 # break other packages using the cache if that directory is
2118 # removed, or if the value is a relative name.
2119 test -d ./--version && rmdir ./--version
2120 MKDIR_P="$ac_install_sh -d"
2121 fi
2122 fi
2123 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2124 echo "${ECHO_T}$MKDIR_P" >&6; }
2125
2126 mkdir_p="$MKDIR_P"
2127 case $mkdir_p in
2128 [\\/$]* | ?:[\\/]*) ;;
2129 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2130 esac
2131
2132 for ac_prog in gawk mawk nawk awk
2133 do
2134 # Extract the first word of "$ac_prog", so it can be a program name with args.
2135 set dummy $ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_AWK+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$AWK"; then
2142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_AWK="$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2154 fi
2155 done
2156 done
2157 IFS=$as_save_IFS
2158
2159 fi
2160 fi
2161 AWK=$ac_cv_prog_AWK
2162 if test -n "$AWK"; then
2163 { echo "$as_me:$LINENO: result: $AWK" >&5
2164 echo "${ECHO_T}$AWK" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2168 fi
2169
2170
2171 test -n "$AWK" && break
2172 done
2173
2174 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2175 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2176 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2177 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.make <<\_ACEOF
2181 SHELL = /bin/sh
2182 all:
2183 @echo '@@@%%%=$(MAKE)=@@@%%%'
2184 _ACEOF
2185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2187 *@@@%%%=?*=@@@%%%*)
2188 eval ac_cv_prog_make_${ac_make}_set=yes;;
2189 *)
2190 eval ac_cv_prog_make_${ac_make}_set=no;;
2191 esac
2192 rm -f conftest.make
2193 fi
2194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2195 { echo "$as_me:$LINENO: result: yes" >&5
2196 echo "${ECHO_T}yes" >&6; }
2197 SET_MAKE=
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 SET_MAKE="MAKE=${MAKE-make}"
2202 fi
2203
2204 rm -rf .tst 2>/dev/null
2205 mkdir .tst 2>/dev/null
2206 if test -d .tst; then
2207 am__leading_dot=.
2208 else
2209 am__leading_dot=_
2210 fi
2211 rmdir .tst 2>/dev/null
2212
2213 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2214 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2215 # is not polluted with repeated "-I."
2216 am__isrc=' -I$(srcdir)'
2217 # test to see if srcdir already configured
2218 if test -f $srcdir/config.status; then
2219 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2220 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2221 { (exit 1); exit 1; }; }
2222 fi
2223 fi
2224
2225 # test whether we have cygpath
2226 if test -z "$CYGPATH_W"; then
2227 if (cygpath --version) >/dev/null 2>/dev/null; then
2228 CYGPATH_W='cygpath -w'
2229 else
2230 CYGPATH_W=echo
2231 fi
2232 fi
2233
2234
2235 # Define the identity of the package.
2236 PACKAGE=orbital_eunuchs_sniper
2237 VERSION=1.30
2238
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE "$PACKAGE"
2242 _ACEOF
2243
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define VERSION "$VERSION"
2247 _ACEOF
2248
2249 # Some tools Automake needs.
2250
2251 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2252
2253
2254 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2255
2256
2257 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2258
2259
2260 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2261
2262
2263 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2264
2265 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2266
2267 # Installed binaries are usually stripped using `strip' when the user
2268 # run `make install-strip'. However `strip' might not be the right
2269 # tool to use in cross-compilation environments, therefore Automake
2270 # will honor the `STRIP' environment variable to overrule this program.
2271 if test "$cross_compiling" != no; then
2272 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}strip; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_STRIP+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$STRIP"; then
2281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 STRIP=$ac_cv_prog_STRIP
2301 if test -n "$STRIP"; then
2302 { echo "$as_me:$LINENO: result: $STRIP" >&5
2303 echo "${ECHO_T}$STRIP" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310 fi
2311 if test -z "$ac_cv_prog_STRIP"; then
2312 ac_ct_STRIP=$STRIP
2313 # Extract the first word of "strip", so it can be a program name with args.
2314 set dummy strip; ac_word=$2
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 if test -n "$ac_ct_STRIP"; then
2321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330 ac_cv_prog_ac_ct_STRIP="strip"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 fi
2339 fi
2340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2341 if test -n "$ac_ct_STRIP"; then
2342 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2343 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2344 else
2345 { echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6; }
2347 fi
2348
2349 if test "x$ac_ct_STRIP" = x; then
2350 STRIP=":"
2351 else
2352 case $cross_compiling:$ac_tool_warned in
2353 yes:)
2354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2355 whose name does not start with the host triplet. If you think this
2356 configuration is useful to you, please write to [email protected]." >&5
2357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2358 whose name does not start with the host triplet. If you think this
2359 configuration is useful to you, please write to [email protected]." >&2;}
2360 ac_tool_warned=yes ;;
2361 esac
2362 STRIP=$ac_ct_STRIP
2363 fi
2364 else
2365 STRIP="$ac_cv_prog_STRIP"
2366 fi
2367
2368 fi
2369 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2370
2371 # We need awk for the "check" target. The system "awk" is bad on
2372 # some platforms.
2373 # Always define AMTAR for backward compatibility.
2374
2375 AMTAR=${AMTAR-"${am_missing_run}tar"}
2376
2377 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2378
2379
2380
2381
2382
2383
2384 ac_config_headers="$ac_config_headers config.h"
2385
2386
2387 #This requires Autoconf 2.50 or later. 2.13 or earlier not supported.
2388
2389
2390 # Checks for programs.
2391 ac_ext=cpp
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396 if test -z "$CXX"; then
2397 if test -n "$CCC"; then
2398 CXX=$CCC
2399 else
2400 if test -n "$ac_tool_prefix"; then
2401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2402 do
2403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CXX+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$CXX"; then
2411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 CXX=$ac_cv_prog_CXX
2431 if test -n "$CXX"; then
2432 { echo "$as_me:$LINENO: result: $CXX" >&5
2433 echo "${ECHO_T}$CXX" >&6; }
2434 else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439
2440 test -n "$CXX" && break
2441 done
2442 fi
2443 if test -z "$CXX"; then
2444 ac_ct_CXX=$CXX
2445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2446 do
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 if test -n "$ac_ct_CXX"; then
2455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_ac_ct_CXX="$ac_prog"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2475 if test -n "$ac_ct_CXX"; then
2476 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2477 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2478 else
2479 { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2481 fi
2482
2483
2484 test -n "$ac_ct_CXX" && break
2485 done
2486
2487 if test "x$ac_ct_CXX" = x; then
2488 CXX="g++"
2489 else
2490 case $cross_compiling:$ac_tool_warned in
2491 yes:)
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet. If you think this
2494 configuration is useful to you, please write to [email protected]." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to [email protected]." >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500 CXX=$ac_ct_CXX
2501 fi
2502 fi
2503
2504 fi
2505 fi
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2508 ac_compiler=`set X $ac_compile; echo $2`
2509 { (ac_try="$ac_compiler --version >&5"
2510 case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compiler --version >&5") 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519 { (ac_try="$ac_compiler -v >&5"
2520 case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compiler -v >&5") 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529 { (ac_try="$ac_compiler -V >&5"
2530 case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compiler -V >&5") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546
2547 int
2548 main ()
2549 {
2550
2551 ;
2552 return 0;
2553 }
2554 _ACEOF
2555 ac_clean_files_save=$ac_clean_files
2556 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2557 # Try to create an executable without -o first, disregard a.out.
2558 # It will help us diagnose broken compilers, and finding out an intuition
2559 # of exeext.
2560 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2561 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2562 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2563 #
2564 # List of possible output files, starting from the most likely.
2565 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2566 # only as a last resort. b.out is created by i960 compilers.
2567 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2568 #
2569 # The IRIX 6 linker writes into existing files which may not be
2570 # executable, retaining their permissions. Remove them first so a
2571 # subsequent execution test works.
2572 ac_rmfiles=
2573 for ac_file in $ac_files
2574 do
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578 esac
2579 done
2580 rm -f $ac_rmfiles
2581
2582 if { (ac_try="$ac_link_default"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_link_default") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2595 # so that the user can short-circuit this test for compilers unknown to
2596 # Autoconf.
2597 for ac_file in $ac_files ''
2598 do
2599 test -f "$ac_file" || continue
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2602 ;;
2603 [ab].out )
2604 # We found the default executable, but exeext='' is most
2605 # certainly right.
2606 break;;
2607 *.* )
2608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2609 then :; else
2610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2611 fi
2612 # We set ac_cv_exeext here because the later test for it is not
2613 # safe: cross compilers may not add the suffix if given an `-o'
2614 # argument, so we may need to know it at that point already.
2615 # Even if this section looks crufty: it has the advantage of
2616 # actually working.
2617 break;;
2618 * )
2619 break;;
2620 esac
2621 done
2622 test "$ac_cv_exeext" = no && ac_cv_exeext=
2623
2624 else
2625 ac_file=''
2626 fi
2627
2628 { echo "$as_me:$LINENO: result: $ac_file" >&5
2629 echo "${ECHO_T}$ac_file" >&6; }
2630 if test -z "$ac_file"; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: C++ compiler cannot create executables
2637 See \`config.log' for more details." >&2;}
2638 { (exit 77); exit 77; }; }
2639 fi
2640
2641 ac_exeext=$ac_cv_exeext
2642
2643 # Check that the compiler produces executables we can run. If not, either
2644 # the compiler is broken, or we cross compile.
2645 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2646 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2647 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2648 # If not cross compiling, check that we can run a simple program.
2649 if test "$cross_compiling" != yes; then
2650 if { ac_try='./$ac_file'
2651 { (case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_try") 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 cross_compiling=no
2661 else
2662 if test "$cross_compiling" = maybe; then
2663 cross_compiling=yes
2664 else
2665 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2666 If you meant to cross compile, use \`--host'.
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: cannot run C++ compiled programs.
2669 If you meant to cross compile, use \`--host'.
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673 fi
2674 fi
2675 { echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6; }
2677
2678 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2679 ac_clean_files=$ac_clean_files_save
2680 # Check that the compiler produces executables we can run. If not, either
2681 # the compiler is broken, or we cross compile.
2682 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2683 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2684 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2685 echo "${ECHO_T}$cross_compiling" >&6; }
2686
2687 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2688 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2689 if { (ac_try="$ac_link"
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_link") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2701 # work properly (i.e., refer to `conftest.exe'), while it won't with
2702 # `rm'.
2703 for ac_file in conftest.exe conftest conftest.*; do
2704 test -f "$ac_file" || continue
2705 case $ac_file in
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2708 break;;
2709 * ) break;;
2710 esac
2711 done
2712 else
2713 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2718 fi
2719
2720 rm -f conftest$ac_cv_exeext
2721 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2722 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2723
2724 rm -f conftest.$ac_ext
2725 EXEEXT=$ac_cv_exeext
2726 ac_exeext=$EXEEXT
2727 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2728 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2729 if test "${ac_cv_objext+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738
2739 int
2740 main ()
2741 {
2742
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.o conftest.obj
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 for ac_file in conftest.o conftest.obj conftest.*; do
2759 test -f "$ac_file" || continue;
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2762 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2763 break;;
2764 esac
2765 done
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details." >&5
2772 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2773 See \`config.log' for more details." >&2;}
2774 { (exit 1); exit 1; }; }
2775 fi
2776
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2778 fi
2779 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2780 echo "${ECHO_T}$ac_cv_objext" >&6; }
2781 OBJEXT=$ac_cv_objext
2782 ac_objext=$OBJEXT
2783 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2784 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2785 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798 #ifndef __GNUC__
2799 choke me
2800 #endif
2801
2802 ;
2803 return 0;
2804 }
2805 _ACEOF
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compile") 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } && {
2820 test -z "$ac_cxx_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest.$ac_objext; then
2823 ac_compiler_gnu=yes
2824 else
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 ac_compiler_gnu=no
2829 fi
2830
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833
2834 fi
2835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_cxx_g+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2846 ac_cxx_werror_flag=yes
2847 ac_cv_prog_cxx_g=no
2848 CXXFLAGS="-g"
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855
2856 int
2857 main ()
2858 {
2859
2860 ;
2861 return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compile") 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } && {
2878 test -z "$ac_cxx_werror_flag" ||
2879 test ! -s conftest.err
2880 } && test -s conftest.$ac_objext; then
2881 ac_cv_prog_cxx_g=yes
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 CXXFLAGS=""
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (ac_try="$ac_compile"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_cxx_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2919 :
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2925 CXXFLAGS="-g"
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932
2933 int
2934 main ()
2935 {
2936
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_cxx_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
2958 ac_cv_prog_cxx_g=yes
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963
2964 fi
2965
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2974 fi
2975 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2976 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2977 if test "$ac_test_CXXFLAGS" = set; then
2978 CXXFLAGS=$ac_save_CXXFLAGS
2979 elif test $ac_cv_prog_cxx_g = yes; then
2980 if test "$GXX" = yes; then
2981 CXXFLAGS="-g -O2"
2982 else
2983 CXXFLAGS="-g"
2984 fi
2985 else
2986 if test "$GXX" = yes; then
2987 CXXFLAGS="-O2"
2988 else
2989 CXXFLAGS=
2990 fi
2991 fi
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 DEPDIR="${am__leading_dot}deps"
2998
2999 ac_config_commands="$ac_config_commands depfiles"
3000
3001
3002 am_make=${MAKE-make}
3003 cat > confinc << 'END'
3004 am__doit:
3005 @echo done
3006 .PHONY: am__doit
3007 END
3008 # If we don't find an include directive, just comment out the code.
3009 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3010 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3011 am__include="#"
3012 am__quote=
3013 _am_result=none
3014 # First try GNU make style include.
3015 echo "include confinc" > confmf
3016 # We grep out `Entering directory' and `Leaving directory'
3017 # messages which can occur if `w' ends up in MAKEFLAGS.
3018 # In particular we don't look at `^make:' because GNU make might
3019 # be invoked under some other name (usually "gmake"), in which
3020 # case it prints its new name instead of `make'.
3021 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3022 am__include=include
3023 am__quote=
3024 _am_result=GNU
3025 fi
3026 # Now try BSD make style include.
3027 if test "$am__include" = "#"; then
3028 echo '.include "confinc"' > confmf
3029 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3030 am__include=.include
3031 am__quote="\""
3032 _am_result=BSD
3033 fi
3034 fi
3035
3036
3037 { echo "$as_me:$LINENO: result: $_am_result" >&5
3038 echo "${ECHO_T}$_am_result" >&6; }
3039 rm -f confinc confmf
3040
3041 # Check whether --enable-dependency-tracking was given.
3042 if test "${enable_dependency_tracking+set}" = set; then
3043 enableval=$enable_dependency_tracking;
3044 fi
3045
3046 if test "x$enable_dependency_tracking" != xno; then
3047 am_depcomp="$ac_aux_dir/depcomp"
3048 AMDEPBACKSLASH='\'
3049 fi
3050 if test "x$enable_dependency_tracking" != xno; then
3051 AMDEP_TRUE=
3052 AMDEP_FALSE='#'
3053 else
3054 AMDEP_TRUE='#'
3055 AMDEP_FALSE=
3056 fi
3057
3058
3059
3060 depcc="$CXX" am_compiler_list=
3061
3062 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3063 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3064 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3068 # We make a subdir and do the tests there. Otherwise we can end up
3069 # making bogus files that we don't know about and never remove. For
3070 # instance it was reported that on HP-UX the gcc test will end up
3071 # making a dummy file named `D' -- because `-MD' means `put the output
3072 # in D'.
3073 mkdir conftest.dir
3074 # Copy depcomp to subdir because otherwise we won't find it if we're
3075 # using a relative directory.
3076 cp "$am_depcomp" conftest.dir
3077 cd conftest.dir
3078 # We will build objects and dependencies in a subdirectory because
3079 # it helps to detect inapplicable dependency modes. For instance
3080 # both Tru64's cc and ICC support -MD to output dependencies as a
3081 # side effect of compilation, but ICC will put the dependencies in
3082 # the current directory while Tru64 will put them in the object
3083 # directory.
3084 mkdir sub
3085
3086 am_cv_CXX_dependencies_compiler_type=none
3087 if test "$am_compiler_list" = ""; then
3088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3089 fi
3090 for depmode in $am_compiler_list; do
3091 # Setup a source with many dependencies, because some compilers
3092 # like to wrap large dependency lists on column 80 (with \), and
3093 # we should not choose a depcomp mode which is confused by this.
3094 #
3095 # We need to recreate these files for each test, as the compiler may
3096 # overwrite some of them when testing with obscure command lines.
3097 # This happens at least with the AIX C compiler.
3098 : > sub/conftest.c
3099 for i in 1 2 3 4 5 6; do
3100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3102 # Solaris 8's {/usr,}/bin/sh.
3103 touch sub/conftst$i.h
3104 done
3105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3106
3107 case $depmode in
3108 nosideeffect)
3109 # after this tag, mechanisms are not by side-effect, so they'll
3110 # only be used when explicitly requested
3111 if test "x$enable_dependency_tracking" = xyes; then
3112 continue
3113 else
3114 break
3115 fi
3116 ;;
3117 none) break ;;
3118 esac
3119 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3120 # mode. It turns out that the SunPro C++ compiler does not properly
3121 # handle `-M -o', and we need to detect this.
3122 if depmode=$depmode \
3123 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3125 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3126 >/dev/null 2>conftest.err &&
3127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3129 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3131 # icc doesn't choke on unknown options, it will just issue warnings
3132 # or remarks (even with -Werror). So we grep stderr for any message
3133 # that says an option was ignored or not supported.
3134 # When given -MP, icc 7.0 and 7.1 complain thusly:
3135 # icc: Command line warning: ignoring option '-M'; no argument required
3136 # The diagnosis changed in icc 8.0:
3137 # icc: Command line remark: option '-MP' not supported
3138 if (grep 'ignoring option' conftest.err ||
3139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3140 am_cv_CXX_dependencies_compiler_type=$depmode
3141 break
3142 fi
3143 fi
3144 done
3145
3146 cd ..
3147 rm -rf conftest.dir
3148 else
3149 am_cv_CXX_dependencies_compiler_type=none
3150 fi
3151
3152 fi
3153 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3154 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3155 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3156
3157 if
3158 test "x$enable_dependency_tracking" != xno \
3159 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3160 am__fastdepCXX_TRUE=
3161 am__fastdepCXX_FALSE='#'
3162 else
3163 am__fastdepCXX_TRUE='#'
3164 am__fastdepCXX_FALSE=
3165 fi
3166
3167
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { echo "$as_me:$LINENO: result: $CC" >&5
3204 echo "${ECHO_T}$CC" >&6; }
3205 else
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3208 fi
3209
3210
3211 fi
3212 if test -z "$ac_cv_prog_CC"; then
3213 ac_ct_CC=$CC
3214 # Extract the first word of "gcc", so it can be a program name with args.
3215 set dummy gcc; ac_word=$2
3216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 if test -n "$ac_ct_CC"; then
3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_ac_ct_CC="gcc"
3232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3244 echo "${ECHO_T}$ac_ct_CC" >&6; }
3245 else
3246 { echo "$as_me:$LINENO: result: no" >&5
3247 echo "${ECHO_T}no" >&6; }
3248 fi
3249
3250 if test "x$ac_ct_CC" = x; then
3251 CC=""
3252 else
3253 case $cross_compiling:$ac_tool_warned in
3254 yes:)
3255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3256 whose name does not start with the host triplet. If you think this
3257 configuration is useful to you, please write to [email protected]." >&5
3258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3259 whose name does not start with the host triplet. If you think this
3260 configuration is useful to you, please write to [email protected]." >&2;}
3261 ac_tool_warned=yes ;;
3262 esac
3263 CC=$ac_ct_CC
3264 fi
3265 else
3266 CC="$ac_cv_prog_CC"
3267 fi
3268
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}cc; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC="${ac_tool_prefix}cc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6; }
3302 else
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3305 fi
3306
3307
3308 fi
3309 fi
3310 if test -z "$CC"; then
3311 # Extract the first word of "cc", so it can be a program name with args.
3312 set dummy cc; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 ac_prog_rejected=no
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3330 ac_prog_rejected=yes
3331 continue
3332 fi
3333 ac_cv_prog_CC="cc"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 if test $ac_prog_rejected = yes; then
3342 # We found a bogon in the path, so make sure we never use it.
3343 set dummy $ac_cv_prog_CC
3344 shift
3345 if test $# != 0; then
3346 # We chose a different compiler from the bogus one.
3347 # However, it has the same basename, so the bogon will be chosen
3348 # first if we set CC to just the basename; use the full file name.
3349 shift
3350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3351 fi
3352 fi
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { echo "$as_me:$LINENO: result: $CC" >&5
3358 echo "${ECHO_T}$CC" >&6; }
3359 else
3360 { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3362 fi
3363
3364
3365 fi
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 for ac_prog in cl.exe
3369 do
3370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3401 else
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3404 fi
3405
3406
3407 test -n "$CC" && break
3408 done
3409 fi
3410 if test -z "$CC"; then
3411 ac_ct_CC=$CC
3412 for ac_prog in cl.exe
3413 do
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC="$ac_prog"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3444 echo "${ECHO_T}$ac_ct_CC" >&6; }
3445 else
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3448 fi
3449
3450
3451 test -n "$ac_ct_CC" && break
3452 done
3453
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3460 whose name does not start with the host triplet. If you think this
3461 configuration is useful to you, please write to [email protected]." >&5
3462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet. If you think this
3464 configuration is useful to you, please write to [email protected]." >&2;}
3465 ac_tool_warned=yes ;;
3466 esac
3467 CC=$ac_ct_CC
3468 fi
3469 fi
3470
3471 fi
3472
3473
3474 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: no acceptable C compiler found in \$PATH
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3479
3480 # Provide some information about the compiler.
3481 echo "$as_me:$LINENO: checking for C compiler version" >&5
3482 ac_compiler=`set X $ac_compile; echo $2`
3483 { (ac_try="$ac_compiler --version >&5"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compiler --version >&5") 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 { (ac_try="$ac_compiler -v >&5"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_compiler -v >&5") 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }
3503 { (ac_try="$ac_compiler -V >&5"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compiler -V >&5") 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }
3513
3514 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3515 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525
3526 int
3527 main ()
3528 {
3529 #ifndef __GNUC__
3530 choke me
3531 #endif
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3554 ac_compiler_gnu=yes
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 ac_compiler_gnu=no
3560 fi
3561
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3568 GCC=`test $ac_compiler_gnu = yes && echo yes`
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3572 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3573 if test "${ac_cv_prog_cc_g+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 ac_save_c_werror_flag=$ac_c_werror_flag
3577 ac_c_werror_flag=yes
3578 ac_cv_prog_cc_g=no
3579 CFLAGS="-g"
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_compile") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest.$ac_objext; then
3612 ac_cv_prog_cc_g=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 CFLAGS=""
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3650 :
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3656 CFLAGS="-g"
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663
3664 int
3665 main ()
3666 {
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3680 ac_status=$?
3681 grep -v '^ *+' conftest.er1 >conftest.err
3682 rm -f conftest.er1
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3689 ac_cv_prog_cc_g=yes
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694
3695 fi
3696
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 fi
3699
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_c_werror_flag=$ac_save_c_werror_flag
3705 fi
3706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3708 if test "$ac_test_CFLAGS" = set; then
3709 CFLAGS=$ac_save_CFLAGS
3710 elif test $ac_cv_prog_cc_g = yes; then
3711 if test "$GCC" = yes; then
3712 CFLAGS="-g -O2"
3713 else
3714 CFLAGS="-g"
3715 fi
3716 else
3717 if test "$GCC" = yes; then
3718 CFLAGS="-O2"
3719 else
3720 CFLAGS=
3721 fi
3722 fi
3723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3725 if test "${ac_cv_prog_cc_c89+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 ac_cv_prog_cc_c89=no
3729 ac_save_CC=$CC
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 #include <stdarg.h>
3737 #include <stdio.h>
3738 #include <sys/types.h>
3739 #include <sys/stat.h>
3740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3741 struct buf { int x; };
3742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743 static char *e (p, i)
3744 char **p;
3745 int i;
3746 {
3747 return p[i];
3748 }
3749 static char *f (char * (*g) (char **, int), char **p, ...)
3750 {
3751 char *s;
3752 va_list v;
3753 va_start (v,p);
3754 s = g (p, va_arg (v,int));
3755 va_end (v);
3756 return s;
3757 }
3758
3759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3760 function prototypes and stuff, but not '\xHH' hex character constants.
3761 These don't provoke an error unfortunately, instead are silently treated
3762 as 'x'. The following induces an error, until -std is added to get
3763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3764 array size at least. It's necessary to write '\x00'==0 to get something
3765 that's true only with -std. */
3766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767
3768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769 inside strings and character constants. */
3770 #define FOO(x) 'x'
3771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777 int argc;
3778 char **argv;
3779 int
3780 main ()
3781 {
3782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3789 do
3790 CC="$ac_save_CC $ac_arg"
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3808 ac_cv_prog_cc_c89=$ac_arg
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813
3814 fi
3815
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3821
3822 fi
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3825 x)
3826 { echo "$as_me:$LINENO: result: none needed" >&5
3827 echo "${ECHO_T}none needed" >&6; } ;;
3828 xno)
3829 { echo "$as_me:$LINENO: result: unsupported" >&5
3830 echo "${ECHO_T}unsupported" >&6; } ;;
3831 *)
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844 depcc="$CC" am_compiler_list=
3845
3846 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3848 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3852 # We make a subdir and do the tests there. Otherwise we can end up
3853 # making bogus files that we don't know about and never remove. For
3854 # instance it was reported that on HP-UX the gcc test will end up
3855 # making a dummy file named `D' -- because `-MD' means `put the output
3856 # in D'.
3857 mkdir conftest.dir
3858 # Copy depcomp to subdir because otherwise we won't find it if we're
3859 # using a relative directory.
3860 cp "$am_depcomp" conftest.dir
3861 cd conftest.dir
3862 # We will build objects and dependencies in a subdirectory because
3863 # it helps to detect inapplicable dependency modes. For instance
3864 # both Tru64's cc and ICC support -MD to output dependencies as a
3865 # side effect of compilation, but ICC will put the dependencies in
3866 # the current directory while Tru64 will put them in the object
3867 # directory.
3868 mkdir sub
3869
3870 am_cv_CC_dependencies_compiler_type=none
3871 if test "$am_compiler_list" = ""; then
3872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3873 fi
3874 for depmode in $am_compiler_list; do
3875 # Setup a source with many dependencies, because some compilers
3876 # like to wrap large dependency lists on column 80 (with \), and
3877 # we should not choose a depcomp mode which is confused by this.
3878 #
3879 # We need to recreate these files for each test, as the compiler may
3880 # overwrite some of them when testing with obscure command lines.
3881 # This happens at least with the AIX C compiler.
3882 : > sub/conftest.c
3883 for i in 1 2 3 4 5 6; do
3884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3886 # Solaris 8's {/usr,}/bin/sh.
3887 touch sub/conftst$i.h
3888 done
3889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3890
3891 case $depmode in
3892 nosideeffect)
3893 # after this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested
3895 if test "x$enable_dependency_tracking" = xyes; then
3896 continue
3897 else
3898 break
3899 fi
3900 ;;
3901 none) break ;;
3902 esac
3903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3904 # mode. It turns out that the SunPro C++ compiler does not properly
3905 # handle `-M -o', and we need to detect this.
3906 if depmode=$depmode \
3907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3910 >/dev/null 2>conftest.err &&
3911 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err ||
3923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type=$depmode
3925 break
3926 fi
3927 fi
3928 done
3929
3930 cd ..
3931 rm -rf conftest.dir
3932 else
3933 am_cv_CC_dependencies_compiler_type=none
3934 fi
3935
3936 fi
3937 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3940
3941 if
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3944 am__fastdepCC_TRUE=
3945 am__fastdepCC_FALSE='#'
3946 else
3947 am__fastdepCC_TRUE='#'
3948 am__fastdepCC_FALSE=
3949 fi
3950
3951
3952 # Find a good install program. We prefer a C program (faster),
3953 # so one script is as good as another. But avoid the broken or
3954 # incompatible versions:
3955 # SysV /etc/install, /usr/sbin/install
3956 # SunOS /usr/etc/install
3957 # IRIX /sbin/install
3958 # AIX /bin/install
3959 # AmigaOS /C/install, which installs bootblocks on floppy discs
3960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3963 # OS/2's system install, which has a completely different semantic
3964 # ./install, which can be erroneously created by make from ./install.sh.
3965 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3966 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3967 if test -z "$INSTALL"; then
3968 if test "${ac_cv_path_install+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 # Account for people who put trailing slashes in PATH elements.
3977 case $as_dir/ in
3978 ./ | .// | /cC/* | \
3979 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3980 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3981 /usr/ucb/* ) ;;
3982 *)
3983 # OSF1 and SCO ODT 3.0 have their own names for install.
3984 # Don't use installbsd from OSF since it installs stuff as root
3985 # by default.
3986 for ac_prog in ginstall scoinst install; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3989 if test $ac_prog = install &&
3990 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3991 # AIX install. It has an incompatible calling convention.
3992 :
3993 elif test $ac_prog = install &&
3994 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3995 # program-specific install script used by HP pwplus--don't use.
3996 :
3997 else
3998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3999 break 3
4000 fi
4001 fi
4002 done
4003 done
4004 ;;
4005 esac
4006 done
4007 IFS=$as_save_IFS
4008
4009
4010 fi
4011 if test "${ac_cv_path_install+set}" = set; then
4012 INSTALL=$ac_cv_path_install
4013 else
4014 # As a last resort, use the slow shell script. Don't cache a
4015 # value for INSTALL within a source directory, because that will
4016 # break other packages using the cache if that directory is
4017 # removed, or if the value is a relative name.
4018 INSTALL=$ac_install_sh
4019 fi
4020 fi
4021 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4022 echo "${ECHO_T}$INSTALL" >&6; }
4023
4024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4025 # It thinks the first close brace ends the variable substitution.
4026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4027
4028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4029
4030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4031
4032 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4033 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4034 LN_S=$as_ln_s
4035 if test "$LN_S" = "ln -s"; then
4036 { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4038 else
4039 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4040 echo "${ECHO_T}no, using $LN_S" >&6; }
4041 fi
4042
4043
4044
4045 # Checks for libraries.
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4053 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4056 CPP=
4057 fi
4058 if test -z "$CPP"; then
4059 if test "${ac_cv_prog_CPP+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 # Double quotes because CPP needs to be expanded
4063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 do
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4067 do
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 #ifdef __STDC__
4081 # include <limits.h>
4082 #else
4083 # include <assert.h>
4084 #endif
4085 Syntax error
4086 _ACEOF
4087 if { (ac_try="$ac_cpp conftest.$ac_ext"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 }; then
4103 :
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 # Broken: fails on valid input.
4109 continue
4110 fi
4111
4112 rm -f conftest.err conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } >/dev/null && {
4137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 }; then
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4149 fi
4150
4151 rm -f conftest.err conftest.$ac_ext
4152
4153 done
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.$ac_ext
4156 if $ac_preproc_ok; then
4157 break
4158 fi
4159
4160 done
4161 ac_cv_prog_CPP=$CPP
4162
4163 fi
4164 CPP=$ac_cv_prog_CPP
4165 else
4166 ac_cv_prog_CPP=$CPP
4167 fi
4168 { echo "$as_me:$LINENO: result: $CPP" >&5
4169 echo "${ECHO_T}$CPP" >&6; }
4170 ac_preproc_ok=false
4171 for ac_c_preproc_warn_flag in '' yes
4172 do
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #ifdef __STDC__
4186 # include <limits.h>
4187 #else
4188 # include <assert.h>
4189 #endif
4190 Syntax error
4191 _ACEOF
4192 if { (ac_try="$ac_cpp conftest.$ac_ext"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } >/dev/null && {
4205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 }; then
4208 :
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # Broken: fails on valid input.
4214 continue
4215 fi
4216
4217 rm -f conftest.err conftest.$ac_ext
4218
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if { (ac_try="$ac_cpp conftest.$ac_ext"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null && {
4242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 }; then
4245 # Broken: success on invalid input.
4246 continue
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 # Passes both tests.
4252 ac_preproc_ok=:
4253 break
4254 fi
4255
4256 rm -f conftest.err conftest.$ac_ext
4257
4258 done
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then
4262 :
4263 else
4264 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4265 See \`config.log' for more details." >&5
4266 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details." >&2;}
4268 { (exit 1); exit 1; }; }
4269 fi
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277
4278 { echo "$as_me:$LINENO: checking for X" >&5
4279 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4280
4281
4282 # Check whether --with-x was given.
4283 if test "${with_x+set}" = set; then
4284 withval=$with_x;
4285 fi
4286
4287 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4288 if test "x$with_x" = xno; then
4289 # The user explicitly disabled X.
4290 have_x=disabled
4291 else
4292 case $x_includes,$x_libraries in #(
4293 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4294 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4295 { (exit 1); exit 1; }; };; #(
4296 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299 # One or both of the vars are not set, and there is no cached value.
4300 ac_x_includes=no ac_x_libraries=no
4301 rm -f -r conftest.dir
4302 if mkdir conftest.dir; then
4303 cd conftest.dir
4304 cat >Imakefile <<'_ACEOF'
4305 incroot:
4306 @echo incroot='${INCROOT}'
4307 usrlibdir:
4308 @echo usrlibdir='${USRLIBDIR}'
4309 libdir:
4310 @echo libdir='${LIBDIR}'
4311 _ACEOF
4312 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4313 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4314 for ac_var in incroot usrlibdir libdir; do
4315 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4316 done
4317 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4318 for ac_extension in a so sl; do
4319 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4320 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4321 ac_im_usrlibdir=$ac_im_libdir; break
4322 fi
4323 done
4324 # Screen out bogus values from the imake configuration. They are
4325 # bogus both because they are the default anyway, and because
4326 # using them would break gcc on systems where it needs fixed includes.
4327 case $ac_im_incroot in
4328 /usr/include) ac_x_includes= ;;
4329 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4330 esac
4331 case $ac_im_usrlibdir in
4332 /usr/lib | /lib) ;;
4333 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4334 esac
4335 fi
4336 cd ..
4337 rm -f -r conftest.dir
4338 fi
4339
4340 # Standard set of common directories for X headers.
4341 # Check X11 before X11Rn because it is often a symlink to the current release.
4342 ac_x_header_dirs='
4343 /usr/X11/include
4344 /usr/X11R6/include
4345 /usr/X11R5/include
4346 /usr/X11R4/include
4347
4348 /usr/include/X11
4349 /usr/include/X11R6
4350 /usr/include/X11R5
4351 /usr/include/X11R4
4352
4353 /usr/local/X11/include
4354 /usr/local/X11R6/include
4355 /usr/local/X11R5/include
4356 /usr/local/X11R4/include
4357
4358 /usr/local/include/X11
4359 /usr/local/include/X11R6
4360 /usr/local/include/X11R5
4361 /usr/local/include/X11R4
4362
4363 /usr/X386/include
4364 /usr/x386/include
4365 /usr/XFree86/include/X11
4366
4367 /usr/include
4368 /usr/local/include
4369 /usr/unsupported/include
4370 /usr/athena/include
4371 /usr/local/x11r5/include
4372 /usr/lpp/Xamples/include
4373
4374 /usr/openwin/include
4375 /usr/openwin/share/include'
4376
4377 if test "$ac_x_includes" = no; then
4378 # Guess where to find include files, by looking for Xlib.h.
4379 # First, try using that file with no special directory specified.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <X11/Xlib.h>
4387 _ACEOF
4388 if { (ac_try="$ac_cpp conftest.$ac_ext"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null && {
4401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 }; then
4404 # We can compile using X headers with no special include directory.
4405 ac_x_includes=
4406 else
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 for ac_dir in $ac_x_header_dirs; do
4411 if test -r "$ac_dir/X11/Xlib.h"; then
4412 ac_x_includes=$ac_dir
4413 break
4414 fi
4415 done
4416 fi
4417
4418 rm -f conftest.err conftest.$ac_ext
4419 fi # $ac_x_includes = no
4420
4421 if test "$ac_x_libraries" = no; then
4422 # Check for the libraries.
4423 # See if we find them without any special options.
4424 # Don't add to $LIBS permanently.
4425 ac_save_LIBS=$LIBS
4426 LIBS="-lX11 $LIBS"
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <X11/Xlib.h>
4434 int
4435 main ()
4436 {
4437 XrmInitialize ()
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (ac_try="$ac_link"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_link") 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } && {
4456 test -z "$ac_c_werror_flag" ||
4457 test ! -s conftest.err
4458 } && test -s conftest$ac_exeext &&
4459 $as_test_x conftest$ac_exeext; then
4460 LIBS=$ac_save_LIBS
4461 # We can link X programs with no special library path.
4462 ac_x_libraries=
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 LIBS=$ac_save_LIBS
4468 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4469 do
4470 # Don't even attempt the hair of trying to link an X program!
4471 for ac_extension in a so sl; do
4472 if test -r "$ac_dir/libX11.$ac_extension"; then
4473 ac_x_libraries=$ac_dir
4474 break 2
4475 fi
4476 done
4477 done
4478 fi
4479
4480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4481 conftest$ac_exeext conftest.$ac_ext
4482 fi # $ac_x_libraries = no
4483
4484 case $ac_x_includes,$ac_x_libraries in #(
4485 no,* | *,no | *\'*)
4486 # Didn't find X, or a directory has "'" in its name.
4487 ac_cv_have_x="have_x=no";; #(
4488 *)
4489 # Record where we found X for the cache.
4490 ac_cv_have_x="have_x=yes\
4491 ac_x_includes='$ac_x_includes'\
4492 ac_x_libraries='$ac_x_libraries'"
4493 esac
4494 fi
4495 ;; #(
4496 *) have_x=yes;;
4497 esac
4498 eval "$ac_cv_have_x"
4499 fi # $with_x != no
4500
4501 if test "$have_x" != yes; then
4502 { echo "$as_me:$LINENO: result: $have_x" >&5
4503 echo "${ECHO_T}$have_x" >&6; }
4504 no_x=yes
4505 else
4506 # If each of the values was on the command line, it overrides each guess.
4507 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4508 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4509 # Update the cache value to reflect the command line values.
4510 ac_cv_have_x="have_x=yes\
4511 ac_x_includes='$x_includes'\
4512 ac_x_libraries='$x_libraries'"
4513 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4514 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4515 fi
4516
4517 if test "$no_x" = yes; then
4518 # Not all programs may use this symbol, but it does not hurt to define it.
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define X_DISPLAY_MISSING 1
4522 _ACEOF
4523
4524 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4525 else
4526 if test -n "$x_includes"; then
4527 X_CFLAGS="$X_CFLAGS -I$x_includes"
4528 fi
4529
4530 # It would also be nice to do this for all -L options, not just this one.
4531 if test -n "$x_libraries"; then
4532 X_LIBS="$X_LIBS -L$x_libraries"
4533 # For Solaris; some versions of Sun CC require a space after -R and
4534 # others require no space. Words are not sufficient . . . .
4535 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4536 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4537 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4538 ac_xsave_c_werror_flag=$ac_c_werror_flag
4539 ac_c_werror_flag=yes
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_link") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest$ac_exeext &&
4572 $as_test_x conftest$ac_exeext; then
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4575 X_LIBS="$X_LIBS -R$x_libraries"
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 LIBS="$ac_xsave_LIBS -R $x_libraries"
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587
4588 int
4589 main ()
4590 {
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest$ac_exeext &&
4613 $as_test_x conftest$ac_exeext; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 X_LIBS="$X_LIBS -R $x_libraries"
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 { echo "$as_me:$LINENO: result: neither works" >&5
4622 echo "${ECHO_T}neither works" >&6; }
4623 fi
4624
4625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4626 conftest$ac_exeext conftest.$ac_ext
4627 fi
4628
4629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4630 conftest$ac_exeext conftest.$ac_ext
4631 ac_c_werror_flag=$ac_xsave_c_werror_flag
4632 LIBS=$ac_xsave_LIBS
4633 fi
4634
4635 # Check for system-dependent libraries X programs must link with.
4636 # Do this before checking for the system-independent R6 libraries
4637 # (-lICE), since we may need -lsocket or whatever for X linking.
4638
4639 if test "$ISC" = yes; then
4640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4641 else
4642 # Martyn Johnson says this is needed for Ultrix, if the X
4643 # libraries were built with DECnet support. And Karl Berry says
4644 # the Alpha needs dnet_stub (dnet does not exist).
4645 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652
4653 /* Override any GCC internal prototype to avoid an error.
4654 Use char because int might match the return type of a GCC
4655 builtin and then its argument prototype would still apply. */
4656 #ifdef __cplusplus
4657 extern "C"
4658 #endif
4659 char XOpenDisplay ();
4660 int
4661 main ()
4662 {
4663 return XOpenDisplay ();
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext conftest$ac_exeext
4669 if { (ac_try="$ac_link"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_link") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest$ac_exeext &&
4685 $as_test_x conftest$ac_exeext; then
4686 :
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4692 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4693 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 ac_check_lib_save_LIBS=$LIBS
4697 LIBS="-ldnet $LIBS"
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704
4705 /* Override any GCC internal prototype to avoid an error.
4706 Use char because int might match the return type of a GCC
4707 builtin and then its argument prototype would still apply. */
4708 #ifdef __cplusplus
4709 extern "C"
4710 #endif
4711 char dnet_ntoa ();
4712 int
4713 main ()
4714 {
4715 return dnet_ntoa ();
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (ac_try="$ac_link"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_link") 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && {
4734 test -z "$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest$ac_exeext &&
4737 $as_test_x conftest$ac_exeext; then
4738 ac_cv_lib_dnet_dnet_ntoa=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 ac_cv_lib_dnet_dnet_ntoa=no
4744 fi
4745
4746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4747 conftest$ac_exeext conftest.$ac_ext
4748 LIBS=$ac_check_lib_save_LIBS
4749 fi
4750 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4751 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4752 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4754 fi
4755
4756 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4757 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4758 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4759 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 ac_check_lib_save_LIBS=$LIBS
4763 LIBS="-ldnet_stub $LIBS"
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770
4771 /* Override any GCC internal prototype to avoid an error.
4772 Use char because int might match the return type of a GCC
4773 builtin and then its argument prototype would still apply. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 char dnet_ntoa ();
4778 int
4779 main ()
4780 {
4781 return dnet_ntoa ();
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (ac_try="$ac_link"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_link") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } && {
4800 test -z "$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 } && test -s conftest$ac_exeext &&
4803 $as_test_x conftest$ac_exeext; then
4804 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 ac_cv_lib_dnet_stub_dnet_ntoa=no
4810 fi
4811
4812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4813 conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4815 fi
4816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4817 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4818 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4819 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4820 fi
4821
4822 fi
4823 fi
4824
4825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LIBS="$ac_xsave_LIBS"
4828
4829 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4830 # to get the SysV transport functions.
4831 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4832 # needs -lnsl.
4833 # The nsl library prevents programs from opening the X display
4834 # on Irix 5.2, according to T.E. Dickey.
4835 # The functions gethostbyname, getservbyname, and inet_addr are
4836 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4837 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4838 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4839 if test "${ac_cv_func_gethostbyname+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4850 #define gethostbyname innocuous_gethostbyname
4851
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char gethostbyname (); below.
4854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4855 <limits.h> exists even on freestanding compilers. */
4856
4857 #ifdef __STDC__
4858 # include <limits.h>
4859 #else
4860 # include <assert.h>
4861 #endif
4862
4863 #undef gethostbyname
4864
4865 /* Override any GCC internal prototype to avoid an error.
4866 Use char because int might match the return type of a GCC
4867 builtin and then its argument prototype would still apply. */
4868 #ifdef __cplusplus
4869 extern "C"
4870 #endif
4871 char gethostbyname ();
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4876 choke me
4877 #endif
4878
4879 int
4880 main ()
4881 {
4882 return gethostbyname ();
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4889 case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892 esac
4893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_link") 2>conftest.er1
4895 ac_status=$?
4896 grep -v '^ *+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && {
4901 test -z "$ac_c_werror_flag" ||
4902 test ! -s conftest.err
4903 } && test -s conftest$ac_exeext &&
4904 $as_test_x conftest$ac_exeext; then
4905 ac_cv_func_gethostbyname=yes
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 ac_cv_func_gethostbyname=no
4911 fi
4912
4913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4914 conftest$ac_exeext conftest.$ac_ext
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4917 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4918
4919 if test $ac_cv_func_gethostbyname = no; then
4920 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4921 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-lnsl $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933
4934 /* Override any GCC internal prototype to avoid an error.
4935 Use char because int might match the return type of a GCC
4936 builtin and then its argument prototype would still apply. */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 char gethostbyname ();
4941 int
4942 main ()
4943 {
4944 return gethostbyname ();
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (ac_try="$ac_link"
4951 case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_link") 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && {
4963 test -z "$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4965 } && test -s conftest$ac_exeext &&
4966 $as_test_x conftest$ac_exeext; then
4967 ac_cv_lib_nsl_gethostbyname=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 ac_cv_lib_nsl_gethostbyname=no
4973 fi
4974
4975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4976 conftest$ac_exeext conftest.$ac_ext
4977 LIBS=$ac_check_lib_save_LIBS
4978 fi
4979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4980 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4981 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4983 fi
4984
4985 if test $ac_cv_lib_nsl_gethostbyname = no; then
4986 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4987 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4988 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-lbsd $LIBS"
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5003 #ifdef __cplusplus
5004 extern "C"
5005 #endif
5006 char gethostbyname ();
5007 int
5008 main ()
5009 {
5010 return gethostbyname ();
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (ac_try="$ac_link"
5017 case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020 esac
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_link") 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest$ac_exeext &&
5032 $as_test_x conftest$ac_exeext; then
5033 ac_cv_lib_bsd_gethostbyname=yes
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 ac_cv_lib_bsd_gethostbyname=no
5039 fi
5040
5041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5042 conftest$ac_exeext conftest.$ac_ext
5043 LIBS=$ac_check_lib_save_LIBS
5044 fi
5045 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5046 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5047 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5048 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5049 fi
5050
5051 fi
5052 fi
5053
5054 # [email protected] says without -lsocket,
5055 # socket/setsockopt and other routines are undefined under SCO ODT
5056 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5057 # on later versions), says Simon Leinen: it contains gethostby*
5058 # variants that don't use the name server (or something). -lsocket
5059 # must be given before -lnsl if both are needed. We assume that
5060 # if connect needs -lnsl, so does gethostbyname.
5061 { echo "$as_me:$LINENO: checking for connect" >&5
5062 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5063 if test "${ac_cv_func_connect+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5074 #define connect innocuous_connect
5075
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char connect (); below.
5078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 <limits.h> exists even on freestanding compilers. */
5080
5081 #ifdef __STDC__
5082 # include <limits.h>
5083 #else
5084 # include <assert.h>
5085 #endif
5086
5087 #undef connect
5088
5089 /* Override any GCC internal prototype to avoid an error.
5090 Use char because int might match the return type of a GCC
5091 builtin and then its argument prototype would still apply. */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 char connect ();
5096 /* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099 #if defined __stub_connect || defined __stub___connect
5100 choke me
5101 #endif
5102
5103 int
5104 main ()
5105 {
5106 return connect ();
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext &&
5128 $as_test_x conftest$ac_exeext; then
5129 ac_cv_func_connect=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 ac_cv_func_connect=no
5135 fi
5136
5137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5138 conftest$ac_exeext conftest.$ac_ext
5139 fi
5140 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5141 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5142
5143 if test $ac_cv_func_connect = no; then
5144 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5145 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5146 if test "${ac_cv_lib_socket_connect+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 ac_check_lib_save_LIBS=$LIBS
5150 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157
5158 /* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 char connect ();
5165 int
5166 main ()
5167 {
5168 return connect ();
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (ac_try="$ac_link"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_link") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest$ac_exeext &&
5190 $as_test_x conftest$ac_exeext; then
5191 ac_cv_lib_socket_connect=yes
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 ac_cv_lib_socket_connect=no
5197 fi
5198
5199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5200 conftest$ac_exeext conftest.$ac_ext
5201 LIBS=$ac_check_lib_save_LIBS
5202 fi
5203 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5204 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5205 if test $ac_cv_lib_socket_connect = yes; then
5206 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5207 fi
5208
5209 fi
5210
5211 # Guillermo Gomez says -lposix is necessary on A/UX.
5212 { echo "$as_me:$LINENO: checking for remove" >&5
5213 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5214 if test "${ac_cv_func_remove+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5225 #define remove innocuous_remove
5226
5227 /* System header to define __stub macros and hopefully few prototypes,
5228 which can conflict with char remove (); below.
5229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 <limits.h> exists even on freestanding compilers. */
5231
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237
5238 #undef remove
5239
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char remove ();
5247 /* The GNU C library defines this for functions which it implements
5248 to always fail with ENOSYS. Some functions are actually named
5249 something starting with __ and the normal name is an alias. */
5250 #if defined __stub_remove || defined __stub___remove
5251 choke me
5252 #endif
5253
5254 int
5255 main ()
5256 {
5257 return remove ();
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest$ac_exeext &&
5279 $as_test_x conftest$ac_exeext; then
5280 ac_cv_func_remove=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_cv_func_remove=no
5286 fi
5287
5288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5289 conftest$ac_exeext conftest.$ac_ext
5290 fi
5291 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5292 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5293
5294 if test $ac_cv_func_remove = no; then
5295 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5296 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5297 if test "${ac_cv_lib_posix_remove+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 ac_check_lib_save_LIBS=$LIBS
5301 LIBS="-lposix $LIBS"
5302 cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308
5309 /* Override any GCC internal prototype to avoid an error.
5310 Use char because int might match the return type of a GCC
5311 builtin and then its argument prototype would still apply. */
5312 #ifdef __cplusplus
5313 extern "C"
5314 #endif
5315 char remove ();
5316 int
5317 main ()
5318 {
5319 return remove ();
5320 ;
5321 return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (ac_try="$ac_link"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_link") 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest$ac_exeext &&
5341 $as_test_x conftest$ac_exeext; then
5342 ac_cv_lib_posix_remove=yes
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 ac_cv_lib_posix_remove=no
5348 fi
5349
5350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5351 conftest$ac_exeext conftest.$ac_ext
5352 LIBS=$ac_check_lib_save_LIBS
5353 fi
5354 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5355 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5356 if test $ac_cv_lib_posix_remove = yes; then
5357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5358 fi
5359
5360 fi
5361
5362 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5363 { echo "$as_me:$LINENO: checking for shmat" >&5
5364 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5365 if test "${ac_cv_func_shmat+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5376 #define shmat innocuous_shmat
5377
5378 /* System header to define __stub macros and hopefully few prototypes,
5379 which can conflict with char shmat (); below.
5380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 <limits.h> exists even on freestanding compilers. */
5382
5383 #ifdef __STDC__
5384 # include <limits.h>
5385 #else
5386 # include <assert.h>
5387 #endif
5388
5389 #undef shmat
5390
5391 /* Override any GCC internal prototype to avoid an error.
5392 Use char because int might match the return type of a GCC
5393 builtin and then its argument prototype would still apply. */
5394 #ifdef __cplusplus
5395 extern "C"
5396 #endif
5397 char shmat ();
5398 /* The GNU C library defines this for functions which it implements
5399 to always fail with ENOSYS. Some functions are actually named
5400 something starting with __ and the normal name is an alias. */
5401 #if defined __stub_shmat || defined __stub___shmat
5402 choke me
5403 #endif
5404
5405 int
5406 main ()
5407 {
5408 return shmat ();
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 rm -f conftest.$ac_objext conftest$ac_exeext
5414 if { (ac_try="$ac_link"
5415 case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_link") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && {
5427 test -z "$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5429 } && test -s conftest$ac_exeext &&
5430 $as_test_x conftest$ac_exeext; then
5431 ac_cv_func_shmat=yes
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_cv_func_shmat=no
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5440 conftest$ac_exeext conftest.$ac_ext
5441 fi
5442 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5443 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5444
5445 if test $ac_cv_func_shmat = no; then
5446 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5447 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5448 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 ac_check_lib_save_LIBS=$LIBS
5452 LIBS="-lipc $LIBS"
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459
5460 /* Override any GCC internal prototype to avoid an error.
5461 Use char because int might match the return type of a GCC
5462 builtin and then its argument prototype would still apply. */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 char shmat ();
5467 int
5468 main ()
5469 {
5470 return shmat ();
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (ac_try="$ac_link"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_link") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest$ac_exeext &&
5492 $as_test_x conftest$ac_exeext; then
5493 ac_cv_lib_ipc_shmat=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_cv_lib_ipc_shmat=no
5499 fi
5500
5501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5502 conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5504 fi
5505 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5506 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5507 if test $ac_cv_lib_ipc_shmat = yes; then
5508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5509 fi
5510
5511 fi
5512 fi
5513
5514 # Check for libraries that X11R6 Xt/Xaw programs need.
5515 ac_save_LDFLAGS=$LDFLAGS
5516 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5517 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5518 # check for ICE first), but we must link in the order -lSM -lICE or
5519 # we get undefined symbols. So assume we have SM if we have ICE.
5520 # These have to be linked with before -lX11, unlike the other
5521 # libraries we check for below, so use a different variable.
5522 # John Interrante, Karl Berry
5523 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5524 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5525 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 ac_check_lib_save_LIBS=$LIBS
5529 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536
5537 /* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5540 #ifdef __cplusplus
5541 extern "C"
5542 #endif
5543 char IceConnectionNumber ();
5544 int
5545 main ()
5546 {
5547 return IceConnectionNumber ();
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 rm -f conftest.$ac_objext conftest$ac_exeext
5553 if { (ac_try="$ac_link"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_link") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest$ac_exeext &&
5569 $as_test_x conftest$ac_exeext; then
5570 ac_cv_lib_ICE_IceConnectionNumber=yes
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 ac_cv_lib_ICE_IceConnectionNumber=no
5576 fi
5577
5578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5579 conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5581 fi
5582 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5583 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5584 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5585 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5586 fi
5587
5588 LDFLAGS=$ac_save_LDFLAGS
5589
5590 fi
5591
5592
5593 { echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
5594 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6; }
5595 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 ac_check_lib_save_LIBS=$LIBS
5599 LIBS="-lSDL $LIBS"
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606
5607 /* Override any GCC internal prototype to avoid an error.
5608 Use char because int might match the return type of a GCC
5609 builtin and then its argument prototype would still apply. */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 char SDL_Init ();
5614 int
5615 main ()
5616 {
5617 return SDL_Init ();
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (ac_try="$ac_link"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_link") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest$ac_exeext &&
5639 $as_test_x conftest$ac_exeext; then
5640 ac_cv_lib_SDL_SDL_Init=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_cv_lib_SDL_SDL_Init=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5649 conftest$ac_exeext conftest.$ac_ext
5650 LIBS=$ac_check_lib_save_LIBS
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
5653 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6; }
5654 if test $ac_cv_lib_SDL_SDL_Init = yes; then
5655 cat >>confdefs.h <<_ACEOF
5656 #define HAVE_LIBSDL 1
5657 _ACEOF
5658
5659 LIBS="-lSDL $LIBS"
5660
5661 else
5662 { { echo "$as_me:$LINENO: error: SDL is required" >&5
5663 echo "$as_me: error: SDL is required" >&2;}
5664 { (exit 1); exit 1; }; }
5665 fi
5666
5667
5668 { echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
5669 echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
5670 if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 ac_check_lib_save_LIBS=$LIBS
5674 LIBS="-lSDL_image $LIBS"
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681
5682 /* Override any GCC internal prototype to avoid an error.
5683 Use char because int might match the return type of a GCC
5684 builtin and then its argument prototype would still apply. */
5685 #ifdef __cplusplus
5686 extern "C"
5687 #endif
5688 char IMG_Load ();
5689 int
5690 main ()
5691 {
5692 return IMG_Load ();
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest$ac_exeext &&
5714 $as_test_x conftest$ac_exeext; then
5715 ac_cv_lib_SDL_image_IMG_Load=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_cv_lib_SDL_image_IMG_Load=no
5721 fi
5722
5723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5724 conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_check_lib_save_LIBS
5726 fi
5727 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
5728 echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
5729 if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_LIBSDL_IMAGE 1
5732 _ACEOF
5733
5734 LIBS="-lSDL_image $LIBS"
5735
5736 else
5737 { { echo "$as_me:$LINENO: error: SDL_image is required" >&5
5738 echo "$as_me: error: SDL_image is required" >&2;}
5739 { (exit 1); exit 1; }; }
5740 fi
5741
5742
5743 { echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
5744 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
5745 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 ac_check_lib_save_LIBS=$LIBS
5749 LIBS="-lSDL_mixer $LIBS"
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756
5757 /* Override any GCC internal prototype to avoid an error.
5758 Use char because int might match the return type of a GCC
5759 builtin and then its argument prototype would still apply. */
5760 #ifdef __cplusplus
5761 extern "C"
5762 #endif
5763 char Mix_OpenAudio ();
5764 int
5765 main ()
5766 {
5767 return Mix_OpenAudio ();
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_link") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest$ac_exeext &&
5789 $as_test_x conftest$ac_exeext; then
5790 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
5796 fi
5797
5798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
5803 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
5804 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
5805 cat >>confdefs.h <<_ACEOF
5806 #define HAVE_LIBSDL_MIXER 1
5807 _ACEOF
5808
5809 LIBS="-lSDL_mixer $LIBS"
5810
5811 else
5812 { { echo "$as_me:$LINENO: error: SDL_mixer is required" >&5
5813 echo "$as_me: error: SDL_mixer is required" >&2;}
5814 { (exit 1); exit 1; }; }
5815 fi
5816
5817
5818 { echo "$as_me:$LINENO: checking for tea in -lHeartOfGold" >&5
5819 echo $ECHO_N "checking for tea in -lHeartOfGold... $ECHO_C" >&6; }
5820 if test "${ac_cv_lib_HeartOfGold_tea+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-lHeartOfGold $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831
5832 /* Override any GCC internal prototype to avoid an error.
5833 Use char because int might match the return type of a GCC
5834 builtin and then its argument prototype would still apply. */
5835 #ifdef __cplusplus
5836 extern "C"
5837 #endif
5838 char tea ();
5839 int
5840 main ()
5841 {
5842 return tea ();
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest$ac_exeext &&
5864 $as_test_x conftest$ac_exeext; then
5865 ac_cv_lib_HeartOfGold_tea=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_lib_HeartOfGold_tea=no
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5874 conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5876 fi
5877 { echo "$as_me:$LINENO: result: $ac_cv_lib_HeartOfGold_tea" >&5
5878 echo "${ECHO_T}$ac_cv_lib_HeartOfGold_tea" >&6; }
5879 if test $ac_cv_lib_HeartOfGold_tea = yes; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_LIBHEARTOFGOLD 1
5882 _ACEOF
5883
5884 LIBS="-lHeartOfGold $LIBS"
5885
5886 fi
5887
5888
5889
5890 #This is needed for IRIX (why?).
5891 #AC_CHECK_LIB([gen], [main])
5892
5893
5894 # Checks for header files.
5895 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5896 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 # Extract the first word of "grep ggrep" to use in msg output
5901 if test -z "$GREP"; then
5902 set dummy grep ggrep; ac_prog_name=$2
5903 if test "${ac_cv_path_GREP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 ac_path_GREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_prog in grep ggrep; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5916 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5917 # Check for GNU ac_path_GREP and select it if it is found.
5918 # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5920 *GNU*)
5921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922 *)
5923 ac_count=0
5924 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5925 while :
5926 do
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 echo 'GREP' >> "conftest.nl"
5931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933 ac_count=`expr $ac_count + 1`
5934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_GREP="$ac_path_GREP"
5937 ac_path_GREP_max=$ac_count
5938 fi
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5941 done
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5944
5945
5946 $ac_path_GREP_found && break 3
5947 done
5948 done
5949
5950 done
5951 IFS=$as_save_IFS
5952
5953
5954 fi
5955
5956 GREP="$ac_cv_path_GREP"
5957 if test -z "$GREP"; then
5958 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5960 { (exit 1); exit 1; }; }
5961 fi
5962
5963 else
5964 ac_cv_path_GREP=$GREP
5965 fi
5966
5967
5968 fi
5969 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5970 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5971 GREP="$ac_cv_path_GREP"
5972
5973
5974 { echo "$as_me:$LINENO: checking for egrep" >&5
5975 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980 then ac_cv_path_EGREP="$GREP -E"
5981 else
5982 # Extract the first word of "egrep" to use in msg output
5983 if test -z "$EGREP"; then
5984 set dummy egrep; ac_prog_name=$2
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 ac_path_EGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_prog in egrep; do
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5998 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5999 # Check for GNU ac_path_EGREP and select it if it is found.
6000 # Check for GNU $ac_path_EGREP
6001 case `"$ac_path_EGREP" --version 2>&1` in
6002 *GNU*)
6003 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6004 *)
6005 ac_count=0
6006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6007 while :
6008 do
6009 cat "conftest.in" "conftest.in" >"conftest.tmp"
6010 mv "conftest.tmp" "conftest.in"
6011 cp "conftest.in" "conftest.nl"
6012 echo 'EGREP' >> "conftest.nl"
6013 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015 ac_count=`expr $ac_count + 1`
6016 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6017 # Best one so far, save it but keep looking for a better one
6018 ac_cv_path_EGREP="$ac_path_EGREP"
6019 ac_path_EGREP_max=$ac_count
6020 fi
6021 # 10*(2^10) chars as input seems more than enough
6022 test $ac_count -gt 10 && break
6023 done
6024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027
6028 $ac_path_EGREP_found && break 3
6029 done
6030 done
6031
6032 done
6033 IFS=$as_save_IFS
6034
6035
6036 fi
6037
6038 EGREP="$ac_cv_path_EGREP"
6039 if test -z "$EGREP"; then
6040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6042 { (exit 1); exit 1; }; }
6043 fi
6044
6045 else
6046 ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049
6050 fi
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6053 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6054 EGREP="$ac_cv_path_EGREP"
6055
6056
6057 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6059 if test "${ac_cv_header_stdc+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <stdlib.h>
6069 #include <stdarg.h>
6070 #include <string.h>
6071 #include <float.h>
6072
6073 int
6074 main ()
6075 {
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_cv_header_stdc=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_header_stdc=no
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107
6108 if test $ac_cv_header_stdc = yes; then
6109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <string.h>
6117
6118 _ACEOF
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "memchr" >/dev/null 2>&1; then
6121 :
6122 else
6123 ac_cv_header_stdc=no
6124 fi
6125 rm -f conftest*
6126
6127 fi
6128
6129 if test $ac_cv_header_stdc = yes; then
6130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <stdlib.h>
6138
6139 _ACEOF
6140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141 $EGREP "free" >/dev/null 2>&1; then
6142 :
6143 else
6144 ac_cv_header_stdc=no
6145 fi
6146 rm -f conftest*
6147
6148 fi
6149
6150 if test $ac_cv_header_stdc = yes; then
6151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6152 if test "$cross_compiling" = yes; then
6153 :
6154 else
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <ctype.h>
6162 #include <stdlib.h>
6163 #if ((' ' & 0x0FF) == 0x020)
6164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6166 #else
6167 # define ISLOWER(c) \
6168 (('a' <= (c) && (c) <= 'i') \
6169 || ('j' <= (c) && (c) <= 'r') \
6170 || ('s' <= (c) && (c) <= 'z'))
6171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6172 #endif
6173
6174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6175 int
6176 main ()
6177 {
6178 int i;
6179 for (i = 0; i < 256; i++)
6180 if (XOR (islower (i), ISLOWER (i))
6181 || toupper (i) != TOUPPER (i))
6182 return 2;
6183 return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6188 case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_link") 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197 { (case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_try") 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 :
6207 else
6208 echo "$as_me: program exited with status $ac_status" >&5
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ( exit $ac_status )
6213 ac_cv_header_stdc=no
6214 fi
6215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6216 fi
6217
6218
6219 fi
6220 fi
6221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6223 if test $ac_cv_header_stdc = yes; then
6224
6225 cat >>confdefs.h <<\_ACEOF
6226 #define STDC_HEADERS 1
6227 _ACEOF
6228
6229 fi
6230
6231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6242 inttypes.h stdint.h unistd.h
6243 do
6244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 $ac_includes_default
6257
6258 #include <$ac_header>
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (ac_try="$ac_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 eval "$as_ac_Header=yes"
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 eval "$as_ac_Header=no"
6283 fi
6284
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 ac_res=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 _ACEOF
6294
6295 fi
6296
6297 done
6298
6299
6300
6301
6302
6303
6304 for ac_header in fcntl.h stdlib.h string.h unistd.h
6305 do
6306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 fi
6313 ac_res=`eval echo '${'$as_ac_Header'}'`
6314 { echo "$as_me:$LINENO: result: $ac_res" >&5
6315 echo "${ECHO_T}$ac_res" >&6; }
6316 else
6317 # Is the header compilable?
6318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 $ac_includes_default
6327 #include <$ac_header>
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (ac_try="$ac_compile"
6331 case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_compile") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest.$ac_objext; then
6346 ac_header_compiler=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351 ac_header_compiler=no
6352 fi
6353
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356 echo "${ECHO_T}$ac_header_compiler" >&6; }
6357
6358 # Is the header present?
6359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <$ac_header>
6368 _ACEOF
6369 if { (ac_try="$ac_cpp conftest.$ac_ext"
6370 case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev/null && {
6382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6383 test ! -s conftest.err
6384 }; then
6385 ac_header_preproc=yes
6386 else
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 ac_header_preproc=no
6391 fi
6392
6393 rm -f conftest.err conftest.$ac_ext
6394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6395 echo "${ECHO_T}$ac_header_preproc" >&6; }
6396
6397 # So? What about this header?
6398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6399 yes:no: )
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6404 ac_header_preproc=yes
6405 ;;
6406 no:yes:* )
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6419 ( cat <<\_ASBOX
6420 ## ---------------------------------- ##
6421 ## Report this to [email protected] ##
6422 ## ---------------------------------- ##
6423 _ASBOX
6424 ) | sed "s/^/$as_me: WARNING: /" >&2
6425 ;;
6426 esac
6427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 eval "$as_ac_Header=\$ac_header_preproc"
6433 fi
6434 ac_res=`eval echo '${'$as_ac_Header'}'`
6435 { echo "$as_me:$LINENO: result: $ac_res" >&5
6436 echo "${ECHO_T}$ac_res" >&6; }
6437
6438 fi
6439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440 cat >>confdefs.h <<_ACEOF
6441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442 _ACEOF
6443
6444 fi
6445
6446 done
6447
6448
6449 for ac_header in SDL/SDL.h
6450 do
6451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 fi
6458 ac_res=`eval echo '${'$as_ac_Header'}'`
6459 { echo "$as_me:$LINENO: result: $ac_res" >&5
6460 echo "${ECHO_T}$ac_res" >&6; }
6461 else
6462 # Is the header compilable?
6463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 $ac_includes_default
6472 #include <$ac_header>
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_header_compiler=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_header_compiler=no
6497 fi
6498
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6501 echo "${ECHO_T}$ac_header_compiler" >&6; }
6502
6503 # Is the header present?
6504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 #include <$ac_header>
6513 _ACEOF
6514 if { (ac_try="$ac_cpp conftest.$ac_ext"
6515 case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518 esac
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } >/dev/null && {
6527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 }; then
6530 ac_header_preproc=yes
6531 else
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_header_preproc=no
6536 fi
6537
6538 rm -f conftest.err conftest.$ac_ext
6539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6540 echo "${ECHO_T}$ac_header_preproc" >&6; }
6541
6542 # So? What about this header?
6543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6544 yes:no: )
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6549 ac_header_preproc=yes
6550 ;;
6551 no:yes:* )
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6564 ( cat <<\_ASBOX
6565 ## ---------------------------------- ##
6566 ## Report this to [email protected] ##
6567 ## ---------------------------------- ##
6568 _ASBOX
6569 ) | sed "s/^/$as_me: WARNING: /" >&2
6570 ;;
6571 esac
6572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 eval "$as_ac_Header=\$ac_header_preproc"
6578 fi
6579 ac_res=`eval echo '${'$as_ac_Header'}'`
6580 { echo "$as_me:$LINENO: result: $ac_res" >&5
6581 echo "${ECHO_T}$ac_res" >&6; }
6582
6583 fi
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6587 _ACEOF
6588
6589 fi
6590
6591 done
6592
6593
6594 for ac_header in SDL/SDL_image.h
6595 do
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 fi
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 else
6607 # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 ac_header_compiler=no
6642 fi
6643
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 echo "${ECHO_T}$ac_header_compiler" >&6; }
6647
6648 # Is the header present?
6649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6658 _ACEOF
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev/null && {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 }; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_header_preproc=no
6681 fi
6682
6683 rm -f conftest.err conftest.$ac_ext
6684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 echo "${ECHO_T}$ac_header_preproc" >&6; }
6686
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 yes:no: )
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc=yes
6695 ;;
6696 no:yes:* )
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6709 ( cat <<\_ASBOX
6710 ## ---------------------------------- ##
6711 ## Report this to [email protected] ##
6712 ## ---------------------------------- ##
6713 _ASBOX
6714 ) | sed "s/^/$as_me: WARNING: /" >&2
6715 ;;
6716 esac
6717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 eval "$as_ac_Header=\$ac_header_preproc"
6723 fi
6724 ac_res=`eval echo '${'$as_ac_Header'}'`
6725 { echo "$as_me:$LINENO: result: $ac_res" >&5
6726 echo "${ECHO_T}$ac_res" >&6; }
6727
6728 fi
6729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6730 cat >>confdefs.h <<_ACEOF
6731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6732 _ACEOF
6733
6734 fi
6735
6736 done
6737
6738
6739 for ac_header in SDL/SDL_mixer.h
6740 do
6741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 fi
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6751 else
6752 # Is the header compilable?
6753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6762 #include <$ac_header>
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_compile") 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } && {
6778 test -z "$ac_c_werror_flag" ||
6779 test ! -s conftest.err
6780 } && test -s conftest.$ac_objext; then
6781 ac_header_compiler=yes
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 ac_header_compiler=no
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6791 echo "${ECHO_T}$ac_header_compiler" >&6; }
6792
6793 # Is the header present?
6794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (ac_try="$ac_cpp conftest.$ac_ext"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 ac_header_preproc=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 ac_header_preproc=no
6826 fi
6827
6828 rm -f conftest.err conftest.$ac_ext
6829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 echo "${ECHO_T}$ac_header_preproc" >&6; }
6831
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6834 yes:no: )
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6839 ac_header_preproc=yes
6840 ;;
6841 no:yes:* )
6842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6854 ( cat <<\_ASBOX
6855 ## ---------------------------------- ##
6856 ## Report this to [email protected] ##
6857 ## ---------------------------------- ##
6858 _ASBOX
6859 ) | sed "s/^/$as_me: WARNING: /" >&2
6860 ;;
6861 esac
6862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 eval "$as_ac_Header=\$ac_header_preproc"
6868 fi
6869 ac_res=`eval echo '${'$as_ac_Header'}'`
6870 { echo "$as_me:$LINENO: result: $ac_res" >&5
6871 echo "${ECHO_T}$ac_res" >&6; }
6872
6873 fi
6874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6875 cat >>confdefs.h <<_ACEOF
6876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6877 _ACEOF
6878
6879 fi
6880
6881 done
6882
6883
6884
6885 # Checks for typedefs, structures, and compiler characteristics.
6886 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6887 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6888 if test "${ac_cv_c_const+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897
6898 int
6899 main ()
6900 {
6901 /* FIXME: Include the comments suggested by Paul. */
6902 #ifndef __cplusplus
6903 /* Ultrix mips cc rejects this. */
6904 typedef int charset[2];
6905 const charset cs;
6906 /* SunOS 4.1.1 cc rejects this. */
6907 char const *const *pcpcc;
6908 char **ppc;
6909 /* NEC SVR4.0.2 mips cc rejects this. */
6910 struct point {int x, y;};
6911 static struct point const zero = {0,0};
6912 /* AIX XL C 1.02.0.0 rejects this.
6913 It does not let you subtract one const X* pointer from another in
6914 an arm of an if-expression whose if-part is not a constant
6915 expression */
6916 const char *g = "string";
6917 pcpcc = &g + (g ? g-g : 0);
6918 /* HPUX 7.0 cc rejects these. */
6919 ++pcpcc;
6920 ppc = (char**) pcpcc;
6921 pcpcc = (char const *const *) ppc;
6922 { /* SCO 3.2v4 cc rejects this. */
6923 char *t;
6924 char const *s = 0 ? (char *) 0 : (char const *) 0;
6925
6926 *t++ = 0;
6927 if (s) return 0;
6928 }
6929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6930 int x[] = {25, 17};
6931 const int *foo = &x[0];
6932 ++foo;
6933 }
6934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6935 typedef const int *iptr;
6936 iptr p = 0;
6937 ++p;
6938 }
6939 { /* AIX XL C 1.02.0.0 rejects this saying
6940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6941 struct s { int j; const int *ap[3]; };
6942 struct s *b; b->j = 5;
6943 }
6944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6945 const int foo = 10;
6946 if (!foo) return 0;
6947 }
6948 return !cs[0] && !zero.x;
6949 #endif
6950
6951 ;
6952 return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_c_const=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ac_cv_c_const=no
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6983 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6984 if test $ac_cv_c_const = no; then
6985
6986 cat >>confdefs.h <<\_ACEOF
6987 #define const
6988 _ACEOF
6989
6990 fi
6991
6992
6993 if test "$GCC" = "yes"; then
6994 CPPFLAGS="-Wall $CPPFLAGS"
6995 fi
6996
6997 # Checks for library functions.
6998
6999 for ac_func in vprintf
7000 do
7001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7015 #define $ac_func innocuous_$ac_func
7016
7017 /* System header to define __stub macros and hopefully few prototypes,
7018 which can conflict with char $ac_func (); below.
7019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7020 <limits.h> exists even on freestanding compilers. */
7021
7022 #ifdef __STDC__
7023 # include <limits.h>
7024 #else
7025 # include <assert.h>
7026 #endif
7027
7028 #undef $ac_func
7029
7030 /* Override any GCC internal prototype to avoid an error.
7031 Use char because int might match the return type of a GCC
7032 builtin and then its argument prototype would still apply. */
7033 #ifdef __cplusplus
7034 extern "C"
7035 #endif
7036 char $ac_func ();
7037 /* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040 #if defined __stub_$ac_func || defined __stub___$ac_func
7041 choke me
7042 #endif
7043
7044 int
7045 main ()
7046 {
7047 return $ac_func ();
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (ac_try="$ac_link"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_link") 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest$ac_exeext &&
7069 $as_test_x conftest$ac_exeext; then
7070 eval "$as_ac_var=yes"
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 eval "$as_ac_var=no"
7076 fi
7077
7078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7079 conftest$ac_exeext conftest.$ac_ext
7080 fi
7081 ac_res=`eval echo '${'$as_ac_var'}'`
7082 { echo "$as_me:$LINENO: result: $ac_res" >&5
7083 echo "${ECHO_T}$ac_res" >&6; }
7084 if test `eval echo '${'$as_ac_var'}'` = yes; then
7085 cat >>confdefs.h <<_ACEOF
7086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7087 _ACEOF
7088
7089 { echo "$as_me:$LINENO: checking for _doprnt" >&5
7090 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
7091 if test "${ac_cv_func__doprnt+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7102 #define _doprnt innocuous__doprnt
7103
7104 /* System header to define __stub macros and hopefully few prototypes,
7105 which can conflict with char _doprnt (); below.
7106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 <limits.h> exists even on freestanding compilers. */
7108
7109 #ifdef __STDC__
7110 # include <limits.h>
7111 #else
7112 # include <assert.h>
7113 #endif
7114
7115 #undef _doprnt
7116
7117 /* Override any GCC internal prototype to avoid an error.
7118 Use char because int might match the return type of a GCC
7119 builtin and then its argument prototype would still apply. */
7120 #ifdef __cplusplus
7121 extern "C"
7122 #endif
7123 char _doprnt ();
7124 /* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
7127 #if defined __stub__doprnt || defined __stub____doprnt
7128 choke me
7129 #endif
7130
7131 int
7132 main ()
7133 {
7134 return _doprnt ();
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (ac_try="$ac_link"
7141 case "(($ac_try" in
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7144 esac
7145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_link") 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest$ac_exeext &&
7156 $as_test_x conftest$ac_exeext; then
7157 ac_cv_func__doprnt=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 ac_cv_func__doprnt=no
7163 fi
7164
7165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7166 conftest$ac_exeext conftest.$ac_ext
7167 fi
7168 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7169 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
7170 if test $ac_cv_func__doprnt = yes; then
7171
7172 cat >>confdefs.h <<\_ACEOF
7173 #define HAVE_DOPRNT 1
7174 _ACEOF
7175
7176 fi
7177
7178 fi
7179 done
7180
7181
7182
7183
7184
7185
7186
7187
7188 for ac_func in atexit floor memset mkdir sqrt strdup
7189 do
7190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7204 #define $ac_func innocuous_$ac_func
7205
7206 /* System header to define __stub macros and hopefully few prototypes,
7207 which can conflict with char $ac_func (); below.
7208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7209 <limits.h> exists even on freestanding compilers. */
7210
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216
7217 #undef $ac_func
7218
7219 /* Override any GCC internal prototype to avoid an error.
7220 Use char because int might match the return type of a GCC
7221 builtin and then its argument prototype would still apply. */
7222 #ifdef __cplusplus
7223 extern "C"
7224 #endif
7225 char $ac_func ();
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined __stub_$ac_func || defined __stub___$ac_func
7230 choke me
7231 #endif
7232
7233 int
7234 main ()
7235 {
7236 return $ac_func ();
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest$ac_exeext &&
7258 $as_test_x conftest$ac_exeext; then
7259 eval "$as_ac_var=yes"
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 eval "$as_ac_var=no"
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7268 conftest$ac_exeext conftest.$ac_ext
7269 fi
7270 ac_res=`eval echo '${'$as_ac_var'}'`
7271 { echo "$as_me:$LINENO: result: $ac_res" >&5
7272 echo "${ECHO_T}$ac_res" >&6; }
7273 if test `eval echo '${'$as_ac_var'}'` = yes; then
7274 cat >>confdefs.h <<_ACEOF
7275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7276 _ACEOF
7277
7278 fi
7279 done
7280
7281
7282 if test "x${datadir}" = 'x${prefix}/share' || test "x${datadir}" = 'x${datarootdir}'; then
7283 if test "x${prefix}" = "xNONE"; then
7284 runtime_datadir="${ac_default_prefix}/share"
7285 else
7286 runtime_datadir="${prefix}/share"
7287 fi
7288 else
7289 runtime_datadir="${datadir}"
7290 fi
7291
7292 #Package hackage. Ask autoconf team to include --gamedir as standard option?
7293
7294 # Check whether --with-games-dir was given.
7295 if test "${with_games_dir+set}" = set; then
7296 withval=$with_games_dir;
7297 else
7298 with_games_dir="${runtime_datadir}/games"
7299
7300 fi
7301
7302 datadir="${with_games_dir}"
7303
7304
7305 cat >>confdefs.h <<_ACEOF
7306 #define GAMEDATADIR "${datadir}/$PACKAGE_NAME"
7307 _ACEOF
7308
7309
7310
7311 #These should be automagically determined somehow.
7312 #CPU Instruction Set. Should be automagic.
7313 CPU_IS=`uname -m`
7314
7315
7316
7317 echo $ac_n "ordering crap from http://www.amazon.com/gp/registry/296ST2NHEBO0Z" 1>&6
•7318 #sleep 1
7319 #echo $ac_n ".$ac_c" 1>&6
7320 #sleep 1
7321 #echo $ac_n ".$ac_c" 1>&6
7322 #sleep 1
7323 #echo $ac_n ".$ac_c" 1>&6
7324 #sleep 1
7325 #echo $ac_n ".$ac_c" 1>&6
7326 #sleep 1
7327 { echo "$as_me:$LINENO: result: complete!" >&5
7328 echo "${ECHO_T} complete!" >&6; }
7329
•7330 ac_config_files="$ac_config_files Makefile src/Makefile bin/Makefile"
7331
7332 cat >confcache <<\_ACEOF
7333 # This file is a shell script that caches the results of configure
7334 # tests run on this system so they can be shared between configure
7335 # scripts and configure runs, see configure's option --config-cache.
7336 # It is not useful on other systems. If it contains results you don't
7337 # want to keep, you may remove or edit it.
7338 #
7339 # config.status only pays attention to the cache file if you give it
7340 # the --recheck option to rerun configure.
7341 #
7342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7344 # following values.
7345
7346 _ACEOF
7347
7348 # The following way of writing the cache mishandles newlines in values,
7349 # but we know of no workaround that is simple, portable, and efficient.
7350 # So, we kill variables containing newlines.
7351 # Ultrix sh set writes to stderr and can't be redirected directly,
7352 # and sets the high bit in the cache file unless we assign to the vars.
7353 (
7354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7355 eval ac_val=\$$ac_var
7356 case $ac_val in #(
7357 *${as_nl}*)
7358 case $ac_var in #(
7359 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7361 esac
7362 case $ac_var in #(
7363 _ | IFS | as_nl) ;; #(
7364 *) $as_unset $ac_var ;;
7365 esac ;;
7366 esac
7367 done
7368
7369 (set) 2>&1 |
7370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7371 *${as_nl}ac_space=\ *)
7372 # `set' does not quote correctly, so add quotes (double-quote
7373 # substitution turns \\\\ into \\, and sed turns \\ into \).
7374 sed -n \
7375 "s/'/'\\\\''/g;
7376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7377 ;; #(
7378 *)
7379 # `set' quotes correctly as required by POSIX, so do not add quotes.
7380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7381 ;;
7382 esac |
7383 sort
7384 ) |
7385 sed '
7386 /^ac_cv_env_/b end
7387 t clear
7388 :clear
7389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7390 t end
7391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7392 :end' >>confcache
7393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7394 if test -w "$cache_file"; then
7395 test "x$cache_file" != "x/dev/null" &&
7396 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7397 echo "$as_me: updating cache $cache_file" >&6;}
7398 cat confcache >$cache_file
7399 else
7400 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7402 fi
7403 fi
7404 rm -f confcache
7405
7406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7407 # Let make expand exec_prefix.
7408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7409
7410 DEFS=-DHAVE_CONFIG_H
7411
7412 ac_libobjs=
7413 ac_ltlibobjs=
7414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7415 # 1. Remove the extension, and $U if already installed.
7416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7417 ac_i=`echo "$ac_i" | sed "$ac_script"`
7418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7419 # will be set to the directory where LIBOBJS objects are built.
7420 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7421 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7422 done
7423 LIBOBJS=$ac_libobjs
7424
7425 LTLIBOBJS=$ac_ltlibobjs
7426
7427
7428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7429 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7430 Usually this means the macro was only invoked conditionally." >&5
7431 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7432 Usually this means the macro was only invoked conditionally." >&2;}
7433 { (exit 1); exit 1; }; }
7434 fi
7435 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7436 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7437 Usually this means the macro was only invoked conditionally." >&5
7438 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7439 Usually this means the macro was only invoked conditionally." >&2;}
7440 { (exit 1); exit 1; }; }
7441 fi
7442 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7443 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7444 Usually this means the macro was only invoked conditionally." >&5
7445 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7446 Usually this means the macro was only invoked conditionally." >&2;}
7447 { (exit 1); exit 1; }; }
7448 fi
7449
7450 : ${CONFIG_STATUS=./config.status}
7451 ac_clean_files_save=$ac_clean_files
7452 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7453 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7454 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7455 cat >$CONFIG_STATUS <<_ACEOF
7456 #! $SHELL
7457 # Generated by $as_me.
7458 # Run this file to recreate the current configuration.
7459 # Compiler output produced by configure, useful for debugging
7460 # configure, is in config.log if it exists.
7461
7462 debug=false
7463 ac_cs_recheck=false
7464 ac_cs_silent=false
7465 SHELL=\${CONFIG_SHELL-$SHELL}
7466 _ACEOF
7467
7468 cat >>$CONFIG_STATUS <<\_ACEOF
7469 ## --------------------- ##
7470 ## M4sh Initialization. ##
7471 ## --------------------- ##
7472
7473 # Be more Bourne compatible
7474 DUALCASE=1; export DUALCASE # for MKS sh
7475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7476 emulate sh
7477 NULLCMD=:
7478 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7479 # is contrary to our usage. Disable this feature.
7480 alias -g '${1+"$@"}'='"$@"'
7481 setopt NO_GLOB_SUBST
7482 else
7483 case `(set -o) 2>/dev/null` in
7484 *posix*) set -o posix ;;
7485 esac
7486
7487 fi
7488
7489
7490
7491
7492 # PATH needs CR
7493 # Avoid depending upon Character Ranges.
7494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7497 as_cr_digits='0123456789'
7498 as_cr_alnum=$as_cr_Letters$as_cr_digits
7499
7500 # The user is always right.
7501 if test "${PATH_SEPARATOR+set}" != set; then
7502 echo "#! /bin/sh" >conf$$.sh
7503 echo "exit 0" >>conf$$.sh
7504 chmod +x conf$$.sh
7505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7506 PATH_SEPARATOR=';'
7507 else
7508 PATH_SEPARATOR=:
7509 fi
7510 rm -f conf$$.sh
7511 fi
7512
7513 # Support unset when possible.
7514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7515 as_unset=unset
7516 else
7517 as_unset=false
7518 fi
7519
7520
7521 # IFS
7522 # We need space, tab and new line, in precisely that order. Quoting is
7523 # there to prevent editors from complaining about space-tab.
7524 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7525 # splitting by setting IFS to empty value.)
7526 as_nl='
7527 '
7528 IFS=" "" $as_nl"
7529
7530 # Find who we are. Look in the path if we contain no directory separator.
7531 case $0 in
7532 *[\\/]* ) as_myself=$0 ;;
7533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7539 done
7540 IFS=$as_save_IFS
7541
7542 ;;
7543 esac
7544 # We did not find ourselves, most probably we were run as `sh COMMAND'
7545 # in which case we are not to be found in the path.
7546 if test "x$as_myself" = x; then
7547 as_myself=$0
7548 fi
7549 if test ! -f "$as_myself"; then
7550 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7551 { (exit 1); exit 1; }
7552 fi
7553
7554 # Work around bugs in pre-3.0 UWIN ksh.
7555 for as_var in ENV MAIL MAILPATH
7556 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7557 done
7558 PS1='$ '
7559 PS2='> '
7560 PS4='+ '
7561
7562 # NLS nuisances.
7563 for as_var in \
7564 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7565 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7566 LC_TELEPHONE LC_TIME
7567 do
7568 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7569 eval $as_var=C; export $as_var
7570 else
7571 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7572 fi
7573 done
7574
7575 # Required to use basename.
7576 if expr a : '\(a\)' >/dev/null 2>&1 &&
7577 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7578 as_expr=expr
7579 else
7580 as_expr=false
7581 fi
7582
7583 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7584 as_basename=basename
7585 else
7586 as_basename=false
7587 fi
7588
7589
7590 # Name of the executable.
7591 as_me=`$as_basename -- "$0" ||
7592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7593 X"$0" : 'X\(//\)$' \| \
7594 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7595 echo X/"$0" |
7596 sed '/^.*\/\([^/][^/]*\)\/*$/{
7597 s//\1/
7598 q
7599 }
7600 /^X\/\(\/\/\)$/{
7601 s//\1/
7602 q
7603 }
7604 /^X\/\(\/\).*/{
7605 s//\1/
7606 q
7607 }
7608 s/.*/./; q'`
7609
7610 # CDPATH.
7611 $as_unset CDPATH
7612
7613
7614
7615 as_lineno_1=$LINENO
7616 as_lineno_2=$LINENO
7617 test "x$as_lineno_1" != "x$as_lineno_2" &&
7618 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7619
7620 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7621 # uniformly replaced by the line number. The first 'sed' inserts a
7622 # line-number line after each line using $LINENO; the second 'sed'
7623 # does the real work. The second script uses 'N' to pair each
7624 # line-number line with the line containing $LINENO, and appends
7625 # trailing '-' during substitution so that $LINENO is not a special
7626 # case at line end.
7627 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7628 # scripts with optimization help from Paolo Bonzini. Blame Lee
7629 # E. McMahon (1931-1989) for sed's syntax. :-)
7630 sed -n '
7631 p
7632 /[$]LINENO/=
7633 ' <$as_myself |
7634 sed '
7635 s/[$]LINENO.*/&-/
7636 t lineno
7637 b
7638 :lineno
7639 N
7640 :loop
7641 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7642 t loop
7643 s/-\n.*//
7644 ' >$as_me.lineno &&
7645 chmod +x "$as_me.lineno" ||
7646 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7647 { (exit 1); exit 1; }; }
7648
7649 # Don't try to exec as it changes $[0], causing all sort of problems
7650 # (the dirname of $[0] is not the place where we might find the
7651 # original and so on. Autoconf is especially sensitive to this).
7652 . "./$as_me.lineno"
7653 # Exit status is that of the last command.
7654 exit
7655 }
7656
7657
7658 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7659 as_dirname=dirname
7660 else
7661 as_dirname=false
7662 fi
7663
7664 ECHO_C= ECHO_N= ECHO_T=
7665 case `echo -n x` in
7666 -n*)
7667 case `echo 'x\c'` in
7668 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7669 *) ECHO_C='\c';;
7670 esac;;
7671 *)
7672 ECHO_N='-n';;
7673 esac
7674
7675 if expr a : '\(a\)' >/dev/null 2>&1 &&
7676 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7677 as_expr=expr
7678 else
7679 as_expr=false
7680 fi
7681
7682 rm -f conf$$ conf$$.exe conf$$.file
7683 if test -d conf$$.dir; then
7684 rm -f conf$$.dir/conf$$.file
7685 else
7686 rm -f conf$$.dir
7687 mkdir conf$$.dir
7688 fi
7689 echo >conf$$.file
7690 if ln -s conf$$.file conf$$ 2>/dev/null; then
7691 as_ln_s='ln -s'
7692 # ... but there are two gotchas:
7693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7695 # In both cases, we have to default to `cp -p'.
7696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7697 as_ln_s='cp -p'
7698 elif ln conf$$.file conf$$ 2>/dev/null; then
7699 as_ln_s=ln
7700 else
7701 as_ln_s='cp -p'
7702 fi
7703 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7704 rmdir conf$$.dir 2>/dev/null
7705
7706 if mkdir -p . 2>/dev/null; then
7707 as_mkdir_p=:
7708 else
7709 test -d ./-p && rmdir ./-p
7710 as_mkdir_p=false
7711 fi
7712
7713 if test -x / >/dev/null 2>&1; then
7714 as_test_x='test -x'
7715 else
7716 if ls -dL / >/dev/null 2>&1; then
7717 as_ls_L_option=L
7718 else
7719 as_ls_L_option=
7720 fi
7721 as_test_x='
7722 eval sh -c '\''
7723 if test -d "$1"; then
7724 test -d "$1/.";
7725 else
7726 case $1 in
7727 -*)set "./$1";;
7728 esac;
7729 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7730 ???[sx]*):;;*)false;;esac;fi
7731 '\'' sh
7732 '
7733 fi
7734 as_executable_p=$as_test_x
7735
7736 # Sed expression to map a string onto a valid CPP name.
7737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7738
7739 # Sed expression to map a string onto a valid variable name.
7740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7741
7742
7743 exec 6>&1
7744
7745 # Save the log message, to keep $[0] and so on meaningful, and to
7746 # report actual input values of CONFIG_FILES etc. instead of their
7747 # values after options handling.
7748 ac_log="
7749 This file was extended by orbital_eunuchs_sniper $as_me 1.30, which was
7750 generated by GNU Autoconf 2.61. Invocation command line was
7751
7752 CONFIG_FILES = $CONFIG_FILES
7753 CONFIG_HEADERS = $CONFIG_HEADERS
7754 CONFIG_LINKS = $CONFIG_LINKS
7755 CONFIG_COMMANDS = $CONFIG_COMMANDS
7756 $ $0 $@
7757
7758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7759 "
7760
7761 _ACEOF
7762
7763 cat >>$CONFIG_STATUS <<_ACEOF
7764 # Files that config.status was made for.
7765 config_files="$ac_config_files"
7766 config_headers="$ac_config_headers"
7767 config_commands="$ac_config_commands"
7768
7769 _ACEOF
7770
7771 cat >>$CONFIG_STATUS <<\_ACEOF
7772 ac_cs_usage="\
7773 \`$as_me' instantiates files from templates according to the
7774 current configuration.
7775
7776 Usage: $0 [OPTIONS] [FILE]...
7777
7778 -h, --help print this help, then exit
7779 -V, --version print version number and configuration settings, then exit
7780 -q, --quiet do not print progress messages
7781 -d, --debug don't remove temporary files
7782 --recheck update $as_me by reconfiguring in the same conditions
7783 --file=FILE[:TEMPLATE]
7784 instantiate the configuration file FILE
7785 --header=FILE[:TEMPLATE]
7786 instantiate the configuration header FILE
7787
7788 Configuration files:
7789 $config_files
7790
7791 Configuration headers:
7792 $config_headers
7793
7794 Configuration commands:
7795 $config_commands
7796
7797 Report bugs to <[email protected]>."
7798
7799 _ACEOF
7800 cat >>$CONFIG_STATUS <<_ACEOF
7801 ac_cs_version="\\
7802 orbital_eunuchs_sniper config.status 1.30
7803 configured by $0, generated by GNU Autoconf 2.61,
7804 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7805
7806 Copyright (C) 2006 Free Software Foundation, Inc.
7807 This config.status script is free software; the Free Software Foundation
7808 gives unlimited permission to copy, distribute and modify it."
7809
7810 ac_pwd='$ac_pwd'
7811 srcdir='$srcdir'
7812 INSTALL='$INSTALL'
7813 MKDIR_P='$MKDIR_P'
7814 _ACEOF
7815
7816 cat >>$CONFIG_STATUS <<\_ACEOF
7817 # If no file are specified by the user, then we need to provide default
7818 # value. By we need to know if files were specified by the user.
7819 ac_need_defaults=:
7820 while test $# != 0
7821 do
7822 case $1 in
7823 --*=*)
7824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7826 ac_shift=:
7827 ;;
7828 *)
7829 ac_option=$1
7830 ac_optarg=$2
7831 ac_shift=shift
7832 ;;
7833 esac
7834
7835 case $ac_option in
7836 # Handling of the options.
7837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7838 ac_cs_recheck=: ;;
7839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7840 echo "$ac_cs_version"; exit ;;
7841 --debug | --debu | --deb | --de | --d | -d )
7842 debug=: ;;
7843 --file | --fil | --fi | --f )
7844 $ac_shift
7845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7846 ac_need_defaults=false;;
7847 --header | --heade | --head | --hea )
7848 $ac_shift
7849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7850 ac_need_defaults=false;;
7851 --he | --h)
7852 # Conflict between --help and --header
7853 { echo "$as_me: error: ambiguous option: $1
7854 Try \`$0 --help' for more information." >&2
7855 { (exit 1); exit 1; }; };;
7856 --help | --hel | -h )
7857 echo "$ac_cs_usage"; exit ;;
7858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7860 ac_cs_silent=: ;;
7861
7862 # This is an error.
7863 -*) { echo "$as_me: error: unrecognized option: $1
7864 Try \`$0 --help' for more information." >&2
7865 { (exit 1); exit 1; }; } ;;
7866
7867 *) ac_config_targets="$ac_config_targets $1"
7868 ac_need_defaults=false ;;
7869
7870 esac
7871 shift
7872 done
7873
7874 ac_configure_extra_args=
7875
7876 if $ac_cs_silent; then
7877 exec 6>/dev/null
7878 ac_configure_extra_args="$ac_configure_extra_args --silent"
7879 fi
7880
7881 _ACEOF
7882 cat >>$CONFIG_STATUS <<_ACEOF
7883 if \$ac_cs_recheck; then
7884 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7885 CONFIG_SHELL=$SHELL
7886 export CONFIG_SHELL
7887 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7888 fi
7889
7890 _ACEOF
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7892 exec 5>>config.log
7893 {
7894 echo
7895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7896 ## Running $as_me. ##
7897 _ASBOX
7898 echo "$ac_log"
7899 } >&5
7900
7901 _ACEOF
7902 cat >>$CONFIG_STATUS <<_ACEOF
7903 #
7904 # INIT-COMMANDS
7905 #
7906 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7907
7908 _ACEOF
7909
7910 cat >>$CONFIG_STATUS <<\_ACEOF
7911
7912 # Handling of arguments.
7913 for ac_config_target in $ac_config_targets
7914 do
7915 case $ac_config_target in
7916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7919 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7920 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
7921
7922 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7923 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7924 { (exit 1); exit 1; }; };;
7925 esac
7926 done
7927
7928
7929 # If the user did not use the arguments to specify the items to instantiate,
7930 # then the envvar interface is used. Set only those that are not.
7931 # We use the long form for the default assignment because of an extremely
7932 # bizarre bug on SunOS 4.1.3.
7933 if $ac_need_defaults; then
7934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7937 fi
7938
7939 # Have a temporary directory for convenience. Make it in the build tree
7940 # simply because there is no reason against having it here, and in addition,
7941 # creating and moving files from /tmp can sometimes cause problems.
7942 # Hook for its removal unless debugging.
7943 # Note that there is a small window in which the directory will not be cleaned:
7944 # after its creation but before its name has been assigned to `$tmp'.
7945 $debug ||
7946 {
7947 tmp=
7948 trap 'exit_status=$?
7949 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7950 ' 0
7951 trap '{ (exit 1); exit 1; }' 1 2 13 15
7952 }
7953 # Create a (secure) tmp directory for tmp files.
7954
7955 {
7956 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7957 test -n "$tmp" && test -d "$tmp"
7958 } ||
7959 {
7960 tmp=./conf$$-$RANDOM
7961 (umask 077 && mkdir "$tmp")
7962 } ||
7963 {
7964 echo "$me: cannot create a temporary directory in ." >&2
7965 { (exit 1); exit 1; }
7966 }
7967
7968 #
7969 # Set up the sed scripts for CONFIG_FILES section.
7970 #
7971
7972 # No need to generate the scripts if there are no CONFIG_FILES.
7973 # This happens for instance when ./config.status config.h
7974 if test -n "$CONFIG_FILES"; then
7975
7976 _ACEOF
7977
7978
7979
7980 ac_delim='%!_!# '
7981 for ac_last_try in false false false false false :; do
7982 cat >conf$$subs.sed <<_ACEOF
7983 SHELL!$SHELL$ac_delim
7984 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7985 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7986 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7987 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7988 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7989 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7990 exec_prefix!$exec_prefix$ac_delim
7991 prefix!$prefix$ac_delim
7992 program_transform_name!$program_transform_name$ac_delim
7993 bindir!$bindir$ac_delim
7994 sbindir!$sbindir$ac_delim
7995 libexecdir!$libexecdir$ac_delim
7996 datarootdir!$datarootdir$ac_delim
7997 datadir!$datadir$ac_delim
7998 sysconfdir!$sysconfdir$ac_delim
7999 sharedstatedir!$sharedstatedir$ac_delim
8000 localstatedir!$localstatedir$ac_delim
8001 includedir!$includedir$ac_delim
8002 oldincludedir!$oldincludedir$ac_delim
8003 docdir!$docdir$ac_delim
8004 infodir!$infodir$ac_delim
8005 htmldir!$htmldir$ac_delim
8006 dvidir!$dvidir$ac_delim
8007 pdfdir!$pdfdir$ac_delim
8008 psdir!$psdir$ac_delim
8009 libdir!$libdir$ac_delim
8010 localedir!$localedir$ac_delim
8011 mandir!$mandir$ac_delim
8012 DEFS!$DEFS$ac_delim
8013 ECHO_C!$ECHO_C$ac_delim
8014 ECHO_N!$ECHO_N$ac_delim
8015 ECHO_T!$ECHO_T$ac_delim
8016 LIBS!$LIBS$ac_delim
8017 build_alias!$build_alias$ac_delim
8018 host_alias!$host_alias$ac_delim
8019 target_alias!$target_alias$ac_delim
8020 build!$build$ac_delim
8021 build_cpu!$build_cpu$ac_delim
8022 build_vendor!$build_vendor$ac_delim
8023 build_os!$build_os$ac_delim
8024 host!$host$ac_delim
8025 host_cpu!$host_cpu$ac_delim
8026 host_vendor!$host_vendor$ac_delim
8027 host_os!$host_os$ac_delim
8028 target!$target$ac_delim
8029 target_cpu!$target_cpu$ac_delim
8030 target_vendor!$target_vendor$ac_delim
8031 target_os!$target_os$ac_delim
8032 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8033 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8034 INSTALL_DATA!$INSTALL_DATA$ac_delim
8035 am__isrc!$am__isrc$ac_delim
8036 CYGPATH_W!$CYGPATH_W$ac_delim
8037 PACKAGE!$PACKAGE$ac_delim
8038 VERSION!$VERSION$ac_delim
8039 ACLOCAL!$ACLOCAL$ac_delim
8040 AUTOCONF!$AUTOCONF$ac_delim
8041 AUTOMAKE!$AUTOMAKE$ac_delim
8042 AUTOHEADER!$AUTOHEADER$ac_delim
8043 MAKEINFO!$MAKEINFO$ac_delim
8044 install_sh!$install_sh$ac_delim
8045 STRIP!$STRIP$ac_delim
8046 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8047 mkdir_p!$mkdir_p$ac_delim
8048 AWK!$AWK$ac_delim
8049 SET_MAKE!$SET_MAKE$ac_delim
8050 am__leading_dot!$am__leading_dot$ac_delim
8051 AMTAR!$AMTAR$ac_delim
8052 am__tar!$am__tar$ac_delim
8053 am__untar!$am__untar$ac_delim
8054 CXX!$CXX$ac_delim
8055 CXXFLAGS!$CXXFLAGS$ac_delim
8056 LDFLAGS!$LDFLAGS$ac_delim
8057 CPPFLAGS!$CPPFLAGS$ac_delim
8058 ac_ct_CXX!$ac_ct_CXX$ac_delim
8059 EXEEXT!$EXEEXT$ac_delim
8060 OBJEXT!$OBJEXT$ac_delim
8061 DEPDIR!$DEPDIR$ac_delim
8062 am__include!$am__include$ac_delim
8063 am__quote!$am__quote$ac_delim
8064 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8065 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8066 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8067 CXXDEPMODE!$CXXDEPMODE$ac_delim
8068 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
8069 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
8070 CC!$CC$ac_delim
8071 CFLAGS!$CFLAGS$ac_delim
8072 ac_ct_CC!$ac_ct_CC$ac_delim
8073 CCDEPMODE!$CCDEPMODE$ac_delim
8074 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8075 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8076 LN_S!$LN_S$ac_delim
8077 XMKMF!$XMKMF$ac_delim
8078 CPP!$CPP$ac_delim
8079 X_CFLAGS!$X_CFLAGS$ac_delim
8080 _ACEOF
8081
8082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8083 break
8084 elif $ac_last_try; then
8085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8086 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8087 { (exit 1); exit 1; }; }
8088 else
8089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8090 fi
8091 done
8092
8093 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8094 if test -n "$ac_eof"; then
8095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8096 ac_eof=`expr $ac_eof + 1`
8097 fi
8098
8099 cat >>$CONFIG_STATUS <<_ACEOF
8100 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8102 _ACEOF
8103 sed '
8104 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8105 s/^/s,@/; s/!/@,|#_!!_#|/
8106 :n
8107 t n
8108 s/'"$ac_delim"'$/,g/; t
8109 s/$/\\/; p
8110 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8111 ' >>$CONFIG_STATUS <conf$$subs.sed
8112 rm -f conf$$subs.sed
8113 cat >>$CONFIG_STATUS <<_ACEOF
8114 CEOF$ac_eof
8115 _ACEOF
8116
8117
8118 ac_delim='%!_!# '
8119 for ac_last_try in false false false false false :; do
8120 cat >conf$$subs.sed <<_ACEOF
8121 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
8122 X_LIBS!$X_LIBS$ac_delim
8123 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
8124 GREP!$GREP$ac_delim
8125 EGREP!$EGREP$ac_delim
8126 CPU_IS!$CPU_IS$ac_delim
8127 LIBOBJS!$LIBOBJS$ac_delim
8128 LTLIBOBJS!$LTLIBOBJS$ac_delim
8129 _ACEOF
8130
8131 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
8132 break
8133 elif $ac_last_try; then
8134 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8135 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8136 { (exit 1); exit 1; }; }
8137 else
8138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8139 fi
8140 done
8141
8142 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8143 if test -n "$ac_eof"; then
8144 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8145 ac_eof=`expr $ac_eof + 1`
8146 fi
8147
8148 cat >>$CONFIG_STATUS <<_ACEOF
8149 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8151 _ACEOF
8152 sed '
8153 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8154 s/^/s,@/; s/!/@,|#_!!_#|/
8155 :n
8156 t n
8157 s/'"$ac_delim"'$/,g/; t
8158 s/$/\\/; p
8159 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8160 ' >>$CONFIG_STATUS <conf$$subs.sed
8161 rm -f conf$$subs.sed
8162 cat >>$CONFIG_STATUS <<_ACEOF
8163 :end
8164 s/|#_!!_#|//g
8165 CEOF$ac_eof
8166 _ACEOF
8167
8168
8169 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8170 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8171 # trailing colons and then remove the whole line if VPATH becomes empty
8172 # (actually we leave an empty line to preserve line numbers).
8173 if test "x$srcdir" = x.; then
8174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8175 s/:*\$(srcdir):*/:/
8176 s/:*\${srcdir}:*/:/
8177 s/:*@srcdir@:*/:/
8178 s/^\([^=]*=[ ]*\):*/\1/
8179 s/:*$//
8180 s/^[^=]*=[ ]*$//
8181 }'
8182 fi
8183
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 fi # test -n "$CONFIG_FILES"
8186
8187
8188 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8189 do
8190 case $ac_tag in
8191 :[FHLC]) ac_mode=$ac_tag; continue;;
8192 esac
8193 case $ac_mode$ac_tag in
8194 :[FHL]*:*);;
8195 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8196 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8197 { (exit 1); exit 1; }; };;
8198 :[FH]-) ac_tag=-:-;;
8199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8200 esac
8201 ac_save_IFS=$IFS
8202 IFS=:
8203 set x $ac_tag
8204 IFS=$ac_save_IFS
8205 shift
8206 ac_file=$1
8207 shift
8208
8209 case $ac_mode in
8210 :L) ac_source=$1;;
8211 :[FH])
8212 ac_file_inputs=
8213 for ac_f
8214 do
8215 case $ac_f in
8216 -) ac_f="$tmp/stdin";;
8217 *) # Look for the file first in the build tree, then in the source tree
8218 # (if the path is not absolute). The absolute path cannot be DOS-style,
8219 # because $ac_f cannot contain `:'.
8220 test -f "$ac_f" ||
8221 case $ac_f in
8222 [\\/$]*) false;;
8223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8224 esac ||
8225 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8226 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8227 { (exit 1); exit 1; }; };;
8228 esac
8229 ac_file_inputs="$ac_file_inputs $ac_f"
8230 done
8231
8232 # Let's still pretend it is `configure' which instantiates (i.e., don't
8233 # use $as_me), people would be surprised to read:
8234 # /* config.h. Generated by config.status. */
8235 configure_input="Generated from "`IFS=:
8236 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8237 if test x"$ac_file" != x-; then
8238 configure_input="$ac_file. $configure_input"
8239 { echo "$as_me:$LINENO: creating $ac_file" >&5
8240 echo "$as_me: creating $ac_file" >&6;}
8241 fi
8242
8243 case $ac_tag in
8244 *:-:* | *:-) cat >"$tmp/stdin";;
8245 esac
8246 ;;
8247 esac
8248
8249 ac_dir=`$as_dirname -- "$ac_file" ||
8250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8251 X"$ac_file" : 'X\(//\)[^/]' \| \
8252 X"$ac_file" : 'X\(//\)$' \| \
8253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8254 echo X"$ac_file" |
8255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8256 s//\1/
8257 q
8258 }
8259 /^X\(\/\/\)[^/].*/{
8260 s//\1/
8261 q
8262 }
8263 /^X\(\/\/\)$/{
8264 s//\1/
8265 q
8266 }
8267 /^X\(\/\).*/{
8268 s//\1/
8269 q
8270 }
8271 s/.*/./; q'`
8272 { as_dir="$ac_dir"
8273 case $as_dir in #(
8274 -*) as_dir=./$as_dir;;
8275 esac
8276 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8277 as_dirs=
8278 while :; do
8279 case $as_dir in #(
8280 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8281 *) as_qdir=$as_dir;;
8282 esac
8283 as_dirs="'$as_qdir' $as_dirs"
8284 as_dir=`$as_dirname -- "$as_dir" ||
8285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8286 X"$as_dir" : 'X\(//\)[^/]' \| \
8287 X"$as_dir" : 'X\(//\)$' \| \
8288 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8289 echo X"$as_dir" |
8290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8291 s//\1/
8292 q
8293 }
8294 /^X\(\/\/\)[^/].*/{
8295 s//\1/
8296 q
8297 }
8298 /^X\(\/\/\)$/{
8299 s//\1/
8300 q
8301 }
8302 /^X\(\/\).*/{
8303 s//\1/
8304 q
8305 }
8306 s/.*/./; q'`
8307 test -d "$as_dir" && break
8308 done
8309 test -z "$as_dirs" || eval "mkdir $as_dirs"
8310 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8311 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8312 { (exit 1); exit 1; }; }; }
8313 ac_builddir=.
8314
8315 case "$ac_dir" in
8316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8317 *)
8318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8319 # A ".." for each directory in $ac_dir_suffix.
8320 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8321 case $ac_top_builddir_sub in
8322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8324 esac ;;
8325 esac
8326 ac_abs_top_builddir=$ac_pwd
8327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8328 # for backward compatibility:
8329 ac_top_builddir=$ac_top_build_prefix
8330
8331 case $srcdir in
8332 .) # We are building in place.
8333 ac_srcdir=.
8334 ac_top_srcdir=$ac_top_builddir_sub
8335 ac_abs_top_srcdir=$ac_pwd ;;
8336 [\\/]* | ?:[\\/]* ) # Absolute name.
8337 ac_srcdir=$srcdir$ac_dir_suffix;
8338 ac_top_srcdir=$srcdir
8339 ac_abs_top_srcdir=$srcdir ;;
8340 *) # Relative name.
8341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8342 ac_top_srcdir=$ac_top_build_prefix$srcdir
8343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8344 esac
8345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8346
8347
8348 case $ac_mode in
8349 :F)
8350 #
8351 # CONFIG_FILE
8352 #
8353
8354 case $INSTALL in
8355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8357 esac
8358 ac_MKDIR_P=$MKDIR_P
8359 case $MKDIR_P in
8360 [\\/$]* | ?:[\\/]* ) ;;
8361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8362 esac
8363 _ACEOF
8364
8365 cat >>$CONFIG_STATUS <<\_ACEOF
8366 # If the template does not know about datarootdir, expand it.
8367 # FIXME: This hack should be removed a few years after 2.60.
8368 ac_datarootdir_hack=; ac_datarootdir_seen=
8369
8370 case `sed -n '/datarootdir/ {
8371 p
8372 q
8373 }
8374 /@datadir@/p
8375 /@docdir@/p
8376 /@infodir@/p
8377 /@localedir@/p
8378 /@mandir@/p
8379 ' $ac_file_inputs` in
8380 *datarootdir*) ac_datarootdir_seen=yes;;
8381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8382 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8383 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8384 _ACEOF
8385 cat >>$CONFIG_STATUS <<_ACEOF
8386 ac_datarootdir_hack='
8387 s&@datadir@&$datadir&g
8388 s&@docdir@&$docdir&g
8389 s&@infodir@&$infodir&g
8390 s&@localedir@&$localedir&g
8391 s&@mandir@&$mandir&g
8392 s&\\\${datarootdir}&$datarootdir&g' ;;
8393 esac
8394 _ACEOF
8395
8396 # Neutralize VPATH when `$srcdir' = `.'.
8397 # Shell code in configure.ac might set extrasub.
8398 # FIXME: do we really want to maintain this feature?
8399 cat >>$CONFIG_STATUS <<_ACEOF
8400 sed "$ac_vpsub
8401 $extrasub
8402 _ACEOF
8403 cat >>$CONFIG_STATUS <<\_ACEOF
8404 :t
8405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8406 s&@configure_input@&$configure_input&;t t
8407 s&@top_builddir@&$ac_top_builddir_sub&;t t
8408 s&@srcdir@&$ac_srcdir&;t t
8409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8410 s&@top_srcdir@&$ac_top_srcdir&;t t
8411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8412 s&@builddir@&$ac_builddir&;t t
8413 s&@abs_builddir@&$ac_abs_builddir&;t t
8414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8415 s&@INSTALL@&$ac_INSTALL&;t t
8416 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8417 $ac_datarootdir_hack
8418 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8419
8420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8421 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8423 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8424 which seems to be undefined. Please make sure it is defined." >&5
8425 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8426 which seems to be undefined. Please make sure it is defined." >&2;}
8427
8428 rm -f "$tmp/stdin"
8429 case $ac_file in
8430 -) cat "$tmp/out"; rm -f "$tmp/out";;
8431 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8432 esac
8433 ;;
8434 :H)
8435 #
8436 # CONFIG_HEADER
8437 #
8438 _ACEOF
8439
8440 # Transform confdefs.h into a sed script `conftest.defines', that
8441 # substitutes the proper values into config.h.in to produce config.h.
8442 rm -f conftest.defines conftest.tail
8443 # First, append a space to every undef/define line, to ease matching.
8444 echo 's/$/ /' >conftest.defines
8445 # Then, protect against being on the right side of a sed subst, or in
8446 # an unquoted here document, in config.status. If some macros were
8447 # called several times there might be several #defines for the same
8448 # symbol, which is useless. But do not sort them, since the last
8449 # AC_DEFINE must be honored.
8450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8451 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8452 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8453 # PARAMS is the parameter list in the macro definition--in most cases, it's
8454 # just an empty string.
8455 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8456 ac_dB='\\)[ (].*,\\1define\\2'
8457 ac_dC=' '
8458 ac_dD=' ,'
8459
8460 uniq confdefs.h |
8461 sed -n '
8462 t rset
8463 :rset
8464 s/^[ ]*#[ ]*define[ ][ ]*//
8465 t ok
8466 d
8467 :ok
8468 s/[\\&,]/\\&/g
8469 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8470 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8471 ' >>conftest.defines
8472
8473 # Remove the space that was appended to ease matching.
8474 # Then replace #undef with comments. This is necessary, for
8475 # example, in the case of _POSIX_SOURCE, which is predefined and required
8476 # on some systems where configure will not decide to define it.
8477 # (The regexp can be short, since the line contains either #define or #undef.)
8478 echo 's/ $//
8479 s,^[ #]*u.*,/* & */,' >>conftest.defines
8480
8481 # Break up conftest.defines:
8482 ac_max_sed_lines=50
8483
8484 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8485 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8486 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8487 # et cetera.
8488 ac_in='$ac_file_inputs'
8489 ac_out='"$tmp/out1"'
8490 ac_nxt='"$tmp/out2"'
8491
8492 while :
8493 do
8494 # Write a here document:
8495 cat >>$CONFIG_STATUS <<_ACEOF
8496 # First, check the format of the line:
8497 cat >"\$tmp/defines.sed" <<\\CEOF
8498 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8499 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8500 b
8501 :def
8502 _ACEOF
8503 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8504 echo 'CEOF
8505 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8506 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8507 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8508 grep . conftest.tail >/dev/null || break
8509 rm -f conftest.defines
8510 mv conftest.tail conftest.defines
8511 done
8512 rm -f conftest.defines conftest.tail
8513
8514 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8515 cat >>$CONFIG_STATUS <<\_ACEOF
8516 if test x"$ac_file" != x-; then
8517 echo "/* $configure_input */" >"$tmp/config.h"
8518 cat "$ac_result" >>"$tmp/config.h"
8519 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8520 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8521 echo "$as_me: $ac_file is unchanged" >&6;}
8522 else
8523 rm -f $ac_file
8524 mv "$tmp/config.h" $ac_file
8525 fi
8526 else
8527 echo "/* $configure_input */"
8528 cat "$ac_result"
8529 fi
8530 rm -f "$tmp/out12"
8531 # Compute $ac_file's index in $config_headers.
8532 _am_stamp_count=1
8533 for _am_header in $config_headers :; do
8534 case $_am_header in
8535 $ac_file | $ac_file:* )
8536 break ;;
8537 * )
8538 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8539 esac
8540 done
8541 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8542 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8543 X$ac_file : 'X\(//\)[^/]' \| \
8544 X$ac_file : 'X\(//\)$' \| \
8545 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8546 echo X$ac_file |
8547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8548 s//\1/
8549 q
8550 }
8551 /^X\(\/\/\)[^/].*/{
8552 s//\1/
8553 q
8554 }
8555 /^X\(\/\/\)$/{
8556 s//\1/
8557 q
8558 }
8559 /^X\(\/\).*/{
8560 s//\1/
8561 q
8562 }
8563 s/.*/./; q'`/stamp-h$_am_stamp_count
8564 ;;
8565
8566 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8567 echo "$as_me: executing $ac_file commands" >&6;}
8568 ;;
8569 esac
8570
8571
8572 case $ac_file$ac_mode in
8573 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8574 # Strip MF so we end up with the name of the file.
8575 mf=`echo "$mf" | sed -e 's/:.*$//'`
8576 # Check whether this is an Automake generated Makefile or not.
8577 # We used to match only the files named `Makefile.in', but
8578 # some people rename them; so instead we look at the file content.
8579 # Grep'ing the first line is not enough: some people post-process
8580 # each Makefile.in and add a new line on top of each file to say so.
8581 # Grep'ing the whole file is not good either: AIX grep has a line
8582 # limit of 2048, but all sed's we know have understand at least 4000.
8583 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
8584 dirpart=`$as_dirname -- "$mf" ||
8585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$mf" : 'X\(//\)[^/]' \| \
8587 X"$mf" : 'X\(//\)$' \| \
8588 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8589 echo X"$mf" |
8590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8591 s//\1/
8592 q
8593 }
8594 /^X\(\/\/\)[^/].*/{
8595 s//\1/
8596 q
8597 }
8598 /^X\(\/\/\)$/{
8599 s//\1/
8600 q
8601 }
8602 /^X\(\/\).*/{
8603 s//\1/
8604 q
8605 }
8606 s/.*/./; q'`
8607 else
8608 continue
8609 fi
8610 # Extract the definition of DEPDIR, am__include, and am__quote
8611 # from the Makefile without running `make'.
8612 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8613 test -z "$DEPDIR" && continue
8614 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8615 test -z "am__include" && continue
8616 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8617 # When using ansi2knr, U may be empty or an underscore; expand it
8618 U=`sed -n 's/^U = //p' < "$mf"`
8619 # Find all dependency output files, they are included files with
8620 # $(DEPDIR) in their names. We invoke sed twice because it is the
8621 # simplest approach to changing $(DEPDIR) to its actual value in the
8622 # expansion.
8623 for file in `sed -n "
8624 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8625 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8626 # Make sure the directory exists.
8627 test -f "$dirpart/$file" && continue
8628 fdir=`$as_dirname -- "$file" ||
8629 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8630 X"$file" : 'X\(//\)[^/]' \| \
8631 X"$file" : 'X\(//\)$' \| \
8632 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8633 echo X"$file" |
8634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8635 s//\1/
8636 q
8637 }
8638 /^X\(\/\/\)[^/].*/{
8639 s//\1/
8640 q
8641 }
8642 /^X\(\/\/\)$/{
8643 s//\1/
8644 q
8645 }
8646 /^X\(\/\).*/{
8647 s//\1/
8648 q
8649 }
8650 s/.*/./; q'`
8651 { as_dir=$dirpart/$fdir
8652 case $as_dir in #(
8653 -*) as_dir=./$as_dir;;
8654 esac
8655 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8656 as_dirs=
8657 while :; do
8658 case $as_dir in #(
8659 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8660 *) as_qdir=$as_dir;;
8661 esac
8662 as_dirs="'$as_qdir' $as_dirs"
8663 as_dir=`$as_dirname -- "$as_dir" ||
8664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8665 X"$as_dir" : 'X\(//\)[^/]' \| \
8666 X"$as_dir" : 'X\(//\)$' \| \
8667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8668 echo X"$as_dir" |
8669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8670 s//\1/
8671 q
8672 }
8673 /^X\(\/\/\)[^/].*/{
8674 s//\1/
8675 q
8676 }
8677 /^X\(\/\/\)$/{
8678 s//\1/
8679 q
8680 }
8681 /^X\(\/\).*/{
8682 s//\1/
8683 q
8684 }
8685 s/.*/./; q'`
8686 test -d "$as_dir" && break
8687 done
8688 test -z "$as_dirs" || eval "mkdir $as_dirs"
8689 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8690 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8691 { (exit 1); exit 1; }; }; }
8692 # echo "creating $dirpart/$file"
8693 echo '# dummy' > "$dirpart/$file"
8694 done
8695 done
8696 ;;
8697
8698 esac
8699 done # for ac_tag
8700
8701
8702 { (exit 0); exit 0; }
8703 _ACEOF
8704 chmod +x $CONFIG_STATUS
8705 ac_clean_files=$ac_clean_files_save
8706
8707
8708 # configure is writing to config.log, and then calls config.status.
8709 # config.status does its own redirection, appending to config.log.
8710 # Unfortunately, on DOS this fails, as config.log is still kept open
8711 # by configure, so config.status won't be able to write to it; its
8712 # output is simply discarded. So we exec the FD to /dev/null,
8713 # effectively closing config.log, so it can be properly (re)opened and
8714 # appended to by config.status. When coming back to configure, we
8715 # need to make the FD available again.
8716 if test "$no_create" != yes; then
8717 ac_cs_success=:
8718 ac_config_status_args=
8719 test "$silent" = yes &&
8720 ac_config_status_args="$ac_config_status_args --quiet"
8721 exec 5>/dev/null
8722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8723 exec 5>>config.log
8724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8725 # would make configure fail if this is the last instruction.
8726 $ac_cs_success || { (exit 1); exit 1; }
8727 fi
8728