Debian Codegraph @

configure

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