Debian Codegraph @

configure

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