OSDN Git Service

Change LOCAL_MODULE_TAGS to be optional
[android-x86/external-alsa-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="aplay/aplay.c"
565 ac_default_prefix=/usr
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #if HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #if HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #if STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # if HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #if HAVE_STRING_H
584 # if !STDC_HEADERS && HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #if HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #if HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #if HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #if HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='SHELL
603 PATH_SEPARATOR
604 PACKAGE_NAME
605 PACKAGE_TARNAME
606 PACKAGE_VERSION
607 PACKAGE_STRING
608 PACKAGE_BUGREPORT
609 exec_prefix
610 prefix
611 program_transform_name
612 bindir
613 sbindir
614 libexecdir
615 datarootdir
616 datadir
617 sysconfdir
618 sharedstatedir
619 localstatedir
620 includedir
621 oldincludedir
622 docdir
623 infodir
624 htmldir
625 dvidir
626 pdfdir
627 psdir
628 libdir
629 localedir
630 mandir
631 DEFS
632 ECHO_C
633 ECHO_N
634 ECHO_T
635 LIBS
636 build_alias
637 host_alias
638 target_alias
639 INSTALL_PROGRAM
640 INSTALL_SCRIPT
641 INSTALL_DATA
642 CYGPATH_W
643 PACKAGE
644 VERSION
645 ACLOCAL
646 AUTOCONF
647 AUTOMAKE
648 AUTOHEADER
649 MAKEINFO
650 install_sh
651 STRIP
652 INSTALL_STRIP_PROGRAM
653 mkdir_p
654 AWK
655 SET_MAKE
656 am__leading_dot
657 AMTAR
658 am__tar
659 am__untar
660 USE_NLS
661 MSGFMT
662 GMSGFMT
663 MSGFMT_015
664 GMSGFMT_015
665 XGETTEXT
666 XGETTEXT_015
667 MSGMERGE
668 CC
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 DEPDIR
676 am__include
677 am__quote
678 AMDEP_TRUE
679 AMDEP_FALSE
680 AMDEPBACKSLASH
681 CCDEPMODE
682 am__fastdepCC_TRUE
683 am__fastdepCC_FALSE
684 build
685 build_cpu
686 build_vendor
687 build_os
688 host
689 host_cpu
690 host_vendor
691 host_os
692 INTL_MACOSX_LIBS
693 LIBICONV
694 LTLIBICONV
695 INTLLIBS
696 LIBINTL
697 LTLIBINTL
698 POSUB
699 LN_S
700 ALSA_CFLAGS
701 ALSA_LIBS
702 HAVE_PCM_TRUE
703 HAVE_PCM_FALSE
704 HAVE_MIXER_TRUE
705 HAVE_MIXER_FALSE
706 HAVE_RAWMIDI_TRUE
707 HAVE_RAWMIDI_FALSE
708 HAVE_SEQ_TRUE
709 HAVE_SEQ_FALSE
710 ALSAMIXER_TRUE
711 ALSAMIXER_FALSE
712 ALSACONF_TRUE
713 ALSACONF_FALSE
714 xmlto
715 USE_XMLTO_TRUE
716 USE_XMLTO_FALSE
717 CPP
718 GREP
719 EGREP
720 ncursesw5_config
721 ncurses5_config
722 CURSESINC
723 CURSESLIB
724 CURSES_CFLAGS
725 TESTSOUND
726 SND_UTIL_VERSION
727 SND_UTIL_MAJOR
728 SND_UTIL_MINOR
729 SND_UTIL_SUBMINOR
730 LIBRT
731 LIBOBJS
732 LTLIBOBJS'
733 ac_subst_files=''
734       ac_precious_vars='build_alias
735 host_alias
736 target_alias
737 CC
738 CFLAGS
739 LDFLAGS
740 CPPFLAGS
741 CPP'
742
743
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794   # If the previous option needs an argument, assign it.
795   if test -n "$ac_prev"; then
796     eval $ac_prev=\$ac_option
797     ac_prev=
798     continue
799   fi
800
801   case $ac_option in
802   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803   *)    ac_optarg=yes ;;
804   esac
805
806   # Accept the important Cygnus configure options, so we can diagnose typos.
807
808   case $ac_dashdash$ac_option in
809   --)
810     ac_dashdash=yes ;;
811
812   -bindir | --bindir | --bindi | --bind | --bin | --bi)
813     ac_prev=bindir ;;
814   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815     bindir=$ac_optarg ;;
816
817   -build | --build | --buil | --bui | --bu)
818     ac_prev=build_alias ;;
819   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820     build_alias=$ac_optarg ;;
821
822   -cache-file | --cache-file | --cache-fil | --cache-fi \
823   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824     ac_prev=cache_file ;;
825   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827     cache_file=$ac_optarg ;;
828
829   --config-cache | -C)
830     cache_file=config.cache ;;
831
832   -datadir | --datadir | --datadi | --datad)
833     ac_prev=datadir ;;
834   -datadir=* | --datadir=* | --datadi=* | --datad=*)
835     datadir=$ac_optarg ;;
836
837   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838   | --dataroo | --dataro | --datar)
839     ac_prev=datarootdir ;;
840   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842     datarootdir=$ac_optarg ;;
843
844   -disable-* | --disable-*)
845     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846     # Reject names that are not valid shell variable names.
847     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
848       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849    { (exit 1); exit 1; }; }
850     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
851     eval enable_$ac_feature=no ;;
852
853   -docdir | --docdir | --docdi | --doc | --do)
854     ac_prev=docdir ;;
855   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856     docdir=$ac_optarg ;;
857
858   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859     ac_prev=dvidir ;;
860   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861     dvidir=$ac_optarg ;;
862
863   -enable-* | --enable-*)
864     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
867       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868    { (exit 1); exit 1; }; }
869     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
870     eval enable_$ac_feature=\$ac_optarg ;;
871
872   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874   | --exec | --exe | --ex)
875     ac_prev=exec_prefix ;;
876   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878   | --exec=* | --exe=* | --ex=*)
879     exec_prefix=$ac_optarg ;;
880
881   -gas | --gas | --ga | --g)
882     # Obsolete; use --with-gas.
883     with_gas=yes ;;
884
885   -help | --help | --hel | --he | -h)
886     ac_init_help=long ;;
887   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888     ac_init_help=recursive ;;
889   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890     ac_init_help=short ;;
891
892   -host | --host | --hos | --ho)
893     ac_prev=host_alias ;;
894   -host=* | --host=* | --hos=* | --ho=*)
895     host_alias=$ac_optarg ;;
896
897   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898     ac_prev=htmldir ;;
899   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900   | --ht=*)
901     htmldir=$ac_optarg ;;
902
903   -includedir | --includedir | --includedi | --included | --include \
904   | --includ | --inclu | --incl | --inc)
905     ac_prev=includedir ;;
906   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907   | --includ=* | --inclu=* | --incl=* | --inc=*)
908     includedir=$ac_optarg ;;
909
910   -infodir | --infodir | --infodi | --infod | --info | --inf)
911     ac_prev=infodir ;;
912   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913     infodir=$ac_optarg ;;
914
915   -libdir | --libdir | --libdi | --libd)
916     ac_prev=libdir ;;
917   -libdir=* | --libdir=* | --libdi=* | --libd=*)
918     libdir=$ac_optarg ;;
919
920   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921   | --libexe | --libex | --libe)
922     ac_prev=libexecdir ;;
923   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924   | --libexe=* | --libex=* | --libe=*)
925     libexecdir=$ac_optarg ;;
926
927   -localedir | --localedir | --localedi | --localed | --locale)
928     ac_prev=localedir ;;
929   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930     localedir=$ac_optarg ;;
931
932   -localstatedir | --localstatedir | --localstatedi | --localstated \
933   | --localstate | --localstat | --localsta | --localst | --locals)
934     ac_prev=localstatedir ;;
935   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937     localstatedir=$ac_optarg ;;
938
939   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940     ac_prev=mandir ;;
941   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942     mandir=$ac_optarg ;;
943
944   -nfp | --nfp | --nf)
945     # Obsolete; use --without-fp.
946     with_fp=no ;;
947
948   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949   | --no-cr | --no-c | -n)
950     no_create=yes ;;
951
952   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954     no_recursion=yes ;;
955
956   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958   | --oldin | --oldi | --old | --ol | --o)
959     ac_prev=oldincludedir ;;
960   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963     oldincludedir=$ac_optarg ;;
964
965   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966     ac_prev=prefix ;;
967   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968     prefix=$ac_optarg ;;
969
970   -program-prefix | --program-prefix | --program-prefi | --program-pref \
971   | --program-pre | --program-pr | --program-p)
972     ac_prev=program_prefix ;;
973   -program-prefix=* | --program-prefix=* | --program-prefi=* \
974   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975     program_prefix=$ac_optarg ;;
976
977   -program-suffix | --program-suffix | --program-suffi | --program-suff \
978   | --program-suf | --program-su | --program-s)
979     ac_prev=program_suffix ;;
980   -program-suffix=* | --program-suffix=* | --program-suffi=* \
981   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982     program_suffix=$ac_optarg ;;
983
984   -program-transform-name | --program-transform-name \
985   | --program-transform-nam | --program-transform-na \
986   | --program-transform-n | --program-transform- \
987   | --program-transform | --program-transfor \
988   | --program-transfo | --program-transf \
989   | --program-trans | --program-tran \
990   | --progr-tra | --program-tr | --program-t)
991     ac_prev=program_transform_name ;;
992   -program-transform-name=* | --program-transform-name=* \
993   | --program-transform-nam=* | --program-transform-na=* \
994   | --program-transform-n=* | --program-transform-=* \
995   | --program-transform=* | --program-transfor=* \
996   | --program-transfo=* | --program-transf=* \
997   | --program-trans=* | --program-tran=* \
998   | --progr-tra=* | --program-tr=* | --program-t=*)
999     program_transform_name=$ac_optarg ;;
1000
1001   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002     ac_prev=pdfdir ;;
1003   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004     pdfdir=$ac_optarg ;;
1005
1006   -psdir | --psdir | --psdi | --psd | --ps)
1007     ac_prev=psdir ;;
1008   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009     psdir=$ac_optarg ;;
1010
1011   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012   | -silent | --silent | --silen | --sile | --sil)
1013     silent=yes ;;
1014
1015   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016     ac_prev=sbindir ;;
1017   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018   | --sbi=* | --sb=*)
1019     sbindir=$ac_optarg ;;
1020
1021   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023   | --sharedst | --shareds | --shared | --share | --shar \
1024   | --sha | --sh)
1025     ac_prev=sharedstatedir ;;
1026   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029   | --sha=* | --sh=*)
1030     sharedstatedir=$ac_optarg ;;
1031
1032   -site | --site | --sit)
1033     ac_prev=site ;;
1034   -site=* | --site=* | --sit=*)
1035     site=$ac_optarg ;;
1036
1037   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038     ac_prev=srcdir ;;
1039   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040     srcdir=$ac_optarg ;;
1041
1042   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043   | --syscon | --sysco | --sysc | --sys | --sy)
1044     ac_prev=sysconfdir ;;
1045   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047     sysconfdir=$ac_optarg ;;
1048
1049   -target | --target | --targe | --targ | --tar | --ta | --t)
1050     ac_prev=target_alias ;;
1051   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052     target_alias=$ac_optarg ;;
1053
1054   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055     verbose=yes ;;
1056
1057   -version | --version | --versio | --versi | --vers | -V)
1058     ac_init_version=: ;;
1059
1060   -with-* | --with-*)
1061     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064       { echo "$as_me: error: invalid package name: $ac_package" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_package=`echo $ac_package| sed 's/-/_/g'`
1067     eval with_$ac_package=\$ac_optarg ;;
1068
1069   -without-* | --without-*)
1070     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1073       { echo "$as_me: error: invalid package name: $ac_package" >&2
1074    { (exit 1); exit 1; }; }
1075     ac_package=`echo $ac_package | sed 's/-/_/g'`
1076     eval with_$ac_package=no ;;
1077
1078   --x)
1079     # Obsolete; use --with-x.
1080     with_x=yes ;;
1081
1082   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083   | --x-incl | --x-inc | --x-in | --x-i)
1084     ac_prev=x_includes ;;
1085   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087     x_includes=$ac_optarg ;;
1088
1089   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091     ac_prev=x_libraries ;;
1092   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094     x_libraries=$ac_optarg ;;
1095
1096   -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098    { (exit 1); exit 1; }; }
1099     ;;
1100
1101   *=*)
1102     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106    { (exit 1); exit 1; }; }
1107     eval $ac_envvar=\$ac_optarg
1108     export $ac_envvar ;;
1109
1110   *)
1111     # FIXME: should be removed in autoconf 3.0.
1112     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116     ;;
1117
1118   esac
1119 done
1120
1121 if test -n "$ac_prev"; then
1122   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123   { echo "$as_me: error: missing argument to $ac_option" >&2
1124    { (exit 1); exit 1; }; }
1125 fi
1126
1127 # Be sure to have absolute directory names.
1128 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129                 datadir sysconfdir sharedstatedir localstatedir includedir \
1130                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131                 libdir localedir mandir
1132 do
1133   eval ac_val=\$$ac_var
1134   case $ac_val in
1135     [\\/$]* | ?:[\\/]* )  continue;;
1136     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137   esac
1138   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139    { (exit 1); exit 1; }; }
1140 done
1141
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1145 build=$build_alias
1146 host=$host_alias
1147 target=$target_alias
1148
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x; then
1151   if test "x$build_alias" = x; then
1152     cross_compiling=maybe
1153     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154     If a cross compiler is detected then cross compile mode will be used." >&2
1155   elif test "x$build_alias" != "x$host_alias"; then
1156     cross_compiling=yes
1157   fi
1158 fi
1159
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163 test "$silent" = yes && exec 6>/dev/null
1164
1165
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169   { echo "$as_me: error: Working directory cannot be determined" >&2
1170    { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172   { echo "$as_me: error: pwd does not report name of working directory" >&2
1173    { (exit 1); exit 1; }; }
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178   ac_srcdir_defaulted=yes
1179   # Try the directory containing this script, then the parent directory.
1180   ac_confdir=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182          X"$0" : 'X\(//\)[^/]' \| \
1183          X"$0" : 'X\(//\)$' \| \
1184          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 echo X"$0" |
1186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187             s//\1/
1188             q
1189           }
1190           /^X\(\/\/\)[^/].*/{
1191             s//\1/
1192             q
1193           }
1194           /^X\(\/\/\)$/{
1195             s//\1/
1196             q
1197           }
1198           /^X\(\/\).*/{
1199             s//\1/
1200             q
1201           }
1202           s/.*/./; q'`
1203   srcdir=$ac_confdir
1204   if test ! -r "$srcdir/$ac_unique_file"; then
1205     srcdir=..
1206   fi
1207 else
1208   ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213    { (exit 1); exit 1; }; }
1214 fi
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218    { (exit 1); exit 1; }; }
1219         pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222   srcdir=.
1223 fi
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232   eval ac_env_${ac_var}_value=\$${ac_var}
1233   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1236
1237 #
1238 # Report the --help message.
1239 #
1240 if test "$ac_init_help" = "long"; then
1241   # Omit some internal or obsolete options to make the list less imposing.
1242   # This message is too long to be a string in the A/UX 3.1 sh.
1243   cat <<_ACEOF
1244 \`configure' configures this package to adapt to many kinds of systems.
1245
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE.  See below for descriptions of some of the useful variables.
1250
1251 Defaults for the options are specified in brackets.
1252
1253 Configuration:
1254   -h, --help              display this help and exit
1255       --help=short        display options specific to this package
1256       --help=recursive    display the short help of all the included packages
1257   -V, --version           display version information and exit
1258   -q, --quiet, --silent   do not print \`checking...' messages
1259       --cache-file=FILE   cache test results in FILE [disabled]
1260   -C, --config-cache      alias for \`--cache-file=config.cache'
1261   -n, --no-create         do not create output files
1262       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1263
1264 Installation directories:
1265   --prefix=PREFIX         install architecture-independent files in PREFIX
1266                           [$ac_default_prefix]
1267   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1268                           [PREFIX]
1269
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1274
1275 For better control, use the options below.
1276
1277 Fine tuning of the installation directories:
1278   --bindir=DIR           user executables [EPREFIX/bin]
1279   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1280   --libexecdir=DIR       program executables [EPREFIX/libexec]
1281   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1282   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1283   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1284   --libdir=DIR           object code libraries [EPREFIX/lib]
1285   --includedir=DIR       C header files [PREFIX/include]
1286   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1287   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1288   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1289   --infodir=DIR          info documentation [DATAROOTDIR/info]
1290   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1291   --mandir=DIR           man documentation [DATAROOTDIR/man]
1292   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1293   --htmldir=DIR          html documentation [DOCDIR]
1294   --dvidir=DIR           dvi documentation [DOCDIR]
1295   --pdfdir=DIR           pdf documentation [DOCDIR]
1296   --psdir=DIR            ps documentation [DOCDIR]
1297 _ACEOF
1298
1299   cat <<\_ACEOF
1300
1301 Program names:
1302   --program-prefix=PREFIX            prepend PREFIX to installed program names
1303   --program-suffix=SUFFIX            append SUFFIX to installed program names
1304   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1305
1306 System types:
1307   --build=BUILD     configure for building on BUILD [guessed]
1308   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313
1314   cat <<\_ACEOF
1315
1316 Optional Features:
1317   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319   --disable-nls           do not use Native Language Support
1320   --disable-dependency-tracking  speeds up one-time build
1321   --enable-dependency-tracking   do not reject slow dependency extractors
1322   --disable-rpath         do not hardcode runtime library paths
1323   --disable-alsatest      Do not try to compile and run a test Alsa program
1324   --disable-alsamixer     Disable alsamixer compilation
1325   --disable-alsaconf      Disable alsaconf packaging
1326   --disable-xmlto         Disable man page creation via xmlto
1327   --disable-largefile     omit support for large files
1328
1329 Optional Packages:
1330   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1331   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1332   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1333   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1334   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1335   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1336   --without-libintl-prefix     don't search for libintl in includedir and libdir
1337   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1338   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1339   --with-librt            Use librt for monotonic clock (default = yes)
1340   --with-curses libname   Specify the curses library to use (default=auto)
1341   --with-testsound=file        give the path of test sound file for alsaconf
1342
1343 Some influential environment variables:
1344   CC          C compiler command
1345   CFLAGS      C compiler flags
1346   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1347               nonstandard directory <lib dir>
1348   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1349               you have headers in a nonstandard directory <include dir>
1350   CPP         C preprocessor
1351
1352 Use these variables to override the choices made by `configure' or to help
1353 it to find libraries and programs with nonstandard names/locations.
1354
1355 _ACEOF
1356 ac_status=$?
1357 fi
1358
1359 if test "$ac_init_help" = "recursive"; then
1360   # If there are subdirs, report their specific --help.
1361   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362     test -d "$ac_dir" || continue
1363     ac_builddir=.
1364
1365 case "$ac_dir" in
1366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *)
1368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1369   # A ".." for each directory in $ac_dir_suffix.
1370   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1371   case $ac_top_builddir_sub in
1372   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374   esac ;;
1375 esac
1376 ac_abs_top_builddir=$ac_pwd
1377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378 # for backward compatibility:
1379 ac_top_builddir=$ac_top_build_prefix
1380
1381 case $srcdir in
1382   .)  # We are building in place.
1383     ac_srcdir=.
1384     ac_top_srcdir=$ac_top_builddir_sub
1385     ac_abs_top_srcdir=$ac_pwd ;;
1386   [\\/]* | ?:[\\/]* )  # Absolute name.
1387     ac_srcdir=$srcdir$ac_dir_suffix;
1388     ac_top_srcdir=$srcdir
1389     ac_abs_top_srcdir=$srcdir ;;
1390   *) # Relative name.
1391     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392     ac_top_srcdir=$ac_top_build_prefix$srcdir
1393     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394 esac
1395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397     cd "$ac_dir" || { ac_status=$?; continue; }
1398     # Check for guested configure.
1399     if test -f "$ac_srcdir/configure.gnu"; then
1400       echo &&
1401       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402     elif test -f "$ac_srcdir/configure"; then
1403       echo &&
1404       $SHELL "$ac_srcdir/configure" --help=recursive
1405     else
1406       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407     fi || ac_status=$?
1408     cd "$ac_pwd" || { ac_status=$?; break; }
1409   done
1410 fi
1411
1412 test -n "$ac_init_help" && exit $ac_status
1413 if $ac_init_version; then
1414   cat <<\_ACEOF
1415 configure
1416 generated by GNU Autoconf 2.60
1417
1418 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1419 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1420 This configure script is free software; the Free Software Foundation
1421 gives unlimited permission to copy, distribute and modify it.
1422 _ACEOF
1423   exit
1424 fi
1425 cat >config.log <<_ACEOF
1426 This file contains any messages produced by compilers while
1427 running configure, to aid debugging if configure makes a mistake.
1428
1429 It was created by $as_me, which was
1430 generated by GNU Autoconf 2.60.  Invocation command line was
1431
1432   $ $0 $@
1433
1434 _ACEOF
1435 exec 5>>config.log
1436 {
1437 cat <<_ASUNAME
1438 ## --------- ##
1439 ## Platform. ##
1440 ## --------- ##
1441
1442 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
1448 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1450
1451 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1452 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1453 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1454 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1455 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1456 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1457 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1458
1459 _ASUNAME
1460
1461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 for as_dir in $PATH
1463 do
1464   IFS=$as_save_IFS
1465   test -z "$as_dir" && as_dir=.
1466   echo "PATH: $as_dir"
1467 done
1468 IFS=$as_save_IFS
1469
1470 } >&5
1471
1472 cat >&5 <<_ACEOF
1473
1474
1475 ## ----------- ##
1476 ## Core tests. ##
1477 ## ----------- ##
1478
1479 _ACEOF
1480
1481
1482 # Keep a trace of the command line.
1483 # Strip out --no-create and --no-recursion so they do not pile up.
1484 # Strip out --silent because we don't want to record it for future runs.
1485 # Also quote any args containing shell meta-characters.
1486 # Make two passes to allow for proper duplicate-argument suppression.
1487 ac_configure_args=
1488 ac_configure_args0=
1489 ac_configure_args1=
1490 ac_must_keep_next=false
1491 for ac_pass in 1 2
1492 do
1493   for ac_arg
1494   do
1495     case $ac_arg in
1496     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498     | -silent | --silent | --silen | --sile | --sil)
1499       continue ;;
1500     *\'*)
1501       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502     esac
1503     case $ac_pass in
1504     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505     2)
1506       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1507       if test $ac_must_keep_next = true; then
1508         ac_must_keep_next=false # Got value, back to normal.
1509       else
1510         case $ac_arg in
1511           *=* | --config-cache | -C | -disable-* | --disable-* \
1512           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514           | -with-* | --with-* | -without-* | --without-* | --x)
1515             case "$ac_configure_args0 " in
1516               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517             esac
1518             ;;
1519           -* ) ac_must_keep_next=true ;;
1520         esac
1521       fi
1522       ac_configure_args="$ac_configure_args '$ac_arg'"
1523       ;;
1524     esac
1525   done
1526 done
1527 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1528 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529
1530 # When interrupted or exit'd, cleanup temporary files, and complete
1531 # config.log.  We remove comments because anyway the quotes in there
1532 # would cause problems or look ugly.
1533 # WARNING: Use '\'' to represent an apostrophe within the trap.
1534 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1535 trap 'exit_status=$?
1536   # Save into config.log some information that might help in debugging.
1537   {
1538     echo
1539
1540     cat <<\_ASBOX
1541 ## ---------------- ##
1542 ## Cache variables. ##
1543 ## ---------------- ##
1544 _ASBOX
1545     echo
1546     # The following way of writing the cache mishandles newlines in values,
1547 (
1548   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549     eval ac_val=\$$ac_var
1550     case $ac_val in #(
1551     *${as_nl}*)
1552       case $ac_var in #(
1553       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1554 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1555       esac
1556       case $ac_var in #(
1557       _ | IFS | as_nl) ;; #(
1558       *) $as_unset $ac_var ;;
1559       esac ;;
1560     esac
1561   done
1562   (set) 2>&1 |
1563     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564     *${as_nl}ac_space=\ *)
1565       sed -n \
1566         "s/'\''/'\''\\\\'\'''\''/g;
1567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568       ;; #(
1569     *)
1570       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1571       ;;
1572     esac |
1573     sort
1574 )
1575     echo
1576
1577     cat <<\_ASBOX
1578 ## ----------------- ##
1579 ## Output variables. ##
1580 ## ----------------- ##
1581 _ASBOX
1582     echo
1583     for ac_var in $ac_subst_vars
1584     do
1585       eval ac_val=\$$ac_var
1586       case $ac_val in
1587       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588       esac
1589       echo "$ac_var='\''$ac_val'\''"
1590     done | sort
1591     echo
1592
1593     if test -n "$ac_subst_files"; then
1594       cat <<\_ASBOX
1595 ## ------------------- ##
1596 ## File substitutions. ##
1597 ## ------------------- ##
1598 _ASBOX
1599       echo
1600       for ac_var in $ac_subst_files
1601       do
1602         eval ac_val=\$$ac_var
1603         case $ac_val in
1604         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605         esac
1606         echo "$ac_var='\''$ac_val'\''"
1607       done | sort
1608       echo
1609     fi
1610
1611     if test -s confdefs.h; then
1612       cat <<\_ASBOX
1613 ## ----------- ##
1614 ## confdefs.h. ##
1615 ## ----------- ##
1616 _ASBOX
1617       echo
1618       cat confdefs.h
1619       echo
1620     fi
1621     test "$ac_signal" != 0 &&
1622       echo "$as_me: caught signal $ac_signal"
1623     echo "$as_me: exit $exit_status"
1624   } >&5
1625   rm -f core *.core core.conftest.* &&
1626     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1627     exit $exit_status
1628 ' 0
1629 for ac_signal in 1 2 13 15; do
1630   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631 done
1632 ac_signal=0
1633
1634 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1635 rm -f -r conftest* confdefs.h
1636
1637 # Predefined preprocessor variables.
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_NAME "$PACKAGE_NAME"
1641 _ACEOF
1642
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_STRING "$PACKAGE_STRING"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661 _ACEOF
1662
1663
1664 # Let the site file select an alternate cache file if it wants to.
1665 # Prefer explicitly selected file to automatically selected ones.
1666 if test -n "$CONFIG_SITE"; then
1667   set x "$CONFIG_SITE"
1668 elif test "x$prefix" != xNONE; then
1669   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670 else
1671   set x "$ac_default_prefix/share/config.site" \
1672         "$ac_default_prefix/etc/config.site"
1673 fi
1674 shift
1675 for ac_site_file
1676 do
1677   if test -r "$ac_site_file"; then
1678     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1679 echo "$as_me: loading site script $ac_site_file" >&6;}
1680     sed 's/^/| /' "$ac_site_file" >&5
1681     . "$ac_site_file"
1682   fi
1683 done
1684
1685 if test -r "$cache_file"; then
1686   # Some versions of bash will fail to source /dev/null (special
1687   # files actually), so we avoid doing that.
1688   if test -f "$cache_file"; then
1689     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1690 echo "$as_me: loading cache $cache_file" >&6;}
1691     case $cache_file in
1692       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1693       *)                      . "./$cache_file";;
1694     esac
1695   fi
1696 else
1697   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1698 echo "$as_me: creating cache $cache_file" >&6;}
1699   >$cache_file
1700 fi
1701
1702 # Check that the precious variables saved in the cache have kept the same
1703 # value.
1704 ac_cache_corrupted=false
1705 for ac_var in $ac_precious_vars; do
1706   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1707   eval ac_new_set=\$ac_env_${ac_var}_set
1708   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1709   eval ac_new_val=\$ac_env_${ac_var}_value
1710   case $ac_old_set,$ac_new_set in
1711     set,)
1712       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1713 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1714       ac_cache_corrupted=: ;;
1715     ,set)
1716       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1717 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1718       ac_cache_corrupted=: ;;
1719     ,);;
1720     *)
1721       if test "x$ac_old_val" != "x$ac_new_val"; then
1722         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1723 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1724         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1725 echo "$as_me:   former value:  $ac_old_val" >&2;}
1726         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1727 echo "$as_me:   current value: $ac_new_val" >&2;}
1728         ac_cache_corrupted=:
1729       fi;;
1730   esac
1731   # Pass precious variables to config.status.
1732   if test "$ac_new_set" = set; then
1733     case $ac_new_val in
1734     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1735     *) ac_arg=$ac_var=$ac_new_val ;;
1736     esac
1737     case " $ac_configure_args " in
1738       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1739       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1740     esac
1741   fi
1742 done
1743 if $ac_cache_corrupted; then
1744   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1745 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1746   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1747 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1748    { (exit 1); exit 1; }; }
1749 fi
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767 ac_ext=c
1768 ac_cpp='$CPP $CPPFLAGS'
1769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
1773
1774
1775 am__api_version="1.9"
1776 ac_aux_dir=
1777 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1778   if test -f "$ac_dir/install-sh"; then
1779     ac_aux_dir=$ac_dir
1780     ac_install_sh="$ac_aux_dir/install-sh -c"
1781     break
1782   elif test -f "$ac_dir/install.sh"; then
1783     ac_aux_dir=$ac_dir
1784     ac_install_sh="$ac_aux_dir/install.sh -c"
1785     break
1786   elif test -f "$ac_dir/shtool"; then
1787     ac_aux_dir=$ac_dir
1788     ac_install_sh="$ac_aux_dir/shtool install -c"
1789     break
1790   fi
1791 done
1792 if test -z "$ac_aux_dir"; then
1793   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1794 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1795    { (exit 1); exit 1; }; }
1796 fi
1797
1798 # These three variables are undocumented and unsupported,
1799 # and are intended to be withdrawn in a future Autoconf release.
1800 # They can cause serious problems if a builder's source tree is in a directory
1801 # whose full name contains unusual characters.
1802 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1803 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1804 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1805
1806
1807 # Find a good install program.  We prefer a C program (faster),
1808 # so one script is as good as another.  But avoid the broken or
1809 # incompatible versions:
1810 # SysV /etc/install, /usr/sbin/install
1811 # SunOS /usr/etc/install
1812 # IRIX /sbin/install
1813 # AIX /bin/install
1814 # AmigaOS /C/install, which installs bootblocks on floppy discs
1815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # OS/2's system install, which has a completely different semantic
1819 # ./install, which can be erroneously created by make from ./install.sh.
1820 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1822 if test -z "$INSTALL"; then
1823 if test "${ac_cv_path_install+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   # Account for people who put trailing slashes in PATH elements.
1832 case $as_dir/ in
1833   ./ | .// | /cC/* | \
1834   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1836   /usr/ucb/* ) ;;
1837   *)
1838     # OSF1 and SCO ODT 3.0 have their own names for install.
1839     # Don't use installbsd from OSF since it installs stuff as root
1840     # by default.
1841     for ac_prog in ginstall scoinst install; do
1842       for ac_exec_ext in '' $ac_executable_extensions; do
1843         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1844           if test $ac_prog = install &&
1845             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846             # AIX install.  It has an incompatible calling convention.
1847             :
1848           elif test $ac_prog = install &&
1849             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850             # program-specific install script used by HP pwplus--don't use.
1851             :
1852           else
1853             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1854             break 3
1855           fi
1856         fi
1857       done
1858     done
1859     ;;
1860 esac
1861 done
1862 IFS=$as_save_IFS
1863
1864
1865 fi
1866   if test "${ac_cv_path_install+set}" = set; then
1867     INSTALL=$ac_cv_path_install
1868   else
1869     # As a last resort, use the slow shell script.  Don't cache a
1870     # value for INSTALL within a source directory, because that will
1871     # break other packages using the cache if that directory is
1872     # removed, or if the value is a relative name.
1873     INSTALL=$ac_install_sh
1874   fi
1875 fi
1876 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1877 echo "${ECHO_T}$INSTALL" >&6; }
1878
1879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1880 # It thinks the first close brace ends the variable substitution.
1881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1882
1883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1884
1885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1886
1887 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1888 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1889 # Just in case
1890 sleep 1
1891 echo timestamp > conftest.file
1892 # Do `set' in a subshell so we don't clobber the current shell's
1893 # arguments.  Must try -L first in case configure is actually a
1894 # symlink; some systems play weird games with the mod time of symlinks
1895 # (eg FreeBSD returns the mod time of the symlink's containing
1896 # directory).
1897 if (
1898    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1899    if test "$*" = "X"; then
1900       # -L didn't work.
1901       set X `ls -t $srcdir/configure conftest.file`
1902    fi
1903    rm -f conftest.file
1904    if test "$*" != "X $srcdir/configure conftest.file" \
1905       && test "$*" != "X conftest.file $srcdir/configure"; then
1906
1907       # If neither matched, then we have a broken ls.  This can happen
1908       # if, for instance, CONFIG_SHELL is bash and it inherits a
1909       # broken ls alias from the environment.  This has actually
1910       # happened.  Such a system could not be considered "sane".
1911       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1912 alias in your environment" >&5
1913 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1914 alias in your environment" >&2;}
1915    { (exit 1); exit 1; }; }
1916    fi
1917
1918    test "$2" = conftest.file
1919    )
1920 then
1921    # Ok.
1922    :
1923 else
1924    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1925 Check your system clock" >&5
1926 echo "$as_me: error: newly created file is older than distributed files!
1927 Check your system clock" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930 { echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6; }
1932 test "$program_prefix" != NONE &&
1933   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1934 # Use a double $ so make ignores it.
1935 test "$program_suffix" != NONE &&
1936   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1937 # Double any \ or $.  echo might interpret backslashes.
1938 # By default was `s,x,x', remove it if useless.
1939 cat <<\_ACEOF >conftest.sed
1940 s/[\\$]/&&/g;s/;s,x,x,$//
1941 _ACEOF
1942 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1943 rm -f conftest.sed
1944
1945 # expand $ac_aux_dir to an absolute path
1946 am_aux_dir=`cd $ac_aux_dir && pwd`
1947
1948 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1949 # Use eval to expand $SHELL
1950 if eval "$MISSING --run true"; then
1951   am_missing_run="$MISSING --run "
1952 else
1953   am_missing_run=
1954   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1955 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1956 fi
1957
1958 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1959   # We used to keeping the `.' as first argument, in order to
1960   # allow $(mkdir_p) to be used without argument.  As in
1961   #   $(mkdir_p) $(somedir)
1962   # where $(somedir) is conditionally defined.  However this is wrong
1963   # for two reasons:
1964   #  1. if the package is installed by a user who cannot write `.'
1965   #     make install will fail,
1966   #  2. the above comment should most certainly read
1967   #     $(mkdir_p) $(DESTDIR)$(somedir)
1968   #     so it does not work when $(somedir) is undefined and
1969   #     $(DESTDIR) is not.
1970   #  To support the latter case, we have to write
1971   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1972   #  so the `.' trick is pointless.
1973   mkdir_p='mkdir -p --'
1974 else
1975   # On NextStep and OpenStep, the `mkdir' command does not
1976   # recognize any option.  It will interpret all options as
1977   # directories to create, and then abort because `.' already
1978   # exists.
1979   for d in ./-p ./--version;
1980   do
1981     test -d $d && rmdir $d
1982   done
1983   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1984   if test -f "$ac_aux_dir/mkinstalldirs"; then
1985     mkdir_p='$(mkinstalldirs)'
1986   else
1987     mkdir_p='$(install_sh) -d'
1988   fi
1989 fi
1990
1991 for ac_prog in gawk mawk nawk awk
1992 do
1993   # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1997 if test "${ac_cv_prog_AWK+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$AWK"; then
2001   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   for ac_exec_ext in '' $ac_executable_extensions; do
2009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2010     ac_cv_prog_AWK="$ac_prog"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013   fi
2014 done
2015 done
2016 IFS=$as_save_IFS
2017
2018 fi
2019 fi
2020 AWK=$ac_cv_prog_AWK
2021 if test -n "$AWK"; then
2022   { echo "$as_me:$LINENO: result: $AWK" >&5
2023 echo "${ECHO_T}$AWK" >&6; }
2024 else
2025   { echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6; }
2027 fi
2028
2029
2030   test -n "$AWK" && break
2031 done
2032
2033 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2034 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2035 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2036 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   cat >conftest.make <<\_ACEOF
2040 SHELL = /bin/sh
2041 all:
2042         @echo '@@@%%%=$(MAKE)=@@@%%%'
2043 _ACEOF
2044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2045 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2046   *@@@%%%=?*=@@@%%%*)
2047     eval ac_cv_prog_make_${ac_make}_set=yes;;
2048   *)
2049     eval ac_cv_prog_make_${ac_make}_set=no;;
2050 esac
2051 rm -f conftest.make
2052 fi
2053 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2054   { echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6; }
2056   SET_MAKE=
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060   SET_MAKE="MAKE=${MAKE-make}"
2061 fi
2062
2063 rm -rf .tst 2>/dev/null
2064 mkdir .tst 2>/dev/null
2065 if test -d .tst; then
2066   am__leading_dot=.
2067 else
2068   am__leading_dot=_
2069 fi
2070 rmdir .tst 2>/dev/null
2071
2072 # test to see if srcdir already configured
2073 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2074    test -f $srcdir/config.status; then
2075   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2076 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 # test whether we have cygpath
2081 if test -z "$CYGPATH_W"; then
2082   if (cygpath --version) >/dev/null 2>/dev/null; then
2083     CYGPATH_W='cygpath -w'
2084   else
2085     CYGPATH_W=echo
2086   fi
2087 fi
2088
2089
2090 # Define the identity of the package.
2091  PACKAGE=alsa-utils
2092  VERSION=1.0.23
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define VERSION "$VERSION"
2102 _ACEOF
2103
2104 # Some tools Automake needs.
2105
2106 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2107
2108
2109 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2110
2111
2112 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2113
2114
2115 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2116
2117
2118 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2119
2120 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2121
2122 # Installed binaries are usually stripped using `strip' when the user
2123 # run `make install-strip'.  However `strip' might not be the right
2124 # tool to use in cross-compilation environments, therefore Automake
2125 # will honor the `STRIP' environment variable to overrule this program.
2126 if test "$cross_compiling" != no; then
2127   if test -n "$ac_tool_prefix"; then
2128   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2129 set dummy ${ac_tool_prefix}strip; ac_word=$2
2130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2132 if test "${ac_cv_prog_STRIP+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   if test -n "$STRIP"; then
2136   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143   for ac_exec_ext in '' $ac_executable_extensions; do
2144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2145     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147     break 2
2148   fi
2149 done
2150 done
2151 IFS=$as_save_IFS
2152
2153 fi
2154 fi
2155 STRIP=$ac_cv_prog_STRIP
2156 if test -n "$STRIP"; then
2157   { echo "$as_me:$LINENO: result: $STRIP" >&5
2158 echo "${ECHO_T}$STRIP" >&6; }
2159 else
2160   { echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6; }
2162 fi
2163
2164
2165 fi
2166 if test -z "$ac_cv_prog_STRIP"; then
2167   ac_ct_STRIP=$STRIP
2168   # Extract the first word of "strip", so it can be a program name with args.
2169 set dummy strip; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$ac_ct_STRIP"; then
2176   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2185     ac_cv_prog_ac_ct_STRIP="strip"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191 IFS=$as_save_IFS
2192
2193 fi
2194 fi
2195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2196 if test -n "$ac_ct_STRIP"; then
2197   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2198 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2199 else
2200   { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2202 fi
2203
2204   if test "x$ac_ct_STRIP" = x; then
2205     STRIP=":"
2206   else
2207     case $cross_compiling:$ac_tool_warned in
2208 yes:)
2209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet.  If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&5
2212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2213 whose name does not start with the host triplet.  If you think this
2214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2215 ac_tool_warned=yes ;;
2216 esac
2217     STRIP=$ac_ct_STRIP
2218   fi
2219 else
2220   STRIP="$ac_cv_prog_STRIP"
2221 fi
2222
2223 fi
2224 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2225
2226 # We need awk for the "check" target.  The system "awk" is bad on
2227 # some platforms.
2228 # Always define AMTAR for backward compatibility.
2229
2230 AMTAR=${AMTAR-"${am_missing_run}tar"}
2231
2232 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2233
2234
2235
2236
2237
2238
2239
2240   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2241 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2242     # Check whether --enable-nls was given.
2243 if test "${enable_nls+set}" = set; then
2244   enableval=$enable_nls; USE_NLS=$enableval
2245 else
2246   USE_NLS=yes
2247 fi
2248
2249   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2250 echo "${ECHO_T}$USE_NLS" >&6; }
2251
2252
2253
2254
2255
2256
2257 # Prepare PATH_SEPARATOR.
2258 # The user is always right.
2259 if test "${PATH_SEPARATOR+set}" != set; then
2260   echo "#! /bin/sh" >conf$$.sh
2261   echo  "exit 0"   >>conf$$.sh
2262   chmod +x conf$$.sh
2263   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2264     PATH_SEPARATOR=';'
2265   else
2266     PATH_SEPARATOR=:
2267   fi
2268   rm -f conf$$.sh
2269 fi
2270
2271 # Find out how to test for executable files. Don't use a zero-byte file,
2272 # as systems may use methods other than mode bits to determine executability.
2273 cat >conf$$.file <<_ASEOF
2274 #! /bin/sh
2275 exit 0
2276 _ASEOF
2277 chmod +x conf$$.file
2278 if test -x conf$$.file >/dev/null 2>&1; then
2279   ac_executable_p="test -x"
2280 else
2281   ac_executable_p="test -f"
2282 fi
2283 rm -f conf$$.file
2284
2285 # Extract the first word of "msgfmt", so it can be a program name with args.
2286 set dummy msgfmt; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_path_MSGFMT+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   case "$MSGFMT" in
2293   [\\/]* | ?:[\\/]*)
2294     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2295     ;;
2296   *)
2297     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2298     for ac_dir in $PATH; do
2299       IFS="$ac_save_IFS"
2300       test -z "$ac_dir" && ac_dir=.
2301       for ac_exec_ext in '' $ac_executable_extensions; do
2302         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2303           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2304           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2305      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2306             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2307             break 2
2308           fi
2309         fi
2310       done
2311     done
2312     IFS="$ac_save_IFS"
2313   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2314     ;;
2315 esac
2316 fi
2317 MSGFMT="$ac_cv_path_MSGFMT"
2318 if test "$MSGFMT" != ":"; then
2319   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2320 echo "${ECHO_T}$MSGFMT" >&6; }
2321 else
2322   { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2327 set dummy gmsgfmt; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   case $GMSGFMT in
2334   [\\/]* | ?:[\\/]*)
2335   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2336   ;;
2337   *)
2338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341   IFS=$as_save_IFS
2342   test -z "$as_dir" && as_dir=.
2343   for ac_exec_ext in '' $ac_executable_extensions; do
2344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2345     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347     break 2
2348   fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2354   ;;
2355 esac
2356 fi
2357 GMSGFMT=$ac_cv_path_GMSGFMT
2358 if test -n "$GMSGFMT"; then
2359   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2360 echo "${ECHO_T}$GMSGFMT" >&6; }
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366
2367
2368     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2369     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2370     *) MSGFMT_015=$MSGFMT ;;
2371   esac
2372
2373   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2374     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2375     *) GMSGFMT_015=$GMSGFMT ;;
2376   esac
2377
2378
2379
2380 # Prepare PATH_SEPARATOR.
2381 # The user is always right.
2382 if test "${PATH_SEPARATOR+set}" != set; then
2383   echo "#! /bin/sh" >conf$$.sh
2384   echo  "exit 0"   >>conf$$.sh
2385   chmod +x conf$$.sh
2386   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2387     PATH_SEPARATOR=';'
2388   else
2389     PATH_SEPARATOR=:
2390   fi
2391   rm -f conf$$.sh
2392 fi
2393
2394 # Find out how to test for executable files. Don't use a zero-byte file,
2395 # as systems may use methods other than mode bits to determine executability.
2396 cat >conf$$.file <<_ASEOF
2397 #! /bin/sh
2398 exit 0
2399 _ASEOF
2400 chmod +x conf$$.file
2401 if test -x conf$$.file >/dev/null 2>&1; then
2402   ac_executable_p="test -x"
2403 else
2404   ac_executable_p="test -f"
2405 fi
2406 rm -f conf$$.file
2407
2408 # Extract the first word of "xgettext", so it can be a program name with args.
2409 set dummy xgettext; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   case "$XGETTEXT" in
2416   [\\/]* | ?:[\\/]*)
2417     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2418     ;;
2419   *)
2420     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2421     for ac_dir in $PATH; do
2422       IFS="$ac_save_IFS"
2423       test -z "$ac_dir" && ac_dir=.
2424       for ac_exec_ext in '' $ac_executable_extensions; do
2425         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2426           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2427           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2428      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2429             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2430             break 2
2431           fi
2432         fi
2433       done
2434     done
2435     IFS="$ac_save_IFS"
2436   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2437     ;;
2438 esac
2439 fi
2440 XGETTEXT="$ac_cv_path_XGETTEXT"
2441 if test "$XGETTEXT" != ":"; then
2442   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2443 echo "${ECHO_T}$XGETTEXT" >&6; }
2444 else
2445   { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2447 fi
2448
2449     rm -f messages.po
2450
2451     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2452     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2453     *) XGETTEXT_015=$XGETTEXT ;;
2454   esac
2455
2456
2457
2458 # Prepare PATH_SEPARATOR.
2459 # The user is always right.
2460 if test "${PATH_SEPARATOR+set}" != set; then
2461   echo "#! /bin/sh" >conf$$.sh
2462   echo  "exit 0"   >>conf$$.sh
2463   chmod +x conf$$.sh
2464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2465     PATH_SEPARATOR=';'
2466   else
2467     PATH_SEPARATOR=:
2468   fi
2469   rm -f conf$$.sh
2470 fi
2471
2472 # Find out how to test for executable files. Don't use a zero-byte file,
2473 # as systems may use methods other than mode bits to determine executability.
2474 cat >conf$$.file <<_ASEOF
2475 #! /bin/sh
2476 exit 0
2477 _ASEOF
2478 chmod +x conf$$.file
2479 if test -x conf$$.file >/dev/null 2>&1; then
2480   ac_executable_p="test -x"
2481 else
2482   ac_executable_p="test -f"
2483 fi
2484 rm -f conf$$.file
2485
2486 # Extract the first word of "msgmerge", so it can be a program name with args.
2487 set dummy msgmerge; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   case "$MSGMERGE" in
2494   [\\/]* | ?:[\\/]*)
2495     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2496     ;;
2497   *)
2498     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2499     for ac_dir in $PATH; do
2500       IFS="$ac_save_IFS"
2501       test -z "$ac_dir" && ac_dir=.
2502       for ac_exec_ext in '' $ac_executable_extensions; do
2503         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2504           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2505           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2506             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2507             break 2
2508           fi
2509         fi
2510       done
2511     done
2512     IFS="$ac_save_IFS"
2513   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2514     ;;
2515 esac
2516 fi
2517 MSGMERGE="$ac_cv_path_MSGMERGE"
2518 if test "$MSGMERGE" != ":"; then
2519   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2520 echo "${ECHO_T}$MSGMERGE" >&6; }
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527         test -n "$localedir" || localedir='${datadir}/locale'
2528
2529
2530   ac_config_commands="$ac_config_commands po-directories"
2531
2532
2533
2534       if test "X$prefix" = "XNONE"; then
2535     acl_final_prefix="$ac_default_prefix"
2536   else
2537     acl_final_prefix="$prefix"
2538   fi
2539   if test "X$exec_prefix" = "XNONE"; then
2540     acl_final_exec_prefix='${prefix}'
2541   else
2542     acl_final_exec_prefix="$exec_prefix"
2543   fi
2544   acl_save_prefix="$prefix"
2545   prefix="$acl_final_prefix"
2546   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2547   prefix="$acl_save_prefix"
2548
2549 DEPDIR="${am__leading_dot}deps"
2550
2551 ac_config_commands="$ac_config_commands depfiles"
2552
2553
2554 am_make=${MAKE-make}
2555 cat > confinc << 'END'
2556 am__doit:
2557         @echo done
2558 .PHONY: am__doit
2559 END
2560 # If we don't find an include directive, just comment out the code.
2561 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2562 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2563 am__include="#"
2564 am__quote=
2565 _am_result=none
2566 # First try GNU make style include.
2567 echo "include confinc" > confmf
2568 # We grep out `Entering directory' and `Leaving directory'
2569 # messages which can occur if `w' ends up in MAKEFLAGS.
2570 # In particular we don't look at `^make:' because GNU make might
2571 # be invoked under some other name (usually "gmake"), in which
2572 # case it prints its new name instead of `make'.
2573 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2574    am__include=include
2575    am__quote=
2576    _am_result=GNU
2577 fi
2578 # Now try BSD make style include.
2579 if test "$am__include" = "#"; then
2580    echo '.include "confinc"' > confmf
2581    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2582       am__include=.include
2583       am__quote="\""
2584       _am_result=BSD
2585    fi
2586 fi
2587
2588
2589 { echo "$as_me:$LINENO: result: $_am_result" >&5
2590 echo "${ECHO_T}$_am_result" >&6; }
2591 rm -f confinc confmf
2592
2593 # Check whether --enable-dependency-tracking was given.
2594 if test "${enable_dependency_tracking+set}" = set; then
2595   enableval=$enable_dependency_tracking;
2596 fi
2597
2598 if test "x$enable_dependency_tracking" != xno; then
2599   am_depcomp="$ac_aux_dir/depcomp"
2600   AMDEPBACKSLASH='\'
2601 fi
2602
2603
2604 if test "x$enable_dependency_tracking" != xno; then
2605   AMDEP_TRUE=
2606   AMDEP_FALSE='#'
2607 else
2608   AMDEP_TRUE='#'
2609   AMDEP_FALSE=
2610 fi
2611
2612
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$CC"; then
2628   ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649   { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2651 else
2652   { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$ac_cv_prog_CC"; then
2659   ac_ct_CC=$CC
2660   # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$ac_ct_CC"; then
2668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_ac_ct_CC="gcc"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696   if test "x$ac_ct_CC" = x; then
2697     CC=""
2698   else
2699     case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet.  If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&5
2704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705 whose name does not start with the host triplet.  If you think this
2706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709     CC=$ac_ct_CC
2710   fi
2711 else
2712   CC="$ac_cv_prog_CC"
2713 fi
2714
2715 if test -z "$CC"; then
2716           if test -n "$ac_tool_prefix"; then
2717     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732   for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_CC="${ac_tool_prefix}cc"
2735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2748 else
2749   { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754   fi
2755 fi
2756 if test -z "$CC"; then
2757   # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   if test -n "$CC"; then
2765   ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767   ac_prog_rejected=no
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773   for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776        ac_prog_rejected=yes
2777        continue
2778      fi
2779     ac_cv_prog_CC="cc"
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 if test $ac_prog_rejected = yes; then
2788   # We found a bogon in the path, so make sure we never use it.
2789   set dummy $ac_cv_prog_CC
2790   shift
2791   if test $# != 0; then
2792     # We chose a different compiler from the bogus one.
2793     # However, it has the same basename, so the bogon will be chosen
2794     # first if we set CC to just the basename; use the full file name.
2795     shift
2796     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797   fi
2798 fi
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803   { echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6; }
2805 else
2806   { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$CC"; then
2813   if test -n "$ac_tool_prefix"; then
2814   for ac_prog in cl.exe
2815   do
2816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$CC"; then
2824   ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845   { echo "$as_me:$LINENO: result: $CC" >&5
2846 echo "${ECHO_T}$CC" >&6; }
2847 else
2848   { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2851
2852
2853     test -n "$CC" && break
2854   done
2855 fi
2856 if test -z "$CC"; then
2857   ac_ct_CC=$CC
2858   for ac_prog in cl.exe
2859 do
2860   # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$ac_ct_CC"; then
2868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_ac_ct_CC="$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888 if test -n "$ac_ct_CC"; then
2889   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890 echo "${ECHO_T}$ac_ct_CC" >&6; }
2891 else
2892   { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897   test -n "$ac_ct_CC" && break
2898 done
2899
2900   if test "x$ac_ct_CC" = x; then
2901     CC=""
2902   else
2903     case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     CC=$ac_ct_CC
2914   fi
2915 fi
2916
2917 fi
2918
2919
2920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925
2926 # Provide some information about the compiler.
2927 echo "$as_me:$LINENO: checking for C compiler version" >&5
2928 ac_compiler=`set X $ac_compile; echo $2`
2929 { (ac_try="$ac_compiler --version >&5"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compiler --version >&5") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (ac_try="$ac_compiler -v >&5"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compiler -v >&5") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }
2949 { (ac_try="$ac_compiler -V >&5"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_compiler -V >&5") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }
2959
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2981 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 #
2984 # List of possible output files, starting from the most likely.
2985 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2986 # only as a last resort.  b.out is created by i960 compilers.
2987 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2988 #
2989 # The IRIX 6 linker writes into existing files which may not be
2990 # executable, retaining their permissions.  Remove them first so a
2991 # subsequent execution test works.
2992 ac_rmfiles=
2993 for ac_file in $ac_files
2994 do
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2997     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2998   esac
2999 done
3000 rm -f $ac_rmfiles
3001
3002 if { (ac_try="$ac_link_default"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_link_default") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; then
3012   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3015 # so that the user can short-circuit this test for compilers unknown to
3016 # Autoconf.
3017 for ac_file in $ac_files
3018 do
3019   test -f "$ac_file" || continue
3020   case $ac_file in
3021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3022         ;;
3023     [ab].out )
3024         # We found the default executable, but exeext='' is most
3025         # certainly right.
3026         break;;
3027     *.* )
3028         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029         then :; else
3030            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031         fi
3032         # We set ac_cv_exeext here because the later test for it is not
3033         # safe: cross compilers may not add the suffix if given an `-o'
3034         # argument, so we may need to know it at that point already.
3035         # Even if this section looks crufty: it has the advantage of
3036         # actually working.
3037         break;;
3038     * )
3039         break;;
3040   esac
3041 done
3042 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: C compiler cannot create executables
3051 See \`config.log' for more details." >&2;}
3052    { (exit 77); exit 77; }; }
3053 fi
3054
3055 ac_exeext=$ac_cv_exeext
3056 { echo "$as_me:$LINENO: result: $ac_file" >&5
3057 echo "${ECHO_T}$ac_file" >&6; }
3058
3059 # Check that the compiler produces executables we can run.  If not, either
3060 # the compiler is broken, or we cross compile.
3061 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3062 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3063 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3064 # If not cross compiling, check that we can run a simple program.
3065 if test "$cross_compiling" != yes; then
3066   if { ac_try='./$ac_file'
3067   { (case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_try") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076     cross_compiling=no
3077   else
3078     if test "$cross_compiling" = maybe; then
3079         cross_compiling=yes
3080     else
3081         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3082 If you meant to cross compile, use \`--host'.
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&2;}
3087    { (exit 1); exit 1; }; }
3088     fi
3089   fi
3090 fi
3091 { echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6; }
3093
3094 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3095 ac_clean_files=$ac_clean_files_save
3096 # Check that the compiler produces executables we can run.  If not, either
3097 # the compiler is broken, or we cross compile.
3098 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3099 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3100 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3101 echo "${ECHO_T}$cross_compiling" >&6; }
3102
3103 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3104 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3105 if { (ac_try="$ac_link"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_link") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; then
3115   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3116 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3117 # work properly (i.e., refer to `conftest.exe'), while it won't with
3118 # `rm'.
3119 for ac_file in conftest.exe conftest conftest.*; do
3120   test -f "$ac_file" || continue
3121   case $ac_file in
3122     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3123     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124           break;;
3125     * ) break;;
3126   esac
3127 done
3128 else
3129   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3132 See \`config.log' for more details." >&2;}
3133    { (exit 1); exit 1; }; }
3134 fi
3135
3136 rm -f conftest$ac_cv_exeext
3137 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3138 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3139
3140 rm -f conftest.$ac_ext
3141 EXEEXT=$ac_cv_exeext
3142 ac_exeext=$EXEEXT
3143 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3144 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3145 if test "${ac_cv_objext+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compile") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; then
3174   for ac_file in conftest.o conftest.obj conftest.*; do
3175   test -f "$ac_file" || continue;
3176   case $ac_file in
3177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3178     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3179        break;;
3180   esac
3181 done
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3189 See \`config.log' for more details." >&2;}
3190    { (exit 1); exit 1; }; }
3191 fi
3192
3193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3194 fi
3195 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3196 echo "${ECHO_T}$ac_cv_objext" >&6; }
3197 OBJEXT=$ac_cv_objext
3198 ac_objext=$OBJEXT
3199 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214 #ifndef __GNUC__
3215        choke me
3216 #endif
3217
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_compile") 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } &&
3236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3237   { (case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_try") 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); }; } &&
3246          { ac_try='test -s conftest.$ac_objext'
3247   { (case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_try") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   ac_compiler_gnu=yes
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261         ac_compiler_gnu=no
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3266
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3269 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3270 GCC=`test $ac_compiler_gnu = yes && echo yes`
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_save_c_werror_flag=$ac_c_werror_flag
3279    ac_c_werror_flag=yes
3280    ac_cv_prog_cc_g=no
3281    CFLAGS="-g"
3282    cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_compile") 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } &&
3311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312   { (case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_try") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; } &&
3321          { ac_try='test -s conftest.$ac_objext'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   ac_cv_prog_cc_g=yes
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336         CFLAGS=""
3337       cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h.  */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_compile") 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367   { (case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372   (eval "$ac_try") 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; } &&
3376          { ac_try='test -s conftest.$ac_objext'
3377   { (case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382   (eval "$ac_try") 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; }; then
3386   :
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391         ac_c_werror_flag=$ac_save_c_werror_flag
3392          CFLAGS="-g"
3393          cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399
3400 int
3401 main ()
3402 {
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (ac_try="$ac_compile"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_compile") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } &&
3422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3423   { (case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_try") 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; } &&
3432          { ac_try='test -s conftest.$ac_objext'
3433   { (case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_try") 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; }; then
3442   ac_cv_prog_cc_g=yes
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447
3448 fi
3449
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457    ac_c_werror_flag=$ac_save_c_werror_flag
3458 fi
3459 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3461 if test "$ac_test_CFLAGS" = set; then
3462   CFLAGS=$ac_save_CFLAGS
3463 elif test $ac_cv_prog_cc_g = yes; then
3464   if test "$GCC" = yes; then
3465     CFLAGS="-g -O2"
3466   else
3467     CFLAGS="-g"
3468   fi
3469 else
3470   if test "$GCC" = yes; then
3471     CFLAGS="-O2"
3472   else
3473     CFLAGS=
3474   fi
3475 fi
3476 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3477 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3478 if test "${ac_cv_prog_cc_c89+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   ac_cv_prog_cc_c89=no
3482 ac_save_CC=$CC
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h.  */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h.  */
3489 #include <stdarg.h>
3490 #include <stdio.h>
3491 #include <sys/types.h>
3492 #include <sys/stat.h>
3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3494 struct buf { int x; };
3495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496 static char *e (p, i)
3497      char **p;
3498      int i;
3499 {
3500   return p[i];
3501 }
3502 static char *f (char * (*g) (char **, int), char **p, ...)
3503 {
3504   char *s;
3505   va_list v;
3506   va_start (v,p);
3507   s = g (p, va_arg (v,int));
3508   va_end (v);
3509   return s;
3510 }
3511
3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3513    function prototypes and stuff, but not '\xHH' hex character constants.
3514    These don't provoke an error unfortunately, instead are silently treated
3515    as 'x'.  The following induces an error, until -std is added to get
3516    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3517    array size at least.  It's necessary to write '\x00'==0 to get something
3518    that's true only with -std.  */
3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520
3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522    inside strings and character constants.  */
3523 #define FOO(x) 'x'
3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525
3526 int test (int i, double x);
3527 struct s1 {int (*f) (int a);};
3528 struct s2 {int (*f) (double a);};
3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530 int argc;
3531 char **argv;
3532 int
3533 main ()
3534 {
3535 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 do
3543   CC="$ac_save_CC $ac_arg"
3544   rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_compile") 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } &&
3558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3559   { (case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_try") 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }; } &&
3568          { ac_try='test -s conftest.$ac_objext'
3569   { (case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   ac_cv_prog_cc_c89=$ac_arg
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext
3587   test "x$ac_cv_prog_cc_c89" != "xno" && break
3588 done
3589 rm -f conftest.$ac_ext
3590 CC=$ac_save_CC
3591
3592 fi
3593 # AC_CACHE_VAL
3594 case "x$ac_cv_prog_cc_c89" in
3595   x)
3596     { echo "$as_me:$LINENO: result: none needed" >&5
3597 echo "${ECHO_T}none needed" >&6; } ;;
3598   xno)
3599     { echo "$as_me:$LINENO: result: unsupported" >&5
3600 echo "${ECHO_T}unsupported" >&6; } ;;
3601   *)
3602     CC="$CC $ac_cv_prog_cc_c89"
3603     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3604 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3605 esac
3606
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 depcc="$CC"   am_compiler_list=
3615
3616 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3618 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622   # We make a subdir and do the tests there.  Otherwise we can end up
3623   # making bogus files that we don't know about and never remove.  For
3624   # instance it was reported that on HP-UX the gcc test will end up
3625   # making a dummy file named `D' -- because `-MD' means `put the output
3626   # in D'.
3627   mkdir conftest.dir
3628   # Copy depcomp to subdir because otherwise we won't find it if we're
3629   # using a relative directory.
3630   cp "$am_depcomp" conftest.dir
3631   cd conftest.dir
3632   # We will build objects and dependencies in a subdirectory because
3633   # it helps to detect inapplicable dependency modes.  For instance
3634   # both Tru64's cc and ICC support -MD to output dependencies as a
3635   # side effect of compilation, but ICC will put the dependencies in
3636   # the current directory while Tru64 will put them in the object
3637   # directory.
3638   mkdir sub
3639
3640   am_cv_CC_dependencies_compiler_type=none
3641   if test "$am_compiler_list" = ""; then
3642      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643   fi
3644   for depmode in $am_compiler_list; do
3645     # Setup a source with many dependencies, because some compilers
3646     # like to wrap large dependency lists on column 80 (with \), and
3647     # we should not choose a depcomp mode which is confused by this.
3648     #
3649     # We need to recreate these files for each test, as the compiler may
3650     # overwrite some of them when testing with obscure command lines.
3651     # This happens at least with the AIX C compiler.
3652     : > sub/conftest.c
3653     for i in 1 2 3 4 5 6; do
3654       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3655       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3656       # Solaris 8's {/usr,}/bin/sh.
3657       touch sub/conftst$i.h
3658     done
3659     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660
3661     case $depmode in
3662     nosideeffect)
3663       # after this tag, mechanisms are not by side-effect, so they'll
3664       # only be used when explicitly requested
3665       if test "x$enable_dependency_tracking" = xyes; then
3666         continue
3667       else
3668         break
3669       fi
3670       ;;
3671     none) break ;;
3672     esac
3673     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674     # mode.  It turns out that the SunPro C++ compiler does not properly
3675     # handle `-M -o', and we need to detect this.
3676     if depmode=$depmode \
3677        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3678        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3679        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3680          >/dev/null 2>conftest.err &&
3681        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3682        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3683        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3684       # icc doesn't choke on unknown options, it will just issue warnings
3685       # or remarks (even with -Werror).  So we grep stderr for any message
3686       # that says an option was ignored or not supported.
3687       # When given -MP, icc 7.0 and 7.1 complain thusly:
3688       #   icc: Command line warning: ignoring option '-M'; no argument required
3689       # The diagnosis changed in icc 8.0:
3690       #   icc: Command line remark: option '-MP' not supported
3691       if (grep 'ignoring option' conftest.err ||
3692           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3693         am_cv_CC_dependencies_compiler_type=$depmode
3694         break
3695       fi
3696     fi
3697   done
3698
3699   cd ..
3700   rm -rf conftest.dir
3701 else
3702   am_cv_CC_dependencies_compiler_type=none
3703 fi
3704
3705 fi
3706 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3707 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3708 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3709
3710
3711
3712 if
3713   test "x$enable_dependency_tracking" != xno \
3714   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715   am__fastdepCC_TRUE=
3716   am__fastdepCC_FALSE='#'
3717 else
3718   am__fastdepCC_TRUE='#'
3719   am__fastdepCC_FALSE=
3720 fi
3721
3722
3723 # Make sure we can run config.sub.
3724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3725   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3726 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3727    { (exit 1); exit 1; }; }
3728
3729 { echo "$as_me:$LINENO: checking build system type" >&5
3730 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3731 if test "${ac_cv_build+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   ac_build_alias=$build_alias
3735 test "x$ac_build_alias" = x &&
3736   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3737 test "x$ac_build_alias" = x &&
3738   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3739 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3740    { (exit 1); exit 1; }; }
3741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3742   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3743 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3744    { (exit 1); exit 1; }; }
3745
3746 fi
3747 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3748 echo "${ECHO_T}$ac_cv_build" >&6; }
3749 case $ac_cv_build in
3750 *-*-*) ;;
3751 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3752 echo "$as_me: error: invalid value of canonical build" >&2;}
3753    { (exit 1); exit 1; }; };;
3754 esac
3755 build=$ac_cv_build
3756 ac_save_IFS=$IFS; IFS='-'
3757 set x $ac_cv_build
3758 shift
3759 build_cpu=$1
3760 build_vendor=$2
3761 shift; shift
3762 # Remember, the first character of IFS is used to create $*,
3763 # except with old shells:
3764 build_os=$*
3765 IFS=$ac_save_IFS
3766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3767
3768
3769 { echo "$as_me:$LINENO: checking host system type" >&5
3770 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3771 if test "${ac_cv_host+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if test "x$host_alias" = x; then
3775   ac_cv_host=$ac_cv_build
3776 else
3777   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3778     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3779 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3780    { (exit 1); exit 1; }; }
3781 fi
3782
3783 fi
3784 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3785 echo "${ECHO_T}$ac_cv_host" >&6; }
3786 case $ac_cv_host in
3787 *-*-*) ;;
3788 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3789 echo "$as_me: error: invalid value of canonical host" >&2;}
3790    { (exit 1); exit 1; }; };;
3791 esac
3792 host=$ac_cv_host
3793 ac_save_IFS=$IFS; IFS='-'
3794 set x $ac_cv_host
3795 shift
3796 host_cpu=$1
3797 host_vendor=$2
3798 shift; shift
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3801 host_os=$*
3802 IFS=$ac_save_IFS
3803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804
3805
3806
3807 # Check whether --with-gnu-ld was given.
3808 if test "${with_gnu_ld+set}" = set; then
3809   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3810 else
3811   with_gnu_ld=no
3812 fi
3813
3814 # Prepare PATH_SEPARATOR.
3815 # The user is always right.
3816 if test "${PATH_SEPARATOR+set}" != set; then
3817   echo "#! /bin/sh" >conf$$.sh
3818   echo  "exit 0"   >>conf$$.sh
3819   chmod +x conf$$.sh
3820   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3821     PATH_SEPARATOR=';'
3822   else
3823     PATH_SEPARATOR=:
3824   fi
3825   rm -f conf$$.sh
3826 fi
3827 ac_prog=ld
3828 if test "$GCC" = yes; then
3829   # Check if gcc -print-prog-name=ld gives a path.
3830   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3831 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3832   case $host in
3833   *-*-mingw*)
3834     # gcc leaves a trailing carriage return which upsets mingw
3835     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3836   *)
3837     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3838   esac
3839   case $ac_prog in
3840     # Accept absolute paths.
3841     [\\/]* | [A-Za-z]:[\\/]*)
3842       re_direlt='/[^/][^/]*/\.\./'
3843       # Canonicalize the path of ld
3844       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3845       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3846         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3847       done
3848       test -z "$LD" && LD="$ac_prog"
3849       ;;
3850   "")
3851     # If it fails, then pretend we aren't using GCC.
3852     ac_prog=ld
3853     ;;
3854   *)
3855     # If it is relative, then search for the first ld in PATH.
3856     with_gnu_ld=unknown
3857     ;;
3858   esac
3859 elif test "$with_gnu_ld" = yes; then
3860   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3861 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3862 else
3863   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3864 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3865 fi
3866 if test "${acl_cv_path_LD+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test -z "$LD"; then
3870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3871   for ac_dir in $PATH; do
3872     test -z "$ac_dir" && ac_dir=.
3873     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3874       acl_cv_path_LD="$ac_dir/$ac_prog"
3875       # Check to see if the program is GNU ld.  I'd rather use --version,
3876       # but apparently some GNU ld's only accept -v.
3877       # Break only if it was the GNU/non-GNU ld that we prefer.
3878       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3879       *GNU* | *'with BFD'*)
3880         test "$with_gnu_ld" != no && break ;;
3881       *)
3882         test "$with_gnu_ld" != yes && break ;;
3883       esac
3884     fi
3885   done
3886   IFS="$ac_save_ifs"
3887 else
3888   acl_cv_path_LD="$LD" # Let the user override the test with a path.
3889 fi
3890 fi
3891
3892 LD="$acl_cv_path_LD"
3893 if test -n "$LD"; then
3894   { echo "$as_me:$LINENO: result: $LD" >&5
3895 echo "${ECHO_T}$LD" >&6; }
3896 else
3897   { echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6; }
3899 fi
3900 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3901 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3902    { (exit 1); exit 1; }; }
3903 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3904 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3905 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3909 case `$LD -v 2>&1 </dev/null` in
3910 *GNU* | *'with BFD'*)
3911   acl_cv_prog_gnu_ld=yes ;;
3912 *)
3913   acl_cv_prog_gnu_ld=no ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3917 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
3918 with_gnu_ld=$acl_cv_prog_gnu_ld
3919
3920
3921
3922
3923                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3924 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
3925 if test "${acl_cv_rpath+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928
3929     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3930     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3931     . ./conftest.sh
3932     rm -f ./conftest.sh
3933     acl_cv_rpath=done
3934
3935 fi
3936 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3937 echo "${ECHO_T}$acl_cv_rpath" >&6; }
3938   wl="$acl_cv_wl"
3939   libext="$acl_cv_libext"
3940   shlibext="$acl_cv_shlibext"
3941   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3942   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3943   hardcode_direct="$acl_cv_hardcode_direct"
3944   hardcode_minus_L="$acl_cv_hardcode_minus_L"
3945     # Check whether --enable-rpath was given.
3946 if test "${enable_rpath+set}" = set; then
3947   enableval=$enable_rpath; :
3948 else
3949   enable_rpath=yes
3950 fi
3951
3952
3953
3954                   acl_libdirstem=lib
3955   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3956   if test -n "$searchpath"; then
3957     acl_save_IFS="${IFS=        }"; IFS=":"
3958     for searchdir in $searchpath; do
3959       if test -d "$searchdir"; then
3960         case "$searchdir" in
3961           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3962           *) searchdir=`cd "$searchdir" && pwd`
3963              case "$searchdir" in
3964                */lib64 ) acl_libdirstem=lib64 ;;
3965              esac ;;
3966         esac
3967       fi
3968     done
3969     IFS="$acl_save_IFS"
3970   fi
3971
3972
3973
3974
3975
3976
3977
3978
3979     use_additional=yes
3980
3981   acl_save_prefix="$prefix"
3982   prefix="$acl_final_prefix"
3983   acl_save_exec_prefix="$exec_prefix"
3984   exec_prefix="$acl_final_exec_prefix"
3985
3986     eval additional_includedir=\"$includedir\"
3987     eval additional_libdir=\"$libdir\"
3988
3989   exec_prefix="$acl_save_exec_prefix"
3990   prefix="$acl_save_prefix"
3991
3992
3993 # Check whether --with-libiconv-prefix was given.
3994 if test "${with_libiconv_prefix+set}" = set; then
3995   withval=$with_libiconv_prefix;
3996     if test "X$withval" = "Xno"; then
3997       use_additional=no
3998     else
3999       if test "X$withval" = "X"; then
4000
4001   acl_save_prefix="$prefix"
4002   prefix="$acl_final_prefix"
4003   acl_save_exec_prefix="$exec_prefix"
4004   exec_prefix="$acl_final_exec_prefix"
4005
4006           eval additional_includedir=\"$includedir\"
4007           eval additional_libdir=\"$libdir\"
4008
4009   exec_prefix="$acl_save_exec_prefix"
4010   prefix="$acl_save_prefix"
4011
4012       else
4013         additional_includedir="$withval/include"
4014         additional_libdir="$withval/$acl_libdirstem"
4015       fi
4016     fi
4017
4018 fi
4019
4020       LIBICONV=
4021   LTLIBICONV=
4022   INCICONV=
4023   rpathdirs=
4024   ltrpathdirs=
4025   names_already_handled=
4026   names_next_round='iconv '
4027   while test -n "$names_next_round"; do
4028     names_this_round="$names_next_round"
4029     names_next_round=
4030     for name in $names_this_round; do
4031       already_handled=
4032       for n in $names_already_handled; do
4033         if test "$n" = "$name"; then
4034           already_handled=yes
4035           break
4036         fi
4037       done
4038       if test -z "$already_handled"; then
4039         names_already_handled="$names_already_handled $name"
4040                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4041         eval value=\"\$HAVE_LIB$uppername\"
4042         if test -n "$value"; then
4043           if test "$value" = yes; then
4044             eval value=\"\$LIB$uppername\"
4045             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4046             eval value=\"\$LTLIB$uppername\"
4047             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4048           else
4049                                     :
4050           fi
4051         else
4052                               found_dir=
4053           found_la=
4054           found_so=
4055           found_a=
4056           if test $use_additional = yes; then
4057             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4058               found_dir="$additional_libdir"
4059               found_so="$additional_libdir/lib$name.$shlibext"
4060               if test -f "$additional_libdir/lib$name.la"; then
4061                 found_la="$additional_libdir/lib$name.la"
4062               fi
4063             else
4064               if test -f "$additional_libdir/lib$name.$libext"; then
4065                 found_dir="$additional_libdir"
4066                 found_a="$additional_libdir/lib$name.$libext"
4067                 if test -f "$additional_libdir/lib$name.la"; then
4068                   found_la="$additional_libdir/lib$name.la"
4069                 fi
4070               fi
4071             fi
4072           fi
4073           if test "X$found_dir" = "X"; then
4074             for x in $LDFLAGS $LTLIBICONV; do
4075
4076   acl_save_prefix="$prefix"
4077   prefix="$acl_final_prefix"
4078   acl_save_exec_prefix="$exec_prefix"
4079   exec_prefix="$acl_final_exec_prefix"
4080   eval x=\"$x\"
4081   exec_prefix="$acl_save_exec_prefix"
4082   prefix="$acl_save_prefix"
4083
4084               case "$x" in
4085                 -L*)
4086                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4087                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4088                     found_dir="$dir"
4089                     found_so="$dir/lib$name.$shlibext"
4090                     if test -f "$dir/lib$name.la"; then
4091                       found_la="$dir/lib$name.la"
4092                     fi
4093                   else
4094                     if test -f "$dir/lib$name.$libext"; then
4095                       found_dir="$dir"
4096                       found_a="$dir/lib$name.$libext"
4097                       if test -f "$dir/lib$name.la"; then
4098                         found_la="$dir/lib$name.la"
4099                       fi
4100                     fi
4101                   fi
4102                   ;;
4103               esac
4104               if test "X$found_dir" != "X"; then
4105                 break
4106               fi
4107             done
4108           fi
4109           if test "X$found_dir" != "X"; then
4110                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4111             if test "X$found_so" != "X"; then
4112                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4113                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4114               else
4115                                                                                 haveit=
4116                 for x in $ltrpathdirs; do
4117                   if test "X$x" = "X$found_dir"; then
4118                     haveit=yes
4119                     break
4120                   fi
4121                 done
4122                 if test -z "$haveit"; then
4123                   ltrpathdirs="$ltrpathdirs $found_dir"
4124                 fi
4125                                 if test "$hardcode_direct" = yes; then
4126                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4127                 else
4128                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4129                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4130                                                             haveit=
4131                     for x in $rpathdirs; do
4132                       if test "X$x" = "X$found_dir"; then
4133                         haveit=yes
4134                         break
4135                       fi
4136                     done
4137                     if test -z "$haveit"; then
4138                       rpathdirs="$rpathdirs $found_dir"
4139                     fi
4140                   else
4141                                                                                 haveit=
4142                     for x in $LDFLAGS $LIBICONV; do
4143
4144   acl_save_prefix="$prefix"
4145   prefix="$acl_final_prefix"
4146   acl_save_exec_prefix="$exec_prefix"
4147   exec_prefix="$acl_final_exec_prefix"
4148   eval x=\"$x\"
4149   exec_prefix="$acl_save_exec_prefix"
4150   prefix="$acl_save_prefix"
4151
4152                       if test "X$x" = "X-L$found_dir"; then
4153                         haveit=yes
4154                         break
4155                       fi
4156                     done
4157                     if test -z "$haveit"; then
4158                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4159                     fi
4160                     if test "$hardcode_minus_L" != no; then
4161                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4162                     else
4163                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4164                     fi
4165                   fi
4166                 fi
4167               fi
4168             else
4169               if test "X$found_a" != "X"; then
4170                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4171               else
4172                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4173               fi
4174             fi
4175                         additional_includedir=
4176             case "$found_dir" in
4177               */$acl_libdirstem | */$acl_libdirstem/)
4178                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4179                 additional_includedir="$basedir/include"
4180                 ;;
4181             esac
4182             if test "X$additional_includedir" != "X"; then
4183                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4184                 haveit=
4185                 if test "X$additional_includedir" = "X/usr/local/include"; then
4186                   if test -n "$GCC"; then
4187                     case $host_os in
4188                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4189                     esac
4190                   fi
4191                 fi
4192                 if test -z "$haveit"; then
4193                   for x in $CPPFLAGS $INCICONV; do
4194
4195   acl_save_prefix="$prefix"
4196   prefix="$acl_final_prefix"
4197   acl_save_exec_prefix="$exec_prefix"
4198   exec_prefix="$acl_final_exec_prefix"
4199   eval x=\"$x\"
4200   exec_prefix="$acl_save_exec_prefix"
4201   prefix="$acl_save_prefix"
4202
4203                     if test "X$x" = "X-I$additional_includedir"; then
4204                       haveit=yes
4205                       break
4206                     fi
4207                   done
4208                   if test -z "$haveit"; then
4209                     if test -d "$additional_includedir"; then
4210                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4211                     fi
4212                   fi
4213                 fi
4214               fi
4215             fi
4216                         if test -n "$found_la"; then
4217                                                         save_libdir="$libdir"
4218               case "$found_la" in
4219                 */* | *\\*) . "$found_la" ;;
4220                 *) . "./$found_la" ;;
4221               esac
4222               libdir="$save_libdir"
4223                             for dep in $dependency_libs; do
4224                 case "$dep" in
4225                   -L*)
4226                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4227                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4228                       haveit=
4229                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4230                         if test -n "$GCC"; then
4231                           case $host_os in
4232                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4233                           esac
4234                         fi
4235                       fi
4236                       if test -z "$haveit"; then
4237                         haveit=
4238                         for x in $LDFLAGS $LIBICONV; do
4239
4240   acl_save_prefix="$prefix"
4241   prefix="$acl_final_prefix"
4242   acl_save_exec_prefix="$exec_prefix"
4243   exec_prefix="$acl_final_exec_prefix"
4244   eval x=\"$x\"
4245   exec_prefix="$acl_save_exec_prefix"
4246   prefix="$acl_save_prefix"
4247
4248                           if test "X$x" = "X-L$additional_libdir"; then
4249                             haveit=yes
4250                             break
4251                           fi
4252                         done
4253                         if test -z "$haveit"; then
4254                           if test -d "$additional_libdir"; then
4255                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4256                           fi
4257                         fi
4258                         haveit=
4259                         for x in $LDFLAGS $LTLIBICONV; do
4260
4261   acl_save_prefix="$prefix"
4262   prefix="$acl_final_prefix"
4263   acl_save_exec_prefix="$exec_prefix"
4264   exec_prefix="$acl_final_exec_prefix"
4265   eval x=\"$x\"
4266   exec_prefix="$acl_save_exec_prefix"
4267   prefix="$acl_save_prefix"
4268
4269                           if test "X$x" = "X-L$additional_libdir"; then
4270                             haveit=yes
4271                             break
4272                           fi
4273                         done
4274                         if test -z "$haveit"; then
4275                           if test -d "$additional_libdir"; then
4276                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4277                           fi
4278                         fi
4279                       fi
4280                     fi
4281                     ;;
4282                   -R*)
4283                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4284                     if test "$enable_rpath" != no; then
4285                                                                   haveit=
4286                       for x in $rpathdirs; do
4287                         if test "X$x" = "X$dir"; then
4288                           haveit=yes
4289                           break
4290                         fi
4291                       done
4292                       if test -z "$haveit"; then
4293                         rpathdirs="$rpathdirs $dir"
4294                       fi
4295                                                                   haveit=
4296                       for x in $ltrpathdirs; do
4297                         if test "X$x" = "X$dir"; then
4298                           haveit=yes
4299                           break
4300                         fi
4301                       done
4302                       if test -z "$haveit"; then
4303                         ltrpathdirs="$ltrpathdirs $dir"
4304                       fi
4305                     fi
4306                     ;;
4307                   -l*)
4308                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4309                     ;;
4310                   *.la)
4311                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4312                     ;;
4313                   *)
4314                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4315                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4316                     ;;
4317                 esac
4318               done
4319             fi
4320           else
4321                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4322             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4323           fi
4324         fi
4325       fi
4326     done
4327   done
4328   if test "X$rpathdirs" != "X"; then
4329     if test -n "$hardcode_libdir_separator"; then
4330                         alldirs=
4331       for found_dir in $rpathdirs; do
4332         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4333       done
4334             acl_save_libdir="$libdir"
4335       libdir="$alldirs"
4336       eval flag=\"$hardcode_libdir_flag_spec\"
4337       libdir="$acl_save_libdir"
4338       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4339     else
4340             for found_dir in $rpathdirs; do
4341         acl_save_libdir="$libdir"
4342         libdir="$found_dir"
4343         eval flag=\"$hardcode_libdir_flag_spec\"
4344         libdir="$acl_save_libdir"
4345         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4346       done
4347     fi
4348   fi
4349   if test "X$ltrpathdirs" != "X"; then
4350             for found_dir in $ltrpathdirs; do
4351       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4352     done
4353   fi
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4374 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
4375 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   gt_save_LIBS="$LIBS"
4379      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4380      cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 #include <CoreFoundation/CFPreferences.h>
4387 int
4388 main ()
4389 {
4390 CFPreferencesCopyAppValue(NULL, NULL)
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_link") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4410   { (case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; } &&
4419          { ac_try='test -s conftest$ac_exeext'
4420   { (case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425   (eval "$ac_try") 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; }; then
4429   gt_cv_func_CFPreferencesCopyAppValue=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434         gt_cv_func_CFPreferencesCopyAppValue=no
4435 fi
4436
4437 rm -f core conftest.err conftest.$ac_objext \
4438       conftest$ac_exeext conftest.$ac_ext
4439      LIBS="$gt_save_LIBS"
4440 fi
4441 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4442 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4443   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4444
4445 cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4447 _ACEOF
4448
4449   fi
4450     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4451 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
4452 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   gt_save_LIBS="$LIBS"
4456      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4457      cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <CoreFoundation/CFLocale.h>
4464 int
4465 main ()
4466 {
4467 CFLocaleCopyCurrent();
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext conftest$ac_exeext
4473 if { (ac_try="$ac_link"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_link") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } &&
4486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487   { (case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_try") 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; } &&
4496          { ac_try='test -s conftest$ac_exeext'
4497   { (case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_try") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   gt_cv_func_CFLocaleCopyCurrent=yes
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511         gt_cv_func_CFLocaleCopyCurrent=no
4512 fi
4513
4514 rm -f core conftest.err conftest.$ac_objext \
4515       conftest$ac_exeext conftest.$ac_ext
4516      LIBS="$gt_save_LIBS"
4517 fi
4518 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4519 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4520   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4521
4522 cat >>confdefs.h <<\_ACEOF
4523 #define HAVE_CFLOCALECOPYCURRENT 1
4524 _ACEOF
4525
4526   fi
4527   INTL_MACOSX_LIBS=
4528   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4529     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4530   fi
4531
4532
4533
4534
4535
4536
4537   LIBINTL=
4538   LTLIBINTL=
4539   POSUB=
4540
4541     if test "$USE_NLS" = "yes"; then
4542     gt_use_preinstalled_gnugettext=no
4543
4544
4545
4546
4547
4548
4549         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4550 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4551 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560 #include <libintl.h>
4561 extern int _nl_msg_cat_cntr;
4562 extern int *_nl_domain_bindings;
4563 int
4564 main ()
4565 {
4566 bindtextdomain ("", "");
4567 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (ac_try="$ac_link"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_link") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587   { (case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592   (eval "$ac_try") 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest$ac_exeext'
4597   { (case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_try") 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   gt_cv_func_gnugettext1_libc=yes
4607 else
4608   echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611         gt_cv_func_gnugettext1_libc=no
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext \
4615       conftest$ac_exeext conftest.$ac_ext
4616 fi
4617 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4618 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4619
4620         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4621
4622
4623
4624
4625
4626           am_save_CPPFLAGS="$CPPFLAGS"
4627
4628   for element in $INCICONV; do
4629     haveit=
4630     for x in $CPPFLAGS; do
4631
4632   acl_save_prefix="$prefix"
4633   prefix="$acl_final_prefix"
4634   acl_save_exec_prefix="$exec_prefix"
4635   exec_prefix="$acl_final_exec_prefix"
4636   eval x=\"$x\"
4637   exec_prefix="$acl_save_exec_prefix"
4638   prefix="$acl_save_prefix"
4639
4640       if test "X$x" = "X$element"; then
4641         haveit=yes
4642         break
4643       fi
4644     done
4645     if test -z "$haveit"; then
4646       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4647     fi
4648   done
4649
4650
4651   { echo "$as_me:$LINENO: checking for iconv" >&5
4652 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4653 if test "${am_cv_func_iconv+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656
4657     am_cv_func_iconv="no, consider installing GNU libiconv"
4658     am_cv_lib_iconv=no
4659     cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665 #include <stdlib.h>
4666 #include <iconv.h>
4667 int
4668 main ()
4669 {
4670 iconv_t cd = iconv_open("","");
4671        iconv(cd,NULL,NULL,NULL,NULL);
4672        iconv_close(cd);
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext conftest$ac_exeext
4678 if { (ac_try="$ac_link"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_link") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692   { (case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_try") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest$ac_exeext'
4702   { (case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_try") 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   am_cv_func_iconv=yes
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716
4717 fi
4718
4719 rm -f core conftest.err conftest.$ac_objext \
4720       conftest$ac_exeext conftest.$ac_ext
4721     if test "$am_cv_func_iconv" != yes; then
4722       am_save_LIBS="$LIBS"
4723       LIBS="$LIBS $LIBICONV"
4724       cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <stdlib.h>
4731 #include <iconv.h>
4732 int
4733 main ()
4734 {
4735 iconv_t cd = iconv_open("","");
4736          iconv(cd,NULL,NULL,NULL,NULL);
4737          iconv_close(cd);
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (ac_try="$ac_link"
4744 case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749   (eval "$ac_link") 2>conftest.er1
4750   ac_status=$?
4751   grep -v '^ *+' conftest.er1 >conftest.err
4752   rm -f conftest.er1
4753   cat conftest.err >&5
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); } &&
4756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4757   { (case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_try") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest$ac_exeext'
4767   { (case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772   (eval "$ac_try") 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   am_cv_lib_iconv=yes
4777         am_cv_func_iconv=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext \
4786       conftest$ac_exeext conftest.$ac_ext
4787       LIBS="$am_save_LIBS"
4788     fi
4789
4790 fi
4791 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4792 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4793   if test "$am_cv_func_iconv" = yes; then
4794
4795 cat >>confdefs.h <<\_ACEOF
4796 #define HAVE_ICONV 1
4797 _ACEOF
4798
4799   fi
4800   if test "$am_cv_lib_iconv" = yes; then
4801     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4802 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4803     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4804 echo "${ECHO_T}$LIBICONV" >&6; }
4805   else
4806             CPPFLAGS="$am_save_CPPFLAGS"
4807     LIBICONV=
4808     LTLIBICONV=
4809   fi
4810
4811
4812
4813
4814
4815
4816
4817     use_additional=yes
4818
4819   acl_save_prefix="$prefix"
4820   prefix="$acl_final_prefix"
4821   acl_save_exec_prefix="$exec_prefix"
4822   exec_prefix="$acl_final_exec_prefix"
4823
4824     eval additional_includedir=\"$includedir\"
4825     eval additional_libdir=\"$libdir\"
4826
4827   exec_prefix="$acl_save_exec_prefix"
4828   prefix="$acl_save_prefix"
4829
4830
4831 # Check whether --with-libintl-prefix was given.
4832 if test "${with_libintl_prefix+set}" = set; then
4833   withval=$with_libintl_prefix;
4834     if test "X$withval" = "Xno"; then
4835       use_additional=no
4836     else
4837       if test "X$withval" = "X"; then
4838
4839   acl_save_prefix="$prefix"
4840   prefix="$acl_final_prefix"
4841   acl_save_exec_prefix="$exec_prefix"
4842   exec_prefix="$acl_final_exec_prefix"
4843
4844           eval additional_includedir=\"$includedir\"
4845           eval additional_libdir=\"$libdir\"
4846
4847   exec_prefix="$acl_save_exec_prefix"
4848   prefix="$acl_save_prefix"
4849
4850       else
4851         additional_includedir="$withval/include"
4852         additional_libdir="$withval/$acl_libdirstem"
4853       fi
4854     fi
4855
4856 fi
4857
4858       LIBINTL=
4859   LTLIBINTL=
4860   INCINTL=
4861   rpathdirs=
4862   ltrpathdirs=
4863   names_already_handled=
4864   names_next_round='intl '
4865   while test -n "$names_next_round"; do
4866     names_this_round="$names_next_round"
4867     names_next_round=
4868     for name in $names_this_round; do
4869       already_handled=
4870       for n in $names_already_handled; do
4871         if test "$n" = "$name"; then
4872           already_handled=yes
4873           break
4874         fi
4875       done
4876       if test -z "$already_handled"; then
4877         names_already_handled="$names_already_handled $name"
4878                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4879         eval value=\"\$HAVE_LIB$uppername\"
4880         if test -n "$value"; then
4881           if test "$value" = yes; then
4882             eval value=\"\$LIB$uppername\"
4883             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4884             eval value=\"\$LTLIB$uppername\"
4885             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4886           else
4887                                     :
4888           fi
4889         else
4890                               found_dir=
4891           found_la=
4892           found_so=
4893           found_a=
4894           if test $use_additional = yes; then
4895             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4896               found_dir="$additional_libdir"
4897               found_so="$additional_libdir/lib$name.$shlibext"
4898               if test -f "$additional_libdir/lib$name.la"; then
4899                 found_la="$additional_libdir/lib$name.la"
4900               fi
4901             else
4902               if test -f "$additional_libdir/lib$name.$libext"; then
4903                 found_dir="$additional_libdir"
4904                 found_a="$additional_libdir/lib$name.$libext"
4905                 if test -f "$additional_libdir/lib$name.la"; then
4906                   found_la="$additional_libdir/lib$name.la"
4907                 fi
4908               fi
4909             fi
4910           fi
4911           if test "X$found_dir" = "X"; then
4912             for x in $LDFLAGS $LTLIBINTL; do
4913
4914   acl_save_prefix="$prefix"
4915   prefix="$acl_final_prefix"
4916   acl_save_exec_prefix="$exec_prefix"
4917   exec_prefix="$acl_final_exec_prefix"
4918   eval x=\"$x\"
4919   exec_prefix="$acl_save_exec_prefix"
4920   prefix="$acl_save_prefix"
4921
4922               case "$x" in
4923                 -L*)
4924                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4925                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4926                     found_dir="$dir"
4927                     found_so="$dir/lib$name.$shlibext"
4928                     if test -f "$dir/lib$name.la"; then
4929                       found_la="$dir/lib$name.la"
4930                     fi
4931                   else
4932                     if test -f "$dir/lib$name.$libext"; then
4933                       found_dir="$dir"
4934                       found_a="$dir/lib$name.$libext"
4935                       if test -f "$dir/lib$name.la"; then
4936                         found_la="$dir/lib$name.la"
4937                       fi
4938                     fi
4939                   fi
4940                   ;;
4941               esac
4942               if test "X$found_dir" != "X"; then
4943                 break
4944               fi
4945             done
4946           fi
4947           if test "X$found_dir" != "X"; then
4948                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4949             if test "X$found_so" != "X"; then
4950                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4951                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4952               else
4953                                                                                 haveit=
4954                 for x in $ltrpathdirs; do
4955                   if test "X$x" = "X$found_dir"; then
4956                     haveit=yes
4957                     break
4958                   fi
4959                 done
4960                 if test -z "$haveit"; then
4961                   ltrpathdirs="$ltrpathdirs $found_dir"
4962                 fi
4963                                 if test "$hardcode_direct" = yes; then
4964                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4965                 else
4966                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4967                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4968                                                             haveit=
4969                     for x in $rpathdirs; do
4970                       if test "X$x" = "X$found_dir"; then
4971                         haveit=yes
4972                         break
4973                       fi
4974                     done
4975                     if test -z "$haveit"; then
4976                       rpathdirs="$rpathdirs $found_dir"
4977                     fi
4978                   else
4979                                                                                 haveit=
4980                     for x in $LDFLAGS $LIBINTL; do
4981
4982   acl_save_prefix="$prefix"
4983   prefix="$acl_final_prefix"
4984   acl_save_exec_prefix="$exec_prefix"
4985   exec_prefix="$acl_final_exec_prefix"
4986   eval x=\"$x\"
4987   exec_prefix="$acl_save_exec_prefix"
4988   prefix="$acl_save_prefix"
4989
4990                       if test "X$x" = "X-L$found_dir"; then
4991                         haveit=yes
4992                         break
4993                       fi
4994                     done
4995                     if test -z "$haveit"; then
4996                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4997                     fi
4998                     if test "$hardcode_minus_L" != no; then
4999                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5000                     else
5001                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5002                     fi
5003                   fi
5004                 fi
5005               fi
5006             else
5007               if test "X$found_a" != "X"; then
5008                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5009               else
5010                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5011               fi
5012             fi
5013                         additional_includedir=
5014             case "$found_dir" in
5015               */$acl_libdirstem | */$acl_libdirstem/)
5016                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5017                 additional_includedir="$basedir/include"
5018                 ;;
5019             esac
5020             if test "X$additional_includedir" != "X"; then
5021                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5022                 haveit=
5023                 if test "X$additional_includedir" = "X/usr/local/include"; then
5024                   if test -n "$GCC"; then
5025                     case $host_os in
5026                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5027                     esac
5028                   fi
5029                 fi
5030                 if test -z "$haveit"; then
5031                   for x in $CPPFLAGS $INCINTL; do
5032
5033   acl_save_prefix="$prefix"
5034   prefix="$acl_final_prefix"
5035   acl_save_exec_prefix="$exec_prefix"
5036   exec_prefix="$acl_final_exec_prefix"
5037   eval x=\"$x\"
5038   exec_prefix="$acl_save_exec_prefix"
5039   prefix="$acl_save_prefix"
5040
5041                     if test "X$x" = "X-I$additional_includedir"; then
5042                       haveit=yes
5043                       break
5044                     fi
5045                   done
5046                   if test -z "$haveit"; then
5047                     if test -d "$additional_includedir"; then
5048                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5049                     fi
5050                   fi
5051                 fi
5052               fi
5053             fi
5054                         if test -n "$found_la"; then
5055                                                         save_libdir="$libdir"
5056               case "$found_la" in
5057                 */* | *\\*) . "$found_la" ;;
5058                 *) . "./$found_la" ;;
5059               esac
5060               libdir="$save_libdir"
5061                             for dep in $dependency_libs; do
5062                 case "$dep" in
5063                   -L*)
5064                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5065                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5066                       haveit=
5067                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5068                         if test -n "$GCC"; then
5069                           case $host_os in
5070                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5071                           esac
5072                         fi
5073                       fi
5074                       if test -z "$haveit"; then
5075                         haveit=
5076                         for x in $LDFLAGS $LIBINTL; do
5077
5078   acl_save_prefix="$prefix"
5079   prefix="$acl_final_prefix"
5080   acl_save_exec_prefix="$exec_prefix"
5081   exec_prefix="$acl_final_exec_prefix"
5082   eval x=\"$x\"
5083   exec_prefix="$acl_save_exec_prefix"
5084   prefix="$acl_save_prefix"
5085
5086                           if test "X$x" = "X-L$additional_libdir"; then
5087                             haveit=yes
5088                             break
5089                           fi
5090                         done
5091                         if test -z "$haveit"; then
5092                           if test -d "$additional_libdir"; then
5093                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5094                           fi
5095                         fi
5096                         haveit=
5097                         for x in $LDFLAGS $LTLIBINTL; do
5098
5099   acl_save_prefix="$prefix"
5100   prefix="$acl_final_prefix"
5101   acl_save_exec_prefix="$exec_prefix"
5102   exec_prefix="$acl_final_exec_prefix"
5103   eval x=\"$x\"
5104   exec_prefix="$acl_save_exec_prefix"
5105   prefix="$acl_save_prefix"
5106
5107                           if test "X$x" = "X-L$additional_libdir"; then
5108                             haveit=yes
5109                             break
5110                           fi
5111                         done
5112                         if test -z "$haveit"; then
5113                           if test -d "$additional_libdir"; then
5114                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5115                           fi
5116                         fi
5117                       fi
5118                     fi
5119                     ;;
5120                   -R*)
5121                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5122                     if test "$enable_rpath" != no; then
5123                                                                   haveit=
5124                       for x in $rpathdirs; do
5125                         if test "X$x" = "X$dir"; then
5126                           haveit=yes
5127                           break
5128                         fi
5129                       done
5130                       if test -z "$haveit"; then
5131                         rpathdirs="$rpathdirs $dir"
5132                       fi
5133                                                                   haveit=
5134                       for x in $ltrpathdirs; do
5135                         if test "X$x" = "X$dir"; then
5136                           haveit=yes
5137                           break
5138                         fi
5139                       done
5140                       if test -z "$haveit"; then
5141                         ltrpathdirs="$ltrpathdirs $dir"
5142                       fi
5143                     fi
5144                     ;;
5145                   -l*)
5146                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5147                     ;;
5148                   *.la)
5149                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5150                     ;;
5151                   *)
5152                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5153                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5154                     ;;
5155                 esac
5156               done
5157             fi
5158           else
5159                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5160             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5161           fi
5162         fi
5163       fi
5164     done
5165   done
5166   if test "X$rpathdirs" != "X"; then
5167     if test -n "$hardcode_libdir_separator"; then
5168                         alldirs=
5169       for found_dir in $rpathdirs; do
5170         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5171       done
5172             acl_save_libdir="$libdir"
5173       libdir="$alldirs"
5174       eval flag=\"$hardcode_libdir_flag_spec\"
5175       libdir="$acl_save_libdir"
5176       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5177     else
5178             for found_dir in $rpathdirs; do
5179         acl_save_libdir="$libdir"
5180         libdir="$found_dir"
5181         eval flag=\"$hardcode_libdir_flag_spec\"
5182         libdir="$acl_save_libdir"
5183         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5184       done
5185     fi
5186   fi
5187   if test "X$ltrpathdirs" != "X"; then
5188             for found_dir in $ltrpathdirs; do
5189       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5190     done
5191   fi
5192
5193           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5194 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
5195 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   gt_save_CPPFLAGS="$CPPFLAGS"
5199             CPPFLAGS="$CPPFLAGS $INCINTL"
5200             gt_save_LIBS="$LIBS"
5201             LIBS="$LIBS $LIBINTL"
5202                         cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 #include <libintl.h>
5209 extern int _nl_msg_cat_cntr;
5210 extern
5211 #ifdef __cplusplus
5212 "C"
5213 #endif
5214 const char *_nl_expand_alias (const char *);
5215 int
5216 main ()
5217 {
5218 bindtextdomain ("", "");
5219 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (ac_try="$ac_link"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_link") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } &&
5238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5239   { (case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244   (eval "$ac_try") 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; } &&
5248          { ac_try='test -s conftest$ac_exeext'
5249   { (case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254   (eval "$ac_try") 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   gt_cv_func_gnugettext1_libintl=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263         gt_cv_func_gnugettext1_libintl=no
5264 fi
5265
5266 rm -f core conftest.err conftest.$ac_objext \
5267       conftest$ac_exeext conftest.$ac_ext
5268                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5269               LIBS="$LIBS $LIBICONV"
5270               cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276 #include <libintl.h>
5277 extern int _nl_msg_cat_cntr;
5278 extern
5279 #ifdef __cplusplus
5280 "C"
5281 #endif
5282 const char *_nl_expand_alias (const char *);
5283 int
5284 main ()
5285 {
5286 bindtextdomain ("", "");
5287 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext conftest$ac_exeext
5293 if { (ac_try="$ac_link"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_link") 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } &&
5306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5307   { (case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_try") 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; } &&
5316          { ac_try='test -s conftest$ac_exeext'
5317   { (case "(($ac_try" in
5318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319   *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322   (eval "$ac_try") 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   LIBINTL="$LIBINTL $LIBICONV"
5327                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5328                 gt_cv_func_gnugettext1_libintl=yes
5329
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334
5335 fi
5336
5337 rm -f core conftest.err conftest.$ac_objext \
5338       conftest$ac_exeext conftest.$ac_ext
5339             fi
5340             CPPFLAGS="$gt_save_CPPFLAGS"
5341             LIBS="$gt_save_LIBS"
5342 fi
5343 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5344 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
5345         fi
5346
5347                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5348            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5349                 && test "$PACKAGE" != gettext-runtime \
5350                 && test "$PACKAGE" != gettext-tools; }; then
5351           gt_use_preinstalled_gnugettext=yes
5352         else
5353                     LIBINTL=
5354           LTLIBINTL=
5355           INCINTL=
5356         fi
5357
5358
5359
5360     if test -n "$INTL_MACOSX_LIBS"; then
5361       if test "$gt_use_preinstalled_gnugettext" = "yes" \
5362          || test "$nls_cv_use_gnu_gettext" = "yes"; then
5363                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5364         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5365       fi
5366     fi
5367
5368     if test "$gt_use_preinstalled_gnugettext" = "yes" \
5369        || test "$nls_cv_use_gnu_gettext" = "yes"; then
5370
5371 cat >>confdefs.h <<\_ACEOF
5372 #define ENABLE_NLS 1
5373 _ACEOF
5374
5375     else
5376       USE_NLS=no
5377     fi
5378   fi
5379
5380   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
5381 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
5382   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5383 echo "${ECHO_T}$USE_NLS" >&6; }
5384   if test "$USE_NLS" = "yes"; then
5385     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5386 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
5387     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5388       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5389         gt_source="external libintl"
5390       else
5391         gt_source="libc"
5392       fi
5393     else
5394       gt_source="included intl directory"
5395     fi
5396     { echo "$as_me:$LINENO: result: $gt_source" >&5
5397 echo "${ECHO_T}$gt_source" >&6; }
5398   fi
5399
5400   if test "$USE_NLS" = "yes"; then
5401
5402     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5403       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5404         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5405 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5406         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5407 echo "${ECHO_T}$LIBINTL" >&6; }
5408
5409   for element in $INCINTL; do
5410     haveit=
5411     for x in $CPPFLAGS; do
5412
5413   acl_save_prefix="$prefix"
5414   prefix="$acl_final_prefix"
5415   acl_save_exec_prefix="$exec_prefix"
5416   exec_prefix="$acl_final_exec_prefix"
5417   eval x=\"$x\"
5418   exec_prefix="$acl_save_exec_prefix"
5419   prefix="$acl_save_prefix"
5420
5421       if test "X$x" = "X$element"; then
5422         haveit=yes
5423         break
5424       fi
5425     done
5426     if test -z "$haveit"; then
5427       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5428     fi
5429   done
5430
5431       fi
5432
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_GETTEXT 1
5436 _ACEOF
5437
5438
5439 cat >>confdefs.h <<\_ACEOF
5440 #define HAVE_DCGETTEXT 1
5441 _ACEOF
5442
5443     fi
5444
5445         POSUB=po
5446   fi
5447
5448
5449
5450     INTLLIBS="$LIBINTL"
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
5461 then
5462   { echo "$as_me:$LINENO: checking for cross-compiler" >&5
5463 echo $ECHO_N "checking for cross-compiler... $ECHO_C" >&6; }
5464
5465   which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
5466   which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
5467   && CC=${target_cpu}-${target-os}-gcc
5468   which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
5469   && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
5470
5471   { echo "$as_me:$LINENO: result: $CC" >&5
5472 echo "${ECHO_T}$CC" >&6; }
5473 fi
5474
5475 ac_ext=c
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480 if test -n "$ac_tool_prefix"; then
5481   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5485 if test "${ac_cv_prog_CC+set}" = set; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   if test -n "$CC"; then
5489   ac_cv_prog_CC="$CC" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496   for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 CC=$ac_cv_prog_CC
5509 if test -n "$CC"; then
5510   { echo "$as_me:$LINENO: result: $CC" >&5
5511 echo "${ECHO_T}$CC" >&6; }
5512 else
5513   { echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6; }
5515 fi
5516
5517
5518 fi
5519 if test -z "$ac_cv_prog_CC"; then
5520   ac_ct_CC=$CC
5521   # Extract the first word of "gcc", so it can be a program name with args.
5522 set dummy gcc; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   if test -n "$ac_ct_CC"; then
5529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536   for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_prog_ac_ct_CC="gcc"
5539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549 if test -n "$ac_ct_CC"; then
5550   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5551 echo "${ECHO_T}$ac_ct_CC" >&6; }
5552 else
5553   { echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6; }
5555 fi
5556
5557   if test "x$ac_ct_CC" = x; then
5558     CC=""
5559   else
5560     case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5563 whose name does not start with the host triplet.  If you think this
5564 configuration is useful to you, please write to autoconf@gnu.org." >&5
5565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5566 whose name does not start with the host triplet.  If you think this
5567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5568 ac_tool_warned=yes ;;
5569 esac
5570     CC=$ac_ct_CC
5571   fi
5572 else
5573   CC="$ac_cv_prog_CC"
5574 fi
5575
5576 if test -z "$CC"; then
5577           if test -n "$ac_tool_prefix"; then
5578     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}cc; ac_word=$2
5580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5582 if test "${ac_cv_prog_CC+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   if test -n "$CC"; then
5586   ac_cv_prog_CC="$CC" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593   for ac_exec_ext in '' $ac_executable_extensions; do
5594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5595     ac_cv_prog_CC="${ac_tool_prefix}cc"
5596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 CC=$ac_cv_prog_CC
5606 if test -n "$CC"; then
5607   { echo "$as_me:$LINENO: result: $CC" >&5
5608 echo "${ECHO_T}$CC" >&6; }
5609 else
5610   { echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6; }
5612 fi
5613
5614
5615   fi
5616 fi
5617 if test -z "$CC"; then
5618   # Extract the first word of "cc", so it can be a program name with args.
5619 set dummy cc; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   if test -n "$CC"; then
5626   ac_cv_prog_CC="$CC" # Let the user override the test.
5627 else
5628   ac_prog_rejected=no
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_exec_ext in '' $ac_executable_extensions; do
5635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5636     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5637        ac_prog_rejected=yes
5638        continue
5639      fi
5640     ac_cv_prog_CC="cc"
5641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 if test $ac_prog_rejected = yes; then
5649   # We found a bogon in the path, so make sure we never use it.
5650   set dummy $ac_cv_prog_CC
5651   shift
5652   if test $# != 0; then
5653     # We chose a different compiler from the bogus one.
5654     # However, it has the same basename, so the bogon will be chosen
5655     # first if we set CC to just the basename; use the full file name.
5656     shift
5657     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5658   fi
5659 fi
5660 fi
5661 fi
5662 CC=$ac_cv_prog_CC
5663 if test -n "$CC"; then
5664   { echo "$as_me:$LINENO: result: $CC" >&5
5665 echo "${ECHO_T}$CC" >&6; }
5666 else
5667   { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5669 fi
5670
5671
5672 fi
5673 if test -z "$CC"; then
5674   if test -n "$ac_tool_prefix"; then
5675   for ac_prog in cl.exe
5676   do
5677     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5681 if test "${ac_cv_prog_CC+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   if test -n "$CC"; then
5685   ac_cv_prog_CC="$CC" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692   for ac_exec_ext in '' $ac_executable_extensions; do
5693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5694     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 CC=$ac_cv_prog_CC
5705 if test -n "$CC"; then
5706   { echo "$as_me:$LINENO: result: $CC" >&5
5707 echo "${ECHO_T}$CC" >&6; }
5708 else
5709   { echo "$as_me:$LINENO: result: no" >&5
5710 echo "${ECHO_T}no" >&6; }
5711 fi
5712
5713
5714     test -n "$CC" && break
5715   done
5716 fi
5717 if test -z "$CC"; then
5718   ac_ct_CC=$CC
5719   for ac_prog in cl.exe
5720 do
5721   # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy $ac_prog; ac_word=$2
5723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   if test -n "$ac_ct_CC"; then
5729   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736   for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_prog_ac_ct_CC="$ac_prog"
5739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743 done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5749 if test -n "$ac_ct_CC"; then
5750   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5751 echo "${ECHO_T}$ac_ct_CC" >&6; }
5752 else
5753   { echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6; }
5755 fi
5756
5757
5758   test -n "$ac_ct_CC" && break
5759 done
5760
5761   if test "x$ac_ct_CC" = x; then
5762     CC=""
5763   else
5764     case $cross_compiling:$ac_tool_warned in
5765 yes:)
5766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5767 whose name does not start with the host triplet.  If you think this
5768 configuration is useful to you, please write to autoconf@gnu.org." >&5
5769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5770 whose name does not start with the host triplet.  If you think this
5771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5772 ac_tool_warned=yes ;;
5773 esac
5774     CC=$ac_ct_CC
5775   fi
5776 fi
5777
5778 fi
5779
5780
5781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5782 See \`config.log' for more details." >&5
5783 echo "$as_me: error: no acceptable C compiler found in \$PATH
5784 See \`config.log' for more details." >&2;}
5785    { (exit 1); exit 1; }; }
5786
5787 # Provide some information about the compiler.
5788 echo "$as_me:$LINENO: checking for C compiler version" >&5
5789 ac_compiler=`set X $ac_compile; echo $2`
5790 { (ac_try="$ac_compiler --version >&5"
5791 case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_compiler --version >&5") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }
5800 { (ac_try="$ac_compiler -v >&5"
5801 case "(($ac_try" in
5802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803   *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806   (eval "$ac_compiler -v >&5") 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }
5810 { (ac_try="$ac_compiler -V >&5"
5811 case "(($ac_try" in
5812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813   *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816   (eval "$ac_compiler -V >&5") 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }
5820
5821 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5822 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5823 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832
5833 int
5834 main ()
5835 {
5836 #ifndef __GNUC__
5837        choke me
5838 #endif
5839
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5846 case "(($ac_try" in
5847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848   *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851   (eval "$ac_compile") 2>conftest.er1
5852   ac_status=$?
5853   grep -v '^ *+' conftest.er1 >conftest.err
5854   rm -f conftest.er1
5855   cat conftest.err >&5
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5859   { (case "(($ac_try" in
5860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861   *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864   (eval "$ac_try") 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; } &&
5868          { ac_try='test -s conftest.$ac_objext'
5869   { (case "(($ac_try" in
5870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871   *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874   (eval "$ac_try") 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_compiler_gnu=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883         ac_compiler_gnu=no
5884 fi
5885
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5888
5889 fi
5890 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5891 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5892 GCC=`test $ac_compiler_gnu = yes && echo yes`
5893 ac_test_CFLAGS=${CFLAGS+set}
5894 ac_save_CFLAGS=$CFLAGS
5895 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5896 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5897 if test "${ac_cv_prog_cc_g+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   ac_save_c_werror_flag=$ac_c_werror_flag
5901    ac_c_werror_flag=yes
5902    ac_cv_prog_cc_g=no
5903    CFLAGS="-g"
5904    cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 int
5912 main ()
5913 {
5914
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926   (eval "$ac_compile") 2>conftest.er1
5927   ac_status=$?
5928   grep -v '^ *+' conftest.er1 >conftest.err
5929   rm -f conftest.er1
5930   cat conftest.err >&5
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); } &&
5933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5934   { (case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_try") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_try") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; }; then
5953   ac_cv_prog_cc_g=yes
5954 else
5955   echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958         CFLAGS=""
5959       cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965
5966 int
5967 main ()
5968 {
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_compile") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } &&
5988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5989   { (case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_try") 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest.$ac_objext'
5999   { (case "(($ac_try" in
6000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001   *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004   (eval "$ac_try") 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   :
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013         ac_c_werror_flag=$ac_save_c_werror_flag
6014          CFLAGS="-g"
6015          cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021
6022 int
6023 main ()
6024 {
6025
6026   ;
6027   return 0;
6028 }
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034   *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037   (eval "$ac_compile") 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6045   { (case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_try") 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest.$ac_objext'
6055   { (case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_try") 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   ac_cv_prog_cc_g=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 fi
6074
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079    ac_c_werror_flag=$ac_save_c_werror_flag
6080 fi
6081 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6083 if test "$ac_test_CFLAGS" = set; then
6084   CFLAGS=$ac_save_CFLAGS
6085 elif test $ac_cv_prog_cc_g = yes; then
6086   if test "$GCC" = yes; then
6087     CFLAGS="-g -O2"
6088   else
6089     CFLAGS="-g"
6090   fi
6091 else
6092   if test "$GCC" = yes; then
6093     CFLAGS="-O2"
6094   else
6095     CFLAGS=
6096   fi
6097 fi
6098 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6099 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_cc_c89+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   ac_cv_prog_cc_c89=no
6104 ac_save_CC=$CC
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #include <stdarg.h>
6112 #include <stdio.h>
6113 #include <sys/types.h>
6114 #include <sys/stat.h>
6115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6116 struct buf { int x; };
6117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6118 static char *e (p, i)
6119      char **p;
6120      int i;
6121 {
6122   return p[i];
6123 }
6124 static char *f (char * (*g) (char **, int), char **p, ...)
6125 {
6126   char *s;
6127   va_list v;
6128   va_start (v,p);
6129   s = g (p, va_arg (v,int));
6130   va_end (v);
6131   return s;
6132 }
6133
6134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6135    function prototypes and stuff, but not '\xHH' hex character constants.
6136    These don't provoke an error unfortunately, instead are silently treated
6137    as 'x'.  The following induces an error, until -std is added to get
6138    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6139    array size at least.  It's necessary to write '\x00'==0 to get something
6140    that's true only with -std.  */
6141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6142
6143 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6144    inside strings and character constants.  */
6145 #define FOO(x) 'x'
6146 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6147
6148 int test (int i, double x);
6149 struct s1 {int (*f) (int a);};
6150 struct s2 {int (*f) (double a);};
6151 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6152 int argc;
6153 char **argv;
6154 int
6155 main ()
6156 {
6157 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6163         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6164 do
6165   CC="$ac_save_CC $ac_arg"
6166   rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6168 case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_compile") 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } &&
6180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6181   { (case "(($ac_try" in
6182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183   *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186   (eval "$ac_try") 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; } &&
6190          { ac_try='test -s conftest.$ac_objext'
6191   { (case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_try") 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_prog_cc_c89=$ac_arg
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205
6206 fi
6207
6208 rm -f core conftest.err conftest.$ac_objext
6209   test "x$ac_cv_prog_cc_c89" != "xno" && break
6210 done
6211 rm -f conftest.$ac_ext
6212 CC=$ac_save_CC
6213
6214 fi
6215 # AC_CACHE_VAL
6216 case "x$ac_cv_prog_cc_c89" in
6217   x)
6218     { echo "$as_me:$LINENO: result: none needed" >&5
6219 echo "${ECHO_T}none needed" >&6; } ;;
6220   xno)
6221     { echo "$as_me:$LINENO: result: unsupported" >&5
6222 echo "${ECHO_T}unsupported" >&6; } ;;
6223   *)
6224     CC="$CC $ac_cv_prog_cc_c89"
6225     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6227 esac
6228
6229
6230 ac_ext=c
6231 ac_cpp='$CPP $CPPFLAGS'
6232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236 depcc="$CC"   am_compiler_list=
6237
6238 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6239 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6240 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6244   # We make a subdir and do the tests there.  Otherwise we can end up
6245   # making bogus files that we don't know about and never remove.  For
6246   # instance it was reported that on HP-UX the gcc test will end up
6247   # making a dummy file named `D' -- because `-MD' means `put the output
6248   # in D'.
6249   mkdir conftest.dir
6250   # Copy depcomp to subdir because otherwise we won't find it if we're
6251   # using a relative directory.
6252   cp "$am_depcomp" conftest.dir
6253   cd conftest.dir
6254   # We will build objects and dependencies in a subdirectory because
6255   # it helps to detect inapplicable dependency modes.  For instance
6256   # both Tru64's cc and ICC support -MD to output dependencies as a
6257   # side effect of compilation, but ICC will put the dependencies in
6258   # the current directory while Tru64 will put them in the object
6259   # directory.
6260   mkdir sub
6261
6262   am_cv_CC_dependencies_compiler_type=none
6263   if test "$am_compiler_list" = ""; then
6264      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6265   fi
6266   for depmode in $am_compiler_list; do
6267     # Setup a source with many dependencies, because some compilers
6268     # like to wrap large dependency lists on column 80 (with \), and
6269     # we should not choose a depcomp mode which is confused by this.
6270     #
6271     # We need to recreate these files for each test, as the compiler may
6272     # overwrite some of them when testing with obscure command lines.
6273     # This happens at least with the AIX C compiler.
6274     : > sub/conftest.c
6275     for i in 1 2 3 4 5 6; do
6276       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6277       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6278       # Solaris 8's {/usr,}/bin/sh.
6279       touch sub/conftst$i.h
6280     done
6281     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6282
6283     case $depmode in
6284     nosideeffect)
6285       # after this tag, mechanisms are not by side-effect, so they'll
6286       # only be used when explicitly requested
6287       if test "x$enable_dependency_tracking" = xyes; then
6288         continue
6289       else
6290         break
6291       fi
6292       ;;
6293     none) break ;;
6294     esac
6295     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6296     # mode.  It turns out that the SunPro C++ compiler does not properly
6297     # handle `-M -o', and we need to detect this.
6298     if depmode=$depmode \
6299        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6300        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6301        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6302          >/dev/null 2>conftest.err &&
6303        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6304        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6305        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6306       # icc doesn't choke on unknown options, it will just issue warnings
6307       # or remarks (even with -Werror).  So we grep stderr for any message
6308       # that says an option was ignored or not supported.
6309       # When given -MP, icc 7.0 and 7.1 complain thusly:
6310       #   icc: Command line warning: ignoring option '-M'; no argument required
6311       # The diagnosis changed in icc 8.0:
6312       #   icc: Command line remark: option '-MP' not supported
6313       if (grep 'ignoring option' conftest.err ||
6314           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6315         am_cv_CC_dependencies_compiler_type=$depmode
6316         break
6317       fi
6318     fi
6319   done
6320
6321   cd ..
6322   rm -rf conftest.dir
6323 else
6324   am_cv_CC_dependencies_compiler_type=none
6325 fi
6326
6327 fi
6328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
6330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6331
6332
6333
6334 if
6335   test "x$enable_dependency_tracking" != xno \
6336   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6337   am__fastdepCC_TRUE=
6338   am__fastdepCC_FALSE='#'
6339 else
6340   am__fastdepCC_TRUE='#'
6341   am__fastdepCC_FALSE=
6342 fi
6343
6344
6345 # Find a good install program.  We prefer a C program (faster),
6346 # so one script is as good as another.  But avoid the broken or
6347 # incompatible versions:
6348 # SysV /etc/install, /usr/sbin/install
6349 # SunOS /usr/etc/install
6350 # IRIX /sbin/install
6351 # AIX /bin/install
6352 # AmigaOS /C/install, which installs bootblocks on floppy discs
6353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6356 # OS/2's system install, which has a completely different semantic
6357 # ./install, which can be erroneously created by make from ./install.sh.
6358 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6359 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6360 if test -z "$INSTALL"; then
6361 if test "${ac_cv_path_install+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369   # Account for people who put trailing slashes in PATH elements.
6370 case $as_dir/ in
6371   ./ | .// | /cC/* | \
6372   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6373   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6374   /usr/ucb/* ) ;;
6375   *)
6376     # OSF1 and SCO ODT 3.0 have their own names for install.
6377     # Don't use installbsd from OSF since it installs stuff as root
6378     # by default.
6379     for ac_prog in ginstall scoinst install; do
6380       for ac_exec_ext in '' $ac_executable_extensions; do
6381         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6382           if test $ac_prog = install &&
6383             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6384             # AIX install.  It has an incompatible calling convention.
6385             :
6386           elif test $ac_prog = install &&
6387             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6388             # program-specific install script used by HP pwplus--don't use.
6389             :
6390           else
6391             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6392             break 3
6393           fi
6394         fi
6395       done
6396     done
6397     ;;
6398 esac
6399 done
6400 IFS=$as_save_IFS
6401
6402
6403 fi
6404   if test "${ac_cv_path_install+set}" = set; then
6405     INSTALL=$ac_cv_path_install
6406   else
6407     # As a last resort, use the slow shell script.  Don't cache a
6408     # value for INSTALL within a source directory, because that will
6409     # break other packages using the cache if that directory is
6410     # removed, or if the value is a relative name.
6411     INSTALL=$ac_install_sh
6412   fi
6413 fi
6414 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6415 echo "${ECHO_T}$INSTALL" >&6; }
6416
6417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6418 # It thinks the first close brace ends the variable substitution.
6419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6420
6421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6422
6423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6424
6425 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6426 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6427 LN_S=$as_ln_s
6428 if test "$LN_S" = "ln -s"; then
6429   { echo "$as_me:$LINENO: result: yes" >&5
6430 echo "${ECHO_T}yes" >&6; }
6431 else
6432   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6433 echo "${ECHO_T}no, using $LN_S" >&6; }
6434 fi
6435
6436 alsa_save_CFLAGS="$CFLAGS"
6437 alsa_save_LDFLAGS="$LDFLAGS"
6438 alsa_save_LIBS="$LIBS"
6439 alsa_found=yes
6440
6441
6442 # Check whether --with-alsa-prefix was given.
6443 if test "${with_alsa_prefix+set}" = set; then
6444   withval=$with_alsa_prefix; alsa_prefix="$withval"
6445 else
6446   alsa_prefix=""
6447 fi
6448
6449
6450
6451 # Check whether --with-alsa-inc-prefix was given.
6452 if test "${with_alsa_inc_prefix+set}" = set; then
6453   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
6454 else
6455   alsa_inc_prefix=""
6456 fi
6457
6458
6459 # Check whether --enable-alsatest was given.
6460 if test "${enable_alsatest+set}" = set; then
6461   enableval=$enable_alsatest; enable_alsatest="$enableval"
6462 else
6463   enable_alsatest=yes
6464 fi
6465
6466
6467 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
6468 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
6469 if test "$alsa_inc_prefix" != "" ; then
6470         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
6471         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
6472 fi
6473 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6474 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6475
6476 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
6477 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
6478 if test "$alsa_prefix" != "" ; then
6479         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
6480         LDFLAGS="$LDFLAGS $ALSA_LIBS"
6481 fi
6482
6483 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
6484 LIBS="$ALSA_LIBS $LIBS"
6485 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6486 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6487
6488 min_alsa_version=1.0.16
6489 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
6490 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
6491 no_alsa=""
6492     alsa_min_major_version=`echo $min_alsa_version | \
6493            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6494     alsa_min_minor_version=`echo $min_alsa_version | \
6495            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6496     alsa_min_micro_version=`echo $min_alsa_version | \
6497            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6498
6499
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512
6513 #include <alsa/asoundlib.h>
6514
6515 int
6516 main ()
6517 {
6518
6519 /* ensure backward compatibility */
6520 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
6521 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
6522 #endif
6523 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
6524 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
6525 #endif
6526 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
6527 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
6528 #endif
6529
6530 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
6531   exit(0);
6532 #  else
6533 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
6534 #       error not present
6535 #    endif
6536
6537 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
6538   exit(0);
6539 #   else
6540 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
6541 #          error not present
6542 #      endif
6543
6544 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
6545 #        error not present
6546 #      endif
6547 #    endif
6548 #  endif
6549 exit(0);
6550
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6557 case "(($ac_try" in
6558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559   *) ac_try_echo=$ac_try;;
6560 esac
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562   (eval "$ac_compile") 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6570   { (case "(($ac_try" in
6571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572   *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575   (eval "$ac_try") 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; } &&
6579          { ac_try='test -s conftest.$ac_objext'
6580   { (case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_try") 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   { echo "$as_me:$LINENO: result: found." >&5
6590 echo "${ECHO_T}found." >&6; }
6591 else
6592   echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595         { echo "$as_me:$LINENO: result: not present." >&5
6596 echo "${ECHO_T}not present." >&6; }
6597    { { echo "$as_me:$LINENO: error: Sufficiently new version of libasound not found." >&5
6598 echo "$as_me: error: Sufficiently new version of libasound not found." >&2;}
6599    { (exit 1); exit 1; }; }
6600    alsa_found=no
6601
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 ac_ext=c
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
6611
6612 if test "x$enable_alsatest" = "xyes"; then
6613
6614 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
6615 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
6616 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   ac_check_lib_save_LIBS=$LIBS
6620 LIBS="-lasound  $LIBS"
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627
6628 /* Override any GCC internal prototype to avoid an error.
6629    Use char because int might match the return type of a GCC
6630    builtin and then its argument prototype would still apply.  */
6631 #ifdef __cplusplus
6632 extern "C"
6633 #endif
6634 char snd_ctl_open ();
6635 int
6636 main ()
6637 {
6638 return snd_ctl_open ();
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_link") 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } &&
6657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658   { (case "(($ac_try" in
6659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660   *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663   (eval "$ac_try") 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; } &&
6667          { ac_try='test -s conftest$ac_exeext'
6668   { (case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_try") 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; }; then
6677   ac_cv_lib_asound_snd_ctl_open=yes
6678 else
6679   echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682         ac_cv_lib_asound_snd_ctl_open=no
6683 fi
6684
6685 rm -f core conftest.err conftest.$ac_objext \
6686       conftest$ac_exeext conftest.$ac_ext
6687 LIBS=$ac_check_lib_save_LIBS
6688 fi
6689 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
6690 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
6691 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
6692   cat >>confdefs.h <<_ACEOF
6693 #define HAVE_LIBASOUND 1
6694 _ACEOF
6695
6696   LIBS="-lasound $LIBS"
6697
6698 else
6699   { { echo "$as_me:$LINENO: error: No linkable libasound was found." >&5
6700 echo "$as_me: error: No linkable libasound was found." >&2;}
6701    { (exit 1); exit 1; }; }
6702          alsa_found=no
6703
6704 fi
6705
6706 fi
6707
6708 if test "x$alsa_found" = "xyes" ; then
6709    :
6710    LIBS=`echo $LIBS | sed 's/-lasound//g'`
6711    LIBS=`echo $LIBS | sed 's/  //'`
6712    LIBS="-lasound $LIBS"
6713 fi
6714 if test "x$alsa_found" = "xno" ; then
6715    :
6716    CFLAGS="$alsa_save_CFLAGS"
6717    LDFLAGS="$alsa_save_LDFLAGS"
6718    LIBS="$alsa_save_LIBS"
6719    ALSA_CFLAGS=""
6720    ALSA_LIBS=""
6721 fi
6722
6723
6724
6725
6726
6727
6728 for ac_header in alsa/pcm.h
6729 do
6730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 #include <alsa/asoundlib.h>
6743
6744 #include <$ac_header>
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (ac_try="$ac_compile"
6748 case "(($ac_try" in
6749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750   *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753   (eval "$ac_compile") 2>conftest.er1
6754   ac_status=$?
6755   grep -v '^ *+' conftest.er1 >conftest.err
6756   rm -f conftest.er1
6757   cat conftest.err >&5
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); } &&
6760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6761   { (case "(($ac_try" in
6762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763   *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766   (eval "$ac_try") 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; } &&
6770          { ac_try='test -s conftest.$ac_objext'
6771   { (case "(($ac_try" in
6772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773   *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776   (eval "$ac_try") 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; }; then
6780   eval "$as_ac_Header=yes"
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785         eval "$as_ac_Header=no"
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 fi
6790 ac_res=`eval echo '${'$as_ac_Header'}'`
6791                { echo "$as_me:$LINENO: result: $ac_res" >&5
6792 echo "${ECHO_T}$ac_res" >&6; }
6793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6794   cat >>confdefs.h <<_ACEOF
6795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6796 _ACEOF
6797  have_pcm="yes"
6798 else
6799   have_pcm="no"
6800 fi
6801
6802 done
6803
6804
6805 for ac_header in alsa/mixer.h
6806 do
6807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819 #include <alsa/asoundlib.h>
6820
6821 #include <$ac_header>
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827   *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830   (eval "$ac_compile") 2>conftest.er1
6831   ac_status=$?
6832   grep -v '^ *+' conftest.er1 >conftest.err
6833   rm -f conftest.er1
6834   cat conftest.err >&5
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } &&
6837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838   { (case "(($ac_try" in
6839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840   *) ac_try_echo=$ac_try;;
6841 esac
6842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6843   (eval "$ac_try") 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; } &&
6847          { ac_try='test -s conftest.$ac_objext'
6848   { (case "(($ac_try" in
6849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850   *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853   (eval "$ac_try") 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   eval "$as_ac_Header=yes"
6858 else
6859   echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862         eval "$as_ac_Header=no"
6863 fi
6864
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 ac_res=`eval echo '${'$as_ac_Header'}'`
6868                { echo "$as_me:$LINENO: result: $ac_res" >&5
6869 echo "${ECHO_T}$ac_res" >&6; }
6870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6871   cat >>confdefs.h <<_ACEOF
6872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 _ACEOF
6874  have_mixer="yes"
6875 else
6876   have_mixer="no"
6877 fi
6878
6879 done
6880
6881
6882 for ac_header in alsa/rawmidi.h
6883 do
6884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 #include <alsa/asoundlib.h>
6897
6898 #include <$ac_header>
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_compile") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6915   { (case "(($ac_try" in
6916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917   *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920   (eval "$ac_try") 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; } &&
6924          { ac_try='test -s conftest.$ac_objext'
6925   { (case "(($ac_try" in
6926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927   *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930   (eval "$ac_try") 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; }; then
6934   eval "$as_ac_Header=yes"
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939         eval "$as_ac_Header=no"
6940 fi
6941
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 fi
6944 ac_res=`eval echo '${'$as_ac_Header'}'`
6945                { echo "$as_me:$LINENO: result: $ac_res" >&5
6946 echo "${ECHO_T}$ac_res" >&6; }
6947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6948   cat >>confdefs.h <<_ACEOF
6949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6950 _ACEOF
6951  have_rawmidi="yes"
6952 else
6953   have_rawmidi="no"
6954 fi
6955
6956 done
6957
6958
6959 for ac_header in alsa/seq.h
6960 do
6961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 #include <alsa/asoundlib.h>
6974
6975 #include <$ac_header>
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6979 case "(($ac_try" in
6980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981   *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984   (eval "$ac_compile") 2>conftest.er1
6985   ac_status=$?
6986   grep -v '^ *+' conftest.er1 >conftest.err
6987   rm -f conftest.er1
6988   cat conftest.err >&5
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); } &&
6991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6992   { (case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_try") 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; } &&
7001          { ac_try='test -s conftest.$ac_objext'
7002   { (case "(($ac_try" in
7003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004   *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007   (eval "$ac_try") 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; }; then
7011   eval "$as_ac_Header=yes"
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016         eval "$as_ac_Header=no"
7017 fi
7018
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 ac_res=`eval echo '${'$as_ac_Header'}'`
7022                { echo "$as_me:$LINENO: result: $ac_res" >&5
7023 echo "${ECHO_T}$ac_res" >&6; }
7024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7025   cat >>confdefs.h <<_ACEOF
7026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027 _ACEOF
7028  have_seq="yes"
7029 else
7030   have_seq="no"
7031 fi
7032
7033 done
7034
7035
7036
7037
7038 if test "$have_pcm" = "yes"; then
7039   HAVE_PCM_TRUE=
7040   HAVE_PCM_FALSE='#'
7041 else
7042   HAVE_PCM_TRUE='#'
7043   HAVE_PCM_FALSE=
7044 fi
7045
7046
7047
7048 if test "$have_mixer" = "yes"; then
7049   HAVE_MIXER_TRUE=
7050   HAVE_MIXER_FALSE='#'
7051 else
7052   HAVE_MIXER_TRUE='#'
7053   HAVE_MIXER_FALSE=
7054 fi
7055
7056
7057
7058 if test "$have_rawmidi" = "yes"; then
7059   HAVE_RAWMIDI_TRUE=
7060   HAVE_RAWMIDI_FALSE='#'
7061 else
7062   HAVE_RAWMIDI_TRUE='#'
7063   HAVE_RAWMIDI_FALSE=
7064 fi
7065
7066
7067
7068 if test "$have_seq" = "yes"; then
7069   HAVE_SEQ_TRUE=
7070   HAVE_SEQ_FALSE='#'
7071 else
7072   HAVE_SEQ_TRUE='#'
7073   HAVE_SEQ_FALSE=
7074 fi
7075
7076
7077 LIBRT=""
7078 { echo "$as_me:$LINENO: checking for librt" >&5
7079 echo $ECHO_N "checking for librt... $ECHO_C" >&6; }
7080
7081 # Check whether --with-librt was given.
7082 if test "${with_librt+set}" = set; then
7083   withval=$with_librt;  have_librt="$withval"
7084 else
7085    have_librt="yes"
7086 fi
7087
7088 if test "$have_librt" = "yes"; then
7089   { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
7090 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
7091 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   ac_check_lib_save_LIBS=$LIBS
7095 LIBS="-lrt  $LIBS"
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102
7103 /* Override any GCC internal prototype to avoid an error.
7104    Use char because int might match the return type of a GCC
7105    builtin and then its argument prototype would still apply.  */
7106 #ifdef __cplusplus
7107 extern "C"
7108 #endif
7109 char clock_gettime ();
7110 int
7111 main ()
7112 {
7113 return clock_gettime ();
7114   ;
7115   return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7120 case "(($ac_try" in
7121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122   *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125   (eval "$ac_link") 2>conftest.er1
7126   ac_status=$?
7127   grep -v '^ *+' conftest.er1 >conftest.err
7128   rm -f conftest.er1
7129   cat conftest.err >&5
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); } &&
7132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7133   { (case "(($ac_try" in
7134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135   *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138   (eval "$ac_try") 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); }; } &&
7142          { ac_try='test -s conftest$ac_exeext'
7143   { (case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148   (eval "$ac_try") 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   ac_cv_lib_rt_clock_gettime=yes
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157         ac_cv_lib_rt_clock_gettime=no
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext \
7161       conftest$ac_exeext conftest.$ac_ext
7162 LIBS=$ac_check_lib_save_LIBS
7163 fi
7164 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
7165 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
7166 if test $ac_cv_lib_rt_clock_gettime = yes; then
7167   HAVE_LIBRT="yes"
7168 fi
7169
7170   if test "$HAVE_LIBRT" = "yes" ; then
7171     LIBRT="-lrt"
7172
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_LIBRT 1
7175 _ACEOF
7176
7177
7178 cat >>confdefs.h <<\_ACEOF
7179 #define HAVE_CLOCK_GETTIME 1
7180 _ACEOF
7181
7182   fi
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188 CURSESINC=""
7189 CURSESLIB=""
7190 CURSES_CFLAGS=""
7191 alsamixer=
7192 if test "$have_mixer" = "yes"; then
7193 # Check whether --enable-alsamixer was given.
7194 if test "${enable_alsamixer+set}" = set; then
7195   enableval=$enable_alsamixer; case "${enableval}" in
7196        yes) alsamixer=true ;;
7197        no)  alsamixer=false ;;
7198        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsamixer" >&5
7199 echo "$as_me: error: bad value ${enableval} for --enable-alsamixer" >&2;}
7200    { (exit 1); exit 1; }; } ;;
7201      esac
7202 else
7203   alsamixer=true
7204 fi
7205
7206 fi
7207
7208
7209 if test x$alsamixer = xtrue; then
7210   ALSAMIXER_TRUE=
7211   ALSAMIXER_FALSE='#'
7212 else
7213   ALSAMIXER_TRUE='#'
7214   ALSAMIXER_FALSE=
7215 fi
7216
7217
7218 # Check whether --enable-alsaconf was given.
7219 if test "${enable_alsaconf+set}" = set; then
7220   enableval=$enable_alsaconf; case "${enableval}" in
7221        yes) alsaconf=true ;;
7222        no)  alsaconf=false ;;
7223        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsaconf" >&5
7224 echo "$as_me: error: bad value ${enableval} for --enable-alsaconf" >&2;}
7225    { (exit 1); exit 1; }; } ;;
7226      esac
7227 else
7228   alsaconf=true
7229 fi
7230
7231
7232
7233 if test x$alsaconf = xtrue; then
7234   ALSACONF_TRUE=
7235   ALSACONF_FALSE='#'
7236 else
7237   ALSACONF_TRUE='#'
7238   ALSACONF_FALSE=
7239 fi
7240
7241
7242 xmlto=""
7243 if test x"$alsaconf" = xtrue; then
7244    # Check whether --enable-xmlto was given.
7245 if test "${enable_xmlto+set}" = set; then
7246   enableval=$enable_xmlto; xmlto="$enableval"
7247 else
7248   xmlto="yes"
7249 fi
7250
7251    if test "$xmlto" = "yes"; then
7252       # Extract the first word of "xmlto", so it can be a program name with args.
7253 set dummy xmlto; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_prog_xmlto+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test -n "$xmlto"; then
7260   ac_cv_prog_xmlto="$xmlto" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267   for ac_exec_ext in '' $ac_executable_extensions; do
7268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7269     ac_cv_prog_xmlto="yes"
7270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 xmlto=$ac_cv_prog_xmlto
7280 if test -n "$xmlto"; then
7281   { echo "$as_me:$LINENO: result: $xmlto" >&5
7282 echo "${ECHO_T}$xmlto" >&6; }
7283 else
7284   { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7286 fi
7287
7288
7289    fi
7290 fi
7291
7292
7293 if test x"$xmlto" = xyes; then
7294   USE_XMLTO_TRUE=
7295   USE_XMLTO_FALSE='#'
7296 else
7297   USE_XMLTO_TRUE='#'
7298   USE_XMLTO_FALSE=
7299 fi
7300
7301
7302 ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7309 # On Suns, sometimes $CPP names a directory.
7310 if test -n "$CPP" && test -d "$CPP"; then
7311   CPP=
7312 fi
7313 if test -z "$CPP"; then
7314   if test "${ac_cv_prog_CPP+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317       # Double quotes because CPP needs to be expanded
7318     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7319     do
7320       ac_preproc_ok=false
7321 for ac_c_preproc_warn_flag in '' yes
7322 do
7323   # Use a header file that comes with gcc, so configuring glibc
7324   # with a fresh cross-compiler works.
7325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326   # <limits.h> exists even on freestanding compilers.
7327   # On the NeXT, cc -E runs the code through the compiler's parser,
7328   # not just through cpp. "Syntax error" is here to catch this case.
7329   cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340                      Syntax error
7341 _ACEOF
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7343 case "(($ac_try" in
7344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345   *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } >/dev/null; then
7355   if test -s conftest.err; then
7356     ac_cpp_err=$ac_c_preproc_warn_flag
7357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7358   else
7359     ac_cpp_err=
7360   fi
7361 else
7362   ac_cpp_err=yes
7363 fi
7364 if test -z "$ac_cpp_err"; then
7365   :
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370   # Broken: fails on valid input.
7371 continue
7372 fi
7373
7374 rm -f conftest.err conftest.$ac_ext
7375
7376   # OK, works on sane cases.  Now check whether nonexistent headers
7377   # can be detected and how.
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #include <ac_nonexistent.h>
7385 _ACEOF
7386 if { (ac_try="$ac_cpp conftest.$ac_ext"
7387 case "(($ac_try" in
7388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389   *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7393   ac_status=$?
7394   grep -v '^ *+' conftest.er1 >conftest.err
7395   rm -f conftest.er1
7396   cat conftest.err >&5
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } >/dev/null; then
7399   if test -s conftest.err; then
7400     ac_cpp_err=$ac_c_preproc_warn_flag
7401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7402   else
7403     ac_cpp_err=
7404   fi
7405 else
7406   ac_cpp_err=yes
7407 fi
7408 if test -z "$ac_cpp_err"; then
7409   # Broken: success on invalid input.
7410 continue
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415   # Passes both tests.
7416 ac_preproc_ok=:
7417 break
7418 fi
7419
7420 rm -f conftest.err conftest.$ac_ext
7421
7422 done
7423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424 rm -f conftest.err conftest.$ac_ext
7425 if $ac_preproc_ok; then
7426   break
7427 fi
7428
7429     done
7430     ac_cv_prog_CPP=$CPP
7431
7432 fi
7433   CPP=$ac_cv_prog_CPP
7434 else
7435   ac_cv_prog_CPP=$CPP
7436 fi
7437 { echo "$as_me:$LINENO: result: $CPP" >&5
7438 echo "${ECHO_T}$CPP" >&6; }
7439 ac_preproc_ok=false
7440 for ac_c_preproc_warn_flag in '' yes
7441 do
7442   # Use a header file that comes with gcc, so configuring glibc
7443   # with a fresh cross-compiler works.
7444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445   # <limits.h> exists even on freestanding compilers.
7446   # On the NeXT, cc -E runs the code through the compiler's parser,
7447   # not just through cpp. "Syntax error" is here to catch this case.
7448   cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #ifdef __STDC__
7455 # include <limits.h>
7456 #else
7457 # include <assert.h>
7458 #endif
7459                      Syntax error
7460 _ACEOF
7461 if { (ac_try="$ac_cpp conftest.$ac_ext"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } >/dev/null; then
7474   if test -s conftest.err; then
7475     ac_cpp_err=$ac_c_preproc_warn_flag
7476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7477   else
7478     ac_cpp_err=
7479   fi
7480 else
7481   ac_cpp_err=yes
7482 fi
7483 if test -z "$ac_cpp_err"; then
7484   :
7485 else
7486   echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489   # Broken: fails on valid input.
7490 continue
7491 fi
7492
7493 rm -f conftest.err conftest.$ac_ext
7494
7495   # OK, works on sane cases.  Now check whether nonexistent headers
7496   # can be detected and how.
7497   cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503 #include <ac_nonexistent.h>
7504 _ACEOF
7505 if { (ac_try="$ac_cpp conftest.$ac_ext"
7506 case "(($ac_try" in
7507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508   *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7512   ac_status=$?
7513   grep -v '^ *+' conftest.er1 >conftest.err
7514   rm -f conftest.er1
7515   cat conftest.err >&5
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } >/dev/null; then
7518   if test -s conftest.err; then
7519     ac_cpp_err=$ac_c_preproc_warn_flag
7520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7521   else
7522     ac_cpp_err=
7523   fi
7524 else
7525   ac_cpp_err=yes
7526 fi
7527 if test -z "$ac_cpp_err"; then
7528   # Broken: success on invalid input.
7529 continue
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534   # Passes both tests.
7535 ac_preproc_ok=:
7536 break
7537 fi
7538
7539 rm -f conftest.err conftest.$ac_ext
7540
7541 done
7542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7543 rm -f conftest.err conftest.$ac_ext
7544 if $ac_preproc_ok; then
7545   :
7546 else
7547   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7548 See \`config.log' for more details." >&5
7549 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7550 See \`config.log' for more details." >&2;}
7551    { (exit 1); exit 1; }; }
7552 fi
7553
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560
7561 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7562 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7563 if test "${ac_cv_path_GREP+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   # Extract the first word of "grep ggrep" to use in msg output
7567 if test -z "$GREP"; then
7568 set dummy grep ggrep; ac_prog_name=$2
7569 if test "${ac_cv_path_GREP+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   ac_path_GREP_found=false
7573 # Loop through the user's path and test for each of PROGNAME-LIST
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579   for ac_prog in grep ggrep; do
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7582     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7583     # Check for GNU ac_path_GREP and select it if it is found.
7584   # Check for GNU $ac_path_GREP
7585 case `"$ac_path_GREP" --version 2>&1` in
7586 *GNU*)
7587   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7588 *)
7589   ac_count=0
7590   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7591   while :
7592   do
7593     cat "conftest.in" "conftest.in" >"conftest.tmp"
7594     mv "conftest.tmp" "conftest.in"
7595     cp "conftest.in" "conftest.nl"
7596     echo 'GREP' >> "conftest.nl"
7597     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7599     ac_count=`expr $ac_count + 1`
7600     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7601       # Best one so far, save it but keep looking for a better one
7602       ac_cv_path_GREP="$ac_path_GREP"
7603       ac_path_GREP_max=$ac_count
7604     fi
7605     # 10*(2^10) chars as input seems more than enough
7606     test $ac_count -gt 10 && break
7607   done
7608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7609 esac
7610
7611
7612     $ac_path_GREP_found && break 3
7613   done
7614 done
7615
7616 done
7617 IFS=$as_save_IFS
7618
7619
7620 fi
7621
7622 GREP="$ac_cv_path_GREP"
7623 if test -z "$GREP"; then
7624   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7625 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7626    { (exit 1); exit 1; }; }
7627 fi
7628
7629 else
7630   ac_cv_path_GREP=$GREP
7631 fi
7632
7633
7634 fi
7635 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7636 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7637  GREP="$ac_cv_path_GREP"
7638
7639
7640 { echo "$as_me:$LINENO: checking for egrep" >&5
7641 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_EGREP+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7646    then ac_cv_path_EGREP="$GREP -E"
7647    else
7648      # Extract the first word of "egrep" to use in msg output
7649 if test -z "$EGREP"; then
7650 set dummy egrep; ac_prog_name=$2
7651 if test "${ac_cv_path_EGREP+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   ac_path_EGREP_found=false
7655 # Loop through the user's path and test for each of PROGNAME-LIST
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661   for ac_prog in egrep; do
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7664     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7665     # Check for GNU ac_path_EGREP and select it if it is found.
7666   # Check for GNU $ac_path_EGREP
7667 case `"$ac_path_EGREP" --version 2>&1` in
7668 *GNU*)
7669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7670 *)
7671   ac_count=0
7672   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7673   while :
7674   do
7675     cat "conftest.in" "conftest.in" >"conftest.tmp"
7676     mv "conftest.tmp" "conftest.in"
7677     cp "conftest.in" "conftest.nl"
7678     echo 'EGREP' >> "conftest.nl"
7679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7681     ac_count=`expr $ac_count + 1`
7682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7683       # Best one so far, save it but keep looking for a better one
7684       ac_cv_path_EGREP="$ac_path_EGREP"
7685       ac_path_EGREP_max=$ac_count
7686     fi
7687     # 10*(2^10) chars as input seems more than enough
7688     test $ac_count -gt 10 && break
7689   done
7690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7691 esac
7692
7693
7694     $ac_path_EGREP_found && break 3
7695   done
7696 done
7697
7698 done
7699 IFS=$as_save_IFS
7700
7701
7702 fi
7703
7704 EGREP="$ac_cv_path_EGREP"
7705 if test -z "$EGREP"; then
7706   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7707 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7708    { (exit 1); exit 1; }; }
7709 fi
7710
7711 else
7712   ac_cv_path_EGREP=$EGREP
7713 fi
7714
7715
7716    fi
7717 fi
7718 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7719 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7720  EGREP="$ac_cv_path_EGREP"
7721
7722
7723 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7725 if test "${ac_cv_header_stdc+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 #include <stdlib.h>
7735 #include <stdarg.h>
7736 #include <string.h>
7737 #include <float.h>
7738
7739 int
7740 main ()
7741 {
7742
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_compile") 2>conftest.er1
7755   ac_status=$?
7756   grep -v '^ *+' conftest.er1 >conftest.err
7757   rm -f conftest.er1
7758   cat conftest.err >&5
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } &&
7761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7762   { (case "(($ac_try" in
7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764   *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767   (eval "$ac_try") 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_try") 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   ac_cv_header_stdc=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786         ac_cv_header_stdc=no
7787 fi
7788
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790
7791 if test $ac_cv_header_stdc = yes; then
7792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7793   cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 #include <string.h>
7800
7801 _ACEOF
7802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7803   $EGREP "memchr" >/dev/null 2>&1; then
7804   :
7805 else
7806   ac_cv_header_stdc=no
7807 fi
7808 rm -f conftest*
7809
7810 fi
7811
7812 if test $ac_cv_header_stdc = yes; then
7813   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7814   cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820 #include <stdlib.h>
7821
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824   $EGREP "free" >/dev/null 2>&1; then
7825   :
7826 else
7827   ac_cv_header_stdc=no
7828 fi
7829 rm -f conftest*
7830
7831 fi
7832
7833 if test $ac_cv_header_stdc = yes; then
7834   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7835   if test "$cross_compiling" = yes; then
7836   :
7837 else
7838   cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844 #include <ctype.h>
7845 #include <stdlib.h>
7846 #if ((' ' & 0x0FF) == 0x020)
7847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7849 #else
7850 # define ISLOWER(c) \
7851                    (('a' <= (c) && (c) <= 'i') \
7852                      || ('j' <= (c) && (c) <= 'r') \
7853                      || ('s' <= (c) && (c) <= 'z'))
7854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7855 #endif
7856
7857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7858 int
7859 main ()
7860 {
7861   int i;
7862   for (i = 0; i < 256; i++)
7863     if (XOR (islower (i), ISLOWER (i))
7864         || toupper (i) != TOUPPER (i))
7865       return 2;
7866   return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7871 case "(($ac_try" in
7872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873   *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876   (eval "$ac_link") 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7880   { (case "(($ac_try" in
7881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882   *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885   (eval "$ac_try") 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; }; then
7889   :
7890 else
7891   echo "$as_me: program exited with status $ac_status" >&5
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ( exit $ac_status )
7896 ac_cv_header_stdc=no
7897 fi
7898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7899 fi
7900
7901
7902 fi
7903 fi
7904 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7905 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7906 if test $ac_cv_header_stdc = yes; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define STDC_HEADERS 1
7910 _ACEOF
7911
7912 fi
7913
7914 if test x$alsamixer = xtrue; then
7915
7916 # Check whether --with-curses was given.
7917 if test "${with_curses+set}" = set; then
7918   withval=$with_curses; curseslib="$withval"
7919 else
7920   curseslib="auto"
7921 fi
7922
7923   CURSESLIBDIR=""
7924   NCURSESLIBSUFFIX=""
7925   CURSES_NLS="no"
7926   if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then
7927     # Extract the first word of "ncursesw5-config", so it can be a program name with args.
7928 set dummy ncursesw5-config; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_prog_ncursesw5_config+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   if test -n "$ncursesw5_config"; then
7935   ac_cv_prog_ncursesw5_config="$ncursesw5_config" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942   for ac_exec_ext in '' $ac_executable_extensions; do
7943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7944     ac_cv_prog_ncursesw5_config="yes"
7945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 ncursesw5_config=$ac_cv_prog_ncursesw5_config
7955 if test -n "$ncursesw5_config"; then
7956   { echo "$as_me:$LINENO: result: $ncursesw5_config" >&5
7957 echo "${ECHO_T}$ncursesw5_config" >&6; }
7958 else
7959   { echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6; }
7961 fi
7962
7963
7964     if test "$ncursesw5_config" = "yes"; then
7965       CURSESINC="<ncurses.h>"
7966       CURSESLIB=`ncursesw5-config --libs`
7967       CURSESLIBDIR=`ncursesw5-config --libdir`
7968       CURSES_CFLAGS=`ncursesw5-config --cflags`
7969       curseslib="ncursesw"
7970     else
7971       { echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
7972 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6; }
7973 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   ac_check_lib_save_LIBS=$LIBS
7977 LIBS="-lncursesw  $LIBS"
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984
7985 /* Override any GCC internal prototype to avoid an error.
7986    Use char because int might match the return type of a GCC
7987    builtin and then its argument prototype would still apply.  */
7988 #ifdef __cplusplus
7989 extern "C"
7990 #endif
7991 char initscr ();
7992 int
7993 main ()
7994 {
7995 return initscr ();
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_link") 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015   { (case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020   (eval "$ac_try") 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; } &&
8024          { ac_try='test -s conftest$ac_exeext'
8025   { (case "(($ac_try" in
8026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027   *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030   (eval "$ac_try") 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; }; then
8034   ac_cv_lib_ncursesw_initscr=yes
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039         ac_cv_lib_ncursesw_initscr=no
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext \
8043       conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8045 fi
8046 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
8047 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6; }
8048 if test $ac_cv_lib_ncursesw_initscr = yes; then
8049    CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"
8050 fi
8051
8052     fi
8053     if test -n "$CURSESINC"; then
8054       NCURSESLIBSUFFIX="w"
8055       CURSES_NLS="yes"
8056     fi
8057   fi
8058   if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
8059     # Extract the first word of "ncurses5-config", so it can be a program name with args.
8060 set dummy ncurses5-config; ac_word=$2
8061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063 if test "${ac_cv_prog_ncurses5_config+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   if test -n "$ncurses5_config"; then
8067   ac_cv_prog_ncurses5_config="$ncurses5_config" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074   for ac_exec_ext in '' $ac_executable_extensions; do
8075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076     ac_cv_prog_ncurses5_config="yes"
8077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 ncurses5_config=$ac_cv_prog_ncurses5_config
8087 if test -n "$ncurses5_config"; then
8088   { echo "$as_me:$LINENO: result: $ncurses5_config" >&5
8089 echo "${ECHO_T}$ncurses5_config" >&6; }
8090 else
8091   { echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6; }
8093 fi
8094
8095
8096     if test "$ncurses5_config" = "yes"; then
8097       CURSESINC="<ncurses.h>"
8098       CURSESLIB=`ncurses5-config --libs`
8099       CURSESLIBDIR=`ncurses5-config --libdir`
8100       CURSES_CFLAGS=`ncurses5-config --cflags`
8101       curseslib="ncurses"
8102     else
8103       { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
8104 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
8105 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lncurses  $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116
8117 /* Override any GCC internal prototype to avoid an error.
8118    Use char because int might match the return type of a GCC
8119    builtin and then its argument prototype would still apply.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char initscr ();
8124 int
8125 main ()
8126 {
8127 return initscr ();
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8134 case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_link") 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8147   { (case "(($ac_try" in
8148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149   *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152   (eval "$ac_try") 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; } &&
8156          { ac_try='test -s conftest$ac_exeext'
8157   { (case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_try") 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_cv_lib_ncurses_initscr=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171         ac_cv_lib_ncurses_initscr=no
8172 fi
8173
8174 rm -f core conftest.err conftest.$ac_objext \
8175       conftest$ac_exeext conftest.$ac_ext
8176 LIBS=$ac_check_lib_save_LIBS
8177 fi
8178 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
8179 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
8180 if test $ac_cv_lib_ncurses_initscr = yes; then
8181    CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"
8182 fi
8183
8184     fi
8185   fi
8186   if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
8187     { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
8188 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
8189 if test "${ac_cv_lib_curses_initscr+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lcurses  $LIBS"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200
8201 /* Override any GCC internal prototype to avoid an error.
8202    Use char because int might match the return type of a GCC
8203    builtin and then its argument prototype would still apply.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 char initscr ();
8208 int
8209 main ()
8210 {
8211 return initscr ();
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8218 case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_link") 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231   { (case "(($ac_try" in
8232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233   *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236   (eval "$ac_try") 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; } &&
8240          { ac_try='test -s conftest$ac_exeext'
8241   { (case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_try") 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_cv_lib_curses_initscr=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255         ac_cv_lib_curses_initscr=no
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext \
8259       conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8261 fi
8262 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
8263 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
8264 if test $ac_cv_lib_curses_initscr = yes; then
8265    CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"
8266 fi
8267
8268   fi
8269   if test -z "$CURSESINC"; then
8270      { { echo "$as_me:$LINENO: error: this packages requires a curses library" >&5
8271 echo "$as_me: error: this packages requires a curses library" >&2;}
8272    { (exit 1); exit 1; }; }
8273   fi
8274
8275   { echo "$as_me:$LINENO: checking for curses library" >&5
8276 echo $ECHO_N "checking for curses library... $ECHO_C" >&6; }
8277   { echo "$as_me:$LINENO: result: $curseslib" >&5
8278 echo "${ECHO_T}$curseslib" >&6; }
8279   { echo "$as_me:$LINENO: checking for curses header name" >&5
8280 echo $ECHO_N "checking for curses header name... $ECHO_C" >&6; }
8281   { echo "$as_me:$LINENO: result: $CURSESINC" >&5
8282 echo "${ECHO_T}$CURSESINC" >&6; }
8283   { echo "$as_me:$LINENO: checking for curses compiler flags" >&5
8284 echo $ECHO_N "checking for curses compiler flags... $ECHO_C" >&6; }
8285   { echo "$as_me:$LINENO: result: $CURSES_CFLAGS" >&5
8286 echo "${ECHO_T}$CURSES_CFLAGS" >&6; }
8287
8288         if test -n "$CURSESLIBDIR"; then
8289     if test "-L$CURSESLIBDIR " = "$(echo $CURSESLIB | cut -c-$((${#CURSESLIBDIR}+3)) )"; then
8290       CURSESLIB="$(echo $CURSESLIB | cut -c$((${#CURSESLIBDIR}+4))-)"
8291     fi
8292   fi
8293
8294   saved_CFLAGS="$CFLAGS"
8295   saved_LDFLAGS="$LDFLAGS"
8296   saved_LIBS="$LIBS"
8297   CFLAGS="$CFLAGS $CURSES_CFLAGS"
8298   if test -n "$CURSESLIBDIR"; then
8299     LDFLAGS="$LDFLAGS -L$CURSESLIBDIR"
8300   fi
8301   LIBS="$CURSESLIB $LIBS"
8302
8303   cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 #include <panel.h>
8310 int
8311 main ()
8312 {
8313 set_escdelay(100);
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (ac_try="$ac_link"
8320 case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325   (eval "$ac_link") 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } &&
8332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8333   { (case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338   (eval "$ac_try") 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; } &&
8342          { ac_try='test -s conftest$ac_exeext'
8343   { (case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_try") 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   HAVE_CURSES_ESCDELAY="yes"
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357
8358 fi
8359
8360 rm -f core conftest.err conftest.$ac_objext \
8361       conftest$ac_exeext conftest.$ac_ext
8362   if test "$HAVE_CURSES_ESCDELAY" = "yes"; then
8363
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_CURSES_ESCDELAY 1
8366 _ACEOF
8367
8368   fi
8369
8370   if test "$USE_NLS" = "yes"; then
8371     { echo "$as_me:$LINENO: checking for curses NLS support" >&5
8372 echo $ECHO_N "checking for curses NLS support... $ECHO_C" >&6; }
8373                     if test "$curseslib" = "curses"; then
8374       cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380
8381           #define _XOPEN_SOURCE 1
8382           #define _XOPEN_SOURCE_EXTENDED 1
8383           #include <curses.h>
8384
8385 int
8386 main ()
8387 {
8388
8389           cchar_t wc;
8390           setcchar(&wc, L"x", A_NORMAL, 0, 0);
8391
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 if { (ac_try="$ac_link"
8398 case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_link") 2>conftest.er1
8404   ac_status=$?
8405   grep -v '^ *+' conftest.er1 >conftest.err
8406   rm -f conftest.er1
8407   cat conftest.err >&5
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); } &&
8410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8411   { (case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_try") 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_try") 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   CURSES_NLS="yes"
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext \
8439       conftest$ac_exeext conftest.$ac_ext
8440     fi
8441     { echo "$as_me:$LINENO: result: $CURSES_NLS" >&5
8442 echo "${ECHO_T}$CURSES_NLS" >&6; }
8443     if test "$CURSES_NLS" = "yes"; then
8444
8445 cat >>confdefs.h <<\_ACEOF
8446 #define ENABLE_NLS_IN_CURSES 1
8447 _ACEOF
8448
8449     fi
8450   fi
8451
8452   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8463                   inttypes.h stdint.h unistd.h
8464 do
8465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 $ac_includes_default
8478
8479 #include <$ac_header>
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_compile") 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496   { (case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_try") 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; } &&
8505          { ac_try='test -s conftest.$ac_objext'
8506   { (case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_try") 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   eval "$as_ac_Header=yes"
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520         eval "$as_ac_Header=no"
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 ac_res=`eval echo '${'$as_ac_Header'}'`
8526                { echo "$as_me:$LINENO: result: $ac_res" >&5
8527 echo "${ECHO_T}$ac_res" >&6; }
8528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8529   cat >>confdefs.h <<_ACEOF
8530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8531 _ACEOF
8532
8533 fi
8534
8535 done
8536
8537
8538
8539
8540
8541 for ac_header in panel.h menu.h form.h
8542 do
8543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 fi
8550 ac_res=`eval echo '${'$as_ac_Header'}'`
8551                { echo "$as_me:$LINENO: result: $ac_res" >&5
8552 echo "${ECHO_T}$ac_res" >&6; }
8553 else
8554   # Is the header compilable?
8555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 $ac_includes_default
8564 #include <$ac_header>
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8568 case "(($ac_try" in
8569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570   *) ac_try_echo=$ac_try;;
8571 esac
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573   (eval "$ac_compile") 2>conftest.er1
8574   ac_status=$?
8575   grep -v '^ *+' conftest.er1 >conftest.err
8576   rm -f conftest.er1
8577   cat conftest.err >&5
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } &&
8580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8581   { (case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_try") 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; } &&
8590          { ac_try='test -s conftest.$ac_objext'
8591   { (case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_try") 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_header_compiler=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605         ac_header_compiler=no
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8610 echo "${ECHO_T}$ac_header_compiler" >&6; }
8611
8612 # Is the header present?
8613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 #include <$ac_header>
8622 _ACEOF
8623 if { (ac_try="$ac_cpp conftest.$ac_ext"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } >/dev/null; then
8636   if test -s conftest.err; then
8637     ac_cpp_err=$ac_c_preproc_warn_flag
8638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8639   else
8640     ac_cpp_err=
8641   fi
8642 else
8643   ac_cpp_err=yes
8644 fi
8645 if test -z "$ac_cpp_err"; then
8646   ac_header_preproc=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651   ac_header_preproc=no
8652 fi
8653
8654 rm -f conftest.err conftest.$ac_ext
8655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8656 echo "${ECHO_T}$ac_header_preproc" >&6; }
8657
8658 # So?  What about this header?
8659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660   yes:no: )
8661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8665     ac_header_preproc=yes
8666     ;;
8667   no:yes:* )
8668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8680
8681     ;;
8682 esac
8683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   eval "$as_ac_Header=\$ac_header_preproc"
8689 fi
8690 ac_res=`eval echo '${'$as_ac_Header'}'`
8691                { echo "$as_me:$LINENO: result: $ac_res" >&5
8692 echo "${ECHO_T}$ac_res" >&6; }
8693
8694 fi
8695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8696   cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 else
8701   { { echo "$as_me:$LINENO: error: required curses helper header not found" >&5
8702 echo "$as_me: error: required curses helper header not found" >&2;}
8703    { (exit 1); exit 1; }; }
8704 fi
8705
8706 done
8707
8708   as_ac_Lib=`echo "ac_cv_lib_panel$NCURSESLIBSUFFIX''_new_panel" | $as_tr_sh`
8709 { echo "$as_me:$LINENO: checking for new_panel in -lpanel$NCURSESLIBSUFFIX" >&5
8710 echo $ECHO_N "checking for new_panel in -lpanel$NCURSESLIBSUFFIX... $ECHO_C" >&6; }
8711 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   ac_check_lib_save_LIBS=$LIBS
8715 LIBS="-lpanel$NCURSESLIBSUFFIX  $LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722
8723 /* Override any GCC internal prototype to avoid an error.
8724    Use char because int might match the return type of a GCC
8725    builtin and then its argument prototype would still apply.  */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 char new_panel ();
8730 int
8731 main ()
8732 {
8733 return new_panel ();
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (ac_try="$ac_link"
8740 case "(($ac_try" in
8741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742   *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745   (eval "$ac_link") 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753   { (case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758   (eval "$ac_try") 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; } &&
8762          { ac_try='test -s conftest$ac_exeext'
8763   { (case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_try") 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; }; then
8772   eval "$as_ac_Lib=yes"
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777         eval "$as_ac_Lib=no"
8778 fi
8779
8780 rm -f core conftest.err conftest.$ac_objext \
8781       conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8783 fi
8784 ac_res=`eval echo '${'$as_ac_Lib'}'`
8785                { echo "$as_me:$LINENO: result: $ac_res" >&5
8786 echo "${ECHO_T}$ac_res" >&6; }
8787 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8788   CURSESLIB="-lpanel$NCURSESLIBSUFFIX $CURSESLIB"
8789 else
8790   { { echo "$as_me:$LINENO: error: panel$NCURSESLIBSUFFIX library not found" >&5
8791 echo "$as_me: error: panel$NCURSESLIBSUFFIX library not found" >&2;}
8792    { (exit 1); exit 1; }; }
8793 fi
8794
8795   as_ac_Lib=`echo "ac_cv_lib_menu$NCURSESLIBSUFFIX''_new_menu" | $as_tr_sh`
8796 { echo "$as_me:$LINENO: checking for new_menu in -lmenu$NCURSESLIBSUFFIX" >&5
8797 echo $ECHO_N "checking for new_menu in -lmenu$NCURSESLIBSUFFIX... $ECHO_C" >&6; }
8798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-lmenu$NCURSESLIBSUFFIX  $LIBS"
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809
8810 /* Override any GCC internal prototype to avoid an error.
8811    Use char because int might match the return type of a GCC
8812    builtin and then its argument prototype would still apply.  */
8813 #ifdef __cplusplus
8814 extern "C"
8815 #endif
8816 char new_menu ();
8817 int
8818 main ()
8819 {
8820 return new_menu ();
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (ac_try="$ac_link"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_link") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840   { (case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_try") 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; } &&
8849          { ac_try='test -s conftest$ac_exeext'
8850   { (case "(($ac_try" in
8851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852   *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855   (eval "$ac_try") 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   eval "$as_ac_Lib=yes"
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864         eval "$as_ac_Lib=no"
8865 fi
8866
8867 rm -f core conftest.err conftest.$ac_objext \
8868       conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8870 fi
8871 ac_res=`eval echo '${'$as_ac_Lib'}'`
8872                { echo "$as_me:$LINENO: result: $ac_res" >&5
8873 echo "${ECHO_T}$ac_res" >&6; }
8874 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8875   CURSESLIB="-lmenu$NCURSESLIBSUFFIX $CURSESLIB"
8876 else
8877   { { echo "$as_me:$LINENO: error: menu$NCURSESLIBSUFFIX library not found" >&5
8878 echo "$as_me: error: menu$NCURSESLIBSUFFIX library not found" >&2;}
8879    { (exit 1); exit 1; }; }
8880 fi
8881
8882   as_ac_Lib=`echo "ac_cv_lib_form$NCURSESLIBSUFFIX''_new_form" | $as_tr_sh`
8883 { echo "$as_me:$LINENO: checking for new_form in -lform$NCURSESLIBSUFFIX" >&5
8884 echo $ECHO_N "checking for new_form in -lform$NCURSESLIBSUFFIX... $ECHO_C" >&6; }
8885 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   ac_check_lib_save_LIBS=$LIBS
8889 LIBS="-lform$NCURSESLIBSUFFIX  $LIBS"
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 /* Override any GCC internal prototype to avoid an error.
8898    Use char because int might match the return type of a GCC
8899    builtin and then its argument prototype would still apply.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char new_form ();
8904 int
8905 main ()
8906 {
8907 return new_form ();
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   eval "$as_ac_Lib=yes"
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951         eval "$as_ac_Lib=no"
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext \
8955       conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8957 fi
8958 ac_res=`eval echo '${'$as_ac_Lib'}'`
8959                { echo "$as_me:$LINENO: result: $ac_res" >&5
8960 echo "${ECHO_T}$ac_res" >&6; }
8961 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8962   CURSESLIB="-lform$NCURSESLIBSUFFIX $CURSESLIB"
8963 else
8964   { { echo "$as_me:$LINENO: error: form$NCURSESLIBSUFFIX library not found" >&5
8965 echo "$as_me: error: form$NCURSESLIBSUFFIX library not found" >&2;}
8966    { (exit 1); exit 1; }; }
8967 fi
8968
8969
8970   CFLAGS="$saved_CFLAGS"
8971   LDFLAGS="$saved_LDFLAGS"
8972   LIBS="$saved_LIBS"
8973
8974   if test -n "$CURSESLIBDIR"; then
8975     CURSESLIB="-L$CURSESLIBDIR $CURSESLIB"
8976   fi
8977
8978   { echo "$as_me:$LINENO: checking for curses linker flags" >&5
8979 echo $ECHO_N "checking for curses linker flags... $ECHO_C" >&6; }
8980   { echo "$as_me:$LINENO: result: $CURSESLIB" >&5
8981 echo "${ECHO_T}$CURSESLIB" >&6; }
8982 fi
8983
8984
8985
8986
8987
8988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8989
8990 eval dir="$datadir"
8991 case "$dir" in
8992 /*) ;;
8993 *) dir="$prefix/share"
8994 esac
8995
8996 soundsdir="$dir/sounds/alsa"
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define SOUNDSDIR "$soundsdir"
9000 _ACEOF
9001
9002
9003 mydatadir="$dir/alsa"
9004
9005 cat >>confdefs.h <<_ACEOF
9006 #define DATADIR "$mydatadir"
9007 _ACEOF
9008
9009
9010
9011 # Check whether --with-testsound was given.
9012 if test "${with_testsound+set}" = set; then
9013   withval=$with_testsound; TESTSOUND="$withval"
9014 else
9015   TESTSOUND="$dir/test.wav"
9016 fi
9017
9018
9019
9020 ac_config_headers="$ac_config_headers include/aconfig.h"
9021
9022
9023 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9024 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9025 if test "${ac_cv_c_const+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034
9035 int
9036 main ()
9037 {
9038 /* FIXME: Include the comments suggested by Paul. */
9039 #ifndef __cplusplus
9040   /* Ultrix mips cc rejects this.  */
9041   typedef int charset[2];
9042   const charset x;
9043   /* SunOS 4.1.1 cc rejects this.  */
9044   char const *const *ccp;
9045   char **p;
9046   /* NEC SVR4.0.2 mips cc rejects this.  */
9047   struct point {int x, y;};
9048   static struct point const zero = {0,0};
9049   /* AIX XL C 1.02.0.0 rejects this.
9050      It does not let you subtract one const X* pointer from another in
9051      an arm of an if-expression whose if-part is not a constant
9052      expression */
9053   const char *g = "string";
9054   ccp = &g + (g ? g-g : 0);
9055   /* HPUX 7.0 cc rejects these. */
9056   ++ccp;
9057   p = (char**) ccp;
9058   ccp = (char const *const *) p;
9059   { /* SCO 3.2v4 cc rejects this.  */
9060     char *t;
9061     char const *s = 0 ? (char *) 0 : (char const *) 0;
9062
9063     *t++ = 0;
9064     if (s) return 0;
9065   }
9066   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9067     int x[] = {25, 17};
9068     const int *foo = &x[0];
9069     ++foo;
9070   }
9071   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9072     typedef const int *iptr;
9073     iptr p = 0;
9074     ++p;
9075   }
9076   { /* AIX XL C 1.02.0.0 rejects this saying
9077        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9078     struct s { int j; const int *ap[3]; };
9079     struct s *b; b->j = 5;
9080   }
9081   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9082     const int foo = 10;
9083     if (!foo) return 0;
9084   }
9085   return !x[0] && !zero.x;
9086 #endif
9087
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (ac_try="$ac_compile"
9094 case "(($ac_try" in
9095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096   *) ac_try_echo=$ac_try;;
9097 esac
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099   (eval "$ac_compile") 2>conftest.er1
9100   ac_status=$?
9101   grep -v '^ *+' conftest.er1 >conftest.err
9102   rm -f conftest.er1
9103   cat conftest.err >&5
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9107   { (case "(($ac_try" in
9108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109   *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112   (eval "$ac_try") 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; } &&
9116          { ac_try='test -s conftest.$ac_objext'
9117   { (case "(($ac_try" in
9118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119   *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122   (eval "$ac_try") 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; }; then
9126   ac_cv_c_const=yes
9127 else
9128   echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131         ac_cv_c_const=no
9132 fi
9133
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 fi
9136 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9137 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9138 if test $ac_cv_c_const = no; then
9139
9140 cat >>confdefs.h <<\_ACEOF
9141 #define const
9142 _ACEOF
9143
9144 fi
9145
9146 { echo "$as_me:$LINENO: checking for inline" >&5
9147 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9148 if test "${ac_cv_c_inline+set}" = set; then
9149   echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151   ac_cv_c_inline=no
9152 for ac_kw in inline __inline__ __inline; do
9153   cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159 #ifndef __cplusplus
9160 typedef int foo_t;
9161 static $ac_kw foo_t static_foo () {return 0; }
9162 $ac_kw foo_t foo () {return 0; }
9163 #endif
9164
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (ac_try="$ac_compile"
9168 case "(($ac_try" in
9169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170   *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173   (eval "$ac_compile") 2>conftest.er1
9174   ac_status=$?
9175   grep -v '^ *+' conftest.er1 >conftest.err
9176   rm -f conftest.er1
9177   cat conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } &&
9180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9181   { (case "(($ac_try" in
9182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183   *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186   (eval "$ac_try") 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest.$ac_objext'
9191   { (case "(($ac_try" in
9192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193   *) ac_try_echo=$ac_try;;
9194 esac
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196   (eval "$ac_try") 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_c_inline=$ac_kw
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205
9206 fi
9207
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209   test "$ac_cv_c_inline" != no && break
9210 done
9211
9212 fi
9213 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9214 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9215
9216
9217 case $ac_cv_c_inline in
9218   inline | yes) ;;
9219   *)
9220     case $ac_cv_c_inline in
9221       no) ac_val=;;
9222       *) ac_val=$ac_cv_c_inline;;
9223     esac
9224     cat >>confdefs.h <<_ACEOF
9225 #ifndef __cplusplus
9226 #define inline $ac_val
9227 #endif
9228 _ACEOF
9229     ;;
9230 esac
9231
9232 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9233 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9234 if test "${ac_cv_header_time+set}" = set; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243 #include <sys/types.h>
9244 #include <sys/time.h>
9245 #include <time.h>
9246
9247 int
9248 main ()
9249 {
9250 if ((struct tm *) 0)
9251 return 0;
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (ac_try="$ac_compile"
9258 case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_compile") 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271   { (case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_try") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest.$ac_objext'
9281   { (case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_try") 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_header_time=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295         ac_cv_header_time=no
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 fi
9300 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9301 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9302 if test $ac_cv_header_time = yes; then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define TIME_WITH_SYS_TIME 1
9306 _ACEOF
9307
9308 fi
9309
9310
9311 if test $ac_cv_c_compiler_gnu = yes; then
9312     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
9314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9315   echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317     ac_pattern="Autoconf.*'x'"
9318   cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324 #include <sgtty.h>
9325 Autoconf TIOCGETP
9326 _ACEOF
9327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9329   ac_cv_prog_gcc_traditional=yes
9330 else
9331   ac_cv_prog_gcc_traditional=no
9332 fi
9333 rm -f conftest*
9334
9335
9336   if test $ac_cv_prog_gcc_traditional = no; then
9337     cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343 #include <termio.h>
9344 Autoconf TCGETA
9345 _ACEOF
9346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9347   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9348   ac_cv_prog_gcc_traditional=yes
9349 fi
9350 rm -f conftest*
9351
9352   fi
9353 fi
9354 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9355 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
9356   if test $ac_cv_prog_gcc_traditional = yes; then
9357     CC="$CC -traditional"
9358   fi
9359 fi
9360
9361
9362 # Check whether --enable-largefile was given.
9363 if test "${enable_largefile+set}" = set; then
9364   enableval=$enable_largefile;
9365 fi
9366
9367 if test "$enable_largefile" != no; then
9368
9369   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9370 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9371 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   ac_cv_sys_largefile_CC=no
9375      if test "$GCC" != yes; then
9376        ac_save_CC=$CC
9377        while :; do
9378          # IRIX 6.2 and later do not support large files by default,
9379          # so use the C compiler's -n32 option if that helps.
9380          cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <sys/types.h>
9387  /* Check that off_t can represent 2**63 - 1 correctly.
9388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9389     since some C++ compilers masquerading as C compilers
9390     incorrectly reject 9223372036854775807.  */
9391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9393                        && LARGE_OFF_T % 2147483647 == 1)
9394                       ? 1 : -1];
9395 int
9396 main ()
9397 {
9398
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403          rm -f conftest.$ac_objext
9404 if { (ac_try="$ac_compile"
9405 case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410   (eval "$ac_compile") 2>conftest.er1
9411   ac_status=$?
9412   grep -v '^ *+' conftest.er1 >conftest.err
9413   rm -f conftest.er1
9414   cat conftest.err >&5
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9418   { (case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_try") 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest.$ac_objext'
9428   { (case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433   (eval "$ac_try") 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; }; then
9437   break
9438 else
9439   echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442
9443 fi
9444
9445 rm -f core conftest.err conftest.$ac_objext
9446          CC="$CC -n32"
9447          rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9449 case "(($ac_try" in
9450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451   *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454   (eval "$ac_compile") 2>conftest.er1
9455   ac_status=$?
9456   grep -v '^ *+' conftest.er1 >conftest.err
9457   rm -f conftest.er1
9458   cat conftest.err >&5
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } &&
9461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9462   { (case "(($ac_try" in
9463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464   *) ac_try_echo=$ac_try;;
9465 esac
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467   (eval "$ac_try") 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; } &&
9471          { ac_try='test -s conftest.$ac_objext'
9472   { (case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_try") 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_sys_largefile_CC=' -n32'; break
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486
9487 fi
9488
9489 rm -f core conftest.err conftest.$ac_objext
9490          break
9491        done
9492        CC=$ac_save_CC
9493        rm -f conftest.$ac_ext
9494     fi
9495 fi
9496 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9497 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9498   if test "$ac_cv_sys_largefile_CC" != no; then
9499     CC=$CC$ac_cv_sys_largefile_CC
9500   fi
9501
9502   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9503 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   while :; do
9508   ac_cv_sys_file_offset_bits=no
9509   cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 #include <sys/types.h>
9516  /* Check that off_t can represent 2**63 - 1 correctly.
9517     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9518     since some C++ compilers masquerading as C compilers
9519     incorrectly reject 9223372036854775807.  */
9520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9521   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9522                        && LARGE_OFF_T % 2147483647 == 1)
9523                       ? 1 : -1];
9524 int
9525 main ()
9526 {
9527
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9534 case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539   (eval "$ac_compile") 2>conftest.er1
9540   ac_status=$?
9541   grep -v '^ *+' conftest.er1 >conftest.err
9542   rm -f conftest.er1
9543   cat conftest.err >&5
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); } &&
9546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547   { (case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_try") 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; } &&
9556          { ac_try='test -s conftest.$ac_objext'
9557   { (case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_try") 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   break
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571
9572 fi
9573
9574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #define _FILE_OFFSET_BITS 64
9582 #include <sys/types.h>
9583  /* Check that off_t can represent 2**63 - 1 correctly.
9584     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9585     since some C++ compilers masquerading as C compilers
9586     incorrectly reject 9223372036854775807.  */
9587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9588   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9589                        && LARGE_OFF_T % 2147483647 == 1)
9590                       ? 1 : -1];
9591 int
9592 main ()
9593 {
9594
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext
9600 if { (ac_try="$ac_compile"
9601 case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_compile") 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614   { (case "(($ac_try" in
9615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616   *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619   (eval "$ac_try") 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; } &&
9623          { ac_try='test -s conftest.$ac_objext'
9624   { (case "(($ac_try" in
9625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626   *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629   (eval "$ac_try") 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_sys_file_offset_bits=64; break
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638
9639 fi
9640
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642   break
9643 done
9644 fi
9645 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9646 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9647 if test "$ac_cv_sys_file_offset_bits" != no; then
9648
9649 cat >>confdefs.h <<_ACEOF
9650 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9651 _ACEOF
9652
9653 fi
9654 rm -f conftest*
9655   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9656 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9657 if test "${ac_cv_sys_large_files+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   while :; do
9661   ac_cv_sys_large_files=no
9662   cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 #include <sys/types.h>
9669  /* Check that off_t can represent 2**63 - 1 correctly.
9670     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9671     since some C++ compilers masquerading as C compilers
9672     incorrectly reject 9223372036854775807.  */
9673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9674   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9675                        && LARGE_OFF_T % 2147483647 == 1)
9676                       ? 1 : -1];
9677 int
9678 main ()
9679 {
9680
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (ac_try="$ac_compile"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_compile") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest.$ac_objext'
9710   { (case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_try") 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   break
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724
9725 fi
9726
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728   cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 #define _LARGE_FILES 1
9735 #include <sys/types.h>
9736  /* Check that off_t can represent 2**63 - 1 correctly.
9737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9738     since some C++ compilers masquerading as C compilers
9739     incorrectly reject 9223372036854775807.  */
9740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9742                        && LARGE_OFF_T % 2147483647 == 1)
9743                       ? 1 : -1];
9744 int
9745 main ()
9746 {
9747
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext
9753 if { (ac_try="$ac_compile"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_compile") 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767   { (case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_try") 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_try") 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; }; then
9786   ac_cv_sys_large_files=1; break
9787 else
9788   echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791
9792 fi
9793
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795   break
9796 done
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9799 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9800 if test "$ac_cv_sys_large_files" != no; then
9801
9802 cat >>confdefs.h <<_ACEOF
9803 #define _LARGE_FILES $ac_cv_sys_large_files
9804 _ACEOF
9805
9806 fi
9807 rm -f conftest*
9808 fi
9809
9810
9811
9812 SND_UTIL_VERSION=$VERSION
9813 echo $VERSION > $srcdir/version
9814
9815 cat >>confdefs.h <<_ACEOF
9816 #define VERSION "$SND_UTIL_VERSION"
9817 _ACEOF
9818
9819
9820 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
9821
9822 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
9823
9824 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[0-9]*//g'`
9825
9826
9827
9828
9829
9830 ac_config_files="$ac_config_files Makefile alsactl/Makefile alsactl/init/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile m4/Makefile po/Makefile.in alsaconf/alsaconf alsaconf/Makefile alsaconf/po/Makefile aplay/Makefile include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile speaker-test/Makefile speaker-test/samples/Makefile"
9831
9832 cat >confcache <<\_ACEOF
9833 # This file is a shell script that caches the results of configure
9834 # tests run on this system so they can be shared between configure
9835 # scripts and configure runs, see configure's option --config-cache.
9836 # It is not useful on other systems.  If it contains results you don't
9837 # want to keep, you may remove or edit it.
9838 #
9839 # config.status only pays attention to the cache file if you give it
9840 # the --recheck option to rerun configure.
9841 #
9842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9844 # following values.
9845
9846 _ACEOF
9847
9848 # The following way of writing the cache mishandles newlines in values,
9849 # but we know of no workaround that is simple, portable, and efficient.
9850 # So, we kill variables containing newlines.
9851 # Ultrix sh set writes to stderr and can't be redirected directly,
9852 # and sets the high bit in the cache file unless we assign to the vars.
9853 (
9854   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9855     eval ac_val=\$$ac_var
9856     case $ac_val in #(
9857     *${as_nl}*)
9858       case $ac_var in #(
9859       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9860 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9861       esac
9862       case $ac_var in #(
9863       _ | IFS | as_nl) ;; #(
9864       *) $as_unset $ac_var ;;
9865       esac ;;
9866     esac
9867   done
9868
9869   (set) 2>&1 |
9870     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9871     *${as_nl}ac_space=\ *)
9872       # `set' does not quote correctly, so add quotes (double-quote
9873       # substitution turns \\\\ into \\, and sed turns \\ into \).
9874       sed -n \
9875         "s/'/'\\\\''/g;
9876           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9877       ;; #(
9878     *)
9879       # `set' quotes correctly as required by POSIX, so do not add quotes.
9880       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9881       ;;
9882     esac |
9883     sort
9884 ) |
9885   sed '
9886      /^ac_cv_env_/b end
9887      t clear
9888      :clear
9889      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9890      t end
9891      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9892      :end' >>confcache
9893 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9894   if test -w "$cache_file"; then
9895     test "x$cache_file" != "x/dev/null" &&
9896       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9897 echo "$as_me: updating cache $cache_file" >&6;}
9898     cat confcache >$cache_file
9899   else
9900     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9901 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9902   fi
9903 fi
9904 rm -f confcache
9905
9906 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9907 # Let make expand exec_prefix.
9908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9909
9910 DEFS=-DHAVE_CONFIG_H
9911
9912 ac_libobjs=
9913 ac_ltlibobjs=
9914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9915   # 1. Remove the extension, and $U if already installed.
9916   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9917   ac_i=`echo "$ac_i" | sed "$ac_script"`
9918   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9919   #    will be set to the directory where LIBOBJS objects are built.
9920   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9921   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9922 done
9923 LIBOBJS=$ac_libobjs
9924
9925 LTLIBOBJS=$ac_ltlibobjs
9926
9927
9928 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9929   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9930 Usually this means the macro was only invoked conditionally." >&5
9931 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9932 Usually this means the macro was only invoked conditionally." >&2;}
9933    { (exit 1); exit 1; }; }
9934 fi
9935 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9936   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9937 Usually this means the macro was only invoked conditionally." >&5
9938 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9939 Usually this means the macro was only invoked conditionally." >&2;}
9940    { (exit 1); exit 1; }; }
9941 fi
9942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9943   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9944 Usually this means the macro was only invoked conditionally." >&5
9945 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9946 Usually this means the macro was only invoked conditionally." >&2;}
9947    { (exit 1); exit 1; }; }
9948 fi
9949 if test -z "${HAVE_PCM_TRUE}" && test -z "${HAVE_PCM_FALSE}"; then
9950   { { echo "$as_me:$LINENO: error: conditional \"HAVE_PCM\" was never defined.
9951 Usually this means the macro was only invoked conditionally." >&5
9952 echo "$as_me: error: conditional \"HAVE_PCM\" was never defined.
9953 Usually this means the macro was only invoked conditionally." >&2;}
9954    { (exit 1); exit 1; }; }
9955 fi
9956 if test -z "${HAVE_MIXER_TRUE}" && test -z "${HAVE_MIXER_FALSE}"; then
9957   { { echo "$as_me:$LINENO: error: conditional \"HAVE_MIXER\" was never defined.
9958 Usually this means the macro was only invoked conditionally." >&5
9959 echo "$as_me: error: conditional \"HAVE_MIXER\" was never defined.
9960 Usually this means the macro was only invoked conditionally." >&2;}
9961    { (exit 1); exit 1; }; }
9962 fi
9963 if test -z "${HAVE_RAWMIDI_TRUE}" && test -z "${HAVE_RAWMIDI_FALSE}"; then
9964   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RAWMIDI\" was never defined.
9965 Usually this means the macro was only invoked conditionally." >&5
9966 echo "$as_me: error: conditional \"HAVE_RAWMIDI\" was never defined.
9967 Usually this means the macro was only invoked conditionally." >&2;}
9968    { (exit 1); exit 1; }; }
9969 fi
9970 if test -z "${HAVE_SEQ_TRUE}" && test -z "${HAVE_SEQ_FALSE}"; then
9971   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SEQ\" was never defined.
9972 Usually this means the macro was only invoked conditionally." >&5
9973 echo "$as_me: error: conditional \"HAVE_SEQ\" was never defined.
9974 Usually this means the macro was only invoked conditionally." >&2;}
9975    { (exit 1); exit 1; }; }
9976 fi
9977 if test -z "${ALSAMIXER_TRUE}" && test -z "${ALSAMIXER_FALSE}"; then
9978   { { echo "$as_me:$LINENO: error: conditional \"ALSAMIXER\" was never defined.
9979 Usually this means the macro was only invoked conditionally." >&5
9980 echo "$as_me: error: conditional \"ALSAMIXER\" was never defined.
9981 Usually this means the macro was only invoked conditionally." >&2;}
9982    { (exit 1); exit 1; }; }
9983 fi
9984 if test -z "${ALSACONF_TRUE}" && test -z "${ALSACONF_FALSE}"; then
9985   { { echo "$as_me:$LINENO: error: conditional \"ALSACONF\" was never defined.
9986 Usually this means the macro was only invoked conditionally." >&5
9987 echo "$as_me: error: conditional \"ALSACONF\" was never defined.
9988 Usually this means the macro was only invoked conditionally." >&2;}
9989    { (exit 1); exit 1; }; }
9990 fi
9991 if test -z "${USE_XMLTO_TRUE}" && test -z "${USE_XMLTO_FALSE}"; then
9992   { { echo "$as_me:$LINENO: error: conditional \"USE_XMLTO\" was never defined.
9993 Usually this means the macro was only invoked conditionally." >&5
9994 echo "$as_me: error: conditional \"USE_XMLTO\" was never defined.
9995 Usually this means the macro was only invoked conditionally." >&2;}
9996    { (exit 1); exit 1; }; }
9997 fi
9998
9999 : ${CONFIG_STATUS=./config.status}
10000 ac_clean_files_save=$ac_clean_files
10001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10002 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10003 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10004 cat >$CONFIG_STATUS <<_ACEOF
10005 #! $SHELL
10006 # Generated by $as_me.
10007 # Run this file to recreate the current configuration.
10008 # Compiler output produced by configure, useful for debugging
10009 # configure, is in config.log if it exists.
10010
10011 debug=false
10012 ac_cs_recheck=false
10013 ac_cs_silent=false
10014 SHELL=\${CONFIG_SHELL-$SHELL}
10015 _ACEOF
10016
10017 cat >>$CONFIG_STATUS <<\_ACEOF
10018 ## --------------------- ##
10019 ## M4sh Initialization.  ##
10020 ## --------------------- ##
10021
10022 # Be Bourne compatible
10023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10024   emulate sh
10025   NULLCMD=:
10026   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10027   # is contrary to our usage.  Disable this feature.
10028   alias -g '${1+"$@"}'='"$@"'
10029   setopt NO_GLOB_SUBST
10030 else
10031   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
10032 fi
10033 BIN_SH=xpg4; export BIN_SH # for Tru64
10034 DUALCASE=1; export DUALCASE # for MKS sh
10035
10036
10037 # PATH needs CR
10038 # Avoid depending upon Character Ranges.
10039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10042 as_cr_digits='0123456789'
10043 as_cr_alnum=$as_cr_Letters$as_cr_digits
10044
10045 # The user is always right.
10046 if test "${PATH_SEPARATOR+set}" != set; then
10047   echo "#! /bin/sh" >conf$$.sh
10048   echo  "exit 0"   >>conf$$.sh
10049   chmod +x conf$$.sh
10050   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10051     PATH_SEPARATOR=';'
10052   else
10053     PATH_SEPARATOR=:
10054   fi
10055   rm -f conf$$.sh
10056 fi
10057
10058 # Support unset when possible.
10059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10060   as_unset=unset
10061 else
10062   as_unset=false
10063 fi
10064
10065
10066 # IFS
10067 # We need space, tab and new line, in precisely that order.  Quoting is
10068 # there to prevent editors from complaining about space-tab.
10069 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10070 # splitting by setting IFS to empty value.)
10071 as_nl='
10072 '
10073 IFS=" ""        $as_nl"
10074
10075 # Find who we are.  Look in the path if we contain no directory separator.
10076 case $0 in
10077   *[\\/]* ) as_myself=$0 ;;
10078   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10080 do
10081   IFS=$as_save_IFS
10082   test -z "$as_dir" && as_dir=.
10083   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10084 done
10085 IFS=$as_save_IFS
10086
10087      ;;
10088 esac
10089 # We did not find ourselves, most probably we were run as `sh COMMAND'
10090 # in which case we are not to be found in the path.
10091 if test "x$as_myself" = x; then
10092   as_myself=$0
10093 fi
10094 if test ! -f "$as_myself"; then
10095   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10096   { (exit 1); exit 1; }
10097 fi
10098
10099 # Work around bugs in pre-3.0 UWIN ksh.
10100 for as_var in ENV MAIL MAILPATH
10101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10102 done
10103 PS1='$ '
10104 PS2='> '
10105 PS4='+ '
10106
10107 # NLS nuisances.
10108 for as_var in \
10109   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10110   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10111   LC_TELEPHONE LC_TIME
10112 do
10113   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10114     eval $as_var=C; export $as_var
10115   else
10116     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10117   fi
10118 done
10119
10120 # Required to use basename.
10121 if expr a : '\(a\)' >/dev/null 2>&1 &&
10122    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10123   as_expr=expr
10124 else
10125   as_expr=false
10126 fi
10127
10128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10129   as_basename=basename
10130 else
10131   as_basename=false
10132 fi
10133
10134
10135 # Name of the executable.
10136 as_me=`$as_basename -- "$0" ||
10137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10138          X"$0" : 'X\(//\)$' \| \
10139          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10140 echo X/"$0" |
10141     sed '/^.*\/\([^/][^/]*\)\/*$/{
10142             s//\1/
10143             q
10144           }
10145           /^X\/\(\/\/\)$/{
10146             s//\1/
10147             q
10148           }
10149           /^X\/\(\/\).*/{
10150             s//\1/
10151             q
10152           }
10153           s/.*/./; q'`
10154
10155 # CDPATH.
10156 $as_unset CDPATH
10157
10158
10159
10160   as_lineno_1=$LINENO
10161   as_lineno_2=$LINENO
10162   test "x$as_lineno_1" != "x$as_lineno_2" &&
10163   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10164
10165   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10166   # uniformly replaced by the line number.  The first 'sed' inserts a
10167   # line-number line after each line using $LINENO; the second 'sed'
10168   # does the real work.  The second script uses 'N' to pair each
10169   # line-number line with the line containing $LINENO, and appends
10170   # trailing '-' during substitution so that $LINENO is not a special
10171   # case at line end.
10172   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10173   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10174   # E. McMahon (1931-1989) for sed's syntax.  :-)
10175   sed -n '
10176     p
10177     /[$]LINENO/=
10178   ' <$as_myself |
10179     sed '
10180       s/[$]LINENO.*/&-/
10181       t lineno
10182       b
10183       :lineno
10184       N
10185       :loop
10186       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10187       t loop
10188       s/-\n.*//
10189     ' >$as_me.lineno &&
10190   chmod +x "$as_me.lineno" ||
10191     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10192    { (exit 1); exit 1; }; }
10193
10194   # Don't try to exec as it changes $[0], causing all sort of problems
10195   # (the dirname of $[0] is not the place where we might find the
10196   # original and so on.  Autoconf is especially sensitive to this).
10197   . "./$as_me.lineno"
10198   # Exit status is that of the last command.
10199   exit
10200 }
10201
10202
10203 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10204   as_dirname=dirname
10205 else
10206   as_dirname=false
10207 fi
10208
10209 ECHO_C= ECHO_N= ECHO_T=
10210 case `echo -n x` in
10211 -n*)
10212   case `echo 'x\c'` in
10213   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10214   *)   ECHO_C='\c';;
10215   esac;;
10216 *)
10217   ECHO_N='-n';;
10218 esac
10219
10220 if expr a : '\(a\)' >/dev/null 2>&1 &&
10221    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10222   as_expr=expr
10223 else
10224   as_expr=false
10225 fi
10226
10227 rm -f conf$$ conf$$.exe conf$$.file
10228 if test -d conf$$.dir; then
10229   rm -f conf$$.dir/conf$$.file
10230 else
10231   rm -f conf$$.dir
10232   mkdir conf$$.dir
10233 fi
10234 echo >conf$$.file
10235 if ln -s conf$$.file conf$$ 2>/dev/null; then
10236   as_ln_s='ln -s'
10237   # ... but there are two gotchas:
10238   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10239   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10240   # In both cases, we have to default to `cp -p'.
10241   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10242     as_ln_s='cp -p'
10243 elif ln conf$$.file conf$$ 2>/dev/null; then
10244   as_ln_s=ln
10245 else
10246   as_ln_s='cp -p'
10247 fi
10248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10249 rmdir conf$$.dir 2>/dev/null
10250
10251 if mkdir -p . 2>/dev/null; then
10252   as_mkdir_p=:
10253 else
10254   test -d ./-p && rmdir ./-p
10255   as_mkdir_p=false
10256 fi
10257
10258 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
10259 # systems may use methods other than mode bits to determine executability.
10260 cat >conf$$.file <<_ASEOF
10261 #! /bin/sh
10262 exit 0
10263 _ASEOF
10264 chmod +x conf$$.file
10265 if test -x conf$$.file >/dev/null 2>&1; then
10266   as_executable_p="test -x"
10267 else
10268   as_executable_p=:
10269 fi
10270 rm -f conf$$.file
10271
10272 # Sed expression to map a string onto a valid CPP name.
10273 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10274
10275 # Sed expression to map a string onto a valid variable name.
10276 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10277
10278
10279 exec 6>&1
10280
10281 # Save the log message, to keep $[0] and so on meaningful, and to
10282 # report actual input values of CONFIG_FILES etc. instead of their
10283 # values after options handling.
10284 ac_log="
10285 This file was extended by $as_me, which was
10286 generated by GNU Autoconf 2.60.  Invocation command line was
10287
10288   CONFIG_FILES    = $CONFIG_FILES
10289   CONFIG_HEADERS  = $CONFIG_HEADERS
10290   CONFIG_LINKS    = $CONFIG_LINKS
10291   CONFIG_COMMANDS = $CONFIG_COMMANDS
10292   $ $0 $@
10293
10294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10295 "
10296
10297 _ACEOF
10298
10299 cat >>$CONFIG_STATUS <<_ACEOF
10300 # Files that config.status was made for.
10301 config_files="$ac_config_files"
10302 config_headers="$ac_config_headers"
10303 config_commands="$ac_config_commands"
10304
10305 _ACEOF
10306
10307 cat >>$CONFIG_STATUS <<\_ACEOF
10308 ac_cs_usage="\
10309 \`$as_me' instantiates files from templates according to the
10310 current configuration.
10311
10312 Usage: $0 [OPTIONS] [FILE]...
10313
10314   -h, --help       print this help, then exit
10315   -V, --version    print version number, then exit
10316   -q, --quiet      do not print progress messages
10317   -d, --debug      don't remove temporary files
10318       --recheck    update $as_me by reconfiguring in the same conditions
10319   --file=FILE[:TEMPLATE]
10320                    instantiate the configuration file FILE
10321   --header=FILE[:TEMPLATE]
10322                    instantiate the configuration header FILE
10323
10324 Configuration files:
10325 $config_files
10326
10327 Configuration headers:
10328 $config_headers
10329
10330 Configuration commands:
10331 $config_commands
10332
10333 Report bugs to <bug-autoconf@gnu.org>."
10334
10335 _ACEOF
10336 cat >>$CONFIG_STATUS <<_ACEOF
10337 ac_cs_version="\\
10338 config.status
10339 configured by $0, generated by GNU Autoconf 2.60,
10340   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10341
10342 Copyright (C) 2006 Free Software Foundation, Inc.
10343 This config.status script is free software; the Free Software Foundation
10344 gives unlimited permission to copy, distribute and modify it."
10345
10346 ac_pwd='$ac_pwd'
10347 srcdir='$srcdir'
10348 INSTALL='$INSTALL'
10349 _ACEOF
10350
10351 cat >>$CONFIG_STATUS <<\_ACEOF
10352 # If no file are specified by the user, then we need to provide default
10353 # value.  By we need to know if files were specified by the user.
10354 ac_need_defaults=:
10355 while test $# != 0
10356 do
10357   case $1 in
10358   --*=*)
10359     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10360     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10361     ac_shift=:
10362     ;;
10363   *)
10364     ac_option=$1
10365     ac_optarg=$2
10366     ac_shift=shift
10367     ;;
10368   esac
10369
10370   case $ac_option in
10371   # Handling of the options.
10372   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10373     ac_cs_recheck=: ;;
10374   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10375     echo "$ac_cs_version"; exit ;;
10376   --debug | --debu | --deb | --de | --d | -d )
10377     debug=: ;;
10378   --file | --fil | --fi | --f )
10379     $ac_shift
10380     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10381     ac_need_defaults=false;;
10382   --header | --heade | --head | --hea )
10383     $ac_shift
10384     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10385     ac_need_defaults=false;;
10386   --he | --h)
10387     # Conflict between --help and --header
10388     { echo "$as_me: error: ambiguous option: $1
10389 Try \`$0 --help' for more information." >&2
10390    { (exit 1); exit 1; }; };;
10391   --help | --hel | -h )
10392     echo "$ac_cs_usage"; exit ;;
10393   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10394   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10395     ac_cs_silent=: ;;
10396
10397   # This is an error.
10398   -*) { echo "$as_me: error: unrecognized option: $1
10399 Try \`$0 --help' for more information." >&2
10400    { (exit 1); exit 1; }; } ;;
10401
10402   *) ac_config_targets="$ac_config_targets $1"
10403      ac_need_defaults=false ;;
10404
10405   esac
10406   shift
10407 done
10408
10409 ac_configure_extra_args=
10410
10411 if $ac_cs_silent; then
10412   exec 6>/dev/null
10413   ac_configure_extra_args="$ac_configure_extra_args --silent"
10414 fi
10415
10416 _ACEOF
10417 cat >>$CONFIG_STATUS <<_ACEOF
10418 if \$ac_cs_recheck; then
10419   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10420   CONFIG_SHELL=$SHELL
10421   export CONFIG_SHELL
10422   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10423 fi
10424
10425 _ACEOF
10426 cat >>$CONFIG_STATUS <<\_ACEOF
10427 exec 5>>config.log
10428 {
10429   echo
10430   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10431 ## Running $as_me. ##
10432 _ASBOX
10433   echo "$ac_log"
10434 } >&5
10435
10436 _ACEOF
10437 cat >>$CONFIG_STATUS <<_ACEOF
10438 #
10439 # INIT-COMMANDS
10440 #
10441 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10442     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10443     # from automake < 1.5.
10444     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10445     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10446     LINGUAS="${LINGUAS-%UNSET%}"
10447
10448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10449
10450 _ACEOF
10451
10452 cat >>$CONFIG_STATUS <<\_ACEOF
10453
10454 # Handling of arguments.
10455 for ac_config_target in $ac_config_targets
10456 do
10457   case $ac_config_target in
10458     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10459     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10460     "include/aconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/aconfig.h" ;;
10461     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10462     "alsactl/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/Makefile" ;;
10463     "alsactl/init/Makefile") CONFIG_FILES="$CONFIG_FILES alsactl/init/Makefile" ;;
10464     "alsamixer/Makefile") CONFIG_FILES="$CONFIG_FILES alsamixer/Makefile" ;;
10465     "amidi/Makefile") CONFIG_FILES="$CONFIG_FILES amidi/Makefile" ;;
10466     "amixer/Makefile") CONFIG_FILES="$CONFIG_FILES amixer/Makefile" ;;
10467     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10468     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10469     "alsaconf/alsaconf") CONFIG_FILES="$CONFIG_FILES alsaconf/alsaconf" ;;
10470     "alsaconf/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/Makefile" ;;
10471     "alsaconf/po/Makefile") CONFIG_FILES="$CONFIG_FILES alsaconf/po/Makefile" ;;
10472     "aplay/Makefile") CONFIG_FILES="$CONFIG_FILES aplay/Makefile" ;;
10473     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10474     "iecset/Makefile") CONFIG_FILES="$CONFIG_FILES iecset/Makefile" ;;
10475     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
10476     "utils/alsa-utils.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-utils.spec" ;;
10477     "seq/Makefile") CONFIG_FILES="$CONFIG_FILES seq/Makefile" ;;
10478     "seq/aconnect/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aconnect/Makefile" ;;
10479     "seq/aplaymidi/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aplaymidi/Makefile" ;;
10480     "seq/aseqdump/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqdump/Makefile" ;;
10481     "seq/aseqnet/Makefile") CONFIG_FILES="$CONFIG_FILES seq/aseqnet/Makefile" ;;
10482     "speaker-test/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/Makefile" ;;
10483     "speaker-test/samples/Makefile") CONFIG_FILES="$CONFIG_FILES speaker-test/samples/Makefile" ;;
10484
10485   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10486 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10487    { (exit 1); exit 1; }; };;
10488   esac
10489 done
10490
10491
10492 # If the user did not use the arguments to specify the items to instantiate,
10493 # then the envvar interface is used.  Set only those that are not.
10494 # We use the long form for the default assignment because of an extremely
10495 # bizarre bug on SunOS 4.1.3.
10496 if $ac_need_defaults; then
10497   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10498   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10499   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10500 fi
10501
10502 # Have a temporary directory for convenience.  Make it in the build tree
10503 # simply because there is no reason against having it here, and in addition,
10504 # creating and moving files from /tmp can sometimes cause problems.
10505 # Hook for its removal unless debugging.
10506 # Note that there is a small window in which the directory will not be cleaned:
10507 # after its creation but before its name has been assigned to `$tmp'.
10508 $debug ||
10509 {
10510   tmp=
10511   trap 'exit_status=$?
10512   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10513 ' 0
10514   trap '{ (exit 1); exit 1; }' 1 2 13 15
10515 }
10516 # Create a (secure) tmp directory for tmp files.
10517
10518 {
10519   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10520   test -n "$tmp" && test -d "$tmp"
10521 }  ||
10522 {
10523   tmp=./conf$$-$RANDOM
10524   (umask 077 && mkdir "$tmp")
10525 } ||
10526 {
10527    echo "$me: cannot create a temporary directory in ." >&2
10528    { (exit 1); exit 1; }
10529 }
10530
10531 #
10532 # Set up the sed scripts for CONFIG_FILES section.
10533 #
10534
10535 # No need to generate the scripts if there are no CONFIG_FILES.
10536 # This happens for instance when ./config.status config.h
10537 if test -n "$CONFIG_FILES"; then
10538
10539 _ACEOF
10540
10541
10542
10543 ac_delim='%!_!# '
10544 for ac_last_try in false false false false false :; do
10545   cat >conf$$subs.sed <<_ACEOF
10546 SHELL!$SHELL$ac_delim
10547 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10548 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10549 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10550 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10551 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10552 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10553 exec_prefix!$exec_prefix$ac_delim
10554 prefix!$prefix$ac_delim
10555 program_transform_name!$program_transform_name$ac_delim
10556 bindir!$bindir$ac_delim
10557 sbindir!$sbindir$ac_delim
10558 libexecdir!$libexecdir$ac_delim
10559 datarootdir!$datarootdir$ac_delim
10560 datadir!$datadir$ac_delim
10561 sysconfdir!$sysconfdir$ac_delim
10562 sharedstatedir!$sharedstatedir$ac_delim
10563 localstatedir!$localstatedir$ac_delim
10564 includedir!$includedir$ac_delim
10565 oldincludedir!$oldincludedir$ac_delim
10566 docdir!$docdir$ac_delim
10567 infodir!$infodir$ac_delim
10568 htmldir!$htmldir$ac_delim
10569 dvidir!$dvidir$ac_delim
10570 pdfdir!$pdfdir$ac_delim
10571 psdir!$psdir$ac_delim
10572 libdir!$libdir$ac_delim
10573 localedir!$localedir$ac_delim
10574 mandir!$mandir$ac_delim
10575 DEFS!$DEFS$ac_delim
10576 ECHO_C!$ECHO_C$ac_delim
10577 ECHO_N!$ECHO_N$ac_delim
10578 ECHO_T!$ECHO_T$ac_delim
10579 LIBS!$LIBS$ac_delim
10580 build_alias!$build_alias$ac_delim
10581 host_alias!$host_alias$ac_delim
10582 target_alias!$target_alias$ac_delim
10583 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10584 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10585 INSTALL_DATA!$INSTALL_DATA$ac_delim
10586 CYGPATH_W!$CYGPATH_W$ac_delim
10587 PACKAGE!$PACKAGE$ac_delim
10588 VERSION!$VERSION$ac_delim
10589 ACLOCAL!$ACLOCAL$ac_delim
10590 AUTOCONF!$AUTOCONF$ac_delim
10591 AUTOMAKE!$AUTOMAKE$ac_delim
10592 AUTOHEADER!$AUTOHEADER$ac_delim
10593 MAKEINFO!$MAKEINFO$ac_delim
10594 install_sh!$install_sh$ac_delim
10595 STRIP!$STRIP$ac_delim
10596 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10597 mkdir_p!$mkdir_p$ac_delim
10598 AWK!$AWK$ac_delim
10599 SET_MAKE!$SET_MAKE$ac_delim
10600 am__leading_dot!$am__leading_dot$ac_delim
10601 AMTAR!$AMTAR$ac_delim
10602 am__tar!$am__tar$ac_delim
10603 am__untar!$am__untar$ac_delim
10604 USE_NLS!$USE_NLS$ac_delim
10605 MSGFMT!$MSGFMT$ac_delim
10606 GMSGFMT!$GMSGFMT$ac_delim
10607 MSGFMT_015!$MSGFMT_015$ac_delim
10608 GMSGFMT_015!$GMSGFMT_015$ac_delim
10609 XGETTEXT!$XGETTEXT$ac_delim
10610 XGETTEXT_015!$XGETTEXT_015$ac_delim
10611 MSGMERGE!$MSGMERGE$ac_delim
10612 CC!$CC$ac_delim
10613 CFLAGS!$CFLAGS$ac_delim
10614 LDFLAGS!$LDFLAGS$ac_delim
10615 CPPFLAGS!$CPPFLAGS$ac_delim
10616 ac_ct_CC!$ac_ct_CC$ac_delim
10617 EXEEXT!$EXEEXT$ac_delim
10618 OBJEXT!$OBJEXT$ac_delim
10619 DEPDIR!$DEPDIR$ac_delim
10620 am__include!$am__include$ac_delim
10621 am__quote!$am__quote$ac_delim
10622 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10623 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10624 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10625 CCDEPMODE!$CCDEPMODE$ac_delim
10626 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10627 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10628 build!$build$ac_delim
10629 build_cpu!$build_cpu$ac_delim
10630 build_vendor!$build_vendor$ac_delim
10631 build_os!$build_os$ac_delim
10632 host!$host$ac_delim
10633 host_cpu!$host_cpu$ac_delim
10634 host_vendor!$host_vendor$ac_delim
10635 host_os!$host_os$ac_delim
10636 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
10637 LIBICONV!$LIBICONV$ac_delim
10638 LTLIBICONV!$LTLIBICONV$ac_delim
10639 INTLLIBS!$INTLLIBS$ac_delim
10640 LIBINTL!$LIBINTL$ac_delim
10641 LTLIBINTL!$LTLIBINTL$ac_delim
10642 POSUB!$POSUB$ac_delim
10643 _ACEOF
10644
10645   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10646     break
10647   elif $ac_last_try; then
10648     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10649 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10650    { (exit 1); exit 1; }; }
10651   else
10652     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10653   fi
10654 done
10655
10656 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10657 if test -n "$ac_eof"; then
10658   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10659   ac_eof=`expr $ac_eof + 1`
10660 fi
10661
10662 cat >>$CONFIG_STATUS <<_ACEOF
10663 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10665 _ACEOF
10666 sed '
10667 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10668 s/^/s,@/; s/!/@,|#_!!_#|/
10669 :n
10670 t n
10671 s/'"$ac_delim"'$/,g/; t
10672 s/$/\\/; p
10673 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10674 ' >>$CONFIG_STATUS <conf$$subs.sed
10675 rm -f conf$$subs.sed
10676 cat >>$CONFIG_STATUS <<_ACEOF
10677 CEOF$ac_eof
10678 _ACEOF
10679
10680
10681 ac_delim='%!_!# '
10682 for ac_last_try in false false false false false :; do
10683   cat >conf$$subs.sed <<_ACEOF
10684 LN_S!$LN_S$ac_delim
10685 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
10686 ALSA_LIBS!$ALSA_LIBS$ac_delim
10687 HAVE_PCM_TRUE!$HAVE_PCM_TRUE$ac_delim
10688 HAVE_PCM_FALSE!$HAVE_PCM_FALSE$ac_delim
10689 HAVE_MIXER_TRUE!$HAVE_MIXER_TRUE$ac_delim
10690 HAVE_MIXER_FALSE!$HAVE_MIXER_FALSE$ac_delim
10691 HAVE_RAWMIDI_TRUE!$HAVE_RAWMIDI_TRUE$ac_delim
10692 HAVE_RAWMIDI_FALSE!$HAVE_RAWMIDI_FALSE$ac_delim
10693 HAVE_SEQ_TRUE!$HAVE_SEQ_TRUE$ac_delim
10694 HAVE_SEQ_FALSE!$HAVE_SEQ_FALSE$ac_delim
10695 ALSAMIXER_TRUE!$ALSAMIXER_TRUE$ac_delim
10696 ALSAMIXER_FALSE!$ALSAMIXER_FALSE$ac_delim
10697 ALSACONF_TRUE!$ALSACONF_TRUE$ac_delim
10698 ALSACONF_FALSE!$ALSACONF_FALSE$ac_delim
10699 xmlto!$xmlto$ac_delim
10700 USE_XMLTO_TRUE!$USE_XMLTO_TRUE$ac_delim
10701 USE_XMLTO_FALSE!$USE_XMLTO_FALSE$ac_delim
10702 CPP!$CPP$ac_delim
10703 GREP!$GREP$ac_delim
10704 EGREP!$EGREP$ac_delim
10705 ncursesw5_config!$ncursesw5_config$ac_delim
10706 ncurses5_config!$ncurses5_config$ac_delim
10707 CURSESINC!$CURSESINC$ac_delim
10708 CURSESLIB!$CURSESLIB$ac_delim
10709 CURSES_CFLAGS!$CURSES_CFLAGS$ac_delim
10710 TESTSOUND!$TESTSOUND$ac_delim
10711 SND_UTIL_VERSION!$SND_UTIL_VERSION$ac_delim
10712 SND_UTIL_MAJOR!$SND_UTIL_MAJOR$ac_delim
10713 SND_UTIL_MINOR!$SND_UTIL_MINOR$ac_delim
10714 SND_UTIL_SUBMINOR!$SND_UTIL_SUBMINOR$ac_delim
10715 LIBRT!$LIBRT$ac_delim
10716 LIBOBJS!$LIBOBJS$ac_delim
10717 LTLIBOBJS!$LTLIBOBJS$ac_delim
10718 _ACEOF
10719
10720   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
10721     break
10722   elif $ac_last_try; then
10723     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10724 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10725    { (exit 1); exit 1; }; }
10726   else
10727     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10728   fi
10729 done
10730
10731 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10732 if test -n "$ac_eof"; then
10733   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10734   ac_eof=`expr $ac_eof + 1`
10735 fi
10736
10737 cat >>$CONFIG_STATUS <<_ACEOF
10738 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10740 _ACEOF
10741 sed '
10742 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10743 s/^/s,@/; s/!/@,|#_!!_#|/
10744 :n
10745 t n
10746 s/'"$ac_delim"'$/,g/; t
10747 s/$/\\/; p
10748 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10749 ' >>$CONFIG_STATUS <conf$$subs.sed
10750 rm -f conf$$subs.sed
10751 cat >>$CONFIG_STATUS <<_ACEOF
10752 :end
10753 s/|#_!!_#|//g
10754 CEOF$ac_eof
10755 _ACEOF
10756
10757
10758 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10759 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10760 # trailing colons and then remove the whole line if VPATH becomes empty
10761 # (actually we leave an empty line to preserve line numbers).
10762 if test "x$srcdir" = x.; then
10763   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10764 s/:*\$(srcdir):*/:/
10765 s/:*\${srcdir}:*/:/
10766 s/:*@srcdir@:*/:/
10767 s/^\([^=]*=[     ]*\):*/\1/
10768 s/:*$//
10769 s/^[^=]*=[       ]*$//
10770 }'
10771 fi
10772
10773 cat >>$CONFIG_STATUS <<\_ACEOF
10774 fi # test -n "$CONFIG_FILES"
10775
10776
10777 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
10778 do
10779   case $ac_tag in
10780   :[FHLC]) ac_mode=$ac_tag; continue;;
10781   esac
10782   case $ac_mode$ac_tag in
10783   :[FHL]*:*);;
10784   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10785 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10786    { (exit 1); exit 1; }; };;
10787   :[FH]-) ac_tag=-:-;;
10788   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10789   esac
10790   ac_save_IFS=$IFS
10791   IFS=:
10792   set x $ac_tag
10793   IFS=$ac_save_IFS
10794   shift
10795   ac_file=$1
10796   shift
10797
10798   case $ac_mode in
10799   :L) ac_source=$1;;
10800   :[FH])
10801     ac_file_inputs=
10802     for ac_f
10803     do
10804       case $ac_f in
10805       -) ac_f="$tmp/stdin";;
10806       *) # Look for the file first in the build tree, then in the source tree
10807          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10808          # because $ac_f cannot contain `:'.
10809          test -f "$ac_f" ||
10810            case $ac_f in
10811            [\\/$]*) false;;
10812            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10813            esac ||
10814            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10815 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10816    { (exit 1); exit 1; }; };;
10817       esac
10818       ac_file_inputs="$ac_file_inputs $ac_f"
10819     done
10820
10821     # Let's still pretend it is `configure' which instantiates (i.e., don't
10822     # use $as_me), people would be surprised to read:
10823     #    /* config.h.  Generated by config.status.  */
10824     configure_input="Generated from "`IFS=:
10825           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10826     if test x"$ac_file" != x-; then
10827       configure_input="$ac_file.  $configure_input"
10828       { echo "$as_me:$LINENO: creating $ac_file" >&5
10829 echo "$as_me: creating $ac_file" >&6;}
10830     fi
10831
10832     case $ac_tag in
10833     *:-:* | *:-) cat >"$tmp/stdin";;
10834     esac
10835     ;;
10836   esac
10837
10838   ac_dir=`$as_dirname -- "$ac_file" ||
10839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10840          X"$ac_file" : 'X\(//\)[^/]' \| \
10841          X"$ac_file" : 'X\(//\)$' \| \
10842          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10843 echo X"$ac_file" |
10844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10845             s//\1/
10846             q
10847           }
10848           /^X\(\/\/\)[^/].*/{
10849             s//\1/
10850             q
10851           }
10852           /^X\(\/\/\)$/{
10853             s//\1/
10854             q
10855           }
10856           /^X\(\/\).*/{
10857             s//\1/
10858             q
10859           }
10860           s/.*/./; q'`
10861   { as_dir="$ac_dir"
10862   case $as_dir in #(
10863   -*) as_dir=./$as_dir;;
10864   esac
10865   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10866     as_dirs=
10867     while :; do
10868       case $as_dir in #(
10869       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10870       *) as_qdir=$as_dir;;
10871       esac
10872       as_dirs="'$as_qdir' $as_dirs"
10873       as_dir=`$as_dirname -- "$as_dir" ||
10874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10875          X"$as_dir" : 'X\(//\)[^/]' \| \
10876          X"$as_dir" : 'X\(//\)$' \| \
10877          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10878 echo X"$as_dir" |
10879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10880             s//\1/
10881             q
10882           }
10883           /^X\(\/\/\)[^/].*/{
10884             s//\1/
10885             q
10886           }
10887           /^X\(\/\/\)$/{
10888             s//\1/
10889             q
10890           }
10891           /^X\(\/\).*/{
10892             s//\1/
10893             q
10894           }
10895           s/.*/./; q'`
10896       test -d "$as_dir" && break
10897     done
10898     test -z "$as_dirs" || eval "mkdir $as_dirs"
10899   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10900 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10901    { (exit 1); exit 1; }; }; }
10902   ac_builddir=.
10903
10904 case "$ac_dir" in
10905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10906 *)
10907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10908   # A ".." for each directory in $ac_dir_suffix.
10909   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10910   case $ac_top_builddir_sub in
10911   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10912   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10913   esac ;;
10914 esac
10915 ac_abs_top_builddir=$ac_pwd
10916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10917 # for backward compatibility:
10918 ac_top_builddir=$ac_top_build_prefix
10919
10920 case $srcdir in
10921   .)  # We are building in place.
10922     ac_srcdir=.
10923     ac_top_srcdir=$ac_top_builddir_sub
10924     ac_abs_top_srcdir=$ac_pwd ;;
10925   [\\/]* | ?:[\\/]* )  # Absolute name.
10926     ac_srcdir=$srcdir$ac_dir_suffix;
10927     ac_top_srcdir=$srcdir
10928     ac_abs_top_srcdir=$srcdir ;;
10929   *) # Relative name.
10930     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10931     ac_top_srcdir=$ac_top_build_prefix$srcdir
10932     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10933 esac
10934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10935
10936
10937   case $ac_mode in
10938   :F)
10939   #
10940   # CONFIG_FILE
10941   #
10942
10943   case $INSTALL in
10944   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10945   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10946   esac
10947 _ACEOF
10948
10949 cat >>$CONFIG_STATUS <<\_ACEOF
10950 # If the template does not know about datarootdir, expand it.
10951 # FIXME: This hack should be removed a few years after 2.60.
10952 ac_datarootdir_hack=; ac_datarootdir_seen=
10953
10954 case `sed -n '/datarootdir/ {
10955   p
10956   q
10957 }
10958 /@datadir@/p
10959 /@docdir@/p
10960 /@infodir@/p
10961 /@localedir@/p
10962 /@mandir@/p
10963 ' $ac_file_inputs` in
10964 *datarootdir*) ac_datarootdir_seen=yes;;
10965 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10966   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10967 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10968 _ACEOF
10969 cat >>$CONFIG_STATUS <<_ACEOF
10970   ac_datarootdir_hack='
10971   s&@datadir@&$datadir&g
10972   s&@docdir@&$docdir&g
10973   s&@infodir@&$infodir&g
10974   s&@localedir@&$localedir&g
10975   s&@mandir@&$mandir&g
10976     s&\\\${datarootdir}&$datarootdir&g' ;;
10977 esac
10978 _ACEOF
10979
10980 # Neutralize VPATH when `$srcdir' = `.'.
10981 # Shell code in configure.ac might set extrasub.
10982 # FIXME: do we really want to maintain this feature?
10983 cat >>$CONFIG_STATUS <<_ACEOF
10984   sed "$ac_vpsub
10985 $extrasub
10986 _ACEOF
10987 cat >>$CONFIG_STATUS <<\_ACEOF
10988 :t
10989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10990 s&@configure_input@&$configure_input&;t t
10991 s&@top_builddir@&$ac_top_builddir_sub&;t t
10992 s&@srcdir@&$ac_srcdir&;t t
10993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10994 s&@top_srcdir@&$ac_top_srcdir&;t t
10995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10996 s&@builddir@&$ac_builddir&;t t
10997 s&@abs_builddir@&$ac_abs_builddir&;t t
10998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10999 s&@INSTALL@&$ac_INSTALL&;t t
11000 $ac_datarootdir_hack
11001 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11002
11003 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11004   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11005   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11006   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11007 which seems to be undefined.  Please make sure it is defined." >&5
11008 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11009 which seems to be undefined.  Please make sure it is defined." >&2;}
11010
11011   rm -f "$tmp/stdin"
11012   case $ac_file in
11013   -) cat "$tmp/out"; rm -f "$tmp/out";;
11014   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11015   esac
11016  ;;
11017   :H)
11018   #
11019   # CONFIG_HEADER
11020   #
11021 _ACEOF
11022
11023 # Transform confdefs.h into a sed script `conftest.defines', that
11024 # substitutes the proper values into config.h.in to produce config.h.
11025 rm -f conftest.defines conftest.tail
11026 # First, append a space to every undef/define line, to ease matching.
11027 echo 's/$/ /' >conftest.defines
11028 # Then, protect against being on the right side of a sed subst, or in
11029 # an unquoted here document, in config.status.  If some macros were
11030 # called several times there might be several #defines for the same
11031 # symbol, which is useless.  But do not sort them, since the last
11032 # AC_DEFINE must be honored.
11033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11034 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11035 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11036 # PARAMS is the parameter list in the macro definition--in most cases, it's
11037 # just an empty string.
11038 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11039 ac_dB='\\)[      (].*,\\1define\\2'
11040 ac_dC=' '
11041 ac_dD=' ,'
11042
11043 uniq confdefs.h |
11044   sed -n '
11045         t rset
11046         :rset
11047         s/^[     ]*#[    ]*define[       ][      ]*//
11048         t ok
11049         d
11050         :ok
11051         s/[\\&,]/\\&/g
11052         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11053         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11054   ' >>conftest.defines
11055
11056 # Remove the space that was appended to ease matching.
11057 # Then replace #undef with comments.  This is necessary, for
11058 # example, in the case of _POSIX_SOURCE, which is predefined and required
11059 # on some systems where configure will not decide to define it.
11060 # (The regexp can be short, since the line contains either #define or #undef.)
11061 echo 's/ $//
11062 s,^[     #]*u.*,/* & */,' >>conftest.defines
11063
11064 # Break up conftest.defines:
11065 ac_max_sed_lines=50
11066
11067 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11068 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11069 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11070 # et cetera.
11071 ac_in='$ac_file_inputs'
11072 ac_out='"$tmp/out1"'
11073 ac_nxt='"$tmp/out2"'
11074
11075 while :
11076 do
11077   # Write a here document:
11078     cat >>$CONFIG_STATUS <<_ACEOF
11079     # First, check the format of the line:
11080     cat >"\$tmp/defines.sed" <<\\CEOF
11081 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11082 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11083 b
11084 :def
11085 _ACEOF
11086   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11087   echo 'CEOF
11088     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11089   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11090   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11091   grep . conftest.tail >/dev/null || break
11092   rm -f conftest.defines
11093   mv conftest.tail conftest.defines
11094 done
11095 rm -f conftest.defines conftest.tail
11096
11097 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11098 cat >>$CONFIG_STATUS <<\_ACEOF
11099   if test x"$ac_file" != x-; then
11100     echo "/* $configure_input  */" >"$tmp/config.h"
11101     cat "$ac_result" >>"$tmp/config.h"
11102     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11103       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11104 echo "$as_me: $ac_file is unchanged" >&6;}
11105     else
11106       rm -f $ac_file
11107       mv "$tmp/config.h" $ac_file
11108     fi
11109   else
11110     echo "/* $configure_input  */"
11111     cat "$ac_result"
11112   fi
11113   rm -f "$tmp/out12"
11114 # Compute $ac_file's index in $config_headers.
11115 _am_stamp_count=1
11116 for _am_header in $config_headers :; do
11117   case $_am_header in
11118     $ac_file | $ac_file:* )
11119       break ;;
11120     * )
11121       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11122   esac
11123 done
11124 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11125 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11126          X$ac_file : 'X\(//\)[^/]' \| \
11127          X$ac_file : 'X\(//\)$' \| \
11128          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11129 echo X$ac_file |
11130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11131             s//\1/
11132             q
11133           }
11134           /^X\(\/\/\)[^/].*/{
11135             s//\1/
11136             q
11137           }
11138           /^X\(\/\/\)$/{
11139             s//\1/
11140             q
11141           }
11142           /^X\(\/\).*/{
11143             s//\1/
11144             q
11145           }
11146           s/.*/./; q'`/stamp-h$_am_stamp_count
11147  ;;
11148
11149   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11150 echo "$as_me: executing $ac_file commands" >&6;}
11151  ;;
11152   esac
11153
11154
11155   case $ac_file$ac_mode in
11156     "po-directories":C)
11157     for ac_file in $CONFIG_FILES; do
11158       # Support "outfile[:infile[:infile...]]"
11159       case "$ac_file" in
11160         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11161       esac
11162       # PO directories have a Makefile.in generated from Makefile.in.in.
11163       case "$ac_file" in */Makefile.in)
11164         # Adjust a relative srcdir.
11165         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11166         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11167         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11168         # In autoconf-2.13 it is called $ac_given_srcdir.
11169         # In autoconf-2.50 it is called $srcdir.
11170         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11171         case "$ac_given_srcdir" in
11172           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11173           /*) top_srcdir="$ac_given_srcdir" ;;
11174           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11175         esac
11176         # Treat a directory as a PO directory if and only if it has a
11177         # POTFILES.in file. This allows packages to have multiple PO
11178         # directories under different names or in different locations.
11179         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11180           rm -f "$ac_dir/POTFILES"
11181           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11182           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11183           POMAKEFILEDEPS="POTFILES.in"
11184           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11185           # on $ac_dir but don't depend on user-specified configuration
11186           # parameters.
11187           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11188             # The LINGUAS file contains the set of available languages.
11189             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11190               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11191             fi
11192             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11193             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11194             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11195             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11196           else
11197             # The set of available languages was given in configure.in.
11198             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11199             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11200           fi
11201           # Compute POFILES
11202           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11203           # Compute UPDATEPOFILES
11204           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11205           # Compute DUMMYPOFILES
11206           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11207           # Compute GMOFILES
11208           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11209           case "$ac_given_srcdir" in
11210             .) srcdirpre= ;;
11211             *) srcdirpre='$(srcdir)/' ;;
11212           esac
11213           POFILES=
11214           UPDATEPOFILES=
11215           DUMMYPOFILES=
11216           GMOFILES=
11217           for lang in $ALL_LINGUAS; do
11218             POFILES="$POFILES $srcdirpre$lang.po"
11219             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11220             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11221             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11222           done
11223           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11224           # environment variable.
11225           INST_LINGUAS=
11226           if test -n "$ALL_LINGUAS"; then
11227             for presentlang in $ALL_LINGUAS; do
11228               useit=no
11229               if test "%UNSET%" != "$LINGUAS"; then
11230                 desiredlanguages="$LINGUAS"
11231               else
11232                 desiredlanguages="$ALL_LINGUAS"
11233               fi
11234               for desiredlang in $desiredlanguages; do
11235                 # Use the presentlang catalog if desiredlang is
11236                 #   a. equal to presentlang, or
11237                 #   b. a variant of presentlang (because in this case,
11238                 #      presentlang can be used as a fallback for messages
11239                 #      which are not translated in the desiredlang catalog).
11240                 case "$desiredlang" in
11241                   "$presentlang"*) useit=yes;;
11242                 esac
11243               done
11244               if test $useit = yes; then
11245                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11246               fi
11247             done
11248           fi
11249           CATALOGS=
11250           if test -n "$INST_LINGUAS"; then
11251             for lang in $INST_LINGUAS; do
11252               CATALOGS="$CATALOGS $lang.gmo"
11253             done
11254           fi
11255           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11256           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11257           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11258             if test -f "$f"; then
11259               case "$f" in
11260                 *.orig | *.bak | *~) ;;
11261                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11262               esac
11263             fi
11264           done
11265         fi
11266         ;;
11267       esac
11268     done ;;
11269     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11270   # Strip MF so we end up with the name of the file.
11271   mf=`echo "$mf" | sed -e 's/:.*$//'`
11272   # Check whether this is an Automake generated Makefile or not.
11273   # We used to match only the files named `Makefile.in', but
11274   # some people rename them; so instead we look at the file content.
11275   # Grep'ing the first line is not enough: some people post-process
11276   # each Makefile.in and add a new line on top of each file to say so.
11277   # So let's grep whole file.
11278   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11279     dirpart=`$as_dirname -- "$mf" ||
11280 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11281          X"$mf" : 'X\(//\)[^/]' \| \
11282          X"$mf" : 'X\(//\)$' \| \
11283          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11284 echo X"$mf" |
11285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11286             s//\1/
11287             q
11288           }
11289           /^X\(\/\/\)[^/].*/{
11290             s//\1/
11291             q
11292           }
11293           /^X\(\/\/\)$/{
11294             s//\1/
11295             q
11296           }
11297           /^X\(\/\).*/{
11298             s//\1/
11299             q
11300           }
11301           s/.*/./; q'`
11302   else
11303     continue
11304   fi
11305   # Extract the definition of DEPDIR, am__include, and am__quote
11306   # from the Makefile without running `make'.
11307   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11308   test -z "$DEPDIR" && continue
11309   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11310   test -z "am__include" && continue
11311   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11312   # When using ansi2knr, U may be empty or an underscore; expand it
11313   U=`sed -n 's/^U = //p' < "$mf"`
11314   # Find all dependency output files, they are included files with
11315   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11316   # simplest approach to changing $(DEPDIR) to its actual value in the
11317   # expansion.
11318   for file in `sed -n "
11319     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11320        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11321     # Make sure the directory exists.
11322     test -f "$dirpart/$file" && continue
11323     fdir=`$as_dirname -- "$file" ||
11324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325          X"$file" : 'X\(//\)[^/]' \| \
11326          X"$file" : 'X\(//\)$' \| \
11327          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11328 echo X"$file" |
11329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11330             s//\1/
11331             q
11332           }
11333           /^X\(\/\/\)[^/].*/{
11334             s//\1/
11335             q
11336           }
11337           /^X\(\/\/\)$/{
11338             s//\1/
11339             q
11340           }
11341           /^X\(\/\).*/{
11342             s//\1/
11343             q
11344           }
11345           s/.*/./; q'`
11346     { as_dir=$dirpart/$fdir
11347   case $as_dir in #(
11348   -*) as_dir=./$as_dir;;
11349   esac
11350   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11351     as_dirs=
11352     while :; do
11353       case $as_dir in #(
11354       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11355       *) as_qdir=$as_dir;;
11356       esac
11357       as_dirs="'$as_qdir' $as_dirs"
11358       as_dir=`$as_dirname -- "$as_dir" ||
11359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11360          X"$as_dir" : 'X\(//\)[^/]' \| \
11361          X"$as_dir" : 'X\(//\)$' \| \
11362          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11363 echo X"$as_dir" |
11364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11365             s//\1/
11366             q
11367           }
11368           /^X\(\/\/\)[^/].*/{
11369             s//\1/
11370             q
11371           }
11372           /^X\(\/\/\)$/{
11373             s//\1/
11374             q
11375           }
11376           /^X\(\/\).*/{
11377             s//\1/
11378             q
11379           }
11380           s/.*/./; q'`
11381       test -d "$as_dir" && break
11382     done
11383     test -z "$as_dirs" || eval "mkdir $as_dirs"
11384   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11385 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11386    { (exit 1); exit 1; }; }; }
11387     # echo "creating $dirpart/$file"
11388     echo '# dummy' > "$dirpart/$file"
11389   done
11390 done
11391  ;;
11392
11393   esac
11394 done # for ac_tag
11395
11396
11397 { (exit 0); exit 0; }
11398 _ACEOF
11399 chmod +x $CONFIG_STATUS
11400 ac_clean_files=$ac_clean_files_save
11401
11402
11403 # configure is writing to config.log, and then calls config.status.
11404 # config.status does its own redirection, appending to config.log.
11405 # Unfortunately, on DOS this fails, as config.log is still kept open
11406 # by configure, so config.status won't be able to write to it; its
11407 # output is simply discarded.  So we exec the FD to /dev/null,
11408 # effectively closing config.log, so it can be properly (re)opened and
11409 # appended to by config.status.  When coming back to configure, we
11410 # need to make the FD available again.
11411 if test "$no_create" != yes; then
11412   ac_cs_success=:
11413   ac_config_status_args=
11414   test "$silent" = yes &&
11415     ac_config_status_args="$ac_config_status_args --quiet"
11416   exec 5>/dev/null
11417   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11418   exec 5>>config.log
11419   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11420   # would make configure fail if this is the last instruction.
11421   $ac_cs_success || { (exit 1); exit 1; }
11422 fi
11423