Debian Codegraph @

configure

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