OSDN Git Service

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